public class OptimisticTransactionOptions extends RocksObject
nativeHandle_owningHandle_| Constructor and Description |
|---|
OptimisticTransactionOptions() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
disposeInternal(long handle) |
boolean |
isSetSnapshot()
True indicates snapshots will be set, just like if
Transaction.setSnapshot() had been called |
OptimisticTransactionOptions |
setComparator(AbstractComparator comparator)
Should be set if the DB has a non-default comparator.
|
OptimisticTransactionOptions |
setSetSnapshot(boolean setSnapshot)
Setting the setSnapshot to true is the same as calling
Transaction.setSnapshot(). |
disposeInternal, getNativeHandleclose, disOwnNativeHandle, isOwningHandleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic boolean isSetSnapshot()
Transaction.setSnapshot() had been calledpublic OptimisticTransactionOptions setSetSnapshot(boolean setSnapshot)
Transaction.setSnapshot().
Default: falsesetSnapshot - Whether to set a snapshotpublic OptimisticTransactionOptions setComparator(AbstractComparator comparator)
WriteBatchWithIndex.WriteBatchWithIndex(AbstractComparator, int, boolean)
constructor.comparator - The comparator to use for the transaction.protected final void disposeInternal(long handle)
disposeInternal in class RocksObjectCopyright © 2022. All rights reserved.