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::Ranger::Callback::ColumnDelete Class Reference

#include <swcdb/ranger/callbacks/ColumnDelete.h>

+ Inheritance diagram for SWC::Ranger::Callback::ColumnDelete:
+ Collaboration diagram for SWC::Ranger::Callback::ColumnDelete:

Public Types

typedef std::shared_ptr< ColumnDeletePtr
 
- Public Types inherited from SWC::Ranger::Callback::ManageBase
enum  Action {
  RANGE_LOAD,
  RANGE_UNLOAD,
  RANGE_UNLOAD_INTERNAL,
  COLUMNS_UNLOAD,
  COLUMN_DELETE
}
 
typedef std::shared_ptr< ManageBasePtr
 
- Public Types inherited from SWC::Comm::ResponseCallback
typedef std::shared_ptr< ResponseCallbackPtr
 

Public Member Functions

 ColumnDelete (const Comm::ConnHandlerPtr &conn, const Comm::Event::Ptr &ev, const cid_t cid) noexcept
 
virtual ~ColumnDelete () noexcept
 
void add (const RangePtr &range)
 
void removed (const RangePtr &range)
 
void complete ()
 
- Public Member Functions inherited from SWC::Ranger::Callback::ManageBase
SWC_CAN_INLINE ManageBase (const Comm::ConnHandlerPtr &conn, const Comm::Event::Ptr &ev, Action a_action)
 
virtual ~ManageBase () noexcept
 
- Public Member Functions inherited from SWC::Comm::ResponseCallback
 ResponseCallback (const ConnHandlerPtr &conn, const Event::Ptr &ev)
 
virtual ~ResponseCallback () noexcept
 
virtual void run ()
 
virtual bool expired (int64_t within=0) const noexcept
 
virtual void response (int &err)
 
virtual void response_ok ()
 
virtual void send_error (int err, const std::string &msg)
 

Public Attributes

const cid_t cid
 
ColumnPtr col
 
- Public Attributes inherited from SWC::Ranger::Callback::ManageBase
Action action
 

Private Attributes

Core::MutexSptd m_mutex
 
Core::Vector< RangePtrm_ranges
 

Additional Inherited Members

- Protected Attributes inherited from SWC::Comm::ResponseCallback
ConnHandlerPtr m_conn
 
Event::Ptr m_ev
 

Detailed Description

Definition at line 13 of file ColumnDelete.h.

Member Typedef Documentation

◆ Ptr

Definition at line 16 of file ColumnDelete.h.

Constructor & Destructor Documentation

◆ ColumnDelete()

SWC_CAN_INLINE SWC::Ranger::Callback::ColumnDelete::ColumnDelete ( const Comm::ConnHandlerPtr conn,
const Comm::Event::Ptr ev,
const cid_t  cid 
)
noexcept

Definition at line 11 of file ColumnDelete.cc.

◆ ~ColumnDelete()

virtual SWC::Ranger::Callback::ColumnDelete::~ColumnDelete ( )
inlinevirtualnoexcept

Definition at line 24 of file ColumnDelete.h.

Member Function Documentation

◆ add()

void SWC::Ranger::Callback::ColumnDelete::add ( const RangePtr range)

Definition at line 18 of file ColumnDelete.cc.

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

+ Here is the call graph for this function:

◆ complete()

void SWC::Ranger::Callback::ColumnDelete::complete ( )

Definition at line 37 of file ColumnDelete.cc.

References col, SWC::Env::Rgr::columns(), SWC::Ranger::Columns::internal_delete(), and SWC::Comm::ResponseCallback::response_ok().

Referenced by removed().

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

◆ removed()

void SWC::Ranger::Callback::ColumnDelete::removed ( const RangePtr range)

Definition at line 23 of file ColumnDelete.cc.

References SWC::Core::Vector< T, SizeT, GROW_SZ >::cbegin(), SWC::Core::Vector< T, SizeT, GROW_SZ >::cend(), col, complete(), SWC::Core::Vector< T, SizeT, GROW_SZ >::empty(), SWC::Core::Vector< T, SizeT, GROW_SZ >::erase(), SWC::LOG_INFO, m_mutex, m_ranges, SWC_LOG_OSTREAM, and SWC_LOG_OUT.

+ Here is the call graph for this function:

Member Data Documentation

◆ cid

const cid_t SWC::Ranger::Callback::ColumnDelete::cid

Definition at line 18 of file ColumnDelete.h.

◆ col

ColumnPtr SWC::Ranger::Callback::ColumnDelete::col

Definition at line 19 of file ColumnDelete.h.

Referenced by complete(), and removed().

◆ m_mutex

Core::MutexSptd SWC::Ranger::Callback::ColumnDelete::m_mutex
private

Definition at line 33 of file ColumnDelete.h.

Referenced by add(), and removed().

◆ m_ranges

Core::Vector<RangePtr> SWC::Ranger::Callback::ColumnDelete::m_ranges
private

Definition at line 34 of file ColumnDelete.h.

Referenced by add(), and removed().


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