T
- the type of the stream itemA
- the type of the accumulatorR
- the type of the aggregation resultpublic interface AggregateOperation1<T,A,R> extends AggregateOperation<A,R>
AggregateOperation
to the "arity-1" case with
a single data stream being aggregated over.Modifier and Type | Method and Description |
---|---|
DistributedBiConsumer<? super A,? super T> |
accumulateFn()
A primitive that updates the accumulator state to account for a new
item.
|
<R_NEW> AggregateOperation1<T,A,R_NEW> |
withFinishFn(DistributedFunction<? super A,R_NEW> finishFn)
Returns a copy of this aggregate operation, but with the
finish
primitive replaced with the supplied one. |
accumulateFn, accumulateFn, combineFn, createFn, deductFn, finishFn, withCombiningAccumulateFn, withCreate
@Nonnull DistributedBiConsumer<? super A,? super T> accumulateFn()
@Nonnull <R_NEW> AggregateOperation1<T,A,R_NEW> withFinishFn(@Nonnull DistributedFunction<? super A,R_NEW> finishFn)
AggregateOperation
finish
primitive replaced with the supplied one.withFinishFn
in interface AggregateOperation<A,R>
R_NEW
- the new aggregation result typefinishFn
- the new finish
primitiveCopyright © 2017 Hazelcast, Inc.. All Rights Reserved.