Companion
object Companion
Functions
Link copied to clipboard
fun iteratorSupplier(values: KnnVectorValues, docMap: Sorter.DocMap): SortingCodecReader.SortingIteratorSupplier
Creates a factory for SortingValuesIterator. Does the work of computing the (new docId to old ordinal) mapping, and caches the result, enabling it to create new iterators cheaply.
Link copied to clipboard
Return a sorted view of reader according to the order defined by sort . If the reader is already sorted, this method might return the reader as-is.
Expert: same as .wrap but operates directly on a Sorter.DocMap.