Package org.rocksdb
Enum MemoryUsageType
- java.lang.Object
-
- java.lang.Enum<MemoryUsageType>
-
- org.rocksdb.MemoryUsageType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MemoryUsageType>
public enum MemoryUsageType extends java.lang.Enum<MemoryUsageType>
MemoryUsageTypeThe value will be used as a key to indicate the type of memory usage described
-
-
Enum Constant Summary
Enum Constants Enum Constant Description kCacheTotalMemory usage by Cache.kMemTableTotalMemory usage of all the mem-tables.kMemTableUnFlushedMemory usage of those un-flushed mem-tables.kNumUsageTypesMax usage types - copied to keep 1:1 with native.kTableReadersTotalMemory usage of all the table readers.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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 MemoryUsageTypevalueOf(java.lang.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.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static MemoryUsageType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MemoryUsageType c : MemoryUsageType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MemoryUsageType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.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:
java.lang.IllegalArgumentException- if the usage type for the byteIdentifier cannot be found
-
-