#include <swcdb/db/Cells/SpecsFlags.h>
Public Member Functions | |
constexpr SWC_CAN_INLINE | Flags () noexcept |
SWC_CAN_INLINE | Flags (const uint8_t **bufp, size_t *remainp) |
Flags (Flags &&) noexcept=default | |
Flags (const Flags &) noexcept=default | |
Flags & | operator= (Flags &&) noexcept=default |
Flags & | operator= (const Flags &) noexcept=default |
constexpr SWC_CAN_INLINE void | copy (const Flags &other) noexcept |
~Flags () noexcept | |
constexpr SWC_CAN_INLINE bool | is_only_keys () const noexcept |
constexpr SWC_CAN_INLINE bool | is_only_deletes () const noexcept |
constexpr SWC_CAN_INLINE void | set_only_keys () noexcept |
constexpr SWC_CAN_INLINE void | set_only_deletes () noexcept |
constexpr SWC_CAN_INLINE void | clear_only_deletes () noexcept |
constexpr SWC_CAN_INLINE bool | equal (const Flags &other) const noexcept |
constexpr SWC_CAN_INLINE size_t | encoded_length () const noexcept |
SWC_CAN_INLINE void | encode (uint8_t **bufp) const |
SWC_CAN_INLINE void | decode (const uint8_t **bufp, size_t *remainp) |
SWC_CAN_INLINE std::string | to_string () const |
void | print (std::ostream &out) const |
void | display (std::ostream &out) const |
Public Attributes | |
uint64_t | limit |
uint64_t | offset |
uint32_t | max_versions |
uint32_t | max_buffer |
uint8_t | options |
bool | was_set |
Static Public Attributes | |
constexpr static const uint8_t | NONE = 0x00 |
constexpr static const uint8_t | LIMIT_BY_KEYS = 0x01 |
constexpr static const uint8_t | OFFSET_BY_KEYS = 0x04 |
constexpr static const uint8_t | ONLY_KEYS = 0x08 |
constexpr static const uint8_t | ONLY_DELETES = 0x10 |
constexpr static const uint8_t | MASK_ONLY_DELETES = 0xff - ONLY_DELETES |
Definition at line 18 of file SpecsFlags.h.
|
inlineexplicitconstexprnoexcept |
Definition at line 31 of file SpecsFlags.h.
|
inlineexplicit |
Definition at line 38 of file SpecsFlags.h.
|
defaultnoexcept |
|
defaultnoexcept |
|
inlinenoexcept |
Definition at line 62 of file SpecsFlags.h.
|
inlineconstexprnoexcept |
Definition at line 85 of file SpecsFlags.h.
References MASK_ONLY_DELETES, and options.
Referenced by SWC::DB::Specs::Interval::decode(), and SWC::DB::Specs::Interval::Interval().
|
inlineconstexprnoexcept |
Definition at line 53 of file SpecsFlags.h.
References limit, max_buffer, max_versions, offset, options, and was_set.
Referenced by SWC::DB::Specs::Interval::copy(), and SWC::DB::Specs::Scan::operator=().
|
inline |
Definition at line 119 of file SpecsFlags.h.
References SWC::Serialization::decode_i8(), SWC::Serialization::decode_vi32(), SWC::Serialization::decode_vi64(), limit, max_buffer, max_versions, offset, and options.
Referenced by SWC::DB::Specs::Scan::decode(), and SWC::DB::Specs::Interval::decode().
void SWC::DB::Specs::Flags::display | ( | std::ostream & | out | ) | const |
Definition at line 20 of file SpecsFlags.cc.
References is_only_deletes(), is_only_keys(), limit, max_buffer, max_versions, offset, and was_set.
Referenced by SWC::DB::Specs::Interval::display(), SWC::DB::Specs::Scan::display(), and print().
|
inline |
Definition at line 110 of file SpecsFlags.h.
References SWC::Serialization::encode_i8(), SWC::Serialization::encode_vi32(), SWC::Serialization::encode_vi64(), limit, max_buffer, max_versions, offset, and options.
Referenced by SWC::DB::Specs::Interval::encode(), and SWC::DB::Specs::Scan::encode().
|
inlineconstexprnoexcept |
Definition at line 101 of file SpecsFlags.h.
References SWC::Serialization::encoded_length_vi32(), SWC::Serialization::encoded_length_vi64(), limit, max_buffer, max_versions, and offset.
Referenced by SWC::DB::Specs::Interval::encoded_length(), and SWC::DB::Specs::Scan::encoded_length().
|
inlineconstexprnoexcept |
Definition at line 90 of file SpecsFlags.h.
References limit, max_buffer, max_versions, offset, options, and was_set.
|
inlineconstexprnoexcept |
Definition at line 70 of file SpecsFlags.h.
References ONLY_DELETES, and options.
Referenced by display(), SWC::DB::Cells::Mutable::scan_test_use(), SWC::DB::Cells::Mutable::scan_version_multi(), and SWC::DB::Cells::Mutable::scan_version_single().
|
inlineconstexprnoexcept |
Definition at line 65 of file SpecsFlags.h.
References ONLY_KEYS, and options.
Referenced by display(), and SWC::Ranger::Callback::RangeQuerySelect::response().
void SWC::DB::Specs::Flags::print | ( | std::ostream & | out | ) | const |
Definition at line 15 of file SpecsFlags.cc.
References display().
Referenced by SWC::DB::Specs::Interval::print(), SWC::DB::Specs::Scan::print(), and to_string().
|
inlineconstexprnoexcept |
Definition at line 80 of file SpecsFlags.h.
References ONLY_DELETES, and options.
|
inlineconstexprnoexcept |
Definition at line 75 of file SpecsFlags.h.
References ONLY_KEYS, and options.
Referenced by SWC::DB::RgrData::remove().
|
inline |
Definition at line 128 of file SpecsFlags.h.
References print().
uint64_t SWC::DB::Specs::Flags::limit |
Definition at line 142 of file SpecsFlags.h.
Referenced by SWC::client::Query::Select::Handlers::BaseSingleColumn::add_cells(), SWC::client::Query::Select::Handlers::BaseUnorderedMap::Rsp::add_cells(), copy(), decode(), display(), encode(), encoded_length(), equal(), SWC::DB::Cells::ReqScanTest::reached_limits(), SWC::Ranger::Callback::RangeQuerySelect::reached_limits(), SWC::Ranger::ReqScanTest::reached_limits(), SWC::DB::RgrData::BaseSelector::scan(), SWC::DB::Cells::Mutable::scan_test_use(), SWC::Utils::LoadGenerator::select_data(), and SWC::Thrift::Converter::set().
|
staticconstexpr |
Definition at line 22 of file SpecsFlags.h.
|
staticconstexpr |
Definition at line 27 of file SpecsFlags.h.
Referenced by clear_only_deletes().
uint32_t SWC::DB::Specs::Flags::max_buffer |
Definition at line 144 of file SpecsFlags.h.
Referenced by copy(), decode(), display(), encode(), encoded_length(), SWC::Ranger::Callback::RangeQuerySelect::ensure_size(), equal(), SWC::Ranger::Callback::RangeQuerySelect::RangeQuerySelect(), SWC::DB::Cells::ReqScanTest::reached_limits(), SWC::Ranger::Callback::RangeQuerySelect::reached_limits(), SWC::Ranger::ReqScanTest::reached_limits(), and SWC::Thrift::Converter::set().
uint32_t SWC::DB::Specs::Flags::max_versions |
Definition at line 143 of file SpecsFlags.h.
Referenced by SWC::Ranger::CompactRange::CompactRange(), copy(), SWC::Ranger::CompactRange::create_cs(), decode(), display(), encode(), encoded_length(), equal(), SWC::Ranger::Callback::RangeQuerySelect::RangeQuerySelect(), SWC::DB::Cells::Mutable::scan_version_multi(), and SWC::Thrift::Converter::set().
|
staticconstexpr |
Definition at line 21 of file SpecsFlags.h.
uint64_t SWC::DB::Specs::Flags::offset |
Definition at line 142 of file SpecsFlags.h.
Referenced by SWC::Comm::Protocol::Bkr::Handler::Selector::add_cells(), copy(), decode(), display(), encode(), encoded_length(), equal(), SWC::client::Query::Select::Scanner::rgr_selected(), SWC::DB::Cells::Mutable::scan_test_use(), SWC::client::Query::Select::BrokerScanner::selected(), and SWC::Thrift::Converter::set().
|
staticconstexpr |
Definition at line 23 of file SpecsFlags.h.
|
staticconstexpr |
Definition at line 25 of file SpecsFlags.h.
Referenced by is_only_deletes(), and set_only_deletes().
|
staticconstexpr |
Definition at line 24 of file SpecsFlags.h.
Referenced by is_only_keys(), and set_only_keys().
uint8_t SWC::DB::Specs::Flags::options |
Definition at line 145 of file SpecsFlags.h.
Referenced by clear_only_deletes(), copy(), decode(), encode(), equal(), is_only_deletes(), is_only_keys(), SWC::Thrift::Converter::set(), set_only_deletes(), and set_only_keys().
bool SWC::DB::Specs::Flags::was_set |
Definition at line 146 of file SpecsFlags.h.
Referenced by copy(), display(), equal(), and SWC::client::SQL::QuerySelect::parse_select().