public abstract class DocIDMerger<T extends DocIDMerger.Sub>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
DocIDMerger.SequentialDocIDMerger<T extends DocIDMerger.Sub> |
private static class |
DocIDMerger.SortedDocIDMerger<T extends DocIDMerger.Sub> |
static class |
DocIDMerger.Sub
Represents one sub-reader being merged
|
Modifier | Constructor and Description |
---|---|
private |
DocIDMerger() |
Modifier and Type | Method and Description |
---|---|
abstract T |
next()
Returns null when done.
|
static <T extends DocIDMerger.Sub> |
of(java.util.List<T> subs,
boolean indexIsSorted)
Construct this from the provided subs
|
static <T extends DocIDMerger.Sub> |
of(java.util.List<T> subs,
int maxCount,
boolean indexIsSorted)
Construct this from the provided subs, specifying the maximum sub count
|
abstract void |
reset()
Reuse API, currently only used by postings during merge
|
public static <T extends DocIDMerger.Sub> DocIDMerger<T> of(java.util.List<T> subs, int maxCount, boolean indexIsSorted) throws java.io.IOException
java.io.IOException
public static <T extends DocIDMerger.Sub> DocIDMerger<T> of(java.util.List<T> subs, boolean indexIsSorted) throws java.io.IOException
java.io.IOException
public abstract void reset() throws java.io.IOException
java.io.IOException
public abstract T next() throws java.io.IOException
java.io.IOException