Uses of Interface
org.eclipse.rdf4j.common.iteration.CloseableIteration
-
Packages that use CloseableIteration Package Description org.eclipse.rdf4j.common.iteration org.eclipse.rdf4j.common.iterator -
-
Uses of CloseableIteration in org.eclipse.rdf4j.common.iteration
Classes in org.eclipse.rdf4j.common.iteration that implement CloseableIteration Modifier and Type Class Description classAbstractCloseableIteration<E>Base class forCloseableIterations offering common functionality.classAbstractCloseableIteratorIteration<E>An Iteration that can convert anIteratorto aCloseableIteration.classCloseableIteratorIteration<E>An Iteration that can convert anIteratorto aCloseableIteration.classConvertingIteration<S,T>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).classDelayedIteration<E>An iteration that delays the creation of the underlying iteration until it is being accessed.classDistinctIteration<E>An Iteration that filters any duplicate elements from an underlying iterator.classDualUnionIteration<E>Provides a bag union of the two provided iterations.classEmptyIteration<E>An iterator that does not contain any elements.classExceptionConvertingIteration<E,X extends RuntimeException>Deprecated.classFilterIteration<E>A CloseableIteration that wraps another Iteration, applying a filter on the objects that are returned.classIntersectIteration<E>An Iteration that returns the intersection of the results of two Iterations.classIterationWrapper<E>Deprecated.classLimitIteration<E>An Iteration that limits the amount of elements that it returns from an underlying Iteration to a fixed amount.classLookAheadIteration<E>An Iteration that looks one element ahead, if necessary, to handle calls toLookAheadIteration.hasNext().classMinusIteration<E>An Iteration that returns the results of an Iteration (the left argument) minus the results of another Iteration (the right argument).classOffsetIteration<E>An Iteration that skips the first offset elements from an underlying Iteration.classQueueIteration<E,T extends RuntimeException>Makes working with a queue easier by adding the methodsQueueIteration.done()andQueueIteration.toss(Exception)and after converting the Exception to the required type usingQueueIteration.convert(Exception).classReducedIteration<E>Removes consecutive duplicates from the object stream.classSilentIteration<T>AnIterationWrapperthat silently ignores any errors that occur during processing.classSingletonIteration<E>An Iteration that contains exactly one element.classThreadSafeDelayedIteration<E>An iteration that delays the creation of the underlying iteration until it is being accessed.classTimeLimitIteration<E>classUnionIteration<E>An Iteration that returns the bag union of the results of a number of Iterations.Fields in org.eclipse.rdf4j.common.iteration declared as CloseableIteration Modifier and Type Field Description protected CloseableIteration<? extends E>IntersectIteration. arg2protected CloseableIteration<? extends E>IterationWrapper. wrappedIterDeprecated.This will be changed to private, possibly with an accessor in future.Methods in org.eclipse.rdf4j.common.iteration that return CloseableIteration Modifier and Type Method Description protected abstract CloseableIteration<? extends E>DelayedIteration. createIteration()Creates the iteration that should be iterated over.protected abstract CloseableIteration<? extends E>ThreadSafeDelayedIteration. createIteration()Creates the iteration that should be iterated over.static <E> CloseableIteration<E>DualUnionIteration. getInstance(CloseableIteration<E> leftIteration, CloseableIteration<E> rightIteration)static <E> CloseableIteration<? extends E>DualUnionIteration. getWildcardInstance(Comparator<E> cmp, CloseableIteration<? extends E> leftIteration, CloseableIteration<? extends E> rightIteration)static <E> CloseableIteration<? extends E>DualUnionIteration. getWildcardInstance(CloseableIteration<? extends E> leftIteration, CloseableIteration<? extends E> rightIteration)Methods in org.eclipse.rdf4j.common.iteration with parameters of type CloseableIteration Modifier and Type Method Description static <E,C extends Collection<E>>
CIterations. addAll(CloseableIteration<? extends E> iteration, C collection)Adds all elements from the suppliedCloseableIterationto the specified collection then closes theCloseableIteration.static <E> List<E>Iterations. asList(CloseableIteration<? extends E> iteration)Get a List containing all elements obtained from the specified iteration.static <E> Set<E>Iterations. asSet(CloseableIteration<? extends E> iteration)Get a Set containing all elements obtained from the specified iteration.static <E> Set<E>Iterations. asSet(CloseableIteration<? extends E> iteration, Supplier<Set<E>> setMaker)Get a Set containing all elements obtained from the specified iteration.static <E> CloseableIteration<E>DualUnionIteration. getInstance(CloseableIteration<E> leftIteration, CloseableIteration<E> rightIteration)static <E> CloseableIteration<? extends E>DualUnionIteration. getWildcardInstance(Comparator<E> cmp, CloseableIteration<? extends E> leftIteration, CloseableIteration<? extends E> rightIteration)static <E> CloseableIteration<? extends E>DualUnionIteration. getWildcardInstance(CloseableIteration<? extends E> leftIteration, CloseableIteration<? extends E> rightIteration)static <T> Stream<T>Iterations. stream(CloseableIteration<T> iteration)Get a sequentialStreamwith the suppliedCloseableIterationas its source.static StringIterations. toString(CloseableIteration<?> iteration, String separator)Converts aCloseableIterationto a string by concatenating all the string representations of objects in the iteration, divided by a separator.static voidIterations. toString(CloseableIteration<?> iteration, String separator, StringBuilder sb)Converts aCloseableIterationto a string by concatenating all the string representations of objects in the iteration, divided by a separator.Constructors in org.eclipse.rdf4j.common.iteration with parameters of type CloseableIteration Constructor Description ConvertingIteration(CloseableIteration<? extends S> iter)Creates a new ConvertingIteration that operates on the supplied source type iteration.DistinctIteration(CloseableIteration<? extends E> iter)Deprecated.DistinctIteration(CloseableIteration<? extends E> iter, Supplier<Set<E>> setMaker)Creates a new DistinctIterator.DistinctIteration(CloseableIteration<? extends E> iter, Set<E> excludeSet)Creates a new DistinctIterator.DualUnionIteration(Comparator<E> cmp, CloseableIteration<? extends E> iteration1, CloseableIteration<? extends E> iteration2)ExceptionConvertingIteration(CloseableIteration<? extends E> iter)Deprecated.Creates a new ExceptionConvertingIteration that operates on the supplied iteration.FilterIteration(CloseableIteration<? extends E> iter)IntersectIteration(CloseableIteration<? extends E> arg1, CloseableIteration<? extends E> arg2)Creates a new IntersectIteration that returns the intersection of the results of two Iterations.IntersectIteration(CloseableIteration<? extends E> arg1, CloseableIteration<? extends E> arg2, boolean distinct)Creates a new IntersectIteration that returns the intersection of the results of two Iterations.IntersectIteration(CloseableIteration<? extends E> arg1, CloseableIteration<? extends E> arg2, boolean distinct, Supplier<Set<E>> setMaker)Creates a new IntersectIteration that returns the intersection of the results of two Iterations.IntersectIteration(CloseableIteration<? extends E> arg1, CloseableIteration<? extends E> arg2, Supplier<Set<E>> setMaker)IterationWrapper(CloseableIteration<? extends E> iter)Deprecated.Creates a new IterationWrapper that operates on the supplied Iteration.LimitIteration(CloseableIteration<? extends E> iter, long limit)Creates a new LimitIteration.MinusIteration(CloseableIteration<? extends E> leftArg, CloseableIteration<? extends E> rightArg)Creates a new MinusIteration that returns the results of the left argument minus the results of the right argument.MinusIteration(CloseableIteration<? extends E> leftArg, CloseableIteration<? extends E> rightArg, boolean distinct)Creates a new MinusIteration that returns the results of the left argument minus the results of the right argument.MinusIteration(CloseableIteration<? extends E> leftArg, CloseableIteration<? extends E> rightArg, boolean distinct, Supplier<Set<E>> setMaker)Creates a new MinusIteration that returns the results of the left argument minus the results of the right argument.OffsetIteration(CloseableIteration<? extends E> iter, long offset)Creates a new OffsetIteration.ReducedIteration(CloseableIteration<? extends E> delegate)SilentIteration(CloseableIteration<T> iter)TimeLimitIteration(CloseableIteration<? extends E> iter, long timeLimit)UnionIteration(CloseableIteration<? extends E>... args)Creates a new UnionIteration that returns the bag union of the results of a number of Iterations.Constructor parameters in org.eclipse.rdf4j.common.iteration with type arguments of type CloseableIteration Constructor Description UnionIteration(Iterable<? extends CloseableIteration<? extends E>> args)Creates a new UnionIteration that returns the bag union of the results of a number of Iterations. -
Uses of CloseableIteration in org.eclipse.rdf4j.common.iterator
Constructors in org.eclipse.rdf4j.common.iterator with parameters of type CloseableIteration Constructor Description CloseableIterationIterator(CloseableIteration<? extends E> iteration)
-