V - type of the input valueR - type of the output valuepublic interface Accumulator<V,R extends Serializable> extends Serializable, Cloneable
| Modifier and Type | Method and Description |
|---|---|
void |
add(V value) |
R |
getLocalValue() |
void |
merge(Accumulator<V,R> other)
Used by system internally to merge the collected parts of an accumulator
at the end of the job.
|
void |
resetLocal()
Reset the local value.
|
void add(V value)
value - The value to add to the accumulatorR getLocalValue()
void resetLocal()
void merge(Accumulator<V,R> other)
other - Reference to accumulator to merge in.Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.