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::Thrift::Converter Namespace Reference

The SWC-DB to & from SWC::DB Converter C++ namespace 'SWC::Thrift::Converter'. More...

Functions

void exception (int err, const std::string &msg="")
 
void set (const SpecFlags &flags, DB::Specs::Flags &dbspec)
 
void set (const Key &key, DB::Cell::Key &dbkey)
 
void set (const CellValuesSerial &value, DB::Cell::Serial::Value::FieldsWriter &wfields)
 
void set (const CellValuesSerialOp &value, DB::Cell::Serial::Value::FieldsWriter &wfields)
 
void set (const SpecKey &spec, DB::Specs::Key &dbspec)
 
void set (const SpecTimestamp &spec, DB::Specs::Timestamp &dbspec)
 
void set (const SpecUpdateOP &spec, DB::Specs::UpdateOP &dbspec)
 
void set (const SpecValuePlain &spec, DB::Specs::Value &dbspec)
 
void set (const SpecValuesPlain &spec, DB::Specs::Values &dbspec)
 
void set (const SpecIntervalPlain &intval, DB::Specs::Interval &dbintval)
 
void set (const SpecValueCounter &spec, DB::Specs::Value &dbspec)
 
void set (const SpecValuesCounter &spec, DB::Specs::Values &dbspec)
 
void set (const SpecIntervalCounter &intval, DB::Specs::Interval &dbintval)
 
void set (const SpecValueSerial &spec, DB::Specs::Value &dbspec)
 
void set (const SpecValuesSerial &spec, DB::Specs::Values &dbspec)
 
void set (const SpecIntervalSerial &intval, DB::Specs::Interval &dbintval)
 
void set (const DB::Schema::Ptr &dbschema, Schema &schema)
 
void set (const Schema &schema, DB::Schema::Ptr &dbschema)
 
CellValueSerial & get_fields (int32_t fid, CellValuesSerial &values)
 
void set (const DB::Cells::Cell &dbcell, CellValuesSerial &values)
 

Detailed Description

The SWC-DB to & from SWC::DB Converter C++ namespace 'SWC::Thrift::Converter'.

Function Documentation

◆ exception()

void SWC::Thrift::Converter::exception ( int  err,
const std::string &  msg = "" 
)

Definition at line 23 of file Converter.h.

References SWC::Error::CLIENT_STOPPING, SWC::Error::get_text(), SWC::LOG_DEBUG, SWC::Error::SERVER_SHUTTING_DOWN, SWC_LOG_OSTREAM, and SWC_LOG_OUT.

Referenced by SWC::ThriftBroker::AppHandler::exec_sql(), SWC::ThriftBroker::AppHandler::get_schemas(), SWC::ThriftBroker::AppContext::getHandler(), SWC::Error::Exception::make(), SWC::ThriftBroker::AppHandler::mng_column(), SWC::ThriftBroker::AppHandler::Processing::Processing(), SWC::ThriftBroker::AppHandler::scan(), SWC::ThriftBroker::AppHandler::scan_rslt_on_column(), SWC::ThriftBroker::AppHandler::scan_rslt_on_fraction(), SWC::ThriftBroker::AppHandler::scan_rslt_on_key(), set(), SWC::ThriftBroker::AppHandler::set_cols(), SWC::ThriftBroker::AppHandler::sql_mng_column(), SWC::ThriftBroker::AppHandler::sql_select(), SWC::ThriftBroker::AppHandler::sql_select_counter(), SWC::ThriftBroker::AppHandler::sql_select_plain(), SWC::ThriftBroker::AppHandler::sql_select_rslt_on_column(), SWC::ThriftBroker::AppHandler::sql_select_rslt_on_fraction(), SWC::ThriftBroker::AppHandler::sql_select_rslt_on_key(), SWC::ThriftBroker::AppHandler::sql_select_serial(), SWC::ThriftBroker::AppHandler::sql_update(), SWC::ThriftBroker::AppHandler::sync_select(), SWC::ThriftBroker::AppHandler::update_by_types(), SWC::ThriftBroker::AppHandler::update_counter(), SWC::ThriftBroker::AppHandler::update_plain(), SWC::ThriftBroker::AppHandler::update_serial(), SWC::ThriftBroker::AppHandler::updater(), and SWC::ThriftBroker::AppHandler::updater_close().

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

◆ get_fields()

CellValueSerial& SWC::Thrift::Converter::get_fields ( int32_t  fid,
CellValuesSerial &  values 
)

Definition at line 650 of file Converter.h.

Referenced by set().

+ Here is the caller graph for this function:

◆ set() [1/19]

void SWC::Thrift::Converter::set ( const CellValuesSerial &  value,
DB::Cell::Serial::Value::FieldsWriter wfields 
)

Definition at line 51 of file Converter.h.

References SWC::DB::Cell::Serial::Value::FieldsWriter::add(), SWC::Core::BufferDyn< BufferT >::ensure(), SWC::DB::Cell::Serial::Value::Field::fid, SWC::DB::Cell::Serial::Value::Field_KEY::key, and set().

+ Here is the call graph for this function:

◆ set() [2/19]

◆ set() [3/19]

◆ set() [4/19]

void SWC::Thrift::Converter::set ( const DB::Schema::Ptr dbschema,
Schema &  schema 
)

Definition at line 574 of file Converter.h.

◆ set() [5/19]

void SWC::Thrift::Converter::set ( const Key &  key,
DB::Cell::Key dbkey 
)

Definition at line 47 of file Converter.h.

References SWC::DB::Cell::Key::read().

+ Here is the call graph for this function:

◆ set() [6/19]

void SWC::Thrift::Converter::set ( const Schema &  schema,
DB::Schema::Ptr dbschema 
)

Definition at line 605 of file Converter.h.

◆ set() [7/19]

void SWC::Thrift::Converter::set ( const SpecFlags &  flags,
DB::Specs::Flags dbspec 
)

Definition at line 34 of file Converter.h.

References flags, SWC::DB::Specs::Flags::limit, SWC::DB::Specs::Flags::max_buffer, SWC::DB::Specs::Flags::max_versions, SWC::DB::Specs::Flags::offset, and SWC::DB::Specs::Flags::options.

Referenced by set().

+ Here is the caller graph for this function:

◆ set() [8/19]

◆ set() [9/19]

◆ set() [10/19]

◆ set() [11/19]

void SWC::Thrift::Converter::set ( const SpecKey &  spec,
DB::Specs::Key dbspec 
)

Definition at line 262 of file Converter.h.

References SWC::DB::Specs::Key::add(), exception(), SWC::Error::INCOMPATIBLE_OPTIONS, SWC::Core::Vector< T, SizeT, GROW_SZ >::reserve(), and SWC::Condition::to_string().

+ Here is the call graph for this function:

◆ set() [12/19]

void SWC::Thrift::Converter::set ( const SpecTimestamp &  spec,
DB::Specs::Timestamp dbspec 
)

Definition at line 275 of file Converter.h.

References SWC::DB::Specs::Timestamp::set().

+ Here is the call graph for this function:

◆ set() [13/19]

void SWC::Thrift::Converter::set ( const SpecUpdateOP &  spec,
DB::Specs::UpdateOP dbspec 
)

Definition at line 279 of file Converter.h.

References SWC::DB::Specs::UpdateOP::has_pos(), SWC::DB::Specs::UpdateOP::set_op(), and SWC::DB::Specs::UpdateOP::set_pos().

+ Here is the call graph for this function:

◆ set() [14/19]

void SWC::Thrift::Converter::set ( const SpecValueCounter &  spec,
DB::Specs::Value dbspec 
)

Definition at line 359 of file Converter.h.

References SWC::DB::Specs::Value::set_counter().

+ Here is the call graph for this function:

◆ set() [15/19]

void SWC::Thrift::Converter::set ( const SpecValuePlain &  spec,
DB::Specs::Value dbspec 
)

Definition at line 288 of file Converter.h.

References SWC::DB::Specs::Value::set().

+ Here is the call graph for this function:

◆ set() [16/19]

void SWC::Thrift::Converter::set ( const SpecValuesCounter &  spec,
DB::Specs::Values dbspec 
)

Definition at line 363 of file Converter.h.

References SWC::DB::Specs::Values::add(), and set().

+ Here is the call graph for this function:

◆ set() [17/19]

◆ set() [18/19]

void SWC::Thrift::Converter::set ( const SpecValuesPlain &  spec,
DB::Specs::Values dbspec 
)

Definition at line 292 of file Converter.h.

References SWC::DB::Specs::Values::add(), and set().

+ Here is the call graph for this function:

◆ set() [19/19]

void SWC::Thrift::Converter::set ( const SpecValuesSerial &  spec,
DB::Specs::Values dbspec 
)

Definition at line 501 of file Converter.h.

References SWC::DB::Specs::Values::add(), and set().

+ Here is the call graph for this function: