abstract static class DocumentsWriterFlushQueue.FlushTicket
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected FrozenBufferedUpdates |
frozenUpdates |
protected boolean |
published |
| Modifier | Constructor and Description |
|---|---|
protected |
FlushTicket(FrozenBufferedUpdates frozenUpdates) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
canPublish() |
protected void |
finishFlush(IndexWriter indexWriter,
DocumentsWriterPerThread.FlushedSegment newSegment,
FrozenBufferedUpdates bufferedUpdates) |
protected abstract void |
publish(IndexWriter writer) |
protected void |
publishFlushedSegment(IndexWriter indexWriter,
DocumentsWriterPerThread.FlushedSegment newSegment,
FrozenBufferedUpdates globalPacket)
Publishes the flushed segment, segment private deletes (if any) and its
associated global delete (if present) to IndexWriter.
|
protected FrozenBufferedUpdates frozenUpdates
protected boolean published
protected FlushTicket(FrozenBufferedUpdates frozenUpdates)
protected abstract void publish(IndexWriter writer) throws java.io.IOException
java.io.IOExceptionprotected abstract boolean canPublish()
protected final void publishFlushedSegment(IndexWriter indexWriter, DocumentsWriterPerThread.FlushedSegment newSegment, FrozenBufferedUpdates globalPacket) throws java.io.IOException
IW -> BDS so that the SegmentInfo's
delete generation is always GlobalPacket_deleteGeneration + 1java.io.IOExceptionprotected final void finishFlush(IndexWriter indexWriter, DocumentsWriterPerThread.FlushedSegment newSegment, FrozenBufferedUpdates bufferedUpdates) throws java.io.IOException
java.io.IOException