|
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.
12 namespace SWC {
namespace Comm {
namespace Protocol {
13 namespace Rgr {
namespace Params {
37 <<
cpu <<
"Mhz ranges="
38 <<
ranges <<
")" << std::endl;
64 out << offset <<
"cids=[";
67 out <<
']' << std::endl;
94 out << offset <<
"rids=[";
97 out <<
']' << std::endl;
102 for(
auto& rid :
rids)
109 for(
auto& rid :
rids)
115 for(
auto& rid :
rids)
129 + interval.encoded_length();
134 interval.encode(bufp);
139 interval.decode(bufp, remainp,
false);
143 const std::string& offset)
const {
144 out << offset <<
"-------------------------------------" << std::endl;
145 out << offset <<
"rid(" << rid <<
"):" << std::endl;
146 out << offset <<
" begin";
147 interval.key_begin.display(out, pretty);
149 out << offset <<
" end";
150 interval.key_end.display(out, pretty);
152 out << offset <<
" " << interval.ts_earliest.value
153 <<
"<=TS<=" << interval.ts_latest.value ;
174 sz += r->encoded_length();
192 auto r =
new Range(col_seq);
193 r->decode(bufp, remainp);
200 const std::string& offset)
const {
201 out << offset <<
"**************************************" << std::endl;
202 out << offset <<
"cid(" << cid <<
") seq("
204 << mem_bytes <<
" bytes) ranges("
205 << ranges.size() <<
')';
209 for(
auto& r : ranges)
210 r->display(out, pretty, offset+
" ");
229 const std::string& offset)
const {
230 out << offset <<
"Ranger: rgrid("<<
rgrid <<
")"
233 out << endpoint <<
", ";
234 out <<
")" << std::endl;
236 out << offset <<
"Columns(" <<
columns.size() <<
"):" << std::endl;
238 c->display(out, pretty, offset+
" ");
249 sz += c->encoded_length();
271 for(
size_t i=0;i<len;++i)
276 c->decode(bufp, remainp);
void internal_decode(const uint8_t **bufp, size_t *remainp) override
size_t SWC_PURE_FUNC internal_encoded_length() const override
SWC_CAN_INLINE void resize(size_type sz, ArgsT &&... args)
SWC_CAN_INLINE void clear() noexcept(_NoExceptDestructor)
void internal_encode(uint8_t **bufp) const override
size_t SWC_PURE_FUNC internal_encoded_length() const override
constexpr SWC_CAN_INLINE uint8_t encoded_length_vi32(uint32_t val) noexcept
const char *SWC_CONST_FUNC to_string(Column typ) noexcept
SWC_CAN_INLINE RspColumnsRanges() noexcept
static bool before(Range *r1, Range *r2)
DB::Cells::Interval interval
size_t SWC_PURE_FUNC internal_encoded_length() const override
Core::Vector< Column * > columns
constexpr SWC_CAN_INLINE void encode_i8(uint8_t **bufp, uint8_t val) noexcept
void display(std::ostream &out, const std::string &offset="") const
SWC_CAN_INLINE uint8_t encoded_length(const Comm::EndPoint &endpoint) noexcept
void decode(const uint8_t **bufp, size_t *remainp)
void encode(uint8_t **bufp, const Comm::EndPoint &endpoint)
size_t SWC_PURE_FUNC internal_encoded_length() const override
SWC_CAN_INLINE bool is_in_end(const DB::Cell::Key &key) const
size_t SWC_PURE_FUNC internal_encoded_length() const override
void display(std::ostream &out, const std::string &offset="") const
static bool SWC_PURE_FUNC before(Column *c1, Column *c2)
~RspColumnsRanges() noexcept
constexpr SWC_CAN_INLINE iterator end() noexcept
The SWC-DB C++ namespace 'SWC'.
void internal_decode(const uint8_t **bufp, size_t *remainp) override
void internal_decode(const uint8_t **bufp, size_t *remainp) override
size_t SWC_PURE_FUNC encoded_length() const
void decode(const uint8_t **bufp, size_t *remainp)
void sort(const Networks &nets, const EndPoints &endpoints, EndPoints &sorted)
constexpr SWC_CAN_INLINE uint8_t encoded_length_vi64(uint64_t val) noexcept
void internal_encode(uint8_t **bufp) const override
size_t SWC_PURE_FUNC encoded_length() const
void internal_encode(uint8_t **bufp) const override
void internal_decode(const uint8_t **bufp, size_t *remainp) override
void encode(uint8_t **bufp) const
Comm::EndPoint decode(const uint8_t **bufp, size_t *remainp)
void display(std::ostream &out, bool pretty=true, const std::string &offset="") const
void display(std::ostream &out, bool pretty=true, const std::string &offset="") const
constexpr SWC_CAN_INLINE uint64_t decode_vi64(const uint8_t **bufp, size_t *remainp)
void internal_encode(uint8_t **bufp) const override
constexpr SWC_CAN_INLINE void encode_vi32(uint8_t **bufp, uint32_t val)
void display(std::ostream &out, bool pretty=true, const std::string &offset="") const
constexpr SWC_CAN_INLINE void encode_vi64(uint8_t **bufp, uint64_t val)
void internal_decode(const uint8_t **bufp, size_t *remainp) override
void internal_encode(uint8_t **bufp) const override
constexpr SWC_CAN_INLINE uint8_t decode_i8(const uint8_t **bufp, size_t *remainp)
constexpr SWC_CAN_INLINE size_type size() const noexcept
void display(std::ostream &out, const std::string &offset="") const
void encode(uint8_t **bufp) const
constexpr SWC_CAN_INLINE uint32_t decode_vi32(const uint8_t **bufp, size_t *remainp)
constexpr SWC_CAN_INLINE iterator begin() noexcept