Package org.apache.lucene.index.sorter
Class BlockJoinSorter
java.lang.Object
org.apache.lucene.index.sorter.Sorter
org.apache.lucene.index.sorter.BlockJoinSorter
Helper class to sort readers that contain blocks of documents.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.index.sorter.Sorter
Sorter.DocComparator, Sorter.DocMap -
Field Summary
Fields inherited from class org.apache.lucene.index.sorter.Sorter
INDEX_ORDER_COMPARATOR, REVERSE_DOCS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Sorter.DocMapsort(AtomicReader reader) Returns a mapping from the old document ID to its new location in the sorted index.
-
Constructor Details
-
BlockJoinSorter
Sole constructor.
-
-
Method Details
-
sort
Description copied from class:SorterReturns a mapping from the old document ID to its new location in the sorted index. Implementations can use the auxiliarySorter.sort(int, DocComparator)to compute the old-to-new permutation given a list of documents and their corresponding values.A return value of null is allowed and means that
readeris already sorted.NOTE: deleted documents are expected to appear in the mapping as well, they will however be marked as deleted in the sorted view.
- Specified by:
sortin classSorter- Throws:
IOException
-