Class KeyRangeTool

java.lang.Object
io.datarouter.storage.util.KeyRangeTool

public class KeyRangeTool
extends Object
  • Constructor Details

  • Method Details

    • forPrefix

      public static <PK extends io.datarouter.model.key.primary.PrimaryKey<PK>> io.datarouter.util.tuple.Range<PK> forPrefix​(PK prefix)
    • forPrefixWithWildcard

      public static <PK extends io.datarouter.model.key.primary.PrimaryKey<PK>> io.datarouter.util.tuple.Range<PK> forPrefixWithWildcard​(String prefixString, KeyRangeTool.KeyWithStringFieldSuffixProvider<PK> keyWithStringFieldSuffixProvider)
    • incrementLastChar

      public static String incrementLastChar​(String string)
    • contains

      public static <PK extends io.datarouter.model.key.primary.PrimaryKey<PK>> boolean contains​(io.datarouter.util.tuple.Range<PK> range, PK pk)
    • isBeforeStartOfRange

      public static <PK extends io.datarouter.model.key.primary.PrimaryKey<PK>> boolean isBeforeStartOfRange​(io.datarouter.util.tuple.Range<PK> range, PK pk)
    • isAfterEndOfRange

      public static <PK extends io.datarouter.model.key.primary.PrimaryKey<PK>> boolean isAfterEndOfRange​(io.datarouter.util.tuple.Range<PK> range, PK pk)