Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class TopOrdAndInt32Queue

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

    NOTE: This was TopOrdAndIntQueue in Lucene
    Inheritance
    object
    PriorityQueue<OrdAndValue<int>>
    TopOrdAndInt32Queue
    Inherited Members
    PriorityQueue<OrdAndValue<int>>.Add(OrdAndValue<int>)
    PriorityQueue<OrdAndValue<int>>.Insert(OrdAndValue<int>)
    PriorityQueue<OrdAndValue<int>>.InsertWithOverflow(OrdAndValue<int>)
    PriorityQueue<OrdAndValue<int>>.Top
    PriorityQueue<OrdAndValue<int>>.Pop()
    PriorityQueue<OrdAndValue<int>>.UpdateTop()
    PriorityQueue<OrdAndValue<int>>.Count
    PriorityQueue<OrdAndValue<int>>.Clear()
    PriorityQueue<OrdAndValue<int>>.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 TopOrdAndInt32Queue : PriorityQueue<OrdAndValue<int>>

    Constructors

    TopOrdAndInt32Queue(int)

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

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

    Methods

    LessThan(OrdAndValue<int>, OrdAndValue<int>)

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

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

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

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