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::Ranger::Query::Update::CommonMeta Class Reference

#include <swcdb/ranger/queries/update/CommonMeta.h>

+ Inheritance diagram for SWC::Ranger::Query::Update::CommonMeta:
+ Collaboration diagram for SWC::Ranger::Query::Update::CommonMeta:

Public Types

typedef std::shared_ptr< CommonMetaPtr
 
typedef std::function< void(const Ptr &)> Cb_t
 
- Public Types inherited from SWC::Ranger::Query::Update::BaseMeta
typedef std::shared_ptr< BaseMetaPtr
 
- Public Types inherited from SWC::client::Query::Update::Handlers::BaseSingleColumn
typedef std::shared_ptr< BaseSingleColumnPtr
 
- Public Types inherited from SWC::client::Query::Update::Handlers::Base
typedef std::shared_ptr< BasePtr
 
typedef Core::Vector< Column * > Colms
 

Public Member Functions

SWC_CAN_INLINE CommonMeta (const RangePtr &a_range, Cb_t &&a_cb)
 
virtual ~CommonMeta () noexcept
 
virtual void response (int err=Error::OK) override
 
virtual void callback () override
 
- Public Member Functions inherited from SWC::Ranger::Query::Update::BaseMeta
 BaseMeta (const RangePtr &range)
 
virtual bool valid () noexcept override
 
bool is_last_rsp (int err)
 
- Public Member Functions inherited from SWC::client::Query::Update::Handlers::BaseSingleColumn
SWC_CAN_INLINE BaseSingleColumn (const Clients::Ptr &a_clients, const cid_t cid, DB::Types::KeySeq seq, uint32_t versions, uint32_t ttl_secs, DB::Types::Column type, Clients::Flag a_executor=Clients::DEFAULT)
 
SWC_CAN_INLINE BaseSingleColumn (const Clients::Ptr &a_clients, const cid_t cid, DB::Types::KeySeq seq, uint32_t versions, uint32_t ttl_secs, DB::Types::Column type, const StaticBuffer &buffer)
 
virtual ~BaseSingleColumn () noexcept
 
virtual bool requires_commit () noexcept override
 
virtual bool empty () noexcept override
 
virtual size_t size_bytes () noexcept override
 
virtual void next (Base::Colms &cols) noexcept override
 
virtual Base::Columnnext (cid_t cid) noexcept override
 
virtual void error (cid_t cid, int err) noexcept override
 
SWC_CAN_INLINE size_t size () noexcept
 
- Public Member Functions inherited from SWC::client::Query::Update::Handlers::Base
SWC_CAN_INLINE Base (const Clients::Ptr &a_clients, Clients::Flag a_executor=Clients::Flag::DEFAULT) noexcept
 
 Base (Base &&)=delete
 
 Base (const Base &)=delete
 
Baseoperator= (const Base &)=delete
 
Baseoperator= (Base &&)=delete
 
virtual int error () noexcept
 
virtual void error (int err) noexcept
 
SWC_CAN_INLINE void add_resend_count (size_t count) noexcept
 
SWC_CAN_INLINE size_t get_resend_count (bool reset=true) noexcept
 
void commit ()
 
SWC_CAN_INLINE void commit (const cid_t cid)
 
void commit (Column *colp)
 

Static Public Member Functions

static SWC_CAN_INLINE Ptr make (const RangePtr &range, Cb_t &&cb)
 

Public Attributes

const Cb_t cb
 
- Public Attributes inherited from SWC::Ranger::Query::Update::BaseMeta
RangePtr range
 
- Public Attributes inherited from SWC::client::Query::Update::Handlers::BaseSingleColumn
ColumnMutable column
 
- Public Attributes inherited from SWC::client::Query::Update::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 > timeout_ratio
 
Core::Atomic< uint32_t > buff_sz
 
Core::Atomic< uint8_t > buff_ahead
 
const Clients::Flag executor
 

Additional Inherited Members

- Protected Member Functions inherited from SWC::Ranger::Query::Update::BaseMeta
virtual ~BaseMeta () noexcept
 
- Protected Member Functions inherited from SWC::client::Query::Update::Handlers::Base
virtual void _execute (Column *colp)
 
virtual ~Base () noexcept
 

Detailed Description

Definition at line 13 of file CommonMeta.h.

Member Typedef Documentation

◆ Cb_t

typedef std::function<void(const Ptr&)> SWC::Ranger::Query::Update::CommonMeta::Cb_t

Definition at line 16 of file CommonMeta.h.

◆ Ptr

Definition at line 15 of file CommonMeta.h.

Constructor & Destructor Documentation

◆ CommonMeta()

SWC_CAN_INLINE SWC::Ranger::Query::Update::CommonMeta::CommonMeta ( const RangePtr a_range,
Cb_t &&  a_cb 
)
inline

Definition at line 26 of file CommonMeta.h.

Referenced by make().

+ Here is the caller graph for this function:

◆ ~CommonMeta()

virtual SWC::Ranger::Query::Update::CommonMeta::~CommonMeta ( )
inlinevirtualnoexcept

Definition at line 30 of file CommonMeta.h.

Member Function Documentation

◆ callback()

virtual void SWC::Ranger::Query::Update::CommonMeta::callback ( )
inlineoverridevirtual

Implements SWC::Ranger::Query::Update::BaseMeta.

Definition at line 51 of file CommonMeta.h.

References cb.

◆ make()

static SWC_CAN_INLINE Ptr SWC::Ranger::Query::Update::CommonMeta::make ( const RangePtr range,
Cb_t &&  cb 
)
inlinestatic

Definition at line 19 of file CommonMeta.h.

References cb, CommonMeta(), and SWC::Ranger::Query::Update::BaseMeta::range.

Referenced by SWC::Ranger::CompactRange::apply_new(), SWC::Ranger::Range::remove(), SWC::Ranger::RangeSplit::run(), and SWC::Ranger::CompactRange::split().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ response()

virtual void SWC::Ranger::Query::Update::CommonMeta::response ( int  err = Error::OK)
inlineoverridevirtual

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

Definition at line 32 of file CommonMeta.h.

References SWC::Ranger::Query::Update::BaseMeta::is_last_rsp(), SWC::client::Query::Update::Handlers::Base::operator=(), SWC::Env::Rgr::post(), and SWC_CAN_INLINE.

+ Here is the call graph for this function:

Member Data Documentation

◆ cb

const Cb_t SWC::Ranger::Query::Update::CommonMeta::cb

Definition at line 23 of file CommonMeta.h.

Referenced by callback(), and make().


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