kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From guozh...@apache.org
Subject [kafka] branch 2.5 updated: MINOR: fix omitted 'next.' in interactive queries documentation (#7883)
Date Wed, 19 Feb 2020 18:25:16 GMT
This is an automated email from the ASF dual-hosted git repository.

guozhang pushed a commit to branch 2.5
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/2.5 by this push:
     new 63a297f  MINOR: fix omitted 'next.' in interactive queries documentation (#7883)
63a297f is described below

commit 63a297fa1ccb804cc4a2ec366a8f486b1dcc6196
Author: Lee Dongjin <dongjin@apache.org>
AuthorDate: Thu Feb 20 03:23:59 2020 +0900

    MINOR: fix omitted 'next.' in interactive queries documentation (#7883)
    
    Reviewers: Guozhang Wang <wangguoz@gmail.com>
---
 docs/streams/developer-guide/interactive-queries.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/streams/developer-guide/interactive-queries.html b/docs/streams/developer-guide/interactive-queries.html
index e590a52..0701517 100644
--- a/docs/streams/developer-guide/interactive-queries.html
+++ b/docs/streams/developer-guide/interactive-queries.html
@@ -158,14 +158,14 @@
 <span class="n">KeyValueIterator</span><span class="o">&lt;</span><span
class="n">String</span><span class="o">,</span> <span class="n">Long</span><span
class="o">&gt;</span> <span class="n">range</span> <span class="o">=</span>
<span class="n">keyValueStore</span><span class="o">.</span><span
class="na">range</span><span class="o">(</span><span class="s">&quot;all&quot;</span><span
class="o">,</span> <span class="s">&quot;streams&quot;</span><span
class="o">);</span>
 <span class="k">while</span> <span class="o">(</span><span class="n">range</span><span
class="o">.</span><span class="na">hasNext</span><span class="o">())</span>
<span class="o">{</span>
   <span class="n">KeyValue</span><span class="o">&lt;</span><span
class="n">String</span><span class="o">,</span> <span class="n">Long</span><span
class="o">&gt;</span> <span class="n">next</span> <span class="o">=</span>
<span class="n">range</span><span class="o">.</span><span class="na">next</span><span
class="o">();</span>
-  <span class="n">System</span><span class="o">.</span><span class="na">out</span><span
class="o">.</span><span class="na">println</span><span class="o">(</span><span
class="s">&quot;count for &quot;</span> <span class="o">+</span>
<span class="n">next</span><span class="o">.</span><span class="na">key</span>
<span class="o">+</span> <span class="s">&quot;: &quot;</span>
<span class="o">+</span> <span class="n">value</span><span class="o">);</span>
+  <span class="n">System</span><span class="o">.</span><span class="na">out</span><span
class="o">.</span><span class="na">println</span><span class="o">(</span><span
class="s">&quot;count for &quot;</span> <span class="o">+</span>
<span class="n">next</span><span class="o">.</span><span class="na">key</span>
<span class="o">+</span> <span class="s">&quot;: &quot;</span>
<span class="o">+</span> <span class="n">next</span><span class="o">.</span><span
class="na">value</span><span class=" [...]
 <span class="o">}</span>
 
 <span class="c1">// Get the values for all of the keys available in this application
instance</span>
 <span class="n">KeyValueIterator</span><span class="o">&lt;</span><span
class="n">String</span><span class="o">,</span> <span class="n">Long</span><span
class="o">&gt;</span> <span class="n">range</span> <span class="o">=</span>
<span class="n">keyValueStore</span><span class="o">.</span><span
class="na">all</span><span class="o">();</span>
 <span class="k">while</span> <span class="o">(</span><span class="n">range</span><span
class="o">.</span><span class="na">hasNext</span><span class="o">())</span>
<span class="o">{</span>
   <span class="n">KeyValue</span><span class="o">&lt;</span><span
class="n">String</span><span class="o">,</span> <span class="n">Long</span><span
class="o">&gt;</span> <span class="n">next</span> <span class="o">=</span>
<span class="n">range</span><span class="o">.</span><span class="na">next</span><span
class="o">();</span>
-  <span class="n">System</span><span class="o">.</span><span class="na">out</span><span
class="o">.</span><span class="na">println</span><span class="o">(</span><span
class="s">&quot;count for &quot;</span> <span class="o">+</span>
<span class="n">next</span><span class="o">.</span><span class="na">key</span>
<span class="o">+</span> <span class="s">&quot;: &quot;</span>
<span class="o">+</span> <span class="n">value</span><span class="o">);</span>
+  <span class="n">System</span><span class="o">.</span><span class="na">out</span><span
class="o">.</span><span class="na">println</span><span class="o">(</span><span
class="s">&quot;count for &quot;</span> <span class="o">+</span>
<span class="n">next</span><span class="o">.</span><span class="na">key</span>
<span class="o">+</span> <span class="s">&quot;: &quot;</span>
<span class="o">+</span> <span class="n">next</span><span class="o">.</span><span
class="na">value</span><span class=" [...]
 <span class="o">}</span>
 </pre></div>
                 </div>


Mime
View raw message