|
SWC-DB
v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
|
Go to the documentation of this file.
10 namespace SWC {
namespace client {
namespace Query {
namespace Update {
14 #define SWC_BROKER_COMMIT_RSP_DEBUG(msg) \
15 SWC_LOG_OUT(LOG_DEBUG, \
16 print(SWC_LOG_OSTREAM << msg << ' '); \
17 rsp.print(SWC_LOG_OSTREAM << ' '); \
18 SWC_LOG_OSTREAM << " buff-sz=" << cells_buff.fill(); \
26 <<
" completion=" <<
hdlr->completion.count()
31 hdlr->completion.increment();
33 return hdlr->response();
41 : committer(a_committer),
42 profile(committer->hdlr->profile.bkr()),
43 cells_buff(std::move(a_cells_buff)) {
46 ~ReqData() noexcept { }
49 return committer->hdlr->clients;
53 return committer->hdlr->valid();
60 committer->committed(req, rsp, cells_buff);
68 while(more &&
hdlr->valid() &&
120 return req->request_again();
std::shared_ptr< BrokerCommitter > Ptr
#define SWC_BROKER_COMMIT_RSP_DEBUG(msg)
void committed(ReqBase::Ptr req, const Comm::Protocol::Bkr::Params::CellsUpdateRsp &rsp, const DynamicBuffer &cells_buff)
Query::Update::Handlers::Base::Column * colp
void print(std::ostream &out)
static SWC_CAN_INLINE void request(const Params::CellsUpdateReq ¶ms, StaticBuffer &snd_buf, const uint32_t timeout, DataArgsT &&... args)
The SWC-DB C++ namespace 'SWC'.
virtual cid_t get_cid() const noexcept=0
Query::Update::Handlers::Base::Ptr hdlr
virtual bool get_buff(const DB::Cell::Key &key_start, const DB::Cell::Key &key_end, size_t buff_sz, bool &more, DynamicBuffer &cells_buff)=0
~BrokerCommitter() noexcept
constexpr SWC_CAN_INLINE size_t fill() const noexcept
constexpr SWC_CAN_INLINE void increment(CountT v=1) noexcept
Core::CompletionCounter workload
constexpr SWC_CAN_INLINE bool is_last() noexcept
std::shared_ptr< ConnQueueReqBase > Ptr
virtual size_t add(const DynamicBuffer &cells, const DB::Cell::Key &upto_key, const DB::Cell::Key &from_key, uint32_t skip, bool malformed)=0
SWC_CAN_INLINE void add(bool err) const noexcept