Class StatementConversionIteration
java.lang.Object
org.eclipse.rdf4j.common.iteration.AbstractCloseableIteration<BindingSet>
org.eclipse.rdf4j.federated.evaluation.iterator.StatementConversionIteration
- All Implemented Interfaces:
AutoCloseable
,Iterator<BindingSet>
,CloseableIteration<BindingSet>
Converts Statement iteration (i.e. RepositoryResult) into the corresponding binding set. Note that exceptions are
converted appropriately as well.
- Author:
- Andreas Schwarte
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BindingSet
protected final RepositoryResult
<Statement> protected final StatementPattern
protected boolean
protected boolean
protected boolean
protected boolean
-
Constructor Summary
ConstructorsConstructorDescriptionStatementConversionIteration
(RepositoryResult<Statement> repoResult, BindingSet bindings, StatementPattern stmt) -
Method Summary
Modifier and TypeMethodDescriptionprotected BindingSet
protected QueryEvaluationException
protected void
Called byAbstractCloseableIteration.close()
when it is called for the first time.boolean
hasNext()
protected void
init()
next()
void
remove()
Methods inherited from class org.eclipse.rdf4j.common.iteration.AbstractCloseableIteration
close, isClosed
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.rdf4j.common.iteration.CloseableIteration
stream
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
Constructor Details
-
StatementConversionIteration
public StatementConversionIteration(RepositoryResult<Statement> repoResult, BindingSet bindings, StatementPattern stmt)
-
-
Method Details
-
init
protected void init() -
hasNext
- Throws:
QueryEvaluationException
-
next
- Throws:
QueryEvaluationException
-
remove
- Throws:
QueryEvaluationException
-
handleClose
Description copied from class:AbstractCloseableIteration
Called 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:
handleClose
in classAbstractCloseableIteration<BindingSet>
- Throws:
QueryEvaluationException
-
convert
-
convertException
-