public class OptimisticTransactionOptions extends RocksObject
nativeHandle_owningHandle_| 构造器和说明 |
|---|
OptimisticTransactionOptions() |
| 限定符和类型 | 方法和说明 |
|---|---|
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, isOwningHandlepublic boolean isSetSnapshot()
Transaction.setSnapshot() had been calledpublic OptimisticTransactionOptions setSetSnapshot(boolean setSnapshot)
Transaction.setSnapshot().
Default: false
setSnapshot - 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 在类中 RocksObject