LevelDBBatchBuilder

Constructs and manages a collection of batch operations for LevelDB.

This class allows the construction of operations to be executed in a single LevelDB.batch against a LevelDB database. It supports adding LevelDB.put and LevelDB.delete operations for specific keys, and building the final list of operations to be executed.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Builds and returns a list of accumulated LevelDB batch operations.

Link copied to clipboard
fun delete(key: String)

Adds a LevelDB.delete operation to the batch for the specified key.

Link copied to clipboard
fun put(key: String, value: String)

Adds a LevelDB.put operation to the batch with the specified key and value.