Class Sorter
Base class for sorting algorithms implementations.
This is a Lucene.NET INTERNAL API, use at your own risk
Namespace: Lucene.Net.Util
Assembly: Lucene.Net.dll
Syntax
public abstract class Sorter : object
Constructors
| Improve this Doc View SourceSorter()
Sole constructor, used for inheritance.
Declaration
protected Sorter()
Methods
| Improve this Doc View SourceCompare(Int32, Int32)
Compare entries found in slots i
and j
.
The contract for the returned value is the same as
Declaration
protected abstract int Compare(int i, int j)
Parameters
Type | Name | Description |
---|---|---|
System. |
i | |
System. |
j |
Returns
Type | Description |
---|---|
System. |
Sort(Int32, Int32)
Sort the slice which starts at from
(inclusive) and ends at
to
(exclusive).
Declaration
public abstract void Sort(int from, int to)
Parameters
Type | Name | Description |
---|---|---|
System. |
from | |
System. |
to |
Swap(Int32, Int32)
Swap values at slots i
and j
.
Declaration
protected abstract void Swap(int i, int j)
Parameters
Type | Name | Description |
---|---|---|
System. |
i | |
System. |
j |