Class Lookup.LookupPriorityQueue
A PriorityQueue<T> collecting a fixed size of high priority Lookup.LookupResults.
Inherited Members
      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.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.Int32 | size | 
Methods
| Improve this Doc View SourceGetResults()
Returns the top N results in descending order.
Declaration
public Lookup.LookupResult[] GetResults()
  Returns
| Type | Description | 
|---|---|
| Lookup.LookupResult[] | 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.LookupResult | a | |
| Lookup.LookupResult | b | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | 
Overrides
Lucene.Net.Util.PriorityQueue<Lucene.Net.Search.Suggest.Lookup.LookupResult>.LessThan(Lucene.Net.Search.Suggest.Lookup.LookupResult, Lucene.Net.Search.Suggest.Lookup.LookupResult)