public class WriteOptions extends RocksObject
nativeHandle_
Constructor and Description |
---|
WriteOptions()
Construct WriteOptions instance.
|
WriteOptions(WriteOptions other)
Copy constructor for WriteOptions.
|
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) |
boolean |
ignoreMissingColumnFamilies()
If true and if user is trying to write to column families that don't exist
(they were dropped), ignore the write (don't return an error).
|
boolean |
noSlowdown()
If true and we need to wait or sleep for the write request, fails
immediately with
Status.Code.Incomplete . |
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 |
setIgnoreMissingColumnFamilies(boolean ignoreMissingColumnFamilies)
If true and if user is trying to write to column families that don't exist
(they were dropped), ignore the write (don't return an error).
|
WriteOptions |
setNoSlowdown(boolean noSlowdown)
If true and we need to wait or sleep for the write request, fails
immediately with
Status.Code.Incomplete . |
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()
public WriteOptions(WriteOptions other)
other
- The ColumnFamilyOptions to copy.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()
public WriteOptions setIgnoreMissingColumnFamilies(boolean ignoreMissingColumnFamilies)
ignoreMissingColumnFamilies
- true to ignore writes to column families
which don't existpublic boolean ignoreMissingColumnFamilies()
public WriteOptions setNoSlowdown(boolean noSlowdown)
Status.Code.Incomplete
.noSlowdown
- true to fail write requests if we need to wait or sleeppublic boolean noSlowdown()
Status.Code.Incomplete
.protected final void disposeInternal(long handle)
disposeInternal
in class RocksObject