data: log storage stats after parsing
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user