public class AssertingDirectoryReader extends DirectoryReader
DirectoryReader
that wraps all its subreaders with
AssertingAtomicReader
IndexReader.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, openIfChanged
docFreq, document, getSequentialSubReaders, getTermVectors, hasDeletions, maxDoc, numDocs, readerBase, readerIndex, totalTermFreq
getContext, toString
addReaderClosedListener, close, decRef, document, document, ensureOpen, equals, getRefCount, getTermVector, hashCode, incRef, leaves, numDeletedDocs, registerParentReader, removeReaderClosedListener, tryIncRef
protected DirectoryReader in
public AssertingDirectoryReader(DirectoryReader in)
protected DirectoryReader doOpenIfChanged() throws IOException
doOpenIfChanged
in class DirectoryReader
IOException
protected DirectoryReader doOpenIfChanged(IndexCommit commit) throws IOException
doOpenIfChanged
in class DirectoryReader
IOException
protected DirectoryReader doOpenIfChanged(IndexWriter writer, boolean applyAllDeletes) throws IOException
doOpenIfChanged
in class DirectoryReader
IOException
public long getVersion()
getVersion
in class DirectoryReader
public boolean isCurrent() throws IOException
isCurrent
in class DirectoryReader
IOException
public IndexCommit getIndexCommit() throws IOException
getIndexCommit
in class DirectoryReader
IOException
protected void doClose() throws IOException
doClose
in class IndexReader
IOException
public Object getCoreCacheKey()
getCoreCacheKey
in class IndexReader
public Object getCombinedCoreAndDeletesKey()
getCombinedCoreAndDeletesKey
in class IndexReader
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.