Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class Lookup.LookupPriorityQueue

    A Lucene.Net.Util.PriorityQueue<T> collecting a fixed size of high priority Lookup.LookupResults.

    Inheritance
    object
    PriorityQueue<Lookup.LookupResult>
    Lookup.LookupPriorityQueue
    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()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    true if parameter a is less than parameter b; othewise, false.

    Overrides
    PriorityQueue<Lookup.LookupResult>.LessThan(Lookup.LookupResult, Lookup.LookupResult)
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.