You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "james chien (JIRA)" <ji...@apache.org> on 2017/04/27 08:52:04 UTC

[jira] [Comment Edited] (KAFKA-4830) Augment KStream.print() to allow users pass in extra parameters in the printed string

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

james chien edited comment on KAFKA-4830 at 4/27/17 8:51 AM:
-------------------------------------------------------------

the issue still exists? if not can I try it ?


was (Author: james.c):
the issue still exists?

> 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
>              Labels: needs-kip, newbie
>
> 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}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)