Enum Class ReadType

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

public enum ReadType extends Enum<ReadType>
Enumeration for different types of read operations triggered by AbfsInputStream.
  • Enum Constant Details

    • DIRECT_READ

      public static final ReadType DIRECT_READ
      Synchronous read from the storage service. No optimization is being applied.
    • NORMAL_READ

      public static final ReadType NORMAL_READ
      Synchronous read from the storage service where optimization were considered but found disabled.
    • PREFETCH_READ

      public static final ReadType PREFETCH_READ
      Asynchronous read from the storage service for filling up cache.
    • MISSEDCACHE_READ

      public static final ReadType MISSEDCACHE_READ
      Synchronous read from the storage service when nothing was found in cache.
    • SMALLFILE_READ

      public static final ReadType SMALLFILE_READ
      Synchronous read from the storage service for reading a small file fully. Only triggered when small file read optimization kicks in.
    • RANDOM_READ

      public static final ReadType RANDOM_READ
      Reads from Random Input Stream with read ahead up to readAheadRange
    • UNKNOWN_READ

      public static final ReadType UNKNOWN_READ
      None of the above read types were applicable.
  • Method Details

    • values

      public static ReadType[] 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 ReadType 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
    • toString

      public String toString()
      Get the read type as a string.
      Overrides:
      toString in class Enum<ReadType>
      Returns:
      the read type string