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 classFilterDirectoryReaderA 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 DirectoryReaderFilterDirectoryReader. inThe filtered DirectoryReaderMethods in org.apache.lucene.index that return DirectoryReader Modifier and Type Method Description protected abstract DirectoryReaderDirectoryReader. doOpenIfChanged()Implement this method to supportopenIfChanged(DirectoryReader).protected abstract DirectoryReaderDirectoryReader. doOpenIfChanged(IndexCommit commit)Implement this method to supportopenIfChanged(DirectoryReader,IndexCommit).protected abstract DirectoryReaderDirectoryReader. doOpenIfChanged(IndexWriter writer, boolean applyAllDeletes)Implement this method to supportopenIfChanged(DirectoryReader,IndexWriter,boolean).protected DirectoryReaderFilterDirectoryReader. doOpenIfChanged()protected DirectoryReaderFilterDirectoryReader. doOpenIfChanged(IndexCommit commit)protected DirectoryReaderFilterDirectoryReader. doOpenIfChanged(IndexWriter writer, boolean applyAllDeletes)protected abstract DirectoryReaderFilterDirectoryReader. doWrapDirectoryReader(DirectoryReader in)Called by the doOpenIfChanged() methods to return a new wrapped DirectoryReader.static DirectoryReaderDirectoryReader. open(IndexCommit commit)Expert: returns an IndexReader reading the index in the givenIndexCommit.static DirectoryReaderDirectoryReader. open(IndexCommit commit, int termInfosIndexDivisor)Expert: returns an IndexReader reading the index in the givenIndexCommitand termInfosIndexDivisor.static DirectoryReaderDirectoryReader. open(IndexWriter writer, boolean applyAllDeletes)Open a near real time IndexReader from theIndexWriter.static DirectoryReaderDirectoryReader. open(Directory directory)Returns a IndexReader reading the index in the given Directorystatic DirectoryReaderDirectoryReader. open(Directory directory, int termInfosIndexDivisor)Expert: Returns a IndexReader reading the index in the given Directory with the given termInfosIndexDivisor.static DirectoryReaderIndexReader. open(IndexCommit commit)Deprecated.static DirectoryReaderIndexReader. open(IndexCommit commit, int termInfosIndexDivisor)Deprecated.static DirectoryReaderIndexReader. open(IndexWriter writer, boolean applyAllDeletes)Deprecated.static DirectoryReaderIndexReader. open(Directory directory)Deprecated.Useopen(Directory)static DirectoryReaderIndexReader. open(Directory directory, int termInfosIndexDivisor)Deprecated.static DirectoryReaderDirectoryReader. openIfChanged(DirectoryReader oldReader)If the index has changed since the provided reader was opened, open and return a new reader; else, return null.static DirectoryReaderDirectoryReader. 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 DirectoryReaderDirectoryReader. openIfChanged(DirectoryReader oldReader, IndexWriter writer, boolean applyAllDeletes)Expert: If there changes (committed or not) in theIndexWriterversus 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 DirectoryReaderReaderManager. refreshIfNeeded(DirectoryReader referenceToRefresh)Methods in org.apache.lucene.index with parameters of type DirectoryReader Modifier and Type Method Description protected voidReaderManager. decRef(DirectoryReader reference)protected abstract DirectoryReaderFilterDirectoryReader. doWrapDirectoryReader(DirectoryReader in)Called by the doOpenIfChanged() methods to return a new wrapped DirectoryReader.protected intReaderManager. getRefCount(DirectoryReader reference)static DirectoryReaderDirectoryReader. openIfChanged(DirectoryReader oldReader)If the index has changed since the provided reader was opened, open and return a new reader; else, return null.static DirectoryReaderDirectoryReader. 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 DirectoryReaderDirectoryReader. openIfChanged(DirectoryReader oldReader, IndexWriter writer, boolean applyAllDeletes)Expert: If there changes (committed or not) in theIndexWriterversus 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 DirectoryReaderReaderManager. refreshIfNeeded(DirectoryReader referenceToRefresh)protected booleanReaderManager. 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.
-