[ 
https://issues.apache.org/jira/browse/GEODE-3005?page=com.atlassian.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

Implement:
PartitionByKey PartitionResolver
String key parser
Getters and setters PartitionAttributesFactory 


Done:
Code is reviewed and checked in
Tests are created and pass

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
A String key without a delimiter is valid -- but will not be colocated
Providing a key with the correct delimiter routes the entry to the correct node
If partitionByPrefix has been set AND a PartitionResolver is set an 
IllegalArgumentException 
When partition-by-prefix is 'on' AND the user also sets a specific partition 
resolver (an implemented class), partitioning should default to the implemented 
class.



  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

Implement:
Cache.xml XSD adding new 'partition by prefix' attribute
Implement XML parser

Done:
Code is reviewed and checked in
Tests are created and pass

Acceptance: 
A partitioned region can be created using with 'partition by prefix' via 
cache.xml
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
When partition-by-prefix is 'on' AND the user also sets a specific partition 
resolver (an implemented class), partitioning should default to the implemented 
class.



> A developer can create a Region with Partition by Prefix 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
> Implement:
> PartitionByKey PartitionResolver
> String key parser
> Getters and setters PartitionAttributesFactory 
> Done:
> Code is reviewed and checked in
> Tests are created and pass
> 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
> A String key without a delimiter is valid -- but will not be colocated
> Providing a key with the correct delimiter routes the entry to the correct 
> node
> If partitionByPrefix has been set AND a PartitionResolver is set an 
> IllegalArgumentException 
> When partition-by-prefix is 'on' AND the user also sets a specific partition 
> resolver (an implemented class), partitioning should default to the 
> implemented class.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to