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 Summary
Enum Constants Enum Constant Description DISABLED
Do not use cache for this scan, possibly overriding table settings.ENABLED
Use cache for this can, possibly overriding table settings.OPPORTUNISTIC
Use data if it exists in cache, but never load data into cache.TABLE
Use the tables cache settings for this scan.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ScanDispatch.CacheUsage
valueOf(String name)
Returns the enum constant of this type with the specified name.static ScanDispatch.CacheUsage[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static ScanDispatch.CacheUsage[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ScanDispatch.CacheUsage c : ScanDispatch.CacheUsage.values()) System.out.println(c);
- 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 nameNullPointerException
- if the argument is null
-
-