#include <TextQueryRep.hpp>
Inheritance diagram for lemur::retrieval::ArrayQueryRep:
Public Member Functions | |
ArrayQueryRep (int size) | |
The size passed in must be large enough to hold all the terms. | |
ArrayQueryRep (int size, const lemur::api::TermQuery &qry, const lemur::api::Index &dbIndex) | |
The size passed in must be large enough to hold all the terms, typically dbIndex.termCountUnique()+1. | |
ArrayQueryRep (int size, const lemur::utility::FreqVector &qryVec) | |
build a query rep with a frequency vector | |
virtual | ~ArrayQueryRep () |
virtual void | startIteration () const |
This, along with hasMore(), nextTerm(), supports iteration over terms. | |
virtual bool | hasMore () const |
virtual lemur::api::QueryTerm * | nextTerm () const |
Fetch the next term. A new instance is generated; the caller is responsible for deleting it! | |
virtual void | incCount (lemur::api::TERMID_T wdIndex, double count) |
virtual void | setCount (lemur::api::TERMID_T wdIndex, double count) |
virtual double | totalCount () const |
virtual double | scoreConstant () const |
Any query-specific constant term in the scoring formula. | |
virtual void | setScoreConstant (double scoreConst) |
Protected Member Functions | |
virtual lemur::api::QueryTerm * | makeQueryTerm (lemur::api::TERMID_T wdIndex, double wdCount) const |
Protected Attributes | |
double | scConst |
lemur::utility::ArrayCounter< double > * | ct |
|
The size passed in must be large enough to hold all the terms.
|
|
The size passed in must be large enough to hold all the terms, typically dbIndex.termCountUnique()+1.
|
|
build a query rep with a frequency vector
|
|
|
|
Implements lemur::api::TextQueryRep. |
|
|
|
Reimplemented in lemur::retrieval::OkapiQueryRep. |
|
Fetch the next term. A new instance is generated; the caller is responsible for deleting it!
Implements lemur::api::TextQueryRep. |
|
Any query-specific constant term in the scoring formula.
Implements lemur::api::TextQueryRep. Reimplemented in lemur::retrieval::SimpleKLQueryModel. |
|
|
|
|
|
This, along with hasMore(), nextTerm(), supports iteration over terms.
Implements lemur::api::TextQueryRep. |
|
|
|
|
|
|