If you format your key as a String as follows: "partition_key|actual_key" then you can use the StringPrefixPartitionResolver that comes with Geode that will return the "partition_key" substring as the partition key, so you don't even have to write a custom PartitionResolver.
-- Mike Stolz Principal Engineer, GemFire Product Lead Mobile: +1-631-835-4771 Download the new GemFire book here. <https://content.pivotal.io/ebooks/scaling-data-services-with-pivotal-gemfire> On Thu, Jan 18, 2018 at 12:48 PM, Barry Wood <[email protected]> wrote: > Hello Geode User Group, > > There seems to be a usage conflict when using Restful Interface and Custom > Partitioning. Keys must be String for the Restful Interface. When using > custom partitioning the the EntryOperation.getNewValue() has been > deprecated, now we must use getKey(), thus the key must be an Object > containing the field the PartitionResolver.getRoutingObject() will > return, which is *not *compatible with the Restful Interface key being a > String requirement. > > How should custom partitioning be handled when using the Restful Interface? > > Best regards, > Barry Wood > > >
