GLnexus
Scalable datastore for population genome sequencing, with on-demand joint genotyping
 All Classes Functions Variables
Public Member Functions | Static Public Member Functions | List of all members
GLnexus::RocksKeyValue::DB Class Reference
Inheritance diagram for GLnexus::RocksKeyValue::DB:
GLnexus::KeyValue::DB GLnexus::KeyValue::Reader

Public Member Functions

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
 
- Public Member Functions inherited from GLnexus::KeyValue::DB
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 Public Member Functions

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)
 

Member Function Documentation

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: