mirror of https://github.com/apache/kafka.git
KAFKA-10222: Incorrect methods show up in 0.10 Kafka Streams docs (#8980)
Non-existent methods show up in the doc: builder.from("my-input-topic").mapValue(value -> value.length().toString()).to("my-output-topic"); There is no method named from or mapValues. They should be stream and mapValues respectively. Reviewers: Matthias J. Sax <matthias@confluent.io>
This commit is contained in:
parent
0ab0369c92
commit
d8fe204376
|
@ -71,7 +71,7 @@ import java.util.concurrent.atomic.AtomicInteger;
|
||||||
* StreamsConfig config = new StreamsConfig(props);
|
* StreamsConfig config = new StreamsConfig(props);
|
||||||
*
|
*
|
||||||
* KStreamBuilder builder = new KStreamBuilder();
|
* KStreamBuilder builder = new KStreamBuilder();
|
||||||
* builder.from("my-input-topic").mapValue(value -> value.length().toString()).to("my-output-topic");
|
* builder.stream("my-input-topic").mapValues(value -> value.length().toString()).to("my-output-topic");
|
||||||
*
|
*
|
||||||
* KafkaStreams streams = new KafkaStreams(builder, config);
|
* KafkaStreams streams = new KafkaStreams(builder, config);
|
||||||
* streams.start();
|
* streams.start();
|
||||||
|
|
Loading…
Reference in New Issue