Class BasicIterablePostingDocidOnly

    • Constructor Detail

      • BasicIterablePostingDocidOnly

        public BasicIterablePostingDocidOnly()
        Create a new posting iterator
      • BasicIterablePostingDocidOnly

        public BasicIterablePostingDocidOnly​(BitIn _bitFileReader,
                                             int _numEntries,
                                             DocumentIndex _doi)
                                      throws java.io.IOException
        Create a new posting iterator
        Parameters:
        _bitFileReader - BitIn to read the postings from
        _numEntries - number of postings in the list
        _doi - document index to use to satisfy getDocumentLength()
        Throws:
        java.io.IOException - thrown in an IO exception occurs
    • Method Detail

      • next

        public int next()
                 throws java.io.IOException
        Move this iterator to the next posting.
        Specified by:
        next in interface IterablePosting
        Overrides:
        next in class BasicIterablePosting
        Returns:
        id of next posting, or EOL if end of posting list.
        Throws:
        java.io.IOException