A - the type of the accumulatorpublic final class AggregateOperationBuilder<A> extends Object
AggregateOperation.withCreate() for more details.| Modifier and Type | Class and Description |
|---|---|
static class |
AggregateOperationBuilder.Arity1<T0,A>
The arity-1 variant of the aggregate operation builder.
|
static class |
AggregateOperationBuilder.Arity2<T0,T1,A>
The arity-2 variant of the aggregate operation builder.
|
static class |
AggregateOperationBuilder.Arity3<T0,T1,T2,A>
The arity-3 variant of the aggregate operation builder.
|
static class |
AggregateOperationBuilder.VarArity<A>
The variable-arity variant of the aggregate operation builder.
|
| Modifier and Type | Method and Description |
|---|---|
<T> AggregateOperationBuilder.Arity1<T,A> |
andAccumulate(DistributedBiConsumer<? super A,T> accumulateFn)
Registers the supplied
accumulate primitive. |
<T> AggregateOperationBuilder.VarArity<A> |
andAccumulate(Tag<T> tag,
DistributedBiConsumer<? super A,T> accumulateFn)
Registers the supplied
accumulate primitive for the stream tagged
with the supplied tag. |
<T0> AggregateOperationBuilder.Arity1<T0,A> |
andAccumulate0(DistributedBiConsumer<? super A,T0> accumulateFn0)
Registers the supplied
accumulate primitive for stream-0. |
@Nonnull public <T> AggregateOperationBuilder.Arity1<T,A> andAccumulate(@Nonnull DistributedBiConsumer<? super A,T> accumulateFn)
accumulate primitive. Also selects the
fixed-arity variant of the aggregate operation.
This method is synonymous with andAccumulate0(
DistributedBiConsumer), but makes more sense when defining a
simple, arity-1 aggregate operation.
T - the expected type of input itemaccumulateFn - the accumulate primitiveT0 type parameter@Nonnull public <T0> AggregateOperationBuilder.Arity1<T0,A> andAccumulate0(@Nonnull DistributedBiConsumer<? super A,T0> accumulateFn0)
accumulate primitive for stream-0.
Also selects the fixed-arity variant of the aggregate operation.T0 - the expected type of item in stream-0accumulateFn0 - the accumulate primitive for stream-0T0 type parameter@Nonnull public <T> AggregateOperationBuilder.VarArity<A> andAccumulate(@Nonnull Tag<T> tag, @Nonnull DistributedBiConsumer<? super A,T> accumulateFn)
accumulate primitive for the stream tagged
with the supplied tag. Also selects the variable-arity variant of the
aggregate operation.T - the expected type of input itemtag - the tag of the associated input streamaccumulateFn - the accumulate primitiveCopyright © 2017 Hazelcast, Inc.. All Rights Reserved.