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 java.lang.Class<IN> |
inTypeClass |
outTypeClass
log, pigLogger, reporter, returnType
Constructor and Description |
---|
PrimitiveEvalFunc() |
PrimitiveEvalFunc(java.lang.Class inTypeClass,
java.lang.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.
|
java.lang.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
protected java.lang.Class<IN> inTypeClass
public PrimitiveEvalFunc()
public PrimitiveEvalFunc(java.lang.Class inTypeClass, java.lang.Class outTypeClass)
public java.lang.Class<IN> getInputTypeClass()
public OUT exec(Tuple tuple) throws java.io.IOException
EvalFunc
Copyright © 2007-2017 The Apache Software Foundation