public class AssertingDirectoryReader extends FilterDirectoryReader
DirectoryReader that wraps all its subreaders with
AssertingLeafReaderFilterDirectoryReader.SubReaderWrapperIndexReader.ReaderClosedListenerindirectory| 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.
|
Object |
getCombinedCoreAndDeletesKey()
Expert: Returns a key for this IndexReader that also includes deletions,
so CachingWrapperFilter can find it again.
|
Object |
getCoreCacheKey()
Expert: Returns a key for this IndexReader, so CachingWrapperFilter can find
it again.
|
doClose, doOpenIfChanged, doOpenIfChanged, doOpenIfChanged, getDelegate, getIndexCommit, getVersion, isCurrent, unwrapdirectory, indexExists, listCommits, open, open, open, openIfChanged, openIfChanged, openIfChangeddocFreq, document, getDocCount, getSequentialSubReaders, getSumDocFreq, getSumTotalTermFreq, getTermVectors, maxDoc, numDocs, readerBase, readerIndex, totalTermFreqgetContext, toStringaddReaderClosedListener, close, decRef, document, document, ensureOpen, equals, getRefCount, getTermVector, hasDeletions, hashCode, incRef, leaves, numDeletedDocs, registerParentReader, removeReaderClosedListener, tryIncRefpublic AssertingDirectoryReader(DirectoryReader in) throws IOException
IOExceptionprotected DirectoryReader doWrapDirectoryReader(DirectoryReader in) throws IOException
FilterDirectoryReaderdoWrapDirectoryReader in class FilterDirectoryReaderin - the DirectoryReader to wrapIOExceptionpublic Object getCoreCacheKey()
IndexReadergetCoreCacheKey in class IndexReaderpublic Object getCombinedCoreAndDeletesKey()
IndexReadergetCombinedCoreAndDeletesKey in class IndexReaderCopyright © 2000–2015 The Apache Software Foundation. All rights reserved.