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

MatchInfo Class Reference

#include <MatchInfo.hpp>

List of all members.

Public Methods

virtual ~MatchInfo ()
 clean up.

int count ()
 number of matches

void startIteration ()
 Iteration support (restartable).

bool hasMore ()
 have any more?

TMatch nextMatch ()
 Advance to next document, return false if no more docs.


Static Public Methods

MatchInfo * getMatches (Index &ind, Query &qry, int docID)

Private Methods

 MatchInfo ()
 Make an empty one.

void add (int tid, int position, int start=-1, int end=-1)
 add an entry

void sort ()
 sort the list


Private Attributes

vector< TMatchmatchList
 list of matches in document

vector< TMatch >::iterator iter
 iterator for list of matches in document


Detailed Description

Match information for a query within a document. Provides a list of match offsets (token based). Also provides byte offsets in source text when a DocumentManager is available to provide the raw document text. If the DocumentManager is a KeyfileDocMgr, the raw document text is not parsed, the offsets are retrieved directly.


Constructor & Destructor Documentation

virtual MatchInfo::~MatchInfo   [inline, virtual]
 

clean up.

MatchInfo::MatchInfo   [inline, private]
 

Make an empty one.


Member Function Documentation

void MatchInfo::add int    tid,
int    position,
int    start = -1,
int    end = -1
[inline, private]
 

add an entry

int MatchInfo::count   [inline]
 

number of matches

MatchInfo * MatchInfo::getMatches Index   ind,
Query   qry,
int    docID
[static]
 

Construct the match list for a given query/document pair. Query would be better replaced by the QueryDocument class or some list of internal term ids derived from the input query.

bool MatchInfo::hasMore   [inline]
 

have any more?

TMatch MatchInfo::nextMatch   [inline]
 

Advance to next document, return false if no more docs.

void MatchInfo::sort   [inline, private]
 

sort the list

void MatchInfo::startIteration   [inline]
 

Iteration support (restartable).


Member Data Documentation

vector<TMatch>::iterator MatchInfo::iter [private]
 

iterator for list of matches in document

vector<TMatch> MatchInfo::matchList [private]
 

list of matches in document


The documentation for this class was generated from the following files:
Generated on Fri Feb 6 07:12:04 2004 for LEMUR by doxygen1.2.16