Package org.eclipse.rdf4j.sail.helpers
Class TupleExprWrapperIteration<T extends BindingSet,X extends Exception>
java.lang.Object
org.eclipse.rdf4j.sail.helpers.TupleExprWrapperIteration<T,X>
- All Implemented Interfaces:
AutoCloseable
,CloseableIteration<T,
,X> Iteration<T,
X>
class TupleExprWrapperIteration<T extends BindingSet,X extends Exception>
extends Object
implements CloseableIteration<T,X>
This iteration is used to debug issues with the TupleExpr that was used to generate the wrapped iteration.
AbstractSailConnection will use this class when evaluating a query if assertions are enabled.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CloseableIteration
<T, X> private final TupleExpr
private final TupleExpr
-
Constructor Summary
ConstructorsConstructorDescriptionTupleExprWrapperIteration
(CloseableIteration<T, X> delegate, TupleExpr tupleExpr) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes this iteration, freeing any resources that it is holding.boolean
hasNext()
Returns true if the iteration has more elements.next()
Returns the next element in the iteration.void
remove()
Removes from the underlying collection the last element returned by the iteration (optional operation).stream()
Convert the results to a Java 8 Stream.
-
Field Details
-
delegate
-
tupleExpr
-
tupleExprClone
-
-
Constructor Details
-
TupleExprWrapperIteration
-
-
Method Details
-
stream
Description copied from interface:CloseableIteration
Convert the results to a Java 8 Stream.- Specified by:
stream
in interfaceCloseableIteration<T extends BindingSet,
X extends Exception> - Specified by:
stream
in interfaceIteration<T extends BindingSet,
X extends Exception> - Returns:
- stream
-
close
public void close() throws XDescription copied from interface:CloseableIteration
Closes 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseableIteration<T extends BindingSet,
X extends Exception> - Throws:
X
-
hasNext
public boolean hasNext() throws XDescription copied from interface:Iteration
Returns true if the iteration has more elements. (In other words, returns true ifIteration.next()
would return an element rather than throwing a NoSuchElementException.) -
next
Description copied from interface:Iteration
Returns the next element in the iteration. -
remove
public void remove() throws XDescription copied from interface:Iteration
Removes from the underlying collection the last element returned by the iteration (optional operation). This method can be called only once per call to next. -
getTupleExpr
-
getTupleExprClone
-