|
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.
7 #ifndef swcdb_ranger_Protocol_handlers_RangeLocate_h
8 #define swcdb_ranger_Protocol_handlers_RangeLocate_h
14 namespace SWC {
namespace Comm {
namespace Protocol {
15 namespace Rgr {
namespace Handler {
30 :
conn(std::move(other.conn)),
31 ev(std::move(other.ev)) {
49 const uint8_t *ptr =
ev->data.base;
50 size_t remain =
ev->data.size;
51 params.
decode(&ptr, &remain);
54 if((!err && (!range || !range->is_loaded())) ||
56 params.
revision != range->get_load_revision()))
106 #endif // swcdb_ranger_Protocol_handlers_RangeLocate_h
constexpr SWC_CAN_INLINE int code() const noexcept
RangePtr get_range(int &err, const cid_t cid, const rid_t rid)
#define SWC_LOG_OUT(pr, _code_)
DB::Cell::Key range_begin
static const uint8_t NEXT_RANGE
static SWC_CAN_INLINE Ranger::Columns * columns() noexcept
static const uint8_t HAVE_REVISION
void print(std::ostream &out) const
Comm::ConnHandlerPtr conn
std::shared_ptr< Range > RangePtr
#define SWC_CURRENT_EXCEPTION(_msg_)
The SWC-DB C++ namespace 'SWC'.
DB::Cell::Key range_offset
SWC_CAN_INLINE RangeLocate(const Comm::ConnHandlerPtr &a_conn, const Comm::Event::Ptr &a_ev) noexcept
RangeLocate & operator=(const RangeLocate &)=delete
RangeLocate(const RangeLocate &)=delete
void copy(const Key &other)
std::shared_ptr< ConnHandler > ConnHandlerPtr
SWC_CAN_INLINE RangeLocate(RangeLocate &&other) noexcept
static SWC_CAN_INLINE Ptr make(uint32_t reserve=0)
static const uint8_t COMMIT
RangeLocate & operator=(RangeLocate &&)=delete
void decode(const uint8_t **bufp, size_t *remainp)
std::shared_ptr< Event > Ptr
void print(std::ostream &out, int err)
static const uint8_t CURRENT_RANGE
std::shared_ptr< ReqScan > Ptr