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)
Aggregator
aggregate
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()
Aggregator
result
in interface Aggregator<Integer,Integer>
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.