Enum KeyRangeCache.RangeMode

java.lang.Object
java.lang.Enum<KeyRangeCache.RangeMode>
com.google.cloud.spanner.spi.v1.KeyRangeCache.RangeMode
All Implemented Interfaces:
Serializable, Comparable<KeyRangeCache.RangeMode>
Enclosing class:
KeyRangeCache

public static enum KeyRangeCache.RangeMode extends Enum<KeyRangeCache.RangeMode>
Determines how to handle ranges that span multiple splits.
  • Enum Constant Details

    • COVERING_SPLIT

      public static final KeyRangeCache.RangeMode COVERING_SPLIT
      Consider it a cache miss if the whole range is not in a single split.
    • PICK_RANDOM

      public static final KeyRangeCache.RangeMode PICK_RANDOM
      If the range spans multiple splits, pick a random split when possible.
  • Method Details

    • values

      public static KeyRangeCache.RangeMode[] 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

      public static KeyRangeCache.RangeMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null