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 Summary
Modifier and TypeMethodDescriptionstatic MergeState.DocMap
build
(AtomicReader reader) Creates aMergeState.DocMap
instance appropriate for this reader.abstract int
get
(int docID) Returns the mapped docID corresponding to the provided one.boolean
Returns true if there are any deletions.abstract int
maxDoc()
Returns the total number of documents, ignoring deletions.abstract int
Returns the number of deleted documents.final int
numDocs()
Returns the number of not-deleted documents.
-
Method Details
-
get
public abstract int get(int docID) Returns the mapped docID corresponding to the provided one. -
maxDoc
public abstract int maxDoc()Returns the total number of documents, ignoring deletions. -
numDocs
public final int numDocs()Returns the number of not-deleted documents. -
numDeletedDocs
public abstract int numDeletedDocs()Returns the number of deleted documents. -
hasDeletions
public boolean hasDeletions()Returns true if there are any deletions. -
build
Creates aMergeState.DocMap
instance appropriate for this reader.
-