Class PriorityQueue
LUCENENET specific static methods for managing priority queues.
Inherited Members
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.
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 greater than MAX_ARRAY_LENGTH.
|