T0
- the type of item in stream-0T1
- the type of item in stream-1A
- the type of the accumulatorpublic static class AggregateOperationBuilder.Arity2<T0,T1,A> extends Object
andAccumulate2()
.Modifier and Type | Method and Description |
---|---|
<T2> AggregateOperationBuilder.Arity3<T0,T1,T2,A> |
andAccumulate2(DistributedBiConsumer<? super A,T2> accumulateFn2)
Registers the supplied
accumulate primitive for stream-2,
returning the arity-3 variant of the builder. |
AggregateOperationBuilder.Arity2<T0,T1,A> |
andCombine(DistributedBiConsumer<? super A,? super A> combineFn)
Registers the
combine primitive. |
AggregateOperationBuilder.Arity2<T0,T1,A> |
andDeduct(DistributedBiConsumer<? super A,? super A> deductFn)
Registers the
deduct primitive. |
<R> AggregateOperation2<T0,T1,A,R> |
andFinish(DistributedFunction<? super A,R> finishFn)
Constructs and returns an
AggregateOperation2 from the
current state of the builder and the supplied finish primitive. |
AggregateOperation2<T0,T1,A,A> |
andIdentityFinish()
Constructs and returns an
AggregateOperation2 from the current
state of the builder, with the identity function as the finish primitive. |
@Nonnull public <T2> AggregateOperationBuilder.Arity3<T0,T1,T2,A> andAccumulate2(@Nonnull DistributedBiConsumer<? super A,T2> accumulateFn2)
accumulate
primitive for stream-2,
returning the arity-3 variant of the builder.T2
- the expected type of item in stream-2accumulateFn2
- the accumulate
primitive for stream-2T2
type parameter@Nonnull public AggregateOperationBuilder.Arity2<T0,T1,A> andCombine(DistributedBiConsumer<? super A,? super A> combineFn)
combine
primitive.@Nonnull public AggregateOperationBuilder.Arity2<T0,T1,A> andDeduct(DistributedBiConsumer<? super A,? super A> deductFn)
deduct
primitive.@Nonnull public <R> AggregateOperation2<T0,T1,A,R> andFinish(@Nonnull DistributedFunction<? super A,R> finishFn)
AggregateOperation2
from the
current state of the builder and the supplied finish
primitive.@Nonnull public AggregateOperation2<T0,T1,A,A> andIdentityFinish()
AggregateOperation2
from the current
state of the builder, with the identity function as the finish
primitive.Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.