Re: Question about the custom partitioner

2017-06-16 Thread Xingcan Cui
Hi Aljoscha, Thanks for your explanation. I'll try what you suggests. Best, Xingcan On Fri, Jun 16, 2017 at 5:19 PM, Aljoscha Krettek wrote: > Hi, > > I’m afraid that’s not possible out-of-box with the current APIs. I > actually don’t know why the user-facing Partitioner only allows returning

Re: Question about the custom partitioner

2017-06-16 Thread Aljoscha Krettek
Hi, I’m afraid that’s not possible out-of-box with the current APIs. I actually don’t know why the user-facing Partitioner only allows returning one target because the internal StreamPartitioner (which extends ChannelSelector) allows returning multiple target partitions. You can hack around th