Class AbstractPostingOutputStream

  • Direct Known Subclasses:
    DirectInvertedOutputStream

    public abstract class AbstractPostingOutputStream
    extends java.lang.Object
    Abstract class that is extended by other posting output stream implementations
    Since:
    4.0
    Author:
    Craig Macdonald
    • Constructor Detail

      • AbstractPostingOutputStream

        public AbstractPostingOutputStream()
    • Method Detail

      • getLastDocidWritten

        public abstract int getLastDocidWritten()
      • close

        public abstract void close()
      • writePostings

        public abstract BitIndexPointer writePostings​(int[][] postings,
                                                      int startOffset,
                                                      int Length,
                                                      int firstId)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • writePostings

        public abstract BitIndexPointer writePostings​(IterablePosting postings,
                                                      int previousId)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • writePostings

        public abstract BitIndexPointer writePostings​(java.util.Iterator<Posting> iterator,
                                                      int previousId)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • writePostings

        public abstract BitIndexPointer writePostings​(java.util.Iterator<Posting> iterator)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • getPostingIteratorClass

        public abstract java.lang.Class<? extends IterablePosting> getPostingIteratorClass()