|
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.
6 #ifndef swcdb_db_client_mngr_Managers_h
7 #define swcdb_db_client_mngr_Managers_h
18 namespace SWC {
namespace client {
41 const int64_t a_revision)
42 :
ts(a_ts),
rid(a_rid),
51 key_end(std::move(other.key_end)),
62 key_end = std::move(other.key_end);
73 const int64_t _revision) {
113 const DB::Cell::Key& range_begin,
114 const DB::Cell::Key& range_end,
116 const int64_t revision);
118 bool get_read(const DB::Cell::Key& range_begin,
119 const DB::Cell::Key& range_end,
121 DB::Cell::Key& offset,
128 DB::Cell::Key& key_end,
143 "swc.client.Mngr.range.master.expiry"));
170 const int64_t revision) {
172 rid, range_begin, range_end, endpoints, revision);
185 range_begin, range_end, rid, offset, is_end, endpoints, revision);
196 key, rid, key_end, endpoints, revision);
239 #endif // swcdb_db_client_mngr_Managers_h
const Comm::client::ConnQueuesPtr queues
std::shared_ptr< ContextManager > Ptr
SWC_CAN_INLINE Column() noexcept
std::shared_ptr< IoContext > IoContextPtr
SWC_CAN_INLINE MasterRangesCache(const Config::Settings &settings) noexcept
std::shared_ptr< Groups > Ptr
SWC_CAN_INLINE ~Column() noexcept
SWC_CAN_INLINE Range(const int64_t a_ts, const rid_t a_rid, const DB::Cell::Key &range_begin, const DB::Cell::Key &range_end, const Comm::EndPoints &a_endpoints, const int64_t a_revision)
SWC_CAN_INLINE Range(Range &&other) noexcept
SWC_CAN_INLINE ~Managers() noexcept
SWC_CAN_INLINE Range & operator=(Range &&other) noexcept
std::shared_ptr< ConnQueues > ConnQueuesPtr
void set(const rid_t rid, const DB::Cell::Key &range_begin, const DB::Cell::Key &range_end, const Comm::EndPoints &endpoints, const int64_t revision)
std::shared_ptr< Clients > ClientsPtr
DB::Types::KeySeq key_seq
Column & operator=(const Column &)=delete
The SWC-DB C++ namespace 'SWC'.
Column(const Column &)=delete
bool get_write(const DB::Cell::Key &key, rid_t &rid, DB::Cell::Key &key_end, Comm::EndPoints &endpoints, int64_t &revision)
void copy(const Key &other)
MasterRangesCache master_ranges_cache
void clear_expired() noexcept
SWC_CAN_INLINE Managers() noexcept
SWC_CAN_INLINE ~MasterRangesCache() noexcept
Core::Vector< EndPoint > EndPoints
SWC_CAN_INLINE void set(const cid_t cid, const rid_t rid, const DB::Cell::Key &range_begin, const DB::Cell::Key &range_end, const Comm::EndPoints &endpoints, const int64_t revision)
const cid_t CID_MASTER_END
Config::Property::Value_int32_g::Ptr expiry_ms
KeySeq SWC_CONST_FUNC get_seq_type(cid_t cid) noexcept
void init(DB::Types::KeySeq _key_seq, Config::Property::Value_int32_g::Ptr _expiry_ms) noexcept
bool put(const ClientsPtr &clients, const cid_t &cid, Comm::EndPoints &endpoints, const Comm::client::ConnQueue::ReqBase::Ptr &req)
SWC_CAN_INLINE bool get_read(const cid_t cid, const DB::Cell::Key &range_begin, const DB::Cell::Key &range_end, rid_t &rid, DB::Cell::Key &offset, bool &is_end, Comm::EndPoints &endpoints, int64_t &revision)
void clear_expired() noexcept
SWC_CAN_INLINE void remove(const cid_t cid, const rid_t rid) noexcept
SWC_CAN_INLINE ~Range() noexcept
Comm::EndPoints endpoints
bool get_read(const DB::Cell::Key &range_begin, const DB::Cell::Key &range_end, rid_t &rid, DB::Cell::Key &offset, bool &is_end, Comm::EndPoints &endpoints, int64_t &revision)
const Mngr::Groups::Ptr groups
Column columns[DB::Types::SystemColumn::CID_MASTER_END]
SWC_CAN_INLINE void change(const int64_t _ts, const rid_t _rid, const DB::Cell::Key &_range_begin, const DB::Cell::Key &_range_end, const Comm::EndPoints &_endpoints, const int64_t _revision)
SWC_CAN_INLINE bool get_write(const cid_t cid, const DB::Cell::Key &key, rid_t &rid, DB::Cell::Key &key_end, Comm::EndPoints &endpoints, int64_t &revision)
bool put_role_schemas(const ClientsPtr &clients, Comm::EndPoints &endpoints, const Comm::client::ConnQueue::ReqBase::Ptr &req)
std::shared_ptr< ConnQueueReqBase > Ptr
void remove(const rid_t rid) noexcept