public class WriteOptions extends RocksObject
nativeHandle_| Constructor and Description |
|---|
WriteOptions()
Construct WriteOptions instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
disableWAL()
If true, writes will not first go to the write ahead log,
and the write may got lost after a crash.
|
protected void |
disposeInternal()
The helper function of
dispose() which all subclasses of
RocksObject must implement to release their associated
C++ resource. |
WriteOptions |
setDisableWAL(boolean flag)
If true, writes will not first go to the write ahead log,
and the write may got lost after a crash.
|
WriteOptions |
setSync(boolean flag)
If true, the write will be flushed from the operating system
buffer cache (by calling WritableFile::Sync()) before the write
is considered complete.
|
boolean |
sync()
If true, the write will be flushed from the operating system
buffer cache (by calling WritableFile::Sync()) before the write
is considered complete.
|
disOwnNativeHandle, dispose, finalize, isInitialized, isOwningNativeHandleprotected void disposeInternal()
RocksObjectdispose() which all subclasses of
RocksObject must implement to release their associated
C++ resource.disposeInternal in class RocksObjectpublic WriteOptions setSync(boolean flag)
flag - a boolean flag to indicate whether a write
should be synchronized.public boolean sync()
public WriteOptions setDisableWAL(boolean flag)
flag - a boolean flag to specify whether to disable
write-ahead-log on writes.public boolean disableWAL()