Class TermFilteredPresearcher.BytesRefHashIterator

java.lang.Object
org.apache.lucene.monitor.TermFilteredPresearcher.BytesRefHashIterator
All Implemented Interfaces:
BytesRefIterator
Enclosing class:
TermFilteredPresearcher

protected class TermFilteredPresearcher.BytesRefHashIterator extends Object implements BytesRefIterator
Implements a BytesRefIterator over a BytesRefHash
  • Field Details

    • scratch

      final BytesRef scratch
    • terms

      final BytesRefHash terms
    • sortedTerms

      final int[] sortedTerms
    • upto

      int upto
  • Constructor Details

    • BytesRefHashIterator

      BytesRefHashIterator(BytesRefHash terms)
  • Method Details

    • next

      public BytesRef next()
      Description copied from interface: BytesRefIterator
      Increments the iteration to the next BytesRef in the iterator. Returns the resulting BytesRef or null if the end of the iterator is reached. The returned BytesRef may be re-used across calls to next. After this method returns null, do not call it again: the results are undefined.
      Specified by:
      next in interface BytesRefIterator
      Returns:
      the next BytesRef in the iterator or null if the end of the iterator is reached.