Class DualUnionIteration<E>
- java.lang.Object
-
- org.eclipse.rdf4j.common.iteration.DualUnionIteration<E>
-
- All Implemented Interfaces:
AutoCloseable,Iterator<E>,CloseableIteration<E>
public class DualUnionIteration<E> extends Object implements CloseableIteration<E>
Provides a bag union of the two provided iterations.
-
-
Constructor Summary
Constructors Constructor Description DualUnionIteration(Comparator<E> cmp, CloseableIteration<? extends E> iteration1, CloseableIteration<? extends E> iteration2)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes this iteration, freeing any resources that it is holding.static <E> CloseableIteration<E>getInstance(CloseableIteration<E> leftIteration, CloseableIteration<E> rightIteration)static <E> CloseableIteration<? extends E>getWildcardInstance(Comparator<E> cmp, CloseableIteration<? extends E> leftIteration, CloseableIteration<? extends E> rightIteration)static <E> CloseableIteration<? extends E>getWildcardInstance(CloseableIteration<? extends E> leftIteration, CloseableIteration<? extends E> rightIteration)booleanhasNext()Enext()voidremove()Throws anUnsupportedOperationException.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.rdf4j.common.iteration.CloseableIteration
stream
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
DualUnionIteration
@Experimental public DualUnionIteration(Comparator<E> cmp, CloseableIteration<? extends E> iteration1, CloseableIteration<? extends E> iteration2)
-
-
Method Detail
-
getWildcardInstance
public static <E> CloseableIteration<? extends E> getWildcardInstance(CloseableIteration<? extends E> leftIteration, CloseableIteration<? extends E> rightIteration)
-
getWildcardInstance
@Experimental public static <E> CloseableIteration<? extends E> getWildcardInstance(Comparator<E> cmp, CloseableIteration<? extends E> leftIteration, CloseableIteration<? extends E> rightIteration)
-
getInstance
public static <E> CloseableIteration<E> getInstance(CloseableIteration<E> leftIteration, CloseableIteration<E> rightIteration)
-
remove
public void remove()
Throws anUnsupportedOperationException.
-
close
public final void close()
Description copied from interface:CloseableIterationCloses this iteration, freeing any resources that it is holding. If the iteration has already been closed then invoking this method has no effect.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseableIteration<E>
-
-