Class IntegerSummaryAggregator.MaxIntegerAggregator
- java.lang.Object
-
- org.apache.flink.api.java.summarize.aggregation.IntegerSummaryAggregator.MaxIntegerAggregator
-
- All Implemented Interfaces:
Serializable,Aggregator<Integer,Integer>
- Enclosing class:
- IntegerSummaryAggregator
public static class IntegerSummaryAggregator.MaxIntegerAggregator extends Object implements Aggregator<Integer,Integer>
Aggregator for max operation.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MaxIntegerAggregator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaggregate(Integer value)Add a value to the current aggregation.voidcombine(Aggregator<Integer,Integer> other)Combine two aggregations of the same type.Integerresult()Provide the final result of the aggregation.
-
-
-
Method Detail
-
aggregate
public void aggregate(Integer value)
Description copied from interface:AggregatorAdd a value to the current aggregation.- Specified by:
aggregatein interfaceAggregator<Integer,Integer>
-
combine
public void combine(Aggregator<Integer,Integer> other)
Description copied from interface:AggregatorCombine two aggregations of the same type.(Implementations will need to do an unchecked cast).
- Specified by:
combinein interfaceAggregator<Integer,Integer>
-
result
public Integer result()
Description copied from interface:AggregatorProvide the final result of the aggregation.- Specified by:
resultin interfaceAggregator<Integer,Integer>
-
-