|
SWC-DB
v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
|
Go to the documentation of this file.
6 #ifndef swcdb_manager_Ranger_h
7 #define swcdb_manager_Ranger_h
13 namespace SWC {
namespace Manager {
15 namespace RangerState = DB::Types::MngrRangerState;
21 typedef std::shared_ptr<Ranger>
Ptr;
41 Ranger(
const uint8_t** bufp,
size_t* remainp)
65 void print(std::ostream& out)
const {
150 #endif // swcdb_manager_Ranger_h
Core::Atomic< int16_t > failures
static SWC_CAN_INLINE client::Clients::Ptr & get() noexcept
SWC_CAN_INLINE Ranger(const Ranger &other, const Comm::EndPoints &a_endpoints)
SWC_CAN_INLINE bool can_rebalance()
Core::Atomic< uint8_t > state
void load(int &err, const std::string &filepath, DB::Schema::Ptr &schema)
SWC_CAN_INLINE void init_queue()
SWC_CAN_INLINE void encode_i16(uint8_t **bufp, uint16_t val) noexcept
size_t encoded_length() const noexcept
constexpr SWC_CAN_INLINE void encode_i8(uint8_t **bufp, uint8_t val) noexcept
SWC_CAN_INLINE uint8_t encoded_length(const Comm::EndPoint &endpoint) noexcept
void print(std::ostream &out, const EndPoints &endpoints)
void encode(uint8_t **bufp, const Comm::EndPoint &endpoint)
SWC_CAN_INLINE void rebalance(uint8_t num)
std::shared_ptr< Host > Ptr
SWC_CAN_INLINE uint8_t rebalance() const
SWC_CAN_INLINE uint16_t decode_i16(const uint8_t **bufp, size_t *remainp)
SWC_CAN_INLINE void put(const Comm::client::ConnQueue::ReqBase::Ptr &req)
The SWC-DB C++ namespace 'SWC'.
Comm::client::Host::Ptr m_queue
void encode(uint8_t **bufp) const
std::shared_ptr< Ranger > Ptr
constexpr SWC_CAN_INLINE uint8_t encoded_length_vi64(uint64_t val) noexcept
SWC_CAN_INLINE Ranger(rgrid_t a_rgrid, const Comm::EndPoints &a_endpoints)
Core::Atomic< uint16_t > load_scale
SWC_CAN_INLINE Comm::EndPoints decode_endpoints(const uint8_t **bufp, size_t *remainp)
Core::MutexAtomic m_mutex
constexpr SWC_CAN_INLINE T load() const noexcept
Core::Atomic< rgrid_t > rgrid
constexpr SWC_CAN_INLINE uint64_t decode_vi64(const uint8_t **bufp, size_t *remainp)
constexpr SWC_CAN_INLINE void encode_vi64(uint8_t **bufp, uint64_t val)
Core::Vector< Ranger::Ptr > RangerList
std::shared_ptr< ConnQueueReqBase > Ptr
SWC_CAN_INLINE std::string to_string(const BitFieldInt< T, SZ > &v)
constexpr SWC_CAN_INLINE uint8_t decode_i8(const uint8_t **bufp, size_t *remainp)
Comm::EndPoints endpoints
void print(std::ostream &out) const
Core::Atomic< size_t > interm_ranges
SWC_CAN_INLINE Ranger(const uint8_t **bufp, size_t *remainp)