Kagome
Polkadot Runtime Engine in C++17
kagome::storage::face::BatchWriteable< K, V > Struct Template Referenceabstract

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

#include <batch_writeable.hpp>

Inheritance diagram for kagome::storage::face::BatchWriteable< K, V >:
Collaboration diagram for kagome::storage::face::BatchWriteable< K, V >:

Public Member Functions

virtual ~BatchWriteable ()=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. More...
 

Detailed Description

template<typename K, typename V>
struct kagome::storage::face::BatchWriteable< K, V >

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

Template Parameters
Kkey type
Vvalue type

Definition at line 23 of file batch_writeable.hpp.

Constructor & Destructor Documentation

template<typename K, typename V>
virtual kagome::storage::face::BatchWriteable< K, V >::~BatchWriteable ( )
virtualdefault

Member Function Documentation

template<typename K, typename V>
virtual std::unique_ptr<WriteBatch<K, V> > kagome::storage::face::BatchWriteable< K, V >::batch ( )
pure virtual

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

Implemented in kagome::storage::InMemoryStorage, kagome::storage::RocksDB, and kagome::storage::trie::TrieStorageBackendImpl.


The documentation for this struct was generated from the following file: