public class ZbWriteBatch
extends org.rocksdb.WriteBatch
WriteBatch to expose a few protected methods that allow us to reuse buffers
more easily.
NOTE: all methods that use DirectBuffer types explicitly read from the underlying byte
array starting at offset 0. This is a limitation of RocksDB which unfortunately doesn't provide
any native methods that use offset for those buffers yet.
| Constructor and Description |
|---|
ZbWriteBatch() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(org.rocksdb.ColumnFamilyHandle columnFamily,
byte[] key,
int keyLength) |
void |
delete(org.rocksdb.ColumnFamilyHandle columnFamily,
org.agrona.DirectBuffer key) |
void |
delete(org.rocksdb.ColumnFamilyHandle columnFamily,
long key) |
void |
put(org.rocksdb.ColumnFamilyHandle columnFamily,
byte[] key,
int keyLength,
byte[] value,
int valueLength) |
void |
put(org.rocksdb.ColumnFamilyHandle columnFamily,
org.agrona.DirectBuffer key,
org.agrona.DirectBuffer value) |
void |
put(org.rocksdb.ColumnFamilyHandle columnFamily,
long key,
byte[] value,
int valueLength) |
data, disposeInternal, getDataSize, getWalTerminationPoint, getWriteBatch, hasBeginPrepare, hasCommit, hasDelete, hasDeleteRange, hasEndPrepare, hasMerge, hasPut, hasRollback, hasSingleDelete, iterate, markWalTerminationPointclear, count, delete, delete, deleteRange, deleteRange, merge, merge, popSavePoint, put, put, putLogData, remove, remove, rollbackToSavePoint, setMaxBytes, setSavePoint, singleDelete, singleDeletepublic void put(org.rocksdb.ColumnFamilyHandle columnFamily,
byte[] key,
int keyLength,
byte[] value,
int valueLength)
public void put(org.rocksdb.ColumnFamilyHandle columnFamily,
org.agrona.DirectBuffer key,
org.agrona.DirectBuffer value)
public void put(org.rocksdb.ColumnFamilyHandle columnFamily,
long key,
byte[] value,
int valueLength)
public void delete(org.rocksdb.ColumnFamilyHandle columnFamily,
byte[] key,
int keyLength)
public void delete(org.rocksdb.ColumnFamilyHandle columnFamily,
org.agrona.DirectBuffer key)
public void delete(org.rocksdb.ColumnFamilyHandle columnFamily,
long key)
Copyright © 2017–2018 camunda services GmbH. All rights reserved.