SWC-DB  v0.5.9 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
SWC::Comm::Protocol::Rgr::Req::ColumnUpdate Class Reference

#include <swcdb/manager/Protocol/Rgr/req/ColumnUpdate.h>

+ Inheritance diagram for SWC::Comm::Protocol::Rgr::Req::ColumnUpdate:
+ Collaboration diagram for SWC::Comm::Protocol::Rgr::Req::ColumnUpdate:

Public Types

typedef std::shared_ptr< ColumnUpdatePtr
 
- Public Types inherited from SWC::Comm::client::ConnQueueReqBase
typedef std::shared_ptr< ConnQueueReqBasePtr
 
- Public Types inherited from SWC::Comm::DispatchHandler
typedef std::shared_ptr< DispatchHandlerPtr
 

Public Member Functions

 ColumnUpdate (const Manager::Ranger::Ptr &rgr, const Manager::Column::Ptr &col, const DB::Schema::Ptr &schema, uint64_t req_id)
 
virtual ~ColumnUpdate () noexcept
 
void handle (ConnHandlerPtr conn, const Event::Ptr &ev) override
 
void handle_no_conn () override
 
void updated ()
 
- Public Member Functions inherited from SWC::Comm::client::ConnQueueReqBase
SWC_CAN_INLINE ConnQueueReqBase (Buffers::Ptr &&a_cbp) noexcept
 
SWC_CAN_INLINE ConnQueueReqBase (Buffers::Ptr &&a_cbp, const ConnQueuePtr &a_queue) noexcept
 
SWC_CAN_INLINE Ptr req () noexcept
 
virtual bool insistent () noexcept
 
void request_again ()
 
void print (std::ostream &out)
 
- Public Member Functions inherited from SWC::Comm::DispatchHandler
virtual bool run ()
 
virtual bool valid ()
 

Private Attributes

Manager::Ranger::Ptr rgr
 
Manager::Column::Ptr col
 
DB::Schema::Ptr schema
 
uint64_t req_id
 

Additional Inherited Members

- Public Attributes inherited from SWC::Comm::client::ConnQueueReqBase
Buffers::Ptr cbp
 
ConnQueuePtr queue
 
- Protected Member Functions inherited from SWC::Comm::client::ConnQueueReqBase
virtual ~ConnQueueReqBase () noexcept
 
- Protected Member Functions inherited from SWC::Comm::DispatchHandler
virtual ~DispatchHandler () noexcept
 

Detailed Description

Definition at line 14 of file ColumnUpdate.h.

Member Typedef Documentation

◆ Ptr

Definition at line 16 of file ColumnUpdate.h.

Constructor & Destructor Documentation

◆ ColumnUpdate()

SWC_CAN_INLINE SWC::Comm::Protocol::Rgr::Req::ColumnUpdate::ColumnUpdate ( const Manager::Ranger::Ptr rgr,
const Manager::Column::Ptr col,
const DB::Schema::Ptr schema,
uint64_t  req_id 
)

Definition at line 15 of file ColumnUpdate.cc.

◆ ~ColumnUpdate()

virtual SWC::Comm::Protocol::Rgr::Req::ColumnUpdate::~ColumnUpdate ( )
inlinevirtualnoexcept

Definition at line 23 of file ColumnUpdate.h.

Member Function Documentation

◆ handle()

void SWC::Comm::Protocol::Rgr::Req::ColumnUpdate::handle ( ConnHandlerPtr  conn,
const Event::Ptr ev 
)
overridevirtual

Implements SWC::Comm::DispatchHandler.

Definition at line 26 of file ColumnUpdate.cc.

References col, handle_no_conn(), rgr, schema, and updated().

+ Here is the call graph for this function:

◆ handle_no_conn()

void SWC::Comm::Protocol::Rgr::Req::ColumnUpdate::handle_no_conn ( )
overridevirtual

Implements SWC::Comm::DispatchHandler.

Definition at line 34 of file ColumnUpdate.cc.

References SWC::DB::Types::MngrRangerState::ACK, SWC::Comm::client::ConnQueueReqBase::request_again(), rgr, and updated().

Referenced by handle().

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

◆ updated()

void SWC::Comm::Protocol::Rgr::Req::ColumnUpdate::updated ( )

Definition at line 43 of file ColumnUpdate.cc.

References col, SWC::Env::Mngr::mngd_columns(), SWC::Error::OK, SWC::Env::Mngr::rangers(), req_id, schema, and SWC::Manager::MngdColumns::update().

Referenced by handle(), and handle_no_conn().

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

Member Data Documentation

◆ col

Manager::Column::Ptr SWC::Comm::Protocol::Rgr::Req::ColumnUpdate::col
private

Definition at line 33 of file ColumnUpdate.h.

Referenced by handle(), and updated().

◆ req_id

uint64_t SWC::Comm::Protocol::Rgr::Req::ColumnUpdate::req_id
private

Definition at line 35 of file ColumnUpdate.h.

Referenced by updated().

◆ rgr

Manager::Ranger::Ptr SWC::Comm::Protocol::Rgr::Req::ColumnUpdate::rgr
private

Definition at line 32 of file ColumnUpdate.h.

Referenced by handle(), and handle_no_conn().

◆ schema

DB::Schema::Ptr SWC::Comm::Protocol::Rgr::Req::ColumnUpdate::schema
private

Definition at line 34 of file ColumnUpdate.h.

Referenced by handle(), and updated().


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