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.
|
allowCompileTimeCalculation, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLoadCaster, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, needEndOfAllInputProcessing, progress, setEndOfAllInput, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warn
public GroovyEvalFunc()
public GroovyEvalFunc(java.lang.String path, java.lang.String namespace, java.lang.String methodName) throws java.io.IOException
java.io.IOException
public GroovyEvalFunc(java.lang.String path, java.lang.String namespace, java.lang.String methodName, java.lang.Object target) throws java.io.IOException
java.io.IOException
public T exec(Tuple input) throws java.io.IOException
EvalFunc
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 java.lang.Object getInvocationTarget()
Copyright © 2007-2017 The Apache Software Foundation