Tkrzw
Classes | Namespaces | Functions
tkrzw_dbm_hash_impl.h File Reference

Implementation components for the hash database manager. More...

#include <iostream>
#include <limits>
#include <mutex>
#include <set>
#include <string>
#include <string_view>
#include <vector>
#include <cinttypes>
#include <cstdarg>
#include "tkrzw_compress.h"
#include "tkrzw_dbm.h"
#include "tkrzw_file.h"
#include "tkrzw_hash_util.h"
#include "tkrzw_lib_common.h"
#include "tkrzw_str_util.h"
#include "tkrzw_thread_util.h"

Classes

class  tkrzw::HashRecord
 Key and value record structure in the file hash database. More...
 
class  tkrzw::OffsetReader
 Reader of a sequence of offsets. More...
 
struct  tkrzw::FreeBlock
 Free block structure. More...
 
class  tkrzw::FreeBlockPool
 Registry of free blocks. More...
 

Namespaces

 tkrzw
 Common namespace of Tkrzw.
 

Functions

uint32_t tkrzw::MagicChecksum (const char *key_buf, size_t key_size, const char *value_buf, size_t value_size)
 Calculates the checksum of the record data to store in the record magic data. More...
 
std::string_view tkrzw::CallRecordProcessFull (DBM::RecordProcessor *proc, std::string_view key, std::string_view old_value, std::string_view *new_value_orig, Compressor *compressor, ScopedStringView *comp_data_placeholder)
 Calls the ProcessFull method of a record processor with compression and decompression. More...
 
std::string_view tkrzw::CallRecordProcessEmpty (DBM::RecordProcessor *proc, std::string_view key, std::string_view *new_value_orig, Compressor *compressor, ScopedStringView *comp_data_placeholder)
 Calls the ProcessEmpty method of a record processor with compression. More...
 

Detailed Description

Implementation components for the hash database manager.