|
Status | collection (const std::string &name, KeyValue::CollectionHandle &coll) const override |
| Get the handle to a collection, or return NotFound.
|
|
Status | create_collection (const std::string &name) override |
| Create a new collection, or return Exists.
|
|
Status | current (std::unique_ptr< KeyValue::Reader > &reader) const override |
|
Status | begin_writes (std::unique_ptr< KeyValue::WriteBatch > &writes) override |
|
Status | get (KeyValue::CollectionHandle _coll, const std::string &key, std::string &value) const override |
|
Status | put (KeyValue::CollectionHandle _coll, const std::string &key, const std::string &value) override |
|
virtual Status | current (std::unique_ptr< Reader > &snapshot) const =0 |
| Get an up-to-date snapshot.
|
|
virtual Status | begin_writes (std::unique_ptr< WriteBatch > &writes)=0 |
| Begin preparing a batch of writes.
|
|
Status | get (CollectionHandle coll, const std::string &key, std::string &value) const override |
|
Status | iterator (CollectionHandle coll, const std::string &key, std::unique_ptr< Iterator > &it) const override |
|
|
static Status | Initialize (const std::string &dbPath, std::unique_ptr< KeyValue::DB > &db, prefix_spec *pfx) |
|
static Status | Open (const std::string &dbPath, std::unique_ptr< KeyValue::DB > &db, prefix_spec *pfx, OpenMode mode) |
|
Status GLnexus::RocksKeyValue::DB::get |
( |
KeyValue::CollectionHandle |
coll, |
|
|
const std::string & |
key, |
|
|
std::string & |
value |
|
) |
| const |
|
inlineoverridevirtual |
Get the value corresponding to the key and return OK. Return NotFound if no corresponding record exists in the collection, or any error code
Implements GLnexus::KeyValue::Reader.
The documentation for this class was generated from the following file: