public class RocksDBKVDatabase extends SnapshotKVDatabase
KVDatabase implementation based on a RocksDBAtomicKVStore, providing concurrent transactions
and linearizable ACID semantics.
Key watches are supported.
log| Constructor and Description |
|---|
RocksDBKVDatabase() |
| Modifier and Type | Method and Description |
|---|---|
protected RocksDBKVTransaction |
createSnapshotKVTransaction(MutableView view,
long baseVersion) |
RocksDBKVTransaction |
createTransaction() |
RocksDBAtomicKVStore |
getKVStore()
Get the underlying
RocksDBAtomicKVStore used by this instance. |
void |
setKVStore(RocksDBAtomicKVStore kvstore)
Configure the underlying
RocksDBAtomicKVStore used by this instance. |
closeTransactions, createTransaction, getCurrentVersion, logException, setKVStore, start, stop, toString, wrapExceptionpublic RocksDBAtomicKVStore getKVStore()
RocksDBAtomicKVStore used by this instance.getKVStore in class SnapshotKVDatabasepublic void setKVStore(RocksDBAtomicKVStore kvstore)
RocksDBAtomicKVStore used by this instance. Required property.kvstore - underlying key/value storeIllegalStateException - if this instance is already SnapshotKVDatabase.start()edpublic RocksDBKVTransaction createTransaction()
createTransaction in interface KVDatabasecreateTransaction in class SnapshotKVDatabaseprotected RocksDBKVTransaction createSnapshotKVTransaction(MutableView view, long baseVersion)
createSnapshotKVTransaction in class SnapshotKVDatabaseCopyright © 2019. All rights reserved.