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 |
---|
JrubyAlgebraicEvalFunc.AlgebraicFunctionWrapper() |
JrubyAlgebraicEvalFunc.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, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, outputSchema, progress, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warn
protected java.lang.Object receiver
protected boolean isInitialized
protected java.lang.String stage
public JrubyAlgebraicEvalFunc.AlgebraicFunctionWrapper()
public JrubyAlgebraicEvalFunc.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-2012 The Apache Software Foundation