| Package | Description |
|---|---|
| org.rocksdb |
| Modifier and Type | Method and Description |
|---|---|
WriteOptions |
Transaction.getWriteOptions()
Return the WriteOptions that will be used during
Transaction.commit(). |
WriteOptions |
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 |
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 |
WriteOptions.setLowPri(boolean lowPri)
If true, this write request is of lower priority if compaction is
behind.
|
WriteOptions |
WriteOptions.setNoSlowdown(boolean noSlowdown)
If true and we need to wait or sleep for the write request, fails
immediately with
Status.Code.Incomplete. |
WriteOptions |
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.
|
| Modifier and Type | Method and Description |
|---|---|
Transaction |
OptimisticTransactionDB.beginTransaction(WriteOptions writeOptions) |
Transaction |
TransactionDB.beginTransaction(WriteOptions writeOptions) |
Transaction |
OptimisticTransactionDB.beginTransaction(WriteOptions writeOptions,
OptimisticTransactionOptions optimisticTransactionOptions) |
Transaction |
OptimisticTransactionDB.beginTransaction(WriteOptions writeOptions,
OptimisticTransactionOptions optimisticTransactionOptions,
Transaction oldTransaction) |
Transaction |
OptimisticTransactionDB.beginTransaction(WriteOptions writeOptions,
Transaction oldTransaction) |
Transaction |
TransactionDB.beginTransaction(WriteOptions writeOptions,
Transaction oldTransaction) |
Transaction |
TransactionDB.beginTransaction(WriteOptions writeOptions,
TransactionOptions transactionOptions) |
Transaction |
TransactionDB.beginTransaction(WriteOptions writeOptions,
TransactionOptions transactionOptions,
Transaction oldTransaction) |
void |
RocksDB.delete(ColumnFamilyHandle columnFamilyHandle,
WriteOptions writeOpt,
byte[] key)
Delete the database entry (if any) for "key".
|
void |
RocksDB.delete(ColumnFamilyHandle columnFamilyHandle,
WriteOptions writeOpt,
byte[] key,
int offset,
int len)
Delete the database entry (if any) for "key".
|
void |
RocksDB.delete(ColumnFamilyHandle columnFamilyHandle,
WriteOptions writeOpt,
ByteBuffer key)
Delete the database entry (if any) for "key".
|
void |
RocksDB.delete(WriteOptions writeOpt,
byte[] key)
Delete the database entry (if any) for "key".
|
void |
RocksDB.delete(WriteOptions writeOpt,
byte[] key,
int offset,
int len)
Delete the database entry (if any) for "key".
|
void |
RocksDB.delete(WriteOptions writeOpt,
ByteBuffer key)
Delete the database entry (if any) for "key".
|
void |
RocksDB.deleteRange(ColumnFamilyHandle columnFamilyHandle,
WriteOptions writeOpt,
byte[] beginKey,
byte[] endKey)
Removes the database entries in the range ["beginKey", "endKey"), i.e.,
including "beginKey" and excluding "endKey". a non-OK status on error.
|
void |
RocksDB.deleteRange(WriteOptions writeOpt,
byte[] beginKey,
byte[] endKey)
Removes the database entries in the range ["beginKey", "endKey"), i.e.,
including "beginKey" and excluding "endKey". a non-OK status on error.
|
void |
RocksDB.merge(ColumnFamilyHandle columnFamilyHandle,
WriteOptions writeOpts,
byte[] key,
byte[] value)
Add merge operand for key/value pair.
|
void |
RocksDB.merge(ColumnFamilyHandle columnFamilyHandle,
WriteOptions writeOpts,
byte[] key,
int offset,
int len,
byte[] value,
int vOffset,
int vLen)
Add merge operand for key/value pair.
|
void |
RocksDB.merge(WriteOptions writeOpts,
byte[] key,
byte[] value)
Add merge operand for key/value pair.
|
void |
RocksDB.merge(WriteOptions writeOpts,
byte[] key,
int offset,
int len,
byte[] value,
int vOffset,
int vLen)
Add merge operand for key/value pair.
|
void |
RocksDB.put(ColumnFamilyHandle columnFamilyHandle,
WriteOptions writeOpts,
byte[] key,
byte[] value)
Set the database entry for "key" to "value" for the specified
column family.
|
void |
RocksDB.put(ColumnFamilyHandle columnFamilyHandle,
WriteOptions writeOpts,
byte[] key,
int offset,
int len,
byte[] value,
int vOffset,
int vLen)
Set the database entry for "key" to "value" for the specified
column family.
|
void |
RocksDB.put(ColumnFamilyHandle columnFamilyHandle,
WriteOptions writeOpts,
ByteBuffer key,
ByteBuffer value)
Set the database entry for "key" to "value" for the specified
column family.
|
void |
RocksDB.put(WriteOptions writeOpts,
byte[] key,
byte[] value)
Set the database entry for "key" to "value".
|
void |
RocksDB.put(WriteOptions writeOpts,
byte[] key,
int offset,
int len,
byte[] value,
int vOffset,
int vLen)
Set the database entry for "key" to "value".
|
void |
RocksDB.put(WriteOptions writeOpts,
ByteBuffer key,
ByteBuffer value)
Set the database entry for "key" to "value".
|
void |
RocksDB.remove(ColumnFamilyHandle columnFamilyHandle,
WriteOptions writeOpt,
byte[] key)
Deprecated.
|
void |
RocksDB.remove(WriteOptions writeOpt,
byte[] key)
Deprecated.
|
void |
Transaction.setWriteOptions(WriteOptions writeOptions)
Reset the WriteOptions that will be used during
Transaction.commit(). |
void |
RocksDB.singleDelete(ColumnFamilyHandle columnFamilyHandle,
WriteOptions writeOpt,
byte[] key)
Remove the database entry for
key. |
void |
RocksDB.singleDelete(WriteOptions writeOpt,
byte[] key)
Remove the database entry for
key. |
void |
RocksDB.write(WriteOptions writeOpts,
WriteBatch updates)
Apply the specified updates to the database.
|
void |
RocksDB.write(WriteOptions writeOpts,
WriteBatchWithIndex updates)
Apply the specified updates to the database.
|
| Constructor and Description |
|---|
WriteOptions(WriteOptions other)
Copy constructor for WriteOptions.
|
Copyright © 2021. All rights reserved.