Main Page   Namespace List   Class Hierarchy   Alphabetical List   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 (const char *initQuery)
void setDBManager (const DBManager *database)
 Set the dstabase manager.

const DBManager * getDBManager () const
void setFreqCounter (FreqCounter *counter)
const FreqCounter * getFreqCounter () const
void setOutputPrefix (const string &prefix)
const string & getOutputPrefix () const
void setNumDocs (int n)
int getNumDocs () const
void setNumWords (int n)
int getNumWords () const
void setNumQueries (int n)
int getNumQueries () const
void setTermMode (int m)
int getTermMode () const
void setDocsPerQuery (int n)
int getDocsPerQuery () const


Detailed Description

Manages the sampling of documents from a database.


Constructor & Destructor Documentation

QryBasedSampler::QryBasedSampler (    ) 
 

QryBasedSampler::~QryBasedSampler (    ) 
 


Member Function Documentation

const DBManager * QryBasedSampler::getDBManager (    ) 
 

Get a reference to the database manager.

int QryBasedSampler::getDocsPerQuery (    ) 
 

Get the number of documents per query used.

const 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.

const string & QryBasedSampler::getOutputPrefix (    ) 
 

Get the output prefix.

int QryBasedSampler::getTermMode (    ) 
 

Get the termination mode.

bool QryBasedSampler::probe (  const char *    initQuery ) 
 

Probe the database, using initQuery as the initial query.

void QryBasedSampler::setDBManager (  const 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 (  const string &    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 on Wed Nov 3 12:59:52 2004 for Lemur Toolkit by doxygen1.2.18