Class DisjunctionMatchesIterator

java.lang.Object
org.apache.lucene.search.DisjunctionMatchesIterator
All Implemented Interfaces:
MatchesIterator

final class DisjunctionMatchesIterator extends Object implements MatchesIterator
A MatchesIterator that combines matches from a set of sub-iterators

Matches are sorted by their start positions, and then by their end positions, so that prefixes sort first. Matches may overlap, or be duplicated if they appear in more than one of the sub-iterators.