SWC-DB  v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
SWC::DB::Cells::Cell Class Referencefinal

#include <swcdb/db/Cells/Cell.h>

+ Collaboration diagram for SWC::DB::Cells::Cell:

Public Types

typedef std::shared_ptr< CellPtr
 

Public Member Functions

constexpr SWC_CAN_INLINE Cell () noexcept
 
SWC_CAN_INLINE Cell (const Cell &other)
 
SWC_CAN_INLINE Cell (const Cell &other, bool no_value)
 
constexpr SWC_CAN_INLINE Cell (Cell &&other) noexcept
 
 Cell (const uint8_t **bufp, size_t *remainp, bool own)
 
Celloperator= (const Cell &)=delete
 
SWC_CAN_INLINE Celloperator= (Cell &&other) noexcept
 
void move (Cell &other) noexcept
 
void copy (const Cell &other, bool no_value=false)
 
SWC_CAN_INLINE ~Cell () noexcept
 
SWC_CAN_INLINE void _free () noexcept
 
SWC_CAN_INLINE void free () noexcept
 
constexpr SWC_CAN_INLINE void set_time_order_desc (bool desc) noexcept
 
constexpr SWC_CAN_INLINE bool is_time_order_desc () const noexcept
 
constexpr SWC_CAN_INLINE void set_timestamp (int64_t ts) noexcept
 
constexpr SWC_CAN_INLINE void set_timestamp_null () noexcept
 
constexpr SWC_CAN_INLINE void set_timestamp_auto () noexcept
 
constexpr SWC_CAN_INLINE void set_timestamp_with_rev_is_ts (int64_t ts) noexcept
 
constexpr SWC_CAN_INLINE void set_revision (int64_t ts) noexcept
 
SWC_CAN_INLINE void set_value (uint8_t *v, uint32_t len, bool owner)
 
SWC_CAN_INLINE void set_value (const char *v, uint32_t len, bool owner)
 
SWC_CAN_INLINE void set_value (const char *v, bool owner)
 
SWC_CAN_INLINE void set_value (const std::string &v, bool owner)
 
void set_value (Types::Encoder encoder, const uint8_t *v, uint32_t len)
 
SWC_CAN_INLINE void set_value (Types::Encoder encoder, const std::string &v)
 
Types::Encoder get_value (StaticBuffer &v, bool owner) const
 
void get_value (std::string &v) const
 
void set_counter (uint8_t op, int64_t v, Types::Column typ=Types::Column::COUNTER_I64, int64_t rev=TIMESTAMP_NULL)
 
constexpr SWC_CAN_INLINE int64_t get_counter () const
 
constexpr SWC_CAN_INLINE uint8_t get_counter (int64_t &count) const
 
constexpr SWC_CAN_INLINE int64_t get_counter (uint8_t &op, int64_t &rev) const
 
void read (const uint8_t **bufp, size_t *remainp, bool owner)
 
constexpr SWC_CAN_INLINE size_t encoded_length (bool no_value=false) const noexcept
 
void write (DynamicBuffer &dst_buf, bool no_value=false) const
 
bool SWC_PURE_FUNC equal (const Cell &other) const noexcept
 
constexpr SWC_CAN_INLINE bool removal () const noexcept
 
constexpr SWC_CAN_INLINE bool is_removing (const int64_t &ts) const noexcept
 
constexpr SWC_CAN_INLINE int64_t get_timestamp () const noexcept
 
constexpr SWC_CAN_INLINE int64_t get_revision () const noexcept
 
SWC_CAN_INLINE bool has_expired (const int64_t ttl) const noexcept
 
constexpr SWC_CAN_INLINE bool have_encoder () const noexcept
 
void display (std::ostream &out, Types::Column typ=Types::Column::PLAIN, uint8_t flags=0, bool meta=false) const
 
SWC_CAN_INLINE std::string to_string (Types::Column typ=Types::Column::PLAIN) const
 
void print (std::ostream &out, Types::Column typ) const
 

Static Public Member Functions

static int counter_from_str (const uint8_t **ptrp, size_t *remainp, uint8_t &op, int64_t &value) noexcept
 

Public Attributes

DB::Cell::Key key
 
bool own
 
uint8_t flag
 
uint8_t control
 
uint32_t vlen
 
uint8_t * value
 

Private Member Functions

SWC_CAN_INLINE uint8_t * _value (const uint8_t *v)
 

Private Attributes

int64_t timestamp
 
int64_t revision
 

Detailed Description

Definition at line 92 of file Cell.h.

Member Typedef Documentation

◆ Ptr

typedef std::shared_ptr<Cell> SWC::DB::Cells::Cell::Ptr

Definition at line 94 of file Cell.h.

Constructor & Destructor Documentation

◆ Cell() [1/5]

constexpr SWC_CAN_INLINE SWC::DB::Cells::Cell::Cell ( )
inlineexplicitconstexprnoexcept

Definition at line 97 of file Cell.h.

◆ Cell() [2/5]

SWC_CAN_INLINE SWC::DB::Cells::Cell::Cell ( const Cell other)
inlineexplicit

Definition at line 104 of file Cell.h.

◆ Cell() [3/5]

SWC_CAN_INLINE SWC::DB::Cells::Cell::Cell ( const Cell other,
bool  no_value 
)
inlineexplicit

Definition at line 114 of file Cell.h.

◆ Cell() [4/5]

constexpr SWC_CAN_INLINE SWC::DB::Cells::Cell::Cell ( Cell &&  other)
inlineexplicitconstexprnoexcept

Definition at line 124 of file Cell.h.

◆ Cell() [5/5]

SWC_CAN_INLINE SWC::DB::Cells::Cell::Cell ( const uint8_t **  bufp,
size_t *  remainp,
bool  own 
)
explicit

◆ ~Cell()

SWC_CAN_INLINE SWC::DB::Cells::Cell::~Cell ( )
inlinenoexcept

Definition at line 151 of file Cell.h.

References _free().

+ Here is the call graph for this function:

Member Function Documentation

◆ _free()

SWC_CAN_INLINE void SWC::DB::Cells::Cell::_free ( )
inlinenoexcept

Definition at line 156 of file Cell.h.

References own, and value.

Referenced by free(), read(), set_counter(), set_value(), and ~Cell().

+ Here is the caller graph for this function:

◆ _value()

SWC_CAN_INLINE uint8_t* SWC::DB::Cells::Cell::_value ( const uint8_t *  v)
inlineprivate

Definition at line 367 of file Cell.h.

References vlen.

Referenced by Cell(), read(), and set_value().

+ Here is the caller graph for this function:

◆ copy()

SWC_CAN_INLINE void SWC::DB::Cells::Cell::copy ( const Cell other,
bool  no_value = false 
)

Definition at line 424 of file Cell.h.

References control, SWC::DB::Cell::Key::copy(), flag, free(), key, SWC::DB::Cells::MASK_HAVE_ENCODER, revision, set_value(), timestamp, value, and vlen.

Referenced by SWC::DB::Cells::Mutable::_adjust_copy().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ counter_from_str()

SWC_CAN_INLINE int SWC::DB::Cells::Cell::counter_from_str ( const uint8_t **  ptrp,
size_t *  remainp,
uint8_t &  op,
int64_t &  value 
)
staticnoexcept

Definition at line 540 of file Cell.h.

References SWC::Error::OK, and SWC::DB::Cells::OP_EQUAL.

Referenced by SWC::client::SQL::Reader::read_ts_and_value().

+ Here is the caller graph for this function:

◆ display()

◆ encoded_length()

constexpr SWC_CAN_INLINE size_t SWC::DB::Cells::Cell::encoded_length ( bool  no_value = false) const
inlineconstexprnoexcept

Definition at line 285 of file Cell.h.

References control, SWC::DB::Cell::Key::encoded_length(), SWC::Serialization::encoded_length_vi32(), SWC::DB::Cells::HAVE_REVISION, SWC::DB::Cells::HAVE_TIMESTAMP, key, and vlen.

Referenced by SWC::DB::Cells::Mutable::_adjust_copy(), SWC::DB::Cells::Result::add(), SWC::Ranger::Callback::RangeLocateScan::add_cell_and_more(), SWC::DB::Cells::TSV::FileReader::read(), SWC::DB::Cells::Result::takeout_begin(), SWC::DB::Cells::Result::takeout_end(), SWC::Utils::LoadGenerator::update_data(), and write().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ equal()

bool SWC::DB::Cells::Cell::equal ( const Cell other) const
noexcept

Definition at line 100 of file Cell.cc.

References SWC::DB::Cells::HAVE_REVISION, SWC::DB::Cells::HAVE_TIMESTAMP, and SWC::Condition::mem_eq().

+ Here is the call graph for this function:

◆ free()

SWC_CAN_INLINE void SWC::DB::Cells::Cell::free ( )
inlinenoexcept

Definition at line 162 of file Cell.h.

References _free(), value, and vlen.

Referenced by copy(), and SWC::Ranger::Range::on_change().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_counter() [1/3]

constexpr SWC_CAN_INLINE int64_t SWC::DB::Cells::Cell::get_counter ( ) const
inlineconstexpr

Definition at line 260 of file Cell.h.

References SWC::Serialization::decode_vi64(), and value.

Referenced by SWC::DB::Cells::Mutable::_add_counter(), SWC::DB::Cells::Mutable::_finalize_counter(), display(), SWC::DB::Specs::Value::is_matching_counter(), print(), and SWC::DB::Cells::TSV::FileWriter::write().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_counter() [2/3]

constexpr SWC_CAN_INLINE uint8_t SWC::DB::Cells::Cell::get_counter ( int64_t &  count) const
inlineconstexpr

Definition at line 266 of file Cell.h.

References SWC::Serialization::decode_vi64(), and value.

+ Here is the call graph for this function:

◆ get_counter() [3/3]

constexpr SWC_CAN_INLINE int64_t SWC::DB::Cells::Cell::get_counter ( uint8_t &  op,
int64_t &  rev 
) const
inlineconstexpr

Definition at line 273 of file Cell.h.

References SWC::Serialization::decode_vi64(), SWC::DB::Cells::HAVE_REVISION, SWC::DB::Cells::TIMESTAMP_NULL, and value.

+ Here is the call graph for this function:

◆ get_revision()

constexpr SWC_CAN_INLINE int64_t SWC::DB::Cells::Cell::get_revision ( ) const
inlineconstexprnoexcept

Definition at line 322 of file Cell.h.

References revision.

Referenced by SWC::DB::Cells::Mutable::_add_counter(), SWC::DB::Cells::Mutable::_add_plain_version_multi(), SWC::DB::Cells::Mutable::_add_plain_version_single(), SWC::DB::Cells::Mutable::_add_remove(), SWC::DB::Cells::Mutable::_add_unfinalized(), SWC::DB::Cells::Mutable::_finalize_counter(), and print().

+ Here is the caller graph for this function:

◆ get_timestamp()

◆ get_value() [1/2]

Types::Encoder SWC::DB::Cells::Cell::get_value ( StaticBuffer v,
bool  owner 
) const

Definition at line 77 of file Cell.cc.

References SWC::Core::Buffer< T >::base, SWC::Core::Encoder::decode(), SWC::Serialization::decode_i8(), SWC::Serialization::decode_vi32(), SWC::Core::Encoder::DEFAULT, encoder, SWC::Error::ENCODER_DECODE, SWC::Core::Buffer< T >::free(), have_encoder(), key, SWC::Error::OK, SWC::Core::Buffer< T >::reallocate(), SWC::Core::Buffer< T >::set(), SWC::Core::Buffer< T >::size, SWC_THROWF, SWC::DB::Cell::Key::to_string(), SWC::Core::Encoder::to_string(), value, and vlen.

Referenced by display(), get_value(), SWC::DB::Specs::IntervalUpdate::IntervalUpdate(), SWC::DB::Specs::Serial::Value::Fields::is_matching(), SWC::DB::Specs::Value::is_matching_plain(), SWC::DB::Specs::IntervalUpdate::operator=(), print(), SWC::Ranger::Callback::RangeLocateScan::selector(), SWC::Ranger::Callback::RangeLocateScanCommit::selector(), SWC::Thrift::Converter::set(), SWC::Utils::shell::Statistics::StatsDefinition::StatsDefinition(), SWC::Ranger::Callback::RangeQuerySelectUpdating_Append::update_cell_value(), SWC::Ranger::Callback::RangeQuerySelectUpdating_Insert::update_cell_value(), SWC::Ranger::Callback::RangeQuerySelectUpdating_Overwrite::update_cell_value(), SWC::Ranger::Callback::RangeQuerySelectUpdating_Prepend::update_cell_value(), SWC::Ranger::Callback::RangeQuerySelectUpdating_Serial::update_cell_value(), and SWC::DB::Cells::TSV::FileWriter::write().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_value() [2/2]

SWC_CAN_INLINE void SWC::DB::Cells::Cell::get_value ( std::string &  v) const

Definition at line 440 of file Cell.h.

References SWC::Core::Buffer< T >::base, get_value(), SWC::Core::Buffer< T >::size, and vlen.

+ Here is the call graph for this function:

◆ has_expired()

SWC_CAN_INLINE bool SWC::DB::Cells::Cell::has_expired ( const int64_t  ttl) const
inlinenoexcept

Definition at line 327 of file Cell.h.

References control, SWC::DB::Cells::HAVE_TIMESTAMP, SWC::Time::now_ns(), and timestamp.

Referenced by SWC::DB::Cells::Mutable::scan_after(), SWC::DB::Cells::Mutable::scan_test_use(), SWC::DB::Cells::Mutable::scan_version_multi(), and SWC::DB::Cells::Mutable::scan_version_single().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ have_encoder()

constexpr SWC_CAN_INLINE bool SWC::DB::Cells::Cell::have_encoder ( ) const
inlineconstexprnoexcept

Definition at line 334 of file Cell.h.

References control, and SWC::DB::Cells::HAVE_ENCODER.

Referenced by get_value(), print(), and SWC::DB::Cells::TSV::FileWriter::write().

+ Here is the caller graph for this function:

◆ is_removing()

constexpr SWC_CAN_INLINE bool SWC::DB::Cells::Cell::is_removing ( const int64_t &  ts) const
inlineconstexprnoexcept

Definition at line 308 of file Cell.h.

References SWC::DB::Cells::DELETE_EQ, SWC::DB::Cells::DELETE_LE, flag, timestamp, and SWC::DB::Cells::TIMESTAMP_AUTO.

Referenced by SWC::DB::Cells::Mutable::_add_remove().

+ Here is the caller graph for this function:

◆ is_time_order_desc()

constexpr SWC_CAN_INLINE bool SWC::DB::Cells::Cell::is_time_order_desc ( ) const
inlineconstexprnoexcept

Definition at line 177 of file Cell.h.

References control, and SWC::DB::Cells::TS_DESC.

Referenced by SWC::DB::Cells::Mutable::_add_plain_version_multi(), SWC::DB::Specs::Interval::is_matching(), SWC::DB::Cells::Mutable::scan_version_multi(), SWC::Ranger::CompactRange::selector(), and SWC::DB::Cells::TSV::FileWriter::write().

+ Here is the caller graph for this function:

◆ move()

SWC_CAN_INLINE void SWC::DB::Cells::Cell::move ( Cell other)
noexcept

Definition at line 409 of file Cell.h.

Referenced by operator=().

+ Here is the caller graph for this function:

◆ operator=() [1/2]

SWC_CAN_INLINE Cell& SWC::DB::Cells::Cell::operator= ( Cell &&  other)
inlinenoexcept

Definition at line 141 of file Cell.h.

References move().

+ Here is the call graph for this function:

◆ operator=() [2/2]

Cell& SWC::DB::Cells::Cell::operator= ( const Cell )
delete

◆ print()

void SWC::DB::Cells::Cell::print ( std::ostream &  out,
Types::Column  typ 
) const

Definition at line 187 of file Cell.cc.

References SWC::Core::Buffer< T >::base, control, SWC::DB::Cell::Serial::Value::Fields::display(), flag, SWC::Time::fmt_ns(), get_counter(), get_revision(), get_timestamp(), get_value(), have_encoder(), SWC::DB::Cells::HAVE_REVISION, SWC::DB::Cells::INSERT, SWC::DB::Types::is_counter(), key, SWC::DB::Cells::OP_EQUAL, SWC::DB::Cell::Key::print(), SWC::DB::Types::SERIAL, SWC::Core::Buffer< T >::size, SWC::DB::Cells::TIMESTAMP_NULL, SWC::DB::Cells::to_string(), and vlen.

Referenced by SWC::DB::Cells::MutableVec::check_sequence(), and to_string().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ read()

SWC_CAN_INLINE void SWC::DB::Cells::Cell::read ( const uint8_t **  bufp,
size_t *  remainp,
bool  owner 
)

Definition at line 484 of file Cell.h.

References _free(), _value(), control, SWC::DB::Cell::Key::decode(), SWC::Serialization::decode_i64(), SWC::Serialization::decode_i8(), SWC::Serialization::decode_vi32(), flag, SWC::DB::Cells::HAVE_REVISION, SWC::DB::Cells::HAVE_TIMESTAMP, key, own, SWC::DB::Cells::REV_IS_TS, revision, SWC::Error::SERIALIZATION_INPUT_OVERRUN, SWC_THROWF, timestamp, SWC::DB::Cells::TIMESTAMP_AUTO, SWC::DB::Cell::Key::to_string(), value, and vlen.

Referenced by SWC::Ranger::CompactRange::InBlock::finalize_interval().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removal()

constexpr SWC_CAN_INLINE bool SWC::DB::Cells::Cell::removal ( ) const
inlineconstexprnoexcept

Definition at line 303 of file Cell.h.

References flag, and SWC::DB::Cells::INSERT.

Referenced by SWC::DB::Cells::Mutable::add_raw().

+ Here is the caller graph for this function:

◆ set_counter()

SWC_CAN_INLINE void SWC::DB::Cells::Cell::set_counter ( uint8_t  op,
int64_t  v,
Types::Column  typ = Types::Column::COUNTER_I64,
int64_t  rev = TIMESTAMP_NULL 
)

Definition at line 450 of file Cell.h.

References _free(), SWC::Serialization::encode_vi64(), SWC::Serialization::encoded_length_vi64(), SWC::DB::Cells::HAVE_REVISION, SWC::DB::Cells::OP_EQUAL, own, SWC::DB::Cells::TIMESTAMP_NULL, value, and vlen.

Referenced by SWC::DB::Cells::Mutable::_add_counter(), SWC::DB::Cells::Mutable::_finalize_counter(), SWC::DB::Cells::TSV::FileReader::read(), SWC::client::SQL::Reader::read_ts_and_value(), SWC::Thrift::Converter::set(), SWC::ThriftBroker::AppHandler::set(), and SWC::Utils::LoadGenerator::update_data().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ set_revision()

constexpr SWC_CAN_INLINE void SWC::DB::Cells::Cell::set_revision ( int64_t  ts)
inlineconstexprnoexcept

Definition at line 216 of file Cell.h.

References control, SWC::DB::Cells::HAVE_REVISION, SWC::DB::Cells::MASK_REV_IS_TS, and revision.

Referenced by SWC::DB::Cells::Mutable::_finalize_counter().

+ Here is the caller graph for this function:

◆ set_time_order_desc()

constexpr SWC_CAN_INLINE void SWC::DB::Cells::Cell::set_time_order_desc ( bool  desc)
inlineconstexprnoexcept

◆ set_timestamp()

◆ set_timestamp_auto()

constexpr SWC_CAN_INLINE void SWC::DB::Cells::Cell::set_timestamp_auto ( )
inlineconstexprnoexcept

Definition at line 198 of file Cell.h.

References control, SWC::DB::Cells::MASK_HAVE_TIMESTAMP, SWC::DB::Cells::MASK_REV_IS_TS, SWC::DB::Cells::REV_IS_TS, revision, timestamp, and SWC::DB::Cells::TIMESTAMP_AUTO.

Referenced by SWC::client::SQL::Reader::read_ts_and_value().

+ Here is the caller graph for this function:

◆ set_timestamp_null()

constexpr SWC_CAN_INLINE void SWC::DB::Cells::Cell::set_timestamp_null ( )
inlineconstexprnoexcept

Definition at line 188 of file Cell.h.

References control, SWC::DB::Cells::MASK_HAVE_TIMESTAMP, SWC::DB::Cells::MASK_REV_IS_TS, SWC::DB::Cells::REV_IS_TS, revision, timestamp, SWC::DB::Cells::TIMESTAMP_AUTO, and SWC::DB::Cells::TIMESTAMP_NULL.

Referenced by SWC::client::SQL::QuerySelect::read_update().

+ Here is the caller graph for this function:

◆ set_timestamp_with_rev_is_ts()

constexpr SWC_CAN_INLINE void SWC::DB::Cells::Cell::set_timestamp_with_rev_is_ts ( int64_t  ts)
inlineconstexprnoexcept

Definition at line 208 of file Cell.h.

References control, SWC::DB::Cells::MASK_HAVE_REVISION, SWC::DB::Cells::REV_IS_TS, revision, set_timestamp(), and timestamp.

Referenced by SWC::DB::Cells::Mutable::_finalize_counter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ set_value() [1/6]

SWC_CAN_INLINE void SWC::DB::Cells::Cell::set_value ( const char *  v,
bool  owner 
)
inline

Definition at line 235 of file Cell.h.

References set_value().

+ Here is the call graph for this function:

◆ set_value() [2/6]

SWC_CAN_INLINE void SWC::DB::Cells::Cell::set_value ( const char *  v,
uint32_t  len,
bool  owner 
)
inline

Definition at line 230 of file Cell.h.

References set_value().

+ Here is the call graph for this function:

◆ set_value() [3/6]

SWC_CAN_INLINE void SWC::DB::Cells::Cell::set_value ( const std::string &  v,
bool  owner 
)
inline

Definition at line 240 of file Cell.h.

References set_value().

+ Here is the call graph for this function:

◆ set_value() [4/6]

SWC_CAN_INLINE void SWC::DB::Cells::Cell::set_value ( Types::Encoder  encoder,
const std::string &  v 
)
inline

Definition at line 247 of file Cell.h.

References encoder, and set_value().

+ Here is the call graph for this function:

◆ set_value() [5/6]

void SWC::DB::Cells::Cell::set_value ( Types::Encoder  encoder,
const uint8_t *  v,
uint32_t  len 
)

Definition at line 48 of file Cell.cc.

References _free(), _value(), SWC::Core::Buffer< T >::base, control, SWC::Core::Encoder::encode(), SWC::Serialization::encode_i8(), SWC::Serialization::encode_vi32(), SWC::Serialization::encoded_length_vi32(), encoder, SWC::Core::BufferDyn< BufferT >::fill(), SWC::DB::Cells::HAVE_ENCODER, SWC::DB::Cells::MASK_HAVE_ENCODER, SWC::Error::OK, own, value, and vlen.

+ Here is the call graph for this function:

◆ set_value() [6/6]

SWC_CAN_INLINE void SWC::DB::Cells::Cell::set_value ( uint8_t *  v,
uint32_t  len,
bool  owner 
)
inline

Definition at line 223 of file Cell.h.

References _free(), _value(), own, value, and vlen.

Referenced by copy(), SWC::Common::Query::Update::Metric::Item_Net< SWC::Comm::Protocol::FsBroker::Commands >::definitions(), SWC::Common::Query::Update::Metric::Item_Mem::definitions(), SWC::Common::Query::Update::Metric::Item_CPU::definitions(), SWC::Common::Query::Update::Metric::Item_FS::definitions(), SWC::FsBroker::Metric::Item_Fds::definitions(), SWC::Ranger::Range::on_change(), SWC::client::SQL::Reader::read_ts_and_value(), SWC::Common::Query::Update::Metric::Item_Net< SWC::Comm::Protocol::FsBroker::Commands >::report(), SWC::Common::Query::Update::Metric::Item_Mem::report(), SWC::Common::Query::Update::Metric::Item_CPU::report(), SWC::Common::Query::Update::Metric::Item_FS::report(), SWC::client::Query::Update::Handlers::Metric::Item_MinMaxAvgCount::report(), SWC::client::Query::Update::Handlers::Metric::Item_Count::report(), SWC::client::Query::Update::Handlers::Metric::Item_Volume::report(), SWC::client::Query::Update::Handlers::Metric::Item_CountVolume::report(), SWC::ThriftBroker::AppHandler::set(), SWC::DB::RgrData::set_insert_cell(), set_value(), SWC::Ranger::Callback::RangeQuerySelectUpdating::update_cell_value(), SWC::Ranger::Callback::RangeQuerySelectUpdating_Append::update_cell_value(), SWC::Ranger::Callback::RangeQuerySelectUpdating_Insert::update_cell_value(), SWC::Ranger::Callback::RangeQuerySelectUpdating_Overwrite::update_cell_value(), SWC::Ranger::Callback::RangeQuerySelectUpdating_Prepend::update_cell_value(), SWC::Ranger::Callback::RangeQuerySelectUpdating_Serial::update_cell_value(), and SWC::Utils::LoadGenerator::update_data().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ to_string()

SWC_CAN_INLINE std::string SWC::DB::Cells::Cell::to_string ( Types::Column  typ = Types::Column::PLAIN) const
inline

Definition at line 342 of file Cell.h.

References print().

+ Here is the call graph for this function:

◆ write()

SWC_CAN_INLINE void SWC::DB::Cells::Cell::write ( DynamicBuffer dst_buf,
bool  no_value = false 
) const

Member Data Documentation

◆ control

◆ flag

uint8_t SWC::DB::Cells::Cell::flag

◆ key

DB::Cell::Key SWC::DB::Cells::Cell::key

Definition at line 357 of file Cell.h.

Referenced by SWC::DB::Cells::Mutable::_add_counter(), SWC::DB::Cells::Mutable::_add_plain_version_multi(), SWC::DB::Cells::Mutable::_add_plain_version_single(), SWC::DB::Cells::Mutable::_add_remove(), SWC::DB::Cells::Mutable::_add_unfinalized(), SWC::DB::Cells::Mutable::_finalize_counter(), SWC::Ranger::Block::_split(), SWC::Ranger::Callback::RangeLocateScan::add_cell_and_more(), SWC::Ranger::Block::add_logged(), SWC::Ranger::Blocks::add_logged(), SWC::DB::Cells::MutableVec::add_raw(), SWC::DB::Cells::Mutable::add_raw(), Cell(), SWC::DB::Cells::MutableVec::check_sequence(), SWC::DB::Cells::Mutable::configure(), copy(), SWC::Common::Query::Update::Metric::Item_Net< SWC::Comm::Protocol::FsBroker::Commands >::definitions(), SWC::Common::Query::Update::Metric::Item_Mem::definitions(), SWC::Common::Query::Update::Metric::Item_CPU::definitions(), SWC::Common::Query::Update::Metric::Item_FS::definitions(), SWC::FsBroker::Metric::Item_Fds::definitions(), display(), encoded_length(), SWC::DB::Cells::Interval::expand_begin(), SWC::DB::Cells::Interval::expand_end(), SWC::Ranger::CompactRange::InBlock::finalize_interval(), get_value(), SWC::DB::Cells::Mutable::has_one_key(), SWC::DB::Specs::Interval::is_matching(), SWC::Ranger::Range::on_change(), print(), SWC::DB::Cells::TSV::FileReader::read(), read(), SWC::client::SQL::QueryUpdate::read_cell(), SWC::Common::Query::Update::Metric::Item_Net< SWC::Comm::Protocol::FsBroker::Commands >::report(), SWC::Common::Query::Update::Metric::Item_Mem::report(), SWC::Common::Query::Update::Metric::Item_CPU::report(), SWC::Common::Query::Update::Metric::Item_FS::report(), SWC::client::Query::Update::Handlers::Metric::Item_MinMaxAvgCount::report(), SWC::client::Query::Update::Handlers::Metric::Item_Count::report(), SWC::client::Query::Update::Handlers::Metric::Item_Volume::report(), SWC::client::Query::Update::Handlers::Metric::Item_CountVolume::report(), SWC::DB::Cells::Mutable::scan_after(), SWC::DB::Cells::Mutable::scan_version_multi(), SWC::Ranger::Callback::RangeLocateScan::selector(), SWC::Ranger::Callback::RangeLocateScanCommit::selector(), SWC::Ranger::CompactRange::selector(), SWC::ThriftBroker::AppHandler::set(), SWC::DB::RgrData::set_delete_cell(), SWC::DB::RgrData::set_insert_cell(), SWC::Ranger::CompactRange::InBlock::set_offset(), SWC::Utils::shell::Statistics::StatsDefinition::StatsDefinition(), SWC::Utils::LoadGenerator::update_data(), SWC::DB::Cells::TSV::FileWriter::write(), write(), and SWC::DB::Cells::Mutable::write_and_free().

◆ own

◆ revision

int64_t SWC::DB::Cells::Cell::revision
private

◆ timestamp

int64_t SWC::DB::Cells::Cell::timestamp
private

◆ value

◆ vlen


The documentation for this class was generated from the following files: