public class CoAggregateOperationBuilder extends Object
AggregateOperations.coAggregateOperationBuilder()
. and refer to that
method's Javadoc for further details.Modifier and Type | Method and Description |
---|---|
<T,R> Tag<R> |
add(Tag<T> tag,
AggregateOperation1<? super T,?,? extends R> operation)
Registers the given aggregate operation with the tag corresponding to an
input to the co-aggregating operation being built.
|
AggregateOperation<Object[],ItemsByTag> |
build()
Builds and returns the
AggregateOperation . |
<R> AggregateOperation<Object[],R> |
build(FunctionEx<? super ItemsByTag,? extends R> exportFinishFn)
Builds and returns the multi-input
AggregateOperation . |
@Nonnull public <T,R> Tag<R> add(@Nonnull Tag<T> tag, @Nonnull AggregateOperation1<? super T,?,? extends R> operation)
Returns the tag you'll use to retrieve the results of aggregating this input.
T
- type of this operation's inputR
- the result type of this operation@Nonnull public AggregateOperation<Object[],ItemsByTag> build()
AggregateOperation
. Its result type is
ItemsByTag
containing all the tags you got from the
add(com.hazelcast.jet.datamodel.Tag<T>, com.hazelcast.jet.aggregate.AggregateOperation1<? super T, ?, ? extends R>)
method.@Nonnull public <R> AggregateOperation<Object[],R> build(@Nonnull FunctionEx<? super ItemsByTag,? extends R> exportFinishFn)
AggregateOperation
. It will
call the supplied exportFinishFn
to transform the ItemsByTag
it creates to the result type it emits as the actual result.exportFinishFn
- function to convert ItemsByTag
to the
target result type. It must be stateless and cooperative.Copyright © 2023 Hazelcast, Inc.. All rights reserved.