Package | Description |
---|---|
org.apache.lucene.index |
Code to maintain and access indices.
|
Modifier and Type | Field and Description |
---|---|
private DocumentsWriter.FlushNotifications |
IndexWriter.flushNotifications |
private DocumentsWriter.FlushNotifications |
DocumentsWriter.flushNotifications |
Modifier and Type | Method and Description |
---|---|
(package private) DocumentsWriterPerThread.FlushedSegment |
DocumentsWriterPerThread.flush(DocumentsWriter.FlushNotifications flushNotifications)
Flush all pending docs to a new segment
|
private void |
DocumentsWriterPerThread.maybeAbort(java.lang.String location,
DocumentsWriter.FlushNotifications flushNotifications) |
(package private) void |
DocumentsWriterPerThread.sealFlushedSegment(DocumentsWriterPerThread.FlushedSegment flushedSegment,
Sorter.DocMap sortMap,
DocumentsWriter.FlushNotifications flushNotifications)
Seals the
SegmentInfo for the new flushed segment and persists
the deleted documents FixedBitSet . |
long |
DocumentsWriterPerThread.updateDocument(java.lang.Iterable<? extends IndexableField> doc,
Analyzer analyzer,
DocumentsWriterDeleteQueue.Node<?> deleteNode,
DocumentsWriter.FlushNotifications flushNotifications) |
long |
DocumentsWriterPerThread.updateDocuments(java.lang.Iterable<? extends java.lang.Iterable<? extends IndexableField>> docs,
Analyzer analyzer,
DocumentsWriterDeleteQueue.Node<?> deleteNode,
DocumentsWriter.FlushNotifications flushNotifications) |
Constructor and Description |
---|
DocumentsWriter(DocumentsWriter.FlushNotifications flushNotifications,
int indexCreatedVersionMajor,
java.util.concurrent.atomic.AtomicLong pendingNumDocs,
boolean enableTestPoints,
java.util.function.Supplier<java.lang.String> segmentNameSupplier,
LiveIndexWriterConfig config,
Directory directoryOrig,
Directory directory,
FieldInfos.FieldNumbers globalFieldNumberMap) |