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::Bkr::Params::CellsSelectRsp Class Referencefinal

#include <swcdb/db/Protocol/Bkr/params/CellsSelect.h>

+ Inheritance diagram for SWC::Comm::Protocol::Bkr::Params::CellsSelectRsp:
+ Collaboration diagram for SWC::Comm::Protocol::Bkr::Params::CellsSelectRsp:

Public Member Functions

SWC_CAN_INLINE CellsSelectRsp (int a_err=Error::OK, bool a_more=false, uint64_t a_offset=0) noexcept
 
 CellsSelectRsp (int err, const uint8_t *ptr, size_t remain, StaticBuffer &data) noexcept
 
 ~CellsSelectRsp () 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
 
bool more
 
uint64_t offset
 
StaticBuffer data
 

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 77 of file CellsSelect.h.

Constructor & Destructor Documentation

◆ CellsSelectRsp() [1/2]

SWC_CAN_INLINE SWC::Comm::Protocol::Bkr::Params::CellsSelectRsp::CellsSelectRsp ( int  a_err = Error::OK,
bool  a_more = false,
uint64_t  a_offset = 0 
)
inlinenoexcept

Definition at line 81 of file CellsSelect.h.

◆ CellsSelectRsp() [2/2]

SWC::Comm::Protocol::Bkr::Params::CellsSelectRsp::CellsSelectRsp ( int  err,
const uint8_t *  ptr,
size_t  remain,
StaticBuffer data 
)
noexcept

Definition at line 59 of file CellsSelect.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:

◆ ~CellsSelectRsp()

SWC::Comm::Protocol::Bkr::Params::CellsSelectRsp::~CellsSelectRsp ( )
inlinenoexcept

Definition at line 89 of file CellsSelect.h.

Member Function Documentation

◆ internal_decode()

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

Implements SWC::Comm::Serializable.

Definition at line 92 of file CellsSelect.cc.

References SWC::Serialization::decode_bool(), SWC::Serialization::decode_vi32(), SWC::Serialization::decode_vi64(), err, more, and offset.

+ Here is the call graph for this function:

◆ internal_encode()

void SWC::Comm::Protocol::Bkr::Params::CellsSelectRsp::internal_encode ( uint8_t **  bufp) const
overrideprivatevirtual

Implements SWC::Comm::Serializable.

Definition at line 86 of file CellsSelect.cc.

References SWC::Serialization::encode_bool(), SWC::Serialization::encode_vi32(), SWC::Serialization::encode_vi64(), err, more, and offset.

+ Here is the call graph for this function:

◆ internal_encoded_length()

size_t SWC::Comm::Protocol::Bkr::Params::CellsSelectRsp::internal_encoded_length ( ) const
overrideprivatevirtual

Implements SWC::Comm::Serializable.

Definition at line 80 of file CellsSelect.cc.

References SWC::Serialization::encoded_length_vi32(), SWC::Serialization::encoded_length_vi64(), err, and offset.

+ Here is the call graph for this function:

◆ print()

void SWC::Comm::Protocol::Bkr::Params::CellsSelectRsp::print ( std::ostream &  out) const

Definition at line 72 of file CellsSelect.cc.

References data, err, more, offset, SWC::Error::print(), and SWC::Core::Buffer< T >::size.

+ Here is the call graph for this function:

Member Data Documentation

◆ data

StaticBuffer SWC::Comm::Protocol::Bkr::Params::CellsSelectRsp::data

Definition at line 96 of file CellsSelect.h.

Referenced by print(), and SWC::client::Query::Select::BrokerScanner::selected().

◆ err

◆ more

bool SWC::Comm::Protocol::Bkr::Params::CellsSelectRsp::more

◆ offset

uint64_t SWC::Comm::Protocol::Bkr::Params::CellsSelectRsp::offset

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