RocksDb-backed database.
More...
◆ RocksDatabase() [1/2]
catapult::cache::RocksDatabase::RocksDatabase |
( |
| ) |
|
|
default |
Creates an empty database.
◆ RocksDatabase() [2/2]
Creates database around settings.
◆ ~RocksDatabase()
catapult::cache::RocksDatabase::~RocksDatabase |
( |
| ) |
|
◆ canPrune()
bool catapult::cache::RocksDatabase::canPrune |
( |
| ) |
const |
Returns true
if pruning is enabled.
◆ columnFamilyNames()
const std::vector< std::string > & catapult::cache::RocksDatabase::columnFamilyNames |
( |
| ) |
const |
Gets the database column family names.
◆ del()
void catapult::cache::RocksDatabase::del |
( |
size_t |
columnId, |
|
|
const rocksdb::Slice & |
key |
|
) |
| |
Deletes key from columnId.
◆ flush()
void catapult::cache::RocksDatabase::flush |
( |
| ) |
|
Finalize batched operations.
◆ get()
void catapult::cache::RocksDatabase::get |
( |
size_t |
columnId, |
|
|
const rocksdb::Slice & |
key, |
|
|
RdbDataIterator & |
result |
|
) |
| |
Gets key from columnId returning data in result.
◆ prune()
size_t catapult::cache::RocksDatabase::prune |
( |
size_t |
columnId, |
|
|
uint64_t |
boundary |
|
) |
| |
Prunes elements from columnId below boundary. Returns number of pruned elements.
◆ put()
void catapult::cache::RocksDatabase::put |
( |
size_t |
columnId, |
|
|
const rocksdb::Slice & |
key, |
|
|
const std::string & |
value |
|
) |
| |
Puts value with key in columnId.
◆ saveIfBatchFull()
void catapult::cache::RocksDatabase::saveIfBatchFull |
( |
| ) |
|
|
private |
◆ m_handles
std::vector<rocksdb::ColumnFamilyHandle*> catapult::cache::RocksDatabase::m_handles |
|
private |
◆ m_pDb
std::unique_ptr<rocksdb::DB> catapult::cache::RocksDatabase::m_pDb |
|
private |
◆ m_pruningFilter
◆ m_pWriteBatch
std::unique_ptr<rocksdb::WriteBatch> catapult::cache::RocksDatabase::m_pWriteBatch |
|
private |
◆ m_settings
The documentation for this class was generated from the following files: