Package org.rocksdb

Enum Class BuiltinComparator

java.lang.Object
java.lang.Enum<BuiltinComparator>
org.rocksdb.BuiltinComparator
All Implemented Interfaces:
Serializable, Comparable<BuiltinComparator>, Constable

public enum BuiltinComparator extends Enum<BuiltinComparator>
Builtin RocksDB comparators
  1. BYTEWISE_COMPARATOR - Sorts all keys in ascending bytewise order.
  2. REVERSE_BYTEWISE_COMPARATOR - Sorts all keys in descending bytewise order
  • Enum Constant Details

    • BYTEWISE_COMPARATOR

      public static final BuiltinComparator BYTEWISE_COMPARATOR
    • REVERSE_BYTEWISE_COMPARATOR

      public static final BuiltinComparator REVERSE_BYTEWISE_COMPARATOR
  • Method Details

    • values

      public static BuiltinComparator[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static BuiltinComparator valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null