Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.hp.hpl.jena.graph
Interface BulkUpdateHandler  view BulkUpdateHandler download BulkUpdateHandler.java


public interface BulkUpdateHandler

Defines how bulk update may be done on Graphs.

Bulk updates are not necessarily transactions; that is, a bulk update may fail part-way through, leaving some but not all triples added or deleted. However, if a bulk update does not fail (ie throw an exception) then the addition or removal of triples must have been successfully completed in accordance with the operation of the owning graph.


Method Summary
 void add(Graph g)
          Add all the triples of the given graph into the graph this is handler for.
 void add(Graph g, boolean withReifications)
          Add all the triples of the given graph into the graph this is handler for.
 void add(java.util.Iterator it)
          Add all the elements from the iterator into the graph this is handler for.
 void add(java.util.List triples)
          Add all the triples in the list into the graph this is handler for.
 void add(Triple[] triples)
          Add all the triples into the graph this is handler for.
 void delete(Graph g)
          Remove all the triples of the given graph from the graph this is handler for.
 void delete(Graph g, boolean withReifications)
          Remove all the triples of the given graph from the graph this is handler for.
 void delete(java.util.Iterator it)
          Remove all the triples in the iterator from the graph this is handler for.
 void delete(java.util.List triples)
          Remove all the triples in the list from the graph this is handler for.
 void delete(Triple[] triples)
          Remove all the triples from the graph this is handler for.
 void remove(Node s, Node p, Node o)
          Remove all triples that would be delivered by find(s, p, o)
 void removeAll()
          Remove all the statements from a graph.
 

Method Detail

add

public void add(Triple[] triples)
Add all the triples into the graph this is handler for.


add

public void add(java.util.List triples)
Add all the triples in the list into the graph this is handler for. Each element of the List must be a Triple.


add

public void add(java.util.Iterator it)
Add all the elements from the iterator into the graph this is handler for. Each element of the iterator must be a Triple. WARNING. An implementation may have to expand the iterator into a data structure containing all the component elements; hence long iterators may be expensive on store.


add

public void add(Graph g,
                boolean withReifications)
Add all the triples of the given graph into the graph this is handler for. Optionally add g's reified triples.


add

public void add(Graph g)
Add all the triples of the given graph into the graph this is handler for. Leave this graph's reifications unchanged.


delete

public void delete(Triple[] triples)
Remove all the triples from the graph this is handler for.


delete

public void delete(java.util.List triples)
Remove all the triples in the list from the graph this is handler for. Each element of the List must be a Triple.


delete

public void delete(java.util.Iterator it)
Remove all the triples in the iterator from the graph this is handler for. Each element from the iterator must be a Triple. WARNING. An implementation may have to expand the iterator into a data structure containing all the component elements; hence long iterators may be expensive on store.


delete

public void delete(Graph g)
Remove all the triples of the given graph from the graph this is handler for. Do not change the reifications.


delete

public void delete(Graph g,
                   boolean withReifications)
Remove all the triples of the given graph from the graph this is handler for. Reified triples may optionally be removed.


removeAll

public void removeAll()
Remove all the statements from a graph.


remove

public void remove(Node s,
                   Node p,
                   Node o)
Remove all triples that would be delivered by find(s, p, o)