A document iterator on documents, generating the union of the documents returned
by a number of document iterators.
The pattern of this class is the same as that of
AbstractIntersectionDocumentIterator .
Additionally, this class provides a mechanism that makes accessible the set of component
document iterators that are
.
computeFront() Forces computation of the current front, returning the number of indices it contains.
After a call to this method,
the first elements of
AbstractUnionDocumentIterator.front contain
the indices of the
that are positioned on the current document.
Creates a new document iterator that computes the OR of the given array of iterators.
Parameters: documentIterator - the iterators to be joined. throws: IOException -
Forces computation of the current front, returning the number of indices it contains.
After a call to this method,
the first elements of
AbstractUnionDocumentIterator.front contain
the indices of the
that are positioned on the current document. If the front has already been
computed for the current document, this method has no side effects.
the size of the current front (the number of valid entries in AbstractUnionDocumentIterator.front).