You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Matthias J. Sax (JIRA)" <ji...@apache.org> on 2017/02/22 01:05:45 UTC
[jira] [Updated] (KAFKA-3477) Add customizable StreamPartition into
#to functions of Streams DSL
[ https://issues.apache.org/jira/browse/KAFKA-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matthias J. Sax updated KAFKA-3477:
-----------------------------------
Affects Version/s: 0.10.0.0
> 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
> Components: streams
> Affects Versions: 0.10.0.0
> Reporter: Guozhang Wang
> Assignee: Matthias J. Sax
> Labels: newbie
> Fix For: 0.10.0.0
>
>
> 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.15#6346)