C# Class Lucene.Net.Search.FieldComparator.StringValComparator

Sorts by field's natural String sort order. All comparisons are done using String.compareTo, which is slow for medium to large result sets but possibly very fast for very small results sets.
Inheritance: FieldComparator
Datei anzeigen Open project: synhershko/lucene.net

Public Methods

Method Description
Compare ( int slot1, int slot2 ) : int
CompareBottom ( int doc ) : int
Copy ( int slot, int doc ) : void
SetBottom ( int bottom ) : void
SetNextReader ( Lucene.Net.Index.IndexReader reader, int docBase ) : void
this ( int slot ) : IComparable

Private Methods

Method Description
StringValComparator ( int numHits, System field ) : System

Method Details

Compare() public method

public Compare ( int slot1, int slot2 ) : int
slot1 int
slot2 int
return int

CompareBottom() public method

public CompareBottom ( int doc ) : int
doc int
return int

Copy() public method

public Copy ( int slot, int doc ) : void
slot int
doc int
return void

SetBottom() public method

public SetBottom ( int bottom ) : void
bottom int
return void

SetNextReader() public method

public SetNextReader ( Lucene.Net.Index.IndexReader reader, int docBase ) : void
reader Lucene.Net.Index.IndexReader
docBase int
return void

this() public method

public this ( int slot ) : IComparable
slot int
return IComparable