SWC-DB  v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
SWC::DB::RgrData::BaseSelector Class Referenceabstract

#include <swcdb/db/Columns/RgrData.h>

+ Inheritance diagram for SWC::DB::RgrData::BaseSelector:
+ Collaboration diagram for SWC::DB::RgrData::BaseSelector:

Public Types

typedef std::shared_ptr< BaseSelectorPtr
 
- Public Types inherited from SWC::client::Query::Select::Handlers::BaseSingleColumn
typedef std::shared_ptr< BaseSingleColumnPtr
 
- Public Types inherited from SWC::client::Query::Select::Handlers::Base
typedef std::shared_ptr< BasePtr
 

Public Member Functions

SWC_CAN_INLINE BaseSelector ()
 
bool valid () noexcept override
 
void response (int err) override
 
virtual void callback ()=0
 
void scan (cid_t a_cid, rid_t a_rid)
 
void get_rgr (int &err, DB::RgrData &data) noexcept
 
- Public Member Functions inherited from SWC::client::Query::Select::Handlers::BaseSingleColumn
SWC_CAN_INLINE BaseSingleColumn (const Clients::Ptr &a_clients, const cid_t a_cid, Clients::Flag a_executor=Clients::DEFAULT) noexcept
 
virtual ~BaseSingleColumn () noexcept
 
virtual void error (const cid_t _cid, int err) override
 
virtual bool add_cells (const cid_t _cid, StaticBuffer &buffer, bool reached_limit, DB::Specs::Interval &interval) override
 
virtual size_t get_size_bytes () noexcept override
 
virtual size_t get_size () noexcept
 
virtual bool empty () noexcept
 
virtual void get_cells (DB::Cells::Result &cells)
 
virtual void error (const cid_t cid, int err)=0
 
virtual int error () noexcept
 
virtual void error (int err) noexcept
 
- Public Member Functions inherited from SWC::client::Query::Select::Handlers::Base
SWC_CAN_INLINE Base (const Clients::Ptr &a_clients, Clients::Flag a_executor=Clients::DEFAULT) noexcept
 
 Base (Base &&)=delete
 
 Base (const Base &)=delete
 
Baseoperator= (const Base &)=delete
 
Baseoperator= (Base &&)=delete
 
virtual void error (int err) noexcept
 
SWC_CAN_INLINE void scan (const DB::Schema::Ptr &schema, const DB::Specs::Interval &intval)
 
SWC_CAN_INLINE void scan (const DB::Schema::Ptr &schema, DB::Specs::Interval &&intval)
 
SWC_CAN_INLINE void scan (DB::Types::KeySeq key_seq, cid_t cid, const DB::Specs::Interval &intval)
 
SWC_CAN_INLINE void scan (DB::Types::KeySeq key_seq, cid_t cid, DB::Specs::Interval &&intval)
 
SWC_CAN_INLINE void scan (int &err, const DB::Specs::Scan &specs)
 
SWC_CAN_INLINE void scan (int &err, DB::Specs::Scan &&specs)
 

Protected Member Functions

virtual ~BaseSelector () noexcept
 
- Protected Member Functions inherited from SWC::client::Query::Select::Handlers::Base
virtual void _execute (DB::Types::KeySeq key_seq, cid_t cid, const DB::Specs::Interval &intval)
 
virtual void _execute (DB::Types::KeySeq key_seq, cid_t cid, DB::Specs::Interval &&intval)
 
virtual void _execute (int &err, const DB::Specs::Scan &specs)
 
virtual void _execute (int &err, DB::Specs::Scan &&specs)
 
virtual ~Base () noexcept
 

Additional Inherited Members

- Public Attributes inherited from SWC::client::Query::Select::Handlers::BaseSingleColumn
const cid_t cid
 
- Public Attributes inherited from SWC::client::Query::Select::Handlers::Base
Clients::Ptr clients
 
Profiling profile
 
Core::Atomic< int > state_error
 
Core::CompletionCounter< uint64_t > completion
 
Core::Atomic< uint32_t > timeout
 
Core::Atomic< uint32_t > buff_sz
 
Core::Atomic< uint8_t > buff_ahead
 
const Clients::Flag executor
 

Detailed Description

Definition at line 236 of file RgrData.h.

Member Typedef Documentation

◆ Ptr

Definition at line 239 of file RgrData.h.

Constructor & Destructor Documentation

◆ BaseSelector()

SWC_CAN_INLINE SWC::DB::RgrData::BaseSelector::BaseSelector ( )
inline

Definition at line 245 of file RgrData.h.

◆ ~BaseSelector()

virtual SWC::DB::RgrData::BaseSelector::~BaseSelector ( )
inlineprotectedvirtualnoexcept

Definition at line 296 of file RgrData.h.

Member Function Documentation

◆ callback()

virtual void SWC::DB::RgrData::BaseSelector::callback ( )
pure virtual

Implemented in SWC::DB::RgrData::SyncSelector.

Referenced by response().

+ Here is the caller graph for this function:

◆ get_rgr()

void SWC::DB::RgrData::BaseSelector::get_rgr ( int &  err,
DB::RgrData data 
)
inlinenoexcept

Definition at line 279 of file RgrData.h.

References data, SWC::client::Query::Select::Handlers::BaseSingleColumn::get_cells(), SWC_CURRENT_EXCEPTION, SWC::DB::Cells::Cell::value, and SWC::DB::Cells::Cell::vlen.

+ Here is the call graph for this function:

◆ response()

void SWC::DB::RgrData::BaseSelector::response ( int  err)
inlineoverridevirtual

Implements SWC::client::Query::Select::Handlers::Base.

Definition at line 254 of file RgrData.h.

References callback(), SWC::Core::AtomicBase< T, OrderT >::compare_exchange_weak(), SWC::client::Query::Profiling::finished(), SWC::Error::OK, SWC::client::Query::Select::Handlers::Base::profile, and SWC::client::Query::Select::Handlers::Base::state_error.

+ Here is the call graph for this function:

◆ scan()

void SWC::DB::RgrData::BaseSelector::scan ( cid_t  a_cid,
rid_t  a_rid 
)
inline

◆ valid()

bool SWC::DB::RgrData::BaseSelector::valid ( )
inlineoverridevirtualnoexcept

Implements SWC::client::Query::Select::Handlers::Base.

Definition at line 250 of file RgrData.h.

References SWC::client::Query::Select::Handlers::Base::state_error.

Referenced by SWC::Manager::Range::get_last_rgr().

+ Here is the caller graph for this function:

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