#include <swcdb/ranger/queries/update/CommonMeta.h>
Public Types | |
typedef std::shared_ptr< CommonMeta > | Ptr |
typedef std::function< void(const Ptr &)> | Cb_t |
Public Types inherited from SWC::Ranger::Query::Update::BaseMeta | |
typedef std::shared_ptr< BaseMeta > | Ptr |
Public Types inherited from SWC::client::Query::Update::Handlers::BaseSingleColumn | |
typedef std::shared_ptr< BaseSingleColumn > | Ptr |
Public Types inherited from SWC::client::Query::Update::Handlers::Base | |
typedef std::shared_ptr< Base > | Ptr |
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::Column * | next (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 | |
Base & | operator= (const Base &)=delete |
Base & | operator= (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 |
Definition at line 13 of file CommonMeta.h.
typedef std::function<void(const Ptr&)> SWC::Ranger::Query::Update::CommonMeta::Cb_t |
Definition at line 16 of file CommonMeta.h.
typedef std::shared_ptr<CommonMeta> SWC::Ranger::Query::Update::CommonMeta::Ptr |
Definition at line 15 of file CommonMeta.h.
|
inline |
Definition at line 26 of file CommonMeta.h.
Referenced by make().
|
inlinevirtualnoexcept |
Definition at line 30 of file CommonMeta.h.
|
inlineoverridevirtual |
Implements SWC::Ranger::Query::Update::BaseMeta.
Definition at line 51 of file CommonMeta.h.
References 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().
|
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.
const Cb_t SWC::Ranger::Query::Update::CommonMeta::cb |
Definition at line 23 of file CommonMeta.h.
Referenced by callback(), and make().