Class Sorter
Base class for sorting algorithms implementations.
This is a Lucene.NET INTERNAL API, use at your own risk
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Util
Assembly: Lucene.Net.dll
Syntax
public abstract class Sorter
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
System.Collections.Generic.IComparer`1.Compare(`0,`0).
Declaration
protected abstract int Compare(int i, int j)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | i | |
System.Int32 | j |
Returns
Type | Description |
---|---|
System.Int32 |
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.Int32 | from | |
System.Int32 | 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.Int32 | i | |
System.Int32 | j |