public abstract class PrimitiveEvalFunc<IN,OUT> extends TypedOutputEvalFunc<OUT>
OUT exec(IN input)method when writting a UDF that operates on only the first input (of expected type IN) from the Tuple.
EvalFunc.SchemaType| Modifier and Type | Field and Description |
|---|---|
protected Class<IN> |
inTypeClass |
outTypeClasslog, pigLogger, reporter, returnType| Constructor and Description |
|---|
PrimitiveEvalFunc() |
PrimitiveEvalFunc(Class inTypeClass,
Class outTypeClass) |
| Modifier and Type | Method and Description |
|---|---|
abstract OUT |
exec(IN input) |
OUT |
exec(Tuple tuple)
This callback method must be implemented by all subclasses.
|
Class<IN> |
getInputTypeClass() |
getCounterGroup, getOutputTypeClass, getTypeArguments, safeIncrCounter, verifyInput, verifyUdfInputallowCompileTimeCalculation, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLoadCaster, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, needEndOfAllInputProcessing, outputSchema, progress, setEndOfAllInput, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warnpublic OUT exec(Tuple tuple) throws IOException
EvalFuncexec in class EvalFunc<OUT>tuple - the Tuple to be processed.IOExceptionpublic abstract OUT exec(IN input) throws IOException
IOExceptionCopyright © 2007-2017 The Apache Software Foundation