Class DistinctIteration<E,X extends Exception>
java.lang.Object
org.eclipse.rdf4j.common.iteration.AbstractCloseableIteration<E,X>
org.eclipse.rdf4j.common.iteration.IterationWrapper<E,X>
org.eclipse.rdf4j.common.iteration.FilterIteration<E,X>
org.eclipse.rdf4j.common.iteration.DistinctIteration<E,X>
- All Implemented Interfaces:
AutoCloseable
,CloseableIteration<E,
,X> Iteration<E,
X>
- Direct Known Subclasses:
LimitedSizeDistinctIteration
An Iteration that filters any duplicate elements from an underlying iterator.
-
Field Summary
Fields inherited from class org.eclipse.rdf4j.common.iteration.IterationWrapper
wrappedIter
-
Constructor Summary
-
Method Summary
Methods inherited from class org.eclipse.rdf4j.common.iteration.FilterIteration
handleClose, hasNext, next
Methods inherited from class org.eclipse.rdf4j.common.iteration.IterationWrapper
remove
Methods inherited from class org.eclipse.rdf4j.common.iteration.AbstractCloseableIteration
close, isClosed
-
Constructor Details
-
DistinctIteration
Creates a new DistinctIterator.- Parameters:
iter
- The underlying iterator.
-
DistinctIteration
-
-
Method Details
-
accept
Returns true if the specified object hasn't been seen before. -
add
-
makeSet
-