Package org.apache.jena.mem
Class StoreTripleIterator
- 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:
java.util.Iterator<Triple>
,ClosableIterator<Triple>
,ExtendedIterator<Triple>
public class StoreTripleIterator extends TrackingTripleIterator
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 parentTrackingTripleIterator
so that it can be removed from the other two maps, which are passed in when this StoreTripleIterator is created.
-
-
Constructor Summary
Constructors Constructor Description StoreTripleIterator(Graph toNotify, java.util.Iterator<Triple> it, NodeToTriplesMapBase X, NodeToTriplesMapBase A, NodeToTriplesMapBase B)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
-
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
-
-
-
-
Constructor Detail
-
StoreTripleIterator
public StoreTripleIterator(Graph toNotify, java.util.Iterator<Triple> it, NodeToTriplesMapBase X, NodeToTriplesMapBase A, NodeToTriplesMapBase B)
-
-
Method Detail
-
remove
public void remove()
Description copied from class:WrappedIterator
if .remove() is allowed, delegate to the base iterator's .remove; otherwise, throw an UnsupportedOperationException.- Specified by:
remove
in interfacejava.util.Iterator<Triple>
- Overrides:
remove
in classWrappedIterator<Triple>
-
-