public class IsEmpty extends FilterFunc implements TerminatingAccumulator<Boolean>
EvalFunc.SchemaTypelog, pigLogger, reporter, returnType| Constructor and Description |
|---|
IsEmpty() |
| Modifier and Type | Method and Description |
|---|---|
void |
accumulate(Tuple b)
Pass tuples to the UDF.
|
void |
cleanup()
Called after getValue() to prepare processing for next key.
|
Boolean |
exec(Tuple input)
This callback method must be implemented by all subclasses.
|
Boolean |
getValue()
Called when all tuples from current key have been passed to accumulate.
|
boolean |
isFinished() |
finishgetArgToFuncMapping, getCacheFiles, getInputSchema, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, isAsynchronous, outputSchema, progress, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warnpublic Boolean exec(Tuple input) throws IOException
EvalFuncexec in class EvalFunc<Boolean>input - the Tuple to be processed.IOExceptionpublic boolean isFinished()
isFinished in interface TerminatingAccumulator<Boolean>public void accumulate(Tuple b) throws IOException
Accumulatoraccumulate in interface Accumulator<Boolean>b - A tuple containing a single field, which is a bag. The bag will contain the set
of tuples being passed to the UDF in this iteration.IOExceptionpublic void cleanup()
Accumulatorcleanup in interface Accumulator<Boolean>public Boolean getValue()
AccumulatorgetValue in interface Accumulator<Boolean>Copyright © 2007-2012 The Apache Software Foundation