Package io.datarouter.storage.util
Class KeyRangeTool
java.lang.Object
io.datarouter.storage.util.KeyRangeTool
public class KeyRangeTool extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceKeyRangeTool.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>>
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)
-