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

lemur::distrib::DBManager Class Reference

#include <DBManager.hpp>

Inheritance diagram for lemur::distrib::DBManager:

lemur::distrib::LemurDBManager List of all members.

Public Member Functions

virtual void open (const string &info)=0
virtual void close ()=0
virtual results_tquery (const char *query, int numdocs) const =0
 Query a database.

virtual MemParsergetParser () const =0
 Get a parser that can parse this database's documents.

virtual doc_tgetDoc (const docid_t docid) const =0
 Get a document from the database.

virtual void output (const docid_t docid) const =0
 Append a document to file.

virtual void setOutputFile (const string &filename) const =0
 Set output file name.


Detailed Description

An abstract wrapper for database access. For use with the QryBasedSampler. Provides an interface for basic access - querying, accessing documents, and providing a document parser.


Member Function Documentation

virtual void lemur::distrib::DBManager::close  )  [pure virtual]
 

Implemented in lemur::distrib::LemurDBManager.

virtual doc_t* lemur::distrib::DBManager::getDoc const docid_t  docid  )  const [pure virtual]
 

Get a document from the database.

Implemented in lemur::distrib::LemurDBManager.

virtual MemParser* lemur::distrib::DBManager::getParser  )  const [pure virtual]
 

Get a parser that can parse this database's documents.

Implemented in lemur::distrib::LemurDBManager.

virtual void lemur::distrib::DBManager::open const string &  info  )  [pure virtual]
 

Implemented in lemur::distrib::LemurDBManager.

virtual void lemur::distrib::DBManager::output const docid_t  docid  )  const [pure virtual]
 

Append a document to file.

Implemented in lemur::distrib::LemurDBManager.

virtual results_t* lemur::distrib::DBManager::query const char *  query,
int  numdocs
const [pure virtual]
 

Query a database.

Implemented in lemur::distrib::LemurDBManager.

virtual void lemur::distrib::DBManager::setOutputFile const string &  filename  )  const [pure virtual]
 

Set output file name.

Implemented in lemur::distrib::LemurDBManager.


The documentation for this class was generated from the following file:
Generated on Tue Jun 15 11:03:05 2010 for Lemur by doxygen 1.3.4