Package org.apache.hadoop.hdfs.protocol
Enum Class LayoutVersion.Feature
- All Implemented Interfaces:
Serializable,Comparable<LayoutVersion.Feature>,Constable,org.apache.hadoop.hdfs.protocol.LayoutVersion.LayoutFeature
- Enclosing class:
- org.apache.hadoop.hdfs.protocol.LayoutVersion
public static enum LayoutVersion.Feature
extends Enum<LayoutVersion.Feature>
implements org.apache.hadoop.hdfs.protocol.LayoutVersion.LayoutFeature
Enums for features that change the layout version before rolling
upgrade is supported.
To add a new layout version:
To add a new layout version:
- Define a new enum constant with a short enum name, the new layout version and description of the added feature.
- When adding a layout version with an ancestor that is not same as its immediate predecessor, use the constructor where a specific ancestor can be passed.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hdfs.protocol.LayoutVersion.FeatureInfogetInfo()static LayoutVersion.FeatureReturns the enum constant of this class with the specified name.static LayoutVersion.Feature[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NAMESPACE_QUOTA
-
FILE_ACCESS_TIME
-
DISKSPACE_QUOTA
-
STICKY_BIT
-
APPEND_RBW_DIR
-
ATOMIC_RENAME
-
CONCAT
-
SYMLINKS
-
DELEGATION_TOKEN
-
FSIMAGE_COMPRESSION
-
FSIMAGE_CHECKSUM
-
REMOVE_REL13_DISK_LAYOUT_SUPPORT
-
EDITS_CHECKSUM
-
UNUSED
-
FSIMAGE_NAME_OPTIMIZATION
-
RESERVED_REL20_203
-
RESERVED_REL20_204
-
RESERVED_REL22
-
RESERVED_REL23
-
FEDERATION
-
LEASE_REASSIGNMENT
-
STORED_TXIDS
-
TXID_BASED_LAYOUT
-
EDITLOG_OP_OPTIMIZATION
-
OPTIMIZE_PERSIST_BLOCKS
-
RESERVED_REL1_2_0
-
ADD_INODE_ID
-
SNAPSHOT
-
RESERVED_REL1_3_0
-
OPTIMIZE_SNAPSHOT_INODES
-
SEQUENTIAL_BLOCK_ID
-
EDITLOG_SUPPORT_RETRYCACHE
-
EDITLOG_ADD_BLOCK
-
ADD_DATANODE_AND_STORAGE_UUIDS
-
ADD_LAYOUT_FLAGS
-
CACHING
-
PROTOBUF_FORMAT
-
EXTENDED_ACL
-
RESERVED_REL2_4_0
-
-
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
-
getInfo
public org.apache.hadoop.hdfs.protocol.LayoutVersion.FeatureInfo getInfo()- Specified by:
getInfoin interfaceorg.apache.hadoop.hdfs.protocol.LayoutVersion.LayoutFeature
-