data: log storage stats after parsing

This commit is contained in:
Eberhard Graether
2015-05-29 16:49:10 +02:00
parent f8d3f14cbd
commit 0153330317
11 changed files with 81 additions and 0 deletions
+11
View File
@@ -34,6 +34,7 @@ SearchIndex::~SearchIndex()
void SearchIndex::clear()
{
m_root.m_nodes.clear();
m_dictionary.clear();
}
size_t SearchIndex::getNodeCount() const
@@ -41,6 +42,16 @@ size_t SearchIndex::getNodeCount() const
return m_root.getNodeCount() - 1;
}
size_t SearchIndex::getCharCount() const
{
return m_dictionary.getCharCount();
}
size_t SearchIndex::getWordCount() const
{
return m_dictionary.getWordCount();
}
Id SearchIndex::getWordId(const std::string& word)
{
return m_dictionary.getWordId(word);