Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

ArrayQueryRep Class Reference

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

#include <TextQueryRep.hpp>

Inheritance diagram for ArrayQueryRep:

TextQueryRep QueryRep CORIQueryRep CosSimQueryRep OkapiQueryRep SimpleKLQueryModel TFIDFQueryRep List of all members.

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

Detailed Description

Representation of a query with a double array.


Constructor & Destructor Documentation

ArrayQueryRep::ArrayQueryRep (  int    size )  [inline]
 

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

ArrayQueryRep::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::ArrayQueryRep (  int    size,
const FreqVector &    qryVec
) 
 

build a query rep with a frequency vector

virtual ArrayQueryRep::~ArrayQueryRep (    )  [inline, virtual]
 


Member Function Documentation

virtual bool ArrayQueryRep::hasMore (    )  const [inline, virtual]
 

Implements TextQueryRep.

virtual void ArrayQueryRep::incCount (  TERMID_T    wdIndex,
double    count
)  [inline, virtual]
 

virtual QueryTerm* ArrayQueryRep::makeQueryTerm (  TERMID_T    wdIndex,
double    wdCount
)  const [inline, protected, virtual]
 

Reimplemented in OkapiQueryRep.

QueryTerm * ArrayQueryRep::nextTerm (    )  [virtual]
 

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

Implements TextQueryRep.

virtual double ArrayQueryRep::scoreConstant (    )  [inline, virtual]
 

Any query-specific constant term in the scoring formula.

Implements TextQueryRep.

Reimplemented in SimpleKLQueryModel.

virtual void ArrayQueryRep::setCount (  TERMID_T    wdIndex,
double    count
)  [inline, virtual]
 

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

virtual void ArrayQueryRep::startIteration (    )  [inline, virtual]
 

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

Implements TextQueryRep.

virtual double ArrayQueryRep::totalCount (    )  const [inline, virtual]
 


Member Data Documentation

ArrayCounter<double>* ArrayQueryRep::ct [protected]
 

double ArrayQueryRep::scConst [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Nov 3 12:59:23 2004 for Lemur Toolkit by doxygen1.2.18