public class IsEmpty extends FilterFunc implements TerminatingAccumulator<java.lang.Boolean>
EvalFunc.SchemaType
log, 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() |
finish
getArgToFuncMapping, getCacheFiles, getInputSchema, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, isAsynchronous, outputSchema, progress, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warn
public java.lang.Boolean exec(Tuple input) throws java.io.IOException
EvalFunc
public boolean isFinished()
isFinished
in interface TerminatingAccumulator<java.lang.Boolean>
public void accumulate(Tuple b) throws java.io.IOException
Accumulator
accumulate
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.IOException
public void cleanup()
Accumulator
cleanup
in interface Accumulator<java.lang.Boolean>
public java.lang.Boolean getValue()
Accumulator
getValue
in interface Accumulator<java.lang.Boolean>
Copyright © 2007-2012 The Apache Software Foundation