Package org.rocksdb
Enum Class MemoryUsageType
- All Implemented Interfaces:
Serializable,Comparable<MemoryUsageType>,Constable
MemoryUsageType
The value will be used as a key to indicate the type of memory usage described
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMemory usage by Cache.Memory usage of all the mem-tables.Memory usage of those un-flushed mem-tables.Max usage types - copied to keep 1:1 with native.Memory usage of all the table readers. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryUsageTypegetMemoryUsageType(byte byteIdentifier) Get the MemoryUsageType enumeration value by passing the byte identifier to this method.bytegetValue()Returns the byte value of the enumerations valuestatic MemoryUsageTypeReturns the enum constant of this class with the specified name.static MemoryUsageType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
kMemTableTotal
Memory usage of all the mem-tables. -
kMemTableUnFlushed
Memory usage of those un-flushed mem-tables. -
kTableReadersTotal
Memory usage of all the table readers. -
kCacheTotal
Memory usage by Cache. -
kNumUsageTypes
Max usage types - copied to keep 1:1 with native.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getValue
public byte getValue()Returns the byte value of the enumerations value- Returns:
- byte representation
-
getMemoryUsageType
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
-