org.apache.hadoop.hdfs.server.datanode
Enum DataNodeLayoutVersion.Feature

java.lang.Object
  extended by java.lang.Enum<DataNodeLayoutVersion.Feature>
      extended by org.apache.hadoop.hdfs.server.datanode.DataNodeLayoutVersion.Feature
All Implemented Interfaces:
Serializable, Comparable<DataNodeLayoutVersion.Feature>, LayoutVersion.LayoutFeature
Enclosing class:
org.apache.hadoop.hdfs.server.datanode.DataNodeLayoutVersion

public static enum DataNodeLayoutVersion.Feature
extends Enum<DataNodeLayoutVersion.Feature>
implements LayoutVersion.LayoutFeature

Enums for features that change the layout version.

To add a new layout version:


Enum Constant Summary
FIRST_LAYOUT
           
 
Method Summary
 LayoutVersion.FeatureInfo getInfo()
           
static DataNodeLayoutVersion.Feature valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DataNodeLayoutVersion.Feature[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

FIRST_LAYOUT

public static final DataNodeLayoutVersion.Feature FIRST_LAYOUT
Method Detail

values

public static DataNodeLayoutVersion.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 (DataNodeLayoutVersion.Feature c : DataNodeLayoutVersion.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 DataNodeLayoutVersion.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.