Uses of Class
org.apache.lucene.index.DirectoryReader
-
Packages that use DirectoryReader Package Description org.apache.lucene.index Code to maintain and access indices. -
-
Uses of DirectoryReader in org.apache.lucene.index
Subclasses of DirectoryReader in org.apache.lucene.index Modifier and Type Class Description class
FilterDirectoryReader
A FilterDirectoryReader wraps another DirectoryReader, allowing implementations to transform or extend it.Fields in org.apache.lucene.index declared as DirectoryReader Modifier and Type Field Description protected DirectoryReader
FilterDirectoryReader. in
The filtered DirectoryReaderMethods in org.apache.lucene.index that return DirectoryReader Modifier and Type Method Description protected 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 DirectoryReader
FilterDirectoryReader. doOpenIfChanged()
protected DirectoryReader
FilterDirectoryReader. doOpenIfChanged(IndexCommit commit)
protected 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
DirectoryReader. open(Directory directory)
Returns a IndexReader reading the index in the given Directorystatic DirectoryReader
DirectoryReader. open(Directory directory, int termInfosIndexDivisor)
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
IndexReader. open(Directory directory)
Deprecated.Useopen(Directory)
static DirectoryReader
IndexReader. open(Directory directory, int termInfosIndexDivisor)
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 DirectoryReader Modifier and Type Method Description protected 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 DirectoryReader Constructor Description FilterDirectoryReader(DirectoryReader in)
Create a new FilterDirectoryReader that filters a passed in DirectoryReader.FilterDirectoryReader(DirectoryReader in, FilterDirectoryReader.SubReaderWrapper wrapper)
Create a new FilterDirectoryReader that filters a passed in DirectoryReader, using the supplied SubReaderWrapper to wrap its subreader.
-