SWC-DB  v0.5.9 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
SWC::Comm::Protocol::Rgr::Params::RangeLocateRsp Class Referencefinal

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

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

Public Member Functions

SWC_CAN_INLINE RangeLocateRsp (int a_err=Error::OK) noexcept
 
 RangeLocateRsp (int err, const uint8_t *ptr, size_t remain) noexcept
 
SWC_CAN_INLINE ~RangeLocateRsp () 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

int err
 
cid_t cid
 
rid_t rid
 
DB::Cell::Key range_end
 
DB::Cell::Key range_begin
 

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 57 of file RangeLocate.h.

Constructor & Destructor Documentation

◆ RangeLocateRsp() [1/2]

SWC_CAN_INLINE SWC::Comm::Protocol::Rgr::Params::RangeLocateRsp::RangeLocateRsp ( int  a_err = Error::OK)
inlinenoexcept

Definition at line 61 of file RangeLocate.h.

◆ RangeLocateRsp() [2/2]

SWC::Comm::Protocol::Rgr::Params::RangeLocateRsp::RangeLocateRsp ( int  err,
const uint8_t *  ptr,
size_t  remain 
)
noexcept

Definition at line 67 of file RangeLocate.cc.

References SWC::Error::Exception::code(), decode(), SWC::LOG_ERROR, SWC_CURRENT_EXCEPTION, SWC_LOG_OSTREAM, and SWC_LOG_OUT.

+ Here is the call graph for this function:

◆ ~RangeLocateRsp()

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

Definition at line 68 of file RangeLocate.h.

Member Function Documentation

◆ internal_decode()

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

Implements SWC::Comm::Serializable.

Definition at line 110 of file RangeLocate.cc.

References cid, SWC::DB::Cell::Key::decode(), SWC::Serialization::decode_vi32(), SWC::Serialization::decode_vi64(), err, range_begin, range_end, and rid.

+ Here is the call graph for this function:

◆ internal_encode()

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

Implements SWC::Comm::Serializable.

Definition at line 100 of file RangeLocate.cc.

References cid, SWC::DB::Cell::Key::encode(), SWC::Serialization::encode_vi32(), SWC::Serialization::encode_vi64(), err, range_begin, range_end, and rid.

+ Here is the call graph for this function:

◆ internal_encoded_length()

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

Implements SWC::Comm::Serializable.

Definition at line 90 of file RangeLocate.cc.

References cid, SWC::DB::Cell::Key::encoded_length(), SWC::Serialization::encoded_length_vi32(), SWC::Serialization::encoded_length_vi64(), err, range_begin, range_end, and rid.

+ Here is the call graph for this function:

◆ print()

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

Definition at line 79 of file RangeLocate.cc.

References cid, err, SWC::DB::Cell::Key::print(), SWC::Error::print(), range_begin, range_end, and rid.

Referenced by SWC::Ranger::Callback::RangeLocateScan::response().

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

Member Data Documentation

◆ cid

◆ err

◆ range_begin

◆ range_end

◆ rid


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