CLucene - a full-featured, c++ search engine
API Documentation


lucene::search::SortComparatorSource Class Reference

Expert: returns a comparator for sorting ScoreDocs. More...

#include <Sort.h>

Inheritance diagram for lucene::search::SortComparatorSource:

lucene::search::SortComparator

Public Member Functions

virtual ~SortComparatorSource ()
virtual TCHAR * getName ()=0
 return a reference to a string describing the name of the comparator this is used in the explanation
virtual size_t hashCode ()=0
virtual ScoreDocComparatornewComparator (lucene::index::IndexReader *reader, const TCHAR *fieldname)=0
 Creates a comparator for the field in the given index.

Detailed Description

Expert: returns a comparator for sorting ScoreDocs.

Constructor & Destructor Documentation

virtual lucene::search::SortComparatorSource::~SortComparatorSource (  )  [inline, virtual]


Member Function Documentation

virtual TCHAR* lucene::search::SortComparatorSource::getName (  )  [pure virtual]

return a reference to a string describing the name of the comparator this is used in the explanation

virtual size_t lucene::search::SortComparatorSource::hashCode (  )  [pure virtual]

virtual ScoreDocComparator* lucene::search::SortComparatorSource::newComparator ( lucene::index::IndexReader reader,
const TCHAR *  fieldname 
) [pure virtual]

Creates a comparator for the field in the given index.

Parameters:
reader Index to create comparator for.
fieldname Field to create comparator for.
Returns:
Comparator of ScoreDoc objects.
Exceptions:
IOException If an error occurs reading the index.

Implemented in lucene::search::SortComparator.


The documentation for this class was generated from the following file:

clucene.sourceforge.net