Enum Class XAttrFormat

java.lang.Object
java.lang.Enum<XAttrFormat>
org.apache.hadoop.hdfs.server.namenode.XAttrFormat
All Implemented Interfaces:
Serializable, Comparable<XAttrFormat>, Constable, org.apache.hadoop.hdfs.util.LongBitFormat.Enum

public enum XAttrFormat extends Enum<XAttrFormat> implements org.apache.hadoop.hdfs.util.LongBitFormat.Enum
Class to pack XAttrs into byte[].
Note: this format is used both in-memory and on-disk. Changes will be incompatible.
  • Enum Constant Details

  • Method Details

    • values

      public static XAttrFormat[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static XAttrFormat valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getLength

      public int getLength()
      Specified by:
      getLength in interface org.apache.hadoop.hdfs.util.LongBitFormat.Enum
    • getName

      public static String getName(int record)
    • toInt

      public static int toInt(org.apache.hadoop.fs.XAttr a)