Class DocIDMerger.SequentialDocIDMerger<T extends DocIDMerger.Sub>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private T current  
      private int nextIndex  
      private java.util.List<T> subs  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private SequentialDocIDMerger​(java.util.List<T> subs)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T next()
      Returns null when done.
      void reset()
      Reuse API, currently only used by postings during merge
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SequentialDocIDMerger

        private SequentialDocIDMerger​(java.util.List<T> subs)
                               throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • reset

        public void reset()
                   throws java.io.IOException
        Description copied from class: DocIDMerger
        Reuse API, currently only used by postings during merge
        Specified by:
        reset in class DocIDMerger<T extends DocIDMerger.Sub>
        Throws:
        java.io.IOException
      • next

        public T next()
               throws java.io.IOException
        Description copied from class: DocIDMerger
        Returns null when done. NOTE: after the iterator has exhausted you should not call this method, as it may result in unpredicted behavior.
        Specified by:
        next in class DocIDMerger<T extends DocIDMerger.Sub>
        Throws:
        java.io.IOException