[ https://issues.apache.org/jira/browse/GEODE-3063?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16259844#comment-16259844 ]
ASF GitHub Bot commented on GEODE-3063: --------------------------------------- joeymcallister commented on a change in pull request #1077: GEODE-3063 partition resolver doc revisions URL: https://github.com/apache/geode/pull/1077#discussion_r152109657 ########## File path: geode-docs/developing/partitioned_regions/using_custom_partition_resolvers.html.md.erb ########## @@ -243,21 +273,85 @@ program the resolver's `getRoutingObject` method to return the routing object fo </region> ``` **Java API:** - + ``` pre PartitionAttributes attrs = new PartitionAttributesFactory() .setPartitionResolver("StringPrefixPartitionResolver").create(); - + Cache c = new CacheFactory().create(); - + Region r = c.createRegionFactory() .setPartitionAttributes(attrs) .create("customers"); ``` **gfsh:** - + Add the option `--partition-resolver=org.apache.geode.cache.util.StringPrefixPartitionResolver` to the `gfsh create region` command. -6. If your colocated data is in a server system, add the `PartitionResolver` implementation class to the `CLASSPATH` of your Java clients. The resolver is used for single hop access to partitioned region data in the servers. +- For colocated data, add the `StringPrefixPartitionResolver` +implementation class to the `CLASSPATH` of your Java clients. +The resolver will work with Java single hop clients. Review comment: hyphenate "single-hop clients" ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Improve docs on default string-based partition resolver > ------------------------------------------------------- > > Key: GEODE-3063 > URL: https://issues.apache.org/jira/browse/GEODE-3063 > Project: Geode > Issue Type: Bug > Components: docs > Reporter: Karen Smoler Miller > Assignee: Karen Smoler Miller > > The new default partition resolver at > org.apache.geode.cache.util.StringPrefixPartitionResolver > needs more detailed documentation. > - An example of a string specifying a key in a region operation when this > partition resolver is used. > - What happens if the string specifying a key doesn't have a '|' delimiter. > - An example of using this partition resolver to colocate two regions. -- This message was sent by Atlassian JIRA (v6.4.14#64029)