Class TopOrdAndInt32Comparer
Keeps highest results, first by largest int value, then tie break by smallest ord.
NOTE: This is a refactoring of TopOrdAndIntQueue in LuceneImplements
Inherited Members
Namespace: Lucene.Net.Facet
Assembly: Lucene.Net.Facet.dll
Syntax
public sealed class TopOrdAndInt32Comparer : PriorityComparer<OrdAndValue<int>>, IComparer<OrdAndValue<int>>
Properties
Default
Returns a default sort order comparer for OrdAndValue<T>. Keeps highest results, first by largest int value, then tie break by smallest ord.
Declaration
public static TopOrdAndInt32Comparer Default { get; }
Property Value
Type | Description |
---|---|
TopOrdAndInt32Comparer |
Methods
LessThan(OrdAndValue<int>, OrdAndValue<int>)
Determines the ordering of objects in this priority queue. Subclasses must define this one method.
Declaration
protected override bool LessThan(OrdAndValue<int> a, OrdAndValue<int> b)
Parameters
Type | Name | Description |
---|---|---|
OrdAndValue<int> | a | The left value to compare. |
OrdAndValue<int> | b | The right value to compare. |
Returns
Type | Description |
---|---|
bool |
|