#include <swcdb/db/Columns/Schema.h>
Public Types | |
typedef std::shared_ptr< Schema > | Ptr |
typedef Core::Vector< std::string > | Tags |
Public Member Functions | |
SWC_CAN_INLINE | Schema () noexcept |
Schema (const Schema &other) | |
Schema (const uint8_t **bufp, size_t *remainp) | |
~Schema () noexcept | |
bool SWC_PURE_FUNC | equal (const Ptr &other, bool with_rev=true) const noexcept |
uint32_t SWC_PURE_FUNC | encoded_length () const noexcept |
void | encode (uint8_t **bufp) const |
void | display (std::ostream &out) const |
SWC_CAN_INLINE std::string | to_string () const |
void | print (std::ostream &out) const |
![]() | |
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 |
Static Public Member Functions | |
static SWC_CAN_INLINE Ptr | make () |
static SWC_CAN_INLINE Ptr | make (const Ptr &other) |
static SWC_CAN_INLINE Ptr | make (const uint8_t **bufp, size_t *remainp) |
Public Attributes | |
std::string | col_name |
Tags | tags |
![]() | |
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 |
Additional Inherited Members | |
![]() | |
static constexpr const cid_t | NO_CID = 0 |
typedef std::shared_ptr<Schema> SWC::DB::Schema::Ptr |
typedef Core::Vector<std::string> SWC::DB::Schema::Tags |
|
inlinenoexcept |
SWC::DB::Schema::Schema | ( | const uint8_t ** | bufp, |
size_t * | remainp | ||
) |
void SWC::DB::Schema::display | ( | std::ostream & | out | ) | const |
Definition at line 63 of file Schema.cc.
References SWC::DB::SchemaPrimitives::blk_cells, SWC::DB::SchemaPrimitives::blk_encoding, SWC::DB::SchemaPrimitives::blk_size, SWC::Core::Vector< T, SizeT, GROW_SZ >::cbegin(), SWC::DB::SchemaPrimitives::cell_ttl, SWC::DB::SchemaPrimitives::cell_versions, SWC::Core::Vector< T, SizeT, GROW_SZ >::cend(), SWC::DB::SchemaPrimitives::cid, col_name, SWC::DB::SchemaPrimitives::col_seq, SWC::DB::SchemaPrimitives::col_type, SWC::DB::SchemaPrimitives::compact_percent, SWC::DB::SchemaPrimitives::cs_max, SWC::DB::SchemaPrimitives::cs_replication, SWC::DB::SchemaPrimitives::cs_size, SWC::DB::SchemaPrimitives::log_compact_cointervaling, SWC::DB::SchemaPrimitives::log_fragment_preload, SWC::DB::SchemaPrimitives::log_rollout_ratio, SWC::DB::SchemaPrimitives::revision, tags, SWC::DB::Types::to_string(), SWC::Core::to_string(), and SWC::Core::Encoder::to_string().
Referenced by print(), and to_string().
void SWC::DB::Schema::encode | ( | uint8_t ** | bufp | ) | const |
Definition at line 49 of file Schema.cc.
References col_name, SWC::DB::SchemaPrimitives::encode(), SWC::Serialization::encode_bytes(), SWC::Serialization::encode_vi32(), SWC::Core::Vector< T, SizeT, GROW_SZ >::size(), and tags.
|
noexcept |
Definition at line 40 of file Schema.cc.
References col_name, SWC::DB::SchemaPrimitives::encoded_length(), SWC::Serialization::encoded_length_bytes(), SWC::Serialization::encoded_length_vi32(), SWC::Core::Vector< T, SizeT, GROW_SZ >::size(), and tags.
|
noexcept |
Definition at line 57 of file Schema.cc.
References SWC::DB::SchemaPrimitives::equal(), and SWC::Condition::str_eq().
|
inlinestatic |
Definition at line 189 of file Schema.h.
References Schema().
Referenced by SWC::Manager::MngdColumns::create(), SWC::Utils::LoadGenerator::generate(), SWC::Common::Files::Schema::load(), SWC::ThriftBroker::AppHandler::mng_column(), SWC::client::SQL::ColumnSchema::read_schema_options(), SWC::Manager::MngdColumns::require_sync(), SWC::Manager::Schemas::store_load(), and SWC::Manager::MngdColumns::update().
|
inlinestatic |
|
inlinestatic |
void SWC::DB::Schema::print | ( | std::ostream & | out | ) | const |
|
inline |
std::string SWC::DB::Schema::col_name |
Definition at line 234 of file Schema.h.
Referenced by display(), encode(), encoded_length(), and SWC::DB::Schemas::matching().
Tags SWC::DB::Schema::tags |
Definition at line 235 of file Schema.h.
Referenced by display(), encode(), encoded_length(), and SWC::DB::Schemas::matching().