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

Method minBy

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

This aggregator operation computes the minimum of tuples by the given inputFieldName and it is assumed that its value is an instance of Comparable. If the value of tuple with field inputFieldName is not an instance of Comparable then it throws {@code ClassCastExceptio

(String inputFieldName)

Source from the content-addressed store, hash-verified

518 * @return the new stream with this operation.
519 */
520 public Stream minBy(String inputFieldName) {
521 Aggregator<ComparisonAggregator.State> min = new Min(inputFieldName);
522 return comparableAggregateStream(inputFieldName, min);
523 }
524
525 /**
526 * This aggregator operation computes the minimum of tuples by the given {@code inputFieldName} in a stream by using the given {@code

Callers 2

buildDevicesTopologyMethod · 0.95
buildVehiclesTopologyMethod · 0.95

Calls 1

Tested by

no test coverage detected