com.hp.hpl.jena.graph
Interface BulkUpdateHandler


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.

Author:
kers

Method Summary
 void add(Graph g)
          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(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.
 

Method Detail

add

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

Parameters:
triples - an array of triples to add

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.

Parameters:
triples - a list of Triple objects to add

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.

Parameters:
it - an Iterator delivering Triples

add

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

Parameters:
g - a Graph whose triples are to be added

delete

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

Parameters:
triples - an array of triples to remove

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.

Parameters:
triples - a list of triples to remove

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.

Parameters:
it - an iterator over Triple

delete

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

Parameters:
g - a graph whose triples are to be removed


Copyright © 2001-2003 Hewlett-Packard. All Rights Reserved.