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

Method flatMap

storm-client/src/jvm/org/apache/storm/streams/Stream.java:119–121  ·  view source on GitHub ↗

Returns a stream consisting of the results of replacing each value of this stream with the contents produced by applying the provided mapping function to each value. This has the effect of applying a one-to-many transformation to the values of the stream, and then flattening the resulting elements i

(FlatMapFunction<? super T, ? extends R> function)

Source from the content-addressed store, hash-verified

117 * @return the new stream
118 */
119 public <R> Stream<R> flatMap(FlatMapFunction<? super T, ? extends R> function) {
120 return new Stream<>(streamBuilder, addProcessorNode(new FlatMapProcessor<>(function), VALUE));
121 }
122
123 /**
124 * Returns a stream consisting of the results of replacing each value of this stream with the key-value pairs produced by applying the

Callers

nothing calls this directly

Calls 1

addProcessorNodeMethod · 0.95

Tested by

no test coverage detected