Class MaxWithComparator<T>
- java.lang.Object
-
- org.apache.storm.trident.operation.BaseOperation
-
- org.apache.storm.trident.operation.BaseAggregator<ComparisonAggregator.State>
-
- org.apache.storm.trident.operation.builtin.ComparisonAggregator<T>
-
- org.apache.storm.trident.operation.builtin.MaxWithComparator<T>
-
- All Implemented Interfaces:
Serializable
,Aggregator<ComparisonAggregator.State>
,Operation
public class MaxWithComparator<T> extends ComparisonAggregator<T>
This aggregator computes the maximum of aggregated tuples in a stream. It uses givencomparator
for comparing two values in a stream.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.storm.trident.operation.builtin.ComparisonAggregator
ComparisonAggregator.State
-
-
Constructor Summary
Constructors Constructor Description MaxWithComparator(String inputFieldName, Comparator<T> comparator)
MaxWithComparator(Comparator<T> comparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected T
compare(T value1, T value2)
String
toString()
-
Methods inherited from class org.apache.storm.trident.operation.builtin.ComparisonAggregator
aggregate, complete, init, valueFromTuple
-
Methods inherited from class org.apache.storm.trident.operation.BaseOperation
cleanup, prepare
-
-
-
-
Constructor Detail
-
MaxWithComparator
public MaxWithComparator(Comparator<T> comparator)
-
MaxWithComparator
public MaxWithComparator(String inputFieldName, Comparator<T> comparator)
-
-