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::Cell::Serial::Value::FieldsWriter Struct Referencefinal

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

+ Inheritance diagram for SWC::DB::Cell::Serial::Value::FieldsWriter:
+ Collaboration diagram for SWC::DB::Cell::Serial::Value::FieldsWriter:

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
 
BufferDynoperator= (const BufferDyn &)=delete
 
BufferDynoperator= (BufferDyn &&)=delete
 
 ~BufferDyn () noexcept
 
SWC_CAN_INLINE void free ()
 
constexpr value_typerelease (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_typeadd_unchecked (const value_type *data, size_t len) noexcept
 
value_typeadd (const value_type *data, size_t len)
 
SWC_CAN_INLINE value_typeadd (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
 
Bufferoperator= (const Buffer &)=delete
 
Bufferoperator= (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_typeptr
 
value_typemark
 
- Public Attributes inherited from SWC::Core::Buffer< T >
bool own
 
size_t size: 56
 
value_typebase
 

Additional Inherited Members

- Public Types inherited from SWC::Core::BufferDyn< StaticBuffer >
using value_type = typename BufferT::value_type
 
typedef std::shared_ptr< BufferDynPtr
 
- Public Types inherited from SWC::Core::Buffer< T >
typedef T value_type
 
typedef Buffer< value_typeBufferT
 
typedef std::shared_ptr< BufferTPtr
 
- Static Public Member Functions inherited from SWC::Core::Buffer< T >
static SWC_CAN_INLINE value_typeallocate (size_t sz)
 

Detailed Description

Definition at line 34 of file CellValueSerialFields.h.

Constructor & Destructor Documentation

◆ FieldsWriter()

constexpr SWC_CAN_INLINE SWC::DB::Cell::Serial::Value::FieldsWriter::FieldsWriter ( )
inlineconstexprnoexcept

Definition at line 37 of file CellValueSerialFields.h.

◆ ~FieldsWriter()

SWC::DB::Cell::Serial::Value::FieldsWriter::~FieldsWriter ( )
inlinenoexcept

Definition at line 39 of file CellValueSerialFields.h.

Member Function Documentation

◆ add() [1/23]

SWC_CAN_INLINE void SWC::DB::Cell::Serial::Value::FieldsWriter::add ( const char *  data,
uint32_t  len 
)
inline

Definition at line 103 of file CellValueSerialFields.h.

References add(), and data.

+ Here is the call graph for this function:

◆ add() [2/23]

SWC_CAN_INLINE void SWC::DB::Cell::Serial::Value::FieldsWriter::add ( const Core::Vector< int64_t > &  items)
inline

Definition at line 118 of file CellValueSerialFields.h.

References add(), and index_count.

+ Here is the call graph for this function:

◆ add() [3/23]

SWC_CAN_INLINE void SWC::DB::Cell::Serial::Value::FieldsWriter::add ( const Core::Vector< std::string > &  items)
inline

Definition at line 128 of file CellValueSerialFields.h.

References add(), and index_count.

+ Here is the call graph for this function:

◆ add() [4/23]

SWC_CAN_INLINE void SWC::DB::Cell::Serial::Value::FieldsWriter::add ( const int64_t &  value)
inline

Definition at line 78 of file CellValueSerialFields.h.

References add(), and index_count.

+ Here is the call graph for this function:

◆ add() [5/23]

SWC_CAN_INLINE void SWC::DB::Cell::Serial::Value::FieldsWriter::add ( const Key key)
inline

Definition at line 113 of file CellValueSerialFields.h.

References add(), and index_count.

+ Here is the call graph for this function:

◆ add() [6/23]

SWC_CAN_INLINE void SWC::DB::Cell::Serial::Value::FieldsWriter::add ( const long double &  value)
inline

Definition at line 83 of file CellValueSerialFields.h.

References add(), and index_count.

+ Here is the call graph for this function:

◆ add() [7/23]

SWC_CAN_INLINE void SWC::DB::Cell::Serial::Value::FieldsWriter::add ( const std::string &  data)
inline

Definition at line 93 of file CellValueSerialFields.h.

References add(), and data.

+ Here is the call graph for this function:

◆ add() [8/23]

SWC_CAN_INLINE void SWC::DB::Cell::Serial::Value::FieldsWriter::add ( const std::vector< int64_t > &  items)
inline

Definition at line 123 of file CellValueSerialFields.h.

References add(), and index_count.

+ Here is the call graph for this function:

◆ add() [9/23]

SWC_CAN_INLINE void SWC::DB::Cell::Serial::Value::FieldsWriter::add ( const std::vector< std::string > &  items)
inline

Definition at line 133 of file CellValueSerialFields.h.

References add(), and index_count.

+ Here is the call graph for this function:

◆ add() [10/23]

SWC_CAN_INLINE void SWC::DB::Cell::Serial::Value::FieldsWriter::add ( const uint8_t *  data,
uint32_t  len 
)
inline

Definition at line 88 of file CellValueSerialFields.h.

References add(), data, and index_count.

+ Here is the call graph for this function:

◆ add() [11/23]

SWC_CAN_INLINE void SWC::DB::Cell::Serial::Value::FieldsWriter::add ( Field field)
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().

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

◆ add() [12/23]

SWC_CAN_INLINE void SWC::DB::Cell::Serial::Value::FieldsWriter::add ( Field field,
FieldUpdate ufield 
)
inline

◆ add() [13/23]

SWC_CAN_INLINE void SWC::DB::Cell::Serial::Value::FieldsWriter::add ( FieldUpdate ufield)
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.

+ Here is the call graph for this function:

◆ add() [14/23]

SWC_CAN_INLINE void SWC::DB::Cell::Serial::Value::FieldsWriter::add ( uint24_t  fid,
const char *  data,
uint32_t  len 
)
inline

Definition at line 108 of file CellValueSerialFields.h.

References add(), and data.

+ Here is the call graph for this function:

◆ add() [15/23]

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().

+ Here is the call graph for this function:

◆ add() [16/23]

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().

+ Here is the call graph for this function:

◆ add() [17/23]

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().

+ Here is the call graph for this function:

◆ add() [18/23]

void SWC::DB::Cell::Serial::Value::FieldsWriter::add ( uint24_t  fid,
const Key key 
)

Definition at line 32 of file CellValueSerialFields.cc.

References add().

+ Here is the call graph for this function:

◆ add() [19/23]

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().

+ Here is the call graph for this function:

◆ add() [20/23]

SWC_CAN_INLINE void SWC::DB::Cell::Serial::Value::FieldsWriter::add ( uint24_t  fid,
const std::string &  data 
)
inline

Definition at line 98 of file CellValueSerialFields.h.

References add(), and data.

+ Here is the call graph for this function:

◆ add() [21/23]

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().

+ Here is the call graph for this function:

◆ add() [22/23]

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().

+ Here is the call graph for this function:

◆ add() [23/23]

void SWC::DB::Cell::Serial::Value::FieldsWriter::add ( uint24_t  fid,
const uint8_t *  data,
uint32_t  len 
)

Definition at line 27 of file CellValueSerialFields.cc.

References add(), and data.

+ Here is the call graph for this function:

◆ print()

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().

+ Here is the call graph for this function:

Member Data Documentation

◆ index_count

uint24_t SWC::DB::Cell::Serial::Value::FieldsWriter::index_count

Definition at line 139 of file CellValueSerialFields.h.

Referenced by add().


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