Package org.apache.hadoop.fs
Enum Class StorageType
- All Implemented Interfaces:
Serializable,Comparable<StorageType>,Constable
Defines the types of supported storage media. The default storage
medium is assumed to be DISK.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final StorageTypestatic final StorageType[] -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanallowSameDiskTiering(StorageType storageType) static List<StorageType>asList()static StringgetConf(Configuration conf, StorageType t, String name) Get the configured values for different StorageType.static List<StorageType>static List<StorageType>booleanbooleanisRAM()booleanstatic StorageTypeparseStorageType(int i) static StorageTypebooleanstatic StorageTypeReturns the enum constant of this class with the specified name.static StorageType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RAM_DISK
-
SSD
-
DISK
-
ARCHIVE
-
PROVIDED
-
NVDIMM
-
-
Field Details
-
DEFAULT
-
EMPTY_ARRAY
-
CONF_KEY_HEADER
- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
isTransient
public boolean isTransient() -
isRAM
public boolean isRAM() -
supportTypeQuota
public boolean supportTypeQuota() -
isMovable
public boolean isMovable() -
asList
-
getMovableTypes
-
getTypesSupportingQuota
-
parseStorageType
-
parseStorageType
-
allowSameDiskTiering
-
getConf
Get the configured values for different StorageType.- Parameters:
conf- - absolute or fully qualified patht- - the StorageTypename- - the sub-name of key- Returns:
- the file system of the path
-