Class FieldValueHitQueue
Inherited Members
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
public static class FieldValueHitQueue
Methods
Create<T>(SortField[], int)
Creates a hit queue sorted by the given list of fields.
NOTE: The instances returned by this method pre-allocate a full array of lengthnumHits
.
Declaration
public static FieldValueHitQueue<T> Create<T>(SortField[] fields, int size) where T : FieldValueHitQueue.Entry
Parameters
Type | Name | Description |
---|---|---|
SortField[] | fields | SortField array we are sorting by in priority order (highest
priority first); cannot be |
int | size | The number of hits to retain. Must be greater than zero. |
Returns
Type | Description |
---|---|
FieldValueHitQueue<T> |
Type Parameters
Name | Description |
---|---|
T |
Exceptions
Type | Condition |
---|---|
IOException | If there is a low-level IO error |