| Modifier and Type | Method and Description |
|---|---|
void |
DB.compactRange(byte[] begin,
byte[] end)
Compact the underlying storage for the key range [begin, end].
|
void |
DB.delete(byte[] key) |
Snapshot |
DB.delete(byte[] key,
WriteOptions options)
Remove the database entry (if any) for "key".
|
byte[] |
DB.get(byte[] key)
Same as calling
DB.get(byte[], ReadOptions) with default options |
byte[] |
DB.get(byte[] key,
ReadOptions options)
If the database contains an entry for "key" return its corresponding
value.
|
void |
DB.put(byte[] key,
byte[] value) |
Snapshot |
DB.put(byte[] key,
byte[] value,
WriteOptions options)
Set the database entry for "key" to "value".
|
void |
DB.write(WriteBatch updates) |
Snapshot |
DB.write(WriteBatch updates,
WriteOptions options)
Apply the specified updates to the database.
|
Copyright © 2011–2020. All rights reserved.