org.apache.hadoop.hdfs.server.namenode
Enum NameNodeLayoutVersion.Feature
java.lang.Object
java.lang.Enum<NameNodeLayoutVersion.Feature>
org.apache.hadoop.hdfs.server.namenode.NameNodeLayoutVersion.Feature
- All Implemented Interfaces:
- Serializable, Comparable<NameNodeLayoutVersion.Feature>, LayoutVersion.LayoutFeature
- Enclosing class:
- org.apache.hadoop.hdfs.server.namenode.NameNodeLayoutVersion
public static enum NameNodeLayoutVersion.Feature
- extends Enum<NameNodeLayoutVersion.Feature>
- implements LayoutVersion.LayoutFeature
Enums for features that change the 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.
ROLLING_UPGRADE
public static final NameNodeLayoutVersion.Feature ROLLING_UPGRADE
EDITLOG_LENGTH
public static final NameNodeLayoutVersion.Feature EDITLOG_LENGTH
XATTRS
public static final NameNodeLayoutVersion.Feature XATTRS
CREATE_OVERWRITE
public static final NameNodeLayoutVersion.Feature CREATE_OVERWRITE
XATTRS_NAMESPACE_EXT
public static final NameNodeLayoutVersion.Feature XATTRS_NAMESPACE_EXT
BLOCK_STORAGE_POLICY
public static final NameNodeLayoutVersion.Feature BLOCK_STORAGE_POLICY
values
public static NameNodeLayoutVersion.Feature[] 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 (NameNodeLayoutVersion.Feature c : NameNodeLayoutVersion.Feature.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static NameNodeLayoutVersion.Feature 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
getInfo
public LayoutVersion.FeatureInfo getInfo()
- Specified by:
getInfo
in interface LayoutVersion.LayoutFeature
Copyright © 2014 Apache Software Foundation. All Rights Reserved.