C# Class Lucene.Net.Search.SampleComparable.AnonymousClassSortComparatorSource

Inheritance: SortComparatorSource
Show file Open project: runefs/Marvin

Public Methods

Method Description
NewComparator ( Lucene.Net.Index.IndexReader reader, System fieldname ) : ScoreDocComparator

Protected Methods

Method Description
FillCache ( Lucene.Net.Index.IndexReader reader, Lucene.Net.Index.TermEnum enumerator, System fieldname ) : System.IComparable[]

Returns an array of objects which represent that natural order of the term values in the given Field.

Private Methods

Method Description
GetComparable ( System termtext ) : System.IComparable

Method Details

FillCache() protected method

Returns an array of objects which represent that natural order of the term values in the given Field.
protected FillCache ( Lucene.Net.Index.IndexReader reader, Lucene.Net.Index.TermEnum enumerator, System fieldname ) : System.IComparable[]
reader Lucene.Net.Index.IndexReader Terms are in this index. ///
enumerator Lucene.Net.Index.TermEnum Use this to get the term values and TermDocs. ///
fieldname System Comparables should be for this Field. ///
return System.IComparable[]

NewComparator() public method

public NewComparator ( Lucene.Net.Index.IndexReader reader, System fieldname ) : ScoreDocComparator
reader Lucene.Net.Index.IndexReader
fieldname System
return ScoreDocComparator