public class GroupIterator extends CloseableIteratorIteration<BindingSet,QueryEvaluationException>
| Modifier and Type | Class and Description |
|---|---|
protected class |
GroupIterator.Key
A unique key for a set of existing bindings.
|
| Constructor and Description |
|---|
GroupIterator(EvaluationStrategy strategy,
Group group,
BindingSet parentBindings) |
GroupIterator(EvaluationStrategy strategy,
Group group,
BindingSet parentBindings,
long iterationCacheSyncThreshold) |
| 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.
|
remove, setIteratorclose, isClosedpublic GroupIterator(EvaluationStrategy strategy, Group group, BindingSet parentBindings) throws QueryEvaluationException
QueryEvaluationExceptionpublic GroupIterator(EvaluationStrategy strategy, Group group, BindingSet parentBindings, long iterationCacheSyncThreshold) throws QueryEvaluationException
QueryEvaluationExceptionpublic boolean hasNext()
throws QueryEvaluationException
IterationIteration.next()
would return an element rather than throwing a NoSuchElementException.)hasNext in interface Iteration<BindingSet,QueryEvaluationException>hasNext in class CloseableIteratorIteration<BindingSet,QueryEvaluationException>QueryEvaluationExceptionpublic BindingSet next() throws QueryEvaluationException
Iterationnext in interface Iteration<BindingSet,QueryEvaluationException>next in class CloseableIteratorIteration<BindingSet,QueryEvaluationException>QueryEvaluationExceptionprotected 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-2022 Eclipse Foundation. All Rights Reserved.