Package org.rocksdb
Enum PerfLevel
- java.lang.Object
-
- java.lang.Enum<PerfLevel>
-
- org.rocksdb.PerfLevel
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISABLEdisable perf statsENABLE_COUNTenable only count statsENABLE_TIMEenable count and time statsENABLE_TIME_AND_CPU_TIME_EXCEPT_FOR_MUTEXOther than time, also measure CPU time counters.ENABLE_TIME_EXCEPT_FOR_MUTEXOther than count stats, also enable time stats except for mutexesOUT_OF_BOUNDSDeprecated.It's here to just keep parity with C++ API.UNINITIALIZEDUnknown setting
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PerfLevelgetPerfLevel(byte level)bytegetValue()static PerfLevelvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PerfLevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNINITIALIZED
public static final PerfLevel UNINITIALIZED
Unknown setting
-
DISABLE
public static final PerfLevel DISABLE
disable perf stats
-
ENABLE_COUNT
public static final PerfLevel ENABLE_COUNT
enable only count stats
-
ENABLE_TIME_EXCEPT_FOR_MUTEX
public static final PerfLevel ENABLE_TIME_EXCEPT_FOR_MUTEX
Other than count stats, also enable time stats except for mutexes
-
ENABLE_TIME_AND_CPU_TIME_EXCEPT_FOR_MUTEX
public static final PerfLevel ENABLE_TIME_AND_CPU_TIME_EXCEPT_FOR_MUTEX
Other than time, also measure CPU time counters. Still don't measure time (neither wall time nor CPU time) for mutexes
-
ENABLE_TIME
public static final PerfLevel ENABLE_TIME
enable count and time stats
-
OUT_OF_BOUNDS
@Deprecated public static final PerfLevel OUT_OF_BOUNDS
Deprecated.It's here to just keep parity with C++ API.Do not use
-
-
Method Detail
-
values
public static PerfLevel[] 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 (PerfLevel c : PerfLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PerfLevel 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()
-
getPerfLevel
public static PerfLevel getPerfLevel(byte level)
-
-