OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GenDb::GenDbIf Class Referenceabstract

#include <gendb_if.h>

Inheritance diagram for GenDb::GenDbIf:

Public Types

typedef boost::function< void(void)> DbErrorHandler
 
typedef boost::function< void(size_t)> DbQueueWaterMarkCb
 
typedef boost::function< void(DbOpResult::type)> DbAddColumnCb
 
typedef boost::function< void(DbOpResult::type,
std::auto_ptr< ColList >)> 
DbGetRowCb
 

Public Member Functions

 GenDbIf ()
 
virtual ~GenDbIf ()
 
virtual bool Db_Init ()=0
 
virtual void Db_Uninit ()=0
 
virtual void Db_SetInitDone (bool init_done)=0
 
virtual bool Db_SetTablespace (const std::string &tablespace)=0
 
virtual bool Db_AddSetTablespace (const std::string &tablespace, const std::string &replication_factor="1")=0
 
virtual bool Db_AddColumnfamily (const NewCf &cf, const std::string &compaction_strategy)=0
 
virtual bool Db_UseColumnfamily (const NewCf &cf)=0
 
virtual bool Db_UseColumnfamily (const std::string &cfname)=0
 
virtual bool Db_CreateIndex (const std::string &cfname, const std::string &column, const std::string &indexname, const GenDb::ColIndexMode::type index_mode=GenDb::ColIndexMode::NONE)=0
 
virtual bool Db_AddColumn (std::auto_ptr< ColList > cl, DbConsistency::type dconsistency, DbAddColumnCb cb)=0
 
virtual bool Db_AddColumnSync (std::auto_ptr< ColList > cl, DbConsistency::type dconsistency)=0
 
virtual bool Db_GetRow (ColList *ret, const std::string &cfname, const DbDataValueVec &rowkey, DbConsistency::type dconsistency)=0
 
virtual bool Db_GetRow (ColList *ret, const std::string &cfname, const DbDataValueVec &rowkey, DbConsistency::type dconsistency, const ColumnNameRange &crange, const FieldNamesToReadVec &read_vec)=0
 
virtual bool Db_GetMultiRow (ColListVec *ret, const std::string &cfname, const std::vector< DbDataValueVec > &key)=0
 
virtual bool Db_GetMultiRow (ColListVec *ret, const std::string &cfname, const std::vector< DbDataValueVec > &key, const ColumnNameRange &crange)=0
 
virtual bool Db_GetMultiRow (ColListVec *ret, const std::string &cfname, const std::vector< DbDataValueVec > &key, const ColumnNameRange &crange, const FieldNamesToReadVec &read_vec, DbConsistency::type dconsistency=DbConsistency::ONE)=0
 
virtual bool Db_GetRowAsync (const std::string &cfname, const DbDataValueVec &rowkey, DbConsistency::type dconsistency, int task_id, int task_instance, DbGetRowCb cb)=0
 
virtual bool Db_GetRowAsync (const std::string &cfname, const DbDataValueVec &rowkey, DbConsistency::type dconsistency, DbGetRowCb cb)=0
 
virtual bool Db_GetRowAsync (const std::string &cfname, const DbDataValueVec &rowkey, const ColumnNameRange &crange, DbConsistency::type dconsistency, DbGetRowCb cb)=0
 
virtual bool Db_GetRowAsync (const std::string &cfname, const DbDataValueVec &rowkey, const ColumnNameRange &crange, DbConsistency::type dconsistency, int task_id, int task_instance, DbGetRowCb cb)=0
 
virtual bool Db_GetRowAsync (const std::string &cfname, const GenDb::DbDataValueVec &rowkey, const GenDb::ColumnNameRange &crange, const GenDb::WhereIndexInfoVec &where_vec, GenDb::DbConsistency::type dconsistency, GenDb::GenDbIf::DbGetRowCb cb)=0
 
virtual bool Db_GetAllRows (ColListVec *ret, const std::string &cfname, DbConsistency::type dconsistency)=0
 
virtual bool Db_GetQueueStats (uint64_t *queue_count, uint64_t *enqueues) const =0
 
virtual void Db_SetQueueWaterMark (bool high, size_t queue_count, DbQueueWaterMarkCb cb)=0
 
virtual void Db_ResetQueueWaterMarks ()=0
 
virtual bool Db_GetStats (std::vector< DbTableInfo > *vdbti, DbErrors *dbe)=0
 
virtual bool Db_GetCumulativeStats (std::vector< DbTableInfo > *vdbti, DbErrors *dbe) const =0
 
virtual std::vector< EndpointDb_GetEndpoints () const =0
 

Detailed Description

Definition at line 250 of file gendb_if.h.

Member Typedef Documentation

typedef boost::function<void(DbOpResult::type)> GenDb::GenDbIf::DbAddColumnCb

Definition at line 254 of file gendb_if.h.

typedef boost::function<void(void)> GenDb::GenDbIf::DbErrorHandler

Definition at line 252 of file gendb_if.h.

typedef boost::function<void(DbOpResult::type, std::auto_ptr<ColList>)> GenDb::GenDbIf::DbGetRowCb

Definition at line 256 of file gendb_if.h.

typedef boost::function<void(size_t)> GenDb::GenDbIf::DbQueueWaterMarkCb

Definition at line 253 of file gendb_if.h.

Constructor & Destructor Documentation

GenDb::GenDbIf::GenDbIf ( )
inline

Definition at line 258 of file gendb_if.h.

virtual GenDb::GenDbIf::~GenDbIf ( )
inlinevirtual

Definition at line 259 of file gendb_if.h.

Member Function Documentation

virtual bool GenDb::GenDbIf::Db_AddColumn ( std::auto_ptr< ColList cl,
DbConsistency::type  dconsistency,
DbAddColumnCb  cb 
)
pure virtual

Implemented in cass::cql::CqlIf.

virtual bool GenDb::GenDbIf::Db_AddColumnfamily ( const NewCf cf,
const std::string &  compaction_strategy 
)
pure virtual

Implemented in cass::cql::CqlIf.

virtual bool GenDb::GenDbIf::Db_AddColumnSync ( std::auto_ptr< ColList cl,
DbConsistency::type  dconsistency 
)
pure virtual

Implemented in cass::cql::CqlIf.

virtual bool GenDb::GenDbIf::Db_AddSetTablespace ( const std::string &  tablespace,
const std::string &  replication_factor = "1" 
)
pure virtual

Implemented in cass::cql::CqlIf.

virtual bool GenDb::GenDbIf::Db_CreateIndex ( const std::string &  cfname,
const std::string &  column,
const std::string &  indexname,
const GenDb::ColIndexMode::type  index_mode = GenDb::ColIndexMode::NONE 
)
pure virtual

Implemented in cass::cql::CqlIf.

virtual bool GenDb::GenDbIf::Db_GetAllRows ( ColListVec ret,
const std::string &  cfname,
DbConsistency::type  dconsistency 
)
pure virtual

Implemented in cass::cql::CqlIf.

virtual bool GenDb::GenDbIf::Db_GetCumulativeStats ( std::vector< DbTableInfo > *  vdbti,
DbErrors *  dbe 
) const
pure virtual
virtual std::vector<Endpoint> GenDb::GenDbIf::Db_GetEndpoints ( ) const
pure virtual

Implemented in cass::cql::CqlIf.

virtual bool GenDb::GenDbIf::Db_GetMultiRow ( ColListVec ret,
const std::string &  cfname,
const std::vector< DbDataValueVec > &  key 
)
pure virtual
virtual bool GenDb::GenDbIf::Db_GetMultiRow ( ColListVec ret,
const std::string &  cfname,
const std::vector< DbDataValueVec > &  key,
const ColumnNameRange crange 
)
pure virtual
virtual bool GenDb::GenDbIf::Db_GetMultiRow ( ColListVec ret,
const std::string &  cfname,
const std::vector< DbDataValueVec > &  key,
const ColumnNameRange crange,
const FieldNamesToReadVec read_vec,
DbConsistency::type  dconsistency = DbConsistency::ONE 
)
pure virtual
virtual bool GenDb::GenDbIf::Db_GetQueueStats ( uint64_t *  queue_count,
uint64_t *  enqueues 
) const
pure virtual

Implemented in cass::cql::CqlIf.

virtual bool GenDb::GenDbIf::Db_GetRow ( ColList ret,
const std::string &  cfname,
const DbDataValueVec rowkey,
DbConsistency::type  dconsistency 
)
pure virtual

Implemented in cass::cql::CqlIf.

virtual bool GenDb::GenDbIf::Db_GetRow ( ColList ret,
const std::string &  cfname,
const DbDataValueVec rowkey,
DbConsistency::type  dconsistency,
const ColumnNameRange crange,
const FieldNamesToReadVec read_vec 
)
pure virtual

Implemented in cass::cql::CqlIf.

virtual bool GenDb::GenDbIf::Db_GetRowAsync ( const std::string &  cfname,
const DbDataValueVec rowkey,
DbConsistency::type  dconsistency,
int  task_id,
int  task_instance,
DbGetRowCb  cb 
)
pure virtual

Implemented in cass::cql::CqlIf.

virtual bool GenDb::GenDbIf::Db_GetRowAsync ( const std::string &  cfname,
const DbDataValueVec rowkey,
DbConsistency::type  dconsistency,
DbGetRowCb  cb 
)
pure virtual

Implemented in cass::cql::CqlIf.

virtual bool GenDb::GenDbIf::Db_GetRowAsync ( const std::string &  cfname,
const DbDataValueVec rowkey,
const ColumnNameRange crange,
DbConsistency::type  dconsistency,
DbGetRowCb  cb 
)
pure virtual

Implemented in cass::cql::CqlIf.

virtual bool GenDb::GenDbIf::Db_GetRowAsync ( const std::string &  cfname,
const DbDataValueVec rowkey,
const ColumnNameRange crange,
DbConsistency::type  dconsistency,
int  task_id,
int  task_instance,
DbGetRowCb  cb 
)
pure virtual

Implemented in cass::cql::CqlIf.

virtual bool GenDb::GenDbIf::Db_GetRowAsync ( const std::string &  cfname,
const GenDb::DbDataValueVec rowkey,
const GenDb::ColumnNameRange crange,
const GenDb::WhereIndexInfoVec where_vec,
GenDb::DbConsistency::type  dconsistency,
GenDb::GenDbIf::DbGetRowCb  cb 
)
pure virtual

Implemented in cass::cql::CqlIf.

virtual bool GenDb::GenDbIf::Db_GetStats ( std::vector< DbTableInfo > *  vdbti,
DbErrors *  dbe 
)
pure virtual
virtual bool GenDb::GenDbIf::Db_Init ( )
pure virtual

Implemented in cass::cql::CqlIf.

virtual void GenDb::GenDbIf::Db_ResetQueueWaterMarks ( )
pure virtual

Implemented in cass::cql::CqlIf.

virtual void GenDb::GenDbIf::Db_SetInitDone ( bool  init_done)
pure virtual

Implemented in cass::cql::CqlIf.

virtual void GenDb::GenDbIf::Db_SetQueueWaterMark ( bool  high,
size_t  queue_count,
DbQueueWaterMarkCb  cb 
)
pure virtual

Implemented in cass::cql::CqlIf.

virtual bool GenDb::GenDbIf::Db_SetTablespace ( const std::string &  tablespace)
pure virtual

Implemented in cass::cql::CqlIf.

virtual void GenDb::GenDbIf::Db_Uninit ( )
pure virtual

Implemented in cass::cql::CqlIf.

virtual bool GenDb::GenDbIf::Db_UseColumnfamily ( const NewCf cf)
pure virtual

Implemented in cass::cql::CqlIf.

virtual bool GenDb::GenDbIf::Db_UseColumnfamily ( const std::string &  cfname)
pure virtual

Implemented in cass::cql::CqlIf.


The documentation for this class was generated from the following file: