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_LIMIT

    Fields inherited from interface org.apache.jena.graph.Graph

    emptyGraph
  • Constructor Summary

    Constructors
    Constructor
    Description
    DeltaWithFixedIterator(org.apache.jena.graph.Graph base)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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, getDeletions, graphBaseSize, performAdd, performDelete

    Methods inherited from class org.apache.jena.graph.compose.CompositionBase

    butNot, ifIn, ifIn, recording, reject, rejecting, rejecting

    Methods 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, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.jena.graph.Graph

    add, add, clear, contains, contains, delete, delete, dependsOn, find, find, find, getCapabilities, 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:
      graphBaseFind in class org.apache.jena.graph.compose.Delta