Show / Hide Table of Contents

    Class Lookup.LookupPriorityQueue

    A collecting a fixed size of high priority Lookup.LookupResults.

    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 Source

    LookupPriorityQueue(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 Source

    GetResults()

    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.

    | Improve this Doc View Source

    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
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)