Package org.apache.lucene.index
Class DocIDMerger.Sub
java.lang.Object
org.apache.lucene.index.DocIDMerger.Sub
- Enclosing class:
DocIDMerger<T extends DocIDMerger.Sub>
Represents one sub-reader being merged
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal MergeState.DocMapMap from old to new doc IDsintMapped doc ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract intnextDoc()Returns the next document ID from this sub reader, andDocIdSetIterator.NO_MORE_DOCSwhen donefinal intLikenextDoc()but skips over unmapped docs and returns the next mapped doc ID, orDocIdSetIterator.NO_MORE_DOCSwhen exhausted.
-
Field Details
-
mappedDocID
public int mappedDocIDMapped doc ID -
docMap
Map from old to new doc IDs
-
-
Constructor Details
-
Sub
Sole constructor
-
-
Method Details
-
nextDoc
Returns the next document ID from this sub reader, andDocIdSetIterator.NO_MORE_DOCSwhen done- Throws:
IOException
-
nextMappedDoc
LikenextDoc()but skips over unmapped docs and returns the next mapped doc ID, orDocIdSetIterator.NO_MORE_DOCSwhen exhausted. This method setsmappedDocIDas a side effect.- Throws:
IOException
-