- Direct Known Subclasses:
- JrubyAlgebraicEvalFunc.Final, JrubyAlgebraicEvalFunc.Initial, JrubyAlgebraicEvalFunc.Intermed
- Enclosing class:
public abstract static class JrubyAlgebraicEvalFunc.AlgebraicFunctionWrapper<T>
- extends EvalFunc<T>
This is a lightweight wrapper shell that registers information on the method being called,
and provides the initializer that the static Algebraic classes (Initial, Intermed, Final)
will use to execute.
|Methods inherited from class org.apache.pig.EvalFunc
finish, getArgToFuncMapping, getCacheFiles, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, isAsynchronous, outputSchema, progress, setPigLogger, setReporter, warn
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected Object receiver
protected boolean isInitialized
protected String stage
public JrubyAlgebraicEvalFunc.AlgebraicFunctionWrapper(String fileName,
- 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.
public String getStage()
public Object getReceiver()
public String getFileName()
public String getFunctionName()
public boolean isInitialized()
public void initialize()
public abstract T exec(Tuple input)
- Description copied from class:
- This callback method must be implemented by all subclasses. This
is the method that will be invoked on every Tuple of a given dataset.
Since the dataset may be divided up in a variety of ways the programmer
should not make assumptions about state that is maintained between
invocations of this method.
- Specified by:
exec in class
input - the Tuple to be processed.
- result, of type T.
Copyright © 2007-2012 The Apache Software Foundation