org.apache.pig.scripting.jruby
Class JrubyAlgebraicEvalFunc.BagJrubyAlgebraicEvalFunc
java.lang.Object
org.apache.pig.EvalFunc<T>
org.apache.pig.AccumulatorEvalFunc<T>
org.apache.pig.AlgebraicEvalFunc<T>
org.apache.pig.scripting.jruby.JrubyAlgebraicEvalFunc<DataBag>
org.apache.pig.scripting.jruby.JrubyAlgebraicEvalFunc.BagJrubyAlgebraicEvalFunc
- All Implemented Interfaces:
- Accumulator<DataBag>, Algebraic
- Enclosing class:
- JrubyAlgebraicEvalFunc<T>
public static class JrubyAlgebraicEvalFunc.BagJrubyAlgebraicEvalFunc
- extends JrubyAlgebraicEvalFunc<DataBag>
Unlike EvalFuncs and Accumulators, the type must be known at compile time (ie it
can't return Object), as Pig inspects the type and ensures that it is valid. This
is why class specific shells are provided here. This is also the reason why the
Ruby Algebraic interface is the only interface that does not currently allow overriding
outputSchema, and a fixed one must be provided.
Nested classes/interfaces inherited from class org.apache.pig.scripting.jruby.JrubyAlgebraicEvalFunc |
JrubyAlgebraicEvalFunc.AlgebraicFunctionWrapper<T>, JrubyAlgebraicEvalFunc.BagJrubyAlgebraicEvalFunc, JrubyAlgebraicEvalFunc.ChararrayJrubyAlgebraicEvalFunc, JrubyAlgebraicEvalFunc.DataByteArrayJrubyAlgebraicEvalFunc, JrubyAlgebraicEvalFunc.DoubleJrubyAlgebraicEvalFunc, JrubyAlgebraicEvalFunc.FloatJrubyAlgebraicEvalFunc, JrubyAlgebraicEvalFunc.Initial, JrubyAlgebraicEvalFunc.IntegerJrubyAlgebraicEvalFunc, JrubyAlgebraicEvalFunc.Intermed, JrubyAlgebraicEvalFunc.LongJrubyAlgebraicEvalFunc, JrubyAlgebraicEvalFunc.MapJrubyAlgebraicEvalFunc, JrubyAlgebraicEvalFunc.TupleJrubyAlgebraicEvalFunc |
Method Summary |
String |
getFinal()
This must be implement as per a normal Algebraic interface. |
Methods inherited from class org.apache.pig.EvalFunc |
finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, isAsynchronous, outputSchema, progress, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warn |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JrubyAlgebraicEvalFunc.BagJrubyAlgebraicEvalFunc
public JrubyAlgebraicEvalFunc.BagJrubyAlgebraicEvalFunc(String fileName,
String functionName)
getFinal
public String getFinal()
- Description copied from class:
AlgebraicEvalFunc
- This must be implement as per a normal Algebraic interface. See
Algebraic
for
more information.
- Specified by:
getFinal
in interface Algebraic
- Specified by:
getFinal
in class JrubyAlgebraicEvalFunc<DataBag>
- Returns:
- A function name of f_final. f_final should be an eval func parametrized by
the same datum as the eval func implementing this interface.
Copyright © 2007-2012 The Apache Software Foundation