public class DateExtractor extends EvalFunc<String>
EvalFunc.SchemaType
log, pigLogger, reporter, returnType
Constructor and Description |
---|
DateExtractor()
forms the formats based on default incomingDateFormat and default outgoingDateFormat
|
DateExtractor(String outgoingDateString)
forms the formats based on passed outgoingDateString and the default incomingDateFormat
|
DateExtractor(String incomingDateString,
String outgoingDateString)
forms the formats based on passed incomingDateString and outgoingDateString
|
DateExtractor(String incomingDateString,
String outgoingDateString,
String timeZoneID)
forms the formats based on passed incomingDateString and outgoingDateString
|
Modifier and Type | Method and Description |
---|---|
String |
exec(Tuple input)
This callback method must be implemented by all subclasses.
|
List<FuncSpec> |
getArgToFuncMapping()
Allow a UDF to specify type specific implementations of itself.
|
allowCompileTimeCalculation, finish, getCacheFiles, getInputSchema, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, needEndOfAllInputProcessing, outputSchema, progress, setEndOfAllInput, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warn
public DateExtractor()
outgoingDateString
- outgoingDateFormat is based on outgoingDateStringpublic DateExtractor(String outgoingDateString)
outgoingDateString
- outgoingDateFormat is based on outgoingDateStringpublic DateExtractor(String incomingDateString, String outgoingDateString)
incomingDateString
- incomingDateFormat is based on incomingDateStringoutgoingDateString
- outgoingDateFormat is based on outgoingDateStringpublic DateExtractor(String incomingDateString, String outgoingDateString, String timeZoneID)
incomingDateString
- incomingDateFormat is based on incomingDateStringoutgoingDateString
- outgoingDateFormat is based on outgoingDateStringtimeZoneID
- time zone id in which dates should be expressed.public String exec(Tuple input) throws IOException
EvalFunc
exec
in class EvalFunc<String>
input
- the Tuple to be processed.IOException
public List<FuncSpec> getArgToFuncMapping() throws FrontendException
EvalFunc
getArgToFuncMapping
in class EvalFunc<String>
FrontendException
Copyright © 2007-2012 The Apache Software Foundation