kafka-jira mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KAFKA-4830) Augment KStream.print() to allow users pass in extra parameters in the printed string
Date Thu, 20 Jul 2017 13:49:00 GMT

    [ https://issues.apache.org/jira/browse/KAFKA-4830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16094716#comment-16094716
] 

ASF GitHub Bot commented on KAFKA-4830:
---------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/kafka/pull/3085


> Augment KStream.print() to allow users pass in extra parameters in the printed string
> -------------------------------------------------------------------------------------
>
>                 Key: KAFKA-4830
>                 URL: https://issues.apache.org/jira/browse/KAFKA-4830
>             Project: Kafka
>          Issue Type: Bug
>          Components: streams
>            Reporter: Guozhang Wang
>            Assignee: james chien
>              Labels: kip, newbie
>             Fix For: 0.11.1.0
>
>
> Today {{KStream.print}} use the hard-coded result string as:
> {code}
> "[" + this.streamName + "]: " + keyToPrint + " , " + valueToPrint
> {code}
> And some users are asking to augment this so that they can customize the output string
as {{KStream.print(KeyValueMapper<K, V, String>)}} :
> {code}
> "[" + this.streamName + "]: " + mapper.apply(keyToPrint, valueToPrint)
> {code}
> 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



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message