Class UnionIterator<E>
java.lang.Object
org.eclipse.rdf4j.common.iterator.AbstractCloseableIterator<E>
org.eclipse.rdf4j.common.iterator.LookAheadIterator<E>
org.eclipse.rdf4j.common.iterator.UnionIterator<E>
- All Implemented Interfaces:
 Closeable, AutoCloseable, Iterator<E>
- Author:
 - MJAHale
 
- 
Constructor Summary
ConstructorsConstructorDescriptionUnionIterator(Iterable<? extends E>... args) Creates a new UnionIterator that returns the bag union of the results of a number of Iterators.UnionIterator(Iterable<? extends Iterable<? extends E>> args)  - 
Method Summary
Modifier and TypeMethodDescriptionprotected EGets the next element.protected voidCalled byAbstractCloseableIterator.close()when it is called for the first time.Methods inherited from class LookAheadIterator
handleAlreadyClosed, hasNext, next, removeMethods inherited from class AbstractCloseableIterator
close, isClosedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining 
- 
Constructor Details
- 
UnionIterator
 - 
UnionIterator
 
 - 
 - 
Method Details
- 
getNextElement
Description copied from class:LookAheadIteratorGets the next element. Subclasses should implement this method so that it returns the next element.- Specified by:
 getNextElementin classLookAheadIterator<E>- Returns:
 - The next element, or null if no more elements are available.
 
 - 
handleClose
Description copied from class:AbstractCloseableIteratorCalled byAbstractCloseableIterator.close()when it is called for the first time. This method is only called once on each iteration. By default, this method does nothing.- Overrides:
 handleClosein classLookAheadIterator<E>- Throws:
 IOException
 
 -