Class QuasiSuccinctIndexReader.AbstractQuasiSuccinctIndexIterator

    • Field Detail

      • pointersList

        protected final LongBigList pointersList
        A reference to the data for pointers.
      • countsList

        protected final LongBigList countsList
        A reference to the data for counts, or null of hasCounts is false.
      • positionsList

        protected final LongBigList positionsList
        A reference to the data for positions, or null of hasPositions is false.
      • numberOfDocuments

        protected final long numberOfDocuments
        The number of documents (cached from index).
      • hasCounts

        protected final boolean hasCounts
        Cached from index.
      • hasPositions

        protected final boolean hasPositions
        Cached from index.
      • currentDocument

        protected long currentDocument
        The current document.
      • frequency

        protected long frequency
        The frequency of the current term.
      • occurrency

        protected long occurrency
        The occurrency of the current term.
      • currentTerm

        protected long currentTerm
        The index of the current term.
      • count

        protected long count
        The count of the current posting, or -1 if it is not known.
      • nextPosition

        protected long nextPosition
        The number of returned positions for the current document.
    • Constructor Detail

      • AbstractQuasiSuccinctIndexIterator

        protected AbstractQuasiSuccinctIndexIterator​(QuasiSuccinctIndexReader indexReader)
    • Method Detail

      • index

        public Index index()
        Description copied from interface: IndexIterator
        Returns the index over which this iterator is built.
        Returns:
        the index over which this iterator is built.
      • frequency

        public long frequency()
                       throws IOException
        Description copied from interface: IndexIterator
        Returns the frequency, that is, the number of documents that will be returned by this iterator.
        Returns:
        the number of documents that will be returned by this iterator.
        Throws:
        IOException
      • payload

        public Payload payload()
                        throws IOException
        Description copied from interface: IndexIterator
        Returns the payload, if any, associated with the current document.
        Returns:
        the payload associated with the current document.
        Throws:
        IOException
      • nextPosition

        public int nextPosition()
                         throws IOException
        Description copied from interface: IndexIterator
        Returns the next position at which the term appears in the current document.
        Returns:
        the next position of the current document in which the current term appears, or IndexIterator.END_OF_POSITIONS if there are no more positions.
        Throws:
        IOException
      • intervalIterator

        public IntervalIterator intervalIterator​(Index index)
                                          throws IOException
        Description copied from interface: DocumentIterator
        Returns the interval iterator of this document iterator for the given index.

        After a call to DocumentIterator.nextDocument(), this iterator can be used to retrieve the intervals in the current document (the one returned by DocumentIterator.nextDocument()) for the index index.

        Note that if all indices have positions, it is guaranteed that at least one index will return an interval. However, for disjunctive queries it cannot be guaranteed that all indices will return an interval.

        Indices without positions always return IntervalIterators.TRUE. Thus, in presence of indices without positions it is possible that no intervals at all are available.

        Parameters:
        index - an index (must be one over which the query was built).
        Returns:
        an interval iterator over the current document in index.
        Throws:
        IOException
      • indices

        public ReferenceSet<Index> indices()
        Description copied from interface: DocumentIterator
        Returns the set of indices over which this iterator is built.
        Returns:
        the set of indices over which this iterator is built.
      • dispose

        public void dispose()
                     throws IOException
        Description copied from interface: DocumentIterator
        Disposes this document iterator, releasing all resources.

        This method should propagate down to the underlying index iterators, where it should release resources such as open files and network connections. If you're doing your own resource tracking and pooling, then you do not need to call this method.

        Throws:
        IOException