Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-6861

Missing ')' in Kafka Streams documentation

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0
    • Component/s: documentation, streams
    • Labels:
      None

      Description

      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());

      Should have an additional closing parentheses after Serdes.Long.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                zer0id0l Ravi Raj Singh
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: