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

QueryThread Class Reference

Inheritance diagram for QueryThread:

indri::thread::UtilityThread List of all members.

Public Member Functions

 QueryThread (std::queue< query_t * > &queries, std::priority_queue< query_t *, std::vector< query_t * >, query_t::greater > &output, indri::thread::Lockable &queueLock, indri::thread::ConditionVariable &queueEvent, indri::api::Parameters &params)
 ~QueryThread ()
UINT64 initialize ()
void deinitialize ()
bool hasWork ()
UINT64 work ()

Private Member Functions

void _runQuery (std::stringstream &output, const std::string &query, const std::string &queryType)
void _printResultRegion (std::stringstream &output, std::string queryIndex, int start, int end)
void _printResults (std::stringstream &output, std::string queryNumber)

Private Attributes

indri::thread::Lockable_queueLock
indri::thread::ConditionVariable_queueEvent
std::queue< query_t * > & _queries
std::priority_queue< query_t *,
std::vector< query_t * >,
query_t::greater > & 
_output
indri::api::QueryEnvironment _environment
indri::api::Parameters_parameters
int _requested
int _initialRequested
bool _printDocuments
bool _printPassages
bool _printSnippets
bool _printQuery
std::string _runID
bool _trecFormat
bool _inexFormat
indri::query::QueryExpander_expander
std::vector< indri::api::ScoredExtentResult_results
indri::api::QueryAnnotation_annotation

Constructor & Destructor Documentation

QueryThread::QueryThread std::queue< query_t * > &  queries,
std::priority_queue< query_t *, std::vector< query_t * >, query_t::greater > &  output,
indri::thread::Lockable queueLock,
indri::thread::ConditionVariable queueEvent,
indri::api::Parameters params
[inline]
 

QueryThread::~QueryThread  )  [inline]
 


Member Function Documentation

void QueryThread::_printResultRegion std::stringstream &  output,
std::string  queryIndex,
int  start,
int  end
[inline, private]
 

void QueryThread::_printResults std::stringstream &  output,
std::string  queryNumber
[inline, private]
 

void QueryThread::_runQuery std::stringstream &  output,
const std::string &  query,
const std::string &  queryType
[inline, private]
 

void QueryThread::deinitialize  )  [inline, virtual]
 

Implements indri::thread::UtilityThread.

bool QueryThread::hasWork  )  [inline, virtual]
 

Implements indri::thread::UtilityThread.

UINT64 QueryThread::initialize  )  [inline, virtual]
 

Implements indri::thread::UtilityThread.

UINT64 QueryThread::work  )  [inline, virtual]
 

Implements indri::thread::UtilityThread.


Member Data Documentation

indri::api::QueryAnnotation* QueryThread::_annotation [private]
 

indri::api::QueryEnvironment QueryThread::_environment [private]
 

indri::query::QueryExpander* QueryThread::_expander [private]
 

bool QueryThread::_inexFormat [private]
 

int QueryThread::_initialRequested [private]
 

std::priority_queue< query_t*, std::vector< query_t* >, query_t::greater >& QueryThread::_output [private]
 

indri::api::Parameters& QueryThread::_parameters [private]
 

bool QueryThread::_printDocuments [private]
 

bool QueryThread::_printPassages [private]
 

bool QueryThread::_printQuery [private]
 

bool QueryThread::_printSnippets [private]
 

std::queue< query_t* >& QueryThread::_queries [private]
 

indri::thread::ConditionVariable& QueryThread::_queueEvent [private]
 

indri::thread::Lockable& QueryThread::_queueLock [private]
 

int QueryThread::_requested [private]
 

std::vector<indri::api::ScoredExtentResult> QueryThread::_results [private]
 

std::string QueryThread::_runID [private]
 

bool QueryThread::_trecFormat [private]
 


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