xapian-core  2.0.0
Public Member Functions | Private Types | Private Attributes | List of all members
SSTIndex Class Reference

#include <honey_table.h>

+ Collaboration diagram for SSTIndex:

Public Member Functions

 SSTIndex ()
 
 ~SSTIndex ()
 
void maybe_add_entry (std::string_view key, off_t ptr)
 
off_t write (BufferedFile &store)
 
size_t size () const
 

Private Types

enum  { INDEXBLOCK = 4096 }
 

Private Attributes

std::string data
 
SSTIndexparent_index = NULL
 
unsigned char first
 
unsigned char last = static_cast<unsigned char>(-1)
 
off_t * pointers = NULL
 

Detailed Description

Definition at line 340 of file honey_table.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
INDEXBLOCK 

Definition at line 352 of file honey_table.h.

Constructor & Destructor Documentation

◆ SSTIndex()

SSTIndex::SSTIndex ( )
inline

Definition at line 361 of file honey_table.h.

References data.

◆ ~SSTIndex()

SSTIndex::~SSTIndex ( )
inline

Definition at line 373 of file honey_table.h.

References pointers.

Member Function Documentation

◆ maybe_add_entry()

void SSTIndex::maybe_add_entry ( std::string_view  key,
off_t  ptr 
)
inline

◆ size()

size_t SSTIndex::size ( ) const
inline

Definition at line 541 of file honey_table.h.

References data, parent_index, and size().

Referenced by size(), and HoneyTable::~HoneyTable().

◆ write()

off_t SSTIndex::write ( BufferedFile store)
inline

Member Data Documentation

◆ data

std::string SSTIndex::data
private

Definition at line 341 of file honey_table.h.

Referenced by maybe_add_entry(), size(), SSTIndex(), and write().

◆ first

unsigned char SSTIndex::first
private

Definition at line 356 of file honey_table.h.

Referenced by maybe_add_entry(), and write().

◆ last

unsigned char SSTIndex::last = static_cast<unsigned char>(-1)
private

Definition at line 356 of file honey_table.h.

Referenced by maybe_add_entry(), and write().

◆ parent_index

SSTIndex* SSTIndex::parent_index = NULL
private

Definition at line 353 of file honey_table.h.

Referenced by size().

◆ pointers

off_t* SSTIndex::pointers = NULL
private

Definition at line 357 of file honey_table.h.

Referenced by maybe_add_entry(), write(), and ~SSTIndex().


The documentation for this class was generated from the following file: