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