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::RangeQueryUpdateRsp Class Referencefinal

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

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

Public Member Functions

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

int32_t err
 
uint32_t cells_added
 
DB::Cell::Key range_prev_end
 
DB::Cell::Key range_end
 

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 48 of file RangeQueryUpdate.h.

Constructor & Destructor Documentation

◆ RangeQueryUpdateRsp() [1/2]

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

Definition at line 52 of file RangeQueryUpdate.h.

◆ RangeQueryUpdateRsp() [2/2]

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

Definition at line 40 of file RangeQueryUpdate.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:

◆ ~RangeQueryUpdateRsp()

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

Definition at line 59 of file RangeQueryUpdate.h.

Member Function Documentation

◆ internal_decode()

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

Implements SWC::Comm::Serializable.

Definition at line 82 of file RangeQueryUpdate.cc.

References cells_added, SWC::DB::Cell::Key::decode(), SWC::Serialization::decode_vi32(), err, SWC::Error::RANGE_BAD_INTERVAL, range_end, and range_prev_end.

+ Here is the call graph for this function:

◆ internal_encode()

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

Implements SWC::Comm::Serializable.

Definition at line 73 of file RangeQueryUpdate.cc.

References cells_added, SWC::DB::Cell::Key::encode(), SWC::Serialization::encode_vi32(), err, SWC::Error::RANGE_BAD_INTERVAL, range_end, and range_prev_end.

+ Here is the call graph for this function:

◆ internal_encoded_length()

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

Implements SWC::Comm::Serializable.

Definition at line 65 of file RangeQueryUpdate.cc.

References cells_added, SWC::DB::Cell::Key::encoded_length(), SWC::Serialization::encoded_length_vi32(), err, SWC::Error::RANGE_BAD_INTERVAL, range_end, and range_prev_end.

+ Here is the call graph for this function:

◆ print()

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

Definition at line 53 of file RangeQueryUpdate.cc.

References cells_added, SWC::DB::Cell::Key::empty(), err, SWC::DB::Cell::Key::print(), SWC::Error::print(), SWC::Error::RANGE_BAD_INTERVAL, range_end, and range_prev_end.

+ Here is the call graph for this function:

Member Data Documentation

◆ cells_added

◆ err

◆ range_end

DB::Cell::Key SWC::Comm::Protocol::Rgr::Params::RangeQueryUpdateRsp::range_end

◆ range_prev_end

DB::Cell::Key SWC::Comm::Protocol::Rgr::Params::RangeQueryUpdateRsp::range_prev_end

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