A - accumulator typeS - splittable content typepublic interface SplitCollector<S extends Splittable<S>,A>
| Modifier and Type | Method and Description |
|---|---|
void |
accumulate(S splittable,
A accumulator)
Consumes the content of a splittable, collecting results
into the supplied accumulator.
|
A |
combine(A acc1,
A acc2)
Combines the content of two accumulators.
|
A |
createAccumulator()
Returns a new accumulator into which results can be collected.
|
A createAccumulator()
void accumulate(S splittable, A accumulator)
splittable - splittable objectaccumulator - accumulatorA combine(A acc1, A acc2)
acc1 - one input accumulatoracc2 - other input accumulator