ddc
Classes | Typedefs | Functions | Variables
IndexSetForQueryingStage.h File Reference
#include "../CommonLib/bserialize.h"
#include "../CommonLib/ddcThread.h"
#include "../CommonLib/ddcMMap.h"
Include dependency graph for IndexSetForQueryingStage.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CIndexItem
 
class  CIndexSetForQueryingStage
 

Typedefs

typedef ddcMapFile< DWORD, DWORDPeriodsDivisionMapT
 a type for mappping an index item no to its period division More...
 
typedef PeriodsDivisionMapT::MapT PeriodsDivisionMapR
 low-level resident std::map<> implementation in PeriodsDivisionMap::m_map More...
 
typedef PeriodsDivisionMapT::RecFileT PeriodsDivisionMapV
 low-level virtual mmap()-based implementation in PeriodsDivisionMap::m_rfile More...
 
typedef ddcVecFile< DWORDCSuffixIndex
 

Functions

size_t get_size_in_bytes (const CIndexItem &t)
 
size_t save_to_bytes (const CIndexItem &i, BYTE *buf)
 
size_t restore_from_bytes (CIndexItem &i, const BYTE *buf)
 

Variables

const DWORD TheOnlyOccurIsInEndOccurNo = 1 << 31
 
const DWORD AllFlags = TheOnlyOccurIsInEndOccurNo
 

Typedef Documentation

◆ PeriodsDivisionMapT

a type for mappping an index item no to its period division

◆ PeriodsDivisionMapR

low-level resident std::map<> implementation in PeriodsDivisionMap::m_map

◆ PeriodsDivisionMapV

low-level virtual mmap()-based implementation in PeriodsDivisionMap::m_rfile

◆ CSuffixIndex

CSuffixIndex is a vector of Item-IDs sorted in ascending order by reverse string-value, for fast binary search of string-suffixes.

Function Documentation

◆ get_size_in_bytes()

size_t get_size_in_bytes ( const CIndexItem t)
inline

Referenced by restore_from_bytes(), and save_to_bytes().

Here is the caller graph for this function:

◆ save_to_bytes()

size_t save_to_bytes ( const CIndexItem i,
BYTE buf 
)
inline

References get_size_in_bytes(), CIndexItem::GetEndOccurOffset(), and CIndexItem::GetIndexItemOffsetAndFlags().

Here is the call graph for this function:

◆ restore_from_bytes()

size_t restore_from_bytes ( CIndexItem i,
const BYTE buf 
)
inline

References get_size_in_bytes(), CIndexItem::SetEndOccurOffset(), and CIndexItem::SetIndexItemOffsetAndFlags().

Here is the call graph for this function:

Variable Documentation

◆ TheOnlyOccurIsInEndOccurNo

const DWORD TheOnlyOccurIsInEndOccurNo = 1 << 31

◆ AllFlags