org.apache.hadoop.hdfs.protocol
Enum SnapshotDiffReport.DiffType
java.lang.Object
java.lang.Enum<SnapshotDiffReport.DiffType>
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.
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
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 © 2013 Apache Software Foundation. All Rights Reserved.