sgns::storage::rocksdb::Batch¶
Class that is used to implement efficient bulk (batch) modifications of the Map.
#include <rocksdb_batch.hpp>
Inherits from sgns::storage::face::WriteBatch< Buffer, Buffer >, sgns::storage::face::Writeable< K, V >
Public Functions¶
| Name | |
|---|---|
| Batch(rocksdb & db) | |
| outcome::result< void > | put(const Buffer & key, const Buffer & value) override |
| outcome::result< void > | put(const Buffer & key, Buffer && value) override |
| outcome::result< void > | remove(const Buffer & key) override |
| virtual outcome::result< void > | commit() override Writes batch. |
| virtual void | clear() override Clear batch. |
Additional inherited members¶
Public Functions inherited from sgns::storage::face::Writeable< K, V >
| Name | |
|---|---|
| virtual | ~Writeable() =default |
Public Functions Documentation¶
function Batch¶
function put¶
function put¶
function remove¶
function commit¶
Writes batch.
Return: error code in case of error.
Reimplements: sgns::storage::face::WriteBatch::commit
function clear¶
Clear batch.
Reimplements: sgns::storage::face::WriteBatch::clear
Updated on 2026-06-05 at 17:22:18 -0700