 |
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.
11 namespace SWC {
namespace DB {
namespace Specs {
20 for(
const auto& intval : other)
21 (*this)[i++].reset(
new Interval(*intval.get()));
29 if(cid != other.cid ||
size() != other.size())
32 auto it2=other.cbegin();
33 for(
auto it1=cbegin(); it1 != cend(); ++it1, ++it2)
34 if(!(*it1)->equal(*(*it2)))
42 for(
auto& intval : *
this)
43 len += intval->encoded_length();
50 for(
auto& intval : *
this)
58 for(
auto& intval : *
this)
59 intval.reset(
new Interval(bufp, remainp));
63 out <<
"Column(cid=" <<
cid
65 for(
auto& intval : *
this) {
73 std::string offset)
const {
74 out << offset <<
"Column(\n"
75 << offset <<
" cid=" <<
cid <<
" size=" <<
size() <<
"\n"
76 << offset <<
" intervals=[\n";
77 for(
auto& intval : *
this)
78 intval->display(out, pretty, offset+
" ");
79 out << offset <<
" ]\n"
void display(std::ostream &out, bool pretty=false, std::string offset="") const
SWC_CAN_INLINE void resize(size_type sz, ArgsT &&... args)
SWC_CAN_INLINE void clear() noexcept(_NoExceptDestructor)
void copy(const Column &other)
constexpr SWC_CAN_INLINE uint8_t encoded_length_vi32(uint32_t val) noexcept
std::shared_ptr< Interval > Ptr
size_t SWC_PURE_FUNC encoded_length() const noexcept
void encode(uint8_t **bufp) const
Interval::Ptr & add(Types::Column col_type)
The SWC-DB C++ namespace 'SWC'.
void print(std::ostream &out) const
bool SWC_PURE_FUNC equal(const Column &other) const noexcept
constexpr SWC_CAN_INLINE uint8_t encoded_length_vi64(uint64_t val) noexcept
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)
constexpr SWC_CAN_INLINE size_type size() const noexcept
SWC_CAN_INLINE reference emplace_back(ArgsT &&... args)
constexpr SWC_CAN_INLINE uint32_t decode_vi32(const uint8_t **bufp, size_t *remainp)