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::Mngr::Params::ColumnGetReq Class Referencefinal

#include <swcdb/db/Protocol/Mngr/params/ColumnGet.h>

+ Inheritance diagram for SWC::Comm::Protocol::Mngr::Params::ColumnGetReq:
+ Collaboration diagram for SWC::Comm::Protocol::Mngr::Params::ColumnGetReq:

Public Types

enum  Flag : uint8_t {
  SCHEMA_BY_ID = 0x0,
  SCHEMA_BY_NAME = 0x1,
  ID_BY_NAME = 0x2
}
 

Public Member Functions

SWC_CAN_INLINE ColumnGetReq () noexcept
 
SWC_CAN_INLINE ColumnGetReq (Flag a_flag, const std::string &a_name)
 
SWC_CAN_INLINE ColumnGetReq (Flag a_flag, cid_t a_cid) noexcept
 
SWC_CAN_INLINE ~ColumnGetReq () noexcept
 
- 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

Flag flag
 
std::string name
 
cid_t cid
 

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 18 of file ColumnGet.h.

Member Enumeration Documentation

◆ Flag

Enumerator
SCHEMA_BY_ID 
SCHEMA_BY_NAME 
ID_BY_NAME 

Definition at line 21 of file ColumnGet.h.

Constructor & Destructor Documentation

◆ ColumnGetReq() [1/3]

SWC_CAN_INLINE SWC::Comm::Protocol::Mngr::Params::ColumnGetReq::ColumnGetReq ( )
inlinenoexcept

Definition at line 28 of file ColumnGet.h.

◆ ColumnGetReq() [2/3]

SWC_CAN_INLINE SWC::Comm::Protocol::Mngr::Params::ColumnGetReq::ColumnGetReq ( Flag  a_flag,
const std::string &  a_name 
)
inline

Definition at line 31 of file ColumnGet.h.

◆ ColumnGetReq() [3/3]

SWC_CAN_INLINE SWC::Comm::Protocol::Mngr::Params::ColumnGetReq::ColumnGetReq ( Flag  a_flag,
cid_t  a_cid 
)
inlinenoexcept

Definition at line 36 of file ColumnGet.h.

◆ ~ColumnGetReq()

SWC_CAN_INLINE SWC::Comm::Protocol::Mngr::Params::ColumnGetReq::~ColumnGetReq ( )
inlinenoexcept

Definition at line 41 of file ColumnGet.h.

Member Function Documentation

◆ internal_decode()

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

Implements SWC::Comm::Serializable.

Definition at line 32 of file ColumnGet.cc.

References cid, SWC::Serialization::decode_bytes_string(), SWC::Serialization::decode_i8(), SWC::Serialization::decode_vi64(), flag, and name.

+ Here is the call graph for this function:

◆ internal_encode()

void SWC::Comm::Protocol::Mngr::Params::ColumnGetReq::internal_encode ( uint8_t **  bufp) const
overrideprivatevirtual

Implements SWC::Comm::Serializable.

Definition at line 23 of file ColumnGet.cc.

References cid, SWC::Serialization::encode_bytes(), SWC::Serialization::encode_i8(), SWC::Serialization::encode_vi64(), flag, and name.

+ Here is the call graph for this function:

◆ internal_encoded_length()

size_t SWC::Comm::Protocol::Mngr::Params::ColumnGetReq::internal_encoded_length ( ) const
overrideprivatevirtual

Implements SWC::Comm::Serializable.

Definition at line 16 of file ColumnGet.cc.

References cid, SWC::Serialization::encoded_length_bytes(), SWC::Serialization::encoded_length_vi64(), flag, and name.

+ Here is the call graph for this function:

Member Data Documentation

◆ cid

◆ flag

◆ name

std::string SWC::Comm::Protocol::Mngr::Params::ColumnGetReq::name

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