RocksDb-backed container adapter.
More...
|
| void | find (const RawBuffer &key, RdbDataIterator &iterator) const |
| | Finds element with key, storing result in iterator. More...
|
| |
| void | insert (const RawBuffer &key, const std::string &value) |
| | Inserts element with key and value. More...
|
| |
| void | remove (const RawBuffer &key) |
| | Removes element with key. More...
|
| |
| size_t | prune (uint64_t pruningBoundary) |
| | Prunes elements below pruningBoundary. Returns number of pruned elements. More...
|
| |
|
| void | load (const std::string &propertyName, const consumer< const char * > &sink) const |
| |
| void | save (const std::string &propertyName, const std::string &strValue) |
| |
RocksDb-backed container adapter.
◆ RdbColumnContainer()
| catapult::cache::RdbColumnContainer::RdbColumnContainer |
( |
RocksDatabase & |
database, |
|
|
size_t |
columnId |
|
) |
| |
Creates an adapter around database and columnId.
◆ database()
Returns underlying database.
◆ find()
| void catapult::cache::RdbColumnContainer::find |
( |
const RawBuffer & |
key, |
|
|
RdbDataIterator & |
iterator |
|
) |
| const |
|
protected |
Finds element with key, storing result in iterator.
◆ insert()
| void catapult::cache::RdbColumnContainer::insert |
( |
const RawBuffer & |
key, |
|
|
const std::string & |
value |
|
) |
| |
|
protected |
Inserts element with key and value.
◆ load()
| void catapult::cache::RdbColumnContainer::load |
( |
const std::string & |
propertyName, |
|
|
const consumer< const char * > & |
sink |
|
) |
| const |
|
private |
◆ prop()
template<typename TValue >
| bool catapult::cache::RdbColumnContainer::prop |
( |
const std::string & |
propertyName, |
|
|
TValue & |
value |
|
) |
| const |
|
inline |
Returns false if property value of a column (propertyName) is not found, otherwise returns true and sets value to retrieved property value.
◆ prune()
| size_t catapult::cache::RdbColumnContainer::prune |
( |
uint64_t |
pruningBoundary | ) |
|
|
protected |
Prunes elements below pruningBoundary. Returns number of pruned elements.
◆ remove()
| void catapult::cache::RdbColumnContainer::remove |
( |
const RawBuffer & |
key | ) |
|
|
protected |
Removes element with key.
◆ save()
| void catapult::cache::RdbColumnContainer::save |
( |
const std::string & |
propertyName, |
|
|
const std::string & |
strValue |
|
) |
| |
|
private |
◆ setProp()
template<typename TValue >
| void catapult::cache::RdbColumnContainer::setProp |
( |
const std::string & |
propertyName, |
|
|
const TValue & |
value |
|
) |
| |
|
inline |
Sets property value of a column (propertyName) to value.
◆ setSize()
| void catapult::cache::RdbColumnContainer::setSize |
( |
size_t |
newSize | ) |
|
Sets size of the column to newSize.
◆ size()
| size_t catapult::cache::RdbColumnContainer::size |
( |
| ) |
const |
Returns size of the column.
◆ m_columnId
| size_t catapult::cache::RdbColumnContainer::m_columnId |
|
private |
◆ m_database
◆ m_size
| size_t catapult::cache::RdbColumnContainer::m_size |
|
private |
The documentation for this class was generated from the following files: