Package alluxio.client
Enum AlluxioStorageType
- java.lang.Object
-
- java.lang.Enum<AlluxioStorageType>
-
- alluxio.client.AlluxioStorageType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AlluxioStorageType>
@ThreadSafe public enum AlluxioStorageType extends java.lang.Enum<AlluxioStorageType>
Specifies the type of data interaction with Alluxio.- For a write operation, this determines whether the data will be written into Alluxio storage. Metadata will always be updated in Alluxio space.
- For a read operation, this determines whether fully read blocks will be stored in Alluxio storage.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isPromote()
boolean
isStore()
static AlluxioStorageType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AlluxioStorageType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STORE
public static final AlluxioStorageType STORE
Put the data reading or writing in Alluxio storage.
-
NO_STORE
public static final AlluxioStorageType NO_STORE
Do not put data to Alluxio.
-
PROMOTE
public static final AlluxioStorageType PROMOTE
Same asSTORE
for writes. Will move the data to highest tier before access for reads.
-
-
Method Detail
-
values
public static AlluxioStorageType[] 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 (AlluxioStorageType c : AlluxioStorageType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AlluxioStorageType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isStore
public boolean isStore()
- Returns:
- whether the data should be put in Alluxio storage
-
isPromote
public boolean isPromote()
- Returns:
- whether the data should be promoted to the highest tier
-
-