[ https://issues.apache.org/jira/browse/KAFKA-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15223553#comment-15223553 ]
ASF GitHub Bot commented on KAFKA-3477: --------------------------------------- GitHub user mjsax opened a pull request: https://github.com/apache/kafka/pull/1180 [KAFKA-3477] [Kafka Streams] extended KStream/KTable API to specify c… …ustom partitioner for sinks You can merge this pull request into a Git repository by running: $ git pull https://github.com/mjsax/kafka kafka-3477-streamPartitioner-DSL Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/1180.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 #1180 ---- commit 377dcd42c2a17a2c2b8e7f005021b6a6f702ccc2 Author: mjsax <matth...@confluent.io> Date: 2016-04-03T23:26:47Z [KAFKA-3477] [Kafka Streams] extended KStream/KTable API to specify custom partitioner for sinks ---- > Add customizable StreamPartition into #to functions of Streams DSL > ------------------------------------------------------------------ > > Key: KAFKA-3477 > URL: https://issues.apache.org/jira/browse/KAFKA-3477 > Project: Kafka > Issue Type: Sub-task > Reporter: Guozhang Wang > Assignee: Matthias J. Sax > Labels: newbie > Fix For: 0.10.0.1 > > > In the lower-level Processor API we allow users to pass in a customizable > StreamPartitioner when creating a new sink processor node to the topology: > {code} > builder.addSink(String name, String topic, StreamPartitioner partitioner, > String... parentNames)); > {code} > This StreamPartitioner allows users to specify any partitioning schemes based > on record values instead of using the default behavior of hashing on the > message key; but it is not exposed in the higher-level Streams DSL. > We can add this parameter to the Streams DSL as well: > {code} > KStream#to(String topic, StreamPartitioner partitioner); > KTable#to(String topic, StreamPartitioner partitioner); > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)