Package org.rocksdb

Enum Class ReadTier

All Implemented Interfaces:
Serializable, Comparable<ReadTier>, Constable

public enum ReadTier extends Enum<ReadTier>
RocksDB ReadOptions read tiers.
  • Enum Constant Details

    • READ_ALL_TIER

      public static final ReadTier READ_ALL_TIER
    • BLOCK_CACHE_TIER

      public static final ReadTier BLOCK_CACHE_TIER
    • PERSISTED_TIER

      public static final ReadTier PERSISTED_TIER
    • MEMTABLE_TIER

      public static final ReadTier MEMTABLE_TIER
  • Method Details

    • values

      public static ReadTier[] 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 ReadTier 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
    • getValue

      public byte getValue()
      Returns the byte value of the enumerations value
      Returns:
      byte representation
    • getReadTier

      public static ReadTier getReadTier(byte value)
      Get ReadTier by byte value.
      Parameters:
      value - byte representation of ReadTier.
      Returns:
      ReadTier instance or null.
      Throws:
      IllegalArgumentException - if an invalid value is provided.