private static final class MultiPassIndexSplitter.FakeDeleteIndexReader extends BaseCompositeReader<MultiPassIndexSplitter.FakeDeleteLeafIndexReader>
IndexReader.CacheHelper, IndexReader.CacheKey, IndexReader.ClosedListener| Constructor and Description |
|---|
FakeDeleteIndexReader(IndexReader reader) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteDocument(int docID) |
protected void |
doClose()
Implements close.
|
IndexReader.CacheHelper |
getReaderCacheHelper()
Optional method: Return a
IndexReader.CacheHelper that can be used to cache
based on the content of this reader. |
private static MultiPassIndexSplitter.FakeDeleteLeafIndexReader[] |
initSubReaders(IndexReader reader) |
void |
undeleteAll() |
docFreq, document, getDocCount, getSequentialSubReaders, getSumDocFreq, getSumTotalTermFreq, getTermVectors, maxDoc, numDocs, readerBase, readerIndex, totalTermFreqgetContext, toStringclose, decRef, document, document, ensureOpen, equals, getRefCount, getTermVector, hasDeletions, hashCode, incRef, leaves, notifyReaderClosedListeners, numDeletedDocs, registerParentReader, tryIncRefpublic FakeDeleteIndexReader(IndexReader reader) throws java.io.IOException
java.io.IOExceptionprivate static MultiPassIndexSplitter.FakeDeleteLeafIndexReader[] initSubReaders(IndexReader reader) throws java.io.IOException
java.io.IOExceptionpublic void deleteDocument(int docID)
public void undeleteAll()
protected void doClose()
IndexReaderdoClose in class IndexReaderpublic 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 IndexReader