public class AssertingDirectoryReader extends DirectoryReader
DirectoryReader that wraps all its subreaders with
AssertingAtomicReaderIndexReader.ReaderClosedListener| Modifier and Type | Field and Description |
|---|---|
protected DirectoryReader |
in |
DEFAULT_TERMS_INDEX_DIVISOR, directory| Constructor and Description |
|---|
AssertingDirectoryReader(DirectoryReader in) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doClose() |
protected DirectoryReader |
doOpenIfChanged() |
protected DirectoryReader |
doOpenIfChanged(IndexCommit commit) |
protected DirectoryReader |
doOpenIfChanged(IndexWriter writer,
boolean applyAllDeletes) |
Object |
getCombinedCoreAndDeletesKey() |
Object |
getCoreCacheKey() |
IndexCommit |
getIndexCommit() |
long |
getVersion() |
boolean |
isCurrent() |
directory, indexExists, listCommits, open, open, open, open, open, openIfChanged, openIfChanged, openIfChangeddocFreq, document, getSequentialSubReaders, getTermVectors, hasDeletions, maxDoc, numDocs, readerBase, readerIndex, totalTermFreqgetContext, toStringaddReaderClosedListener, close, decRef, document, document, ensureOpen, equals, getRefCount, getTermVector, hashCode, incRef, leaves, numDeletedDocs, registerParentReader, removeReaderClosedListener, tryIncRefprotected DirectoryReader in
public AssertingDirectoryReader(DirectoryReader in)
protected DirectoryReader doOpenIfChanged() throws IOException
doOpenIfChanged in class DirectoryReaderIOExceptionprotected DirectoryReader doOpenIfChanged(IndexCommit commit) throws IOException
doOpenIfChanged in class DirectoryReaderIOExceptionprotected DirectoryReader doOpenIfChanged(IndexWriter writer, boolean applyAllDeletes) throws IOException
doOpenIfChanged in class DirectoryReaderIOExceptionpublic long getVersion()
getVersion in class DirectoryReaderpublic boolean isCurrent()
throws IOException
isCurrent in class DirectoryReaderIOExceptionpublic IndexCommit getIndexCommit() throws IOException
getIndexCommit in class DirectoryReaderIOExceptionprotected void doClose()
throws IOException
doClose in class IndexReaderIOExceptionpublic Object getCoreCacheKey()
getCoreCacheKey in class IndexReaderpublic Object getCombinedCoreAndDeletesKey()
getCombinedCoreAndDeletesKey in class IndexReaderCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.