public class TransactionDB extends RocksDB
| Modifier and Type | Class and Description |
|---|---|
static class |
TransactionDB.DeadlockInfo |
static class |
TransactionDB.DeadlockPath |
static class |
TransactionDB.KeyLockInfo |
DEFAULT_COLUMN_FAMILY, NOT_FOUND, options_nativeHandle_| Modifier and Type | Method and Description |
|---|---|
Transaction |
beginTransaction(WriteOptions writeOptions)
Starts a new Transaction.
|
Transaction |
beginTransaction(WriteOptions writeOptions,
Transaction oldTransaction)
Starts a new Transaction.
|
Transaction |
beginTransaction(WriteOptions writeOptions,
TransactionOptions transactionOptions)
Starts a new Transaction.
|
Transaction |
beginTransaction(WriteOptions writeOptions,
TransactionOptions transactionOptions,
Transaction oldTransaction)
Starts a new Transaction.
|
protected void |
disposeInternal(long handle) |
java.util.List<Transaction> |
getAllPreparedTransactions() |
TransactionDB.DeadlockPath[] |
getDeadlockInfoBuffer() |
java.util.Map<java.lang.Long,TransactionDB.KeyLockInfo> |
getLockStatusData()
Returns map of all locks held.
|
Transaction |
getTransactionByName(java.lang.String transactionName) |
static TransactionDB |
open(DBOptions dbOptions,
TransactionDBOptions transactionDbOptions,
java.lang.String path,
java.util.List<ColumnFamilyDescriptor> columnFamilyDescriptors,
java.util.List<ColumnFamilyHandle> columnFamilyHandles)
Open a TransactionDB, similar to
RocksDB.open(DBOptions, String, List, List). |
static TransactionDB |
open(Options options,
TransactionDBOptions transactionDbOptions,
java.lang.String path)
Open a TransactionDB, similar to
RocksDB.open(Options, String). |
void |
setDeadlockInfoBufferSize(int targetSize) |
compactRange, compactRange, compactRange, compactRange, compactRange, compactRange, compactRange, compactRange, compactRange, continueBackgroundWork, createColumnFamily, delete, delete, delete, delete, delete, delete, delete, delete, delete, delete, delete, delete, deleteRange, deleteRange, deleteRange, deleteRange, deleteRange, deleteRange, deleteRange, deleteRange, destroyDB, disableFileDeletions, dropColumnFamily, enableFileDeletions, flush, flush, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, getAggregatedLongProperty, getAggregatedLongProperty, getDefaultColumnFamily, getLatestSequenceNumber, getLongProperty, getLongProperty, getLongProperty, getLongProperty, getProperty, getProperty, getProperty0, getProperty0, getSnapshot, getSnapshot, getUpdatesSince, ingestExternalFile, ingestExternalFile, iterator, iterator, iteratorCF, iteratorCF, iterators, keyMayExist, keyMayExist, keyMayExist, keyMayExist, keyMayExist, keyMayExist, keyMayExist, keyMayExist, keyMayExist, keyMayExist, keyMayExist, keyMayExist, listColumnFamilies, listColumnFamilies, loadLibrary, loadLibrary, merge, merge, merge, merge, merge, merge, merge, merge, merge, merge, merge, merge, multiGet, multiGet, multiGet, multiGet, multiGet, multiGet, multiGet, multiGet, newIterator, newIterator, newIterator, newIterator, newIterators, newIterators, open, open, open, open, open, open, openReadOnly, openReadOnly, openReadOnly, openReadOnly, openROnly, openROnly, pauseBackgroundWork, put, put, put, put, put, put, put, put, put, put, put, put, releaseSnapshot, releaseSnapshot, remove, remove, remove, remove, setOptions, singleDelete, singleDelete, singleDelete, singleDelete, singleDelete, singleDelete, singleDelete, singleDelete, storeOptionsInstance, write, write, write0, write1disposeInternalclose, disOwnNativeHandle, isOwningHandledispose, finalizepublic static TransactionDB open(Options options, TransactionDBOptions transactionDbOptions, java.lang.String path) throws RocksDBException
RocksDB.open(Options, String).options - Options instance.transactionDbOptions - TransactionDBOptions
instance.path - the path to the rocksdb.TransactionDB instance on success, null if the specified
TransactionDB can not be opened.RocksDBException - if an error occurs whilst opening the database.public static TransactionDB open(DBOptions dbOptions, TransactionDBOptions transactionDbOptions, java.lang.String path, java.util.List<ColumnFamilyDescriptor> columnFamilyDescriptors, java.util.List<ColumnFamilyHandle> columnFamilyHandles) throws RocksDBException
RocksDB.open(DBOptions, String, List, List).dbOptions - DBOptions instance.transactionDbOptions - TransactionDBOptions
instance.path - the path to the rocksdb.columnFamilyDescriptors - list of column family descriptorscolumnFamilyHandles - will be filled with ColumnFamilyHandle instancesTransactionDB instance on success, null if the specified
TransactionDB can not be opened.RocksDBException - if an error occurs whilst opening the database.public Transaction beginTransaction(WriteOptions writeOptions)
AutoCloseable.close() on the returned
transaction when it is no longer needed.writeOptions - Any write options for the transactionpublic Transaction beginTransaction(WriteOptions writeOptions, TransactionOptions transactionOptions)
AutoCloseable.close() on the returned
transaction when it is no longer needed.writeOptions - Any write options for the transactiontransactionOptions - Any options for the transactionpublic Transaction beginTransaction(WriteOptions writeOptions, Transaction oldTransaction)
AutoCloseable.close() on the returned
transaction when it is no longer needed.writeOptions - Any write options for the transactionoldTransaction - this Transaction will be reused instead of allocating
a new one. This is an optimization to avoid extra allocations
when repeatedly creating transactions.public Transaction beginTransaction(WriteOptions writeOptions, TransactionOptions transactionOptions, Transaction oldTransaction)
AutoCloseable.close() on the returned
transaction when it is no longer needed.writeOptions - Any write options for the transactiontransactionOptions - Any options for the transactionoldTransaction - this Transaction will be reused instead of allocating
a new one. This is an optimization to avoid extra allocations
when repeatedly creating transactions.public Transaction getTransactionByName(java.lang.String transactionName)
public java.util.List<Transaction> getAllPreparedTransactions()
public java.util.Map<java.lang.Long,TransactionDB.KeyLockInfo> getLockStatusData()
public TransactionDB.DeadlockPath[] getDeadlockInfoBuffer()
public void setDeadlockInfoBufferSize(int targetSize)
protected final void disposeInternal(long handle)
disposeInternal in class RocksDB