|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.model.impl.QuadStore
public class QuadStore
Core storage of quads with indexes for s,p,o,c, po, and sp
| Constructor Summary | |
|---|---|
QuadStore()
Initialize quadstore's statement set and indexes |
|
| Method Summary | |
|---|---|
void |
add(org.openrdf.model.Statement... statements)
Add statements to store and index them |
void |
clear()
Clear statements and indexes from memory |
boolean |
contains(org.openrdf.model.Resource subj,
org.openrdf.model.URI prop,
org.openrdf.model.Value obj,
org.openrdf.model.Resource... contexts)
Tests if a statement is contained in store that match provided parameters |
boolean |
contains(org.openrdf.model.Statement match)
Tests if a statement is contained in the store. |
void |
delete(org.openrdf.model.Statement... statements)
Delete statements from store and remove indexes |
java.util.Collection<org.openrdf.model.Statement> |
findStatements(org.openrdf.model.Resource subj,
org.openrdf.model.URI prop,
org.openrdf.model.Value obj,
org.openrdf.model.Resource... contexts)
Find set of statements that match provided parameters |
java.util.Collection<org.openrdf.model.Statement> |
getAllStatements()
Return all statements in the store |
java.util.Set<org.openrdf.model.URI> |
getContexts()
Return the set of contexts contained within store |
boolean |
isEmpty()
Return if store is empty |
boolean |
isEmpty(org.openrdf.model.Resource... contexts)
Return if store is empty for given contexts |
int |
size()
Return the number of statements in the store |
int |
size(org.openrdf.model.Resource... contexts)
Return the number of statements in the store for given contexts |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QuadStore()
| Method Detail |
|---|
public void add(org.openrdf.model.Statement... statements)
statements - Statements to add
AnzoRuntimeException - if the context of a statement is nullpublic void delete(org.openrdf.model.Statement... statements)
statements - Statements to delete
AnzoRuntimeException - if the context of a statement is null
public java.util.Collection<org.openrdf.model.Statement> findStatements(org.openrdf.model.Resource subj,
org.openrdf.model.URI prop,
org.openrdf.model.Value obj,
org.openrdf.model.Resource... contexts)
subj - Subject value to match, or wildcard if nullprop - Property value to match, or wildcard if nullobj - Object value to match, or wildcard if nullcontexts - Context value to match, or wildcard if null
public java.util.Collection<org.openrdf.model.Statement> getAllStatements()
public boolean contains(org.openrdf.model.Statement match)
match - is the statement to be tested
public boolean contains(org.openrdf.model.Resource subj,
org.openrdf.model.URI prop,
org.openrdf.model.Value obj,
org.openrdf.model.Resource... contexts)
subj - Subject value to match, or wildcard if nullprop - Property value to match, or wildcard if nullobj - Object value to match, or wildcard if nullcontexts - Context value to match, or wildcard if null
public void clear()
public int size()
public boolean isEmpty()
public boolean isEmpty(org.openrdf.model.Resource... contexts)
contexts - to check for any contents
public int size(org.openrdf.model.Resource... contexts)
contexts - to determine size of in container
public java.util.Set<org.openrdf.model.URI> getContexts()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||