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::RgrData Class Referencefinal

#include <swcdb/db/Columns/RgrData.h>

+ Collaboration diagram for SWC::DB::RgrData:

Classes

class  BaseSelector
 
class  BaseUpdater
 
class  SyncSelector
 
class  SyncUpdater
 

Public Types

typedef std::shared_ptr< RgrDataPtr
 

Public Member Functions

SWC_CAN_INLINE RgrData () noexcept
 
 ~RgrData () noexcept
 
uint32_t encoded_length () const noexcept
 
void encode (uint8_t **bufp) const noexcept
 
void decode (const uint8_t *ptr, size_t remain)
 
void print (std::ostream &out)
 
void set_insert_cell (cid_t cid, rid_t rid, client::Query::Update::Handlers::Base::Column *colp) const noexcept
 
void set_rgr (int &err, cid_t cid, rid_t rid) noexcept
 

Static Public Member Functions

static void set_delete_cell (cid_t cid, rid_t rid, client::Query::Update::Handlers::Base::Column *colp) noexcept
 
static void remove (int &err, cid_t cid, rid_t rid) noexcept
 
static void remove (int &err, cid_t cid) noexcept
 
static void get_rgr (const SyncSelector::Ptr &hdlr, RgrData &data, cid_t cid, rid_t rid) noexcept
 

Public Attributes

Core::Atomic< rgrid_trgrid
 
Comm::EndPoints endpoints
 

Detailed Description

Definition at line 24 of file RgrData.h.

Member Typedef Documentation

◆ Ptr

typedef std::shared_ptr<RgrData> SWC::DB::RgrData::Ptr

Definition at line 27 of file RgrData.h.

Constructor & Destructor Documentation

◆ RgrData()

SWC_CAN_INLINE SWC::DB::RgrData::RgrData ( )
inlinenoexcept

Definition at line 32 of file RgrData.h.

◆ ~RgrData()

SWC::DB::RgrData::~RgrData ( )
inlinenoexcept

Definition at line 34 of file RgrData.h.

Member Function Documentation

◆ decode()

void SWC::DB::RgrData::decode ( const uint8_t *  ptr,
size_t  remain 
)
inline

Definition at line 46 of file RgrData.h.

References SWC::Serialization::decode(), SWC::Serialization::decode_vi64(), endpoints, rgrid, and SWC::Core::AtomicBase< T, OrderT >::store().

+ Here is the call graph for this function:

◆ encode()

void SWC::DB::RgrData::encode ( uint8_t **  bufp) const
inlinenoexcept

Definition at line 41 of file RgrData.h.

References SWC::Serialization::encode(), SWC::Serialization::encode_vi64(), endpoints, SWC::Core::AtomicBase< T, OrderT >::load(), and rgrid.

Referenced by set_insert_cell().

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

◆ encoded_length()

uint32_t SWC::DB::RgrData::encoded_length ( ) const
inlinenoexcept

Definition at line 36 of file RgrData.h.

References SWC::Serialization::encoded_length(), SWC::Serialization::encoded_length_vi64(), endpoints, SWC::Core::AtomicBase< T, OrderT >::load(), and rgrid.

Referenced by set_insert_cell().

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

◆ get_rgr()

static void SWC::DB::RgrData::get_rgr ( const SyncSelector::Ptr hdlr,
RgrData data,
cid_t  cid,
rid_t  rid 
)
inlinestaticnoexcept

Definition at line 318 of file RgrData.h.

References data, and SWC::Error::OK.

Referenced by SWC::Manager::Range::get_last_rgr(), and SWC::Ranger::Range::last_rgr_chk().

+ Here is the caller graph for this function:

◆ print()

void SWC::DB::RgrData::print ( std::ostream &  out)
inline

Definition at line 51 of file RgrData.h.

References endpoints, SWC::Core::AtomicBase< T, OrderT >::load(), SWC::Comm::print(), and rgrid.

Referenced by SWC::Ranger::Range::last_rgr_chk().

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

◆ remove() [1/2]

◆ remove() [2/2]

static void SWC::DB::RgrData::remove ( int &  err,
cid_t  cid,
rid_t  rid 
)
inlinestaticnoexcept

Definition at line 99 of file RgrData.h.

References SWC_CURRENT_EXCEPTION.

Referenced by SWC::Ranger::Range::remove_rgr().

+ Here is the caller graph for this function:

◆ set_delete_cell()

static void SWC::DB::RgrData::set_delete_cell ( cid_t  cid,
rid_t  rid,
client::Query::Update::Handlers::Base::Column colp 
)
inlinestaticnoexcept

Definition at line 75 of file RgrData.h.

References SWC::DB::Cell::Key::add(), SWC::DB::Cells::DELETE_LE, SWC::DB::Cells::Cell::flag, SWC::DB::Cells::Cell::key, SWC::DB::Cells::Cell::set_time_order_desc(), and SWC::Core::to_string().

Referenced by SWC::DB::RgrData::BaseUpdater::remove_rgr().

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

◆ set_insert_cell()

void SWC::DB::RgrData::set_insert_cell ( cid_t  cid,
rid_t  rid,
client::Query::Update::Handlers::Base::Column colp 
) const
inlinenoexcept

Definition at line 58 of file RgrData.h.

References SWC::DB::Cell::Key::add(), SWC::Core::Buffer< T >::base, encode(), encoded_length(), SWC::DB::Cells::Cell::flag, SWC::DB::Cells::INSERT, SWC::DB::Cells::Cell::key, SWC::DB::Cells::Cell::set_time_order_desc(), SWC::DB::Cells::Cell::set_value(), SWC::Core::Buffer< T >::size, and SWC::Core::to_string().

+ Here is the call graph for this function:

◆ set_rgr()

void SWC::DB::RgrData::set_rgr ( int &  err,
cid_t  cid,
rid_t  rid 
)
inlinenoexcept

Definition at line 87 of file RgrData.h.

References SWC_CURRENT_EXCEPTION.

Referenced by SWC::Ranger::Range::set_rgr().

+ Here is the caller graph for this function:

Member Data Documentation

◆ endpoints

◆ rgrid


The documentation for this class was generated from the following file: