public class QueryResultIteration extends AbstractCloseableIteration<BindingSet,QueryEvaluationException>
Modifier and Type | Field and Description |
---|---|
protected CloseableIteration<BindingSet,QueryEvaluationException> |
inner |
protected QueryManager |
qm |
protected QueryInfo |
queryInfo |
Constructor and Description |
---|
QueryResultIteration(CloseableIteration<BindingSet,QueryEvaluationException> inner,
QueryInfo queryInfo) |
Modifier and Type | Method and Description |
---|---|
protected void |
abortQuery()
Abort the query in the schedulers if it is still running.
|
protected void |
handleClose()
Called by
AbstractCloseableIteration.close() when it is called for the first time. |
boolean |
hasNext()
Returns true if the iteration has more elements.
|
BindingSet |
next()
Returns the next element in the iteration.
|
void |
remove()
Removes from the underlying collection the last element returned by the iteration (optional operation).
|
close, isClosed
protected final CloseableIteration<BindingSet,QueryEvaluationException> inner
protected final QueryInfo queryInfo
protected final QueryManager qm
public QueryResultIteration(CloseableIteration<BindingSet,QueryEvaluationException> inner, QueryInfo queryInfo)
public boolean hasNext() throws QueryEvaluationException
Iteration
Iteration.next()
would return an element rather than throwing a NoSuchElementException.)QueryEvaluationException
public BindingSet next() throws QueryEvaluationException
Iteration
QueryEvaluationException
public void remove() throws QueryEvaluationException
Iteration
QueryEvaluationException
protected void handleClose() throws QueryEvaluationException
AbstractCloseableIteration
AbstractCloseableIteration.close()
when it is called for the first time. This method is only called once on each iteration.
By default, this method does nothing.handleClose
in class AbstractCloseableIteration<BindingSet,QueryEvaluationException>
QueryEvaluationException
protected void abortQuery()
Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.