Package com.hazelcast.jet.aggregate
Class AggregateOperationBuilder.Arity3<T0,T1,T2,A,R>
java.lang.Object
com.hazelcast.jet.aggregate.AggregateOperationBuilder.Arity3<T0,T1,T2,A,R>
- Type Parameters:
T0- the type of item in stream-0T1- the type of item in stream-1T2- the type of item in stream-2A- the type of the accumulatorR- type of the aggregation result
- Enclosing class:
- AggregateOperationBuilder<A>
The arity-3 variant of the aggregate operation builder.
-
Method Summary
Modifier and TypeMethodDescriptionandCombine(BiConsumerEx<? super A, ? super A> combineFn) Registers thecombineprimitive.andDeduct(BiConsumerEx<? super A, ? super A> deductFn) Registers thedeductprimitive.<R_NEW> AggregateOperationBuilder.Arity3<T0,T1, T2, A, R_NEW> andExport(FunctionEx<? super A, ? extends R_NEW> exportFn) Registers theexportprimitive.<R_NEW> AggregateOperation3<T0,T1, T2, A, R_NEW> andExportFinish(FunctionEx<? super A, ? extends R_NEW> exportFinishFn) andFinish(FunctionEx<? super A, ? extends R> finishFn) Registers thefinishprimitive.
-
Method Details
-
andCombine
@Nonnull public AggregateOperationBuilder.Arity3<T0,T1, andCombineT2, A, R> (@Nullable BiConsumerEx<? super A, ? super A> combineFn) Registers thecombineprimitive.The given function must be stateless and cooperative.
-
andDeduct
@Nonnull public AggregateOperationBuilder.Arity3<T0,T1, andDeductT2, A, R> (@Nullable BiConsumerEx<? super A, ? super A> deductFn) Registers thedeductprimitive.The given function must be stateless and cooperative.
-
andExport
@Nonnull public <R_NEW> AggregateOperationBuilder.Arity3<T0,T1, andExportT2, A, R_NEW> (@Nonnull FunctionEx<? super A, ? extends R_NEW> exportFn) Registers theexportprimitive.The given function must be stateless and cooperative.
-
andFinish
@Nonnull public AggregateOperation3<T0,T1, andFinishT2, A, R> (@Nonnull FunctionEx<? super A, ? extends R> finishFn) Registers thefinishprimitive. Constructs and returns anAggregateOperation3from the current state of the builder.The given function must be stateless and cooperative.
- Throws:
IllegalStateException- if theexportprimitive was not registered
-
andExportFinish
@Nonnull public <R_NEW> AggregateOperation3<T0,T1, andExportFinishT2, A, R_NEW> (@Nonnull FunctionEx<? super A, ? extends R_NEW> exportFinishFn) Registers the supplied function as both theexportandfinishprimitive. Constructs and returns anAggregateOperation3from the current state of the builder.The given function must be stateless and cooperative.
- Throws:
IllegalStateException- if theexportprimitive is already registered
-