private static class DocIDMerger.SortedDocIDMerger<T extends DocIDMerger.Sub> extends DocIDMerger<T>
DocIDMerger.Sub
Modifier and Type | Field and Description |
---|---|
private PriorityQueue<T> |
queue |
private java.util.List<T> |
subs |
Modifier | Constructor and Description |
---|---|
private |
SortedDocIDMerger(java.util.List<T> subs,
int maxCount) |
Modifier and Type | Method and Description |
---|---|
T |
next()
Returns null when done.
|
void |
reset()
Reuse API, currently only used by postings during merge
|
of, of
private final java.util.List<T extends DocIDMerger.Sub> subs
private final PriorityQueue<T extends DocIDMerger.Sub> queue
private SortedDocIDMerger(java.util.List<T> subs, int maxCount) throws java.io.IOException
java.io.IOException
public void reset() throws java.io.IOException
DocIDMerger
reset
in class DocIDMerger<T extends DocIDMerger.Sub>
java.io.IOException
public T next() throws java.io.IOException
DocIDMerger
next
in class DocIDMerger<T extends DocIDMerger.Sub>
java.io.IOException