@InterfaceAudience.Public @InterfaceStability.Stable public interface Accumulator<T>
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.
|
T |
getValue()
Called when all tuples from current key have been passed to accumulate.
|
void accumulate(Tuple b) throws java.io.IOException
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
T getValue()
void cleanup()
Copyright © 2007-2012 The Apache Software Foundation