Class BlockIterablePosting

    • Constructor Detail

      • BlockIterablePosting

        public BlockIterablePosting()
        Constructs an instance of the BlockIterablePosting.
      • BlockIterablePosting

        public BlockIterablePosting​(BitIn _bitFileReader,
                                    int _numEntries,
                                    DocumentIndex doi)
                             throws java.io.IOException
        Constructs an instance of the BlockIterablePosting.
        Parameters:
        _bitFileReader -
        _numEntries -
        doi -
        Throws:
        java.io.IOException
    • 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
      • getPositions

        public int[] getPositions()
        Return the positions of occurrences of the term in the current document.
        Specified by:
        getPositions in interface BlockPosting
        Returns:
        the positions of occurrences of the term in the current document.
      • readFields

        public void readFields​(java.io.DataInput in)
                        throws java.io.IOException
        Description copied from class: BasicPostingImpl
        Reads the a single posting (not an iterable posting - use BitPostingIndex for that)
        Specified by:
        readFields in interface org.apache.hadoop.io.Writable
        Overrides:
        readFields in class BasicPostingImpl
        Throws:
        java.io.IOException
      • write

        public void write​(java.io.DataOutput out)
                   throws java.io.IOException
        Description copied from class: BasicPostingImpl
        Writes the current posting (not an iterable posting - use DirectInvertedOutputStream for that). Compression using this method is not expected to be comparable to bit-level compression.
        Specified by:
        write in interface org.apache.hadoop.io.Writable
        Overrides:
        write in class BasicPostingImpl
        Throws:
        java.io.IOException