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::Types::SystemColumn Namespace Reference

Functions

constexpr SWC_CAN_INLINE bool is_master (cid_t cid) noexcept
 
constexpr SWC_CAN_INLINE bool is_meta (cid_t cid) noexcept
 
constexpr SWC_CAN_INLINE bool is_rgr_data_on_fs (cid_t cid) noexcept
 
constexpr SWC_CAN_INLINE bool is_data (cid_t cid) noexcept
 
constexpr SWC_CAN_INLINE Range get_range_type (cid_t cid) noexcept
 
KeySeq SWC_CONST_FUNC get_seq_type (cid_t cid) noexcept
 
cid_t SWC_CONST_FUNC get_master_cid (KeySeq col_seq) noexcept
 
cid_t SWC_CONST_FUNC get_meta_cid (KeySeq col_seq) noexcept
 
const char *SWC_CONST_FUNC get_meta_cid_str (KeySeq col_seq) noexcept
 
uint8_t SWC_CONST_FUNC get_sys_cid (KeySeq col_seq, Range col_type) noexcept
 

Variables

const cid_t CID_MASTER_BEGIN = 1
 
const cid_t CID_MASTER_END = 4
 
const cid_t CID_META_BEGIN = 5
 
const cid_t CID_META_END = 8
 
const cid_t SYS_RGR_DATA = 9
 
const cid_t SYS_CID_STATS = 10
 
const cid_t SYS_CID_DEFINE_LEXIC = 11
 
const cid_t SYS_CID_END = SYS_CID_DEFINE_LEXIC
 

Function Documentation

◆ get_master_cid()

cid_t SWC::DB::Types::SystemColumn::get_master_cid ( KeySeq  col_seq)
noexcept

Definition at line 32 of file SystemColumn.cc.

References SWC::DB::Types::UNKNOWN.

◆ get_meta_cid()

cid_t SWC::DB::Types::SystemColumn::get_meta_cid ( KeySeq  col_seq)
noexcept

Definition at line 45 of file SystemColumn.cc.

References SWC::DB::Types::UNKNOWN.

◆ get_meta_cid_str()

const char * SWC::DB::Types::SystemColumn::get_meta_cid_str ( KeySeq  col_seq)
noexcept

Definition at line 58 of file SystemColumn.cc.

References SWC::DB::Types::UNKNOWN.

Referenced by SWC::client::Query::Update::Committer::locate_on_manager(), SWC::client::Query::Update::Committer::locate_on_ranger(), SWC::client::Query::Select::Scanner::mngr_locate_master(), and SWC::client::Query::Select::Scanner::rgr_locate_master().

+ Here is the caller graph for this function:

◆ get_range_type()

constexpr SWC_CAN_INLINE Range SWC::DB::Types::SystemColumn::get_range_type ( cid_t  cid)
constexprnoexcept

Definition at line 51 of file SystemColumn.h.

References CID_MASTER_END, CID_META_END, and SWC::DB::Types::MASTER.

Referenced by SWC::Manager::ColumnHealthCheck::finishing(), SWC::Manager::ColumnHealthCheck::ColumnMerger::RangesMerger::handle(), and SWC::Manager::MngdColumns::remove().

+ Here is the caller graph for this function:

◆ get_seq_type()

KeySeq SWC::DB::Types::SystemColumn::get_seq_type ( cid_t  cid)
noexcept

Definition at line 15 of file SystemColumn.cc.

References SWC::DB::Types::UNKNOWN.

Referenced by SWC::Common::Files::Schema::load(), and SWC::client::Managers::MasterRangesCache::MasterRangesCache().

+ Here is the caller graph for this function:

◆ get_sys_cid()

uint8_t SWC::DB::Types::SystemColumn::get_sys_cid ( KeySeq  col_seq,
Range  col_type 
)
noexcept

Definition at line 71 of file SystemColumn.cc.

References SWC::DB::Types::MASTER, and SWC::DB::Types::UNKNOWN.

Referenced by SWC::Manager::ColumnHealthCheck::finishing(), SWC::Manager::ColumnHealthCheck::ColumnMerger::RangesMerger::handle(), and SWC::Manager::MngdColumns::remove().

+ Here is the caller graph for this function:

◆ is_data()

◆ is_master()

◆ is_meta()

constexpr SWC_CAN_INLINE bool SWC::DB::Types::SystemColumn::is_meta ( cid_t  cid)
constexprnoexcept

Definition at line 36 of file SystemColumn.h.

References CID_META_BEGIN, and CID_META_END.

Referenced by SWC::client::Query::Update::Committer::proceed_on_ranger(), and SWC::client::Query::Select::Scanner::rgr_located_master().

+ Here is the caller graph for this function:

◆ is_rgr_data_on_fs()

constexpr SWC_CAN_INLINE bool SWC::DB::Types::SystemColumn::is_rgr_data_on_fs ( cid_t  cid)
constexprnoexcept

Definition at line 41 of file SystemColumn.h.

References SYS_RGR_DATA.

Referenced by SWC::Manager::Range::get_last_rgr(), SWC::Ranger::Range::internal_take_ownership(), SWC::Ranger::Range::last_rgr_chk(), SWC::Manager::MngdColumns::remove(), SWC::Ranger::Range::remove_rgr(), and SWC::Ranger::Range::set_rgr().

+ Here is the caller graph for this function:

Variable Documentation

◆ CID_MASTER_BEGIN

const cid_t SWC::DB::Types::SystemColumn::CID_MASTER_BEGIN = 1

Definition at line 17 of file SystemColumn.h.

Referenced by SWC::Manager::Columns::get_next_unassigned().

◆ CID_MASTER_END

◆ CID_META_BEGIN

const cid_t SWC::DB::Types::SystemColumn::CID_META_BEGIN = 5

◆ CID_META_END

const cid_t SWC::DB::Types::SystemColumn::CID_META_END = 8

◆ SYS_CID_DEFINE_LEXIC

◆ SYS_CID_END

◆ SYS_CID_STATS

◆ SYS_RGR_DATA