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

Sorts by field's natural String sort order, using ordinals. This is functionally equivalent to FieldComparator.StringValComparator , but it first resolves the string to their relative ordinal positions (using the index returned by FieldCache.GetStringIndex), and does most comparisons using the ordinals. For medium to large results, this comparator will be much faster than FieldComparator.StringValComparator. For very small result sets it may be slower.
Inheritance: FieldComparator
Afficher le fichier Open project: synhershko/lucene.net

Méthodes publiques

Méthode Description
Compare ( int slot1, int slot2 ) : int
CompareBottom ( int doc ) : int
Copy ( int slot, int doc ) : void
GetValues ( ) : string[]
SetBottom ( int bottom ) : void
SetNextReader ( Lucene.Net.Index.IndexReader reader, int docBase ) : void
StringOrdValComparator ( int numHits, System field, int sortPos, bool reversed ) : System
this ( int slot ) : IComparable

Private Methods

Méthode Description
Convert ( int slot ) : void

Method Details

Compare() public méthode

public Compare ( int slot1, int slot2 ) : int
slot1 int
slot2 int
Résultat int

CompareBottom() public méthode

public CompareBottom ( int doc ) : int
doc int
Résultat int

Copy() public méthode

public Copy ( int slot, int doc ) : void
slot int
doc int
Résultat void

GetValues() public méthode

public GetValues ( ) : string[]
Résultat string[]

SetBottom() public méthode

public SetBottom ( int bottom ) : void
bottom int
Résultat void

SetNextReader() public méthode

public SetNextReader ( Lucene.Net.Index.IndexReader reader, int docBase ) : void
reader Lucene.Net.Index.IndexReader
docBase int
Résultat void

StringOrdValComparator() public méthode

public StringOrdValComparator ( int numHits, System field, int sortPos, bool reversed ) : System
numHits int
field System
sortPos int
reversed bool
Résultat System

this() public méthode

public this ( int slot ) : IComparable
slot int
Résultat IComparable