public class IsEmpty extends FilterFunc implements TerminatingAccumulator<java.lang.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.
|
java.lang.Boolean |
exec(Tuple input)
This callback method must be implemented by all subclasses.
|
java.lang.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 java.lang.Boolean exec(Tuple input) throws java.io.IOException
EvalFuncpublic boolean isFinished()
isFinished in interface TerminatingAccumulator<java.lang.Boolean>public void accumulate(Tuple b) throws java.io.IOException
Accumulatoraccumulate in interface Accumulator<java.lang.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.java.io.IOExceptionpublic void cleanup()
Accumulatorcleanup in interface Accumulator<java.lang.Boolean>public java.lang.Boolean getValue()
AccumulatorgetValue in interface Accumulator<java.lang.Boolean>Copyright © 2007-2012 The Apache Software Foundation