- All Implemented Interfaces:
public class DistinctDataNet<E> extends DistinctDataBag<E>
This class is like
DistinctDataBagexcept that you are informed if the item you just added was known to be distinct. This will normally only work until the first spill. After that, the system may not be able to tell for sure, and will thus return false. When you are finished adding items, you may call
netIterator()to get any distinct items that are in the spill files but were not indicated as distinct previously.
Methods inherited from class org.apache.jena.atlas.data.DistinctDataBag
isDistinct, isSorted, iterator
Methods inherited from class org.apache.jena.atlas.data.SortedDataBag
add, cancel, close, flush, isCancelled, isClosed
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
netAddpublic boolean netAdd
- true if the item added is known to be distinct.
netIteratorReturns an iterator to all additional items that are distinct but were not reported to be so at the time
If you do not exhaust the iterator, you should call
Iter.close(Iterator)to be sure any open file handles are closed.