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::DB::Cells Namespace Reference

The SWC-DB Cells C++ namespace 'SWC::DB::Cells'. More...

Namespaces

 TSV
 The SWC-DB Tab-Separated-Values C++ namespace 'SWC::DB::Cells::TSV'.
 

Classes

class  Cell
 
class  Interval
 
class  Mutable
 
class  MutableVec
 
class  ReqScan
 
class  ReqScanTest
 
class  Result
 

Enumerations

enum  Flag : uint8_t {
  NONE = 0x0,
  INSERT = 0x1,
  DELETE_LE = 0x2,
  DELETE_EQ = 0x3
}
 

Functions

const char *SWC_CONST_FUNC to_string (Flag flag) noexcept
 
Flag SWC_PURE_FUNC flag_from (const uint8_t *rptr, uint32_t len) noexcept
 

Variables

constexpr const int64_t TIMESTAMP_NULL = INT64_MIN + 1
 
constexpr const int64_t TIMESTAMP_AUTO = INT64_MIN + 2
 
constexpr const int64_t TIMESTAMP_MIN = INT64_MIN + 3
 
constexpr const int64_t TIMESTAMP_MAX = INT64_MAX
 
constexpr const uint8_t TS_DESC = 0x01
 
constexpr const uint8_t HAVE_ENCODER = 0x02
 
constexpr const uint8_t REV_IS_TS = 0x04
 
constexpr const uint8_t HAVE_TIMESTAMP = 0x08
 
constexpr const uint8_t HAVE_REVISION = 0x10
 
constexpr const uint8_t OP_EQUAL = 0x01
 
constexpr const uint8_t MASK_TS_DESC = 0xff - TS_DESC
 
constexpr const uint8_t MASK_HAVE_ENCODER = 0xff - HAVE_ENCODER
 
constexpr const uint8_t MASK_REV_IS_TS = 0xff - REV_IS_TS
 
constexpr const uint8_t MASK_HAVE_TIMESTAMP = 0xff - HAVE_TIMESTAMP
 
constexpr const uint8_t MASK_HAVE_REVISION = 0xff - HAVE_REVISION
 

Detailed Description

The SWC-DB Cells C++ namespace 'SWC::DB::Cells'.

Enumeration Type Documentation

◆ Flag

enum SWC::DB::Cells::Flag : uint8_t
Enumerator
NONE 
INSERT 
DELETE_LE 
DELETE_EQ 

Definition at line 60 of file Cell.h.

Function Documentation

◆ flag_from()

Flag SWC::DB::Cells::flag_from ( const uint8_t *  rptr,
uint32_t  len 
)
noexcept

Definition at line 32 of file Cell.cc.

References DELETE_EQ, DELETE_LE, INSERT, SWC::Condition::NONE, and SWC::Condition::str_case_eq().

Referenced by SWC::DB::Cells::TSV::FileReader::read().

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

◆ to_string()

const char * SWC::DB::Cells::to_string ( Flag  flag)
noexcept

Definition at line 17 of file Cell.cc.

References DELETE_EQ, DELETE_LE, INSERT, and SWC::Condition::NONE.

Referenced by SWC::DB::Cells::Cell::display(), SWC::DB::Cells::Cell::print(), and SWC::DB::Cells::TSV::FileWriter::write().

+ Here is the caller graph for this function:

Variable Documentation

◆ HAVE_ENCODER

constexpr const uint8_t SWC::DB::Cells::HAVE_ENCODER = 0x02
constexpr

◆ HAVE_REVISION

◆ HAVE_TIMESTAMP

◆ MASK_HAVE_ENCODER

constexpr const uint8_t SWC::DB::Cells::MASK_HAVE_ENCODER = 0xff - HAVE_ENCODER
constexpr

◆ MASK_HAVE_REVISION

constexpr const uint8_t SWC::DB::Cells::MASK_HAVE_REVISION = 0xff - HAVE_REVISION
constexpr

Definition at line 89 of file Cell.h.

Referenced by SWC::DB::Cells::Cell::set_timestamp_with_rev_is_ts().

◆ MASK_HAVE_TIMESTAMP

constexpr const uint8_t SWC::DB::Cells::MASK_HAVE_TIMESTAMP = 0xff - HAVE_TIMESTAMP
constexpr

◆ MASK_REV_IS_TS

constexpr const uint8_t SWC::DB::Cells::MASK_REV_IS_TS = 0xff - REV_IS_TS
constexpr

◆ MASK_TS_DESC

constexpr const uint8_t SWC::DB::Cells::MASK_TS_DESC = 0xff - TS_DESC
constexpr

Definition at line 85 of file Cell.h.

Referenced by SWC::DB::Cells::Cell::set_time_order_desc().

◆ OP_EQUAL

◆ REV_IS_TS

◆ TIMESTAMP_AUTO

◆ TIMESTAMP_MAX

constexpr const int64_t SWC::DB::Cells::TIMESTAMP_MAX = INT64_MAX
constexpr

Definition at line 75 of file Cell.h.

◆ TIMESTAMP_MIN

constexpr const int64_t SWC::DB::Cells::TIMESTAMP_MIN = INT64_MIN + 3
constexpr

Definition at line 74 of file Cell.h.

◆ TIMESTAMP_NULL

◆ TS_DESC

constexpr const uint8_t SWC::DB::Cells::TS_DESC = 0x01
constexpr