Class PrintingIteration
java.lang.Object
org.eclipse.rdf4j.common.iteration.AbstractCloseableIteration<BindingSet>
org.eclipse.rdf4j.federated.evaluation.iterator.PrintingIteration
- All Implemented Interfaces:
AutoCloseable, Iterator<BindingSet>, CloseableIteration<BindingSet>
Print the bindings of the inner iteration to stdout, however maintain a copy, which is accessible through this
iteration.
- Author:
- Andreas Schwarte
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected LinkedList<BindingSet> protected booleanprotected final CloseableIteration<BindingSet> Fields inherited from interface CloseableIteration
EMPTY_STATEMENT_ITERATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCalled byAbstractCloseableIteration.close()when it is called for the first time.booleanhasNext()next()voidprint()voidremove()Methods inherited from class AbstractCloseableIteration
close, isClosedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CloseableIteration
streamMethods inherited from interface Iterator
forEachRemaining
-
Field Details
-
inner
-
copyQueue
-
done
protected boolean done
-
-
Constructor Details
-
PrintingIteration
-
-
Method Details
-
print
- Throws:
QueryEvaluationException
-
hasNext
- Throws:
QueryEvaluationException
-
next
- Throws:
QueryEvaluationException
-
remove
- Throws:
QueryEvaluationException
-
handleClose
Description copied from class:AbstractCloseableIterationCalled byAbstractCloseableIteration.close()when it is called for the first time. This method is only called once on each iteration. By default, this method does nothing.- Specified by:
handleClosein classAbstractCloseableIteration<BindingSet>- Throws:
QueryEvaluationException
-