T
- the type to be aggregatedR
- the result type of the aggregation@Internal public interface Aggregator<T,R> extends Serializable
Modifier and Type | Method and Description |
---|---|
void |
aggregate(T value)
Add a value to the current aggregation.
|
void |
combine(Aggregator<T,R> otherSameType)
Combine two aggregations of the same type.
|
R |
result()
Provide the final result of the aggregation.
|
void aggregate(T value)
void combine(Aggregator<T,R> otherSameType)
(Implementations will need to do an unchecked cast).
R result()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.