#include <QryBasedSampler.hpp>
Public Member Functions | |
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 |
Private Attributes | |
const DBManager * | db |
FreqCounter * | freqCounter |
string | outputPrefix |
int | termMode |
int | numDocs |
int | numWords |
int | numQueries |
int | docsPerQuery |
docidset | seenDocs |
|
|
|
|
|
Get a reference to the database manager. |
|
Get the number of documents per query used. |
|
Get a reference to the frequency counter. |
|
Get the number of unique documents to retrieve. |
|
Get the number of queries to run. |
|
Get the number of unique words to retrieve. |
|
Get the output prefix. |
|
Get the termination mode. |
|
Probe the database, using initQuery as the initial query. |
|
Set the dstabase manager.
|
|
Set the number of documents per query to use. |
|
Set the frequency counter - this handles building the database description from documents. |
|
Set the number of unique documents to retrieve. |
|
Set the number of queries to run. |
|
Set the number of unique words to retrieve. |
|
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. |
|
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 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|