#include <LemurDBManager.hpp>
Inheritance diagram for lemur::distrib::LemurDBManager:
Public Member Functions | |
void | open (const string &dbname) |
results_t * | query (const char *query, int numdocs) const |
Query the database. | |
MemParser * | getParser () const |
doc_t * | getDoc (const docid_t docid) const |
Get a document given its document id. | |
void | output (const docid_t docid) const |
Write a document to file. | |
void | setOutputFile (const string &filename) const |
Set output file name. | |
void | close () |
Close the database. | |
Private Attributes | |
lemur::api::Index * | index |
lemur::api::RetrievalMethod * | model |
lemur::api::ScoreAccumulator * | accumulator |
lemur::api::IndexedRealVector * | results |
LemurMemParser * | parser |
ofstream * | outfile |
|
Close the database.
Implements lemur::distrib::DBManager. |
|
Get a document given its document id.
Implements lemur::distrib::DBManager. |
|
Get the parser for the database. (This should always return the same parser.) Implements lemur::distrib::DBManager. |
|
Open a Lemur database - The dbname is a parameter file which specifies retrieval parameters as with RetEval. Implements lemur::distrib::DBManager. |
|
Write a document to file.
Implements lemur::distrib::DBManager. |
|
Query the database.
Implements lemur::distrib::DBManager. |
|
Set output file name.
Implements lemur::distrib::DBManager. |
|
|
|
|
|
|
|
|
|
|
|
|