Skip to content

sgns::storage::face::Batchable

A mixin for a map that supports batching for efficiency of modifications. More...

#include <batchable.hpp>

Inherited by sgns::storage::face::BatchWriteMap< Buffer, Buffer >, sgns::storage::face::BatchWriteMap< K, V >

Public Functions

Name
virtual ~Batchable() =default
virtual std::unique_ptr< WriteBatch< K, V > > batch() =0
Creates new Write Batch - an object, which can be used to efficiently write bulk data.

Detailed Description

template <typename K ,
typename V >
struct sgns::storage::face::Batchable;

A mixin for a map that supports batching for efficiency of modifications.

Template Parameters:

  • K key type
  • V value type

Public Functions Documentation

function ~Batchable

virtual ~Batchable() =default

function batch

virtual std::unique_ptr< WriteBatch< K, V > > batch() =0

Creates new Write Batch - an object, which can be used to efficiently write bulk data.

Reimplemented by: sgns::storage::InMemoryStorage::batch, sgns::storage::rocksdb::batch, sgns::storage::trie::TrieStorageBackendImpl::batch


Updated on 2026-03-04 at 13:10:44 -0800