Class FieldUpdatesBuffer.BufferedUpdateIterator

java.lang.Object
org.apache.lucene.index.FieldUpdatesBuffer.BufferedUpdateIterator
Enclosing class:
FieldUpdatesBuffer

class FieldUpdatesBuffer.BufferedUpdateIterator extends Object
An iterator that iterates over all updates in insertion order
  • Field Details

  • Constructor Details

    • BufferedUpdateIterator

      BufferedUpdateIterator()
  • Method Details

    • isSortedTerms

      boolean isSortedTerms()
      If all updates update a single field to the same value, then we can apply these updates in the term order instead of the request order as both will yield the same result. This optimization allows us to iterate the term dictionary faster and de-duplicate updates.
    • next

      Moves to the next BufferedUpdate or return null if all updates are consumed. The returned instance is a shared instance and must be fully consumed before the next call to this method.
      Throws:
      IOException
    • nextTerm

      private BytesRef nextTerm() throws IOException
      Throws:
      IOException