#include <QryBasedSampler.hpp>
Public Methods | |
| QryBasedSampler () | |
| ~QryBasedSampler () | |
| bool | probe (char *initQuery) |
| void | setDBManager (DBManager *database) |
| Set the dstabase manager. | |
| DBManager * | getDBManager () |
| void | setFreqCounter (FreqCounter *counter) |
| FreqCounter * | getFreqCounter () |
| 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 () |
Private Attributes | |
| DBManager * | db |
| FreqCounter * | freqCounter |
| char * | 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 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.16