Package org.aksw.jenax.arq.util.triple
Class DeltaWithFixedIterator
java.lang.Object
org.apache.jena.graph.impl.GraphBase
org.apache.jena.graph.compose.CompositionBase
org.apache.jena.graph.compose.Delta
org.aksw.jenax.arq.util.triple.DeltaWithFixedIterator
- All Implemented Interfaces:
org.apache.jena.graph.Graph,org.apache.jena.graph.impl.GraphWithPerform
public class DeltaWithFixedIterator
extends org.apache.jena.graph.compose.Delta
Delta implementation that 'fixes' removals on iterators returned by .find().
Issue affects at least Jena 3.8.0 and likely earlier versions
Calling .remove() on the returned iterator does not register a deletion record in Delta;
instead it removes triples from the base model - which arguably defeats Delta's purpose
by breaking its encapsulation.
-
Field Summary
Fields inherited from class org.apache.jena.graph.impl.GraphBase
closed, gem, pm, TOSTRING_TRIPLE_BASE, TOSTRING_TRIPLE_LIMITFields inherited from interface org.apache.jena.graph.Graph
emptyGraph -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.graph.Triple>graphBaseFind(org.apache.jena.graph.Triple t) Methods inherited from class org.apache.jena.graph.compose.Delta
close, getAdditions, getCapabilities, getDeletions, graphBaseSize, performAdd, performDeleteMethods inherited from class org.apache.jena.graph.compose.CompositionBase
butNot, ifIn, ifIn, recording, reject, rejecting, rejectingMethods inherited from class org.apache.jena.graph.impl.GraphBase
add, checkOpen, clear, contains, contains, containsByFind, createPrefixMapping, delete, dependsOn, find, find, forTestingOnly_graphBaseFind, getEventManager, getPrefixMapping, getTransactionHandler, graphBaseContains, graphBaseFind, isClosed, isEmpty, isIsomorphicWith, notifyAdd, notifyDelete, remove, size, toString, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.jena.graph.Graph
add, add, clear, contains, contains, delete, delete, dependsOn, find, find, find, getEventManager, getPrefixMapping, getTransactionHandler, isClosed, isEmpty, isIsomorphicWith, remove, size, sizeLong, stream, stream
-
Constructor Details
-
DeltaWithFixedIterator
public DeltaWithFixedIterator(org.apache.jena.graph.Graph base)
-
-
Method Details
-
graphBaseFind
protected org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.graph.Triple> graphBaseFind(org.apache.jena.graph.Triple t) - Overrides:
graphBaseFindin classorg.apache.jena.graph.compose.Delta
-