public static class IntegerSummaryAggregator.SumIntegerAggregator extends Object implements Aggregator<Integer,Integer>
| Constructor and Description |
|---|
SumIntegerAggregator() |
| Modifier and Type | Method and Description |
|---|---|
void |
aggregate(Integer value)
Add a value to the current aggregation.
|
void |
combine(Aggregator<Integer,Integer> other)
Combine two aggregations of the same type.
|
Integer |
result()
Provide the final result of the aggregation.
|
public void aggregate(Integer value)
Aggregatoraggregate in interface Aggregator<Integer,Integer>public void combine(Aggregator<Integer,Integer> other)
Aggregator(Implementations will need to do an unchecked cast).
combine in interface Aggregator<Integer,Integer>public Integer result()
Aggregatorresult in interface Aggregator<Integer,Integer>Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.