Package org.rocksdb

Enum Class MemoryUsageType

java.lang.Object
java.lang.Enum<MemoryUsageType>
org.rocksdb.MemoryUsageType
All Implemented Interfaces:
Serializable, Comparable<MemoryUsageType>, Constable

public enum MemoryUsageType extends Enum<MemoryUsageType>
MemoryUsageType

The value will be used as a key to indicate the type of memory usage described

  • Enum Constant Details

    • kMemTableTotal

      public static final MemoryUsageType kMemTableTotal
      Memory usage of all the mem-tables.
    • kMemTableUnFlushed

      public static final MemoryUsageType kMemTableUnFlushed
      Memory usage of those un-flushed mem-tables.
    • kTableReadersTotal

      public static final MemoryUsageType kTableReadersTotal
      Memory usage of all the table readers.
    • kCacheTotal

      public static final MemoryUsageType kCacheTotal
      Memory usage by Cache.
    • kNumUsageTypes

      public static final MemoryUsageType kNumUsageTypes
      Max usage types - copied to keep 1:1 with native.
  • Method Details

    • values

      public static MemoryUsageType[] 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 MemoryUsageType 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
    • getMemoryUsageType

      public static MemoryUsageType getMemoryUsageType(byte byteIdentifier)

      Get the MemoryUsageType enumeration value by passing the byte identifier to this method.

      Parameters:
      byteIdentifier - of MemoryUsageType.
      Returns:
      MemoryUsageType instance.
      Throws:
      IllegalArgumentException - if the usage type for the byteIdentifier cannot be found