Module org.apache.lucene.core
Package org.apache.lucene.index
Class BufferedUpdatesStream.FinishedSegments
java.lang.Object
org.apache.lucene.index.BufferedUpdatesStream.FinishedSegments
- Enclosing class:
BufferedUpdatesStream
Tracks the contiguous range of packets that have finished resolving. We need this because the
packets are concurrently resolved, and we can only write to disk the contiguous completed
packets.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longLargest del gen, inclusive, for which all prior packets have finished applying.private final LongHashSetThis lets us track the "holes" in the current frontier of applying del gens; once the holes are filled in we can advance completedDelGen.private final InfoStream -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidclear()(package private) voidfinishedSegment(long delGen) (package private) long(package private) booleanstillRunning(long delGen)
-
Field Details
-
completedDelGen
private long completedDelGenLargest del gen, inclusive, for which all prior packets have finished applying. -
finishedDelGens
This lets us track the "holes" in the current frontier of applying del gens; once the holes are filled in we can advance completedDelGen. -
infoStream
-
-
Constructor Details
-
FinishedSegments
FinishedSegments(InfoStream infoStream)
-
-
Method Details
-
clear
void clear() -
stillRunning
boolean stillRunning(long delGen) -
getCompletedDelGen
long getCompletedDelGen() -
finishedSegment
void finishedSegment(long delGen)
-