Enum OMLayoutFeature

java.lang.Object
java.lang.Enum<OMLayoutFeature>
org.apache.hadoop.ozone.om.upgrade.OMLayoutFeature
All Implemented Interfaces:
Serializable, Comparable<OMLayoutFeature>, org.apache.hadoop.ozone.upgrade.LayoutFeature, org.apache.hadoop.ozone.Versioned

public enum OMLayoutFeature extends Enum<OMLayoutFeature> implements org.apache.hadoop.ozone.upgrade.LayoutFeature
List of OM Layout features / versions.
  • Enum Constant Details

  • Method Details

    • values

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

      public static OMLayoutFeature 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
    • layoutVersion

      public int layoutVersion()
      Specified by:
      layoutVersion in interface org.apache.hadoop.ozone.upgrade.LayoutFeature
    • description

      public String description()
      Specified by:
      description in interface org.apache.hadoop.ozone.upgrade.LayoutFeature
    • addAction

      public void addAction(org.apache.hadoop.ozone.upgrade.LayoutFeature.UpgradeActionType type, OmUpgradeAction action)
    • action

      public Optional<OmUpgradeAction> action(org.apache.hadoop.ozone.upgrade.LayoutFeature.UpgradeActionType phase)
      Specified by:
      action in interface org.apache.hadoop.ozone.upgrade.LayoutFeature