public abstract static class JrubyAlgebraicEvalFunc.AlgebraicFunctionWrapper<T> extends EvalFunc<T>
EvalFunc.SchemaType
Modifier and Type | Field and Description |
---|---|
protected boolean |
isInitialized |
protected java.lang.Object |
receiver |
protected java.lang.String |
stage |
log, pigLogger, reporter, returnType
Constructor and Description |
---|
AlgebraicFunctionWrapper() |
AlgebraicFunctionWrapper(java.lang.String fileName,
java.lang.String functionName,
java.lang.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.
|
java.lang.String |
getFileName() |
java.lang.String |
getFunctionName() |
java.lang.Object |
getReceiver() |
java.lang.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, warn
protected java.lang.Object receiver
protected boolean isInitialized
protected java.lang.String stage
public AlgebraicFunctionWrapper()
public AlgebraicFunctionWrapper(java.lang.String fileName, java.lang.String functionName, java.lang.String stage)
public java.lang.String getStage()
public java.lang.Object getReceiver()
public java.lang.String getFileName()
public java.lang.String getFunctionName()
public boolean isInitialized()
public void initialize()
public abstract T exec(Tuple input) throws java.io.IOException
EvalFunc
Copyright © 2007-2017 The Apache Software Foundation