Browse Source

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>
0.10.0
huxi 4 years ago committed by GitHub
parent
commit
d8fe204376
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      streams/src/main/java/org/apache/kafka/streams/KafkaStreams.java

2
streams/src/main/java/org/apache/kafka/streams/KafkaStreams.java

@ -71,7 +71,7 @@ import java.util.concurrent.atomic.AtomicInteger; @@ -71,7 +71,7 @@ import java.util.concurrent.atomic.AtomicInteger;
* StreamsConfig config = new StreamsConfig(props);
*
* KStreamBuilder builder = new KStreamBuilder();
* builder.from("my-input-topic").mapValue(value -&gt; value.length().toString()).to("my-output-topic");
* builder.stream("my-input-topic").mapValues(value -&gt; value.length().toString()).to("my-output-topic");
*
* KafkaStreams streams = new KafkaStreams(builder, config);
* streams.start();

Loading…
Cancel
Save