FieldValueHitQueue

Expert: A hit queue for sorting by hits by terms in more than one field.

Since

2.9

See also

Types

Link copied to clipboard
object Companion

Returns the SortFields being used by this hit queue.

Link copied to clipboard
open class Entry(var slot: Int, doc: Int) : ScoreDoc

Extension of ScoreDoc to also store the FieldComparator slot.

Properties

Link copied to clipboard
Link copied to clipboard

Stores the sort criteria being used.

Link copied to clipboard

Functions

Link copied to clipboard
fun add(element: T): T?
Link copied to clipboard
fun addAll(elements: MutableCollection<T>)
Link copied to clipboard
expect fun clear()
Link copied to clipboard

Given a queue Entry, creates a corresponding FieldDoc that contains the values used to sort the given document. These values are not the raw values out of the index, but the internal representation of them. This is so the given search hit can be collated by a MultiSearcher with other search hits.

Link copied to clipboard
Link copied to clipboard
fun insertWithOverflow(element: T): T?
Link copied to clipboard
open operator override fun iterator(): Iterator<T>
Link copied to clipboard
abstract override fun lessThan(a: T, b: T): Boolean
Link copied to clipboard
fun pop(): T?
Link copied to clipboard
fun remove(element: T): Boolean
Link copied to clipboard
expect fun size(): Int
Link copied to clipboard
fun top(): T
Link copied to clipboard
fun topOrNull(): T?
Link copied to clipboard
fun updateTop(): T
fun updateTop(newTop: T): T