Public Member Functions | |
SWC_CAN_INLINE | Column () noexcept |
Column (const Column &)=delete | |
Column & | operator= (const Column &)=delete |
SWC_CAN_INLINE | ~Column () noexcept |
void | init (DB::Types::KeySeq _key_seq, Config::Property::Value_int32_g::Ptr _expiry_ms) noexcept |
void | clear_expired () noexcept |
void | remove (const rid_t rid) noexcept |
void | set (const rid_t rid, const DB::Cell::Key &range_begin, const DB::Cell::Key &range_end, const Comm::EndPoints &endpoints, const int64_t revision) |
bool | get_read (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) |
bool | get_write (const DB::Cell::Key &key, rid_t &rid, DB::Cell::Key &key_end, Comm::EndPoints &endpoints, int64_t &revision) |
Private Attributes | |
Config::Property::Value_int32_g::Ptr | expiry_ms |
DB::Types::KeySeq | key_seq |
Core::MutexSptd | m_mutex |
Definition at line 84 of file Managers.h.
|
inlinenoexcept |
Definition at line 93 of file Managers.h.
|
delete |
|
inlinenoexcept |
Definition at line 100 of file Managers.h.
|
noexcept |
Definition at line 80 of file Managers.cc.
References SWC::Core::Vector< Range >::cbegin(), SWC::Core::Vector< Range >::cend(), SWC::Core::Vector< Range >::erase(), expiry_ms, SWC::Config::Property::Value_int32_g::get(), m_mutex, and SWC::Time::now_ms().
bool SWC::client::Managers::MasterRangesCache::Column::get_read | ( | 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 | ||
) |
Definition at line 131 of file Managers.cc.
References SWC::DB::KeySeq::compare(), SWC::DB::Cell::Key::copy(), SWC::Core::Vector< T, SizeT, GROW_SZ >::empty(), SWC::DB::Cell::Key::empty(), SWC::Condition::GT, SWC::Condition::LT, and SWC::Time::now_ms().
Referenced by SWC::client::Managers::MasterRangesCache::get_read().
bool SWC::client::Managers::MasterRangesCache::Column::get_write | ( | const DB::Cell::Key & | key, |
rid_t & | rid, | ||
DB::Cell::Key & | key_end, | ||
Comm::EndPoints & | endpoints, | ||
int64_t & | revision | ||
) |
Definition at line 161 of file Managers.cc.
References SWC::DB::KeySeq::compare(), SWC::DB::Cell::Key::copy(), SWC::DB::Cell::Key::empty(), SWC::Condition::LT, and SWC::Time::now_ms().
Referenced by SWC::client::Managers::MasterRangesCache::get_write().
|
inlinenoexcept |
Definition at line 102 of file Managers.h.
References expiry_ms, and key_seq.
Referenced by SWC::client::Managers::MasterRangesCache::MasterRangesCache().
|
noexcept |
Definition at line 92 of file Managers.cc.
Referenced by SWC::client::Managers::MasterRangesCache::remove().
void SWC::client::Managers::MasterRangesCache::Column::set | ( | const rid_t | rid, |
const DB::Cell::Key & | range_begin, | ||
const DB::Cell::Key & | range_end, | ||
const Comm::EndPoints & | endpoints, | ||
const int64_t | revision | ||
) |
Definition at line 102 of file Managers.cc.
References SWC::DB::KeySeq::compare(), SWC::Condition::EQ, SWC::Condition::GT, and SWC::Time::now_ms().
Referenced by SWC::client::Managers::MasterRangesCache::set().
|
private |
Definition at line 86 of file Managers.h.
Referenced by clear_expired(), init(), and SWC::client::Managers::MasterRangesCache::MasterRangesCache().
|
private |
Definition at line 87 of file Managers.h.
Referenced by init().
|
mutableprivate |
Definition at line 88 of file Managers.h.
Referenced by clear_expired().