public interface BulkUpdateHandler
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.
Modifier and Type | Method and Description |
---|---|
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)
Deprecated.
|
void |
add(Iterator<Triple> it)
Deprecated.
|
void |
add(List<Triple> triples)
Deprecated.
|
void |
add(Triple[] triples)
Deprecated.
|
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)
Deprecated.
|
void |
delete(Iterator<Triple> it)
Deprecated.
|
void |
delete(List<Triple> triples)
Deprecated.
|
void |
delete(Triple[] triples)
Deprecated.
|
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.
|
@Deprecated void add(Triple[] triples)
triples
- an array of triples to add@Deprecated void add(List<Triple> triples)
triples
- a list of Triple objects to add@Deprecated void add(Iterator<Triple> it)
it
- an Iterator delivering Triples@Deprecated void 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 added@Deprecated void delete(Triple[] triples)
triples
- an array of triples to remove@Deprecated void delete(List<Triple> triples)
triples
- a list of triples to remove@Deprecated void delete(Iterator<Triple> it)
it
- an iterator over Triplevoid delete(Graph g)
g
- a graph whose triples are to be removed@Deprecated void delete(Graph g, boolean withReifications)
g
- a graph whose triples are to be removedwithReifications
- if true, remove g's reifications from this graphvoid removeAll()
Licenced under the Apache License, Version 2.0