Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class TopOrdAndSingleQueue

    Keeps highest results, first by largest float value, then tie break by smallest ord.

    NOTE: This was TopOrdAndFloatQueue in Lucene
    Inheritance
    object
    PriorityQueue<OrdAndValue<float>>
    TopOrdAndSingleQueue
    Inherited Members
    PriorityQueue<OrdAndValue<float>>.Add(OrdAndValue<float>)
    PriorityQueue<OrdAndValue<float>>.Insert(OrdAndValue<float>)
    PriorityQueue<OrdAndValue<float>>.InsertWithOverflow(OrdAndValue<float>)
    PriorityQueue<OrdAndValue<float>>.Top
    PriorityQueue<OrdAndValue<float>>.Pop()
    PriorityQueue<OrdAndValue<float>>.UpdateTop()
    PriorityQueue<OrdAndValue<float>>.Count
    PriorityQueue<OrdAndValue<float>>.Clear()
    PriorityQueue<OrdAndValue<float>>.HeapArray
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Facet
    Assembly: Lucene.Net.Facet.dll
    Syntax
    public class TopOrdAndSingleQueue : PriorityQueue<OrdAndValue<float>>

    Constructors

    TopOrdAndSingleQueue(int)

    Initializes a new instance of TopOrdAndSingleQueue with the specified topN size.

    Declaration
    public TopOrdAndSingleQueue(int topN)
    Parameters
    Type Name Description
    int topN

    Methods

    LessThan(OrdAndValue<float>, OrdAndValue<float>)

    Determines the ordering of objects in this priority queue. Subclasses must define this one method.

    Declaration
    protected override bool LessThan(OrdAndValue<float> a, OrdAndValue<float> b)
    Parameters
    Type Name Description
    OrdAndValue<float> a
    OrdAndValue<float> b
    Returns
    Type Description
    bool

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

    Overrides
    PriorityQueue<OrdAndValue<float>>.LessThan(OrdAndValue<float>, OrdAndValue<float>)
    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.