Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KAFKA-7269: Add docs for KStream.merge #5512

Merged
merged 1 commit into from
Aug 29, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 27 additions & 4 deletions docs/streams/developer-guide/dsl-api.html
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,30 @@ <h2><a class="toc-backref" href="#id7">Overview</a><a class="headerlink" href="#
</div>
</td>
</tr>
<tr class="row-even"><td><p class="first"><strong>Peek</strong></p>
<tr class="row-even"><td><p class="first"><strong>Merge</strong></p>
<ul class="last simple">
<li>KStream &rarr; KStream</li>
</ul>
</td>
<td><p class="first">Merges records of two streams into one larger stream.
(<a class="reference external"
href="../../../javadoc/org/apache/kafka/streams/kstream/KStream.html#merge-org.apache.kafka.streams.kstream.KStream-">details</a>)
<p>There is no ordering guarantee between records
from different streams in the merged stream. Relative order is preserved within each input stream though (ie, records within the same input stream are processed in order)</p>
<div class="last highlight-java">
<div class="highlight">
<pre>
<span class="n">KStream</span><span class="o">&lt;</span><span class="kt">byte</span><span class="o">[],</span> <span class="n">String</span><span class="o">&gt;</span> <span class="n">stream1</span> <span class="o">=</span> <span class="o">...;</span>

<span class="n">KStream</span><span class="o">&lt;</span><span class="kt">byte</span><span class="o">[],</span> <span class="n">String</span><span class="o">&gt;</span> <span class="n">stream2</span> <span class="o">=</span> <span class="o">...;</span>

<span class="n">KStream</span><span class="o">&lt;</span><span class="kt">byte</span><span class="o">[],</span> <span class="n">String</span><span class="o">&gt;</span> <span class="n">merged</span> <span class="o">=</span> <span class="n">stream1</span><span class="o">.</span><span class="na">merge</span><span class="o">(</span><span class="n">stream2</span><span class="o">);</span>
</pre>
</div>
</div>
</td>
</tr>
<tr class="row-odd"><td><p class="first"><strong>Peek</strong></p>
<ul class="last simple">
<li>KStream &rarr; KStream</li>
</ul>
Expand Down Expand Up @@ -622,7 +645,7 @@ <h2><a class="toc-backref" href="#id7">Overview</a><a class="headerlink" href="#
</div>
</td>
</tr>
<tr class="row-odd"><td><p class="first"><strong>Print</strong></p>
<tr class="row-even"><td><p class="first"><strong>Print</strong></p>
<ul class="last simple">
<li>KStream &rarr; void</li>
</ul>
Expand All @@ -641,7 +664,7 @@ <h2><a class="toc-backref" href="#id7">Overview</a><a class="headerlink" href="#
</div>
</td>
</tr>
<tr class="row-even"><td><p class="first"><strong>SelectKey</strong></p>
<tr class="row-odd"><td><p class="first"><strong>SelectKey</strong></p>
<ul class="last simple">
<li>KStream &rarr; KStream</li>
</ul>
Expand Down Expand Up @@ -669,7 +692,7 @@ <h2><a class="toc-backref" href="#id7">Overview</a><a class="headerlink" href="#
</div>
</td>
</tr>
<tr class="row-odd"><td><p class="first"><strong>Table to Stream</strong></p>
<tr class="row-even"><td><p class="first"><strong>Table to Stream</strong></p>
<ul class="last simple">
<li>KTable &rarr; KStream</li>
</ul>
Expand Down