private static final class MultiPassIndexSplitter.FakeDeleteLeafIndexReader extends FilterCodecReader
LeafReader.CoreClosedListener
IndexReader.ReaderClosedListener
Modifier and Type | Field and Description |
---|---|
(package private) FixedBitSet |
liveDocs |
in
docsWithFieldLocal, docValuesLocal, normsLocal
Constructor and Description |
---|
FakeDeleteLeafIndexReader(CodecReader reader) |
Modifier and Type | Method and Description |
---|---|
void |
deleteDocument(int n) |
Bits |
getLiveDocs()
Returns the
Bits representing live (not
deleted) docs. |
int |
numDocs()
Returns the number of documents in this index.
|
void |
undeleteAll() |
addCoreClosedListener, getDocValuesReader, getFieldInfos, getFieldsReader, getNormsReader, getPointsReader, getPointValues, getPostingsReader, getTermVectorsReader, maxDoc, removeCoreClosedListener
checkIntegrity, doClose, document, fields, getBinaryDocValues, getChildResources, getDocsWithField, getNormValues, getNumericDocValues, getSortedDocValues, getSortedNumericDocValues, getSortedSetDocValues, getTermVectors, ramBytesUsed
addCoreClosedListenerAsReaderClosedListener, docFreq, getContext, getDocCount, getSumDocFreq, getSumTotalTermFreq, postings, postings, removeCoreClosedListenerAsReaderClosedListener, terms, totalTermFreq
addReaderClosedListener, close, decRef, document, document, ensureOpen, equals, getCombinedCoreAndDeletesKey, getCoreCacheKey, getRefCount, getTermVector, hasDeletions, hashCode, incRef, leaves, numDeletedDocs, registerParentReader, removeReaderClosedListener, tryIncRef
FixedBitSet liveDocs
public FakeDeleteLeafIndexReader(CodecReader reader)
public int numDocs()
IndexReader
numDocs
in class FilterCodecReader
public void undeleteAll()
public void deleteDocument(int n)
public Bits getLiveDocs()
LeafReader
Bits
representing live (not
deleted) docs. A set bit indicates the doc ID has not
been deleted. If this method returns null it means
there are no deleted documents (all documents are
live).
The returned instance has been safely published for
use by multiple threads without additional
synchronization.getLiveDocs
in class FilterCodecReader