public class WriteBatch extends AbstractWriteBatch
| Modifier and Type | Class and Description |
|---|---|
static class |
WriteBatch.Handler
Handler callback for iterating over the contents of a batch.
|
nativeHandle_| Constructor and Description |
|---|
WriteBatch()
Constructs a WriteBatch instance.
|
WriteBatch(int reserved_bytes)
Constructs a WriteBatch instance with a given size.
|
| Modifier and Type | Method and Description |
|---|---|
void |
iterate(WriteBatch.Handler handler)
Support for iterating over the contents of a batch.
|
clear, count, disposeInternal, merge, merge, put, put, putLogData, remove, removedisOwnNativeHandle, dispose, finalize, isInitialized, isOwningNativeHandlepublic WriteBatch()
public WriteBatch(int reserved_bytes)
reserved_bytes - reserved size for WriteBatchpublic void iterate(WriteBatch.Handler handler) throws RocksDBException
handler - A handler that is called back for each
update present in the batchRocksDBException - If we cannot iterate over the batch