Enum Class StorageType

java.lang.Object
java.lang.Enum<StorageType>
org.apache.hadoop.fs.StorageType
All Implemented Interfaces:
Serializable, Comparable<StorageType>, Constable

@Public @Unstable public enum StorageType extends Enum<StorageType>
Defines the types of supported storage media. The default storage medium is assumed to be DISK.
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static StorageType[] 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 StorageType 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
    • isTransient

      public boolean isTransient()
    • isRAM

      public boolean isRAM()
    • supportTypeQuota

      public boolean supportTypeQuota()
    • isMovable

      public boolean isMovable()
    • asList

      public static List<StorageType> asList()
    • getMovableTypes

      public static List<StorageType> getMovableTypes()
    • getTypesSupportingQuota

      public static List<StorageType> getTypesSupportingQuota()
    • parseStorageType

      public static StorageType parseStorageType(int i)
    • parseStorageType

      public static StorageType parseStorageType(String s)
    • allowSameDiskTiering

      public static boolean allowSameDiskTiering(StorageType storageType)
    • getConf

      public static String getConf(Configuration conf, StorageType t, String name)
      Get the configured values for different StorageType.
      Parameters:
      conf - - absolute or fully qualified path
      t - - the StorageType
      name - - the sub-name of key
      Returns:
      the file system of the path