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(long handle) |
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.
|
disposeInternal
close, disOwnNativeHandle, isOwningHandle
dispose, finalize
public 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()
protected final void disposeInternal(long handle)
disposeInternal
in class RocksObject