Package org.apache.lucene.index
Class MergeState.DocMap
java.lang.Object
org.apache.lucene.index.MergeState.DocMap
- Enclosing class:
- MergeState
Remaps docids around deletes during merge
- 
Method SummaryModifier and TypeMethodDescriptionstatic MergeState.DocMapbuild(AtomicReader reader) Creates aMergeState.DocMapinstance appropriate for this reader.abstract intget(int docID) Returns the mapped docID corresponding to the provided one.booleanReturns true if there are any deletions.abstract intmaxDoc()Returns the total number of documents, ignoring deletions.abstract intReturns the number of deleted documents.final intnumDocs()Returns the number of not-deleted documents.
- 
Method Details- 
getpublic abstract int get(int docID) Returns the mapped docID corresponding to the provided one.
- 
maxDocpublic abstract int maxDoc()Returns the total number of documents, ignoring deletions.
- 
numDocspublic final int numDocs()Returns the number of not-deleted documents.
- 
numDeletedDocspublic abstract int numDeletedDocs()Returns the number of deleted documents.
- 
hasDeletionspublic boolean hasDeletions()Returns true if there are any deletions.
- 
buildCreates aMergeState.DocMapinstance appropriate for this reader.
 
-