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

QryBasedSampler Class Reference

#include <QryBasedSampler.hpp>

List of all members.

Public Methods

 QryBasedSampler ()
 ~QryBasedSampler ()
bool probe (char *initQuery)
void setDBManager (DBManager *database)
 Set the dstabase manager.

DBManagergetDBManager ()
void setFreqCounter (FreqCounter *counter)
FreqCountergetFreqCounter ()
void setOutputPrefix (char *prefix)
char* getOutputPrefix ()
void setNumDocs (int n)
int getNumDocs ()
void setNumWords (int n)
int getNumWords ()
void setNumQueries (int n)
int getNumQueries ()
void setTermMode (int m)
int getTermMode ()
void setDocsPerQuery (int n)
int getDocsPerQuery ()


Detailed Description

Manages the sampling of documents from a database.


Constructor & Destructor Documentation

QryBasedSampler::QryBasedSampler ( )
 

QryBasedSampler::~QryBasedSampler ( )
 


Member Function Documentation

DBManager * QryBasedSampler::getDBManager ( )
 

Get a reference to the database manager.

int QryBasedSampler::getDocsPerQuery ( )
 

Get the number of documents per query used.

FreqCounter * QryBasedSampler::getFreqCounter ( )
 

Get a reference to the frequency counter.

int QryBasedSampler::getNumDocs ( )
 

Get the number of unique documents to retrieve.

int QryBasedSampler::getNumQueries ( )
 

Get the number of queries to run.

int QryBasedSampler::getNumWords ( )
 

Get the number of unique words to retrieve.

char * QryBasedSampler::getOutputPrefix ( )
 

Get the output prefix.

int QryBasedSampler::getTermMode ( )
 

Get the termination mode.

bool QryBasedSampler::probe ( char * initQuery )
 

Probe the database, using initQuery as the initial query.

void QryBasedSampler::setDBManager ( DBManager * database )
 

Set the dstabase manager.

void QryBasedSampler::setDocsPerQuery ( int n )
 

Set the number of documents per query to use.

void QryBasedSampler::setFreqCounter ( FreqCounter * counter )
 

Set the frequency counter - this handles building the database description from documents.

void QryBasedSampler::setNumDocs ( int n )
 

Set the number of unique documents to retrieve.

void QryBasedSampler::setNumQueries ( int n )
 

Set the number of queries to run.

void QryBasedSampler::setNumWords ( int n )
 

Set the number of unique words to retrieve.

void QryBasedSampler::setOutputPrefix ( char * prefix )
 

Set the ouput prefix - this prepended to the file names for documents and models. Documents are stored in prefix.docs and the model for a db is stored in prefix.model.

void QryBasedSampler::setTermMode ( int m )
 

Set the termination mode. To specify a disjunction of conditions, OR the modes together.

T_NDOCS - terminate on number of unique docs retrieved T_NWORDS - terminate on number of unique words retrieved T_NQRYS = terminate on number of quries run


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