java.lang.Object | ||
↳ | org.apache.lucene.util.PriorityQueue<T> | |
↳ | org.apache.lucene.search.FieldValueHitQueue |
Expert: A hit queue for sorting by hits by terms in more than one field.
Uses FieldCache.DEFAULT
for maintaining
internal term lookup tables.
NOTE: This API is experimental and might change in
incompatible ways in the next release.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
comparators | |||||||||||
fields | Stores the sort criteria being used. | ||||||||||
reverseMul |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.util.PriorityQueue
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a hit queue sorted by the given list of fields.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Determines the ordering of objects in this priority queue.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.util.PriorityQueue
| |||||||||||
From class
java.lang.Object
|
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
.
fields | SortField array we are sorting by in priority order (highest
priority first); cannot be null or empty |
---|---|
size | The number of hits to retain. Must be greater than zero. |
IOException |
---|
Determines the ordering of objects in this priority queue. Subclasses must define this one method.