Companion

object Companion

Functions

Link copied to clipboard

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
fun wrap(reader: CodecReader, sort: Sort): CodecReader

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.

fun wrap(reader: CodecReader, docMap: Sorter.DocMap?, sort: Sort?): CodecReader

Expert: same as .wrap but operates directly on a Sorter.DocMap.