Class IndexSorter.BinarySorter

java.lang.Object
org.apache.lucene.index.IndexSorter.BinarySorter
All Implemented Interfaces:
IndexSorter
Enclosing interface:
IndexSorter

public static final class IndexSorter.BinarySorter extends Object implements IndexSorter
Sorts documents by the bytes of a BinaryDocValues instance, using the given comparator.

Unlike IndexSorter.StringSorter there is no global ordinal map: values are compared directly, so the merge reads each (already sorted) segment strictly sequentially via DocIdSetIterator.nextDoc(), which stays linear and efficient even for block-compressed formats.