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

The SWC-DB Range-Data C++ namespace 'SWC::Ranger::RangeData'. More...

Functions

void write (DynamicBuffer &dst_buf, CellStore::Readers &cellstores)
 
void save (int &err, CellStore::Readers &cellstores)
 
void read (int &err, const uint8_t **ptr, size_t *remain, CellStore::Readers &cellstores)
 
void load (int &err, CellStore::Readers &cellstores)
 

Variables

const uint8_t HEADER_SIZE = 13
 
const uint8_t HEADER_OFFSET_CHKSUM = 9
 
const uint8_t VERSION = 1
 

Detailed Description

The SWC-DB Range-Data C++ namespace 'SWC::Ranger::RangeData'.

Function Documentation

◆ load()

SWC_CAN_INLINE void SWC::Ranger::RangeData::load ( int &  err,
CellStore::Readers cellstores 
)

◆ read()

void SWC::Ranger::RangeData::read ( int &  err,
const uint8_t **  ptr,
size_t *  remain,
CellStore::Readers cellstores 
)

Definition at line 59 of file RangeData.cc.

References SWC::Ranger::CellStore::Readers::clear(), SWC::Ranger::CellStore::Readers::decode(), SWC::LOG_WARN, SWC_FMT_LU, and SWC_LOGF.

+ Here is the call graph for this function:

◆ save()

void SWC::Ranger::RangeData::save ( int &  err,
CellStore::Readers cellstores 
)

Definition at line 40 of file RangeData.cc.

References SWC::Env::FsInterface::interface(), SWC::FS::SmartFd::make_ptr(), SWC::FS::OPEN_FLAG_OVERWRITE, SWC::Ranger::CellStore::Readers::range, and SWC::Common::Files::Schema::write().

Referenced by SWC::Ranger::Blocks::apply_new(), SWC::Ranger::Range::internal_create(), and SWC::Ranger::Range::load().

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

◆ write()

void SWC::Ranger::RangeData::write ( DynamicBuffer dst_buf,
CellStore::Readers cellstores 
)

Variable Documentation

◆ HEADER_OFFSET_CHKSUM

const uint8_t SWC::Ranger::RangeData::HEADER_OFFSET_CHKSUM = 9

Definition at line 21 of file RangeData.h.

◆ HEADER_SIZE

const uint8_t SWC::Ranger::RangeData::HEADER_SIZE = 13

Definition at line 20 of file RangeData.h.

◆ VERSION

const uint8_t SWC::Ranger::RangeData::VERSION = 1

Definition at line 22 of file RangeData.h.