The SWC-DB Types C++ namespace 'SWC::DB::Types'. More...
Namespaces | |
MngrColumn | |
MngrRange | |
MngrRangerState | |
MngrRole | |
SystemColumn | |
Typedefs | |
using | Encoder = Core::Encoder::Type |
Enumerations | |
enum | Column : uint8_t { Column::UNKNOWN = 0x0, Column::PLAIN = 0x1, Column::COUNTER_I64 = 0x2, Column::COUNTER_I32 = 0x3, Column::COUNTER_I16 = 0x4, Column::COUNTER_I8 = 0x5, Column::SERIAL = 0x6, Column::CELL_DEFINED = 0xf } |
enum | KeySeq : uint8_t { KeySeq::UNKNOWN = 0, KeySeq::LEXIC = 1, KeySeq::VOLUME = 2, KeySeq::FC_LEXIC = 3, KeySeq::FC_VOLUME = 4 } |
enum | MngrState : uint8_t { MngrState::NOTSET = 0, MngrState::OFF = 1, MngrState::STANDBY = 2, MngrState::WANT = 3, MngrState::NOMINATED = 4, MngrState::ACTIVE = 5 } |
enum | Range : uint8_t { Range::MASTER = 1, Range::META = 2, Range::DATA = 3 } |
Functions | |
bool SWC_CONST_FUNC | is_counter (const Column typ) noexcept |
const char *SWC_CONST_FUNC | to_string (Column typ) noexcept |
Column SWC_PURE_FUNC | column_type_from (const std::string &typ) noexcept |
SWC_CAN_INLINE std::string | repr_col_type (int typ) |
SWC_CAN_INLINE int | from_string_col_type (const std::string &typ) noexcept |
bool SWC_CONST_FUNC | is_fc (KeySeq typ) noexcept |
const char *SWC_CONST_FUNC | to_string (KeySeq typ) noexcept |
KeySeq SWC_PURE_FUNC | range_seq_from (const std::string &typ) noexcept |
SWC_CAN_INLINE std::string | repr_range_seq (int typ) |
SWC_CAN_INLINE int | from_string_range_seq (const std::string &typ) noexcept |
const char *SWC_CONST_FUNC | to_string (MngrColumn::State state) noexcept |
const char *SWC_CONST_FUNC | to_string (MngrRange::State state) noexcept |
const char *SWC_CONST_FUNC | to_string (MngrState state) noexcept |
const char *SWC_CONST_FUNC | to_string (Range typ) noexcept |
The SWC-DB Types C++ namespace 'SWC::DB::Types'.
using SWC::DB::Types::Encoder = typedef Core::Encoder::Type |
|
strong |
|
strong |
|
strong |
Enumerator | |
---|---|
NOTSET | |
OFF | |
STANDBY | |
WANT | |
NOMINATED | |
ACTIVE |
Definition at line 14 of file MngrState.h.
|
strong |
|
noexcept |
Definition at line 59 of file Column.cc.
References SERIAL, SWC::Condition::str_case_eq(), and SWC::DB::Cell::Serial::Value::UNKNOWN.
Referenced by from_string_col_type(), and SWC::client::SQL::ColumnSchema::read_schema_options().
|
noexcept |
Definition at line 42 of file Column.h.
References column_type_from().
Referenced by SWC::Config::init_app_options().
|
noexcept |
Definition at line 34 of file KeySeq.h.
References range_seq_from().
Referenced by SWC::Config::init_app_options().
|
noexcept |
Definition at line 26 of file Column.cc.
Referenced by SWC::DB::Cells::Mutable::add_raw(), SWC::DB::Cells::Mutable::configure(), SWC::Manager::MngdColumns::create(), SWC::DB::Cells::Cell::display(), SWC::DB::Cells::Mutable::finalize_raw(), SWC::Comm::Protocol::Rgr::Handler::RangeQuerySelect::operator()(), SWC::DB::Cells::Cell::print(), SWC::DB::Cells::TSV::FileReader::read(), SWC::client::SQL::Reader::read_operation(), SWC::Utils::LoadGenerator::select_data(), SWC::ThriftBroker::AppHandler::sync_select(), SWC::Manager::MngdColumns::update(), SWC::Ranger::Callback::RangeQuerySelectUpdating::update_cell_value(), SWC::Utils::LoadGenerator::update_data(), SWC::DB::Cells::TSV::FileWriter::write(), and SWC::DB::Cells::TSV::FileWriter::write_header().
|
noexcept |
|
noexcept |
Definition at line 48 of file KeySeq.cc.
References SWC::Condition::str_case_eq(), and UNKNOWN.
Referenced by from_string_range_seq(), SWC::client::SQL::ColumnSchema::read_schema_options(), and SWC::client::SQL::QuerySelect::read_value().
SWC_CAN_INLINE std::string SWC::DB::Types::repr_col_type | ( | int | typ | ) |
Definition at line 37 of file Column.h.
References to_string().
Referenced by SWC::Config::init_app_options().
SWC_CAN_INLINE std::string SWC::DB::Types::repr_range_seq | ( | int | typ | ) |
Definition at line 29 of file KeySeq.h.
References to_string().
Referenced by SWC::Config::init_app_options().
|
noexcept |
Definition at line 38 of file Column.cc.
References SERIAL, and UNKNOWN.
Referenced by SWC::DB::Schema::display(), SWC::Comm::Protocol::Rgr::Params::Report::RspColumnsRanges::Column::display(), SWC::Comm::Protocol::Mngr::Params::Report::RspColumnStatus::RangeStatus::display(), SWC::Comm::Protocol::Mngr::Params::Report::RspManagersStatus::Manager::display(), SWC::Comm::Protocol::Mngr::Params::Report::RspColumnStatus::display(), SWC::Common::Files::Schema::load(), SWC::client::Query::Select::Scanner::print(), SWC::client::Query::Update::Committer::print(), SWC::Manager::Range::print(), SWC::Ranger::Block::print(), SWC::Manager::ColumnCfg::print(), SWC::Manager::MngrStatus::print(), SWC::Ranger::ColumnCfg::print(), SWC::DB::Cells::Mutable::print(), repr_col_type(), and repr_range_seq().
|
noexcept |
|
noexcept |
Definition at line 22 of file MngrColumnState.cc.
References SWC::DB::Types::MngrColumn::DELETED, SWC::DB::Types::MngrColumn::LOADING, SWC::DB::Types::MngrColumn::NOTSET, and SWC::Error::OK.
|
noexcept |
Definition at line 24 of file MngrRangeState.cc.
References SWC::DB::Types::MngrRange::ASSIGNED, SWC::DB::Types::MngrRange::CREATED, SWC::DB::Types::MngrColumn::DELETED, SWC::DB::Types::MngrRange::MERGE, SWC::DB::Types::MngrColumn::NOTSET, and SWC::DB::Types::MngrRange::QUEUED.
|
noexcept |
Definition at line 24 of file MngrState.cc.
References SWC::DB::Types::MngrColumn::NOTSET, and NOTSET.