Package com.hazelcast.jet.aggregate
Class AggregateOperationBuilder.Arity1<T0,A,R>  
java.lang.Object
com.hazelcast.jet.aggregate.AggregateOperationBuilder.Arity1<T0,A,R>  
- Type Parameters:
 T0- type of item in stream-0A- type of the accumulatorR- type of the aggregation result
- Enclosing class:
 - AggregateOperationBuilder<A>
 
The arity-1 variant of the aggregate operation builder. Can be raised to
 arity-2 by calling 
andAccumulate1().- 
Method Summary
Modifier and TypeMethodDescription<T1> AggregateOperationBuilder.Arity2<T0,T1, A, R> andAccumulate1(BiConsumerEx<? super A, ? super T1> accumulateFn1) Registers theAggregateOperation2.accumulateFn1()accumulate} primitive for stream-1, returning the arity-2 variant of the builder.andCombine(BiConsumerEx<? super A, ? super A> combineFn) Registers thecombineprimitive.andDeduct(BiConsumerEx<? super A, ? super A> deductFn) Registers thedeductprimitive.<R_NEW> AggregateOperationBuilder.Arity1<T0,A, R_NEW> andExport(FunctionEx<? super A, ? extends R_NEW> exportFn) Registers theexportprimitive.<R_NEW> AggregateOperation1<T0,A, R_NEW> andExportFinish(FunctionEx<? super A, ? extends R_NEW> exportFinishFn) andFinish(FunctionEx<? super A, ? extends R> finishFn) Registers thefinishprimitive. 
- 
Method Details
- 
andAccumulate1
@Nonnull public <T1> AggregateOperationBuilder.Arity2<T0,T1, andAccumulate1A, R> (@Nonnull BiConsumerEx<? super A, ? super T1> accumulateFn1) Registers theAggregateOperation2.accumulateFn1()accumulate} primitive for stream-1, returning the arity-2 variant of the builder.- Type Parameters:
 T1- the expected type of item in stream-1- Parameters:
 accumulateFn1- theaccumulateprimitive for stream-1. It must be stateless and cooperative.- Returns:
 - a new builder object that captures the 
T1type parameter 
 - 
andCombine
@Nonnull public AggregateOperationBuilder.Arity1<T0,A, andCombineR> (@Nullable BiConsumerEx<? super A, ? super A> combineFn) Registers thecombineprimitive.The given function must be stateless and cooperative.
 - 
andDeduct
@Nonnull public AggregateOperationBuilder.Arity1<T0,A, andDeductR> (@Nullable BiConsumerEx<? super A, ? super A> deductFn) Registers thedeductprimitive.The given function must be stateless and cooperative.
 - 
andExport
@Nonnull public <R_NEW> AggregateOperationBuilder.Arity1<T0,A, andExportR_NEW> (@Nonnull FunctionEx<? super A, ? extends R_NEW> exportFn) Registers theexportprimitive.The given function must be stateless and cooperative.
 - 
andFinish
@Nonnull public AggregateOperation1<T0,A, andFinishR> (@Nonnull FunctionEx<? super A, ? extends R> finishFn) Registers thefinishprimitive. Constructs and returns anAggregateOperation1from 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> AggregateOperation1<T0,A, andExportFinishR_NEW> (@Nonnull FunctionEx<? super A, ? extends R_NEW> exportFinishFn) Registers the supplied function as both theexportandfinishprimitive. Constructs and returns anAggregateOperation1from the current state of the builder.The given function must be stateless and cooperative.
- Throws:
 IllegalStateException- if theexportprimitive is already registered
 
 -