Class AbstractDocumentIterator

    • Field Detail

      • weight

        protected double weight
        The weight of this iterator.
    • Constructor Detail

      • AbstractDocumentIterator

        public AbstractDocumentIterator()
    • Method Detail

      • mayHaveNext

        public boolean mayHaveNext()
        Description copied from interface: DocumentIterator
        Returns whether there may be a next document, possibly with false positives.
        Specified by:
        mayHaveNext in interface DocumentIterator
        Returns:
        true there may be a next document; false if certainly there is no next document.
      • weight

        public double weight()
        Description copied from interface: DocumentIterator
        Returns the weight associated with this iterator.

        The number returned by this method has no fixed semantics: different scorers might choose different interpretations, or even ignore it.

        Specified by:
        weight in interface DocumentIterator
        Returns:
        the weight associated with this iterator.
      • weight

        public DocumentIterator weight​(double weight)
        Description copied from interface: DocumentIterator
        Sets the weight of this index iterator.
        Specified by:
        weight in interface DocumentIterator
        Parameters:
        weight - the weight of this index iterator.
        Returns:
        this document iterator.
      • ensureOnADocument

        protected final void ensureOnADocument()