|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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<Triple> it)
Add all the elements from the iterator into the graph this is handler for. |
void |
add(java.util.List<Triple> 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<Triple> it)
Remove all the triples in the iterator from the graph this is handler for. |
void |
delete(java.util.List<Triple> 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 |
---|
void add(Triple[] triples)
triples
- an array of triples to addvoid add(java.util.List<Triple> triples)
triples
- a list of Triple objects to addvoid add(java.util.Iterator<Triple> it)
it
- an Iterator delivering Triplesvoid add(Graph g, boolean withReifications)
g
- a Graph whose triples are to be addedwithReifications
- if true, the reified triples of g are added as wellvoid add(Graph g)
g
- a Graph whose triples are to be addedvoid delete(Triple[] triples)
triples
- an array of triples to removevoid delete(java.util.List<Triple> triples)
triples
- a list of triples to removevoid delete(java.util.Iterator<Triple> it)
it
- an iterator over Triplevoid delete(Graph g)
g
- a graph whose triples are to be removedvoid delete(Graph g, boolean withReifications)
g
- a graph whose triples are to be removedwithReifications
- if true, remove g's reifications from this graphvoid removeAll()
void remove(Node s, Node p, Node o)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |