java.lang.Object
org.apache.lucene.index.DocIDMerger.Sub
- Direct Known Subclasses:
DocValuesConsumer.BinaryDocValuesSub,DocValuesConsumer.NumericDocValuesSub,DocValuesConsumer.SortedDocValuesSub,DocValuesConsumer.SortedNumericDocValuesSub,DocValuesConsumer.SortedSetDocValuesSub,KnnVectorsWriter.ByteVectorValuesSub,KnnVectorsWriter.VectorValuesSub,Lucene90CompressingStoredFieldsWriter.CompressingStoredFieldsMergeSub,Lucene90CompressingTermVectorsWriter.CompressingTermVectorsSub,Lucene99ScalarQuantizedVectorsWriter.QuantizedByteVectorValueSub,MappingMultiPostingsEnum.MappingPostingsSub,NormsConsumer.NumericDocValuesSub,StoredFieldsWriter.StoredFieldsMergeSub,TermVectorsWriter.TermVectorsMergeSub
- 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
-