#include <swcdb/ranger/db/CellStoreBlockHeader.h>
Public Member Functions | |
Header (DB::Types::KeySeq key_seq) noexcept | |
Header (const Header &other) | |
Header (Header &&other) noexcept | |
~Header () noexcept | |
void | encode (uint8_t **bufp) |
void | decode (const uint8_t **bufp, size_t *remainp) |
size_t | encoded_length_idx () const |
void | encode_idx (uint8_t **bufp) const |
void | decode_idx (const uint8_t **bufp, size_t *remainp) |
void | print (std::ostream &out) const |
Public Attributes | |
uint64_t | offset_data |
DB::Cells::Interval | interval |
uint8_t | is_any |
DB::Types::Encoder | encoder |
uint32_t | size_plain |
uint32_t | size_enc |
uint32_t | cells_count |
uint32_t | checksum_data |
Static Public Attributes | |
static const uint8_t | SIZE = 21 |
static const uint8_t | ANY_BEGIN = 0x01 |
static const uint8_t | ANY_END = 0x2 |
Definition at line 23 of file CellStoreBlockHeader.h.
|
noexcept |
Definition at line 15 of file CellStoreBlockHeader.cc.
SWC_CAN_INLINE SWC::Ranger::CellStore::Block::Header::Header | ( | const Header & | other | ) |
Definition at line 27 of file CellStoreBlockHeader.cc.
|
noexcept |
Definition at line 39 of file CellStoreBlockHeader.cc.
|
inlinenoexcept |
Definition at line 45 of file CellStoreBlockHeader.h.
SWC_CAN_INLINE void SWC::Ranger::CellStore::Block::Header::decode | ( | const uint8_t ** | bufp, |
size_t * | remainp | ||
) |
Definition at line 65 of file CellStoreBlockHeader.cc.
References cells_count, checksum_data, SWC::Serialization::decode_i32(), SWC::Serialization::decode_i8(), encoder, size_enc, and size_plain.
Referenced by SWC::Ranger::CellStore::Block::Read::load_header().
SWC_CAN_INLINE void SWC::Ranger::CellStore::Block::Header::decode_idx | ( | const uint8_t ** | bufp, |
size_t * | remainp | ||
) |
Definition at line 98 of file CellStoreBlockHeader.cc.
References cells_count, checksum_data, SWC::DB::Cells::Interval::decode(), SWC::Serialization::decode_i8(), SWC::Serialization::decode_vi32(), SWC::Serialization::decode_vi64(), encoder, interval, is_any, offset_data, size_enc, and size_plain.
Referenced by SWC::Ranger::CellStore::Read::load_blocks_index().
SWC_CAN_INLINE void SWC::Ranger::CellStore::Block::Header::encode | ( | uint8_t ** | bufp | ) |
Definition at line 51 of file CellStoreBlockHeader.cc.
References cells_count, checksum_data, SWC::Core::checksum_i32(), SWC::Serialization::encode_i32(), SWC::Serialization::encode_i8(), encoder, SIZE, size_enc, and size_plain.
Referenced by SWC::Ranger::CellStore::Block::Write::encode().
SWC_CAN_INLINE void SWC::Ranger::CellStore::Block::Header::encode_idx | ( | uint8_t ** | bufp | ) | const |
Definition at line 86 of file CellStoreBlockHeader.cc.
References cells_count, checksum_data, SWC::DB::Cells::Interval::encode(), SWC::Serialization::encode_i8(), SWC::Serialization::encode_vi32(), SWC::Serialization::encode_vi64(), encoder, interval, is_any, offset_data, size_enc, and size_plain.
SWC_CAN_INLINE size_t SWC::Ranger::CellStore::Block::Header::encoded_length_idx | ( | ) | const |
Definition at line 75 of file CellStoreBlockHeader.cc.
References cells_count, checksum_data, SWC::DB::Cells::Interval::encoded_length(), SWC::Serialization::encoded_length_vi32(), SWC::Serialization::encoded_length_vi64(), interval, offset_data, size_enc, and size_plain.
void SWC::Ranger::CellStore::Block::Header::print | ( | std::ostream & | out | ) | const |
Definition at line 109 of file CellStoreBlockHeader.cc.
References cells_count, checksum_data, encoder, interval, is_any, offset_data, size_enc, size_plain, and SWC::Core::Encoder::to_string().
Referenced by SWC::Ranger::CellStore::Block::Read::print(), and SWC::Ranger::CellStore::Block::Write::print().
|
static |
Definition at line 26 of file CellStoreBlockHeader.h.
Referenced by SWC::Ranger::CellStore::create_initial(), SWC::Ranger::CompactRange::finalize(), SWC::Ranger::CompactRange::InBlock::finalize_interval(), SWC::Ranger::CellStore::Read::load_blocks_index(), and SWC::Ranger::CompactRange::write_cells().
|
static |
Definition at line 27 of file CellStoreBlockHeader.h.
Referenced by SWC::Ranger::CellStore::create_initial(), SWC::Ranger::CompactRange::finalize(), SWC::Ranger::CompactRange::InBlock::finalize_interval(), and SWC::Ranger::CellStore::Read::load_blocks_index().
uint32_t SWC::Ranger::CellStore::Block::Header::cells_count |
Definition at line 36 of file CellStoreBlockHeader.h.
Referenced by SWC::Ranger::CompactRange::InBlock::add(), SWC::Ranger::CompactRange::InBlock::cell_avg_size(), decode(), decode_idx(), encode(), encode_idx(), encoded_length_idx(), SWC::Ranger::CompactRange::finalize(), SWC::Ranger::CellStore::Block::Read::load_cells(), SWC::Ranger::CompactRange::InBlock::move_last(), print(), SWC::Ranger::CompactRange::reached_limits(), SWC::Ranger::CellStore::Block::Read::release(), and SWC::Ranger::CompactRange::response().
uint32_t SWC::Ranger::CellStore::Block::Header::checksum_data |
Definition at line 37 of file CellStoreBlockHeader.h.
Referenced by decode(), decode_idx(), encode(), encode_idx(), encoded_length_idx(), SWC::Ranger::CellStore::Block::Read::load_read(), and print().
DB::Types::Encoder SWC::Ranger::CellStore::Block::Header::encoder |
Definition at line 33 of file CellStoreBlockHeader.h.
Referenced by decode(), decode_idx(), SWC::Ranger::CellStore::Block::Write::encode(), encode(), encode_idx(), SWC::Ranger::CompactRange::InBlock::finalize_encode(), SWC::Ranger::CellStore::Block::Read::load_read(), and print().
DB::Cells::Interval SWC::Ranger::CellStore::Block::Header::interval |
Definition at line 30 of file CellStoreBlockHeader.h.
Referenced by SWC::Ranger::CellStore::create_initial(), decode_idx(), encode_idx(), encoded_length_idx(), SWC::Ranger::CompactRange::finalize(), SWC::Ranger::CompactRange::InBlock::finalize_interval(), SWC::Ranger::CellStore::Read::load_blocks_index(), and print().
uint8_t SWC::Ranger::CellStore::Block::Header::is_any |
Definition at line 31 of file CellStoreBlockHeader.h.
Referenced by SWC::Ranger::CellStore::create_initial(), decode_idx(), encode_idx(), SWC::Ranger::CompactRange::finalize(), SWC::Ranger::CompactRange::InBlock::finalize_interval(), SWC::Ranger::CellStore::Read::load_blocks_index(), print(), and SWC::Ranger::CompactRange::write_cells().
uint64_t SWC::Ranger::CellStore::Block::Header::offset_data |
Definition at line 29 of file CellStoreBlockHeader.h.
Referenced by decode_idx(), encode_idx(), encoded_length_idx(), SWC::Ranger::CellStore::Block::Read::load_header(), SWC::Ranger::CellStore::Block::Read::load_open(), and print().
|
static |
Definition at line 24 of file CellStoreBlockHeader.h.
Referenced by SWC::Ranger::CellStore::Write::block_write(), SWC::Ranger::CellStore::Block::Write::encode(), encode(), and SWC::Ranger::CellStore::Block::Read::load_header().
uint32_t SWC::Ranger::CellStore::Block::Header::size_enc |
Definition at line 35 of file CellStoreBlockHeader.h.
Referenced by decode(), decode_idx(), SWC::Ranger::CellStore::Block::Write::encode(), encode(), encode_idx(), encoded_length_idx(), SWC::Ranger::CellStore::Block::Read::load_open(), SWC::Ranger::CellStore::Block::Read::load_read(), and print().
uint32_t SWC::Ranger::CellStore::Block::Header::size_plain |
Definition at line 34 of file CellStoreBlockHeader.h.
Referenced by decode(), decode_idx(), SWC::Ranger::CellStore::Block::Write::encode(), encode(), encode_idx(), encoded_length_idx(), SWC::Ranger::CellStore::Block::Read::load(), SWC::Ranger::CellStore::Block::Read::load_cells(), SWC::Ranger::CellStore::Block::Read::load_finish(), SWC::Ranger::CellStore::Block::Read::load_read(), print(), SWC::Ranger::CellStore::Block::Read::release(), and SWC::Ranger::CellStore::Block::Read::~Read().