Interface Aggregator<T,R>
-
- Type Parameters:
T- the type to be aggregatedR- the result type of the aggregation
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
BooleanSummaryAggregator,DoubleSummaryAggregator,DoubleSummaryAggregator.MaxDoubleAggregator,DoubleSummaryAggregator.MinDoubleAggregator,DoubleSummaryAggregator.SumDoubleAggregator,FloatSummaryAggregator,FloatSummaryAggregator.MaxFloatAggregator,FloatSummaryAggregator.MinFloatAggregator,FloatSummaryAggregator.SumFloatAggregator,IntegerSummaryAggregator,IntegerSummaryAggregator.MaxIntegerAggregator,IntegerSummaryAggregator.MinIntegerAggregator,IntegerSummaryAggregator.SumIntegerAggregator,LongSummaryAggregator,LongSummaryAggregator.MaxLongAggregator,LongSummaryAggregator.MinLongAggregator,NumericSummaryAggregator,ObjectSummaryAggregator,ShortSummaryAggregator,ShortSummaryAggregator.MaxShortAggregator,ShortSummaryAggregator.MinShortAggregator,ShortSummaryAggregator.SumShortAggregator,StringSummaryAggregator,TupleSummaryAggregator,ValueSummaryAggregator,ValueSummaryAggregator.BooleanValueSummaryAggregator,ValueSummaryAggregator.DoubleValueSummaryAggregator,ValueSummaryAggregator.FloatValueSummaryAggregator,ValueSummaryAggregator.IntegerValueSummaryAggregator,ValueSummaryAggregator.LongValueSummaryAggregator,ValueSummaryAggregator.ShortValueSummaryAggregator,ValueSummaryAggregator.StringValueSummaryAggregator
@Internal public interface Aggregator<T,R> extends Serializable
Generic interface for aggregation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaggregate(T value)Add a value to the current aggregation.voidcombine(Aggregator<T,R> otherSameType)Combine two aggregations of the same type.Rresult()Provide the final result of the aggregation.
-
-
-
Method Detail
-
aggregate
void aggregate(T value)
Add a value to the current aggregation.
-
combine
void combine(Aggregator<T,R> otherSameType)
Combine two aggregations of the same type.(Implementations will need to do an unchecked cast).
-
result
R result()
Provide the final result of the aggregation.
-
-