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, totalTermFreq
getContext, toString
close, decRef, document, document, ensureOpen, equals, getRefCount, getTermVector, hasDeletions, hashCode, incRef, leaves, notifyReaderClosedListeners, numDeletedDocs, registerParentReader, tryIncRef
public FakeDeleteIndexReader(IndexReader reader) throws java.io.IOException
java.io.IOException
private static MultiPassIndexSplitter.FakeDeleteLeafIndexReader[] initSubReaders(IndexReader reader) throws java.io.IOException
java.io.IOException
public void deleteDocument(int docID)
public void undeleteAll()
protected void doClose()
IndexReader
doClose
in class IndexReader
public IndexReader.CacheHelper getReaderCacheHelper()
IndexReader
IndexReader.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