public class AssertingDirectoryReader extends FilterDirectoryReader
DirectoryReader
that wraps all its subreaders with
AssertingLeafReader
FilterDirectoryReader.SubReaderWrapper
IndexReader.ReaderClosedListener
in
directory
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, unwrap
directory, indexExists, listCommits, open, open, open, openIfChanged, openIfChanged, openIfChanged
docFreq, document, getDocCount, getSequentialSubReaders, getSumDocFreq, getSumTotalTermFreq, getTermVectors, maxDoc, numDocs, readerBase, readerIndex, totalTermFreq
getContext, toString
addReaderClosedListener, close, decRef, document, document, ensureOpen, equals, getRefCount, getTermVector, hasDeletions, hashCode, incRef, leaves, numDeletedDocs, registerParentReader, removeReaderClosedListener, tryIncRef
public AssertingDirectoryReader(DirectoryReader in) throws IOException
IOException
protected DirectoryReader doWrapDirectoryReader(DirectoryReader in) throws IOException
FilterDirectoryReader
doWrapDirectoryReader
in class FilterDirectoryReader
in
- the DirectoryReader to wrapIOException
public Object getCoreCacheKey()
IndexReader
getCoreCacheKey
in class IndexReader
public Object getCombinedCoreAndDeletesKey()
IndexReader
getCombinedCoreAndDeletesKey
in class IndexReader
Copyright © 2000–2015 The Apache Software Foundation. All rights reserved.