| <!DOCTYPE HTML> |
| <html lang="de"> |
| <head> |
| <!-- Generated by javadoc (17) --> |
| <title>Stream (Storm 2.6.2 API)</title> |
| <meta name="viewport" content="width=device-width, initial-scale=1"> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <meta name="description" content="declaration: package: org.apache.storm.streams, class: Stream"> |
| <meta name="generator" content="javadoc/ClassWriterImpl"> |
| <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../script-dir/jquery-ui.min.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../jquery-ui.overrides.css" title="Style"> |
| <script type="text/javascript" src="../../../../script.js"></script> |
| <script type="text/javascript" src="../../../../script-dir/jquery-3.6.1.min.js"></script> |
| <script type="text/javascript" src="../../../../script-dir/jquery-ui.min.js"></script> |
| </head> |
| <body class="class-declaration-page"> |
| <script type="text/javascript">var evenRowColor = "even-row-color"; |
| var oddRowColor = "odd-row-color"; |
| var tableTab = "table-tab"; |
| var activeTableTab = "active-table-tab"; |
| var pathtoroot = "../../../../"; |
| loadScripts(document, 'script');</script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <div class="flex-box"> |
| <header role="banner" class="flex-header"> |
| <nav role="navigation"> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="top-nav" id="navbar-top"> |
| <div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div> |
| <ul id="navbar-top-firstrow" class="nav-list" title="Navigation"> |
| <li><a href="../../../../index.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="nav-bar-cell1-rev">Class</li> |
| <li><a href="class-use/Stream.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html#class">Help</a></li> |
| </ul> |
| </div> |
| <div class="sub-nav"> |
| <div> |
| <ul class="sub-nav-list"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field-summary">Field</a> | </li> |
| <li>Constr | </li> |
| <li><a href="#method-summary">Method</a></li> |
| </ul> |
| <ul class="sub-nav-list"> |
| <li>Detail: </li> |
| <li><a href="#field-detail">Field</a> | </li> |
| <li>Constr | </li> |
| <li><a href="#method-detail">Method</a></li> |
| </ul> |
| </div> |
| <div class="nav-list-search"><label for="search-input">SEARCH:</label> |
| <input type="text" id="search-input" value="search" disabled="disabled"> |
| <input type="reset" id="reset-button" value="reset" disabled="disabled"> |
| </div> |
| </div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <span class="skip-nav" id="skip-navbar-top"></span></nav> |
| </header> |
| <div class="flex-content"> |
| <main role="main"> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="sub-title"><span class="package-label-in-type">Package</span> <a href="package-summary.html">org.apache.storm.streams</a></div> |
| <h1 title="Class Stream" class="title">Class Stream<T></h1> |
| </div> |
| <div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a> |
| <div class="inheritance">org.apache.storm.streams.Stream<T></div> |
| </div> |
| <section class="class-description" id="class-description"> |
| <dl class="notes"> |
| <dt>Type Parameters:</dt> |
| <dd><code>T</code> - the type of the value</dd> |
| </dl> |
| <dl class="notes"> |
| <dt>Direct Known Subclasses:</dt> |
| <dd><code><a href="PairStream.html" title="class in org.apache.storm.streams">PairStream</a></code></dd> |
| </dl> |
| <hr> |
| <div class="type-signature"><span class="annotations"><a href="../annotation/InterfaceStability.Unstable.html" title="annotation in org.apache.storm.annotation">@Unstable</a> |
| </span><span class="modifiers">public class </span><span class="element-name type-name-label">Stream<T></span> |
| <span class="extends-implements">extends <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></span></div> |
| <div class="block">Represents a stream of values.</div> |
| </section> |
| <section class="summary"> |
| <ul class="summary-list"> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <li> |
| <section class="field-summary" id="field-summary"> |
| <h2>Field Summary</h2> |
| <div class="caption"><span>Fields</span></div> |
| <div class="summary-table three-column-summary"> |
| <div class="table-header col-first">Modifier and Type</div> |
| <div class="table-header col-second">Field</div> |
| <div class="table-header col-last">Description</div> |
| <div class="col-first even-row-color"><code>protected static final <a href="../tuple/Fields.html" title="class in org.apache.storm.tuple">Fields</a></code></div> |
| <div class="col-second even-row-color"><code><a href="#KEY" class="member-name-link">KEY</a></code></div> |
| <div class="col-last even-row-color"> </div> |
| <div class="col-first odd-row-color"><code>protected static final <a href="../tuple/Fields.html" title="class in org.apache.storm.tuple">Fields</a></code></div> |
| <div class="col-second odd-row-color"><code><a href="#KEY_VALUE" class="member-name-link">KEY_VALUE</a></code></div> |
| <div class="col-last odd-row-color"> </div> |
| <div class="col-first even-row-color"><code>protected final org.apache.storm.streams.Node</code></div> |
| <div class="col-second even-row-color"><code><a href="#node" class="member-name-link">node</a></code></div> |
| <div class="col-last even-row-color"> </div> |
| <div class="col-first odd-row-color"><code>protected final <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div> |
| <div class="col-second odd-row-color"><code><a href="#stream" class="member-name-link">stream</a></code></div> |
| <div class="col-last odd-row-color"> </div> |
| <div class="col-first even-row-color"><code>protected final <a href="StreamBuilder.html" title="class in org.apache.storm.streams">StreamBuilder</a></code></div> |
| <div class="col-second even-row-color"><code><a href="#streamBuilder" class="member-name-link">streamBuilder</a></code></div> |
| <div class="col-last even-row-color"> </div> |
| <div class="col-first odd-row-color"><code>protected static final <a href="../tuple/Fields.html" title="class in org.apache.storm.tuple">Fields</a></code></div> |
| <div class="col-second odd-row-color"><code><a href="#VALUE" class="member-name-link">VALUE</a></code></div> |
| <div class="col-last odd-row-color"> </div> |
| </div> |
| </section> |
| </li> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <li> |
| <section class="method-summary" id="method-summary"> |
| <h2>Method Summary</h2> |
| <div id="method-summary-table"> |
| <div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-controls="method-summary-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table', 3)" class="active-table-tab">All Methods</button><button id="method-summary-table-tab2" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab2', 3)" class="table-tab">Instance Methods</button><button id="method-summary-table-tab4" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab4', 3)" class="table-tab">Concrete Methods</button></div> |
| <div id="method-summary-table.tabpanel" role="tabpanel"> |
| <div class="summary-table three-column-summary" aria-labelledby="method-summary-table-tab0"> |
| <div class="table-header col-first">Modifier and Type</div> |
| <div class="table-header col-second">Method</div> |
| <div class="table-header col-last">Description</div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><A,<wbr> |
| R> <a href="Stream.html" title="class in org.apache.storm.streams">Stream</a><R></code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#aggregate(org.apache.storm.streams.operations.CombinerAggregator)" class="member-name-link">aggregate</a><wbr>(<a href="operations/CombinerAggregator.html" title="interface in org.apache.storm.streams.operations">CombinerAggregator</a><? super <a href="Stream.html" title="type parameter in Stream">T</a>,<wbr>A,<wbr>? extends R> aggregator)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Aggregates the values in this stream using the aggregator.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><R> <a href="Stream.html" title="class in org.apache.storm.streams">Stream</a><R></code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#aggregate(R,org.apache.storm.streams.operations.BiFunction,org.apache.storm.streams.operations.BiFunction)" class="member-name-link">aggregate</a><wbr>(R initialValue, |
| <a href="operations/BiFunction.html" title="interface in org.apache.storm.streams.operations">BiFunction</a><? super R,<wbr>? super <a href="Stream.html" title="type parameter in Stream">T</a>,<wbr>? extends R> accumulator, |
| <a href="operations/BiFunction.html" title="interface in org.apache.storm.streams.operations">BiFunction</a><? super R,<wbr>? super R,<wbr>? extends R> combiner)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Aggregates the values in this stream using the given initial value, accumulator and combiner.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="Stream.html" title="class in org.apache.storm.streams">Stream</a><<a href="Stream.html" title="type parameter in Stream">T</a>>[]</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#branch(org.apache.storm.streams.operations.Predicate...)" class="member-name-link">branch</a><wbr>(<a href="operations/Predicate.html" title="interface in org.apache.storm.streams.operations">Predicate</a><? super <a href="Stream.html" title="type parameter in Stream">T</a>>... predicates)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Returns an array of streams by splitting the given stream into multiple branches based on the given predicates.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="Stream.html" title="class in org.apache.storm.streams">Stream</a><<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Long.html" title="class or interface in java.lang" class="external-link">Long</a>></code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#count()" class="member-name-link">count</a>()</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Counts the number of values in this stream.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="Stream.html" title="class in org.apache.storm.streams">Stream</a><<a href="Stream.html" title="type parameter in Stream">T</a>></code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#filter(org.apache.storm.streams.operations.Predicate)" class="member-name-link">filter</a><wbr>(<a href="operations/Predicate.html" title="interface in org.apache.storm.streams.operations">Predicate</a><? super <a href="Stream.html" title="type parameter in Stream">T</a>> predicate)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Returns a stream consisting of the elements of this stream that matches the given filter.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><R> <a href="Stream.html" title="class in org.apache.storm.streams">Stream</a><R></code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#flatMap(org.apache.storm.streams.operations.FlatMapFunction)" class="member-name-link">flatMap</a><wbr>(<a href="operations/FlatMapFunction.html" title="interface in org.apache.storm.streams.operations">FlatMapFunction</a><? super <a href="Stream.html" title="type parameter in Stream">T</a>,<wbr>? extends R> function)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">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.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><K,<wbr> |
| V> <a href="PairStream.html" title="class in org.apache.storm.streams">PairStream</a><K,<wbr>V></code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#flatMapToPair(org.apache.storm.streams.operations.PairFlatMapFunction)" class="member-name-link">flatMapToPair</a><wbr>(<a href="operations/PairFlatMapFunction.html" title="interface in org.apache.storm.streams.operations">PairFlatMapFunction</a><? super <a href="Stream.html" title="type parameter in Stream">T</a>,<wbr>? extends K,<wbr>? extends V> function)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Returns a stream consisting of the results of replacing each value of this stream with the key-value pairs produced by applying the |
| provided mapping function to each value.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#forEach(org.apache.storm.streams.operations.Consumer)" class="member-name-link">forEach</a><wbr>(<a href="operations/Consumer.html" title="interface in org.apache.storm.streams.operations">Consumer</a><? super <a href="Stream.html" title="type parameter in Stream">T</a>> action)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Performs an action for each element of this stream.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><R> <a href="Stream.html" title="class in org.apache.storm.streams">Stream</a><R></code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#map(org.apache.storm.streams.operations.Function)" class="member-name-link">map</a><wbr>(<a href="operations/Function.html" title="interface in org.apache.storm.streams.operations">Function</a><? super <a href="Stream.html" title="type parameter in Stream">T</a>,<wbr>? extends R> function)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Returns a stream consisting of the result of applying the given mapping function to the values of this stream.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><K,<wbr> |
| V> <a href="PairStream.html" title="class in org.apache.storm.streams">PairStream</a><K,<wbr>V></code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#mapToPair(org.apache.storm.streams.operations.PairFunction)" class="member-name-link">mapToPair</a><wbr>(<a href="operations/PairFunction.html" title="interface in org.apache.storm.streams.operations">PairFunction</a><? super <a href="Stream.html" title="type parameter in Stream">T</a>,<wbr>? extends K,<wbr>? extends V> function)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Returns a stream of key-value pairs by applying a <a href="operations/PairFunction.html" title="interface in org.apache.storm.streams.operations"><code>PairFunction</code></a> on each value of this stream.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>protected <a href="Stream.html" title="class in org.apache.storm.streams">Stream</a><<a href="Stream.html" title="type parameter in Stream">T</a>></code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#partitionBy(org.apache.storm.tuple.Fields,int)" class="member-name-link">partitionBy</a><wbr>(<a href="../tuple/Fields.html" title="class in org.apache.storm.tuple">Fields</a> fields, |
| int parallelism)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="Stream.html" title="class in org.apache.storm.streams">Stream</a><<a href="Stream.html" title="type parameter in Stream">T</a>></code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#peek(org.apache.storm.streams.operations.Consumer)" class="member-name-link">peek</a><wbr>(<a href="operations/Consumer.html" title="interface in org.apache.storm.streams.operations">Consumer</a><? super <a href="Stream.html" title="type parameter in Stream">T</a>> action)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">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.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#print()" class="member-name-link">print</a>()</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Print the values in this stream.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="Stream.html" title="class in org.apache.storm.streams">Stream</a><<a href="Stream.html" title="type parameter in Stream">T</a>></code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#reduce(org.apache.storm.streams.operations.Reducer)" class="member-name-link">reduce</a><wbr>(<a href="operations/Reducer.html" title="interface in org.apache.storm.streams.operations">Reducer</a><<a href="Stream.html" title="type parameter in Stream">T</a>> reducer)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Performs a reduction on the elements of this stream, by repeatedly applying the reducer.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="Stream.html" title="class in org.apache.storm.streams">Stream</a><<a href="Stream.html" title="type parameter in Stream">T</a>></code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#repartition(int)" class="member-name-link">repartition</a><wbr>(int parallelism)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Returns a new stream with the given value of parallelism.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><V> <a href="PairStream.html" title="class in org.apache.storm.streams">PairStream</a><<a href="Stream.html" title="type parameter in Stream">T</a>,<wbr>V></code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#stateQuery(org.apache.storm.streams.StreamState)" class="member-name-link">stateQuery</a><wbr>(<a href="StreamState.html" title="class in org.apache.storm.streams">StreamState</a><<a href="Stream.html" title="type parameter in Stream">T</a>,<wbr>V> streamState)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Queries the given stream state with the values in this stream as the keys.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#to(org.apache.storm.topology.IBasicBolt)" class="member-name-link">to</a><wbr>(<a href="../topology/IBasicBolt.html" title="interface in org.apache.storm.topology">IBasicBolt</a> bolt)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Sends the elements of this stream to a bolt.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#to(org.apache.storm.topology.IBasicBolt,int)" class="member-name-link">to</a><wbr>(<a href="../topology/IBasicBolt.html" title="interface in org.apache.storm.topology">IBasicBolt</a> bolt, |
| int parallelism)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Sends the elements of this stream to a bolt.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#to(org.apache.storm.topology.IRichBolt)" class="member-name-link">to</a><wbr>(<a href="../topology/IRichBolt.html" title="interface in org.apache.storm.topology">IRichBolt</a> bolt)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Sends the elements of this stream to a bolt.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#to(org.apache.storm.topology.IRichBolt,int)" class="member-name-link">to</a><wbr>(<a href="../topology/IRichBolt.html" title="interface in org.apache.storm.topology">IRichBolt</a> bolt, |
| int parallelism)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Sends the elements of this stream to a bolt.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="Stream.html" title="class in org.apache.storm.streams">Stream</a><<a href="Stream.html" title="type parameter in Stream">T</a>></code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#window(org.apache.storm.streams.windowing.Window)" class="member-name-link">window</a><wbr>(<a href="windowing/Window.html" title="interface in org.apache.storm.streams.windowing">Window</a><?,<wbr>?> window)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Returns a new stream consisting of the elements that fall within the window as specified by the window parameter.</div> |
| </div> |
| </div> |
| </div> |
| </div> |
| <div class="inherited-list"> |
| <h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class java.lang.<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></h3> |
| <code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#clone()" title="class or interface in java.lang" class="external-link">clone</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface in java.lang" class="external-link">wait</a></code></div> |
| </section> |
| </li> |
| </ul> |
| </section> |
| <section class="details"> |
| <ul class="details-list"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <li> |
| <section class="field-details" id="field-detail"> |
| <h2>Field Details</h2> |
| <ul class="member-list"> |
| <li> |
| <section class="detail" id="KEY"> |
| <h3>KEY</h3> |
| <div class="member-signature"><span class="modifiers">protected static final</span> <span class="return-type"><a href="../tuple/Fields.html" title="class in org.apache.storm.tuple">Fields</a></span> <span class="element-name">KEY</span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="VALUE"> |
| <h3>VALUE</h3> |
| <div class="member-signature"><span class="modifiers">protected static final</span> <span class="return-type"><a href="../tuple/Fields.html" title="class in org.apache.storm.tuple">Fields</a></span> <span class="element-name">VALUE</span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="KEY_VALUE"> |
| <h3>KEY_VALUE</h3> |
| <div class="member-signature"><span class="modifiers">protected static final</span> <span class="return-type"><a href="../tuple/Fields.html" title="class in org.apache.storm.tuple">Fields</a></span> <span class="element-name">KEY_VALUE</span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="streamBuilder"> |
| <h3>streamBuilder</h3> |
| <div class="member-signature"><span class="modifiers">protected final</span> <span class="return-type"><a href="StreamBuilder.html" title="class in org.apache.storm.streams">StreamBuilder</a></span> <span class="element-name">streamBuilder</span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="node"> |
| <h3>node</h3> |
| <div class="member-signature"><span class="modifiers">protected final</span> <span class="return-type">org.apache.storm.streams.Node</span> <span class="element-name">node</span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="stream"> |
| <h3>stream</h3> |
| <div class="member-signature"><span class="modifiers">protected final</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">stream</span></div> |
| </section> |
| </li> |
| </ul> |
| </section> |
| </li> |
| <!-- ============ METHOD DETAIL ========== --> |
| <li> |
| <section class="method-details" id="method-detail"> |
| <h2>Method Details</h2> |
| <ul class="member-list"> |
| <li> |
| <section class="detail" id="filter(org.apache.storm.streams.operations.Predicate)"> |
| <h3>filter</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="Stream.html" title="class in org.apache.storm.streams">Stream</a><<a href="Stream.html" title="type parameter in Stream">T</a>></span> <span class="element-name">filter</span><wbr><span class="parameters">(<a href="operations/Predicate.html" title="interface in org.apache.storm.streams.operations">Predicate</a><? super <a href="Stream.html" title="type parameter in Stream">T</a>> predicate)</span></div> |
| <div class="block">Returns a stream consisting of the elements of this stream that matches the given filter.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>predicate</code> - the predicate to apply to each element to determine if it should be included</dd> |
| <dt>Returns:</dt> |
| <dd>the new stream</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="map(org.apache.storm.streams.operations.Function)"> |
| <h3>map</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="type-parameters"><R></span> <span class="return-type"><a href="Stream.html" title="class in org.apache.storm.streams">Stream</a><R></span> <span class="element-name">map</span><wbr><span class="parameters">(<a href="operations/Function.html" title="interface in org.apache.storm.streams.operations">Function</a><? super <a href="Stream.html" title="type parameter in Stream">T</a>,<wbr>? extends R> function)</span></div> |
| <div class="block">Returns a stream consisting of the result of applying the given mapping function to the values of this stream.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>function</code> - a mapping function to be applied to each value in this stream.</dd> |
| <dt>Returns:</dt> |
| <dd>the new stream</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="mapToPair(org.apache.storm.streams.operations.PairFunction)"> |
| <h3>mapToPair</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="type-parameters"><K,<wbr> |
| V></span> <span class="return-type"><a href="PairStream.html" title="class in org.apache.storm.streams">PairStream</a><K,<wbr>V></span> <span class="element-name">mapToPair</span><wbr><span class="parameters">(<a href="operations/PairFunction.html" title="interface in org.apache.storm.streams.operations">PairFunction</a><? super <a href="Stream.html" title="type parameter in Stream">T</a>,<wbr>? extends K,<wbr>? extends V> function)</span></div> |
| <div class="block">Returns a stream of key-value pairs by applying a <a href="operations/PairFunction.html" title="interface in org.apache.storm.streams.operations"><code>PairFunction</code></a> on each value of this stream.</div> |
| <dl class="notes"> |
| <dt>Type Parameters:</dt> |
| <dd><code>K</code> - the key type</dd> |
| <dd><code>V</code> - the value type</dd> |
| <dt>Parameters:</dt> |
| <dd><code>function</code> - the mapping function to be applied to each value in this stream</dd> |
| <dt>Returns:</dt> |
| <dd>the new stream of key-value pairs</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="flatMap(org.apache.storm.streams.operations.FlatMapFunction)"> |
| <h3>flatMap</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="type-parameters"><R></span> <span class="return-type"><a href="Stream.html" title="class in org.apache.storm.streams">Stream</a><R></span> <span class="element-name">flatMap</span><wbr><span class="parameters">(<a href="operations/FlatMapFunction.html" title="interface in org.apache.storm.streams.operations">FlatMapFunction</a><? super <a href="Stream.html" title="type parameter in Stream">T</a>,<wbr>? extends R> function)</span></div> |
| <div class="block">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 into a new stream.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>function</code> - a mapping function to be applied to each value in this stream which produces new values.</dd> |
| <dt>Returns:</dt> |
| <dd>the new stream</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="flatMapToPair(org.apache.storm.streams.operations.PairFlatMapFunction)"> |
| <h3>flatMapToPair</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="type-parameters"><K,<wbr> |
| V></span> <span class="return-type"><a href="PairStream.html" title="class in org.apache.storm.streams">PairStream</a><K,<wbr>V></span> <span class="element-name">flatMapToPair</span><wbr><span class="parameters">(<a href="operations/PairFlatMapFunction.html" title="interface in org.apache.storm.streams.operations">PairFlatMapFunction</a><? super <a href="Stream.html" title="type parameter in Stream">T</a>,<wbr>? extends K,<wbr>? extends V> function)</span></div> |
| <div class="block">Returns a stream consisting of the results of replacing each value of this stream with the key-value pairs produced by applying the |
| provided mapping function to each value.</div> |
| <dl class="notes"> |
| <dt>Type Parameters:</dt> |
| <dd><code>K</code> - the key type</dd> |
| <dd><code>V</code> - the value type</dd> |
| <dt>Parameters:</dt> |
| <dd><code>function</code> - the mapping function to be applied to each value in this stream which produces new key-value pairs.</dd> |
| <dt>Returns:</dt> |
| <dd>the new stream of key-value pairs</dd> |
| <dt>See Also:</dt> |
| <dd> |
| <ul class="see-list"> |
| <li><a href="#flatMap(org.apache.storm.streams.operations.FlatMapFunction)"><code>flatMap(FlatMapFunction)</code></a></li> |
| <li><a href="#mapToPair(org.apache.storm.streams.operations.PairFunction)"><code>mapToPair(PairFunction)</code></a></li> |
| </ul> |
| </dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="window(org.apache.storm.streams.windowing.Window)"> |
| <h3>window</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="Stream.html" title="class in org.apache.storm.streams">Stream</a><<a href="Stream.html" title="type parameter in Stream">T</a>></span> <span class="element-name">window</span><wbr><span class="parameters">(<a href="windowing/Window.html" title="interface in org.apache.storm.streams.windowing">Window</a><?,<wbr>?> window)</span></div> |
| <div class="block">Returns a new stream consisting of the elements that fall within the window as specified by the window parameter. The <a href="windowing/Window.html" title="interface in org.apache.storm.streams.windowing"><code>Window</code></a> |
| specification could be used to specify sliding or tumbling windows based on time duration or event count. For example, |
| <pre> |
| // time duration based sliding window |
| stream.window(SlidingWindows.of(Duration.minutes(10), Duration.minutes(1)); |
| |
| // count based sliding window |
| stream.window(SlidingWindows.of(Count.(10), Count.of(2))); |
| |
| // time duration based tumbling window |
| stream.window(TumblingWindows.of(Duration.seconds(10)); |
| </pre></div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>window</code> - the window configuration</dd> |
| <dt>Returns:</dt> |
| <dd>the new stream</dd> |
| <dt>See Also:</dt> |
| <dd> |
| <ul class="see-list"> |
| <li><a href="windowing/SlidingWindows.html" title="class in org.apache.storm.streams.windowing"><code>SlidingWindows</code></a></li> |
| <li><a href="windowing/TumblingWindows.html" title="class in org.apache.storm.streams.windowing"><code>TumblingWindows</code></a></li> |
| </ul> |
| </dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="forEach(org.apache.storm.streams.operations.Consumer)"> |
| <h3>forEach</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">forEach</span><wbr><span class="parameters">(<a href="operations/Consumer.html" title="interface in org.apache.storm.streams.operations">Consumer</a><? super <a href="Stream.html" title="type parameter in Stream">T</a>> action)</span></div> |
| <div class="block">Performs an action for each element of this stream.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>action</code> - an action to perform on the elements</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="peek(org.apache.storm.streams.operations.Consumer)"> |
| <h3>peek</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="Stream.html" title="class in org.apache.storm.streams">Stream</a><<a href="Stream.html" title="type parameter in Stream">T</a>></span> <span class="element-name">peek</span><wbr><span class="parameters">(<a href="operations/Consumer.html" title="interface in org.apache.storm.streams.operations">Consumer</a><? super <a href="Stream.html" title="type parameter in Stream">T</a>> action)</span></div> |
| <div class="block">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.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>action</code> - the action to perform on the element as they are consumed from the stream</dd> |
| <dt>Returns:</dt> |
| <dd>the new stream</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="aggregate(org.apache.storm.streams.operations.CombinerAggregator)"> |
| <h3>aggregate</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="type-parameters"><A,<wbr> |
| R></span> <span class="return-type"><a href="Stream.html" title="class in org.apache.storm.streams">Stream</a><R></span> <span class="element-name">aggregate</span><wbr><span class="parameters">(<a href="operations/CombinerAggregator.html" title="interface in org.apache.storm.streams.operations">CombinerAggregator</a><? super <a href="Stream.html" title="type parameter in Stream">T</a>,<wbr>A,<wbr>? extends R> aggregator)</span></div> |
| <div class="block">Aggregates the values in this stream using the aggregator. This does a global aggregation of values across all partitions. |
| <p> |
| If the stream is windowed, the aggregate result is emitted after each window activation and represents the aggregate of elements that |
| fall within that window. If the stream is not windowed, the aggregate result is emitted as each new element in the stream is |
| processed. |
| </p></div> |
| <dl class="notes"> |
| <dt>Type Parameters:</dt> |
| <dd><code>A</code> - the accumulator type</dd> |
| <dd><code>R</code> - the result type</dd> |
| <dt>Parameters:</dt> |
| <dd><code>aggregator</code> - the aggregator</dd> |
| <dt>Returns:</dt> |
| <dd>the new stream</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="aggregate(R,org.apache.storm.streams.operations.BiFunction,org.apache.storm.streams.operations.BiFunction)"> |
| <h3 id="aggregate(java.lang.Object,org.apache.storm.streams.operations.BiFunction,org.apache.storm.streams.operations.BiFunction)">aggregate</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="type-parameters"><R></span> <span class="return-type"><a href="Stream.html" title="class in org.apache.storm.streams">Stream</a><R></span> <span class="element-name">aggregate</span><wbr><span class="parameters">(R initialValue, |
| <a href="operations/BiFunction.html" title="interface in org.apache.storm.streams.operations">BiFunction</a><? super R,<wbr>? super <a href="Stream.html" title="type parameter in Stream">T</a>,<wbr>? extends R> accumulator, |
| <a href="operations/BiFunction.html" title="interface in org.apache.storm.streams.operations">BiFunction</a><? super R,<wbr>? super R,<wbr>? extends R> combiner)</span></div> |
| <div class="block">Aggregates the values in this stream using the given initial value, accumulator and combiner. This does a global aggregation of |
| values across all partitions. |
| <p> |
| If the stream is windowed, the aggregate result is emitted after each window activation and represents the aggregate of elements that |
| fall within that window. If the stream is not windowed, the aggregate result is emitted as each new element in the stream is |
| processed. |
| </p></div> |
| <dl class="notes"> |
| <dt>Type Parameters:</dt> |
| <dd><code>R</code> - the result type</dd> |
| <dt>Parameters:</dt> |
| <dd><code>initialValue</code> - the initial value of the result</dd> |
| <dd><code>accumulator</code> - the accumulator</dd> |
| <dd><code>combiner</code> - the combiner</dd> |
| <dt>Returns:</dt> |
| <dd>the new stream</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="count()"> |
| <h3>count</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="Stream.html" title="class in org.apache.storm.streams">Stream</a><<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Long.html" title="class or interface in java.lang" class="external-link">Long</a>></span> <span class="element-name">count</span>()</div> |
| <div class="block">Counts the number of values in this stream. This does a global count of values across all partitions. |
| <p> |
| If the stream is windowed, the counts are emitted after each window activation and represents the count of elements that fall within |
| that window. If the stream is not windowed, the count is emitted as each new element in the stream is processed. |
| </p></div> |
| <dl class="notes"> |
| <dt>Returns:</dt> |
| <dd>the new stream</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="reduce(org.apache.storm.streams.operations.Reducer)"> |
| <h3>reduce</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="Stream.html" title="class in org.apache.storm.streams">Stream</a><<a href="Stream.html" title="type parameter in Stream">T</a>></span> <span class="element-name">reduce</span><wbr><span class="parameters">(<a href="operations/Reducer.html" title="interface in org.apache.storm.streams.operations">Reducer</a><<a href="Stream.html" title="type parameter in Stream">T</a>> reducer)</span></div> |
| <div class="block">Performs a reduction on the elements of this stream, by repeatedly applying the reducer. This does a global reduction of values |
| across all partitions. |
| <p> |
| If the stream is windowed, the result is emitted after each window activation and represents the reduction of elements that fall |
| within that window. If the stream is not windowed, the result is emitted as each new element in the stream is processed. |
| </p></div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>reducer</code> - the reducer</dd> |
| <dt>Returns:</dt> |
| <dd>the new stream</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="repartition(int)"> |
| <h3>repartition</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="Stream.html" title="class in org.apache.storm.streams">Stream</a><<a href="Stream.html" title="type parameter in Stream">T</a>></span> <span class="element-name">repartition</span><wbr><span class="parameters">(int parallelism)</span></div> |
| <div class="block">Returns a new stream with the given value of parallelism. Further operations on this stream would execute at this level of |
| parallelism.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>parallelism</code> - the parallelism value</dd> |
| <dt>Returns:</dt> |
| <dd>the new stream</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="branch(org.apache.storm.streams.operations.Predicate...)"> |
| <h3>branch</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="Stream.html" title="class in org.apache.storm.streams">Stream</a><<a href="Stream.html" title="type parameter in Stream">T</a>>[]</span> <span class="element-name">branch</span><wbr><span class="parameters">(<a href="operations/Predicate.html" title="interface in org.apache.storm.streams.operations">Predicate</a><? super <a href="Stream.html" title="type parameter in Stream">T</a>>... predicates)</span></div> |
| <div class="block">Returns an array of streams by splitting the given stream into multiple branches based on the given predicates. The predicates are |
| applied in the given order to the values of this stream and the result is forwarded to the corresponding (index based) result stream |
| based on the (index of) predicate that matches. |
| <p> |
| <b>Note:</b> If none of the predicates match a value, that value is dropped. |
| </p></div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>predicates</code> - the predicates</dd> |
| <dt>Returns:</dt> |
| <dd>an array of result streams (branches) corresponding to the given predicates</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="print()"> |
| <h3>print</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">print</span>()</div> |
| <div class="block">Print the values in this stream.</div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="to(org.apache.storm.topology.IRichBolt)"> |
| <h3>to</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">to</span><wbr><span class="parameters">(<a href="../topology/IRichBolt.html" title="interface in org.apache.storm.topology">IRichBolt</a> bolt)</span></div> |
| <div class="block">Sends the elements of this stream to a bolt. This could be used to plug in existing bolts as sinks in the stream, for e.g. a <code> |
| RedisStoreBolt</code>. The bolt would have a parallelism of 1. |
| <p> |
| <b>Note:</b> This would provide guarantees only based on what the bolt provides. |
| </p></div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>bolt</code> - the bolt</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="to(org.apache.storm.topology.IRichBolt,int)"> |
| <h3>to</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">to</span><wbr><span class="parameters">(<a href="../topology/IRichBolt.html" title="interface in org.apache.storm.topology">IRichBolt</a> bolt, |
| int parallelism)</span></div> |
| <div class="block">Sends the elements of this stream to a bolt. This could be used to plug in existing bolts as sinks in the stream, for e.g. a <code> |
| RedisStoreBolt</code>. |
| <p> |
| <b>Note:</b> This would provide guarantees only based on what the bolt provides. |
| </p></div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>bolt</code> - the bolt</dd> |
| <dd><code>parallelism</code> - the parallelism of the bolt</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="to(org.apache.storm.topology.IBasicBolt)"> |
| <h3>to</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">to</span><wbr><span class="parameters">(<a href="../topology/IBasicBolt.html" title="interface in org.apache.storm.topology">IBasicBolt</a> bolt)</span></div> |
| <div class="block">Sends the elements of this stream to a bolt. This could be used to plug in existing bolts as sinks in the stream, for e.g. a <code> |
| RedisStoreBolt</code>. The bolt would have a parallelism of 1. |
| <p> |
| <b>Note:</b> This would provide guarantees only based on what the bolt provides. |
| </p></div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>bolt</code> - the bolt</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="to(org.apache.storm.topology.IBasicBolt,int)"> |
| <h3>to</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">to</span><wbr><span class="parameters">(<a href="../topology/IBasicBolt.html" title="interface in org.apache.storm.topology">IBasicBolt</a> bolt, |
| int parallelism)</span></div> |
| <div class="block">Sends the elements of this stream to a bolt. This could be used to plug in existing bolts as sinks in the stream, for e.g. a <code> |
| RedisStoreBolt</code>. |
| <p> |
| <b>Note:</b> This would provide guarantees only based on what the bolt provides. |
| </p></div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>bolt</code> - the bolt</dd> |
| <dd><code>parallelism</code> - the parallelism of the bolt</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="stateQuery(org.apache.storm.streams.StreamState)"> |
| <h3>stateQuery</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="type-parameters"><V></span> <span class="return-type"><a href="PairStream.html" title="class in org.apache.storm.streams">PairStream</a><<a href="Stream.html" title="type parameter in Stream">T</a>,<wbr>V></span> <span class="element-name">stateQuery</span><wbr><span class="parameters">(<a href="StreamState.html" title="class in org.apache.storm.streams">StreamState</a><<a href="Stream.html" title="type parameter in Stream">T</a>,<wbr>V> streamState)</span></div> |
| <div class="block">Queries the given stream state with the values in this stream as the keys.</div> |
| <dl class="notes"> |
| <dt>Type Parameters:</dt> |
| <dd><code>V</code> - the value type</dd> |
| <dt>Parameters:</dt> |
| <dd><code>streamState</code> - the stream state</dd> |
| <dt>Returns:</dt> |
| <dd>the result stream</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="partitionBy(org.apache.storm.tuple.Fields,int)"> |
| <h3>partitionBy</h3> |
| <div class="member-signature"><span class="modifiers">protected</span> <span class="return-type"><a href="Stream.html" title="class in org.apache.storm.streams">Stream</a><<a href="Stream.html" title="type parameter in Stream">T</a>></span> <span class="element-name">partitionBy</span><wbr><span class="parameters">(<a href="../tuple/Fields.html" title="class in org.apache.storm.tuple">Fields</a> fields, |
| int parallelism)</span></div> |
| </section> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </section> |
| <!-- ========= END OF CLASS DATA ========= --> |
| </main> |
| <footer role="contentinfo"> |
| <hr> |
| <p class="legal-copy"><small>Copyright © 2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </footer> |
| </div> |
| </div> |
| </body> |
| </html> |