org.apache.hadoop.hdfs.protocol
Enum LayoutVersion.Feature

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

public static enum LayoutVersion.Feature
extends Enum<LayoutVersion.Feature>

Enums for features that change the layout version.

To add a new layout version:


Enum Constant Summary
APPEND_RBW_DIR
           
ATOMIC_RENAME
           
CONCAT
           
DELEGATION_TOKEN
           
DISKSPACE_QUOTA
           
EDITLOG_OP_OPTIMIZATION
           
EDITS_CHESKUM
           
FEDERATION
           
FILE_ACCESS_TIME
           
FSIMAGE_CHECKSUM
           
FSIMAGE_COMPRESSION
           
FSIMAGE_NAME_OPTIMIZATION
           
LEASE_REASSIGNMENT
           
NAMESPACE_QUOTA
           
REMOVE_REL13_DISK_LAYOUT_SUPPORT
           
RESERVED_REL20_203
           
RESERVED_REL20_204
           
RESERVED_REL22
           
RESERVED_REL23
           
STICKY_BIT
           
STORED_TXIDS
           
SYMLINKS
           
TXID_BASED_LAYOUT
           
UNUSED
           
 
Method Summary
 int getAncestorLayoutVersion()
          Accessor method for feature ancestor layout version
 String getDescription()
          Accessor method for feature description
 int getLayoutVersion()
          Accessor method for feature layout version
static LayoutVersion.Feature valueOf(String name)
          Returns the enum constant of this type with the specified name.
static LayoutVersion.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

NAMESPACE_QUOTA

public static final LayoutVersion.Feature NAMESPACE_QUOTA

FILE_ACCESS_TIME

public static final LayoutVersion.Feature FILE_ACCESS_TIME

DISKSPACE_QUOTA

public static final LayoutVersion.Feature DISKSPACE_QUOTA

STICKY_BIT

public static final LayoutVersion.Feature STICKY_BIT

APPEND_RBW_DIR

public static final LayoutVersion.Feature APPEND_RBW_DIR

ATOMIC_RENAME

public static final LayoutVersion.Feature ATOMIC_RENAME

CONCAT

public static final LayoutVersion.Feature CONCAT

SYMLINKS

public static final LayoutVersion.Feature SYMLINKS

DELEGATION_TOKEN

public static final LayoutVersion.Feature DELEGATION_TOKEN

FSIMAGE_COMPRESSION

public static final LayoutVersion.Feature FSIMAGE_COMPRESSION

FSIMAGE_CHECKSUM

public static final LayoutVersion.Feature FSIMAGE_CHECKSUM

REMOVE_REL13_DISK_LAYOUT_SUPPORT

public static final LayoutVersion.Feature REMOVE_REL13_DISK_LAYOUT_SUPPORT

EDITS_CHESKUM

public static final LayoutVersion.Feature EDITS_CHESKUM

UNUSED

public static final LayoutVersion.Feature UNUSED

FSIMAGE_NAME_OPTIMIZATION

public static final LayoutVersion.Feature FSIMAGE_NAME_OPTIMIZATION

RESERVED_REL20_203

public static final LayoutVersion.Feature RESERVED_REL20_203

RESERVED_REL20_204

public static final LayoutVersion.Feature RESERVED_REL20_204

RESERVED_REL22

public static final LayoutVersion.Feature RESERVED_REL22

RESERVED_REL23

public static final LayoutVersion.Feature RESERVED_REL23

FEDERATION

public static final LayoutVersion.Feature FEDERATION

LEASE_REASSIGNMENT

public static final LayoutVersion.Feature LEASE_REASSIGNMENT

STORED_TXIDS

public static final LayoutVersion.Feature STORED_TXIDS

TXID_BASED_LAYOUT

public static final LayoutVersion.Feature TXID_BASED_LAYOUT

EDITLOG_OP_OPTIMIZATION

public static final LayoutVersion.Feature EDITLOG_OP_OPTIMIZATION
Method Detail

values

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

getLayoutVersion

public int getLayoutVersion()
Accessor method for feature layout version

Returns:
int lv value

getAncestorLayoutVersion

public int getAncestorLayoutVersion()
Accessor method for feature ancestor layout version

Returns:
int ancestor LV value

getDescription

public String getDescription()
Accessor method for feature description

Returns:
String feature description


Copyright © 2012 Apache Software Foundation. All Rights Reserved.