|
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_ranger_db_RangeBlock_h
8 #define swcdb_ranger_db_RangeBlock_h
16 namespace SWC {
namespace Ranger {
77 bool is_consist(const DB::Cells::Interval& intval) const;
79 bool is_in_end(const DB::Cell::Key& key) const;
81 bool _is_in_end(const DB::Cell::Key& key) const;
83 bool is_next(const DB::Specs::Interval& spec) const;
85 bool includes(const DB::Specs::Interval& spec) const;
89 bool includes_end(const DB::Specs::Interval& spec) const;
95 void load_final(const DB::Cells::MutableVec& cells);
97 size_t load_cells(const uint8_t* buf,
size_t remain,
98 uint32_t revs,
size_t avail,
99 bool& was_splitted,
bool synced=false);
119 bool loaded() const noexcept;
127 size_t _size() const noexcept;
135 void print(std::ostream& out);
165 #endif // swcdb_ranger_db_RangeBlock_h
std::shared_mutex m_mutex
bool includes_end(const DB::Specs::Interval &spec) const
bool is_next(const DB::Specs::Interval &spec) const
static Ptr make(const DB::Cells::Interval &interval, Blocks *blocks, State state=State::NONE)
size_t load_cells(const uint8_t *buf, size_t remain, uint32_t revs, size_t avail, bool &was_splitted, bool synced=false)
bool processing() noexcept
void schema_update() noexcept
void processing_increment() noexcept
bool add_logged(const DB::Cells::Cell &cell)
Core::Atomic< size_t > m_releasable_bytes
bool includes(const DB::Specs::Interval &spec) const
ScanState _scan(const ReqScan::Ptr &req, bool synced=false)
bool _is_in_end(const DB::Cell::Key &key) const
bool is_in_end(const DB::Cell::Key &key) const
ScanState scan(const ReqScan::Ptr &req)
Block(const Block &)=delete
Block(const Block &&)=delete
DB::Cell::Key m_prev_key_end
Block(const DB::Cells::Interval &interval, Blocks *blocks, State state=State::NONE)
Core::Atomic< State > m_state
Condition::Comp _cond_key_end(const DB::Cell::Key &key) const
bool splitter(bool loaded)
The SWC-DB C++ namespace 'SWC'.
Core::MutexAtomic m_mutex_intval
size_t size_of_internal()
DB::Cells::Mutable m_cells
bool _includes_begin(const DB::Specs::Interval &spec) const
bool loaded() const noexcept
size_t _size() const noexcept
void print(std::ostream &out)
Core::MutexSptd m_mutex_state
bool is_consist(const DB::Cells::Interval &intval) const
void _set_key_end(const DB::Cell::Key &key)
void processing_decrement() noexcept
Core::Atomic< size_t > m_processing
bool need_load() const noexcept
Block & operator=(const Block &)=delete
void load_final(const DB::Cells::MutableVec &cells)
bool _need_split() const noexcept
size_t _releasing_size() const noexcept
void _set_prev_key_end(const DB::Cell::Key &key)