- All Implemented Interfaces:
Serializable,Comparable<SeekOp>,Constable
Flags for use when performing a
Cursor.seek(org.lmdbjava.SeekOp).
Unlike most other LMDB enums, this enum is not bit masked.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPosition at first key/data item.Position at first data item of current key.Position at key/data pair.position at key, nearest data.Return key/data at current cursor position.Return key and up to a page of duplicate data items from current cursor position.Position at last key/data item.Position at last data item of current key.Position at next data item.Position at next data item of current key.Return key and up to a page of duplicate data items from next cursor position.Position at first data item of next key.Position at previous data item.Position at previous data item of current key.Position at last data item of previous key. -
Method Summary
-
Enum Constant Details
-
MDB_FIRST
Position at first key/data item. -
MDB_FIRST_DUP
Position at first data item of current key. Only forDbiFlags.MDB_DUPSORT. -
MDB_GET_BOTH
Position at key/data pair. Only forDbiFlags.MDB_DUPSORT. -
MDB_GET_BOTH_RANGE
position at key, nearest data. Only forDbiFlags.MDB_DUPSORT. -
MDB_GET_CURRENT
Return key/data at current cursor position. -
MDB_GET_MULTIPLE
Return key and up to a page of duplicate data items from current cursor position. Move cursor to prepare forMDB_NEXT_MULTIPLE. Only forDbiFlags.MDB_DUPSORT. -
MDB_LAST
Position at last key/data item. -
MDB_LAST_DUP
Position at last data item of current key. Only forDbiFlags.MDB_DUPSORT. -
MDB_NEXT
Position at next data item. -
MDB_NEXT_DUP
Position at next data item of current key. Only forDbiFlags.MDB_DUPSORT. -
MDB_NEXT_MULTIPLE
Return key and up to a page of duplicate data items from next cursor position. Move cursor to prepare forMDB_NEXT_MULTIPLE. Only forDbiFlags.MDB_DUPSORT. -
MDB_NEXT_NODUP
Position at first data item of next key. -
MDB_PREV
Position at previous data item. -
MDB_PREV_DUP
Position at previous data item of current key.DbiFlags.MDB_DUPSORT. -
MDB_PREV_NODUP
Position at last data item of previous key.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getCode
public int getCode()Obtain the integer code for use by LMDB C API.- Returns:
- the code
-