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

InvFPPushIndex Class Reference

Example Class for push method of building an index. More...

#include <InvFPPushIndex.hpp>

Inheritance diagram for InvFPPushIndex:

InvPushIndex PushIndex List of all members.

Public Methods

 InvFPPushIndex (char *prefix="DefaultIndex",int cachesize=128000000,long maxfilesize=2100000000,DOCID_T startdocid=1)
 ~InvFPPushIndex ()
bool addTerm (Term &t)
 adding a term to the current document, returns true if term was added successfully.

void endCollection (CollectionProps *cp)
 signify the end of this collection. properties passed at the beginning of a collection should be handled by the constructor.


Protected Methods

void writeTOC (int numinv)
void doendDoc (DocumentProps *dp,int mgrid)
 signify the end of current document.


Protected Attributes

vector<LocatedTermtermlist
 table of all terms and their doclists.


Detailed Description

Example Class for 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.


Constructor & Destructor Documentation

InvFPPushIndex::InvFPPushIndex ( char * prefix = "DefaultIndex",
int cachesize = 128000000,
long maxfilesize = 2100000000,
DOCID_T startdocid = 1 )
 

InvFPPushIndex::~InvFPPushIndex ( )
 


Member Function Documentation

bool InvFPPushIndex::addTerm ( Term & t ) [virtual]
 

adding a term to the current document, returns true if term was added successfully.

Reimplemented from InvPushIndex.

void InvFPPushIndex::doendDoc ( DocumentProps * dp,
int mgrid ) [protected, virtual]
 

signify the end of current document.

Reimplemented from InvPushIndex.

void InvFPPushIndex::endCollection ( CollectionProps * cp ) [virtual]
 

signify the end of this collection. properties passed at the beginning of a collection should be handled by the constructor.

Reimplemented from InvPushIndex.

void InvFPPushIndex::writeTOC ( int numinv ) [protected]
 

Reimplemented from InvPushIndex.


Member Data Documentation

vector< LocatedTerm > InvFPPushIndex::termlist [protected]
 

table of all terms and their doclists.

Reimplemented from InvPushIndex.


The documentation for this class was generated from the following files:
Generated at Fri Jul 26 18:27:02 2002 for LEMUR by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000