Class BlockJoinSorter


  • public abstract class BlockJoinSorter
    extends Sorter
    Helper class to sort readers that contain blocks of documents.
    • Constructor Detail

      • BlockJoinSorter

        public BlockJoinSorter​(Filter parentsFilter)
        Sole constructor.
    • Method Detail

      • sort

        public final Sorter.DocMap sort​(AtomicReader reader)
                                 throws java.io.IOException
        Description copied from class: Sorter
        Returns a mapping from the old document ID to its new location in the sorted index. Implementations can use the auxiliary Sorter.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 reader is 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:
        sort in class Sorter
        Throws:
        java.io.IOException