Main Page   Namespace List   Class Hierarchy   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 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,TextQuery &qry,Index &dbIndex)
 The size passed in must be large enough to hold all the terms, typically dbIndex.termCountUnique()+1.

 ArrayQueryRep (int size,FreqVector &qryVec)
 build a query rep with a frequency vector.

virtual ~ArrayQueryRep ()
virtual void startIteration ()
 This, along with hasMore(), nextTerm(), supports iteration over terms.

virtual bool hasMore ()
virtual QueryTermnextTerm ()
 Fetch the next term. A new instance is generated; the caller is responsible for deleting it!

virtual void incCount (int wdIndex,double count)
virtual void setCount (int wdIndex,double count)
virtual double totalCount ()
virtual double scoreConstant ()
 Any query-specific constant term in the scoring formula.

virtual void setScoreConstant (double scoreConst)

Protected Methods

virtual QueryTermmakeQueryTerm (int wdIndex,double wdCount)

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,
TextQuery & qry,
Index & dbIndex )
 

The size passed in must be large enough to hold all the terms, typically dbIndex.termCountUnique()+1.

ArrayQueryRep::ArrayQueryRep ( int size,
FreqVector & qryVec )
 

build a query rep with a frequency vector.

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


Member Function Documentation

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

Reimplemented from TextQueryRep.

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

QueryTerm * ArrayQueryRep::makeQueryTerm ( int wdIndex,
double wdCount ) [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!

Reimplemented from TextQueryRep.

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

Any query-specific constant term in the scoring formula.

Reimplemented from TextQueryRep.

Reimplemented in SimpleKLQueryModel.

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

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

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

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

Reimplemented from TextQueryRep.

double ArrayQueryRep::totalCount ( ) [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 at Fri Jul 26 18:26:49 2002 for LEMUR by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000