Package io.datarouter.storage.util
Class KeyRangeTool
java.lang.Object
io.datarouter.storage.util.KeyRangeTool
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceKeyRangeTool.KeyWithStringFieldSuffixProvider<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <PK extends io.datarouter.model.key.primary.PrimaryKey<PK>>
booleancontains(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(String prefixString, KeyRangeTool.KeyWithStringFieldSuffixProvider<PK> keyWithStringFieldSuffixProvider) static StringincrementLastChar(String string) static <PK extends io.datarouter.model.key.primary.PrimaryKey<PK>>
booleanisAfterEndOfRange(io.datarouter.util.tuple.Range<PK> range, PK pk) static <PK extends io.datarouter.model.key.primary.PrimaryKey<PK>>
booleanisBeforeStartOfRange(io.datarouter.util.tuple.Range<PK> range, PK pk)
-
Constructor Details
-
KeyRangeTool
public KeyRangeTool()
-
-
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
-
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)
-