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::client::Managers::MasterRangesCache Class Referencefinal
+ Collaboration diagram for SWC::client::Managers::MasterRangesCache:

Classes

class  Column
 
struct  Range
 

Public Member Functions

SWC_CAN_INLINE MasterRangesCache () noexcept
 
SWC_CAN_INLINE MasterRangesCache (const Config::Settings &settings) noexcept
 
SWC_CAN_INLINE ~MasterRangesCache () noexcept
 
void clear_expired () noexcept
 
SWC_CAN_INLINE void remove (const cid_t cid, const rid_t rid) noexcept
 
SWC_CAN_INLINE void set (const cid_t cid, const rid_t rid, const DB::Cell::Key &range_begin, const DB::Cell::Key &range_end, const Comm::EndPoints &endpoints, const int64_t revision)
 
SWC_CAN_INLINE bool get_read (const cid_t cid, const DB::Cell::Key &range_begin, const DB::Cell::Key &range_end, rid_t &rid, DB::Cell::Key &offset, bool &is_end, Comm::EndPoints &endpoints, int64_t &revision)
 
SWC_CAN_INLINE bool get_write (const cid_t cid, const DB::Cell::Key &key, rid_t &rid, DB::Cell::Key &key_end, Comm::EndPoints &endpoints, int64_t &revision)
 

Private Attributes

Column columns [DB::Types::SystemColumn::CID_MASTER_END]
 

Detailed Description

Definition at line 25 of file Managers.h.

Constructor & Destructor Documentation

◆ MasterRangesCache() [1/2]

SWC_CAN_INLINE SWC::client::Managers::MasterRangesCache::MasterRangesCache ( )
inlinenoexcept

Definition at line 137 of file Managers.h.

◆ MasterRangesCache() [2/2]

SWC_CAN_INLINE SWC::client::Managers::MasterRangesCache::MasterRangesCache ( const Config::Settings settings)
inlinenoexcept

Definition at line 140 of file Managers.h.

References SWC::DB::Types::SystemColumn::CID_MASTER_END, columns, SWC::client::Managers::MasterRangesCache::Column::expiry_ms, SWC::DB::Types::SystemColumn::get_seq_type(), and SWC::client::Managers::MasterRangesCache::Column::init().

+ Here is the call graph for this function:

◆ ~MasterRangesCache()

SWC_CAN_INLINE SWC::client::Managers::MasterRangesCache::~MasterRangesCache ( )
inlinenoexcept

Definition at line 153 of file Managers.h.

Member Function Documentation

◆ clear_expired()

void SWC::client::Managers::MasterRangesCache::clear_expired ( )
inlinenoexcept

Definition at line 155 of file Managers.h.

References columns.

◆ get_read()

SWC_CAN_INLINE bool SWC::client::Managers::MasterRangesCache::get_read ( const cid_t  cid,
const DB::Cell::Key range_begin,
const DB::Cell::Key range_end,
rid_t rid,
DB::Cell::Key offset,
bool &  is_end,
Comm::EndPoints endpoints,
int64_t &  revision 
)
inline

Definition at line 176 of file Managers.h.

References columns, and SWC::client::Managers::MasterRangesCache::Column::get_read().

Referenced by SWC::client::Clients::mngr_cache_get_read_master().

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

◆ get_write()

SWC_CAN_INLINE bool SWC::client::Managers::MasterRangesCache::get_write ( const cid_t  cid,
const DB::Cell::Key key,
rid_t rid,
DB::Cell::Key key_end,
Comm::EndPoints endpoints,
int64_t &  revision 
)
inline

Definition at line 189 of file Managers.h.

References columns, and SWC::client::Managers::MasterRangesCache::Column::get_write().

Referenced by SWC::client::Clients::mngr_cache_get_write_master().

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

◆ remove()

SWC_CAN_INLINE void SWC::client::Managers::MasterRangesCache::remove ( const cid_t  cid,
const rid_t  rid 
)
inlinenoexcept

Definition at line 161 of file Managers.h.

References columns, and SWC::client::Managers::MasterRangesCache::Column::remove().

Referenced by SWC::client::Clients::mngr_cache_remove_master().

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

◆ set()

SWC_CAN_INLINE void SWC::client::Managers::MasterRangesCache::set ( const cid_t  cid,
const rid_t  rid,
const DB::Cell::Key range_begin,
const DB::Cell::Key range_end,
const Comm::EndPoints endpoints,
const int64_t  revision 
)
inline

Definition at line 166 of file Managers.h.

References columns, and SWC::client::Managers::MasterRangesCache::Column::set().

Referenced by SWC::client::Clients::mngr_cache_set_master().

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

Member Data Documentation

◆ columns

Column SWC::client::Managers::MasterRangesCache::columns[DB::Types::SystemColumn::CID_MASTER_END]
private

Definition at line 200 of file Managers.h.

Referenced by clear_expired(), get_read(), get_write(), MasterRangesCache(), remove(), and set().


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