| Package | Description |
|---|---|
| org.eclipse.rdf4j.common.iteration | |
| org.eclipse.rdf4j.common.iterator |
| Modifier and Type | Interface and Description |
|---|---|
interface |
CloseableIteration<E,X extends Exception>
An
Iteration that can be closed to free resources that it is holding. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractCloseableIteration<E,X extends Exception>
Base class for
CloseableIterations offering common functionality. |
class |
CloseableIterationBase<E,X extends Exception>
Deprecated.
since 4.0. Use
AbstractCloseableIteration instead. |
class |
CloseableIteratorIteration<E,X extends Exception>
An Iteration that can convert an
Iterator to a CloseableIteration. |
class |
ConvertingIteration<S,T,X extends Exception>
A CloseableIteration that converts an iteration over objects of type S (the source type) to an
iteration over objects of type T (the target type).
|
class |
DelayedIteration<E,X extends Exception>
An iteration that delays the creation of the underlying iteration until it is being accessed.
|
class |
DistinctIteration<E,X extends Exception>
An Iteration that filters any duplicate elements from an underlying iterator.
|
class |
EmptyIteration<E,X extends Exception>
An iterator that does not contain any elements.
|
class |
ExceptionConvertingIteration<E,X extends Exception>
A CloseableIteration that converts an arbitrary iteration to an iteration with exceptions of type
X.
|
class |
FilterIteration<E,X extends Exception>
A CloseableIteration that wraps another Iteration, applying a filter on the objects that are returned.
|
class |
IntersectIteration<E,X extends Exception>
An Iteration that returns the intersection of the results of two Iterations.
|
class |
IterationWrapper<E,X extends Exception>
Abstract superclass for Iterations that wrap other Iterations.
|
class |
IteratorIteration<E,X extends Exception>
|
class |
LimitIteration<E,X extends Exception>
An Iteration that limits the amount of elements that it returns from an underlying Iteration to a fixed
amount.
|
class |
LookAheadIteration<E,X extends Exception>
An Iteration that looks one element ahead, if necessary, to handle calls to
LookAheadIteration.hasNext(). |
class |
MinusIteration<E,X extends Exception>
An Iteration that returns the results of an Iteration (the left argument) minus the results of another
Iteration (the right argument).
|
class |
OffsetIteration<E,X extends Exception>
An Iteration that skips the first offset elements from an underlying Iteration.
|
class |
QueueIteration<E,T extends Exception>
Makes working with a queue easier by adding the methods
QueueIteration.done() and QueueIteration.toss(Exception) and
after converting the Exception to the required type using QueueIteration.convert(Exception). |
class |
ReducedIteration<E,X extends Exception>
Removes consecutive duplicates from the object stream.
|
class |
SingletonIteration<E,X extends Exception>
An Iteration that contains exactly one element.
|
class |
TimeLimitIteration<E,X extends Exception> |
class |
UnionIteration<E,X extends Exception>
An Iteration that returns the bag union of the results of a number of Iterations.
|
| Modifier and Type | Field and Description |
|---|---|
protected Iteration<? extends E,? extends X> |
IntersectIteration.arg2 |
protected Iteration<? extends E,? extends X> |
IterationWrapper.wrappedIter
Deprecated.
This will be changed to private, possibly with an accessor in future. Do not rely on it.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract Iteration<? extends E,? extends X> |
DelayedIteration.createIteration()
Creates the iteration that should be iterated over.
|
| Modifier and Type | Method and Description |
|---|---|
static <E,X extends Exception,C extends Collection<E>> |
Iterations.addAll(Iteration<? extends E,X> iter,
C collection)
Adds all elements from the supplied Iteration to the specified collection.
|
Set<E> |
IntersectIteration.addSecondSet(Iteration<? extends E,? extends X> arg2,
Set<E> set) |
static <E,X extends Exception> |
Iterations.asList(Iteration<? extends E,X> iter)
Get a List containing all elements obtained from the specified Iteration.
|
static <E,X extends Exception> |
Iterations.asSet(Iteration<? extends E,X> iter)
Get a Set containing all elements obtained from the specified Iteration.
|
static <X extends Exception> |
Iterations.closeCloseable(Iteration<?,X> iter)
Closes the supplied Iteration if it is an instance of
CloseableIteration, otherwise the request
is ignored. |
static <T> java.util.stream.Stream<T> |
Iterations.stream(Iteration<T,? extends Exception> iteration)
|
static <X extends Exception> |
Iterations.toString(Iteration<?,X> iter,
String separator)
Converts an Iteration to a string by concatenating all of the string representations of objects in the
Iteration, divided by a separator.
|
static <X extends Exception> |
Iterations.toString(Iteration<?,X> iter,
String separator,
StringBuilder sb)
Converts an Iteration to a string by concatenating all of the string representations of objects in the
Iteration, divided by a separator.
|
| Constructor and Description |
|---|
ConvertingIteration(Iteration<? extends S,? extends X> iter)
Creates a new ConvertingIteration that operates on the supplied source type iteration.
|
DistinctIteration(Iteration<? extends E,? extends X> iter)
Creates a new DistinctIterator.
|
ExceptionConvertingIteration(Iteration<? extends E,? extends Exception> iter)
Creates a new ExceptionConvertingIteration that operates on the supplied iteration.
|
FilterIteration(Iteration<? extends E,? extends X> iter) |
IntersectIteration(Iteration<? extends E,? extends X> arg1,
Iteration<? extends E,? extends X> arg2)
Creates a new IntersectIteration that returns the intersection of the results of two Iterations.
|
IntersectIteration(Iteration<? extends E,? extends X> arg1,
Iteration<? extends E,? extends X> arg2)
Creates a new IntersectIteration that returns the intersection of the results of two Iterations.
|
IntersectIteration(Iteration<? extends E,? extends X> arg1,
Iteration<? extends E,? extends X> arg2,
boolean distinct)
Creates a new IntersectIteration that returns the intersection of the results of two Iterations.
|
IntersectIteration(Iteration<? extends E,? extends X> arg1,
Iteration<? extends E,? extends X> arg2,
boolean distinct)
Creates a new IntersectIteration that returns the intersection of the results of two Iterations.
|
IterationSpliterator(Iteration<T,? extends Exception> iteration)
Creates a
Spliterator implementation that wraps the supplied Iteration. |
IterationWrapper(Iteration<? extends E,? extends X> iter)
Creates a new IterationWrapper that operates on the supplied Iteration.
|
LimitIteration(Iteration<? extends E,X> iter,
long limit)
Creates a new LimitIteration.
|
MinusIteration(Iteration<? extends E,X> leftArg,
Iteration<? extends E,X> rightArg)
Creates a new MinusIteration that returns the results of the left argument minus the results of the
right argument.
|
MinusIteration(Iteration<? extends E,X> leftArg,
Iteration<? extends E,X> rightArg)
Creates a new MinusIteration that returns the results of the left argument minus the results of the
right argument.
|
MinusIteration(Iteration<? extends E,X> leftArg,
Iteration<? extends E,X> rightArg,
boolean distinct)
Creates a new MinusIteration that returns the results of the left argument minus the results of the
right argument.
|
MinusIteration(Iteration<? extends E,X> leftArg,
Iteration<? extends E,X> rightArg,
boolean distinct)
Creates a new MinusIteration that returns the results of the left argument minus the results of the
right argument.
|
OffsetIteration(Iteration<? extends E,X> iter,
long offset)
Creates a new OffsetIteration.
|
ReducedIteration(Iteration<? extends E,? extends X> delegate) |
TimeLimitIteration(Iteration<? extends E,? extends X> iter,
long timeLimit) |
UnionIteration(Iteration<? extends E,X>... args)
Creates a new UnionIteration that returns the bag union of the results of a number of Iterations.
|
| Constructor and Description |
|---|
UnionIteration(Iterable<? extends Iteration<? extends E,X>> args)
Creates a new UnionIteration that returns the bag union of the results of a number of Iterations.
|
| Constructor and Description |
|---|
CloseableIterationIterator(Iteration<? extends E,? extends RuntimeException> iteration) |
Copyright © 2015-2017 Eclipse Foundation. All Rights Reserved.