CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
26 namespace catapult {
namespace cache {
29 template<
typename TTree>
34 :
m_pImpl(enable ? std::make_unique<Impl>(database, columnId) : nullptr)
39 const auto*
get()
const {
CachePatriciaTree(bool enable, CacheDatabase &database, size_t columnId)
Creates a tree around database and columnId if enable is true.
Definition: CachePatriciaTree.h:33
bool prop(const std::string &propertyName, TValue &value) const
Definition: RdbColumnContainer.h:51
PatriciaTreeRdbDataSource m_dataSource
Definition: CachePatriciaTree.h:101
utils::ByteArray< Hash256_Size, Hash256_tag > Hash256
Definition: src/catapult/types.h:47
const auto & tree() const
Definition: CachePatriciaTree.h:79
PatriciaTreeContainer m_container
Definition: CachePatriciaTree.h:100
Patricia tree rocksdb-based data source.
Definition: PatriciaTreeRdbDataSource.h:28
auto & tree()
Definition: CachePatriciaTree.h:83
void setProp(const std::string &propertyName, const TValue &value)
Sets property value of a column (propertyName) to value.
Definition: RdbColumnContainer.h:66
const auto * get() const
Gets a pointer to the underlying tree if enabled.
Definition: CachePatriciaTree.h:39
void commit()
Commits all changes in the rebased tree.
Definition: CachePatriciaTree.h:56
auto rebaseDetached() const
Definition: CachePatriciaTree.h:51
std::unique_ptr< TTree > m_pTree
Definition: CachePatriciaTree.h:102
Definition: CachePatriciaTree.h:62
RocksDb-backed database.
Definition: RocksDatabase.h:116
auto rebase()
Returns a delta based on the same data source as this tree.
Definition: CachePatriciaTree.h:45
void commit()
Definition: CachePatriciaTree.h:88
Definition: AddressExtractionExtension.cpp:28
Impl(CacheDatabase &database, size_t columnId)
Definition: CachePatriciaTree.h:64
A wrapper around a patricia tree used by caches.
Definition: CachePatriciaTree.h:30
std::unique_ptr< Impl > m_pImpl
Definition: CachePatriciaTree.h:105