#include <TextQueryRep.hpp>
Inheritance diagram for ArrayQueryRep:
Public Methods | |
ArrayQueryRep (int size) | |
The size passed in must be large enough to hold all the terms. | |
ArrayQueryRep (int size, const TermQuery &qry, const Index &dbIndex) | |
The size passed in must be large enough to hold all the terms, typically dbIndex.termCountUnique()+1. | |
ArrayQueryRep (int size, const 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 QueryTerm * | nextTerm () const |
Fetch the next term. A new instance is generated; the caller is responsible for deleting it! | |
virtual void | incCount (TERMID_T wdIndex, double count) |
virtual void | setCount (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 Methods | |
virtual QueryTerm * | makeQueryTerm (TERMID_T wdIndex, double wdCount) const |
Protected Attributes | |
double | scConst |
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 TextQueryRep. |
|
|
|
Reimplemented in OkapiQueryRep. |
|
Fetch the next term. A new instance is generated; the caller is responsible for deleting it!
Implements TextQueryRep. |
|
Any query-specific constant term in the scoring formula.
Implements TextQueryRep. Reimplemented in SimpleKLQueryModel. |
|
|
|
|
|
This, along with hasMore(), nextTerm(), supports iteration over terms.
Implements TextQueryRep. |
|
|
|
|
|
|