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::DB::SchemaPrimitives Struct Reference

#include <swcdb/db/Columns/Schema.h>

+ Inheritance diagram for SWC::DB::SchemaPrimitives:

Public Member Functions

SWC_CAN_INLINE SchemaPrimitives () noexcept
 
SWC_CAN_INLINE SchemaPrimitives (const SchemaPrimitives &other) noexcept
 
SWC_CAN_INLINE SchemaPrimitives (const uint8_t **bufp, size_t *remainp)
 
SWC_CAN_INLINE uint32_t encoded_length () const noexcept
 
SWC_CAN_INLINE void encode (uint8_t **bufp) const
 
SWC_CAN_INLINE void decode (const uint8_t **bufp, size_t *remainp)
 
SWC_CAN_INLINE bool equal (const SchemaPrimitives &other, bool with_rev=true) const noexcept
 

Public Attributes

cid_t cid
 
int64_t revision
 
uint32_t cell_versions
 
uint32_t cell_ttl
 
uint32_t blk_size
 
uint32_t blk_cells
 
uint32_t cs_size
 
Types::KeySeq col_seq
 
Types::Column col_type
 
Types::Encoder blk_encoding
 
uint8_t cs_replication
 
uint8_t cs_max
 
uint8_t log_rollout_ratio
 
uint8_t log_compact_cointervaling
 
uint8_t log_fragment_preload
 
uint8_t compact_percent
 

Static Public Attributes

static constexpr const cid_t NO_CID = 0
 

Detailed Description

Definition at line 23 of file Schema.h.

Constructor & Destructor Documentation

◆ SchemaPrimitives() [1/3]

SWC_CAN_INLINE SWC::DB::SchemaPrimitives::SchemaPrimitives ( )
inlinenoexcept

Definition at line 28 of file Schema.h.

◆ SchemaPrimitives() [2/3]

SWC_CAN_INLINE SWC::DB::SchemaPrimitives::SchemaPrimitives ( const SchemaPrimitives other)
inlinenoexcept

Definition at line 48 of file Schema.h.

◆ SchemaPrimitives() [3/3]

SWC_CAN_INLINE SWC::DB::SchemaPrimitives::SchemaPrimitives ( const uint8_t **  bufp,
size_t *  remainp 
)
inline

Definition at line 68 of file Schema.h.

Member Function Documentation

◆ decode()

SWC_CAN_INLINE void SWC::DB::SchemaPrimitives::decode ( const uint8_t **  bufp,
size_t *  remainp 
)
inline

Definition at line 120 of file Schema.h.

References blk_cells, blk_encoding, blk_size, cell_ttl, cell_versions, cid, col_seq, col_type, compact_percent, cs_max, cs_replication, cs_size, SWC::Serialization::decode_i8(), SWC::Serialization::decode_vi32(), SWC::Serialization::decode_vi64(), log_compact_cointervaling, log_fragment_preload, log_rollout_ratio, and revision.

Referenced by SWC::Comm::Protocol::Rgr::Params::ColumnUpdate::internal_decode(), and SWC::Comm::Protocol::Rgr::Params::RangeLoad::internal_decode().

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

◆ encode()

SWC_CAN_INLINE void SWC::DB::SchemaPrimitives::encode ( uint8_t **  bufp) const
inline

Definition at line 100 of file Schema.h.

References blk_cells, blk_encoding, blk_size, cell_ttl, cell_versions, cid, col_seq, col_type, compact_percent, cs_max, cs_replication, cs_size, SWC::Serialization::encode_i8(), SWC::Serialization::encode_vi32(), SWC::Serialization::encode_vi64(), log_compact_cointervaling, log_fragment_preload, log_rollout_ratio, and revision.

Referenced by SWC::DB::Schema::encode(), SWC::Comm::Protocol::Rgr::Params::ColumnUpdate::internal_encode(), and SWC::Comm::Protocol::Rgr::Params::RangeLoad::internal_encode().

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

◆ encoded_length()

SWC_CAN_INLINE uint32_t SWC::DB::SchemaPrimitives::encoded_length ( ) const
inlinenoexcept

Definition at line 88 of file Schema.h.

References blk_cells, blk_size, cell_ttl, cell_versions, cid, cs_size, SWC::Serialization::encoded_length_vi32(), SWC::Serialization::encoded_length_vi64(), and revision.

Referenced by SWC::DB::Schema::encoded_length(), SWC::Comm::Protocol::Rgr::Params::ColumnUpdate::internal_encoded_length(), and SWC::Comm::Protocol::Rgr::Params::RangeLoad::internal_encoded_length().

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

◆ equal()

SWC_CAN_INLINE bool SWC::DB::SchemaPrimitives::equal ( const SchemaPrimitives other,
bool  with_rev = true 
) const
inlinenoexcept

Definition at line 140 of file Schema.h.

References blk_cells, blk_encoding, blk_size, cell_ttl, cell_versions, cid, col_seq, col_type, compact_percent, cs_max, cs_replication, cs_size, log_compact_cointervaling, log_fragment_preload, log_rollout_ratio, and revision.

Referenced by SWC::DB::Schema::equal().

+ Here is the caller graph for this function:

Member Data Documentation

◆ blk_cells

uint32_t SWC::DB::SchemaPrimitives::blk_cells

◆ blk_encoding

Types::Encoder SWC::DB::SchemaPrimitives::blk_encoding

◆ blk_size

uint32_t SWC::DB::SchemaPrimitives::blk_size

◆ cell_ttl

uint32_t SWC::DB::SchemaPrimitives::cell_ttl

◆ cell_versions

uint32_t SWC::DB::SchemaPrimitives::cell_versions

◆ cid

◆ col_seq

Types::KeySeq SWC::DB::SchemaPrimitives::col_seq

Definition at line 168 of file Schema.h.

Referenced by decode(), SWC::DB::Schema::display(), encode(), and equal().

◆ col_type

Types::Column SWC::DB::SchemaPrimitives::col_type

◆ compact_percent

uint8_t SWC::DB::SchemaPrimitives::compact_percent

◆ cs_max

uint8_t SWC::DB::SchemaPrimitives::cs_max

◆ cs_replication

uint8_t SWC::DB::SchemaPrimitives::cs_replication

◆ cs_size

uint32_t SWC::DB::SchemaPrimitives::cs_size

◆ log_compact_cointervaling

uint8_t SWC::DB::SchemaPrimitives::log_compact_cointervaling

◆ log_fragment_preload

uint8_t SWC::DB::SchemaPrimitives::log_fragment_preload

◆ log_rollout_ratio

uint8_t SWC::DB::SchemaPrimitives::log_rollout_ratio

◆ NO_CID

◆ revision

int64_t SWC::DB::SchemaPrimitives::revision

Definition at line 162 of file Schema.h.

Referenced by decode(), SWC::DB::Schema::display(), encode(), encoded_length(), and equal().


The documentation for this struct was generated from the following file: