Package org.eclipse.rdf4j.sail
Class TripleSourceIterationWrapper<T>
- java.lang.Object
-
- org.eclipse.rdf4j.sail.TripleSourceIterationWrapper<T>
-
- All Implemented Interfaces:
AutoCloseable,org.eclipse.rdf4j.common.iteration.CloseableIteration<T,QueryEvaluationException>,org.eclipse.rdf4j.common.iteration.Iteration<T,QueryEvaluationException>
@InternalUseOnly public class TripleSourceIterationWrapper<T> extends Object implements org.eclipse.rdf4j.common.iteration.CloseableIteration<T,QueryEvaluationException>
-
-
Constructor Summary
Constructors Constructor Description TripleSourceIterationWrapper(org.eclipse.rdf4j.common.iteration.CloseableIteration<? extends T,SailException> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanhasNext()Checks whether the underlying iteration contains more elements.Tnext()Returns the next element from the wrapped iteration.voidremove()Calls remove() on the underlying iteration.
-
-
-
Constructor Detail
-
TripleSourceIterationWrapper
public TripleSourceIterationWrapper(org.eclipse.rdf4j.common.iteration.CloseableIteration<? extends T,SailException> delegate)
-
-
Method Detail
-
hasNext
public boolean hasNext() throws QueryEvaluationExceptionChecks whether the underlying iteration contains more elements.- Specified by:
hasNextin interfaceorg.eclipse.rdf4j.common.iteration.Iteration<T,QueryEvaluationException>- Returns:
- true if the underlying iteration contains more elements, false otherwise.
- Throws:
QueryEvaluationException
-
next
public T next() throws QueryEvaluationException
Returns the next element from the wrapped iteration.- Specified by:
nextin interfaceorg.eclipse.rdf4j.common.iteration.Iteration<T,QueryEvaluationException>- Throws:
QueryEvaluationExceptionNoSuchElementException- If all elements have been returned.IllegalStateException- If the iteration has been closed.
-
remove
public void remove() throws QueryEvaluationExceptionCalls remove() on the underlying iteration.- Specified by:
removein interfaceorg.eclipse.rdf4j.common.iteration.Iteration<T,QueryEvaluationException>- Throws:
UnsupportedOperationException- If the wrapped iteration does not support the remove operation.IllegalStateException- If the Iteration has been closed, or ifnext()has not yet been called, orremove()has already been called after the last call tonext().QueryEvaluationException
-
close
public final void close() throws QueryEvaluationException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.eclipse.rdf4j.common.iteration.CloseableIteration<T,QueryEvaluationException>- Throws:
QueryEvaluationException
-
-