CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
27 namespace catapult {
namespace cache {
35 const std::vector<std::string>& columnFamilyNames,
39 config.CacheDatabaseDirectory,
41 config.MaxCacheDatabaseWriteBatchSize,
76 const std::vector<std::string>& columnFamilyNames) {
77 auto adjustedColumnFamilyNames = columnFamilyNames;
79 adjustedColumnFamilyNames.push_back(
"patricia_tree");
81 return adjustedColumnFamilyNames;
static std::vector< std::string > GetAdjustedColumnFamilyNames(const CacheConfiguration &config, const std::vector< std::string > &columnFamilyNames)
Definition: CacheDatabaseMixin.h:74
RocksDb settings.
Definition: RocksDatabase.h:88
CacheDatabaseMixin(const CacheConfiguration &config, const std::vector< std::string > &columnFamilyNames, FilterPruningMode pruningMode=FilterPruningMode::Disabled)
Creates a mixin around config and columnFamilyNames with optional pruningMode.
Definition: CacheDatabaseMixin.h:33
bool hasPatriciaTreeSupport() const
Returns true if patricia tree support is enabled.
Definition: CacheDatabaseMixin.h:50
ConditionalContainerMode
Possible conditional container modes.
Definition: ConditionalContainer.h:43
bool ShouldUseCacheDatabase
true if a cache database should be used, false otherwise.
Definition: CacheConfiguration.h:59
static deltaset::ConditionalContainerMode GetContainerMode(const CacheConfiguration &config)
Gets the container mode specified by config.
Definition: CacheDatabaseMixin.h:61
FilterPruningMode
Possible modes of rocks pruning filter.
Definition: RocksPruningFilter.h:29
Mixin that owns a cache database.
Definition: CacheDatabaseMixin.h:30
const bool m_hasPatriciaTreeSupport
Definition: CacheDatabaseMixin.h:87
const deltaset::ConditionalContainerMode m_containerMode
Definition: CacheDatabaseMixin.h:86
std::unique_ptr< CacheDatabase > m_pDatabase
Definition: CacheDatabaseMixin.h:85
Disabled, skip allocation of underlying filter implementation.
RocksDb-backed database.
Definition: RocksDatabase.h:116
CacheDatabase & database()
Gets the database.
Definition: CacheDatabaseMixin.h:55
Cache configuration.
Definition: CacheConfiguration.h:37
void flush()
Finalize batched operations.
Definition: RocksDatabase.cpp:202
Definition: AddressExtractionExtension.cpp:28
void flush()
Flushes the database.
Definition: CacheDatabaseMixin.h:68
bool ShouldStorePatriciaTrees
true if patricia trees should be stored, false otherwise.
Definition: CacheConfiguration.h:68