CatapultServer
v0.5.0.1 (Elephant)
|
RocksDb settings. More...
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... | |
RocksDb settings.
catapult::cache::RocksDatabaseSettings::RocksDatabaseSettings | ( | ) |
Creates default database settings.
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.
const std::vector<std::string> catapult::cache::RocksDatabaseSettings::ColumnFamilyNames |
Names of database columns.
const std::string catapult::cache::RocksDatabaseSettings::DatabaseDirectory |
Database directory.
const utils::FileSize catapult::cache::RocksDatabaseSettings::MaxDatabaseWriteBatchSize |
Maximum size of database write batch.
const FilterPruningMode catapult::cache::RocksDatabaseSettings::PruningMode |
Database pruning mode.