T0
- type of the stream-0 itemK
- type of the grouping keypublic class GroupAggregateBuilder1<T0,K> extends Object
BatchStageWithKey.aggregateBuilder()
on one of the stages to co-group
and refer to that method's Javadoc for further details.
Note: this is not a builder of AggregateOperation
. If that' s what you are looking for, go here
.
Modifier and Type | Method and Description |
---|---|
<T> Tag<T> |
add(BatchStageWithKey<T,K> stage)
Adds another stage that will contribute its data to the aggregate
operation to be performed.
|
<R> BatchStage<Map.Entry<K,R>> |
build(AggregateOperation<?,R> aggrOp)
Creates and returns a pipeline stage that performs the co-grouping and
aggregation of pipeline stages registered with this builder object.
|
<R,OUT> BatchStage<OUT> |
build(AggregateOperation<?,R> aggrOp,
BiFunctionEx<? super K,? super R,OUT> mapToOutputFn)
Deprecated.
This is a leftover from an earlier development cycle of the
Pipeline API. Use
build(AggregateOperation) instead and add
a separate mapping stage with mapToOutputFn . |
Tag<T0> |
tag0()
Returns the tag corresponding to the pipeline stage this builder
was obtained from.
|
@Nonnull public Tag<T0> tag0()
AggregateOperation
that you'll pass to build(aggrOp)
.@Nonnull public <T> Tag<T> add(@Nonnull BatchStageWithKey<T,K> stage)
AggregateOperation
that you'll pass to
build()
.@Deprecated @Nonnull public <R,OUT> BatchStage<OUT> build(@Nonnull AggregateOperation<?,R> aggrOp, @Nonnull BiFunctionEx<? super K,? super R,OUT> mapToOutputFn)
build(AggregateOperation)
instead and add
a separate mapping stage with mapToOutputFn
.mapToOutputFn
to
the key and the corresponding result of the aggregate operation to
obtain the final output of the stage.R
- result type of the aggregate operationOUT
- output type of the returned stageaggrOp
- the aggregate operation to performmapToOutputFn
- the function to map the output. It must be
stateless and cooperative.@Nonnull public <R> BatchStage<Map.Entry<K,R>> build(@Nonnull AggregateOperation<?,R> aggrOp)
R
- output type of the returned stageaggrOp
- the aggregate operation to performCopyright © 2023 Hazelcast, Inc.. All rights reserved.