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

Parses field's values as int (using FieldCache.GetInts(Lucene.Net.Index.IndexReader,string) and sorts by ascending value
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
IntComparator ( int numHits, System field, Lucene parser ) : 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