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

IncPassagePushIndex Class Reference

Incremental passage push index. More...

#include <IncPassagePushIndex.hpp>

Inheritance diagram for IncPassagePushIndex:

IncFPPushIndex InvFPPushIndex InvPushIndex PushIndex List of all members.

Public Methods

 IncPassagePushIndex (const string &prefix="DefaultIndex", int psgSize=50, int cachesize=128000000, long maxfilesize=2100000000)
 IncPassagePushIndex (int psgSize)
virtual ~IncPassagePushIndex ()
void setPassageSize (int n)
 Set the number of terms per passage.

virtual bool beginDoc (const DocumentProps *dp)
 the beginning of a new document, returns true if initiation was successful

virtual bool addTerm (const Term &t)
 adding a term to the current document, returns true if term was added successfully.

virtual void doendDoc (const DocumentProps *dp, int mgrid)
 signify the end of current document


Detailed Description

Incremental passage push index.

This class builds a incremental passage index assigning termids, docids, tracking locations of term within passages (stopwords not counted). Documents are segmented into passages of size passageSize with an overlap of passageSize/2 terms per passage. It expects that all stopping and stemming (if any) occurs before the term is passed in.


Constructor & Destructor Documentation

IncPassagePushIndex::IncPassagePushIndex const string &    prefix = "DefaultIndex",
int    psgSize = 50,
int    cachesize = 128000000,
long    maxfilesize = 2100000000
 

IncPassagePushIndex::IncPassagePushIndex int    psgSize
 

IncPassagePushIndex::~IncPassagePushIndex   [virtual]
 


Member Function Documentation

bool IncPassagePushIndex::addTerm const Term   t [virtual]
 

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

Reimplemented from InvFPPushIndex.

bool IncPassagePushIndex::beginDoc const DocumentProps   dp [virtual]
 

the beginning of a new document, returns true if initiation was successful

Reimplemented from InvPushIndex.

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

signify the end of current document

Reimplemented from InvFPPushIndex.

void IncPassagePushIndex::setPassageSize int    n
 

Set the number of terms per passage.


The documentation for this class was generated from the following files:
Generated on Wed Nov 3 12:59:38 2004 for Lemur Toolkit by doxygen1.2.18