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

InvFPTextHandler Class Reference

#include <InvFPTextHandler.hpp>

Inheritance diagram for InvFPTextHandler:

TextHandler IncFPTextHandler InvPassageTextHandler IncPassageTextHandler List of all members.

Public Methods

 InvFPTextHandler ()
 InvFPTextHandler (const string &filename, int bufferSize, bool countStopWds=false, int ind=1)
 ~InvFPTextHandler ()
char * handleDoc (char *docno)
 Pushes the doc into the InvFPPushIndex.

char * handleWord (char *word)
 Pushes the word into the InvFPPushIndex.

void setDocManager (const string &mgrID)
 passes mgrID onto index


Protected Methods

void endDoc ()
 Ends a document in the collection.


Protected Attributes

PushIndexindex
 The indexer.

DocumentPropsdp
 Document properties object to be reused over repeated calls.

InvFPTermterm
 Term object to be reused over repeated calls.

int docLength
 Keeps track of document length.

int pos
 Keeps track of term positions.

bool countStopWds
 Indicates whether or not to count stop words in doc length.

bool first

Detailed Description

InvFPTextHandler builds an InvFPIndex using InvFPPushIndex. This class is a destination TextHandler.


Constructor & Destructor Documentation

InvFPTextHandler::InvFPTextHandler   [inline]
 

InvFPTextHandler::InvFPTextHandler const string &    filename,
int    bufferSize,
bool    countStopWds = false,
int    ind = 1
 

Create a InvFPTextHandler with index name filename (minus the .ifp extension) and specified buffer size.

InvFPTextHandler::~InvFPTextHandler  
 


Member Function Documentation

void InvFPTextHandler::endDoc   [protected]
 

Ends a document in the collection.

char * InvFPTextHandler::handleDoc char *    docno [virtual]
 

Pushes the doc into the InvFPPushIndex.

Reimplemented from TextHandler.

char * InvFPTextHandler::handleWord char *    word [virtual]
 

Pushes the word into the InvFPPushIndex.

Reimplemented from TextHandler.

void InvFPTextHandler::setDocManager const string &    mgrID
 

passes mgrID onto index


Member Data Documentation

bool InvFPTextHandler::countStopWds [protected]
 

Indicates whether or not to count stop words in doc length.

int InvFPTextHandler::docLength [protected]
 

Keeps track of document length.

DocumentProps* InvFPTextHandler::dp [protected]
 

Document properties object to be reused over repeated calls.

bool InvFPTextHandler::first [protected]
 

Indicates whether object is before first doc true = yes, false = foundDoc has been called once.

PushIndex* InvFPTextHandler::index [protected]
 

The indexer.

int InvFPTextHandler::pos [protected]
 

Keeps track of term positions.

InvFPTerm* InvFPTextHandler::term [protected]
 

Term object to be reused over repeated calls.


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