 |
SWC-DB
v0.5.11 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.
6 #ifndef swcdb_db_client_Query_Update_Handlers_BaseColumnMutable_h
7 #define swcdb_db_client_Query_Update_Handlers_BaseColumnMutable_h
15 namespace SWC {
namespace client {
namespace Query {
namespace Update {
22 typedef std::shared_ptr<ColumnMutable>
Ptr;
29 uint32_t versions, uint32_t ttl_secs,
33 m_cells(seq, versions, uint64_t(ttl_secs) * 1000000000, type) {
38 uint32_t versions, uint32_t ttl_secs,
43 m_cells(seq, versions, uint64_t(ttl_secs) * 1000000000, type, buffer) {
54 virtual void print(std::ostream& out)
override;
64 virtual bool empty() noexcept override;
66 virtual
size_t size() noexcept override;
73 bool start_key=false) override;
76 const DB::Cell::Key& upto_key,
77 const DB::Cell::Key& from_key,
78 uint32_t skip,
bool malformed) override;
81 bool finalized=false) override;
83 virtual
void add(const DB::Cells::Cell& cell,
84 bool finalized=false) override;
86 virtual
bool get_buff(const DB::Cell::Key& key_start,
87 const DB::Cell::Key& key_end,
88 size_t buff_sz,
bool& more,
91 virtual
bool get_buff(
size_t buff_sz,
bool& more,
94 virtual
void error(
int err) noexcept
override {
99 virtual int error() noexcept
override {
114 #ifdef SWC_IMPL_SOURCE
119 #endif // swcdb_db_client_Query_Update_Handlers_BaseColumnMutable_h
virtual ~ColumnMutable() noexcept
constexpr SWC_CAN_INLINE bool compare_exchange_weak(T &at, T value) noexcept
ColumnMutable(const Column &&)=delete
virtual bool empty() noexcept override
SWC_CAN_INLINE ColumnMutable(const cid_t a_cid, DB::Types::KeySeq seq, uint32_t versions, uint32_t ttl_secs, DB::Types::Column type)
virtual size_t add(const DynamicBuffer &cells, const DB::Cell::Key &upto_key, const DB::Cell::Key &from_key, uint32_t skip, bool malformed) override
virtual size_t size_bytes() noexcept override
ColumnMutable & operator=(const Column &)=delete
virtual size_t size() noexcept override
virtual cid_t get_cid() const noexcept override
virtual DB::Cell::Key::Ptr get_first_key() override
virtual void print(std::ostream &out) override
virtual DB::Cell::Key::Ptr get_key_next(const DB::Cell::Key &eval_key, bool start_key=false) override
ColumnMutable(const Column &)=delete
The SWC-DB C++ namespace 'SWC'.
virtual int error() noexcept override
SWC_CAN_INLINE Column() noexcept
virtual bool get_buff(const DB::Cell::Key &key_start, const DB::Cell::Key &key_end, size_t buff_sz, bool &more, DynamicBuffer &cells_buff) override
const Types::KeySeq key_seq
DB::Cells::Mutable m_cells
SWC_CAN_INLINE ColumnMutable(const cid_t a_cid, DB::Types::KeySeq seq, uint32_t versions, uint32_t ttl_secs, DB::Types::Column type, const StaticBuffer &buffer)
Core::Atomic< int > state_error
virtual DB::Types::KeySeq get_sequence() const noexcept override
std::shared_ptr< ColumnMutable > Ptr