|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
In
- Input value typeOut
- Output value typepublic interface Accumulator<In,Out>
Collects a sequence of values and produces one value as a result.
Method Summary | |
---|---|
void |
accumulate(In value)
Accumulate another value. |
void |
cleanup()
Resets the internal state so that all values accumulated so far are forgotten. |
Out |
getFinal()
Get the output value corresponding to all input values accumulated so far. |
Method Detail |
---|
void accumulate(In value)
value
- Value to accumulateOut getFinal()
This may return null to indicate no record should be written.
void cleanup()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |