HdfsConstants.StoragePolicy (Apache Hadoop HDFS Client 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.protocol, class: HdfsConstants, enum: StoragePolicy

Package org.apache.hadoop.hdfs.protocol

# Enum Class HdfsConstants.StoragePolicy

java.lang.Object
java.lang.Enum<HdfsConstants.StoragePolicy>
org.apache.hadoop.hdfs.protocol.HdfsConstants.StoragePolicy

All Implemented Interfaces:
  `Serializable`, `Comparable<HdfsConstants.StoragePolicy>`, `Constable`

Enclosing class:
  HdfsConstants

public static enum HdfsConstants.StoragePolicy extends Enum<HdfsConstants.StoragePolicy>
This enum wraps above Storage Policy ID and name. Recommend to use this enum instead of above static variables. For example, StoragePolicy.HOT.value() is equal to HOT_STORAGE_POLICY_ID StoragePolicy.HOT.name() is equal to HOT_STORAGE_POLICY_NAME

- ## Nested Class Summary

  ## Nested classes/interfaces inherited from class java.lang.Enum

  `Enum.EnumDesc<E extends Enum<E>>`

- ## Enum Constant Summary

  Enum Constants
  Enum Constant
  Description
  `ALL_NVDIMM`
  `ALL_SSD`
  `COLD`
  `HOT`
  `LAZY_PERSIST`
  `ONE_SSD`
  `PROVIDED`
  `WARM`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `byte`
  `value()`
  `static HdfsConstants.StoragePolicy`
  `valueOf(int value)`
  Returns the enum constant of this class with the specified name.
  `static HdfsConstants.StoragePolicy`
  `valueOf(String name)`
  Returns the enum constant of this class with the specified name.
  `static HdfsConstants.StoragePolicy[]`
  `values()`
  Returns an array containing the constants of this enum class, in the order they are declared.

  ### Methods inherited from class java.lang.Enum

  `clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf`

  ### Methods inherited from class java.lang.Object

  `getClass, notify, notifyAll, wait, wait, wait`

- ## Enum Constant Details

  - ### PROVIDED

    public static final HdfsConstants.StoragePolicy PROVIDED

  - ### COLD

    public static final HdfsConstants.StoragePolicy COLD

  - ### WARM

    public static final HdfsConstants.StoragePolicy WARM

  - ### HOT

    public static final HdfsConstants.StoragePolicy HOT

  - ### ONE_SSD

    public static final HdfsConstants.StoragePolicy ONE_SSD

  - ### ALL_SSD

    public static final HdfsConstants.StoragePolicy ALL_SSD

  - ### ALL_NVDIMM

    public static final HdfsConstants.StoragePolicy ALL_NVDIMM

  - ### LAZY_PERSIST

    public static final HdfsConstants.StoragePolicy LAZY_PERSIST

- ## Method Details

  - ### values

    public static HdfsConstants.StoragePolicy[] 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 HdfsConstants.StoragePolicy 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

  - ### valueOf

    public static HdfsConstants.StoragePolicy valueOf(int value)
    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:
      `value` - 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

  - ### value

    public byte value()