mirror of https://github.com/apache/kafka.git
MINOR: Escape '<' and '>' symbols in quickstart streams code snippet
This was missing from [an earlier PR](https://github.com/apache/kafka/pull/2247) that escaped these symbols in another section of the doc. Author: Vahid Hashemian <vahidhashemian@us.ibm.com> Reviewers: Ewen Cheslack-Postava <ewen@confluent.io> Closes #2453 from vahidhashemian/doc/escape_lt_gt_in_streams_code
This commit is contained in:
parent
3171659045
commit
0c83eddcda
|
@ -282,7 +282,7 @@ This quickstart example will demonstrate how to run a streaming application code
|
||||||
of the <code>WordCountDemo</code> example code (converted to use Java 8 lambda expressions for easy reading).
|
of the <code>WordCountDemo</code> example code (converted to use Java 8 lambda expressions for easy reading).
|
||||||
</p>
|
</p>
|
||||||
<pre>
|
<pre>
|
||||||
KTable<String, Long> wordCounts = textLines
|
KTable<String, Long> wordCounts = textLines
|
||||||
// Split each text line, by whitespace, into words.
|
// Split each text line, by whitespace, into words.
|
||||||
.flatMapValues(value -> Arrays.asList(value.toLowerCase().split("\\W+")))
|
.flatMapValues(value -> Arrays.asList(value.toLowerCase().split("\\W+")))
|
||||||
|
|
||||||
|
@ -389,7 +389,7 @@ summit 1
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Here, the first column is the Kafka message key, and the second column is the message value, both in in <code>java.lang.String</code> format.
|
Here, the first column is the Kafka message key, and the second column is the message value, both in <code>java.lang.String</code> format.
|
||||||
Note that the output is actually a continuous stream of updates, where each data record (i.e. each line in the original output above) is
|
Note that the output is actually a continuous stream of updates, where each data record (i.e. each line in the original output above) is
|
||||||
an updated count of a single word, aka record key such as "kafka". For multiple records with the same key, each later record is an update of the previous one.
|
an updated count of a single word, aka record key such as "kafka". For multiple records with the same key, each later record is an update of the previous one.
|
||||||
</p>
|
</p>
|
||||||
|
|
Loading…
Reference in New Issue