Class TopOrdAndSingleQueue
Keeps highest results, first by largest System.Single value, then tie break by smallest ord.
NOTE: This was TopOrdAndFloatQueue in Lucene
Inherited Members
PriorityQueue<TopOrdAndSingleQueue.OrdAndValue>.InsertWithOverflow(TopOrdAndSingleQueue.OrdAndValue)
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.Facet
Assembly: Lucene.Net.Facet.dll
Syntax
public class TopOrdAndSingleQueue : PriorityQueue<TopOrdAndSingleQueue.OrdAndValue>
Constructors
| Improve this Doc View SourceTopOrdAndSingleQueue(Int32)
Sole constructor.
Declaration
public TopOrdAndSingleQueue(int topN)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | topN |
Methods
| Improve this Doc View SourceLessThan(TopOrdAndSingleQueue.OrdAndValue, TopOrdAndSingleQueue.OrdAndValue)
Declaration
protected override bool LessThan(TopOrdAndSingleQueue.OrdAndValue a, TopOrdAndSingleQueue.OrdAndValue b)
Parameters
Type | Name | Description |
---|---|---|
TopOrdAndSingleQueue.OrdAndValue | a | |
TopOrdAndSingleQueue.OrdAndValue | b |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Lucene.Net.Util.PriorityQueue<Lucene.Net.Facet.TopOrdAndSingleQueue.OrdAndValue>.LessThan(Lucene.Net.Facet.TopOrdAndSingleQueue.OrdAndValue, Lucene.Net.Facet.TopOrdAndSingleQueue.OrdAndValue)