|
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_ReqScan_h
8 #define swcdb_ranger_db_ReqScan_h
14 namespace SWC {
namespace Ranger {
17 #define SWC_SCAN_RSVD_BUFFS 3
30 typedef std::shared_ptr<ReqScan>
Ptr;
34 uint8_t a_readahead=1, uint32_t a_blk_size=0)
48 : DB::Cells::
ReqScan(conn, ev, range_begin, range_end),
59 : DB::Cells::
ReqScan(conn, ev, std::move(a_spec)),
81 return std::dynamic_pointer_cast<ReqScan>(shared_from_this());
99 typedef std::shared_ptr<ReqScanBlockLoader>
Ptr;
103 :
ReqScan(ReqScan::Type::BLK_PRELOAD,
false, 1, a_blk_size) {
122 typedef std::shared_ptr<ReqScanTest>
Ptr;
145 std::function<void(
int)>
cb;
150 #endif // swcdb_ranger_db_ReqScan_h
void response(int &err) override
SWC_CAN_INLINE ReqScanBlockLoader(uint32_t a_blk_size) noexcept
bool add_cell_and_more(const DB::Cells::Cell &cell) override
SWC_CAN_INLINE ReqScan(Type a_type=Type::QUERY, bool a_release_block=false, uint8_t a_readahead=1, uint32_t a_blk_size=0) noexcept
std::function< void(int)> cb
virtual ~ReqScanBlockLoader() noexcept
static SWC_CAN_INLINE void scan_reserved_bytes_add(uint32_t bytes) noexcept
ReqScan & operator=(ReqScan &&)=delete
ReqScan(const ReqScan &)=delete
virtual ~ReqScan() noexcept
std::shared_ptr< ReqScanBlockLoader > Ptr
ReqScan & operator=(const ReqScan &)=delete
std::shared_ptr< ReqScanTest > Ptr
SWC_CAN_INLINE ReqScan(ReqScan &&)=delete
virtual ~ReqScanTest() noexcept
SWC_CAN_INLINE ReqScan(const Comm::ConnHandlerPtr &conn, const Comm::Event::Ptr &ev, DB::Specs::Interval &&a_spec, uint32_t a_blk_size)
The SWC-DB C++ namespace 'SWC'.
std::shared_ptr< ResponseCallback > Ptr
bool reached_limits() override
SWC_CAN_INLINE Ptr get_req_scan() noexcept
std::shared_ptr< ConnHandler > ConnHandlerPtr
virtual bool with_block() const noexcept
#define SWC_SCAN_RSVD_BUFFS
SWC_CAN_INLINE ReqScan() noexcept
bool reached_limits() override
std::shared_ptr< Event > Ptr
static SWC_CAN_INLINE void scan_reserved_bytes_sub(uint32_t bytes) noexcept
constexpr SWC_CAN_INLINE size_t size_bytes() const noexcept
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, uint32_t a_blk_size)
std::shared_ptr< ReqScan > Ptr
bool add_cell_and_more(const DB::Cells::Cell &) override
void add(const Cell &cell, bool no_value=false)