 |
SWC-DB
v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
|
Go to the documentation of this file.
7 #ifndef swcdb_db_Columns_Schema_h
8 #define swcdb_db_Columns_Schema_h
19 namespace SWC {
namespace DB {
120 void decode(
const uint8_t** bufp,
size_t* remainp) {
141 bool with_rev=
true) const noexcept {
142 return cid == other.
cid &&
185 typedef std::shared_ptr<Schema>
Ptr;
199 static Ptr make(
const uint8_t** bufp,
size_t* remainp) {
208 Schema(
const uint8_t** bufp,
size_t* remainp);
213 equal(const
Ptr& other,
bool with_rev=true) const noexcept;
217 void encode(uint8_t** bufp) const;
219 void display(std::ostream& out) const;
225 std::stringstream ss;
232 void print(std::ostream& out)
const;
245 #ifdef SWC_IMPL_SOURCE
249 #endif // swcdb_db_Columns_Schema_h
SWC_CAN_INLINE Schema() noexcept
static constexpr const cid_t NO_CID
std::shared_ptr< Schema > Ptr
constexpr SWC_CAN_INLINE uint8_t encoded_length_vi32(uint32_t val) noexcept
void encode(uint8_t **bufp) const
SWC_CAN_INLINE void encode(uint8_t **bufp) const
SWC_CAN_INLINE SchemaPrimitives() noexcept
SWC_CAN_INLINE std::string to_string() const
bool SWC_PURE_FUNC equal(const Ptr &other, bool with_rev=true) const noexcept
constexpr SWC_CAN_INLINE void encode_i8(uint8_t **bufp, uint8_t val) noexcept
Core::Vector< std::string > Tags
uint8_t log_fragment_preload
uint8_t log_rollout_ratio
The SWC-DB C++ namespace 'SWC'.
SWC_CAN_INLINE bool equal(const SchemaPrimitives &other, bool with_rev=true) const noexcept
static SWC_CAN_INLINE Ptr make()
Core::Vector< Schema::Ptr > SchemasVec
Types::Encoder blk_encoding
static SWC_CAN_INLINE Ptr make(const Ptr &other)
static SWC_CAN_INLINE Ptr make(const uint8_t **bufp, size_t *remainp)
constexpr SWC_CAN_INLINE uint8_t encoded_length_vi64(uint64_t val) noexcept
uint8_t log_compact_cointervaling
Core::Encoder::Type Encoder
SWC_CAN_INLINE void decode(const uint8_t **bufp, size_t *remainp)
constexpr SWC_CAN_INLINE uint64_t decode_vi64(const uint8_t **bufp, size_t *remainp)
constexpr SWC_CAN_INLINE void encode_vi32(uint8_t **bufp, uint32_t val)
constexpr SWC_CAN_INLINE void encode_vi64(uint8_t **bufp, uint64_t val)
SWC_CAN_INLINE uint32_t encoded_length() const noexcept
void print(std::ostream &out) const
SWC_CAN_INLINE SchemaPrimitives(const uint8_t **bufp, size_t *remainp)
void display(std::ostream &out) const
constexpr SWC_CAN_INLINE uint8_t decode_i8(const uint8_t **bufp, size_t *remainp)
SWC_CAN_INLINE SchemaPrimitives(const SchemaPrimitives &other) noexcept
uint32_t SWC_PURE_FUNC encoded_length() const noexcept
constexpr SWC_CAN_INLINE uint32_t decode_vi32(const uint8_t **bufp, size_t *remainp)