## 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

Methods in org.apache.lucene.index that return DirectoryReader
Modifier and Type | Method and Description
--- | ---
`protected abstract DirectoryReader` | DirectoryReader.`doOpenIfChanged()` Implement this method to support `openIfChanged(DirectoryReader)`.
`protected abstract DirectoryReader` | DirectoryReader.`doOpenIfChanged(IndexCommit commit)` Implement this method to support `openIfChanged(DirectoryReader,IndexCommit)`.
`protected abstract DirectoryReader` | DirectoryReader.`doOpenIfChanged(IndexWriter writer, boolean applyAllDeletes)` Implement this method to support `openIfChanged(DirectoryReader,IndexWriter,boolean)`.
`static DirectoryReader` | IndexReader.`open(Directory directory)` Deprecated. Use `open(Directory)`
`static DirectoryReader` | DirectoryReader.`open(Directory directory)` Returns a IndexReader reading the index in the given Directory
`static DirectoryReader` | IndexReader.`open(Directory directory, int termInfosIndexDivisor)` Deprecated. Use `open(Directory,int)`
`static 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. Use `open(IndexCommit)`
`static DirectoryReader` | DirectoryReader.`open(IndexCommit commit)` Expert: returns an IndexReader reading the index in the given `IndexCommit`.
`static DirectoryReader` | IndexReader.`open(IndexCommit commit, int termInfosIndexDivisor)` Deprecated. Use `open(IndexCommit,int)`
`static DirectoryReader` | DirectoryReader.`open(IndexCommit commit, int termInfosIndexDivisor)` Expert: returns an IndexReader reading the index in the given `IndexCommit` and termInfosIndexDivisor.
`static DirectoryReader` | IndexReader.`open(IndexWriter writer, boolean applyAllDeletes)` Deprecated. Use `open(IndexWriter,boolean)`
`static DirectoryReader` | DirectoryReader.`open(IndexWriter writer, boolean applyAllDeletes)` Open a near real time IndexReader from the `IndexWriter`.
`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 the `IndexWriter` 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 and Description
--- | ---
`protected void` | ReaderManager.`decRef(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 the `IndexWriter` 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)`