public enum MemoryUsageType extends java.lang.Enum<MemoryUsageType>
The value will be used as a key to indicate the type of memory usage described
| 枚举常量和说明 |
|---|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static MemoryUsageType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public byte getValue()
public static MemoryUsageType getMemoryUsageType(byte byteIdentifier)
Get the MemoryUsageType enumeration value by passing the byte identifier to this method.
byteIdentifier - of MemoryUsageType.java.lang.IllegalArgumentException - if the usage type for the byteIdentifier
cannot be found