@Override @Deprecated public void delete( Triple [] triples ) { for (int i = 0; i < triples.length; i += 1) graph.performDelete( triples[i] ); manager.notifyDeleteArray( graph, triples ); }
protected void delete( List<Triple> triples, boolean notify ) { for (int i = 0; i < triples.size(); i += 1) graph.performDelete( triples.get(i) ); if (notify) manager.notifyDeleteList( graph, triples ); }
private static void deleteIteratorWorker( Graph graph, Iterator<Triple> it ) { List<Triple> s = IteratorCollection.iteratorToList( it ); if ( OldStyle && graph instanceof GraphWithPerform ) { GraphWithPerform g = (GraphWithPerform)graph ; for (Triple t : s ) g.performDelete(t) ; } else { for (Triple t : s ) graph.delete(t) ; } }
public static void delete(Graph graph, List<Triple> triples) { if ( OldStyle && graph instanceof GraphWithPerform ) { GraphWithPerform g = (GraphWithPerform)graph ; for (Triple t : triples ) g.performDelete(t) ; graph.getEventManager().notifyDeleteList(graph, triples) ; } else { for (Triple t : triples ) graph.delete(t) ; } }
public static void delete(Graph graph, Triple[] triples) { if ( OldStyle && graph instanceof GraphWithPerform ) { GraphWithPerform g = (GraphWithPerform)graph ; for (Triple t : triples ) g.performDelete(t) ; graph.getEventManager().notifyDeleteArray(graph, triples) ; } else { for (Triple t : triples ) graph.delete(t) ; } }
public static void delete(Graph graph, Iterator<Triple> it) { // Materialize to avoid ConcurrentModificationException. List<Triple> s = IteratorCollection.iteratorToList(it) ; if ( OldStyle && graph instanceof GraphWithPerform ) { GraphWithPerform g = (GraphWithPerform)graph ; for (Triple t : s) g.performDelete(t) ; graph.getEventManager().notifyDeleteIterator(graph, s) ; } else { for (Triple t : s) graph.delete(t) ; } }