I think what Siyuan needs is a way for an Operator to express that a certain Partitioner is the default Partitioner at the time of writing code. I like Pramod's idea.
Delegating to another partitioner is a way to do it right now but maybe we should have a simple way of doing it and Pramod's suggestion fits well. Thanks, Chandni On Thu, Nov 19, 2015 at 4:43 PM, Pramod Immaneni <[email protected]> wrote: > I think the ask is to not have the user do additional configuration and > also not have the original operator implement Partitioner interface > directly. > > On Thu, Nov 19, 2015 at 4:40 PM, Chetan Narsude (cnarsude) < > [email protected]> wrote: > > > Ram is on the money. Partitioner attribute will do exactly the same. > > > > ‹ > > Chetan > > > > > > On 11/19/15, 4:07 PM, "Munagala Ramanath" <[email protected]> wrote: > > > > >You can just set the property: > > >dt.application.<app-name>.operator.<op-name>.attr.PARTITIONER > > >to com.datatorrent.common.partitioner.StatelessPartitioner:N > > >where N is the number of desired partitions. > > > > > > Is that what you're trying to do ? > > > > > >Ram > > > > > >On Thu, Nov 19, 2015 at 3:49 PM, Siyuan Hua <[email protected]> > > >wrote: > > >> Sometimes I want to separate the Partitioner logic from operator and > > >>still > > >> I want to have default partitioner for the operator (with specifying > it > > >> from application) > > >> > > >> > > >> Best, > > >> Siyuan > > > > >
