Class CloseableIterationIterator<E>
java.lang.Object
org.eclipse.rdf4j.common.iterator.CloseableIterationIterator<E>
- All Implemented Interfaces:
Closeable, AutoCloseable, Iterator<E>
Wraps a
CloseableIteration as an Iterator.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CloseableIteration<? extends E, ? extends RuntimeException> -
Constructor Summary
ConstructorsConstructorDescriptionCloseableIterationIterator(CloseableIteration<? extends E, ? extends RuntimeException> iteration) CloseableIterationIterator(Iteration<? extends E, ? extends RuntimeException> iteration) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Field Details
-
iteration
-
-
Constructor Details
-
CloseableIterationIterator
@Deprecated(since="4.1.0", forRemoval=true) public CloseableIterationIterator(Iteration<? extends E, ? extends RuntimeException> iteration) Deprecated, for removal: This API element is subject to removal in a future version. -
CloseableIterationIterator
public CloseableIterationIterator(CloseableIteration<? extends E, ? extends RuntimeException> iteration)
-
-
Method Details
-
hasNext
-
next
-
remove
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-