|
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.
6 #ifndef swcdb_ranger_callbacks_RangeQuerySelectUpdating_h
7 #define swcdb_ranger_callbacks_RangeQuerySelectUpdating_h
13 namespace SWC {
namespace Ranger {
namespace Callback {
19 typedef std::shared_ptr<RangeQuerySelectUpdating>
Ptr;
27 conn, ev, std::move(req_spec), a_range) {
46 size_t log_offset_it = 0;
47 size_t log_offset_hint = 0;
48 size_t blk_offset_hint = 0;
50 auto& commitlog =
range->blocks.commitlog;
58 updated_cell.read(&ptr, &remain,
false);
64 updated_cell.set_timestamp_with_rev_is_ts(ts);
68 updated_cell.set_revision(ts);
71 commitlog._add(updated_cell, &log_offset_it, &log_offset_hint);
72 blk_cells.
add_raw(updated_cell, &blk_offset_hint,
true);
99 #endif // swcdb_ranger_callbacks_RangeQuerySelectUpdating_h
SWC_CAN_INLINE void add_raw(const DynamicBuffer &cells, bool finalized)
SWC_CAN_INLINE void set_value(uint8_t *v, uint32_t len, bool owner)
SWC_CAN_INLINE int64_t now_ns() noexcept
SWC_CAN_INLINE RangeQuerySelectUpdating(const Comm::ConnHandlerPtr &conn, const Comm::Event::Ptr &ev, DB::Specs::Interval &&req_spec, const RangePtr &a_range)
constexpr const int64_t TIMESTAMP_AUTO
virtual void update_cell_value(DB::Cells::Cell &cell)
constexpr const uint8_t MASK_HAVE_ENCODER
std::shared_ptr< Range > RangePtr
The SWC-DB C++ namespace 'SWC'.
constexpr SWC_CAN_INLINE void set_mark() noexcept
bool SWC_CONST_FUNC is_counter(const Column typ) noexcept
void update(DB::Cells::Mutable &blk_cells) override
virtual ~RangeQuerySelectUpdating() noexcept
constexpr const int64_t TIMESTAMP_NULL
std::shared_ptr< ConnHandler > ConnHandlerPtr
constexpr SWC_CAN_INLINE size_t fill() const noexcept
IntervalUpdate::Ptr updating
virtual bool expired(int64_t within=0) const noexcept
std::shared_ptr< RangeQuerySelectUpdating > Ptr
std::shared_ptr< Event > Ptr
bool has_update() const noexcept override