Class Lookup.LookupPriorityQueue
A
Inheritance
System.Object
Lookup.LookupPriorityQueue
Namespace: Lucene.Net.Search.Suggest
Assembly: Lucene.Net.Suggest.dll
Syntax
public sealed class LookupPriorityQueue : PriorityQueue<Lookup.LookupResult>
Constructors
| Improve this Doc View SourceLookupPriorityQueue(Int32)
Creates a new priority queue of the specified size.
Declaration
public LookupPriorityQueue(int size)
Parameters
Type | Name | Description |
---|---|---|
System. |
size |
Methods
| Improve this Doc View SourceGetResults()
Returns the top N results in descending order.
Declaration
public Lookup.LookupResult[] GetResults()
Returns
Type | Description |
---|---|
Lookup. |
the top N results in descending order. |
LessThan(Lookup.LookupResult, Lookup.LookupResult)
Declaration
protected override bool LessThan(Lookup.LookupResult a, Lookup.LookupResult b)
Parameters
Type | Name | Description |
---|---|---|
Lookup. |
a | |
Lookup. |
b |
Returns
Type | Description |
---|---|
System. |