Module org.apache.lucene.core
Package org.apache.lucene.index
Class FieldUpdatesBuffer.BufferedUpdateIterator
java.lang.Object
org.apache.lucene.index.FieldUpdatesBuffer.BufferedUpdateIterator
- Enclosing class:
- FieldUpdatesBuffer
An iterator that iterates over all updates in insertion order
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FieldUpdatesBuffer.BufferedUpdate
private final BytesRefIterator
private final BytesRefArray.IndexedBytesRefIterator
private final BytesRefArray.IndexedBytesRefIterator
private final Bits
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) boolean
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.(package private) FieldUpdatesBuffer.BufferedUpdate
next()
Moves to the next BufferedUpdate or return null if all updates are consumed.(package private) BytesRef
nextTerm()
-
Field Details
-
termValuesIterator
-
lookAheadTermIterator
-
byteValuesIterator
-
bufferedUpdate
-
updatesWithValue
-
-
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
- Throws:
IOException
-