private static class PKIndexSplitter.DocumentFilteredLeafIndexReader extends FilterCodecReader
LeafReader.CoreClosedListener
IndexReader.ReaderClosedListener
Modifier and Type | Field and Description |
---|---|
(package private) Bits |
liveDocs |
(package private) int |
numDocs |
in
docsWithFieldLocal, docValuesLocal, normsLocal
Constructor and Description |
---|
DocumentFilteredLeafIndexReader(LeafReaderContext context,
Weight preserveWeight,
boolean negateFilter) |
Modifier and Type | Method and Description |
---|---|
Bits |
getLiveDocs()
Returns the
Bits representing live (not
deleted) docs. |
int |
numDocs()
Returns the number of documents in this index.
|
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
final Bits liveDocs
final int numDocs
public DocumentFilteredLeafIndexReader(LeafReaderContext context, Weight preserveWeight, boolean negateFilter) throws java.io.IOException
java.io.IOException
public int numDocs()
IndexReader
numDocs
in class FilterCodecReader
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