public abstract static class DocIDMerger.Sub extends Object
| Modifier and Type | Field and Description |
|---|---|
int |
mappedDocID
Mapped doc ID
|
| Constructor and Description |
|---|
Sub(MergeState.DocMap docMap)
Sole constructor
|
| Modifier and Type | Method and Description |
|---|---|
abstract int |
nextDoc()
Returns the next document ID from this sub reader, and
DocIdSetIterator.NO_MORE_DOCS when done |
int |
nextMappedDoc()
Like
nextDoc() but skips over unmapped docs and returns the next mapped doc ID, or
DocIdSetIterator.NO_MORE_DOCS when exhausted. |
public Sub(MergeState.DocMap docMap)
public abstract int nextDoc()
throws IOException
DocIdSetIterator.NO_MORE_DOCS when doneIOExceptionpublic final int nextMappedDoc()
throws IOException
nextDoc() but skips over unmapped docs and returns the next mapped doc ID, or
DocIdSetIterator.NO_MORE_DOCS when exhausted. This method sets mappedDocID
as a side effect.IOExceptionCopyright © 2000-2024 Apache Software Foundation. All Rights Reserved.