[ https://issues.apache.org/jira/browse/KAFKA-3497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15228451#comment-15228451 ]
ASF GitHub Bot commented on KAFKA-3497: --------------------------------------- GitHub user enothereska opened a pull request: https://github.com/apache/kafka/pull/1194 KAFKA-3497: Streams ProcessorContext should support forward() based on child name You can merge this pull request into a Git repository by running: $ git pull https://github.com/enothereska/kafka kafka-3497-forward Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/1194.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1194 ---- commit 8582e3b5301797e6819d1c15606b9664343cb863 Author: Eno Thereska <eno.there...@gmail.com> Date: 2016-04-06T15:19:38Z Forward to child by name ---- > Streams ProcessorContext should support forward() based on child name > --------------------------------------------------------------------- > > Key: KAFKA-3497 > URL: https://issues.apache.org/jira/browse/KAFKA-3497 > Project: Kafka > Issue Type: Sub-task > Components: kafka streams > Affects Versions: 0.10.0.1 > Reporter: Yuto Kawamura > Assignee: Eno Thereska > Fix For: 0.10.0.0 > > > Currently {{ProcessorContext}} only supports {{forward(K, V)}} which forwards > KV to all children and {{forward(K, V, int childIndex)}} which forwards KV to > specific children that is identified by an index of children List. > While letting a Processor to issue messages which have arbitrary different > downstream destination, it is not handy to keep ordering of calling > {{addProcessor}}(or {{addSink}}) and childIndex consistent. > Here I'd like to suggest introducing another signature {{forward(K, V, String > childName)}} which allows to use child name(first argument to addProcessor or > addSink) to indicate the destination downstream. > Thread on user mailing list: > http://mail-archives.apache.org/mod_mbox/kafka-users/201604.mbox/<caczvatp5kgeftap46_r7vtctymrgk4t1lc0wnlqymi0dhec...@mail.gmail.com> -- This message was sent by Atlassian JIRA (v6.3.4#6332)