Uses of Class
org.apache.lucene.index.DocumentsWriterPerThread
-
Packages that use DocumentsWriterPerThread Package Description org.apache.lucene.index Code to maintain and access indices. -
-
Uses of DocumentsWriterPerThread in org.apache.lucene.index
Fields in org.apache.lucene.index with type parameters of type DocumentsWriterPerThread Modifier and Type Field Description private java.util.Queue<DocumentsWriterPerThread>DocumentsWriterFlushControl. blockedFlushesprivate java.util.function.Supplier<DocumentsWriterPerThread>DocumentsWriterPerThreadPool. dwptFactoryprivate java.util.Set<DocumentsWriterPerThread>DocumentsWriterPerThreadPool. dwptsprivate java.util.List<DocumentsWriterPerThread>DocumentsWriterFlushControl. flushingWritersprivate java.util.Queue<DocumentsWriterPerThread>DocumentsWriterFlushControl. flushQueueprivate java.util.Deque<DocumentsWriterPerThread>DocumentsWriterPerThreadPool. freeListMethods in org.apache.lucene.index that return DocumentsWriterPerThread Modifier and Type Method Description private DocumentsWriterPerThreadDocumentsWriterFlushControl. checkout(DocumentsWriterPerThread perThread, boolean markPending)private DocumentsWriterPerThreadDocumentsWriterFlushControl. checkOutForFlush(DocumentsWriterPerThread perThread)(package private) DocumentsWriterPerThreadDocumentsWriterFlushControl. checkoutLargestNonPendingWriter()Returns the largest non-pending flushable DWPT ornullif there is none.(package private) DocumentsWriterPerThreadDocumentsWriterFlushControl. doAfterDocument(DocumentsWriterPerThread perThread, boolean isUpdate)(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 DocumentsWriterPerThread Modifier and Type Method Description java.util.Iterator<DocumentsWriterPerThread>DocumentsWriterFlushControl. allActiveWriters()Returns an iterator that provides access to all currently activeDocumentsWriterPerThreads(package private) java.util.List<DocumentsWriterPerThread>DocumentsWriterPerThreadPool. filterAndLock(java.util.function.Predicate<DocumentsWriterPerThread> predicate)Filters all DWPTs the given predicate applies to and that can be checked out of the pool viaDocumentsWriterPerThreadPool.checkout(DocumentsWriterPerThread).java.util.Iterator<DocumentsWriterPerThread>DocumentsWriterPerThreadPool. iterator()Methods in org.apache.lucene.index with parameters of type DocumentsWriterPerThread Modifier and Type Method Description private voidDocumentsWriter. abortDocumentsWriterPerThread(DocumentsWriterPerThread perThread)Returns how many documents were aborted.private voidDocumentsWriterFlushControl. addFlushingDWPT(DocumentsWriterPerThread perThread)(package private) DocumentsWriterFlushQueue.FlushTicketDocumentsWriterFlushQueue. addFlushTicket(DocumentsWriterPerThread dwpt)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)private DocumentsWriterPerThreadDocumentsWriterFlushControl. checkOutForFlush(DocumentsWriterPerThread perThread)private voidDocumentsWriterFlushControl. commitPerThreadBytes(DocumentsWriterPerThread perThread)(package private) DocumentsWriterPerThreadDocumentsWriterFlushControl. doAfterDocument(DocumentsWriterPerThread perThread, boolean isUpdate)(package private) voidDocumentsWriterFlushControl. doAfterFlush(DocumentsWriterPerThread dwpt)private booleanDocumentsWriter. 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.(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. onDelete(DocumentsWriterFlushControl control, DocumentsWriterPerThread perThread)abstract voidFlushPolicy. onDelete(DocumentsWriterFlushControl control, DocumentsWriterPerThread perThread)Called for each delete term.voidFlushByRamOrCountsPolicy. onInsert(DocumentsWriterFlushControl control, DocumentsWriterPerThread perThread)abstract voidFlushPolicy. onInsert(DocumentsWriterFlushControl control, DocumentsWriterPerThread perThread)Called for each document addition on the givenDocumentsWriterPerThreadsDocumentsWriterPerThread.voidFlushPolicy. onUpdate(DocumentsWriterFlushControl control, DocumentsWriterPerThread perThread)Called for each document update on the givenDocumentsWriterPerThread'sDocumentsWriterPerThread.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 DocumentsWriterPerThread Modifier and Type Method Description (package private) java.util.List<DocumentsWriterPerThread>DocumentsWriterPerThreadPool. filterAndLock(java.util.function.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 DocumentsWriterPerThread Constructor Description DocumentsWriterPerThreadPool(java.util.function.Supplier<DocumentsWriterPerThread> dwptFactory)
-