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 Namespace Reference

The SWC-DB Serial Value Cell C++ namespace 'SWC::DB::Cell::Serial::Value'. More...

Classes

struct  Field
 
struct  Field_BYTES
 
struct  Field_DOUBLE
 
struct  Field_INT64
 
struct  Field_KEY
 
struct  Field_LIST_BYTES
 
struct  Field_LIST_INT64
 
struct  Fields
 
struct  FieldsUpdaterMap
 
struct  FieldsWriter
 
class  FieldUpdate
 
class  FieldUpdate_Ext
 
class  FieldUpdate_LIST
 
class  FieldUpdate_LIST_ITEMS
 
class  FieldUpdate_MATH
 
struct  FieldUpdateOP
 Fields Reader with FieldsWriter & FieldUpdate serialization. More...
 

Typedefs

typedef Core::Vector< const FieldUpdateOP * > FieldUpdateOpPtrs
 
typedef FieldUpdate_LIST_ITEMS< FieldUpdate_MATH, int64_t > FieldUpdate_LIST_INT64
 
typedef FieldUpdate_LIST_ITEMS< FieldUpdate_LIST, std::string > FieldUpdate_LIST_BYTES
 

Enumerations

enum  Type : uint8_t {
  UNKNOWN = 0x00,
  INT64 = 0x01,
  DOUBLE = 0x02,
  BYTES = 0x03,
  KEY = 0x04,
  LIST_INT64 = 0x05,
  LIST_BYTES = 0x06
}
 

Functions

const char *SWC_CONST_FUNC to_string (Type typ) noexcept
 
SWC_CAN_INLINE Type read_type (const uint8_t **bufp, size_t *remainp)
 
SWC_CAN_INLINE uint24_t read_field_id (const uint8_t **bufp, size_t *remainp)
 
SWC_CAN_INLINE void skip_type_and_id (const uint8_t **bufp, size_t *remainp)
 

Detailed Description

The SWC-DB Serial Value Cell C++ namespace 'SWC::DB::Cell::Serial::Value'.

Typedef Documentation

◆ FieldUpdate_LIST_BYTES

◆ FieldUpdate_LIST_INT64

◆ FieldUpdateOpPtrs

Enumeration Type Documentation

◆ Type

Enumerator
UNKNOWN 
INT64 
DOUBLE 
BYTES 
KEY 
LIST_INT64 
LIST_BYTES 

Definition at line 33 of file CellValueSerialField.h.

Function Documentation

◆ read_field_id()

SWC_CAN_INLINE uint24_t SWC::DB::Cell::Serial::Value::read_field_id ( const uint8_t **  bufp,
size_t *  remainp 
)

Definition at line 56 of file CellValueSerialField.h.

References SWC::Serialization::decode_vi24().

Referenced by skip_type_and_id().

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

◆ read_type()

SWC_CAN_INLINE Type SWC::DB::Cell::Serial::Value::read_type ( const uint8_t **  bufp,
size_t *  remainp 
)

Definition at line 51 of file CellValueSerialField.h.

References SWC::Serialization::decode_i8().

Referenced by SWC::DB::Cell::Serial::Value::FieldsUpdaterMap::decode(), SWC::DB::Cell::Serial::Value::Fields::display(), SWC::DB::Specs::Serial::Value::Fields::Fields(), SWC::DB::Specs::Serial::Value::Fields::is_matching(), SWC::Thrift::Converter::set(), skip_type_and_id(), SWC::Utils::shell::Statistics::StatsDefinition::StatsDefinition(), and SWC::Ranger::Callback::RangeQuerySelectUpdating_Serial::update_cell_value().

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

◆ skip_type_and_id()

SWC_CAN_INLINE void SWC::DB::Cell::Serial::Value::skip_type_and_id ( const uint8_t **  bufp,
size_t *  remainp 
)

Definition at line 61 of file CellValueSerialField.h.

References read_field_id(), and read_type().

Referenced by SWC::Ranger::Range::check_meta(), SWC::DB::Cells::Cell::display(), SWC::Manager::ColumnHealthCheck::ColumnMerger::RangesMerger::handle(), SWC::Manager::ColumnHealthCheck::ColumnMerger::run(), SWC::Ranger::Callback::RangeLocateScan::selector(), and SWC::Ranger::Callback::RangeLocateScanCommit::selector().

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

◆ to_string()

const char * SWC::DB::Cell::Serial::Value::to_string ( Type  typ)
noexcept

Definition at line 15 of file CellValueSerialField.cc.

References BYTES, DOUBLE, INT64, KEY, LIST_BYTES, and LIST_INT64.