MCPcopy Create free account
hub / github.com/apache/storm / max

Method max

storm-client/src/jvm/org/apache/storm/trident/Stream.java:585–588  ·  view source on GitHub ↗

This aggregator operation computes the maximum of tuples in a stream by using the given comparator with TridentTuples. @param comparator comparator used in for finding maximum of two tuple values. @return the new stream with this operation.

(Comparator<TridentTuple> comparator)

Source from the content-addressed store, hash-verified

583 * @return the new stream with this operation.
584 */
585 public Stream max(Comparator<TridentTuple> comparator) {
586 Aggregator<ComparisonAggregator.State> max = new MaxWithComparator<>(comparator);
587 return comparableAggregateStream(null, max);
588 }
589
590 private <T> Stream comparableAggregateStream(String inputFieldName, Aggregator<T> aggregator) {
591 if (inputFieldName != null) {

Callers 15

buildVehiclesTopologyMethod · 0.95
buildVehiclesTopologyMethod · 0.95
WindowStateMethod · 0.80
convertToArrayMethod · 0.80
getValueMethod · 0.80
JCQueueMethod · 0.80
runMethod · 0.80
prepareMethod · 0.80

Calls 1