CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::RocksDatabaseSettings Struct Reference

RocksDb settings. More...

Collaboration diagram for catapult::cache::RocksDatabaseSettings:

Public Member Functions

 RocksDatabaseSettings ()
 Creates default database settings. More...
 
 RocksDatabaseSettings (const std::string &databaseDirectory, const std::vector< std::string > &columnFamilyNames, utils::FileSize maxDatabaseWriteBatchSize, FilterPruningMode pruningMode)
 

Public Attributes

const std::string DatabaseDirectory
 Database directory. More...
 
const std::vector< std::string > ColumnFamilyNames
 Names of database columns. More...
 
const utils::FileSize MaxDatabaseWriteBatchSize
 Maximum size of database write batch. More...
 
const FilterPruningMode PruningMode
 Database pruning mode. More...
 

Detailed Description

RocksDb settings.

Constructor & Destructor Documentation

◆ RocksDatabaseSettings() [1/2]

catapult::cache::RocksDatabaseSettings::RocksDatabaseSettings ( )

Creates default database settings.

◆ RocksDatabaseSettings() [2/2]

catapult::cache::RocksDatabaseSettings::RocksDatabaseSettings ( const std::string &  databaseDirectory,
const std::vector< std::string > &  columnFamilyNames,
utils::FileSize  maxDatabaseWriteBatchSize,
FilterPruningMode  pruningMode 
)

Creates database settings around databaseDirectory, column names (columnFamilyNames), maximum size of saved batch (maxDatabaseWriteBatchSize) and pruningMode.

Member Data Documentation

◆ ColumnFamilyNames

const std::vector<std::string> catapult::cache::RocksDatabaseSettings::ColumnFamilyNames

Names of database columns.

◆ DatabaseDirectory

const std::string catapult::cache::RocksDatabaseSettings::DatabaseDirectory

Database directory.

◆ MaxDatabaseWriteBatchSize

const utils::FileSize catapult::cache::RocksDatabaseSettings::MaxDatabaseWriteBatchSize

Maximum size of database write batch.

◆ PruningMode

const FilterPruningMode catapult::cache::RocksDatabaseSettings::PruningMode

Database pruning mode.


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