Class Lookup.LookupPriorityQueue
A Lucene.Net.Util.PriorityQueue<T> collecting a fixed size of high priority Lookup.LookupResults.
Inherited Members
PriorityQueue<Lookup.LookupResult>.Add(Lookup.LookupResult)
PriorityQueue<Lookup.LookupResult>.Insert(Lookup.LookupResult)
PriorityQueue<Lookup.LookupResult>.InsertWithOverflow(Lookup.LookupResult)
PriorityQueue<Lookup.LookupResult>.Top
PriorityQueue<Lookup.LookupResult>.Pop()
PriorityQueue<Lookup.LookupResult>.UpdateTop()
PriorityQueue<Lookup.LookupResult>.Count
PriorityQueue<Lookup.LookupResult>.Clear()
Namespace: Lucene.Net.Search.Suggest
Assembly: Lucene.Net.Suggest.dll
Syntax
public sealed class Lookup.LookupPriorityQueue : PriorityQueue<Lookup.LookupResult>
Constructors
LookupPriorityQueue(int)
Creates a new priority queue of the specified size
.
Declaration
public LookupPriorityQueue(int size)
Parameters
Type | Name | Description |
---|---|---|
int | size |
Methods
GetResults()
Returns the top N results in descending order.
Declaration
public Lookup.LookupResult[] GetResults()
Returns
Type | Description |
---|---|
LookupResult[] | the top N results in descending order. |
LessThan(LookupResult, LookupResult)
Determines the ordering of objects in this priority queue. Subclasses must define this one method.
Declaration
protected override bool LessThan(Lookup.LookupResult a, Lookup.LookupResult b)
Parameters
Type | Name | Description |
---|---|---|
Lookup.LookupResult | a | |
Lookup.LookupResult | b |
Returns
Type | Description |
---|---|
bool |
|