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::Comm::Protocol::Rgr::Params::RangeLocateReq Class Referencefinal

#include <swcdb/db/Protocol/Rgr/params/RangeLocate.h>

+ Inheritance diagram for SWC::Comm::Protocol::Rgr::Params::RangeLocateReq:
+ Collaboration diagram for SWC::Comm::Protocol::Rgr::Params::RangeLocateReq:

Public Member Functions

SWC_CAN_INLINE RangeLocateReq (cid_t a_cid=0, rid_t a_rid=0) noexcept
 
SWC_CAN_INLINE ~RangeLocateReq () noexcept
 
void print (std::ostream &out) const
 
- Public Member Functions inherited from SWC::Comm::Serializable
size_t encoded_length () const
 
void encode (uint8_t **bufp) const
 
void decode (const uint8_t **bufp, size_t *remainp)
 

Public Attributes

cid_t cid
 
rid_t rid
 
DB::Cell::Key range_begin
 
DB::Cell::Key range_end
 
DB::Cell::Key range_offset
 
uint8_t flags
 
int64_t revision
 

Static Public Attributes

static const uint8_t CURRENT_RANGE = 0x01
 
static const uint8_t NEXT_RANGE = 0x02
 
static const uint8_t COMMIT = 0x04
 
static const uint8_t RANGE_END_REST = 0x08
 
static const uint8_t KEY_EQUAL = 0x10
 
static const uint8_t HAVE_REVISION = 0x20
 

Private Member Functions

size_t SWC_PURE_FUNC internal_encoded_length () const override
 
void internal_encode (uint8_t **bufp) const override
 
void internal_decode (const uint8_t **bufp, size_t *remainp) override
 

Additional Inherited Members

- Protected Member Functions inherited from SWC::Comm::Serializable
virtual ~Serializable () noexcept
 

Detailed Description

Definition at line 19 of file RangeLocate.h.

Constructor & Destructor Documentation

◆ RangeLocateReq()

SWC_CAN_INLINE SWC::Comm::Protocol::Rgr::Params::RangeLocateReq::RangeLocateReq ( cid_t  a_cid = 0,
rid_t  a_rid = 0 
)
inlinenoexcept

Definition at line 30 of file RangeLocate.h.

◆ ~RangeLocateReq()

SWC_CAN_INLINE SWC::Comm::Protocol::Rgr::Params::RangeLocateReq::~RangeLocateReq ( )
inlinenoexcept

Definition at line 37 of file RangeLocate.h.

Member Function Documentation

◆ internal_decode()

void SWC::Comm::Protocol::Rgr::Params::RangeLocateReq::internal_decode ( const uint8_t **  bufp,
size_t *  remainp 
)
overrideprivatevirtual

Implements SWC::Comm::Serializable.

Definition at line 52 of file RangeLocate.cc.

References cid, CURRENT_RANGE, SWC::DB::Cell::Key::decode(), SWC::Serialization::decode_i8(), SWC::Serialization::decode_vi64(), flags, HAVE_REVISION, NEXT_RANGE, range_begin, range_end, range_offset, revision, and rid.

+ Here is the call graph for this function:

◆ internal_encode()

void SWC::Comm::Protocol::Rgr::Params::RangeLocateReq::internal_encode ( uint8_t **  bufp) const
overrideprivatevirtual

Implements SWC::Comm::Serializable.

Definition at line 40 of file RangeLocate.cc.

References cid, CURRENT_RANGE, SWC::DB::Cell::Key::encode(), SWC::Serialization::encode_i8(), SWC::Serialization::encode_vi64(), flags, HAVE_REVISION, NEXT_RANGE, range_begin, range_end, range_offset, revision, and rid.

+ Here is the call graph for this function:

◆ internal_encoded_length()

size_t SWC::Comm::Protocol::Rgr::Params::RangeLocateReq::internal_encoded_length ( ) const
overrideprivatevirtual

Implements SWC::Comm::Serializable.

Definition at line 28 of file RangeLocate.cc.

References cid, CURRENT_RANGE, SWC::DB::Cell::Key::encoded_length(), SWC::Serialization::encoded_length_vi64(), flags, HAVE_REVISION, NEXT_RANGE, range_begin, range_end, range_offset, revision, and rid.

+ Here is the call graph for this function:

◆ print()

void SWC::Comm::Protocol::Rgr::Params::RangeLocateReq::print ( std::ostream &  out) const

Definition at line 16 of file RangeLocate.cc.

References cid, CURRENT_RANGE, flags, HAVE_REVISION, NEXT_RANGE, SWC::DB::Cell::Key::print(), range_begin, range_end, range_offset, revision, and rid.

Referenced by SWC::Comm::Protocol::Rgr::Handler::RangeLocate::operator()().

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

Member Data Documentation

◆ cid

cid_t SWC::Comm::Protocol::Rgr::Params::RangeLocateReq::cid

◆ COMMIT

const uint8_t SWC::Comm::Protocol::Rgr::Params::RangeLocateReq::COMMIT = 0x04
static

◆ CURRENT_RANGE

◆ flags

◆ HAVE_REVISION

◆ KEY_EQUAL

const uint8_t SWC::Comm::Protocol::Rgr::Params::RangeLocateReq::KEY_EQUAL = 0x10
static

◆ NEXT_RANGE

◆ range_begin

◆ range_end

◆ RANGE_END_REST

const uint8_t SWC::Comm::Protocol::Rgr::Params::RangeLocateReq::RANGE_END_REST = 0x08
static

◆ range_offset

◆ revision

◆ rid

rid_t SWC::Comm::Protocol::Rgr::Params::RangeLocateReq::rid

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