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.


Method Summary
 void add(Graph g)
          Deprecated. See GraphUtil for helper functions for migration.
 void add(Graph g, boolean withReifications)
          Deprecated. See GraphUtil for helper functions for migration.
 void add(Iterator<Triple> it)
          Deprecated. See GraphUtil for helper functions for migration.
 void add(List<Triple> triples)
          Deprecated. See GraphUtil for helper functions for migration.
 void add(Triple[] triples)
          Deprecated. See GraphUtil for helper functions for migration.
 void delete(Graph g)
          Deprecated. See GraphUtil for helper functions for migration.
 void delete(Graph g, boolean withReifications)
          Deprecated. See GraphUtil for helper functions for migration.
 void delete(Iterator<Triple> it)
          Deprecated. See GraphUtil for helper functions for migration.
 void delete(List<Triple> triples)
          Deprecated. See GraphUtil for helper functions for migration.
 void delete(Triple[] triples)
          Deprecated. See GraphUtil for helper functions for migration.
 void remove(Node s, Node p, Node o)
          Deprecated. Use Graph.remove( Node s, Node p, Node o )
 void removeAll()
          Deprecated. Use Graph.clear()
 

Method Detail

add

@Deprecated
void add(Triple[] triples)
Deprecated. See GraphUtil for helper functions for migration.

Add all the triples into the graph this is handler for.

Parameters:
triples - an array of triples to add

add

@Deprecated
void add(List<Triple> triples)
Deprecated. See GraphUtil for helper functions for migration.

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

@Deprecated
void add(Iterator<Triple> it)
Deprecated. See GraphUtil for helper functions for migration.

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.

Parameters:
it - an Iterator delivering Triples

add

@Deprecated
void add(Graph g,
                    boolean withReifications)
Deprecated. See GraphUtil for helper functions for migration.

Add all the triples of the given graph into the graph this is handler for. Optionally add g's reified triples.

Parameters:
g - a Graph whose triples are to be added
withReifications - if true, the reified triples of g are added as well

add

@Deprecated
void add(Graph g)
Deprecated. See GraphUtil for helper functions for migration.

Add all the triples of the given graph into the graph this is handler for. Leave this graph's reifications unchanged.

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

delete

@Deprecated
void delete(Triple[] triples)
Deprecated. See GraphUtil for helper functions for migration.

Delete all the triples from the graph this is handler for.

Parameters:
triples - an array of triples to delete

delete

@Deprecated
void delete(List<Triple> triples)
Deprecated. See GraphUtil for helper functions for migration.

Delete 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 delete

delete

@Deprecated
void delete(Iterator<Triple> it)
Deprecated. See GraphUtil for helper functions for migration.

Delete 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.

Parameters:
it - an iterator over Triple

delete

@Deprecated
void delete(Graph g)
Deprecated. See GraphUtil for helper functions for migration.

Delete all the triples of the given graph from the graph this is handler for. Do not change the reifications.

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

delete

@Deprecated
void delete(Graph g,
                       boolean withReifications)
Deprecated. See GraphUtil for helper functions for migration.

Delete all the triples of the given graph from the graph this is handler for. Reified triples may optionally be deleted.

Parameters:
g - a graph whose triples are to be deleted
withReifications - if true, delete g's reifications from this graph

removeAll

@Deprecated
void removeAll()
Deprecated. Use Graph.clear()

Remove all the statements from a graph.


remove

@Deprecated
void remove(Node s,
                       Node p,
                       Node o)
Deprecated. Use Graph.remove( Node s, Node p, Node o )

Remove all triples that would be delivered by find(s, p, o)



Licenced under the Apache License, Version 2.0