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 |
---|---|
protected void |
disposeInternal(long handle) |
void |
iterate(WriteBatch.Handler handler)
Support for iterating over the contents of a batch.
|
clear, count, deleteRange, deleteRange, merge, merge, put, put, putLogData, remove, remove, rollbackToSavePoint, setSavePoint
disposeInternal
close, disOwnNativeHandle, isOwningHandle
dispose, finalize
public 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 batchprotected final void disposeInternal(long handle)
disposeInternal
in class RocksObject