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 |
outTypeClass
log, 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, verifyUdfInput
allowCompileTimeCalculation, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLoadCaster, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, needEndOfAllInputProcessing, outputSchema, progress, setEndOfAllInput, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warn
public OUT exec(Tuple tuple) throws IOException
EvalFunc
exec
in class EvalFunc<OUT>
tuple
- the Tuple to be processed.IOException
public abstract OUT exec(IN input) throws IOException
IOException
Copyright © 2007-2017 The Apache Software Foundation