Class FieldUpdatesBuffer.BufferedUpdateIterator

  • Enclosing class:
    FieldUpdatesBuffer

    class FieldUpdatesBuffer.BufferedUpdateIterator
    extends java.lang.Object
    An iterator that iterates over all updates in insertion order
    • Constructor Detail

      • BufferedUpdateIterator

        BufferedUpdateIterator()
    • Method Detail

      • 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

        FieldUpdatesBuffer.BufferedUpdate next()
                                        throws java.io.IOException
        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:
        java.io.IOException
      • nextTerm

        BytesRef nextTerm()
                   throws java.io.IOException
        Throws:
        java.io.IOException