Interface IndexSorter.ComparableValues

Enclosing interface:
IndexSorter

public static interface IndexSorter.ComparableValues
Caches the sort value of the current document of every segment being merged, and compares them.

This is the merge-sort counterpart of IndexSorter.DocComparator. Most sorts reduce a document to a single sortable long and should implement IndexSorter.getComparableProviders(List) instead; the fromComparableProviders(org.apache.lucene.index.IndexSorter.ComparableProvider[]) adapter exposes them through this interface with no change in behaviour. Sorts whose value cannot be represented as a long (for example raw bytes) implement IndexSorter.getComparableValues(List) directly.