Sorter

class Sorter

Sorts documents of a given index by returning a permutation on the document IDs.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
abstract class DocMap

A permutation of doc IDs. For every document ID between 0 and , oldToNew(newToOld(docID)) must return docID.

Properties

Link copied to clipboard
val iD: String
Link copied to clipboard
val sort: Sort

Functions

Link copied to clipboard

Returns a mapping from the old document ID to its new location in the sorted index. Implementations can use the auxiliary .sort to compute the old-to-new permutation given a list of documents and their corresponding values.

fun sort(maxDoc: Int, comparators: Array<IndexSorter.DocComparator>): Sorter.DocMap?
Link copied to clipboard
open override fun toString(): String