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