Class MinusIteration<E>

java.lang.Object
org.eclipse.rdf4j.common.iteration.FilterIteration<E>
org.eclipse.rdf4j.common.iteration.MinusIteration<E>
All Implemented Interfaces:
AutoCloseable, Iterator<E>, CloseableIteration<E>

public class MinusIteration<E> extends FilterIteration<E>
An Iteration that returns the results of an Iteration (the left argument) minus the results of another Iteration (the right argument). Optionally, the Iteration can be configured to filter duplicates from the returned elements.

Note that duplicates can also be filtered by wrapping this Iteration in a DistinctIteration, but that has a bit more overhead as it adds a second hash table lookup.