Modifier and Type | Method and Description |
---|---|
Txn<T> |
Txn.getParent()
Obtains this transaction's parent.
|
Txn<T> |
Env.txn(Txn<T> parent,
TxnFlags... flags)
Obtain a transaction with the requested parent and flags.
|
Txn<T> |
Env.txnRead()
Obtain a read-only transaction.
|
Txn<T> |
Env.txnWrite()
Obtain a read-write transaction.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Dbi.delete(Txn<T> txn,
T key)
Deletes the key using the passed transaction.
|
boolean |
Dbi.delete(Txn<T> txn,
T key,
T val)
Removes key/data pairs from the database.
|
void |
Dbi.drop(Txn<T> txn)
Drops the data in this database, leaving the database open for further use.
|
void |
Dbi.drop(Txn<T> txn,
boolean delete)
Drops the database.
|
T |
Dbi.get(Txn<T> txn,
T key)
Get items from a database, moving the
val() to the value. |
CursorIterator<T> |
Dbi.iterate(Txn<T> txn)
Iterate the database from the first item and forwards.
|
CursorIterator<T> |
Dbi.iterate(Txn<T> txn,
CursorIterator.IteratorType type)
Deprecated.
use iterate method with a
KeyRange instead |
CursorIterator<T> |
Dbi.iterate(Txn<T> txn,
KeyRange<T> range)
Iterate the database in accordance with the provided
KeyRange and
default Comparator . |
CursorIterator<T> |
Dbi.iterate(Txn<T> txn,
KeyRange<T> range,
java.util.Comparator<T> comparator)
Iterate the database in accordance with the provided
KeyRange and
Comparator . |
CursorIterator<T> |
Dbi.iterate(Txn<T> txn,
T key,
CursorIterator.IteratorType type)
Deprecated.
use iterate method with a
KeyRange instead |
Cursor<T> |
Dbi.openCursor(Txn<T> txn)
Create a cursor handle.
|
boolean |
Dbi.put(Txn<T> txn,
T key,
T val,
PutFlags... flags)
Store a key/value pair in the database.
|
void |
Cursor.renew(Txn<T> newTxn)
Renew a cursor handle.
|
T |
Dbi.reserve(Txn<T> txn,
T key,
int size,
PutFlags... op)
Reserve space for data of the given size, but don't copy the given val.
|
Stat |
Dbi.stat(Txn<T> txn)
Return statistics about this database.
|
Txn<T> |
Env.txn(Txn<T> parent,
TxnFlags... flags)
Obtain a transaction with the requested parent and flags.
|
Copyright © 2016–2018 The LmdbJava Open Source Project. All rights reserved.