Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class PriorityQueue

    LUCENENET specific static methods for managing priority queues.

    Inheritance
    object
    PriorityQueue
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.dll
    Syntax
    public static class PriorityQueue

    Methods

    GetArrayHeapSize(int)

    Gets the heap size for the specified maxSize of a priority queue and checks to ensure it is within bounds.

    Heap size is 1 greater than maxSize, since priority queue is 1-based rather than 0-based.
    Declaration
    public static int GetArrayHeapSize(int maxSize)
    Parameters
    Type Name Description
    int maxSize

    The maximum length of the priority queue.

    Returns
    Type Description
    int

    The heap size to allocate for the priority queue.

    Exceptions
    Type Condition
    ArgumentOutOfRangeException

    maxSize is less than 0.

    -or-

    maxSize is greater than MAX_ARRAY_LENGTH.
    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.