#include <swcdb/db/Cells/Result.h>
Public Types | |
using | Vec = std::vector< Cell * > |
Public Member Functions | |
SWC_CAN_INLINE | Result (const uint64_t ttl_ns=0) noexcept |
SWC_CAN_INLINE | Result (Result &&other) noexcept |
Result (const Result &other)=delete | |
Result & | operator= (const Result &other)=delete |
~Result () noexcept | |
void | free () noexcept |
constexpr SWC_CAN_INLINE size_t | size_bytes () const noexcept |
void | take (Result &other) |
void | add (const Cell &cell, bool no_value=false) |
size_t | add (const uint8_t *ptr, size_t remain) |
Cell * | takeout_begin (size_t idx) |
Cell * | takeout_end (size_t idx) |
void | write (DynamicBuffer &cells) const |
void | write_and_free (DynamicBuffer &cells, uint32_t &cell_count, Interval &intval, uint32_t threshold, uint32_t max_cells) |
void | print (std::ostream &out, Types::Column col_type=Types::Column::PLAIN, bool with_cells=false) const |
Public Attributes | |
size_t | bytes |
uint64_t | ttl |
using SWC::DB::Cells::Result::Vec = std::vector<Cell*> |
|
inlineexplicitnoexcept |
|
inlineexplicitnoexcept |
|
delete |
SWC_CAN_INLINE void SWC::DB::Cells::Result::add | ( | const Cell & | cell, |
bool | no_value = false |
||
) |
Definition at line 109 of file Result.h.
References bytes, and SWC::DB::Cells::Cell::encoded_length().
Referenced by SWC::DB::Cells::ReqScanTest::add_cell_and_more(), SWC::Ranger::ReqScanTest::add_cell_and_more(), SWC::client::Query::Select::Handlers::BaseSingleColumn::add_cells(), and SWC::client::Query::Select::Handlers::BaseUnorderedMap::Rsp::add_cells().
SWC_CAN_INLINE size_t SWC::DB::Cells::Result::add | ( | const uint8_t * | ptr, |
size_t | remain | ||
) |
|
inlinenoexcept |
Definition at line 56 of file Result.h.
References bytes.
Referenced by SWC::ThriftBroker::AppHandler::process_results(), SWC::DB::Cells::TSV::FileWriter::write(), and write_and_free().
void SWC::DB::Cells::Result::print | ( | std::ostream & | out, |
Types::Column | col_type = Types::Column::PLAIN , |
||
bool | with_cells = false |
||
) | const |
Definition at line 64 of file Result.cc.
References bytes, size, and ttl.
Referenced by SWC::Ranger::Range::check_meta(), and SWC::Manager::MngdColumns::remove().
|
inlineconstexprnoexcept |
Definition at line 64 of file Result.h.
References bytes.
Referenced by SWC::client::Query::Select::Handlers::BaseSingleColumn::get_size_bytes(), SWC::DB::Cells::ReqScanTest::reached_limits(), SWC::Ranger::ReqScanTest::reached_limits(), SWC::Utils::LoadGenerator::select_data(), and SWC::DB::Cells::TSV::FileWriter::write().
SWC_CAN_INLINE void SWC::DB::Cells::Result::take | ( | Result & | other | ) |
Definition at line 95 of file Result.h.
Referenced by SWC::client::Query::Select::Handlers::BaseSingleColumn::get_cells(), and SWC::client::Query::Select::Handlers::BaseUnorderedMap::Rsp::get_cells().
SWC_CAN_INLINE Cell * SWC::DB::Cells::Result::takeout_begin | ( | size_t | idx | ) |
Definition at line 128 of file Result.h.
References bytes, and SWC::DB::Cells::Cell::encoded_length().
SWC_CAN_INLINE Cell * SWC::DB::Cells::Result::takeout_end | ( | size_t | idx | ) |
Definition at line 137 of file Result.h.
References bytes, and SWC::DB::Cells::Cell::encoded_length().
void SWC::DB::Cells::Result::write | ( | DynamicBuffer & | cells | ) | const |
Definition at line 14 of file Result.cc.
References bytes, SWC::Core::BufferDyn< BufferT >::ensure(), and ttl.
void SWC::DB::Cells::Result::write_and_free | ( | DynamicBuffer & | cells, |
uint32_t & | cell_count, | ||
Interval & | intval, | ||
uint32_t | threshold, | ||
uint32_t | max_cells | ||
) |
Definition at line 22 of file Result.cc.
References SWC::DB::Cells::Interval::align(), bytes, SWC::Core::BufferDyn< BufferT >::ensure(), SWC::DB::Cells::Interval::expand(), SWC::DB::Cells::Interval::expand_begin(), SWC::DB::Cells::Interval::expand_end(), SWC::Core::BufferDyn< BufferT >::fill(), free(), and ttl.
size_t SWC::DB::Cells::Result::bytes |
Definition at line 32 of file Result.h.
Referenced by add(), free(), print(), size_bytes(), take(), takeout_begin(), takeout_end(), write(), and write_and_free().
uint64_t SWC::DB::Cells::Result::ttl |
Definition at line 33 of file Result.h.
Referenced by print(), write(), and write_and_free().