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

Method stateQuery

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

Queries the given stream state with the values in this stream as the keys. @param streamState the stream state @param the value type @return the result stream

(StreamState<T, V> streamState)

Source from the content-addressed store, hash-verified

364 * @return the result stream
365 */
366 public <V> PairStream<T, V> stateQuery(StreamState<T, V> streamState) {
367 // need field grouping for state query so that the query is routed to the correct task
368 Node newNode = partitionBy(VALUE, node.getParallelism()).addProcessorNode(new StateQueryProcessor<>(streamState), KEY_VALUE);
369 return new PairStream<>(streamBuilder, newNode);
370 }
371
372 Node getNode() {
373 return node;

Callers

nothing calls this directly

Calls 3

partitionByMethod · 0.95
addProcessorNodeMethod · 0.80
getParallelismMethod · 0.45

Tested by

no test coverage detected