Package com.google.cloud.spanner.spi.v1
Enum KeyRangeCache.RangeMode
- All Implemented Interfaces:
Serializable,Comparable<KeyRangeCache.RangeMode>
- Enclosing class:
- KeyRangeCache
Determines how to handle ranges that span multiple splits.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionConsider it a cache miss if the whole range is not in a single split.If the range spans multiple splits, pick a random split when possible. -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyRangeCache.RangeModeReturns the enum constant of this type with the specified name.static KeyRangeCache.RangeMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
COVERING_SPLIT
Consider it a cache miss if the whole range is not in a single split. -
PICK_RANDOM
If the range spans multiple splits, pick a random split when possible.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-