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.
|
java.lang.String |
getFinal()
Get the final function.
|
java.lang.String |
getInitial()
Get the initial function.
|
java.lang.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, progress, 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 java.io.IOException
EvalFunc
protected static Tuple max(Tuple input, PigProgressable reporter) throws ExecException
ExecException
public java.lang.String getInitial()
Algebraic
getInitial
in interface Algebraic
public java.lang.String getIntermed()
Algebraic
getIntermed
in interface Algebraic
public java.lang.String getFinal()
Algebraic
Copyright © 2007-2012 The Apache Software Foundation