C# Class Lucene.Net.Index.Sorter.SortingAtomicReader.SortingDocsAndPositionsEnum.DocOffsetSorter

A TimSorter which sorts two parallel arrays of doc IDs and offsets in one go. Everytime a doc ID is 'swapped', its correponding offset is swapped too.
Inheritance: Lucene.Net.Util.TimSorter
Datei anzeigen Open project: apache/lucenenet

Public Methods

Method Description
DocOffsetSorter ( int maxDoc ) : System
Reset ( int docs, long offsets ) : void

Protected Methods

Method Description
Compare ( int i, int j ) : int
CompareSaved ( int i, int j ) : int
Copy ( int src, int dest ) : void
Restore ( int i, int j ) : void
Save ( int i, int len ) : void
Swap ( int i, int j ) : void

Method Details

Compare() protected method

protected Compare ( int i, int j ) : int
i int
j int
return int

CompareSaved() protected method

protected CompareSaved ( int i, int j ) : int
i int
j int
return int

Copy() protected method

protected Copy ( int src, int dest ) : void
src int
dest int
return void

DocOffsetSorter() public method

public DocOffsetSorter ( int maxDoc ) : System
maxDoc int
return System

Reset() public method

public Reset ( int docs, long offsets ) : void
docs int
offsets long
return void

Restore() protected method

protected Restore ( int i, int j ) : void
i int
j int
return void

Save() protected method

protected Save ( int i, int len ) : void
i int
len int
return void

Swap() protected method

protected Swap ( int i, int j ) : void
i int
j int
return void