java.lang.Object
org.apache.lucene.index.MultiSorter
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static MergeState.DocMap[]
sort
(Sort sort, List<CodecReader> readers) Does a merge sort of the leaves of the incoming reader, returningMergeState.DocMap
to map each leaf's documents into the merged segment.
-
Constructor Details
-
MultiSorter
MultiSorter()
-
-
Method Details
-
sort
Does a merge sort of the leaves of the incoming reader, returningMergeState.DocMap
to map each leaf's documents into the merged segment. The documents for each incoming leaf reader must already be sorted by the same sort! Returns null if the merge sort is not needed (segments are already in index sort order).- Throws:
IOException
-