Enum ScanDispatch.CacheUsage

java.lang.Object
java.lang.Enum<ScanDispatch.CacheUsage>
org.apache.accumulo.core.spi.scan.ScanDispatch.CacheUsage
All Implemented Interfaces:
Serializable, Comparable<ScanDispatch.CacheUsage>
Enclosing interface:
ScanDispatch

public static enum ScanDispatch.CacheUsage extends Enum<ScanDispatch.CacheUsage>
Communicates how a scan should use cache.
Since:
2.1.0
  • Enum Constant Details

    • ENABLED

      public static final ScanDispatch.CacheUsage ENABLED
      Use cache for this can, possibly overriding table settings.
    • DISABLED

      public static final ScanDispatch.CacheUsage DISABLED
      Do not use cache for this scan, possibly overriding table settings.
    • OPPORTUNISTIC

      public static final ScanDispatch.CacheUsage OPPORTUNISTIC
      Use data if it exists in cache, but never load data into cache.
    • TABLE

      public static final ScanDispatch.CacheUsage TABLE
      Use the tables cache settings for this scan.
  • Method Details

    • values

      public static ScanDispatch.CacheUsage[] 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 ScanDispatch.CacheUsage 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