Public Member Functions | Public Attributes | Private Member Functions | Private Attributes

CIndexSetForBigrams Class Reference

#include <ConcBigrams.h>

Inheritance diagram for CIndexSetForBigrams:
Inheritance graph
[legend]
Collaboration diagram for CIndexSetForBigrams:
Collaboration graph
[legend]

List of all members.

Public Member Functions

Public Attributes

Private Member Functions

Private Attributes


Constructor & Destructor Documentation

CIndexSetForBigrams::CIndexSetForBigrams ( const CStringIndexator pParent  ) 

the temp index(used only for bigrams)

References CIndexSetForQueryingStage::m_bCompressOccurrences.

CIndexSetForBigrams::~CIndexSetForBigrams (  )  [virtual]

Member Function Documentation

void CIndexSetForBigrams::WriteBigramAndItsOccurs ( CSecondWord I,
const DWORD  BigramId,
CItemIndexForLoading M,
FILE *  res_fp,
size_t &  CurrPositionInResFile,
FILE *  second_word_fp 
) [private]
bool CIndexSetForBigrams::CreateRightBigrams ( string  TempRightBigramsFileName  )  [private]
string CIndexSetForBigrams::GetRightToLeftPerdiv (  )  const [private]

References CStringIndexator::m_Path, CIndexSetForQueryingStage::m_pParent, and MakeFName().

Referenced by CreateRightBigrams(), DestroyIndexSet(), and LoadIndexSet().

Here is the call graph for this function:

Here is the caller graph for this function:

string CIndexSetForBigrams::GetName (  )  const [virtual]

return the name of the index (CStringIndexSet::m_Name)

Implements CIndexSetForQueryingStage.

bool CIndexSetForBigrams::DestroyIndexSet (  ) 

destroy index set and remove index files

Reimplemented from CIndexSetForQueryingStage.

References CIndexSetForQueryingStage::DestroyIndexSet(), GetRightToLeftPerdiv(), m_LeftBigrams, m_RightBigrams, CIndexBigram::RemoveFiles(), and RemoveWithPrint().

Referenced by CStringIndexSet::DestroyIndexSet().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CIndexSetForBigrams::LoadIndexSet (  ) 

References FileExists(), GetRightToLeftPerdiv(), CIndexBigram::LoadBigrams(), m_LeftBigrams, m_RightBigrams, m_RightToLeftPerdivIds, and ReadVector().

Referenced by CStringIndexSet::ReadFromTheDisk(), and CStringIndexSet::WriteToFile().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CIndexSetForBigrams::ConvertTempBigramsToPersistent ( string  TempBigramsFileName,
const vector< CIndexItem > &  MainTokenIndex 
)
void CIndexSetForBigrams::FindOccurrencesForBigrams ( const BigramDirectionEnum  bigr_direc,
const vector< DWORD > &  IndexItems,
const size_t  PeriodNo,
vector< pair< CTokenNo, DWORD > > &  occurrences,
CShortOccurCacheMap pCaches,
vector< int > &  CacheIds 
) const

the same as FindOccurrences, but save the idx of token to the second part of the occurrences's items

References CIndexSetForQueryingStage::AddOccurs(), bdRightBigram, CSecondWord::m_Distance, CSecondWord::m_EndOccurOffset, CSecondWord::m_EndOfSentenceFlag, m_LeftBigrams, m_RightBigrams, m_RightToLeftPerdivIds, CSecondWord::m_SecondWordId, CSecondWord::m_StartOccur, CSecondWord::m_TheOnlyOccur, and CIndexBigram::ReadSecondWords().

Referenced by CQueryTokenNode::EvaluateWithoutHits().

Here is the call graph for this function:

Here is the caller graph for this function:

void CIndexSetForBigrams::ReadAllOccurrences ( size_t  IndexItemNo,
const CSecondWord I,
vector< CTokenNo > &  Occurs 
) const

read all occurrences of IndexItemN

References CIndexSetForQueryingStage::AddOccurs(), CStringIndexator::GetSearchPeriodsCount(), CSecondWord::m_EndOccurOffset, CIndexSetForQueryingStage::m_pParent, CSecondWord::m_StartOccur, and CSecondWord::m_TheOnlyOccur.

Referenced by CStringIndexSet::DumpBigramsOfOneDirection().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation


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