#include <swcdb/db/Cells/CellValueSerialFields.h>
Public Member Functions | |
constexpr SWC_CAN_INLINE | FieldsWriter () noexcept |
~FieldsWriter () noexcept | |
SWC_CAN_INLINE void | add (Field *field) |
SWC_CAN_INLINE void | add (FieldUpdate *ufield) |
SWC_CAN_INLINE void | add (Field *field, FieldUpdate *ufield) |
void | add (uint24_t fid, const int64_t &value) |
void | add (uint24_t fid, const long double &value) |
void | add (uint24_t fid, const uint8_t *data, uint32_t len) |
void | add (uint24_t fid, const Key &key) |
void | add (uint24_t fid, const Core::Vector< int64_t > &items) |
void | add (uint24_t fid, const std::vector< int64_t > &items) |
void | add (uint24_t fid, const Core::Vector< std::string > &items) |
void | add (uint24_t fid, const std::vector< std::string > &items) |
SWC_CAN_INLINE void | add (const int64_t &value) |
SWC_CAN_INLINE void | add (const long double &value) |
SWC_CAN_INLINE void | add (const uint8_t *data, uint32_t len) |
SWC_CAN_INLINE void | add (const std::string &data) |
SWC_CAN_INLINE void | add (uint24_t fid, const std::string &data) |
SWC_CAN_INLINE void | add (const char *data, uint32_t len) |
SWC_CAN_INLINE void | add (uint24_t fid, const char *data, uint32_t len) |
SWC_CAN_INLINE void | add (const Key &key) |
SWC_CAN_INLINE void | add (const Core::Vector< int64_t > &items) |
SWC_CAN_INLINE void | add (const std::vector< int64_t > &items) |
SWC_CAN_INLINE void | add (const Core::Vector< std::string > &items) |
SWC_CAN_INLINE void | add (const std::vector< std::string > &items) |
void | print (std::ostream &out) const |
Public Member Functions inherited from SWC::Core::BufferDyn< StaticBuffer > | |
constexpr SWC_CAN_INLINE | BufferDyn () noexcept |
constexpr SWC_CAN_INLINE | BufferDyn (size_t sz) |
constexpr SWC_CAN_INLINE | BufferDyn (BufferDyn &&other) noexcept |
BufferDyn (const BufferDyn &)=delete | |
BufferDyn & | operator= (const BufferDyn &)=delete |
BufferDyn & | operator= (BufferDyn &&)=delete |
~BufferDyn () noexcept | |
SWC_CAN_INLINE void | free () |
constexpr value_type * | release (size_t *lenp) noexcept |
constexpr SWC_CAN_INLINE size_t | remaining () const noexcept |
constexpr SWC_CAN_INLINE size_t | fill () const noexcept |
constexpr SWC_CAN_INLINE bool | empty () const noexcept |
constexpr SWC_CAN_INLINE void | set_mark () noexcept |
constexpr SWC_CAN_INLINE void | clear () noexcept |
SWC_CAN_INLINE void | ensure (size_t len) |
SWC_CAN_INLINE value_type * | add_unchecked (const value_type *data, size_t len) noexcept |
value_type * | add (const value_type *data, size_t len) |
SWC_CAN_INLINE value_type * | add (const std::string &data) |
void | add (const value_type data) |
void | set (const value_type *data, size_t len) |
void | take_ownership (BufferDyn< StaticBuffer > &other) noexcept |
void | take_ownership (StaticBuffer &other) noexcept |
Public Member Functions inherited from SWC::Core::Buffer< T > | |
constexpr SWC_CAN_INLINE | Buffer () noexcept |
SWC_CAN_INLINE | Buffer (size_t sz) |
constexpr SWC_CAN_INLINE | Buffer (value_type *data, size_t sz, bool take_ownership) noexcept |
constexpr SWC_CAN_INLINE | Buffer (BufferT &other) noexcept |
constexpr SWC_CAN_INLINE | Buffer (BufferT &&other) noexcept |
template<typename OtherT > | |
constexpr | Buffer (OtherT &other) noexcept |
Buffer & | operator= (const Buffer &)=delete |
Buffer & | operator= (Buffer &&)=delete |
virtual SWC_CAN_INLINE | ~Buffer () noexcept |
SWC_CAN_INLINE void | _free () noexcept |
SWC_CAN_INLINE void | free () noexcept |
SWC_CAN_INLINE void | reallocate (size_t len) |
SWC_CAN_INLINE void | assign (const value_type *data, size_t len) |
void | set (value_type *data, size_t len, bool take_ownership) noexcept |
void | set (BufferT &other) noexcept |
template<typename OtherT > | |
void | set (OtherT &other) noexcept |
Public Attributes | |
uint24_t | index_count |
Public Attributes inherited from SWC::Core::BufferDyn< StaticBuffer > | |
value_type * | ptr |
value_type * | mark |
Public Attributes inherited from SWC::Core::Buffer< T > | |
bool | own |
size_t | size: 56 |
value_type * | base |
Additional Inherited Members | |
Public Types inherited from SWC::Core::BufferDyn< StaticBuffer > | |
using | value_type = typename BufferT::value_type |
typedef std::shared_ptr< BufferDyn > | Ptr |
Public Types inherited from SWC::Core::Buffer< T > | |
typedef T | value_type |
typedef Buffer< value_type > | BufferT |
typedef std::shared_ptr< BufferT > | Ptr |
Static Public Member Functions inherited from SWC::Core::Buffer< T > | |
static SWC_CAN_INLINE value_type * | allocate (size_t sz) |
Definition at line 34 of file CellValueSerialFields.h.
|
inlineconstexprnoexcept |
Definition at line 37 of file CellValueSerialFields.h.
|
inlinenoexcept |
Definition at line 39 of file CellValueSerialFields.h.
|
inline |
|
inline |
Definition at line 118 of file CellValueSerialFields.h.
References add(), and index_count.
|
inline |
Definition at line 128 of file CellValueSerialFields.h.
References add(), and index_count.
|
inline |
Definition at line 78 of file CellValueSerialFields.h.
References add(), and index_count.
|
inline |
Definition at line 113 of file CellValueSerialFields.h.
References add(), and index_count.
|
inline |
Definition at line 83 of file CellValueSerialFields.h.
References add(), and index_count.
|
inline |
|
inline |
Definition at line 123 of file CellValueSerialFields.h.
References add(), and index_count.
|
inline |
Definition at line 133 of file CellValueSerialFields.h.
References add(), and index_count.
|
inline |
Definition at line 88 of file CellValueSerialFields.h.
References add(), data, and index_count.
|
inline |
Definition at line 42 of file CellValueSerialFields.h.
References SWC::DB::Cell::Serial::Value::Field::encode(), SWC::DB::Cell::Serial::Value::Field::encoded_length(), SWC::Core::BufferDyn< StaticBuffer >::ensure(), and SWC::Core::BufferDyn< StaticBuffer >::ptr.
Referenced by add(), 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_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::Thrift::Converter::set(), SWC::Ranger::Callback::RangeQuerySelectUpdating_Serial::update_cell_value(), and SWC::Utils::LoadGenerator::update_data().
|
inline |
Definition at line 54 of file CellValueSerialFields.h.
References SWC::DB::Cell::Serial::Value::FieldUpdate::encode(), SWC::DB::Cell::Serial::Value::Field::encode(), SWC::DB::Cell::Serial::Value::Field::encoded_length(), SWC::DB::Cell::Serial::Value::FieldUpdate::encoded_length(), SWC::Core::BufferDyn< StaticBuffer >::ensure(), and SWC::Core::BufferDyn< StaticBuffer >::ptr.
|
inline |
Definition at line 48 of file CellValueSerialFields.h.
References SWC::DB::Cell::Serial::Value::FieldUpdate::encode(), SWC::DB::Cell::Serial::Value::FieldUpdate::encoded_length(), SWC::Core::BufferDyn< StaticBuffer >::ensure(), and SWC::Core::BufferDyn< StaticBuffer >::ptr.
|
inline |
void SWC::DB::Cell::Serial::Value::FieldsWriter::add | ( | uint24_t | fid, |
const Core::Vector< int64_t > & | items | ||
) |
Definition at line 37 of file CellValueSerialFields.cc.
References SWC::DB::Cell::Serial::Value::Field_LIST_INT64::write().
void SWC::DB::Cell::Serial::Value::FieldsWriter::add | ( | uint24_t | fid, |
const Core::Vector< std::string > & | items | ||
) |
Definition at line 47 of file CellValueSerialFields.cc.
References SWC::DB::Cell::Serial::Value::Field_LIST_BYTES::write().
void SWC::DB::Cell::Serial::Value::FieldsWriter::add | ( | uint24_t | fid, |
const int64_t & | value | ||
) |
Definition at line 17 of file CellValueSerialFields.cc.
References add().
Definition at line 32 of file CellValueSerialFields.cc.
References add().
void SWC::DB::Cell::Serial::Value::FieldsWriter::add | ( | uint24_t | fid, |
const long double & | value | ||
) |
Definition at line 22 of file CellValueSerialFields.cc.
References add().
|
inline |
void SWC::DB::Cell::Serial::Value::FieldsWriter::add | ( | uint24_t | fid, |
const std::vector< int64_t > & | items | ||
) |
Definition at line 42 of file CellValueSerialFields.cc.
References SWC::DB::Cell::Serial::Value::Field_LIST_INT64::write().
void SWC::DB::Cell::Serial::Value::FieldsWriter::add | ( | uint24_t | fid, |
const std::vector< std::string > & | items | ||
) |
Definition at line 52 of file CellValueSerialFields.cc.
References SWC::DB::Cell::Serial::Value::Field_LIST_BYTES::write().
void SWC::DB::Cell::Serial::Value::FieldsWriter::add | ( | uint24_t | fid, |
const uint8_t * | data, | ||
uint32_t | len | ||
) |
void SWC::DB::Cell::Serial::Value::FieldsWriter::print | ( | std::ostream & | out | ) | const |
Definition at line 57 of file CellValueSerialFields.cc.
References SWC::Core::Buffer< T >::base, SWC::Core::BufferDyn< StaticBuffer >::fill(), and SWC::DB::Cell::Serial::Value::Fields::print().
uint24_t SWC::DB::Cell::Serial::Value::FieldsWriter::index_count |
Definition at line 139 of file CellValueSerialFields.h.
Referenced by add().