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
Modifier and TypeFieldDescriptionfinal MergeState.DocMap
Map from old to new doc IDsint
Mapped doc ID -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract int
nextDoc()
Returns the next document ID from this sub reader, andDocIdSetIterator.NO_MORE_DOCS
when donefinal int
LikenextDoc()
but skips over unmapped docs and returns the next mapped doc ID, orDocIdSetIterator.NO_MORE_DOCS
when 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_DOCS
when done- Throws:
IOException
-
nextMappedDoc
LikenextDoc()
but skips over unmapped docs and returns the next mapped doc ID, orDocIdSetIterator.NO_MORE_DOCS
when exhausted. This method setsmappedDocID
as a side effect.- Throws:
IOException
-