public class DateTimeMin extends EvalFunc<org.joda.time.DateTime> implements Algebraic, Accumulator<org.joda.time.DateTime>
MAX.| Modifier and Type | Class and Description |
|---|---|
static class |
DateTimeMin.Final |
static class |
DateTimeMin.Initial |
static class |
DateTimeMin.Intermediate |
EvalFunc.SchemaTypelog, pigLogger, reporter, returnType| Constructor and Description |
|---|
DateTimeMin() |
| 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.
|
org.joda.time.DateTime |
exec(Tuple input)
This callback method must be implemented by all subclasses.
|
String |
getFinal()
Get the final function.
|
String |
getInitial()
Get the initial function.
|
String |
getIntermed()
Get the intermediate function.
|
org.joda.time.DateTime |
getValue()
Called when all tuples from current key have been passed to accumulate.
|
protected static org.joda.time.DateTime |
min(Tuple input) |
Schema |
outputSchema(Schema input)
Report the schema of the output of this UDF.
|
allowCompileTimeCalculation, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLoadCaster, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, needEndOfAllInputProcessing, progress, setEndOfAllInput, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warnpublic org.joda.time.DateTime exec(Tuple input) throws IOException
EvalFuncexec in class EvalFunc<org.joda.time.DateTime>input - the Tuple to be processed.IOExceptionpublic String getInitial()
AlgebraicgetInitial in interface Algebraicpublic String getIntermed()
AlgebraicgetIntermed in interface Algebraicpublic String getFinal()
Algebraicprotected static org.joda.time.DateTime 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<org.joda.time.DateTime>input - Schema of the inputpublic void accumulate(Tuple b) throws IOException
Accumulatoraccumulate in interface Accumulator<org.joda.time.DateTime>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.IOExceptionpublic void cleanup()
Accumulatorcleanup in interface Accumulator<org.joda.time.DateTime>public org.joda.time.DateTime getValue()
AccumulatorgetValue in interface Accumulator<org.joda.time.DateTime>Copyright © 2007-2017 The Apache Software Foundation