|
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_cells_MutableVec_h
8 #define swcdb_db_cells_MutableVec_h
16 namespace SWC {
namespace DB {
namespace Cells {
37 const uint32_t a_max_revs=1,
const uint64_t ttl_ns=0,
50 for(
auto cells : *
this)
56 for(
auto cells : *
this)
62 const uint32_t revs,
const uint64_t ttl_ns,
71 size_t size() const noexcept {
73 for(
auto cells : *
this)
81 for(
auto cells : *
this)
82 sz += cells->size_bytes();
89 for(
auto cells : *
this) {
90 sz += cells->size_of_internal();
101 size_t* offset_itp,
size_t* offsetp,
bool finalized);
104 Interval& intval, uint32_t threshold,
145 #ifdef SWC_IMPL_SOURCE
150 #endif // swcdb_db_Cells_MutableVec_h
constexpr SWC_CAN_INLINE Cell & back() noexcept
const Types::KeySeq key_seq
constexpr SWC_CAN_INLINE size_t size() const noexcept
SWC_CAN_INLINE void clear() noexcept(_NoExceptDestructor)
#define SWC_LOG_OUT(pr, _code_)
SWC_CAN_INLINE MutableVec(const Types::KeySeq a_key_seq, uint32_t a_split_size=100000, const uint32_t a_max_revs=1, const uint64_t ttl_ns=0, const Types::Column a_type=Types::Column::PLAIN) noexcept
void configure(uint32_t split, const uint32_t revs, const uint64_t ttl_ns, const Types::Column typ, bool finalized) noexcept
MutableVec(const MutableVec &&)=delete
const value_type * const_iterator
SWC_CAN_INLINE void check_sequence(const char *msg, bool w_assert=true) const
SWC_CAN_INLINE size_t size() const noexcept
void write_and_free(DynamicBuffer &cells, uint32_t &cell_count, Interval &intval, uint32_t threshold, uint32_t max_cells)
SWC_CAN_INLINE bool empty() const noexcept
constexpr SWC_CAN_INLINE bool empty() const noexcept
constexpr SWC_CAN_INLINE iterator end() noexcept
The SWC-DB C++ namespace 'SWC'.
void add_raw(const Cell &cell, bool finalized)
Core::Vector< Mutable * > Vec
void print(std::ostream &out, Types::Column typ) const
SWC_CAN_INLINE bool split(Mutable &cells, const const_iterator &it)
SWC_CAN_INLINE size_t size_bytes() const noexcept
constexpr SWC_CAN_INLINE bool has_one_key() const noexcept
SWC_CAN_INLINE void free() noexcept
constexpr SWC_CAN_INLINE const_iterator cend() const noexcept
MutableVec & operator=(const MutableVec &)=delete
MutableVec(const MutableVec &)=delete
SWC_CAN_INLINE size_t size_of_internal() const noexcept
SWC_CAN_INLINE void check_sequence(const char *msg, bool w_assert=true) const
void add_sorted(const Cell &cell)
constexpr SWC_CAN_INLINE const_iterator cbegin() const noexcept
SWC_CAN_INLINE bool split(Mutable &cells, size_t count, size_t bytes, bool loaded)
SWC_CAN_INLINE iterator insert(size_type offset, ArgsT &&... args)
Condition::Comp compare(const Types::KeySeq seq, const Cell::Key &key, const Cell::Key &other) SWC_ATTRIBS((SWC_ATTRIB_O3))
constexpr SWC_CAN_INLINE iterator begin() noexcept