#include <IncFPPushIndex.hpp>
Inheritance diagram for IncFPPushIndex:
Public Methods | |
IncFPPushIndex (char *prefix, int cachesize=128000000, long maxfilesize=2100000000, DOCID_T startdocid=1) | |
Private Methods | |
bool | tryOpen (char *name) |
try to open the index | |
bool | readToc (char *name) |
read the table of contents (.ifp) file. | |
void | readInvFileIDs () |
read the inverted file ids. | |
void | readDtFileIDs () |
read the dt file ids. | |
void | readDocMgrIDs () |
read the document manager ids. | |
void | readTermIDs () |
read the term ids. | |
void | readDocIDs () |
read the docids. | |
Private Attributes | |
char * | invfpF |
existing index filenames | |
char * | dtF |
existing index filenames | |
char * | dmgrF |
existing index filenames | |
char * | didF |
existing index filenames | |
char * | tidF |
existing index filenames |
This class builds an index assigning termids, docids, tracking locations of term within documents, and tracking terms within documents. It also expects a DocumentProp to have the total number of terms that were in a document. It expects that all stopping and stemming (if any) occurs before the term is passed in. If used with an existing index, new documents are added incrementally.
|
opens the index named by prefix, if it exists, and initializes the state of the indexer to begin adding new documents. |
|
read the docids.
|
|
read the document manager ids.
|
|
read the dt file ids.
|
|
read the inverted file ids.
|
|
read the term ids.
|
|
read the table of contents (.ifp) file.
|
|
try to open the index
|
|
existing index filenames
|
|
existing index filenames
|
|
existing index filenames
|
|
existing index filenames
|
|
existing index filenames
|