incubator-jena-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Seaborne (JIRA)" <>
Subject [jira] [Created] (JENA-59) Couple bugs in Delta
Date Mon, 18 Apr 2011 13:09:05 GMT
Couple bugs in Delta

                 Key: JENA-59
             Project: Jena
          Issue Type: Bug
          Components: Jena
            Reporter: Andy Seaborne
            Assignee: christopher james dollin

Transferred from

re: com.hp.hpl.jena.graph.compose.Delta
- Delta remove() should not modify base graph.
- Delta.performAdd(t) and performDelete(t) should not fill up L and R with redundant statements
because graphBaseSize() will return the wrong answer.

Here are fixed versions of these methods (sorry I don't have a patch file; I don't know which
directory to checkout and checking out everything takes too long and I'm still waiting for
Ctrl-C to finish)

@Override public void performAdd(Triple t) {
if (!base.contains(t))
@Override public void performDelete(Triple t) {
if (base.contains(t))

public class RemoveAppendsToDeletionsIterator extends TrackingTripleIterator {
public RemoveAppendsToDeletionsIterator(Iterator<Triple> it) { super(it); }
public void remove() {
if (null == current)
throw new IllegalStateException();
current = null;
public ExtendedIterator<Triple> graphBaseFind(TripleMatch tm) {
return new RemoveAppendsToDeletionsIterator(base.find(tm)).filterDrop(ifIn(GraphUtil.findAll(R))).andThen(L.find(tm));

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message