public interface WriteBatch extends Closeable
| Modifier and Type | Method and Description |
|---|---|
WriteBatch |
delete(byte[] key)
If the database contains a mapping for "key", erase it.
|
int |
getApproximateSize()
The size of the database changes caused by this batch.
|
WriteBatch |
put(byte[] key,
byte[] value)
Store the mapping key and value in the database.
|
int |
size()
Number of entries in the batch
|
int getApproximateSize()
This number is tied to implementation details, and may change across releases. It is intended for LevelDB usage metrics.
int size()
WriteBatch put(byte[] key, byte[] value)
WriteBatch delete(byte[] key)
Copyright © 2011–2020. All rights reserved.