1 6 package com.hp.hpl.jena.mem; 7 8 import java.util.Iterator ; 9 10 import com.hp.hpl.jena.graph.Graph; 11 12 22 public class StoreTripleIterator extends TrackingTripleIterator 23 { 24 protected NodeToTriplesMap A; 25 protected NodeToTriplesMap B; 26 protected Graph toNotify; 27 28 public StoreTripleIterator( Graph toNotify, Iterator it, NodeToTriplesMap A, NodeToTriplesMap B ) 29 { 30 super( it ); 31 this.A = A; 32 this.B = B; 33 this.toNotify = toNotify; 34 } 35 36 public void remove() 37 { 38 super.remove(); 39 A.remove( current ); 40 B.remove( current ); 41 toNotify.getEventManager().notifyDeleteTriple( toNotify, current ); 42 } 43 } 44 45 | Popular Tags |