Uses of Class
org.apache.lucene.index.DirectoryReader
Packages that use DirectoryReader
-
Uses of DirectoryReader in org.apache.lucene.index
Subclasses of DirectoryReader in org.apache.lucene.indexModifier and TypeClassDescriptionclass
A FilterDirectoryReader wraps another DirectoryReader, allowing implementations to transform or extend it.Fields in org.apache.lucene.index declared as DirectoryReaderModifier and TypeFieldDescriptionprotected final DirectoryReader
FilterDirectoryReader.in
The filtered DirectoryReaderMethods in org.apache.lucene.index that return DirectoryReaderModifier and TypeMethodDescriptionprotected abstract DirectoryReader
DirectoryReader.doOpenIfChanged()
Implement this method to supportopenIfChanged(DirectoryReader)
.protected abstract DirectoryReader
DirectoryReader.doOpenIfChanged
(IndexCommit commit) Implement this method to supportopenIfChanged(DirectoryReader,IndexCommit)
.protected abstract DirectoryReader
DirectoryReader.doOpenIfChanged
(IndexWriter writer, boolean applyAllDeletes) Implement this method to supportopenIfChanged(DirectoryReader,IndexWriter,boolean)
.protected final DirectoryReader
FilterDirectoryReader.doOpenIfChanged()
protected final DirectoryReader
FilterDirectoryReader.doOpenIfChanged
(IndexCommit commit) protected final DirectoryReader
FilterDirectoryReader.doOpenIfChanged
(IndexWriter writer, boolean applyAllDeletes) protected abstract DirectoryReader
FilterDirectoryReader.doWrapDirectoryReader
(DirectoryReader in) Called by the doOpenIfChanged() methods to return a new wrapped DirectoryReader.static DirectoryReader
DirectoryReader.open
(IndexCommit commit) Expert: returns an IndexReader reading the index in the givenIndexCommit
.static DirectoryReader
DirectoryReader.open
(IndexCommit commit, int termInfosIndexDivisor) Expert: returns an IndexReader reading the index in the givenIndexCommit
and termInfosIndexDivisor.static DirectoryReader
DirectoryReader.open
(IndexWriter writer, boolean applyAllDeletes) Open a near real time IndexReader from theIndexWriter
.static DirectoryReader
Returns a IndexReader reading the index in the given Directorystatic DirectoryReader
Expert: Returns a IndexReader reading the index in the given Directory with the given termInfosIndexDivisor.static DirectoryReader
IndexReader.open
(IndexCommit commit) Deprecated.static DirectoryReader
IndexReader.open
(IndexCommit commit, int termInfosIndexDivisor) Deprecated.static DirectoryReader
IndexReader.open
(IndexWriter writer, boolean applyAllDeletes) Deprecated.static DirectoryReader
Deprecated.Useopen(Directory)
static DirectoryReader
Deprecated.static DirectoryReader
DirectoryReader.openIfChanged
(DirectoryReader oldReader) If the index has changed since the provided reader was opened, open and return a new reader; else, return null.static DirectoryReader
DirectoryReader.openIfChanged
(DirectoryReader oldReader, IndexCommit commit) If the IndexCommit differs from what the provided reader is searching, open and return a new reader; else, return null.static DirectoryReader
DirectoryReader.openIfChanged
(DirectoryReader oldReader, IndexWriter writer, boolean applyAllDeletes) Expert: If there changes (committed or not) in theIndexWriter
versus what the provided reader is searching, then open and return a new IndexReader searching both committed and uncommitted changes from the writer; else, return null (though, the current implementation never returns null).protected DirectoryReader
ReaderManager.refreshIfNeeded
(DirectoryReader referenceToRefresh) Methods in org.apache.lucene.index with parameters of type DirectoryReaderModifier and TypeMethodDescriptionprotected void
ReaderManager.decRef
(DirectoryReader reference) protected abstract DirectoryReader
FilterDirectoryReader.doWrapDirectoryReader
(DirectoryReader in) Called by the doOpenIfChanged() methods to return a new wrapped DirectoryReader.protected int
ReaderManager.getRefCount
(DirectoryReader reference) static DirectoryReader
DirectoryReader.openIfChanged
(DirectoryReader oldReader) If the index has changed since the provided reader was opened, open and return a new reader; else, return null.static DirectoryReader
DirectoryReader.openIfChanged
(DirectoryReader oldReader, IndexCommit commit) If the IndexCommit differs from what the provided reader is searching, open and return a new reader; else, return null.static DirectoryReader
DirectoryReader.openIfChanged
(DirectoryReader oldReader, IndexWriter writer, boolean applyAllDeletes) Expert: If there changes (committed or not) in theIndexWriter
versus what the provided reader is searching, then open and return a new IndexReader searching both committed and uncommitted changes from the writer; else, return null (though, the current implementation never returns null).protected DirectoryReader
ReaderManager.refreshIfNeeded
(DirectoryReader referenceToRefresh) protected boolean
ReaderManager.tryIncRef
(DirectoryReader reference) Constructors in org.apache.lucene.index with parameters of type DirectoryReaderModifierConstructorDescriptionCreate a new FilterDirectoryReader that filters a passed in DirectoryReader.Create a new FilterDirectoryReader that filters a passed in DirectoryReader, using the supplied SubReaderWrapper to wrap its subreader.
open(IndexCommit)