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:

Functions

Variables


Function Documentation

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:

void ReadOccurrences ( FILE *  OccursFp,
CTokenNo OutBuffer,
file_off_t  FilePosition,
size_t  Count 
)

References AllBytesRead, errReadOccurrenceFile, Format(), and FSeek().

Referenced by CIndexSetForQueryingStage::AddOccurs().

Here is the call graph for this function:

Here is the caller graph for this function:

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:

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

const size_t MaxCompressRatio = 5
size_t AllBytesRead = 0

Referenced by ReadOccurrences().

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().