Module lmdbjava
Package org.lmdbjava

Enum Class SeekOp

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

public enum SeekOp extends Enum<SeekOp>
Flags for use when performing a Cursor.seek(org.lmdbjava.SeekOp).

Unlike most other LMDB enums, this enum is not bit masked.

  • Enum Constant Details

    • MDB_FIRST

      public static final SeekOp MDB_FIRST
      Position at first key/data item.
    • MDB_FIRST_DUP

      public static final SeekOp MDB_FIRST_DUP
      Position at first data item of current key. Only for DbiFlags.MDB_DUPSORT.
    • MDB_GET_BOTH

      public static final SeekOp MDB_GET_BOTH
      Position at key/data pair. Only for DbiFlags.MDB_DUPSORT.
    • MDB_GET_BOTH_RANGE

      public static final SeekOp MDB_GET_BOTH_RANGE
      position at key, nearest data. Only for DbiFlags.MDB_DUPSORT.
    • MDB_GET_CURRENT

      public static final SeekOp MDB_GET_CURRENT
      Return key/data at current cursor position.
    • MDB_GET_MULTIPLE

      public static final SeekOp MDB_GET_MULTIPLE
      Return key and up to a page of duplicate data items from current cursor position. Move cursor to prepare for MDB_NEXT_MULTIPLE. Only for DbiFlags.MDB_DUPSORT.
    • MDB_LAST

      public static final SeekOp MDB_LAST
      Position at last key/data item.
    • MDB_LAST_DUP

      public static final SeekOp MDB_LAST_DUP
      Position at last data item of current key. Only for DbiFlags.MDB_DUPSORT.
    • MDB_NEXT

      public static final SeekOp MDB_NEXT
      Position at next data item.
    • MDB_NEXT_DUP

      public static final SeekOp MDB_NEXT_DUP
      Position at next data item of current key. Only for DbiFlags.MDB_DUPSORT.
    • MDB_NEXT_MULTIPLE

      public static final SeekOp MDB_NEXT_MULTIPLE
      Return key and up to a page of duplicate data items from next cursor position. Move cursor to prepare for MDB_NEXT_MULTIPLE. Only for DbiFlags.MDB_DUPSORT.
    • MDB_NEXT_NODUP

      public static final SeekOp MDB_NEXT_NODUP
      Position at first data item of next key.
    • MDB_PREV

      public static final SeekOp MDB_PREV
      Position at previous data item.
    • MDB_PREV_DUP

      public static final SeekOp MDB_PREV_DUP
      Position at previous data item of current key. DbiFlags.MDB_DUPSORT.
    • MDB_PREV_NODUP

      public static final SeekOp MDB_PREV_NODUP
      Position at last data item of previous key.
  • Method Details

    • values

      public static SeekOp[] 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 SeekOp 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
    • getCode

      public int getCode()
      Obtain the integer code for use by LMDB C API.
      Returns:
      the code