#include <IndexWithCat.hpp>
Inheritance diagram for IndexWithCat:
Public Methods | |
Extra spelling and index conversion that are not in Index | |
virtual int | category (const char *catIDStr)=0 |
Convert a spelling to catID. | |
virtual const char* | category (int catID)=0 |
Convert a catID to its spelling. | |
Extra summary counts not in Index | |
virtual int | catCount ()=0 |
Total counts of categories. | |
virtual int | docCountInCat (int catID)=0 |
Total counts of documents in a category. | |
Category Index entry access (Cat X Doc) | |
virtual void | startCatIDIteration (int docID)=0 |
virtual bool | hasMoreCatID ()=0 |
virtual int | nextCatID ()=0 |
Iteration over all category ids that a doc belongs to. More... | |
virtual void | startDocIDIteration (int catID)=0 |
virtual bool | hasMoreDocID ()=0 |
virtual int | nextDocID ()=0 |
Iteration over all doc ids that belong to a given category. More... |
IndexWithCat extends Index with document category information. In addition to what is supported by Index, it adds support of looking up all categories for a document and looking up all documents for a category. It is typically used by a text categorization application.
|
Total counts of categories.
Reimplemented in BasicIndexWithCat. |
|
Convert a catID to its spelling.
Reimplemented in BasicIndexWithCat. |
|
Convert a spelling to catID.
Reimplemented in BasicIndexWithCat. |
|
Total counts of documents in a category.
Reimplemented in BasicIndexWithCat. |
|
Reimplemented in BasicIndexWithCat. |
|
Reimplemented in BasicIndexWithCat. |
|
Iteration over all category ids that a doc belongs to. startCatIDIteration, hasMoreCatID, and nextCatID go together to support iteration over category ids that a document has. Reimplemented in BasicIndexWithCat. |
|
Iteration over all doc ids that belong to a given category. startDocIDIteration, hasMoreDocID, and nextDocID go together to support iteration over all doc ids in a given category Reimplemented in BasicIndexWithCat. |
|
Reimplemented in BasicIndexWithCat. |
|
Reimplemented in BasicIndexWithCat. |