| 
 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
| Packages that use DirectoryReader | |
|---|---|
| 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 | |
|---|---|
|  class | FilterDirectoryReaderA FilterDirectoryReader wraps another DirectoryReader, allowing implementations to transform or extend it. | 
| Fields in org.apache.lucene.index declared as DirectoryReader | |
|---|---|
| protected  DirectoryReader | FilterDirectoryReader.inThe filtered DirectoryReader | 
| Methods in org.apache.lucene.index that return DirectoryReader | |
|---|---|
| protected  DirectoryReader | FilterDirectoryReader.doOpenIfChanged() | 
| protected abstract  DirectoryReader | DirectoryReader.doOpenIfChanged()Implement this method to support openIfChanged(DirectoryReader). | 
| protected  DirectoryReader | FilterDirectoryReader.doOpenIfChanged(IndexCommit commit) | 
| protected abstract  DirectoryReader | DirectoryReader.doOpenIfChanged(IndexCommit commit)Implement this method to support openIfChanged(DirectoryReader,IndexCommit). | 
| protected  DirectoryReader | FilterDirectoryReader.doOpenIfChanged(IndexWriter writer,
                boolean applyAllDeletes) | 
| protected abstract  DirectoryReader | DirectoryReader.doOpenIfChanged(IndexWriter writer,
                boolean applyAllDeletes)Implement this method to support openIfChanged(DirectoryReader,IndexWriter,boolean). | 
| protected abstract  DirectoryReader | FilterDirectoryReader.doWrapDirectoryReader(DirectoryReader in)Called by the doOpenIfChanged() methods to return a new wrapped DirectoryReader. | 
| 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 IndexCommitand 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 IndexWriterversus 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 | |
|---|---|
| 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 the IndexWriterversus 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 | |
|---|---|
| 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. | |
| 
 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||