public class AssertingDirectoryReader extends FilterDirectoryReader
DirectoryReader that wraps all its subreaders with
AssertingLeafReaderFilterDirectoryReader.SubReaderWrapperIndexReader.CacheHelper, IndexReader.CacheKey, IndexReader.ClosedListenerindirectory| Constructor and Description |
|---|
AssertingDirectoryReader(DirectoryReader in) |
| Modifier and Type | Method and Description |
|---|---|
protected DirectoryReader |
doWrapDirectoryReader(DirectoryReader in)
Called by the doOpenIfChanged() methods to return a new wrapped DirectoryReader.
|
IndexReader.CacheHelper |
getReaderCacheHelper()
Optional method: Return a
IndexReader.CacheHelper that can be used to cache
based on the content of this reader. |
doClose, doOpenIfChanged, doOpenIfChanged, doOpenIfChanged, getDelegate, getIndexCommit, getVersion, isCurrent, unwrapdirectory, indexExists, listCommits, open, open, open, open, openIfChanged, openIfChanged, openIfChanged, openIfChangeddocFreq, document, getDocCount, getSequentialSubReaders, getSumDocFreq, getSumTotalTermFreq, getTermVectors, maxDoc, numDocs, readerBase, readerIndex, totalTermFreqgetContext, toStringclose, decRef, document, document, ensureOpen, equals, getRefCount, getTermVector, hasDeletions, hashCode, incRef, leaves, numDeletedDocs, registerParentReader, tryIncRefpublic AssertingDirectoryReader(DirectoryReader in) throws java.io.IOException
java.io.IOExceptionprotected DirectoryReader doWrapDirectoryReader(DirectoryReader in) throws java.io.IOException
FilterDirectoryReaderdoWrapDirectoryReader in class FilterDirectoryReaderin - the DirectoryReader to wrapjava.io.IOExceptionpublic IndexReader.CacheHelper getReaderCacheHelper()
IndexReaderIndexReader.CacheHelper that can be used to cache
based on the content of this reader. Two readers that have different data
or different sets of deleted documents will be considered different.
A return value of null indicates that this reader is not suited
for caching, which is typically the case for short-lived wrappers that
alter the content of the wrapped reader.
getReaderCacheHelper in class IndexReaderCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.