CQueryTokenNode is a class which corresponds to one token or it's singular property (for example lemma). More...
#include <QueryNode.h>
CQueryTokenNode is a class which corresponds to one token or it's singular property (for example lemma).
CQueryTokenNode::CQueryTokenNode | ( | int | NodeIndex | ) |
References CQueryNode::m_bAtomic, m_bChunk, and m_NodeIndex.
CQueryTokenNode::~CQueryTokenNode | ( | ) | [virtual] |
bool CQueryTokenNode::BuildRegExp | ( | string | RegExpStr, | |
vector< DWORD > & | IndexItems | |||
) | [private] |
References CStringIndexator::GetIndexByName(), CConcIndexator::GetRegexOptions(), m_IndexName, CQueryNode::m_pHolder, CConcHolder::m_pIndexator, and CStringIndexSet::QueryTokenListUsingRegExp().
Referenced by CreateChunkPattern(), CreateMorphAnnotationPattern(), CreateNodeByIndexName(), CreateThesPattern(), and CreateTokenPattern().
bool CQueryTokenNode::CreateTokenPattern | ( | const CConcHolder * | pHolder, | |
const char * | src, | |||
bool | bRegularExpession, | |||
bool | bExact = false | |||
) |
create pattern which is associated with "Token" index
References AddFormsWithDifferentRegisters(), BuildRegExp(), CStringIndexator::GetIndexByName(), GetWordForms(), CConcIndexator::m_bCaseSensitive, CConcIndexator::m_bDisableDefaultQueryLexicalExpansion, m_IndexItems, m_IndexName, CConcIndexator::m_Language, CQueryNode::m_pHolder, CConcHolder::m_pIndexator, CQueryNode::m_Source, CStringIndexSet::QueryTokenList(), CStringIndexSet::QueryTokenListWithRightTruncation(), RmlMakeLower(), and CQueryNode::SetHolder().
Referenced by yyqparse().
bool CQueryTokenNode::CreateThesPattern | ( | const CConcHolder * | pHolder, | |
const char * | src | |||
) |
create pattern which is associated with "Thes" index
References BuildRegExp(), m_IndexItems, m_IndexName, CConcIndexator::m_Language, CConcHolder::m_pIndexator, CQueryNode::m_Source, RmlMakeUpper(), and CQueryNode::SetHolder().
Referenced by yyqparse().
bool CQueryTokenNode::CreateMorphAnnotationPattern | ( | const CConcHolder * | pHolder, | |
const char * | src, | |||
const char * | IndexName | |||
) |
create pattern which is associated with "MorphPattern" or "Lemma" index
References BuildRegExp(), CConcIndexator::GetIndexItemSetByVectorString(), m_IndexItems, m_IndexName, CQueryNode::m_pHolder, CConcHolder::m_pIndexator, CQueryNode::m_Source, and CQueryNode::SetHolder().
Referenced by yyqparse().
bool CQueryTokenNode::CreateFileList | ( | const CConcHolder * | pHolder, | |
const char * | src | |||
) |
create pattern which is associated with "Token" index, loading search tokens from a file
References AddFormsWithDifferentRegisters(), CStringIndexator::GetIndexByName(), CConcIndexator::m_bCaseSensitive, m_IndexItems, m_IndexName, CConcIndexator::m_Language, CQueryNode::m_pHolder, CConcHolder::m_pIndexator, CQueryNode::m_Source, CStringIndexSet::QueryTokenList(), CQueryNode::SetHolder(), and Trim().
Referenced by yyqparse().
bool CQueryTokenNode::CreateChunkPattern | ( | const CConcHolder * | pHolder, | |
const char * | ChunkTypeStr | |||
) |
create pattern which is associated with "Chunk" index
References BuildRegExp(), ChunkIndexName, CQueryNode::m_bAtomic, m_bChunk, m_IndexItems, m_IndexName, CStringIndexator::m_pChunkIndex, CConcHolder::m_pIndexator, CQueryNode::m_Source, and CQueryNode::SetHolder().
Referenced by yyqparse().
bool CQueryTokenNode::CreateNodeByIndexName | ( | const CConcHolder * | pHolder, | |
const char * | IndexName, | |||
const char * | Value, | |||
bool | bRegularExpession | |||
) |
create pattern which is associated with "IndexName" index ( a generalized version)
References BuildRegExp(), CStringIndexator::GetIndexByNameOrShortName(), m_IndexItems, m_IndexName, CStringIndexSet::m_Name, CConcHolder::m_pIndexator, CQueryNode::m_Source, CStringIndexSet::QueryTokenList(), and CQueryNode::SetHolder().
Referenced by yyqparse().
void CQueryTokenNode::EvaluateWithoutHits | ( | ) | [virtual] |
Reimplemented from CQueryNode.
References bdDontUseBigrams, CQueryNode::ClearAndReserveOccurrences(), CStringIndexSet::FindChunkOccurrences(), CStringIndexSet::FindOccurrences(), CIndexSetForBigrams::FindOccurrencesForBigrams(), CConcHolder::GetBigramsToOrder(), CStringIndexator::GetIndexByName(), GetOccurrencesSize, m_bChunk, CStringIndexSet::m_BigramsIndex, CQueryNode::m_bUseNodeIndices, CQueryNode::m_bUseTokenIdxs, CQueryNode::m_CacheIds, CQueryNode::m_ChunkLengths, CConcHolder::m_CurrentSearchPeriodNo, m_IndexItems, m_IndexName, m_NodeIndex, CQueryNode::m_OccurrenceNodeIndices, CQueryNode::m_Occurrences, CQueryNode::m_OccurrenceTokenIdxs, CStringIndexator::m_pChunkIndex, CQueryNode::m_pHolder, CConcHolder::m_pIndexator, CConcIndexatorInvoker::m_Profiler, CConcHolder::m_ShortOccurCaches, and CIndexSetForLoadingStage::UseBigrams().
Referenced by Evaluate().
void CQueryTokenNode::Evaluate | ( | ) | [virtual] |
Reimplemented from CQueryNode.
References CQueryNode::ConvertOccurrencesToHits(), CQueryNode::ConvertOccurrencesToHitsForPatterns(), EvaluateWithoutHits(), and m_bChunk.
size_t CQueryTokenNode::GetNodeFrequenceByNodeIndex | ( | size_t | NodeIndex | ) | const [virtual] |
Reimplemented from CQueryNode.
References m_NodeIndex, and CQueryNode::m_Occurrences.
vector<DWORD> CQueryTokenNode::m_IndexItems [private] |
find index items in the index which is called m_IndexName
Referenced by CreateChunkPattern(), CreateFileList(), CreateMorphAnnotationPattern(), CreateNodeByIndexName(), CreateThesPattern(), CreateTokenPattern(), and EvaluateWithoutHits().
string CQueryTokenNode::m_IndexName [private] |
bool CQueryTokenNode::m_bChunk [private] |
Referenced by CQueryTokenNode(), CreateChunkPattern(), Evaluate(), and EvaluateWithoutHits().
Referenced by CQueryTokenNode(), EvaluateWithoutHits(), and GetNodeFrequenceByNodeIndex().