#include <swcdb/db/Columns/Schema.h>
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 |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
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().
|
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().
|
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().
|
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().
uint32_t SWC::DB::SchemaPrimitives::blk_cells |
Definition at line 166 of file Schema.h.
Referenced by decode(), SWC::DB::Schema::display(), encode(), encoded_length(), equal(), and SWC::Ranger::ColumnCfg::update().
Types::Encoder SWC::DB::SchemaPrimitives::blk_encoding |
Definition at line 170 of file Schema.h.
Referenced by decode(), SWC::DB::Schema::display(), encode(), equal(), and SWC::Ranger::ColumnCfg::update().
uint32_t SWC::DB::SchemaPrimitives::blk_size |
Definition at line 165 of file Schema.h.
Referenced by decode(), SWC::DB::Schema::display(), encode(), encoded_length(), equal(), and SWC::Ranger::ColumnCfg::update().
uint32_t SWC::DB::SchemaPrimitives::cell_ttl |
Definition at line 164 of file Schema.h.
Referenced by decode(), SWC::DB::Schema::display(), encode(), encoded_length(), equal(), SWC::Ranger::Column::schema_update(), and SWC::Ranger::ColumnCfg::update().
uint32_t SWC::DB::SchemaPrimitives::cell_versions |
Definition at line 163 of file Schema.h.
Referenced by decode(), SWC::DB::Schema::display(), encode(), encoded_length(), equal(), SWC::Ranger::Column::schema_update(), and SWC::Ranger::ColumnCfg::update().
cid_t SWC::DB::SchemaPrimitives::cid |
Definition at line 161 of file Schema.h.
Referenced by SWC::Comm::Protocol::Rgr::Handler::column_update(), decode(), SWC::DB::Schema::display(), encode(), encoded_length(), equal(), and SWC::Comm::Protocol::Rgr::Handler::RangeLoad::operator()().
Types::KeySeq SWC::DB::SchemaPrimitives::col_seq |
Types::Column SWC::DB::SchemaPrimitives::col_type |
Definition at line 169 of file Schema.h.
Referenced by decode(), SWC::DB::Schema::display(), encode(), equal(), SWC::Ranger::Column::schema_update(), and SWC::Ranger::ColumnCfg::update().
uint8_t SWC::DB::SchemaPrimitives::compact_percent |
Definition at line 176 of file Schema.h.
Referenced by decode(), SWC::DB::Schema::display(), encode(), equal(), and SWC::Ranger::ColumnCfg::update().
uint8_t SWC::DB::SchemaPrimitives::cs_max |
Definition at line 172 of file Schema.h.
Referenced by decode(), SWC::DB::Schema::display(), encode(), equal(), and SWC::Ranger::ColumnCfg::update().
uint8_t SWC::DB::SchemaPrimitives::cs_replication |
Definition at line 171 of file Schema.h.
Referenced by decode(), SWC::DB::Schema::display(), encode(), equal(), and SWC::Ranger::ColumnCfg::update().
uint32_t SWC::DB::SchemaPrimitives::cs_size |
Definition at line 167 of file Schema.h.
Referenced by decode(), SWC::DB::Schema::display(), encode(), encoded_length(), equal(), and SWC::Ranger::ColumnCfg::update().
uint8_t SWC::DB::SchemaPrimitives::log_compact_cointervaling |
Definition at line 174 of file Schema.h.
Referenced by decode(), SWC::DB::Schema::display(), encode(), equal(), and SWC::Ranger::ColumnCfg::update().
uint8_t SWC::DB::SchemaPrimitives::log_fragment_preload |
Definition at line 175 of file Schema.h.
Referenced by decode(), SWC::DB::Schema::display(), encode(), equal(), and SWC::Ranger::ColumnCfg::update().
uint8_t SWC::DB::SchemaPrimitives::log_rollout_ratio |
Definition at line 173 of file Schema.h.
Referenced by decode(), SWC::DB::Schema::display(), encode(), equal(), and SWC::Ranger::ColumnCfg::update().
|
staticconstexpr |
Definition at line 25 of file Schema.h.
Referenced by SWC::Manager::MngrRole::apply_role_changes(), SWC::Comm::Protocol::Bkr::Handler::ColumnMng::callback(), SWC::Utils::shell::Mngr::column_status(), SWC::Manager::MngdColumns::create(), SWC::Manager::Columns::get_need_health_check(), SWC::Comm::Protocol::Mngr::Req::MngrActive::make(), SWC::ThriftBroker::AppHandler::mng_column(), SWC::Utils::shell::Mngr::rangers_status(), SWC::client::SQL::QueryUpdate::read_cells(), SWC::client::SQL::ColumnSchema::read_schema_options(), SWC::Utils::shell::Rgr::report(), SWC::Comm::Protocol::Mngr::Req::RangersStatus::run(), SWC::Manager::MngdColumns::run_actions(), SWC::Manager::MngdColumns::update(), SWC::Manager::Rangers::update_status(), and SWC::Manager::Rangers::wait_health_check().
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().