Class StringPrefixPartitionResolver

  • All Implemented Interfaces:
    CacheCallback, Declarable, PartitionResolver<String,​Object>

    public class StringPrefixPartitionResolver
    extends Object
    implements PartitionResolver<String,​Object>
    This partition resolver requires every key of the partitioned region to be an instance of String and to contain at least one "|" delimiter. The prefix, the substring of the key that precedes the first delimiter, is returned by getRoutingObject.
    Since:
    Geode 1.2.0
    • Field Detail

      • DEFAULT_DELIMITER

        public static final String DEFAULT_DELIMITER
        The default delimiter is "|". Currently this class only uses the default delimiter but in a future release configuring the delimiter may be supported.
        See Also:
        Constant Field Values
    • Constructor Detail

      • StringPrefixPartitionResolver

        public StringPrefixPartitionResolver()
        Creates a prefix resolver with the default delimiter.