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.SchemaType
log, 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, warn
public 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
EvalFunc
exec
in class EvalFunc<Tuple>
input
- the Tuple to be processed.IOException
protected static Tuple max(Tuple input, PigProgressable reporter) throws ExecException
ExecException
public String getInitial()
Algebraic
getInitial
in interface Algebraic
public String getIntermed()
Algebraic
getIntermed
in interface Algebraic
Copyright © 2007-2012 The Apache Software Foundation