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

lemur::retrieval::ArrayQueryRep Class Reference

Representation of a query with a double array. More...

#include <TextQueryRep.hpp>

Inheritance diagram for lemur::retrieval::ArrayQueryRep:

lemur::api::TextQueryRep lemur::api::QueryRep lemur::retrieval::CORIQueryRep lemur::retrieval::CosSimQueryRep lemur::retrieval::OkapiQueryRep lemur::retrieval::SimpleKLQueryModel lemur::retrieval::TFIDFQueryRep List of all members.

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::QueryTermnextTerm () 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::QueryTermmakeQueryTerm (lemur::api::TERMID_T wdIndex, double wdCount) const

Protected Attributes

double scConst
lemur::utility::ArrayCounter<
double > * 
ct

Detailed Description

Representation of a query with a double array.


Constructor & Destructor Documentation

lemur::retrieval::ArrayQueryRep::ArrayQueryRep int  size  )  [inline]
 

The size passed in must be large enough to hold all the terms.

lemur::retrieval::ArrayQueryRep::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.

lemur::retrieval::ArrayQueryRep::ArrayQueryRep int  size,
const lemur::utility::FreqVector qryVec
 

build a query rep with a frequency vector

virtual lemur::retrieval::ArrayQueryRep::~ArrayQueryRep  )  [inline, virtual]
 


Member Function Documentation

virtual bool lemur::retrieval::ArrayQueryRep::hasMore  )  const [inline, virtual]
 

Implements lemur::api::TextQueryRep.

virtual void lemur::retrieval::ArrayQueryRep::incCount lemur::api::TERMID_T  wdIndex,
double  count
[inline, virtual]
 

virtual lemur::api::QueryTerm* lemur::retrieval::ArrayQueryRep::makeQueryTerm lemur::api::TERMID_T  wdIndex,
double  wdCount
const [inline, protected, virtual]
 

Reimplemented in lemur::retrieval::OkapiQueryRep.

lemur::api::QueryTerm * lemur::retrieval::ArrayQueryRep::nextTerm  )  const [virtual]
 

Fetch the next term. A new instance is generated; the caller is responsible for deleting it!

Implements lemur::api::TextQueryRep.

virtual double lemur::retrieval::ArrayQueryRep::scoreConstant  )  const [inline, virtual]
 

Any query-specific constant term in the scoring formula.

Implements lemur::api::TextQueryRep.

Reimplemented in lemur::retrieval::SimpleKLQueryModel.

virtual void lemur::retrieval::ArrayQueryRep::setCount lemur::api::TERMID_T  wdIndex,
double  count
[inline, virtual]
 

virtual void lemur::retrieval::ArrayQueryRep::setScoreConstant double  scoreConst  )  [inline, virtual]
 

virtual void lemur::retrieval::ArrayQueryRep::startIteration  )  const [inline, virtual]
 

This, along with hasMore(), nextTerm(), supports iteration over terms.

Implements lemur::api::TextQueryRep.

virtual double lemur::retrieval::ArrayQueryRep::totalCount  )  const [inline, virtual]
 


Member Data Documentation

lemur::utility::ArrayCounter<double>* lemur::retrieval::ArrayQueryRep::ct [protected]
 

double lemur::retrieval::ArrayQueryRep::scConst [protected]
 


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