|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.model.delta.DeltaGraphContainer
public class DeltaGraphContainer
BasicGraph is the underlying implementation of a overlay of delta changes to a base graph
| Constructor Summary | |
|---|---|
DeltaGraphContainer(org.openrdf.model.URI namedGraphUri)
Create a container of additions and deletions |
|
DeltaGraphContainer(org.openrdf.model.URI namedGraphUri,
java.util.Collection<org.openrdf.model.Statement> additions,
java.util.Collection<org.openrdf.model.Statement> deletions)
Create a container of additions and deletions with the provided additions and deletions |
|
| Method Summary | |
|---|---|
void |
add(org.openrdf.model.Statement... statements)
Add a triple to the delta. |
void |
apply(INamedGraph graph)
Apply the deltas contained in this BasicGraph to the provided graph. |
void |
clear()
Clear the delta of all changes. |
boolean |
containsAddition(org.openrdf.model.Statement statement)
Determine if delta contain this triple in its set of additions |
boolean |
containsDeletion(org.openrdf.model.Statement statement)
Determine if the delta contain this triple in its set of deletions |
void |
delete(org.openrdf.model.Statement... statements)
Delete a triple to the delta. |
void |
filter(java.util.Collection<org.openrdf.model.Statement> results,
org.openrdf.model.Resource s,
org.openrdf.model.URI p,
org.openrdf.model.Value o)
Filter an ExtendedIterator with the additions that match a TripleMatch and deletions in this delta |
void |
filter(java.util.Collection<org.openrdf.model.Statement> results,
org.openrdf.model.Statement match)
Filter an ExtendedIterator with the additions that match a TripleMatch and deletions in this delta |
static java.util.Collection<org.openrdf.model.Statement> |
findMatches(java.util.Collection<org.openrdf.model.Statement> statements,
org.openrdf.model.Resource s,
org.openrdf.model.URI p,
org.openrdf.model.Value o)
Find set of statements that match provided pattern |
java.util.Collection<org.openrdf.model.Statement> |
getAdditions()
Get the additions within this delta |
java.util.Collection<org.openrdf.model.Statement> |
getDeletions()
Get the deletions within this delta |
int |
size()
Get the number of changes contained in this delta |
void |
unapply(INamedGraph graph)
Unapply the deltas contained in this BasicGraph to the provided graph. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeltaGraphContainer(org.openrdf.model.URI namedGraphUri)
namedGraphUri - URI of graph for which this is acting as a delta
public DeltaGraphContainer(org.openrdf.model.URI namedGraphUri,
java.util.Collection<org.openrdf.model.Statement> additions,
java.util.Collection<org.openrdf.model.Statement> deletions)
namedGraphUri - URI of graph for which this is acting as a deltaadditions - Triples added in this deltadeletions - Triples deleted in this delta| Method Detail |
|---|
public void add(org.openrdf.model.Statement... statements)
statements - New statements to addpublic void delete(org.openrdf.model.Statement... statements)
statements - New statements to addpublic boolean containsDeletion(org.openrdf.model.Statement statement)
statement - statement to check
public boolean containsAddition(org.openrdf.model.Statement statement)
statement - statement to check
public void filter(java.util.Collection<org.openrdf.model.Statement> results,
org.openrdf.model.Resource s,
org.openrdf.model.URI p,
org.openrdf.model.Value o)
results - set of Statements to filters - The subject of the statement pattern being searched on.p - The property of the statement pattern being searched on.o - The object of the statement pattern being searched on.
public void filter(java.util.Collection<org.openrdf.model.Statement> results,
org.openrdf.model.Statement match)
results - set of Statements to filtermatch - The Statement pattern being searched on.
public static java.util.Collection<org.openrdf.model.Statement> findMatches(java.util.Collection<org.openrdf.model.Statement> statements,
org.openrdf.model.Resource s,
org.openrdf.model.URI p,
org.openrdf.model.Value o)
statements - Set of statements to determine match statuss - The subject of the statement pattern being searched on.p - The property of the statement pattern being searched on.o - The object of the statement pattern being searched on.
public void clear()
public void apply(INamedGraph graph)
graph - Graph to apply changespublic void unapply(INamedGraph graph)
graph - Graph to apply changespublic int size()
public java.util.Collection<org.openrdf.model.Statement> getAdditions()
public java.util.Collection<org.openrdf.model.Statement> getDeletions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||