DocIDMerger

abstract class DocIDMerger<T : DocIDMerger.Sub>

Utility class to help merging documents from sub-readers according to either simple concatenated (unsorted) order, or by a specified index-time sort, skipping deleted documents and remapping non-deleted documents.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
abstract class Sub

Represents one sub-reader being merged

Functions

Link copied to clipboard
abstract fun next(): T?

Returns null when done. NOTE: after the iterator has exhausted you should not call this method, as it may result in unpredicted behavior.

Link copied to clipboard
abstract fun reset()

Reuse API, currently only used by postings during merge