|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.model.delta.DeltaContainer
public class DeltaContainer
DeltaContainer is the underlying implementation of a overlay of delta changes to a base container
| Constructor Summary | |
|---|---|
DeltaContainer()
Create a container of addtions and deletions |
|
DeltaContainer(java.util.Collection<org.openrdf.model.Statement> additions,
java.util.Collection<org.openrdf.model.Statement> deletions)
Create a container of addtions and deletions with the provided additions and deletions |
|
| Method Summary | |
|---|---|
void |
add(org.openrdf.model.Statement... statements)
Add statements to the delta. |
void |
apply(IContainer container)
Apply the deltas contained in this container to the provided container. |
void |
clear()
Clear the delta of all changes. |
boolean |
containsAddition(org.openrdf.model.Statement statement)
Does the delta contain this statement in its set of additions |
boolean |
containsDeletion(org.openrdf.model.Statement statement)
Does the delta contain this statement in its set of deletions |
void |
delete(org.openrdf.model.Statement... statements)
Delete statements from 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,
org.openrdf.model.Resource... contexts)
Filter a set of results with the additions and deletions in this delta that match a statement pattern |
void |
filter(java.util.Collection<org.openrdf.model.Statement> results,
org.openrdf.model.Statement match)
Filter a set of results with the additions and deletions in this delta that match a statement pattern |
java.util.Collection<org.openrdf.model.URI> |
getAdditionContexts()
Get set of contexts affected by additions |
java.util.Collection<org.openrdf.model.Statement> |
getAdditions()
Get the set of additions within this delta |
java.util.Collection<org.openrdf.model.URI> |
getDeletionContexts()
Get set of contexts affected by deletions |
java.util.Collection<org.openrdf.model.Statement> |
getDeletions()
Get the set of deletions within this delta |
int |
size()
Return the number of changes contained in this delta |
int |
sizeAdditions()
Return the number of changes contained in this delta's additions |
int |
sizeAdditions(org.openrdf.model.Resource... contexts)
Return the number of changes contained in this delta's additions for a given context |
int |
sizeDeletions()
Return the number of changes contained in this delta's deletions |
int |
sizeDeletions(org.openrdf.model.Resource... contexts)
Return the number of changes contained in this delta's deletions for a given context |
void |
unapply(IContainer container)
Unapply the deltas contained in this delta to the provided container. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeltaContainer()
public DeltaContainer(java.util.Collection<org.openrdf.model.Statement> additions,
java.util.Collection<org.openrdf.model.Statement> deletions)
additions - Statements added in this deltadeletions - Statements deleted in this delta| Method Detail |
|---|
public java.util.Collection<org.openrdf.model.URI> getAdditionContexts()
public java.util.Collection<org.openrdf.model.URI> getDeletionContexts()
public void add(org.openrdf.model.Statement... statements)
statements - New statements to addpublic void delete(org.openrdf.model.Statement... statements)
statements - New statement 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,
org.openrdf.model.Resource... contexts)
results - Set of results to filters - subject of statement pattern to filter byp - property of statement pattern to filter byo - object of statement pattern to filter bycontexts - contexts of statement pattern to filter by
public void filter(java.util.Collection<org.openrdf.model.Statement> results,
org.openrdf.model.Statement match)
results - Set of results to filtermatch - statement pattern to matchpublic void clear()
public void apply(IContainer container)
container - Container to apply changespublic void unapply(IContainer container)
container - Container to apply changespublic int size()
public int sizeAdditions()
public int sizeDeletions()
public int sizeAdditions(org.openrdf.model.Resource... contexts)
contexts - set of contexts to determine size
public int sizeDeletions(org.openrdf.model.Resource... contexts)
contexts - set of contexts to determine 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 | |||||||||