Package org.apache.lucene.index
Class DocIDMerger.Sub
- java.lang.Object
-
- org.apache.lucene.index.DocIDMerger.Sub
-
- Direct Known Subclasses:
DocValuesConsumer.BinaryDocValuesSub
,DocValuesConsumer.NumericDocValuesSub
,DocValuesConsumer.SortedDocValuesSub
,DocValuesConsumer.SortedNumericDocValuesSub
,DocValuesConsumer.SortedSetDocValuesSub
,KnnVectorsWriter.VectorValuesSub
,Lucene90CompressingStoredFieldsWriter.CompressingStoredFieldsMergeSub
,Lucene90CompressingTermVectorsWriter.CompressingTermVectorsSub
,MappingMultiPostingsEnum.MappingPostingsSub
,NormsConsumer.NumericDocValuesSub
,StoredFieldsWriter.StoredFieldsMergeSub
,TermVectorsWriter.TermVectorsMergeSub
- Enclosing class:
- DocIDMerger<T extends DocIDMerger.Sub>
public abstract static class DocIDMerger.Sub extends java.lang.Object
Represents one sub-reader being merged
-
-
Field Summary
Fields Modifier and Type Field Description MergeState.DocMap
docMap
Map from old to new doc IDsint
mappedDocID
Mapped doc ID
-
Constructor Summary
Constructors Modifier Constructor Description protected
Sub(MergeState.DocMap docMap)
Sole constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract int
nextDoc()
Returns the next document ID from this sub reader, andDocIdSetIterator.NO_MORE_DOCS
when doneint
nextMappedDoc()
LikenextDoc()
but skips over unmapped docs and returns the next mapped doc ID, orDocIdSetIterator.NO_MORE_DOCS
when exhausted.
-
-
-
Field Detail
-
mappedDocID
public int mappedDocID
Mapped doc ID
-
docMap
public final MergeState.DocMap docMap
Map from old to new doc IDs
-
-
Constructor Detail
-
Sub
protected Sub(MergeState.DocMap docMap)
Sole constructor
-
-
Method Detail
-
nextDoc
public abstract int nextDoc() throws java.io.IOException
Returns the next document ID from this sub reader, andDocIdSetIterator.NO_MORE_DOCS
when done- Throws:
java.io.IOException
-
nextMappedDoc
public final int nextMappedDoc() throws java.io.IOException
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:
java.io.IOException
-
-