Package org.rocksdb

Enum PerfLevel

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<PerfLevel>

    public enum PerfLevel
    extends java.lang.Enum<PerfLevel>
    • 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 name
        java.lang.NullPointerException - if the argument is null
      • getValue

        public byte getValue()
      • getPerfLevel

        public static PerfLevel getPerfLevel​(byte level)