Main Page   Namespace List   Class Hierarchy   Alphabetical List   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 IncFPPushIndex InvPassagePushIndex IncPassagePushIndex List of all members.

Public Methods

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

void endCollection (const 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 (const 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   [inline]
 

InvFPPushIndex::InvFPPushIndex const string &    prefix,
int    cachesize = 128000000,
long    maxfilesize = 2100000000,
DOCID_T    startdocid = 1
 

InvFPPushIndex::~InvFPPushIndex  
 


Member Function Documentation

bool InvFPPushIndex::addTerm const Term   t [virtual]
 

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

Reimplemented from InvPushIndex.

Reimplemented in IncPassagePushIndex, and InvPassagePushIndex.

void InvFPPushIndex::doendDoc const DocumentProps   dp,
int    mgrid
[protected, virtual]
 

signify the end of current document

Reimplemented from InvPushIndex.

Reimplemented in IncPassagePushIndex, and InvPassagePushIndex.

void InvFPPushIndex::endCollection const 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 on Wed Nov 3 12:59:41 2004 for Lemur Toolkit by doxygen1.2.18