java.lang.Object
org.apache.jena.util.iterator.NiceIterator<T>
org.apache.jena.util.iterator.WrappedIterator<Triple>
org.apache.jena.mem.TrackingTripleIterator
org.apache.jena.mem.StoreTripleIterator
- All Implemented Interfaces:
Iterator<Triple>
,IteratorCloseable<Triple>
,Closeable
,ClosableIterator<Triple>
,ExtendedIterator<Triple>
An iterator wrapper for NodeToTriplesMap iterators which ensures that
a .remove on the base iterator is copied to the other two maps of this
GraphMem. The current triple (the most recent result of .next) is
tracked by the parent
TrackingTripleIterator
so that it
can be removed from the other two maps, which are passed in when this
StoreTripleIterator is created.-
Constructor Summary
ConstructorsConstructorDescriptionStoreTripleIterator
(Graph toNotify, Iterator<Triple> it, NodeToTriplesMapBase X, NodeToTriplesMapBase A, NodeToTriplesMapBase B) -
Method Summary
Modifier and TypeMethodDescriptionvoid
remove()
if .remove() is allowed, delegate to the base iterator's .remove; otherwise, throw an UnsupportedOperationException.Methods inherited from class org.apache.jena.mem.TrackingTripleIterator
next
Methods inherited from class org.apache.jena.util.iterator.WrappedIterator
close, close, create, createIteratorIterator, createNoRemove, forTestingOnly_getBase, hasNext, ofStream
Methods inherited from class org.apache.jena.util.iterator.NiceIterator
andThen, andThen, asList, asSet, emptyIterator, filterDrop, filterKeep, mapWith, removeNext, toList, toSet
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.jena.util.iterator.ExtendedIterator
forEach, nextOptional
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
StoreTripleIterator
public StoreTripleIterator(Graph toNotify, Iterator<Triple> it, NodeToTriplesMapBase X, NodeToTriplesMapBase A, NodeToTriplesMapBase B)
-
-
Method Details
-
remove
public void remove()Description copied from class:WrappedIterator
if .remove() is allowed, delegate to the base iterator's .remove; otherwise, throw an UnsupportedOperationException.
-