Class BufferedInputIterator

java.lang.Object
org.apache.lucene.search.suggest.BufferedInputIterator
All Implemented Interfaces:
InputIterator, BytesRefIterator
Direct Known Subclasses:
UnsortedInputIterator

public class BufferedInputIterator extends Object implements InputIterator
This wrapper buffers incoming elements.
WARNING: This API is experimental and might change in incompatible ways in the next release.
  • Field Details

    • entries

      protected BytesRefArray entries
      buffered term entries
    • payloads

      protected BytesRefArray payloads
      buffered payload entries
    • contextSets

      protected List<Set<BytesRef>> contextSets
      buffered context set entries
    • curPos

      protected int curPos
      current buffer position
    • freqs

      protected long[] freqs
      buffered weights, parallel with entries
  • Constructor Details

    • BufferedInputIterator

      public BufferedInputIterator(InputIterator source) throws IOException
      Creates a new iterator, buffering entries from the specified iterator
      Throws:
      IOException
  • Method Details