T
- the type of the input itemspublic final class AllOfAggregationBuilder<T> extends Object
AggregateOperations.allOfBuilder()
.Modifier and Type | Method and Description |
---|---|
<R> Tag<R> |
add(AggregateOperation1<? super T,?,R> operation)
Adds the supplied aggregate operation to the composite.
|
AggregateOperation1<T,Object[],ItemsByTag> |
build()
Builds and returns the composite
AggregateOperation1 . |
<R> AggregateOperation1<T,Object[],R> |
build(FunctionEx<ItemsByTag,R> exportFinishFn)
Builds and returns the composite
AggregateOperation1 . |
@Nonnull public <R> Tag<R> add(@Nonnull AggregateOperation1<? super T,?,R> operation)
Tag
as a key in the ItemsByTag
you get in the result of
the composite aggregation.R
- the result type of this operation@Nonnull public AggregateOperation1<T,Object[],ItemsByTag> build()
AggregateOperation1
. Its result
type is ItemsByTag
containing all the tags you got from the
add(com.hazelcast.jet.aggregate.AggregateOperation1<? super T, ?, R>)
method.@Nonnull public <R> AggregateOperation1<T,Object[],R> build(@Nonnull FunctionEx<ItemsByTag,R> exportFinishFn)
AggregateOperation1
. It will
call the supplied exportFinishFn
to transform the ItemsByTag
it creates to the result type it emits as the actual result.exportFinishFn
- function that converts the ItemsByTag
to
the target result type. It must be stateless and cooperative.Copyright © 2024 Hazelcast, Inc.. All rights reserved.