public class StopRemainingExecutionsOnCloseIteration extends AbstractCloseableIteration<BindingSet,QueryEvaluationException>
Futures for the given query evaluation.
This is required for instance if the resulting iteration is not fully consumed.
QueryInfo.close(),
ParallelTask.cancel()| Modifier and Type | Field and Description |
|---|---|
protected CloseableIteration<? extends BindingSet,QueryEvaluationException> |
inner |
protected QueryInfo |
queryInfo |
| Constructor and Description |
|---|
StopRemainingExecutionsOnCloseIteration(CloseableIteration<? extends BindingSet,QueryEvaluationException> inner,
QueryInfo queryInfo) |
| Modifier and Type | Method and Description |
|---|---|
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, isClosedprotected final CloseableIteration<? extends BindingSet,QueryEvaluationException> inner
protected final QueryInfo queryInfo
public StopRemainingExecutionsOnCloseIteration(CloseableIteration<? extends BindingSet,QueryEvaluationException> inner, QueryInfo queryInfo)
public boolean hasNext()
throws QueryEvaluationException
IterationIteration.next()
would return an element rather than throwing a NoSuchElementException.)QueryEvaluationExceptionpublic BindingSet next() throws QueryEvaluationException
IterationQueryEvaluationExceptionpublic void remove()
throws QueryEvaluationException
IterationQueryEvaluationExceptionprotected void handleClose()
throws QueryEvaluationException
AbstractCloseableIterationAbstractCloseableIteration.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>QueryEvaluationExceptionCopyright © 2015-2020 Eclipse Foundation. All Rights Reserved.