|
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_ReqScan_h
8 #define swcdb_db_Cells_ReqScan_h
16 namespace SWC {
namespace DB {
namespace Cells {
22 typedef std::shared_ptr<ReqScan>
Ptr;
45 spec(std::move(a_spec)),
65 spec(range_begin, range_end),
79 return std::dynamic_pointer_cast<ReqScan>(shared_from_this());
104 virtual void print(std::ostream& out)
const;
153 size_t count_fragments) {
170 std::stringstream ss;
177 void print(std::ostream& out)
const {
178 out <<
"profile(took="
207 typedef std::shared_ptr<ReqScanTest>
Ptr;
232 std::function<void(
int)>
cb;
238 #ifdef SWC_IMPL_SOURCE
242 #endif // swcdb_db_Cells_ReqScan_h
SWC_CAN_INLINE ReqScan(const Comm::ConnHandlerPtr &conn, const Comm::Event::Ptr &ev, const DB::Specs::Interval &a_spec)
ReqScan(const ReqScan &&)=delete
SWC_CAN_INLINE bool offset_adjusted() noexcept
SWC_CAN_INLINE void add_block_locate(int64_t ts)
SWC_CAN_INLINE int64_t now_ns() noexcept
void print(std::ostream &out) const
ReqScan & operator=(const ReqScan &)=delete
SWC_CAN_INLINE void add_block_scan(int64_t ts)
SWC_CAN_INLINE ReqScanTest() noexcept
ResponseCallback(const ConnHandlerPtr &conn, const Event::Ptr &ev)
virtual bool add_cell_and_more(const Cell &cell)=0
uint64_t blocks_cs_blocks
SWC_CAN_INLINE std::string to_string() const
SWC_CAN_INLINE void add_block_load(int64_t ts, size_t count_cs_blocks, size_t count_fragments)
virtual bool selector(const Types::KeySeq key_seq, const Cell &cell, bool &stop)
std::shared_ptr< ReqScan > Ptr
SWC_CAN_INLINE void skip_cell() noexcept
SWC_CAN_INLINE void finished()
bool reached_limits() override
The SWC-DB C++ namespace 'SWC'.
std::function< void(int)> cb
virtual void print(std::ostream &out) const
SWC_CAN_INLINE ReqScan(const Comm::ConnHandlerPtr &conn, const Comm::Event::Ptr &ev, const DB::Cell::Key &range_begin, const DB::Cell::Key &range_end)
ReqScan(const ReqScan &)=delete
uint64_t block_time_locate
std::shared_ptr< ResponseCallback > Ptr
virtual bool reached_limits()=0
SWC_CAN_INLINE Ptr get_req_scan() noexcept
std::shared_ptr< ConnHandler > ConnHandlerPtr
static SWC_CAN_INLINE Ptr make()
uint64_t blocks_fragments
void response(int &err) override
virtual bool has_update() const noexcept
SWC_CAN_INLINE ReqScan() noexcept
std::shared_ptr< Event > Ptr
SWC_CAN_INLINE ReqScan(const Comm::ConnHandlerPtr &conn, const Comm::Event::Ptr &ev, DB::Specs::Interval &&a_spec)
std::shared_ptr< ReqScanTest > Ptr
constexpr SWC_CAN_INLINE size_t size_bytes() const noexcept
virtual void update(DB::Cells::Mutable &)
SWC_CAN_INLINE void add_cell(uint32_t bytes) noexcept
virtual ~ReqScan() noexcept
SWC_CAN_INLINE ReqScan(const DB::Specs::Interval &a_spec)
virtual ~ReqScanTest() noexcept
bool add_cell_and_more(const DB::Cells::Cell &cell) override
void add(const Cell &cell, bool no_value=false)