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

Augment KStream.print() to allow users pass in extra parameters in the printed string

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0
    • streams

    Description

      Today KStream.print use the hard-coded result string as:

      "[" + this.streamName + "]: " + keyToPrint + " , " + valueToPrint
      

      And some users are asking to augment this so that they can customize the output string as KStream.print(KeyValueMapper<K, V, String>) :

      "[" + this.streamName + "]: " + mapper.apply(keyToPrint, valueToPrint)
      

      Original KIP-132: https://cwiki.apache.org/confluence/display/KAFKA/KIP-132%3A+Augment+KStream.print+to+allow+extra+parameters+in+the+printed+string
      Duplicating KIP-160: https://cwiki.apache.org/confluence/display/KAFKA/KIP-160%3A+Augment+KStream.print%28%29+to+allow+users+pass+in+extra+parameters+in+the+printed+string

      Attachments

        Issue Links

          Activity

            People

              james.c james chien
              guozhang Guozhang Wang
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: