Class ComparisonAggregator<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>
- All Implemented Interfaces:
Serializable
,Aggregator<ComparisonAggregator.State>
,Operation
- Direct Known Subclasses:
Max
,MaxWithComparator
,Min
,MinWithComparator
Abstract
Aggregator
for comparing two values in a stream.- See Also:
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
aggregate
(ComparisonAggregator.State state, TridentTuple tuple, TridentCollector collector) protected abstract T
void
complete
(ComparisonAggregator.State state, TridentCollector collector) init
(Object batchId, TridentCollector collector) protected T
valueFromTuple
(TridentTuple tuple) Methods inherited from class org.apache.storm.trident.operation.BaseOperation
cleanup, prepare
-
Constructor Details
-
ComparisonAggregator
-
-
Method Details
-
compare
-
init
-
aggregate
public void aggregate(ComparisonAggregator.State state, TridentTuple tuple, TridentCollector collector) -
valueFromTuple
-
complete
-