Class OrderIterator
java.lang.Object
org.eclipse.rdf4j.common.iteration.AbstractCloseableIteration<BindingSet, QueryEvaluationException>
org.eclipse.rdf4j.common.iteration.DelayedIteration<BindingSet, QueryEvaluationException>
org.eclipse.rdf4j.query.algebra.evaluation.iterator.OrderIterator
- All Implemented Interfaces:
AutoCloseable, CloseableIteration<BindingSet, QueryEvaluationException>, Iteration<BindingSet, QueryEvaluationException>
@Deprecated(since="4.1.0")
public class OrderIterator
extends DelayedIteration<BindingSet, QueryEvaluationException>
Deprecated.
Sorts the input and optionally applies limit and distinct.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classOrderIterator.SerializedQueue<E extends Serializable>Deprecated.private static classDeprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Comparator<BindingSet> Deprecated.private final booleanDeprecated.private final CloseableIteration<BindingSet, QueryEvaluationException> Deprecated.private final longDeprecated.Number of items cached before internal collection is synced to disk.private final longDeprecated.private final List<OrderIterator.SerializedQueue<BindingSet>> Deprecated. -
Constructor Summary
ConstructorsConstructorDescriptionOrderIterator(CloseableIteration<BindingSet, QueryEvaluationException> iter, Comparator<BindingSet> comparator) Deprecated.OrderIterator(CloseableIteration<BindingSet, QueryEvaluationException> iter, Comparator<BindingSet> comparator, long limit, boolean distinct) Deprecated.OrderIterator(CloseableIteration<BindingSet, QueryEvaluationException> iter, Comparator<BindingSet> comparator, long limit, boolean distinct, long iterationSyncThreshold) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected Iteration<BindingSet, QueryEvaluationException> Deprecated.Creates the iteration that should be iterated over.protected voiddecrement(int amount) Deprecated.protected voidDeprecated.Closes this iteration as well as the underlying iteration if it has already been created and happens to be aCloseableIteration.protected voidDeprecated.voidremove()Deprecated.Calls the remove method of the underlying iteration.private Stream<BindingSet> sort(Collection<BindingSet> collection) Deprecated.Methods inherited from class DelayedIteration
hasNext, nextMethods inherited from class AbstractCloseableIteration
close, isClosedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CloseableIteration
stream
-
Field Details
-
iter
Deprecated. -
comparator
Deprecated. -
limit
private final long limitDeprecated. -
distinct
private final boolean distinctDeprecated. -
serialized
Deprecated. -
iterationSyncThreshold
private final long iterationSyncThresholdDeprecated.Number of items cached before internal collection is synced to disk. If set to 0, no disk-syncing is done and all internal caching is kept in memory.
-
-
Constructor Details
-
OrderIterator
public OrderIterator(CloseableIteration<BindingSet, QueryEvaluationException> iter, Comparator<BindingSet> comparator) Deprecated. -
OrderIterator
public OrderIterator(CloseableIteration<BindingSet, QueryEvaluationException> iter, Comparator<BindingSet> comparator, long limit, boolean distinct) Deprecated. -
OrderIterator
public OrderIterator(CloseableIteration<BindingSet, QueryEvaluationException> iter, Comparator<BindingSet> comparator, long limit, boolean distinct, long iterationSyncThreshold) Deprecated.
-
-
Method Details
-
createIteration
protected Iteration<BindingSet, QueryEvaluationException> createIteration() throws QueryEvaluationExceptionDeprecated.Description copied from class:DelayedIterationCreates the iteration that should be iterated over. This method is called only once, when the iteration is first needed.- Specified by:
createIterationin classDelayedIteration<BindingSet, QueryEvaluationException>- Throws:
QueryEvaluationException
-
increment
Deprecated.- Throws:
QueryEvaluationException
-
decrement
Deprecated.- Throws:
QueryEvaluationException
-
sort
Deprecated. -
remove
Deprecated.Description copied from class:DelayedIterationCalls the remove method of the underlying iteration.- Specified by:
removein interfaceIteration<BindingSet, QueryEvaluationException>- Overrides:
removein classDelayedIteration<BindingSet, QueryEvaluationException>- Throws:
QueryEvaluationException
-
handleClose
Deprecated.Description copied from class:DelayedIterationCloses this iteration as well as the underlying iteration if it has already been created and happens to be aCloseableIteration.- Overrides:
handleClosein classDelayedIteration<BindingSet, QueryEvaluationException>- Throws:
QueryEvaluationException
-