public enum MemoryUsageType extends Enum<MemoryUsageType>
The value will be used as a key to indicate the type of memory usage described
| Enum Constant and Description |
|---|
kCacheTotal
Memory usage by Cache.
|
kMemTableTotal
Memory usage of all the mem-tables.
|
kMemTableUnFlushed
Memory usage of those un-flushed mem-tables.
|
kNumUsageTypes
Max usage types - copied to keep 1:1 with native.
|
kTableReadersTotal
Memory usage of all the table readers.
|
| Modifier and Type | Method and Description |
|---|---|
static MemoryUsageType |
getMemoryUsageType(byte byteIdentifier)
Get the MemoryUsageType enumeration value by
passing the byte identifier to this method.
|
byte |
getValue()
Returns the byte value of the enumerations value
|
static MemoryUsageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MemoryUsageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MemoryUsageType kMemTableTotal
public static final MemoryUsageType kMemTableUnFlushed
public static final MemoryUsageType kTableReadersTotal
public static final MemoryUsageType kCacheTotal
public static final MemoryUsageType kNumUsageTypes
public static MemoryUsageType[] values()
for (MemoryUsageType c : MemoryUsageType.values()) System.out.println(c);
public static MemoryUsageType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic byte getValue()
public static MemoryUsageType getMemoryUsageType(byte byteIdentifier)
Get the MemoryUsageType enumeration value by passing the byte identifier to this method.
byteIdentifier - of MemoryUsageType.IllegalArgumentException - if the usage type for the byteIdentifier
cannot be foundCopyright © 2022. All rights reserved.