ddc
Macros | Functions | Variables
IndexSetForQueryingStage.cpp File Reference
#include "StdConc.h"
#include "IndexSetForQueryingStage.h"
#include "ConcordAlgorithm.h"
#include "StringIndexator.h"
#include <fcntl.h>
Include dependency graph for IndexSetForQueryingStage.cpp:

Macros

#define OCCDEBUG(x)
 

Functions

void DearchiveOccurrences (const DWORD *in_start, const DWORD *in_end, DWORD *out_start, DWORD &OutCount, bool bEnabled)
 
void CompressOccurrences (const vector< DWORD > &In, vector< DWORD > &Out, bool bEnabled)
 
void CompressPortion (vector< DWORD > &Archive, const vector< DWORD > &Body, DWORD Start, DWORD End, bool bArchiveOccurrences)
 

Variables

const size_t MaxCompressRatio = 5
 
size_t AllBytesRead = 0
 
const DWORD OccurBufferSize = 512
 the size of the buffer, which is used to read occurrences from the disk More...
 

Macro Definition Documentation

◆ OCCDEBUG

#define OCCDEBUG (   x)

Function Documentation

◆ DearchiveOccurrences()

void DearchiveOccurrences ( const DWORD in_start,
const DWORD in_end,
DWORD out_start,
DWORD OutCount,
bool  bEnabled 
)

References DeconvertFromVariableInteger().

Referenced by CIndexSetForQueryingStage::AddOccurs().

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

◆ CompressOccurrences()

void CompressOccurrences ( const vector< DWORD > &  In,
vector< DWORD > &  Out,
bool  bEnabled 
)

References ConvertToVariableInteger().

Referenced by CompressPortion().

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

◆ CompressPortion()

void CompressPortion ( vector< DWORD > &  Archive,
const vector< DWORD > &  Body,
DWORD  Start,
DWORD  End,
bool  bArchiveOccurrences 
)

References CompressOccurrences().

Referenced by CIndexSetForQueryingStage::BuildPeriodsDivisionAndCompress().

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

Variable Documentation

◆ MaxCompressRatio

const size_t MaxCompressRatio = 5

◆ AllBytesRead

size_t AllBytesRead = 0

◆ OccurBufferSize

const DWORD OccurBufferSize = 512

the size of the buffer, which is used to read occurrences from the disk

Referenced by CIndexSetForQueryingStage::AddOccurs(), and CIndexSetForQueryingStage::BuildPeriodsDivisionAndCompress().