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 TupleExprprivate final TupleExpr -
Constructor Summary
ConstructorsConstructorDescriptionTupleExprWrapperIteration(CloseableIteration<T, X> delegate, TupleExpr tupleExpr) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes this iteration, freeing any resources that it is holding.booleanhasNext()Returns true if the iteration has more elements.next()Returns the next element in the iteration.voidremove()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:CloseableIterationConvert the results to a Java 8 Stream.- Specified by:
streamin interfaceCloseableIteration<T extends BindingSet, X extends Exception>- Specified by:
streamin interfaceIteration<T extends BindingSet, X extends Exception>- Returns:
- stream
-
close
public void close() throws XDescription 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<T extends BindingSet, X extends Exception>- Throws:
X
-
hasNext
public boolean hasNext() throws XDescription copied from interface:IterationReturns true if the iteration has more elements. (In other words, returns true ifIteration.next()would return an element rather than throwing a NoSuchElementException.) -
next
-
remove
public void remove() throws XDescription copied from interface:IterationRemoves 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
-