public class MaxTupleBy1stField extends EvalFunc<Tuple> implements Algebraic
| Modifier and Type | Class and Description |
|---|---|
static class |
MaxTupleBy1stField.Final |
static class |
MaxTupleBy1stField.Initial |
static class |
MaxTupleBy1stField.Intermediate |
EvalFunc.SchemaTypelog, pigLogger, reporter, returnType| Constructor and Description |
|---|
MaxTupleBy1stField() |
| Modifier and Type | Method and Description |
|---|---|
Tuple |
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.
|
protected static Tuple |
max(Tuple input,
PigProgressable reporter) |
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, needEndOfAllInputProcessing, progress, setEndOfAllInput, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warnpublic 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<Tuple>input - Schema of the inputpublic Tuple exec(Tuple input) throws IOException
EvalFuncexec in class EvalFunc<Tuple>input - the Tuple to be processed.IOExceptionprotected static Tuple max(Tuple input, PigProgressable reporter) throws ExecException
ExecExceptionpublic String getInitial()
AlgebraicgetInitial in interface Algebraicpublic String getIntermed()
AlgebraicgetIntermed in interface AlgebraicCopyright © 2007-2012 The Apache Software Foundation