Uses of Class
org.apache.lucene.index.DocumentsWriterPerThread
Packages that use DocumentsWriterPerThread
-
Uses of DocumentsWriterPerThread in org.apache.lucene.index
Fields in org.apache.lucene.index with type parameters of type DocumentsWriterPerThreadModifier and TypeFieldDescriptionprivate final Queue<DocumentsWriterPerThread> DocumentsWriterFlushControl.blockedFlushesprivate final Supplier<DocumentsWriterPerThread> DocumentsWriterPerThreadPool.dwptFactoryprivate final Set<DocumentsWriterPerThread> DocumentsWriterPerThreadPool.dwptsprivate final List<DocumentsWriterPerThread> DocumentsWriterFlushControl.flushingWritersprivate final Queue<DocumentsWriterPerThread> DocumentsWriterFlushControl.flushQueueDocumentsWriterPerThreadPool.freeListMethods in org.apache.lucene.index that return DocumentsWriterPerThreadModifier and TypeMethodDescriptionprivate DocumentsWriterPerThreadDocumentsWriterFlushControl.checkout(DocumentsWriterPerThread perThread, boolean markPending) private DocumentsWriterPerThreadDocumentsWriterFlushControl.checkOutForFlush(DocumentsWriterPerThread perThread) (package private) final DocumentsWriterPerThreadDocumentsWriterFlushControl.checkoutLargestNonPendingWriter()Returns the largest non-pending flushable DWPT ornullif there is none.(package private) DocumentsWriterPerThreadDocumentsWriterFlushControl.doAfterDocument(DocumentsWriterPerThread perThread) (package private) DocumentsWriterPerThreadDocumentsWriterFlushControl.findLargestNonPendingWriter()protected DocumentsWriterPerThreadFlushPolicy.findLargestNonPendingWriter(DocumentsWriterFlushControl control, DocumentsWriterPerThread perThread) Returns the current most RAM consuming non-pendingDocumentsWriterPerThreadwith at least one indexed document.(package private) DocumentsWriterPerThreadDocumentsWriterPerThreadPool.getAndLock()This method is used by DocumentsWriter/FlushControl to obtain a DWPT to do an indexing operation (add/updateDocument).private DocumentsWriterPerThreadDocumentsWriterPerThreadPool.newWriter()Returns a new already lockedDocumentsWriterPerThread(package private) DocumentsWriterPerThreadDocumentsWriterFlushControl.nextPendingFlush()(package private) DocumentsWriterPerThreadDocumentsWriterFlushControl.obtainAndLock()Methods in org.apache.lucene.index that return types with arguments of type DocumentsWriterPerThreadModifier and TypeMethodDescriptionDocumentsWriterFlushControl.allActiveWriters()Returns an iterator that provides access to all currently activeDocumentsWriterPerThreads(package private) List<DocumentsWriterPerThread> DocumentsWriterPerThreadPool.filterAndLock(Predicate<DocumentsWriterPerThread> predicate) Filters all DWPTs the given predicate applies to and that can be checked out of the pool viaDocumentsWriterPerThreadPool.checkout(DocumentsWriterPerThread).DocumentsWriterPerThreadPool.iterator()Methods in org.apache.lucene.index with parameters of type DocumentsWriterPerThreadModifier and TypeMethodDescriptionprivate voidDocumentsWriter.abortDocumentsWriterPerThread(DocumentsWriterPerThread perThread) Returns how many documents were aborted.private voidDocumentsWriterFlushControl.addFlushingDWPT(DocumentsWriterPerThread perThread) private DocumentsWriterPerThreadDocumentsWriterFlushControl.checkout(DocumentsWriterPerThread perThread, boolean markPending) (package private) booleanDocumentsWriterPerThreadPool.checkout(DocumentsWriterPerThread perThread) Removes the given DWPT from the pool unless it's already been removed before.private voidDocumentsWriterFlushControl.checkoutAndBlock(DocumentsWriterPerThread perThread) To be called only by the owner of this object's monitor lockprivate DocumentsWriterPerThreadDocumentsWriterFlushControl.checkOutForFlush(DocumentsWriterPerThread perThread) private booleanDocumentsWriterPerThreadPool.contains(DocumentsWriterPerThread state) (package private) DocumentsWriterPerThreadDocumentsWriterFlushControl.doAfterDocument(DocumentsWriterPerThread perThread) (package private) voidDocumentsWriterFlushControl.doAfterFlush(DocumentsWriterPerThread dwpt) private voidDocumentsWriter.doFlush(DocumentsWriterPerThread flushingDWPT) (package private) voidDocumentsWriterFlushControl.doOnAbort(DocumentsWriterPerThread perThread) protected DocumentsWriterPerThreadFlushPolicy.findLargestNonPendingWriter(DocumentsWriterFlushControl control, DocumentsWriterPerThread perThread) Returns the current most RAM consuming non-pendingDocumentsWriterPerThreadwith at least one indexed document.private voidFlushByRamOrCountsPolicy.flushActiveBytes(DocumentsWriterFlushControl control, DocumentsWriterPerThread perThread) (package private) booleanDocumentsWriterPerThreadPool.isRegistered(DocumentsWriterPerThread perThread) Returnstrueif this DWPT is still part of the poolprotected voidFlushByRamOrCountsPolicy.markLargestWriterPending(DocumentsWriterFlushControl control, DocumentsWriterPerThread perThread) Marks the most ram consuming activeDocumentsWriterPerThreadflush pending(package private) voidDocumentsWriterPerThreadPool.marksAsFreeAndUnlock(DocumentsWriterPerThread state) voidFlushByRamOrCountsPolicy.onChange(DocumentsWriterFlushControl control, DocumentsWriterPerThread perThread) abstract voidFlushPolicy.onChange(DocumentsWriterFlushControl control, DocumentsWriterPerThread perThread) Called for each delete, insert or update.private booleanDocumentsWriter.postUpdate(DocumentsWriterPerThread flushingDWPT, boolean hasEvents) voidDocumentsWriterFlushControl.setFlushPending(DocumentsWriterPerThread perThread) Sets flush pending state on the givenDocumentsWriterPerThread.Method parameters in org.apache.lucene.index with type arguments of type DocumentsWriterPerThreadModifier and TypeMethodDescription(package private) List<DocumentsWriterPerThread> DocumentsWriterPerThreadPool.filterAndLock(Predicate<DocumentsWriterPerThread> predicate) Filters all DWPTs the given predicate applies to and that can be checked out of the pool viaDocumentsWriterPerThreadPool.checkout(DocumentsWriterPerThread).Constructor parameters in org.apache.lucene.index with type arguments of type DocumentsWriterPerThreadModifierConstructorDescription(package private)DocumentsWriterPerThreadPool(Supplier<DocumentsWriterPerThread> dwptFactory)