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
@Deprecated(since="4.1.0")
public class DistinctIteration<E, X extends Exception>
extends FilterIteration<E,X>
Deprecated.
An Iteration that filters any duplicate elements from an underlying iterator.
-
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.The elements that have already been returned.Fields inherited from class IterationWrapper
wrappedIter -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class FilterIteration
handleClose, hasNext, nextMethods inherited from class IterationWrapper
removeMethods 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
-
excludeSet
-
-
Constructor Details
-
DistinctIteration
-
DistinctIteration
-
-
Method Details
-
accept
Deprecated.Returns true if the specified object hasn't been seen before.- Specified by:
acceptin classFilterIteration<E, X extends Exception>- Parameters:
object- The object to be tested.- Returns:
- true if the object should be returned, false otherwise.
- Throws:
X
-
inExcludeSet
Deprecated.- Parameters:
object-- Returns:
- true if the object is in the excludeSet
-
add
Deprecated.- Parameters:
object- to put into the set- Throws:
X
-
makeSet
-