public class TOP extends EvalFunc<DataBag> implements Algebraic
| Modifier and Type | Class and Description |
|---|---|
static class |
TOP.Final |
static class |
TOP.Initial |
static class |
TOP.Intermed |
EvalFunc.SchemaTypepigLogger, reporter, returnType| Modifier and Type | Method and Description |
|---|---|
DataBag |
exec(Tuple tuple)
This callback method must be implemented by all subclasses.
|
java.util.List<FuncSpec> |
getArgToFuncMapping()
Allow a UDF to specify type specific implementations of itself.
|
java.lang.String |
getFinal()
Get the final function.
|
java.lang.String |
getInitial()
Get the initial function.
|
java.lang.String |
getIntermed()
Get the intermediate function.
|
Schema |
outputSchema(Schema input)
Report the schema of the output of this UDF.
|
protected static void |
updateTop(java.util.PriorityQueue<Tuple> store,
int limit,
DataBag inputBag) |
allowCompileTimeCalculation, finish, getCacheFiles, getInputSchema, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, progress, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warnpublic DataBag exec(Tuple tuple) throws java.io.IOException
EvalFuncprotected static void updateTop(java.util.PriorityQueue<Tuple> store, int limit, DataBag inputBag)
public java.util.List<FuncSpec> getArgToFuncMapping() throws FrontendException
EvalFuncgetArgToFuncMapping in class EvalFunc<DataBag>FrontendExceptionpublic 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<DataBag>input - Schema of the inputpublic java.lang.String getInitial()
AlgebraicgetInitial in interface Algebraicpublic java.lang.String getIntermed()
AlgebraicgetIntermed in interface Algebraicpublic java.lang.String getFinal()
AlgebraicCopyright © 2007-2012 The Apache Software Foundation