Enum Class SerialNumberManager

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

public enum SerialNumberManager extends Enum<SerialNumberManager>
Manage name-to-serial-number maps for various string tables.
  • Enum Constant Details

  • Method Details

    • values

      public static SerialNumberManager[] 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 SerialNumberManager 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
    • getSerialNumber

      public int getSerialNumber(String u)
    • getString

      public String getString(int id)
    • getString

      public String getString(int id, org.apache.hadoop.hdfs.server.namenode.SerialNumberManager.StringTable stringTable)
    • getStringTable

      public static org.apache.hadoop.hdfs.server.namenode.SerialNumberManager.StringTable getStringTable()
    • newStringTable

      public static org.apache.hadoop.hdfs.server.namenode.SerialNumberManager.StringTable newStringTable(int size, int bits)