Method Create
Create(SortField[], Int32)
Creates a hit queue sorted by the given list of fields.
NOTE: The instances returned by this method
pre-allocate a full array of length numHits
.
Declaration
public static FieldValueHitQueue Create(SortField[] fields, int size)
Parameters
Type | Name | Description |
---|---|---|
Sort |
fields | SortField array we are sorting by in priority order (highest
priority first); cannot be |
System. |
size | The number of hits to retain. Must be greater than zero. |
Returns
Type | Description |
---|---|
Field |