Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

IncFPPushIndex Class Reference

Incremental push method of building an index. More...

#include <IncFPPushIndex.hpp>

Inheritance diagram for IncFPPushIndex:

InvFPPushIndex InvPushIndex PushIndex IncPassagePushIndex List of all members.

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


Detailed Description

Incremental push method of building an index.

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.


Constructor & Destructor Documentation

IncFPPushIndex::IncFPPushIndex char *    prefix,
int    cachesize = 128000000,
long    maxfilesize = 2100000000,
DOCID_T    startdocid = 1
 

opens the index named by prefix, if it exists, and initializes the state of the indexer to begin adding new documents.


Member Function Documentation

void IncFPPushIndex::readDocIDs   [private]
 

read the docids.

void IncFPPushIndex::readDocMgrIDs   [private]
 

read the document manager ids.

void IncFPPushIndex::readDtFileIDs   [private]
 

read the dt file ids.

void IncFPPushIndex::readInvFileIDs   [private]
 

read the inverted file ids.

void IncFPPushIndex::readTermIDs   [private]
 

read the term ids.

bool IncFPPushIndex::readToc char *    name [private]
 

read the table of contents (.ifp) file.

bool IncFPPushIndex::tryOpen char *    name [private]
 

try to open the index


Member Data Documentation

char * IncFPPushIndex::didF [private]
 

existing index filenames

char * IncFPPushIndex::dmgrF [private]
 

existing index filenames

char * IncFPPushIndex::dtF [private]
 

existing index filenames

char* IncFPPushIndex::invfpF [private]
 

existing index filenames

char * IncFPPushIndex::tidF [private]
 

existing index filenames


The documentation for this class was generated from the following files:
Generated on Fri Feb 6 07:12:01 2004 for LEMUR by doxygen1.2.16