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