public class MaxWithComparator<T> extends ComparisonAggregator<T>
This aggregator computes the maximum of aggregated tuples in a stream. It uses given comparator
for comparing two values in a stream.
ComparisonAggregator.State
Constructor and Description |
---|
MaxWithComparator(Comparator<T> comparator) |
MaxWithComparator(String inputFieldName,
Comparator<T> comparator) |
Modifier and Type | Method and Description |
---|---|
protected T |
compare(T value1,
T value2) |
String |
toString() |
aggregate, complete, init, valueFromTuple
cleanup, prepare
public MaxWithComparator(Comparator<T> comparator)
public MaxWithComparator(String inputFieldName, Comparator<T> comparator)
Copyright © 2022 The Apache Software Foundation. All Rights Reserved.