public class ExtremalTupleByNthField
extends org.apache.pig.EvalFunc<org.apache.pig.data.Tuple>
implements org.apache.pig.Algebraic, org.apache.pig.Accumulator<org.apache.pig.data.Tuple>
Modifier and Type | Class and Description |
---|---|
static class |
ExtremalTupleByNthField.HelperClass
Utility classes and methods
|
Constructor and Description |
---|
ExtremalTupleByNthField() |
ExtremalTupleByNthField(java.lang.String fieldIndexString) |
ExtremalTupleByNthField(java.lang.String fieldIndexString,
java.lang.String order) |
Modifier and Type | Method and Description |
---|---|
void |
accumulate(org.apache.pig.data.Tuple b) |
void |
cleanup() |
org.apache.pig.data.Tuple |
exec(org.apache.pig.data.Tuple input)
The EvalFunc interface
|
protected static org.apache.pig.data.Tuple |
extreme(int pind,
int psign,
org.apache.pig.data.Tuple input,
org.apache.pig.backend.hadoop.executionengine.physicalLayer.PigProgressable reporter) |
java.lang.String |
getFinal() |
java.lang.String |
getInitial()
Algebraic interface
|
java.lang.String |
getIntermed() |
java.lang.reflect.Type |
getReturnType() |
org.apache.pig.data.Tuple |
getValue() |
org.apache.pig.impl.logicalLayer.schema.Schema |
outputSchema(org.apache.pig.impl.logicalLayer.schema.Schema input) |
protected static int |
parseFieldIndex(java.lang.String inputFieldIndex) |
protected static int |
parseOrdering(java.lang.String order) |
allowCompileTimeCalculation, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLogger, getPigLogger, getReporter, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, progress, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warn
public ExtremalTupleByNthField() throws org.apache.pig.backend.executionengine.ExecException
org.apache.pig.backend.executionengine.ExecException
public ExtremalTupleByNthField(java.lang.String fieldIndexString) throws org.apache.pig.backend.executionengine.ExecException
org.apache.pig.backend.executionengine.ExecException
public ExtremalTupleByNthField(java.lang.String fieldIndexString, java.lang.String order) throws org.apache.pig.backend.executionengine.ExecException
org.apache.pig.backend.executionengine.ExecException
public org.apache.pig.data.Tuple exec(org.apache.pig.data.Tuple input) throws java.io.IOException
exec
in class org.apache.pig.EvalFunc<org.apache.pig.data.Tuple>
java.io.IOException
public java.lang.reflect.Type getReturnType()
getReturnType
in class org.apache.pig.EvalFunc<org.apache.pig.data.Tuple>
public org.apache.pig.impl.logicalLayer.schema.Schema outputSchema(org.apache.pig.impl.logicalLayer.schema.Schema input)
outputSchema
in class org.apache.pig.EvalFunc<org.apache.pig.data.Tuple>
public java.lang.String getInitial()
getInitial
in interface org.apache.pig.Algebraic
public java.lang.String getIntermed()
getIntermed
in interface org.apache.pig.Algebraic
public java.lang.String getFinal()
getFinal
in interface org.apache.pig.Algebraic
public void accumulate(org.apache.pig.data.Tuple b) throws java.io.IOException
accumulate
in interface org.apache.pig.Accumulator<org.apache.pig.data.Tuple>
java.io.IOException
public void cleanup()
cleanup
in interface org.apache.pig.Accumulator<org.apache.pig.data.Tuple>
public org.apache.pig.data.Tuple getValue()
getValue
in interface org.apache.pig.Accumulator<org.apache.pig.data.Tuple>
protected static final org.apache.pig.data.Tuple extreme(int pind, int psign, org.apache.pig.data.Tuple input, org.apache.pig.backend.hadoop.executionengine.physicalLayer.PigProgressable reporter) throws org.apache.pig.backend.executionengine.ExecException
org.apache.pig.backend.executionengine.ExecException
protected static int parseFieldIndex(java.lang.String inputFieldIndex) throws org.apache.pig.backend.executionengine.ExecException
org.apache.pig.backend.executionengine.ExecException
protected static int parseOrdering(java.lang.String order)