public class GroovyEvalFunc<T> extends EvalFunc<T>
EvalFunc.SchemaType| Modifier and Type | Field and Description |
|---|---|
protected java.lang.reflect.Method |
method |
log, pigLogger, reporter, returnType| Constructor and Description |
|---|
GroovyEvalFunc() |
GroovyEvalFunc(java.lang.String path,
java.lang.String namespace,
java.lang.String methodName) |
GroovyEvalFunc(java.lang.String path,
java.lang.String namespace,
java.lang.String methodName,
java.lang.Object target) |
| Modifier and Type | Method and Description |
|---|---|
T |
exec(Tuple input)
This callback method must be implemented by all subclasses.
|
java.lang.Object |
getInvocationTarget() |
Schema |
outputSchema(Schema input)
Report the schema of the output of this UDF.
|
addCredentials, allowCompileTimeCalculation, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLoadCaster, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, needEndOfAllInputProcessing, progress, setEndOfAllInput, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warnpublic GroovyEvalFunc()
public GroovyEvalFunc(java.lang.String path,
java.lang.String namespace,
java.lang.String methodName)
throws java.io.IOException
java.io.IOExceptionpublic GroovyEvalFunc(java.lang.String path,
java.lang.String namespace,
java.lang.String methodName,
java.lang.Object target)
throws java.io.IOException
java.io.IOExceptionpublic T exec(Tuple input) throws java.io.IOException
EvalFuncpublic 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 java.lang.Object getInvocationTarget()
Copyright © 2007-2025 The Apache Software Foundation