I don't really see a need for new Region api for this except to be able to
specify the delimeter.
A developer can just specify the provided PartionByPrefix class for his
PartitionResolver during region creation?

Providing a String key with no delimiter should just return the entire key,
NOT throw an error. That way the same PartitionResolver can be used for
both the Customer region and the Customer.Orders region and it just works.

One more thing, we need to be able to specify a partition resolver via gfsh.

--
Mike Stolz
Principal Engineer - Gemfire Product Manager
Mobile: 631-835-4771 <(631)%20835-4771>

On May 30, 2017 3:26 PM, "Fred Krone (JIRA)" <j...@apache.org> wrote:

>
>      [ https://issues.apache.org/jira/browse/GEODE-3005?page=com.at
> lassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
>
> Fred Krone updated GEODE-3005:
> ------------------------------
>     Description:
> A user should be able to set partition by prefix programmatically when
> creating a partitioned region.
>
> This can only be done when creating a Region type PARTITION
>
> Acceptance:
> Partitioned region can be created using new 'partition by prefix'
> attributes (on/off, delimiter)
> Only String keys work -- all other keys throw an error
> Providing a key with the correct delimiter routes the entry to the correct
> node
> Providing a key with no delimiter throws an error
>
>
>   was:
> A user should be able to set partition by prefix programmatically when
> creating a partitioned region.
>
> This can only be done when creating a Region type PARTITION
>
>
> > A developer can create a Region with Partition Resolution using Java API
> > ------------------------------------------------------------------------
> >
> >                 Key: GEODE-3005
> >                 URL: https://issues.apache.org/jira/browse/GEODE-3005
> >             Project: Geode
> >          Issue Type: Wish
> >          Components: regions
> >            Reporter: Fred Krone
> >            Assignee: Fred Krone
> >
> > A user should be able to set partition by prefix programmatically when
> creating a partitioned region.
> > This can only be done when creating a Region type PARTITION
> > Acceptance:
> > Partitioned region can be created using new 'partition by prefix'
> attributes (on/off, delimiter)
> > Only String keys work -- all other keys throw an error
> > Providing a key with the correct delimiter routes the entry to the
> correct node
> > Providing a key with no delimiter throws an error
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.3.15#6346)
>

Reply via email to