Class KeyRangeTool

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

public class KeyRangeTool
extends java.lang.Object
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static interface  KeyRangeTool.KeyWithStringFieldSuffixProvider<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>>  
  • Constructor Summary

    Constructors 
    Constructor Description
    KeyRangeTool()  
  • Method Summary

    Modifier and Type Method Description
    static <PK extends io.datarouter.model.key.primary.PrimaryKey<PK>>
    boolean
    contains​(io.datarouter.util.tuple.Range<PK> range, PK pk)  
    static <PK extends io.datarouter.model.key.primary.PrimaryKey<PK>>
    io.datarouter.util.tuple.Range<PK>
    forPrefix​(PK prefix)  
    static <PK extends io.datarouter.model.key.primary.PrimaryKey<PK>>
    io.datarouter.util.tuple.Range<PK>
    forPrefixWithWildcard​(java.lang.String prefixString, KeyRangeTool.KeyWithStringFieldSuffixProvider<PK> keyWithStringFieldSuffixProvider)  
    static java.lang.String incrementLastChar​(java.lang.String string)  
    static <PK extends io.datarouter.model.key.primary.PrimaryKey<PK>>
    boolean
    isAfterEndOfRange​(io.datarouter.util.tuple.Range<PK> range, PK pk)  
    static <PK extends io.datarouter.model.key.primary.PrimaryKey<PK>>
    boolean
    isBeforeStartOfRange​(io.datarouter.util.tuple.Range<PK> range, PK pk)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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​(java.lang.String prefixString, KeyRangeTool.KeyWithStringFieldSuffixProvider<PK> keyWithStringFieldSuffixProvider)
    • incrementLastChar

      public static java.lang.String incrementLastChar​(java.lang.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)