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, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, needEndOfAllInputProcessing, progress, setEndOfAllInput, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warn
protected Method method
public GroovyEvalFunc()
public GroovyEvalFunc(String path, String namespace, String methodName) throws IOException
IOException
public GroovyEvalFunc(String path, String namespace, String methodName, Object target) throws IOException
IOException
public T exec(Tuple input) throws IOException
EvalFunc
exec
in class EvalFunc<T>
input
- the Tuple to be processed.IOException
public 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-2012 The Apache Software Foundation