public abstract static class JrubyAlgebraicEvalFunc.AlgebraicFunctionWrapper<T> extends EvalFunc<T>
EvalFunc.SchemaType| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isInitialized |
protected Object |
receiver |
protected String |
stage |
log, pigLogger, reporter, returnType| Constructor and Description |
|---|
AlgebraicFunctionWrapper() |
AlgebraicFunctionWrapper(String fileName,
String functionName,
String stage)
In addition to registering the fileName and the functionName (which are given based on the
arguments passed to super() in the containing class's constructor, each extending class
will register their "stage," which will serve as the method to invoke on the Ruby class.
|
| Modifier and Type | Method and Description |
|---|---|
abstract T |
exec(Tuple input)
This callback method must be implemented by all subclasses.
|
String |
getFileName() |
String |
getFunctionName() |
Object |
getReceiver() |
String |
getStage() |
void |
initialize() |
boolean |
isInitialized() |
allowCompileTimeCalculation, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLoadCaster, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, needEndOfAllInputProcessing, outputSchema, progress, setEndOfAllInput, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warnprotected Object receiver
protected boolean isInitialized
protected String stage
public AlgebraicFunctionWrapper()
public AlgebraicFunctionWrapper(String fileName, String functionName, String stage)
public String getStage()
public Object getReceiver()
public String getFileName()
public String getFunctionName()
public boolean isInitialized()
public void initialize()
public abstract T exec(Tuple input) throws IOException
EvalFuncexec in class EvalFunc<T>input - the Tuple to be processed.IOExceptionCopyright © 2007-2017 The Apache Software Foundation