Package org.apache.lucene.index
Class FieldUpdatesBuffer.BufferedUpdateIterator
- java.lang.Object
-
- org.apache.lucene.index.FieldUpdatesBuffer.BufferedUpdateIterator
-
- Enclosing class:
- FieldUpdatesBuffer
class FieldUpdatesBuffer.BufferedUpdateIterator extends java.lang.ObjectAn iterator that iterates over all updates in insertion order
-
-
Field Summary
Fields Modifier and Type Field Description private FieldUpdatesBuffer.BufferedUpdatebufferedUpdateprivate BytesRefIteratorbyteValuesIteratorprivate BytesRefArray.IndexedBytesRefIteratorlookAheadTermIteratorprivate BytesRefArray.IndexedBytesRefIteratortermValuesIteratorprivate BitsupdatesWithValue
-
Constructor Summary
Constructors Constructor Description BufferedUpdateIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) booleanisSortedTerms()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.BufferedUpdatenext()Moves to the next BufferedUpdate or return null if all updates are consumed.(package private) BytesRefnextTerm()
-
-
-
Field Detail
-
termValuesIterator
private final BytesRefArray.IndexedBytesRefIterator termValuesIterator
-
lookAheadTermIterator
private final BytesRefArray.IndexedBytesRefIterator lookAheadTermIterator
-
byteValuesIterator
private final BytesRefIterator byteValuesIterator
-
bufferedUpdate
private final FieldUpdatesBuffer.BufferedUpdate bufferedUpdate
-
updatesWithValue
private final Bits updatesWithValue
-
-
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
-
-