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

Method peek

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

Returns a stream consisting of the elements of this stream, additionally performing the provided action on each element as they are consumed from the resulting stream. @param action the action to perform on the element as they are consumed from the stream @return the new stream

(Consumer<? super T> action)

Source from the content-addressed store, hash-verified

176 * @return the new stream
177 */
178 public Stream<T> peek(Consumer<? super T> action) {
179 return new Stream<>(streamBuilder, addProcessorNode(new PeekProcessor<>(action), node.getOutputFields(), true));
180 }
181
182 /**
183 * Aggregates the values in this stream using the aggregator. This does a global aggregation of values across all partitions.

Callers 1

seekToAvailableEntryMethod · 0.45

Calls 2

addProcessorNodeMethod · 0.95
getOutputFieldsMethod · 0.65

Tested by

no test coverage detected