public class GroovyEvalFunc<T> extends EvalFunc<T>
EvalFunc.SchemaType| Modifier and Type | Field and Description |
|---|---|
protected Method |
method |
log, pigLogger, reporter, returnType| Constructor and Description |
|---|
GroovyEvalFunc() |
GroovyEvalFunc(String path,
String namespace,
String methodName) |
GroovyEvalFunc(String path,
String namespace,
String methodName,
Object target) |
| Modifier and Type | Method and Description |
|---|---|
T |
exec(Tuple input)
This callback method must be implemented by all subclasses.
|
Object |
getInvocationTarget() |
Schema |
outputSchema(Schema input)
Report the schema of the output of this UDF.
|
allowCompileTimeCalculation, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLoadCaster, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, needEndOfAllInputProcessing, progress, setEndOfAllInput, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warnprotected Method method
public GroovyEvalFunc()
public GroovyEvalFunc(String path, String namespace, String methodName) throws IOException
IOExceptionpublic GroovyEvalFunc(String path, String namespace, String methodName, Object target) throws IOException
IOExceptionpublic T exec(Tuple input) throws IOException
EvalFuncexec in class EvalFunc<T>input - the Tuple to be processed.IOExceptionpublic Schema outputSchema(Schema input)
EvalFunc
The default implementation interprets the OutputSchema annotation,
if one is present. Otherwise, it returns null (no known output schema).
outputSchema in class EvalFunc<T>input - Schema of the inputpublic Object getInvocationTarget()
Copyright © 2007-2017 The Apache Software Foundation