org.apache.pig.scripting.groovy
Class GroovyAlgebraicEvalFunc<T>
java.lang.Object
org.apache.pig.EvalFunc<T>
org.apache.pig.AccumulatorEvalFunc<T>
org.apache.pig.AlgebraicEvalFunc<T>
org.apache.pig.scripting.groovy.GroovyAlgebraicEvalFunc<T>
- All Implemented Interfaces:
- Accumulator<T>, Algebraic
- Direct Known Subclasses:
- GroovyAlgebraicEvalFunc.BigDecimalGroovyAlgebraicEvalFunc, GroovyAlgebraicEvalFunc.BigIntegerGroovyAlgebraicEvalFunc, GroovyAlgebraicEvalFunc.BooleanGroovyAlgebraicEvalFunc, GroovyAlgebraicEvalFunc.ChararrayGroovyAlgebraicEvalFunc, GroovyAlgebraicEvalFunc.DataBagGroovyAlgebraicEvalFunc, GroovyAlgebraicEvalFunc.DataByteArrayGroovyAlgebraicEvalFunc, GroovyAlgebraicEvalFunc.DateTimeGroovyAlgebraicEvalFunc, GroovyAlgebraicEvalFunc.DoubleGroovyAlgebraicEvalFunc, GroovyAlgebraicEvalFunc.FloatGroovyAlgebraicEvalFunc, GroovyAlgebraicEvalFunc.IntegerGroovyAlgebraicEvalFunc, GroovyAlgebraicEvalFunc.LongGroovyAlgebraicEvalFunc, GroovyAlgebraicEvalFunc.MapGroovyAlgebraicEvalFunc, GroovyAlgebraicEvalFunc.TupleGroovyAlgebraicEvalFunc
public abstract class GroovyAlgebraicEvalFunc<T>
- extends AlgebraicEvalFunc<T>
Method Summary |
abstract String |
getFinal()
This must be implement as per a normal Algebraic interface. |
String |
getInitial()
This must be implement as per a normal Algebraic interface. |
String |
getIntermed()
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 |
GroovyAlgebraicEvalFunc
public GroovyAlgebraicEvalFunc()
GroovyAlgebraicEvalFunc
public GroovyAlgebraicEvalFunc(String path,
String namespace,
String methodName,
String initialMethod,
String intermedMethod,
String finalMethod)
getFinal
public abstract 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 AlgebraicEvalFunc<T>
- 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.
getInitial
public String getInitial()
- Description copied from class:
AlgebraicEvalFunc
- This must be implement as per a normal Algebraic interface. See
Algebraic
for
more information.
- Specified by:
getInitial
in interface Algebraic
- Specified by:
getInitial
in class AlgebraicEvalFunc<T>
- Returns:
- A function name of f_init. f_init should be an eval func.
The return type of f_init.exec() has to be Tuple
getIntermed
public String getIntermed()
- Description copied from class:
AlgebraicEvalFunc
- This must be implement as per a normal Algebraic interface. See
Algebraic
for
more information.
- Specified by:
getIntermed
in interface Algebraic
- Specified by:
getIntermed
in class AlgebraicEvalFunc<T>
- Returns:
- A function name of f_intermed. f_intermed should be an eval func.
The return type of f_intermed.exec() has to be Tuple
Copyright © 2007-2012 The Apache Software Foundation