public class StringMin extends EvalFunc<java.lang.String> implements Algebraic, Accumulator<java.lang.String>
MIN.| Modifier and Type | Class and Description |
|---|---|
static class |
StringMin.Final |
static class |
StringMin.Initial |
static class |
StringMin.Intermediate |
EvalFunc.SchemaTypelog, pigLogger, reporter, returnType| Constructor and Description |
|---|
StringMin() |
| Modifier and Type | Method and Description |
|---|---|
void |
accumulate(Tuple b)
Pass tuples to the UDF.
|
void |
cleanup()
Called after getValue() to prepare processing for next key.
|
java.lang.String |
exec(Tuple input)
This callback method must be implemented by all subclasses.
|
java.lang.String |
getFinal()
Get the final function.
|
java.lang.String |
getInitial()
Get the initial function.
|
java.lang.String |
getIntermed()
Get the intermediate function.
|
java.lang.String |
getValue()
Called when all tuples from current key have been passed to accumulate.
|
protected static java.lang.String |
min(Tuple input) |
Schema |
outputSchema(Schema input)
Report the schema of the output of this UDF.
|
allowCompileTimeCalculation, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, progress, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warnpublic java.lang.String exec(Tuple input) throws java.io.IOException
EvalFuncpublic java.lang.String getInitial()
AlgebraicgetInitial in interface Algebraicpublic java.lang.String getIntermed()
AlgebraicgetIntermed in interface Algebraicpublic java.lang.String getFinal()
Algebraicprotected static java.lang.String min(Tuple input) throws ExecException
ExecExceptionpublic Schema outputSchema(Schema input)
EvalFunc
The default implementation interprets the OutputSchema annotation,
if one is present. Otherwise, it returns null (no known output schema).
outputSchema in class EvalFunc<java.lang.String>input - Schema of the inputpublic void accumulate(Tuple b) throws java.io.IOException
Accumulatoraccumulate in interface Accumulator<java.lang.String>b - A tuple containing a single field, which is a bag. The bag will contain the set
of tuples being passed to the UDF in this iteration.java.io.IOExceptionpublic void cleanup()
Accumulatorcleanup in interface Accumulator<java.lang.String>public java.lang.String getValue()
AccumulatorgetValue in interface Accumulator<java.lang.String>Copyright © 2007-2012 The Apache Software Foundation