You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Guozhang Wang (JIRA)" <ji...@apache.org> on 2018/05/04 17:01:00 UTC
[jira] [Resolved] (KAFKA-6861) Missing ')' in Kafka Streams
documentation
[ https://issues.apache.org/jira/browse/KAFKA-6861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guozhang Wang resolved KAFKA-6861.
----------------------------------
Resolution: Fixed
> Missing ')' in Kafka Streams documentation
> ------------------------------------------
>
> Key: KAFKA-6861
> URL: https://issues.apache.org/jira/browse/KAFKA-6861
> Project: Kafka
> Issue Type: Bug
> Reporter: Ravi Raj Singh
> Priority: Trivial
> Fix For: 1.0.0
>
>
> Page: [https://kafka.apache.org/11/documentation/streams/tutorial]
> Code snippet:
> {{KStream<String, String> source = builder.stream(}}{{"streams-plaintext-input"}}{{);}}
> {{source.flatMapValues(value -> Arrays.asList(value.toLowerCase(Locale.getDefault()).split(}}{{"\\W+"}}{{)))}}
> {{ }}{{.groupBy((key, value) -> value)}}
> {{ }}{{.count(Materialized.<String, Long, KeyValueStore<Bytes, }}{{byte}}{{[]>>as(}}{{"counts-store"}}{{))}}
> {{ }}{{.toStream()}}
> {{ }}{{.to(}}{{"streams-wordcount-output"}}{{, Produced.with(Serdes.String(), Serdes.Long{color:#d04437}());{color}}}
> {{Should have an additional closing parentheses after Serdes.Long.}}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)