CConcIndexatorInvoker is a class for invoking an index process. More...
#include <ConcIndexator.h>
CConcIndexatorInvoker is a class for invoking an index process.
This class was established to start, to stop and to monitor an indexing process. To start it a user should call function CConcIndexatorInvoker::BuildIndex. To stop the process a user should set CConcIndexatorInvoker::m_bStoppedByUser to true.
CConcIndexatorInvoker::CConcIndexatorInvoker | ( | ) |
string CConcIndexatorInvoker::GetTimeStatisticsFileName | ( | string | Path | ) | const [private] |
References MakeFName().
Referenced by WriteTimeStatistics().
string CConcIndexatorInvoker::GetErrorLogFileName | ( | string | Path | ) | const [private] |
References MakeFName().
Referenced by BuildIndex().
void CConcIndexatorInvoker::WriteTimeStatistics | ( | const CConcIndexator & | Indexator, | |
DWORD | CorpusEndTokenNo, | |||
DWORD | MaxTokenCountInOnePeriod | |||
) | const [private] |
References CMyTimeSpanHolder::EndTimer(), CStringIndexator::GetSearchPeriodsCount(), CMyTimeSpanHolder::GetStrRepresentation(), GetTimeStatisticsFileName(), CStringIndexator::m_Path, m_Profiler, and SetCurrMessage().
Referenced by BuildIndex().
bool CConcIndexatorInvoker::FinalizeIndex | ( | CConcIndexator & | Indexator, | |
DWORD | CorpusEndTokenNo, | |||
DWORD | MaxTokenCountInOnePeriod | |||
) | const [private] |
References CStringIndexator::AddInputLoadIndexToMemoryLoadIndex(), CStringIndexator::AddMemoryLoadIndexToMainLoadIndex(), CHitBorders::BordersEndIndexing(), CConcIndexator::CalculateSearchPeriods(), CConcIndexator::CreateMorphIndex(), CMyTimeSpanHolder::EndTimer(), CStringIndexator::FinalSaveAllIndices(), Format(), CHitBorders::GetCorpusEndTokenNo(), CConcIndexator::GetFileNameForCorpusFileNames(), CIndexItem::GetMaximalNumberOfRunningTokens(), CHitBorders::LoadHitBorders(), CStringIndexator::m_Path, m_Profiler, CConcIndexator::NormalEndIndexing(), CConcIndexator::SaveCorpusFileList(), CStringIndexator::SaveMemoryLoadIndex(), SetCurrMessage(), and CMyTimeSpanHolder::StartTimer().
Referenced by BuildIndex().
bool CConcIndexatorInvoker::BuildOnlyMorphIndex | ( | string | ProjectFile | ) | const [private] |
References CConcIndexator::CreateMorphIndex(), Format(), CConcIndexator::LoadProject(), and SetCurrMessage().
Referenced by BuildIndex().
void CConcIndexatorInvoker::SetCurrMessage | ( | string | Message | ) | const |
outputs a message to stdout or to GUI
References m_bStdout, and m_CurrMessage.
Referenced by BuildIndex(), BuildOnlyMorphIndex(), FinalizeIndex(), and WriteTimeStatistics().
bool CConcIndexatorInvoker::BuildIndex | ( | string | ProjectFile | ) |
builds index files for project ProjectFile
References _MAX_PATH, CHitBorders::AddBreakByName(), CStringIndexator::AddInputLoadIndexToMemoryLoadIndex(), CStringIndexator::AddMemoryLoadIndexToMainLoadIndex(), BuildOnlyMorphIndex(), CMyTimeSpanHolder::ClearTimers(), CConcIndexator::DestroyIndex(), CMyTimeSpanHolder::EndTimer(), ErrorMessage(), FinalizeIndex(), Format(), CSourceFileHolder::FoundNotExistedFile(), FreeDwdsThesaurus(), GetErrorLogFileName(), CGraphmatFile::GetLastError(), CIndexItem::GetMaximalNumberOfRunningTokens(), CConcIndexator::GetMaxTokenCountInOnePeriod(), GetPathByFile(), CSourceFileHolder::GetSourceFile(), CSourceFileHolder::GetSourceFilesCount(), CConcIndexator::IndexOneFile(), CConcIndexator::InitGraphanProperties(), IsTarFile(), CGraphmatFile::LoadDicts(), LoadDwdsThesaurus(), CConcIndexator::LoadSourceFilesAndOptions(), m_bCorporaProcessing, m_bOnlyReindexMorphology, CConcIndexator::m_bResumeOnIndexErrors, m_bSkipInitialFileChecking, m_bStoppedByUser, CConcIndexator::m_CorpusFiles, m_CurrentSourceFileName, m_CurrentSourceFileNo, CStringIndexator::m_Path, m_Profiler, m_SourceFilesNumber, CExpc::m_strCause, newhandler(), pDwdsThesaurus, PredefinedFileBreakName, ReadSourceFile(), CStringIndexator::SaveMemoryLoadIndex(), TiXmlBase::SetCondenseWhiteSpace(), SetCurrMessage(), CConcIndexator::StartIndexing(), CMyTimeSpanHolder::StartTimer(), tar_close(), tar_open(), CConcIndexator::TerminateIndexing(), CConcIndexator::UseDwdsThesaurus(), and WriteTimeStatistics().
if true, CConcIndexatorInvoker tries to stop indexing
Referenced by BuildIndex(), CConcIndexatorInvoker(), and CConcHolder::GetAllHits().
if true, indexing is on
Referenced by BuildIndex(), and CConcIndexatorInvoker().
if true, then BuildIndex should only rebuild MorphPattern index
Referenced by BuildIndex(), and CConcIndexatorInvoker().
if true, then there is no initial checking whether the source files exist
Referenced by BuildIndex(), and CConcIndexatorInvoker().
string CConcIndexatorInvoker::m_CurrMessage [mutable] |
the last message from indexing process
Referenced by SetCurrMessage().
should DDC send all messages to stdout
Referenced by CConcIndexatorInvoker(), CConcHolder::GetOccurrences(), and SetCurrMessage().
the index of the currently processing source file
Referenced by BuildIndex(), and CConcIndexatorInvoker().
the number of files to index
Referenced by BuildIndex(), and CConcIndexatorInvoker().
the name of file
Referenced by BuildIndex().
a slot to gather profiling information for loading stage
Referenced by BuildIndex(), CConcIndexatorInvoker(), CQueryTokenNode::EvaluateWithoutHits(), FinalizeIndex(), and WriteTimeStatistics().