public class OrderIterator extends DelayedIteration<BindingSet,QueryEvaluationException>
Constructor and Description |
---|
OrderIterator(CloseableIteration<BindingSet,QueryEvaluationException> iter,
Comparator<BindingSet> comparator) |
OrderIterator(CloseableIteration<BindingSet,QueryEvaluationException> iter,
Comparator<BindingSet> comparator,
long limit,
boolean distinct) |
OrderIterator(CloseableIteration<BindingSet,QueryEvaluationException> iter,
Comparator<BindingSet> comparator,
long limit,
boolean distinct,
long iterationSyncThreshold) |
Modifier and Type | Method and Description |
---|---|
protected Iteration<BindingSet,QueryEvaluationException> |
createIteration()
Creates the iteration that should be iterated over.
|
protected void |
decrement(int amount) |
protected void |
handleClose()
Closes this iteration as well as the underlying iteration if it has already been created and happens to be a
CloseableIteration . |
protected void |
increment() |
void |
remove()
Calls the remove method of the underlying iteration.
|
hasNext, next
close, isClosed
public OrderIterator(CloseableIteration<BindingSet,QueryEvaluationException> iter, Comparator<BindingSet> comparator)
public OrderIterator(CloseableIteration<BindingSet,QueryEvaluationException> iter, Comparator<BindingSet> comparator, long limit, boolean distinct)
public OrderIterator(CloseableIteration<BindingSet,QueryEvaluationException> iter, Comparator<BindingSet> comparator, long limit, boolean distinct, long iterationSyncThreshold)
protected Iteration<BindingSet,QueryEvaluationException> createIteration() throws QueryEvaluationException
DelayedIteration
createIteration
in class DelayedIteration<BindingSet,QueryEvaluationException>
QueryEvaluationException
protected void increment() throws QueryEvaluationException
QueryEvaluationException
protected void decrement(int amount) throws QueryEvaluationException
QueryEvaluationException
public void remove() throws QueryEvaluationException
DelayedIteration
remove
in interface Iteration<BindingSet,QueryEvaluationException>
remove
in class DelayedIteration<BindingSet,QueryEvaluationException>
QueryEvaluationException
protected void handleClose() throws QueryEvaluationException
DelayedIteration
CloseableIteration
.handleClose
in class DelayedIteration<BindingSet,QueryEvaluationException>
QueryEvaluationException
Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.