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::Specs::Serial::Value::Fields Struct Reference

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

+ Collaboration diagram for SWC::DB::Specs::Serial::Value::Fields:

Public Member Functions

SWC_CAN_INLINE Fields () noexcept
 
 Fields (const uint8_t *ptr, size_t len, bool own)
 
 ~Fields () noexcept
 
bool SWC_PURE_FUNC has_field_id (uint24_t fid) const noexcept
 
void add (Field::Ptr &&field)
 
size_t encoded_length () const noexcept
 
void encode (Specs::Value &value) const
 
void encode (uint8_t **bufp) const
 
bool is_matching (const Cells::Cell &cell)
 
SWC_CAN_INLINE std::string to_string () const
 
void print (std::ostream &out) const
 

Public Attributes

Core::Vector< Field::Ptrfields
 
Core::Vector< Field * > _fields_ptr
 

Detailed Description

Definition at line 335 of file SpecsValueSerialFields.h.

Constructor & Destructor Documentation

◆ Fields() [1/2]

SWC_CAN_INLINE SWC::DB::Specs::Serial::Value::Fields::Fields ( )
inlinenoexcept

Definition at line 338 of file SpecsValueSerialFields.h.

◆ Fields() [2/2]

SWC::DB::Specs::Serial::Value::Fields::Fields ( const uint8_t *  ptr,
size_t  len,
bool  own 
)

◆ ~Fields()

SWC::DB::Specs::Serial::Value::Fields::~Fields ( )
inlinenoexcept

Definition at line 342 of file SpecsValueSerialFields.h.

Member Function Documentation

◆ add()

void SWC::DB::Specs::Serial::Value::Fields::add ( Field::Ptr &&  field)

Definition at line 724 of file SpecsValueSerialFields.cc.

References fields, and SWC::Core::Vector< T, SizeT, GROW_SZ >::push_back().

Referenced by SWC::Ranger::Query::Select::CheckMeta::CheckMeta(), SWC::client::SQL::QuerySelect::read_value(), and SWC::Thrift::Converter::set().

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

◆ encode() [1/2]

void SWC::DB::Specs::Serial::Value::Fields::encode ( Specs::Value value) const

Definition at line 735 of file SpecsValueSerialFields.cc.

References SWC::Core::Buffer< T >::base, SWC::DB::Specs::Value::comp, encoded_length(), SWC::DB::Specs::Value::free(), SWC::Core::Buffer< T >::own, SWC::DB::Specs::Value::own, SWC::DB::Specs::Value::set(), and SWC::Core::Buffer< T >::size.

Referenced by SWC::Ranger::Query::Select::CheckMeta::CheckMeta(), SWC::client::SQL::QuerySelect::read_value(), and SWC::Thrift::Converter::set().

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

◆ encode() [2/2]

void SWC::DB::Specs::Serial::Value::Fields::encode ( uint8_t **  bufp) const

Definition at line 749 of file SpecsValueSerialFields.cc.

References fields.

◆ encoded_length()

size_t SWC::DB::Specs::Serial::Value::Fields::encoded_length ( ) const
noexcept

Definition at line 728 of file SpecsValueSerialFields.cc.

References fields.

Referenced by encode().

+ Here is the caller graph for this function:

◆ has_field_id()

bool SWC::DB::Specs::Serial::Value::Fields::has_field_id ( uint24_t  fid) const
noexcept

Definition at line 716 of file SpecsValueSerialFields.cc.

◆ is_matching()

◆ print()

void SWC::DB::Specs::Serial::Value::Fields::print ( std::ostream &  out) const

Definition at line 842 of file SpecsValueSerialFields.cc.

References SWC::Core::Vector< T, SizeT, GROW_SZ >::empty(), fields, and SWC::Core::Vector< T, SizeT, GROW_SZ >::size().

Referenced by SWC::DB::Specs::Value::display().

+ 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::Specs::Serial::Value::Fields::to_string ( ) const
inline

Definition at line 357 of file SpecsValueSerialFields.h.

References SWC::DB::Specs::Serial::Value::Field_INT64::print().

+ Here is the call graph for this function:

Member Data Documentation

◆ _fields_ptr

Core::Vector<Field*> SWC::DB::Specs::Serial::Value::Fields::_fields_ptr

Definition at line 370 of file SpecsValueSerialFields.h.

Referenced by Fields(), and is_matching().

◆ fields

Core::Vector<Field::Ptr> SWC::DB::Specs::Serial::Value::Fields::fields

Definition at line 369 of file SpecsValueSerialFields.h.

Referenced by add(), encode(), encoded_length(), Fields(), is_matching(), and print().


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