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