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 |
---|
JrubyAlgebraicEvalFunc.AlgebraicFunctionWrapper() |
JrubyAlgebraicEvalFunc.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, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, needEndOfAllInputProcessing, outputSchema, progress, setEndOfAllInput, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warn
protected Object receiver
protected boolean isInitialized
protected String stage
public JrubyAlgebraicEvalFunc.AlgebraicFunctionWrapper()
public JrubyAlgebraicEvalFunc.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
EvalFunc
exec
in class EvalFunc<T>
input
- the Tuple to be processed.IOException
Copyright © 2007-2012 The Apache Software Foundation