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 Namespace Reference

The SWC-DB Application Ranger C++ namespace 'SWC::Ranger'. More...

Namespaces

 Callback
 The SWC-DB Callback C++ namespace 'SWC::Ranger::Callback'.
 
 CellStore
 The SWC-DB CellStore C++ namespace 'SWC::Ranger::CellStore'.
 
 CommitLog
 The SWC-DB CommitLog C++ namespace 'SWC::Ranger::CommitLog'.
 
 Metric
 The SWC-DB Ranger Metric C++ namespace 'SWC::Ranger::Metric'.
 
 Query
 The SWC-DB Ranger Query C++ namespace 'SWC::Ranger::Query'.
 
 RangeData
 The SWC-DB Range-Data C++ namespace 'SWC::Ranger::RangeData'.
 

Classes

class  AppContext
 
class  Block
 
class  BlockLoader
 
class  Blocks
 
class  Column
 
class  ColumnCfg
 
class  Columns
 
class  Compaction
 
class  CompactRange
 
class  LoadQueueItem
 
class  Range
 
class  RangeSplit
 
class  ReqScan
 
class  ReqScanBlockLoader
 
class  ReqScanTest
 

Typedefs

typedef std::shared_ptr< ColumnColumnPtr
 
typedef std::shared_ptr< RangeRangePtr
 

Functions

SWC_SHOULD_NOT_INLINE Comm::server::SerializedServer::Ptr make_service ()
 
SWC_SHOULD_NOT_INLINE int exiting ()
 
SWC_SHOULD_NOT_INLINE int run ()
 
static void mngr_remove_range (const RangePtr &new_range)
 
const char *SWC_CONST_FUNC to_string (Range::State state) noexcept
 

Detailed Description

The SWC-DB Application Ranger C++ namespace 'SWC::Ranger'.

Typedef Documentation

◆ ColumnPtr

typedef std::shared_ptr<Column> SWC::Ranger::ColumnPtr

Definition at line 14 of file Columns.h.

◆ RangePtr

typedef std::shared_ptr<Range> SWC::Ranger::RangePtr

Definition at line 16 of file Columns.h.

Function Documentation

◆ exiting()

SWC_SHOULD_NOT_INLINE int SWC::Ranger::exiting ( )

Definition at line 43 of file main.cc.

References SWC::LOG_INFO, SWC::Env::Config::reset(), SWC_CAN_QUICK_EXIT, and SWC_LOG.

Referenced by run().

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

◆ make_service()

SWC_SHOULD_NOT_INLINE Comm::server::SerializedServer::Ptr SWC::Ranger::make_service ( )

Definition at line 25 of file main.cc.

References SWC::Ranger::AppContext::make(), and SWC::Env::Config::settings().

Referenced by run().

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

◆ mngr_remove_range()

static void SWC::Ranger::mngr_remove_range ( const RangePtr new_range)
static

Definition at line 17 of file RangeSplit.h.

References SWC::Core::StateSynchronization::acknowledge(), SWC::Error::COLUMN_MARKED_REMOVED, SWC::Error::COLUMN_NOT_EXISTS, SWC::Error::COLUMN_NOT_READY, SWC::Comm::Protocol::Mngr::Params::RangeRemoveRsp::err, SWC::Env::Clients::get(), SWC::Error::get_text(), SWC::Env::Rgr::is_not_accepting(), SWC::LOG_DEBUG, SWC::Comm::Protocol::Mngr::Req::RangeRemove< DataT >::request(), SWC_CAN_INLINE, SWC_FMT_LU, SWC_LOGF, and SWC::Core::StateSynchronization::wait().

Referenced by SWC::Ranger::RangeSplit::run(), and SWC::Ranger::CompactRange::split().

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

◆ run()

SWC_SHOULD_NOT_INLINE int SWC::Ranger::run ( )

Definition at line 54 of file main.cc.

References exiting(), make_service(), and SWC_TRY_OR_LOG.

Referenced by SWC::Ranger::CommitLog::Compact::Group::_loaded(), SWC::Ranger::CommitLog::Fragments::commit(), and main().

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

◆ to_string()

const char* SWC_CONST_FUNC SWC::Ranger::to_string ( Range::State  state)
noexcept

Definition at line 68 of file Range.cc.

References SWC::DB::Types::MngrColumn::DELETED, and SWC::DB::Types::MngrColumn::LOADING.

Referenced by SWC::Ranger::Range::on_change(), and SWC::Ranger::Range::print().

+ Here is the caller graph for this function: