Class DocIDMerger<T extends DocIDMerger.Sub>


  • public abstract class DocIDMerger<T extends DocIDMerger.Sub>
    extends Object
    Utility class to help merging documents from sub-readers according to either simple concatenated (unsorted) order, or by a specified index-time sort, skipping deleted documents and remapping non-deleted documents.
    • Method Detail

      • reset

        public abstract void reset()
                            throws IOException
        Reuse API, currently only used by postings during merge
        Throws:
        IOException
      • next

        public abstract T next()
                        throws IOException
        Returns null when done. NOTE: after the iterator has exhausted you should not call this method, as it may result in unpredicted behavior.
        Throws:
        IOException