org.apache.hadoop.hdfs.protocol
Enum SnapshotDiffReport.DiffType

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

public static enum SnapshotDiffReport.DiffType
extends Enum<SnapshotDiffReport.DiffType>

Types of the difference, which include CREATE, MODIFY, DELETE, and RENAME. Each type has a label for representation: +/M/-/R represent CREATE, MODIFY, DELETE, and RENAME respectively.


Enum Constant Summary
CREATE
           
DELETE
           
MODIFY
           
RENAME
           
 
Method Summary
 String getLabel()
           
static SnapshotDiffReport.DiffType getTypeFromLabel(String label)
           
static SnapshotDiffReport.DiffType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SnapshotDiffReport.DiffType[] 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

CREATE

public static final SnapshotDiffReport.DiffType CREATE

MODIFY

public static final SnapshotDiffReport.DiffType MODIFY

DELETE

public static final SnapshotDiffReport.DiffType DELETE

RENAME

public static final SnapshotDiffReport.DiffType RENAME
Method Detail

values

public static SnapshotDiffReport.DiffType[] 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 (SnapshotDiffReport.DiffType c : SnapshotDiffReport.DiffType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SnapshotDiffReport.DiffType 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

getLabel

public String getLabel()

getTypeFromLabel

public static SnapshotDiffReport.DiffType getTypeFromLabel(String label)


Copyright © 2014 Apache Software Foundation. All Rights Reserved.