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 boolean |
add(BindingSet next,
Collection<BindingSet> list) |
protected Iteration<BindingSet,QueryEvaluationException> |
createIteration()
Creates the iteration that should be iterated over.
|
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 NavigableMap<BindingSet,Integer> |
makeOrderedMap() |
protected Integer |
put(NavigableMap<BindingSet,Integer> map,
BindingSet set,
int count) |
void |
remove()
Calls the remove method of the underlying iteration.
|
protected void |
removeLast(Collection<BindingSet> lastResults) |
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 NavigableMap<BindingSet,Integer> makeOrderedMap()
protected Iteration<BindingSet,QueryEvaluationException> createIteration() throws QueryEvaluationException
DelayedIteration
createIteration
in class DelayedIteration<BindingSet,QueryEvaluationException>
QueryEvaluationException
protected void removeLast(Collection<BindingSet> lastResults)
protected boolean add(BindingSet next, Collection<BindingSet> list) throws QueryEvaluationException
QueryEvaluationException
protected Integer put(NavigableMap<BindingSet,Integer> map, BindingSet set, int count) 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 © 2001-2016 Aduna. All Rights Reserved.