Package org.apache.lucene.index
Class MergeState.DocMap
- java.lang.Object
 - 
- org.apache.lucene.index.MergeState.DocMap
 
 
- 
- Enclosing class:
 - MergeState
 
public abstract static class MergeState.DocMap extends java.lang.ObjectRemaps docids around deletes during merge 
- 
- 
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static MergeState.DocMapbuild(AtomicReader reader)Creates aMergeState.DocMapinstance appropriate for this reader.abstract intget(int docID)Returns the mapped docID corresponding to the provided one.booleanhasDeletions()Returns true if there are any deletions.abstract intmaxDoc()Returns the total number of documents, ignoring deletions.abstract intnumDeletedDocs()Returns the number of deleted documents.intnumDocs()Returns the number of not-deleted documents. 
 - 
 
- 
- 
Method Detail
- 
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
public static MergeState.DocMap build(AtomicReader reader)
Creates aMergeState.DocMapinstance appropriate for this reader. 
 - 
 
 -