Package org.apache.lucene.index
Class DocIDMerger.Sub
- java.lang.Object
- 
- org.apache.lucene.index.DocIDMerger.Sub
 
- 
- Enclosing class:
- DocIDMerger<T extends DocIDMerger.Sub>
 
 public abstract static class DocIDMerger.Sub extends Object Represents one sub-reader being merged
- 
- 
Field SummaryFields Modifier and Type Field Description MergeState.DocMapdocMapMap from old to new doc IDsintmappedDocIDMapped doc ID
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedSub(MergeState.DocMap docMap)Sole constructor
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract intnextDoc()Returns the next document ID from this sub reader, andDocIdSetIterator.NO_MORE_DOCSwhen doneintnextMappedDoc()LikenextDoc()but skips over unmapped docs and returns the next mapped doc ID, orDocIdSetIterator.NO_MORE_DOCSwhen exhausted.
 
- 
- 
- 
Field Detail- 
mappedDocIDpublic int mappedDocID Mapped doc ID
 - 
docMappublic final MergeState.DocMap docMap Map from old to new doc IDs
 
- 
 - 
Constructor Detail- 
Subprotected Sub(MergeState.DocMap docMap) Sole constructor
 
- 
 - 
Method Detail- 
nextDocpublic abstract int nextDoc() throws IOExceptionReturns the next document ID from this sub reader, andDocIdSetIterator.NO_MORE_DOCSwhen done- Throws:
- IOException
 
 - 
nextMappedDocpublic final int nextMappedDoc() throws IOExceptionLikenextDoc()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
 
 
- 
 
-