|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.model.impl.TripleStore
public class TripleStore
Core storage of triples with indexes for s,p,o, po, and sp
| Constructor Summary | |
|---|---|
TripleStore()
Initialize triplestore'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)
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)
Find set of statements that match provided parameters |
java.util.Collection<org.openrdf.model.Statement> |
getAllStatements()
Return all statements in the store |
boolean |
isEmpty()
Return if store is empty |
int |
size()
Return the number of statements in the store |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TripleStore()
| Method Detail |
|---|
public void add(org.openrdf.model.Statement... statements)
statements - Statements to addpublic void delete(org.openrdf.model.Statement... statements)
statements - Statements to delete
public java.util.Collection<org.openrdf.model.Statement> findStatements(org.openrdf.model.Resource subj,
org.openrdf.model.URI prop,
org.openrdf.model.Value obj)
subj - Subject value to match, or wildcard if nullprop - Property value to match, or wildcard if nullobj - Object 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)
subj - Subject value to match, or wildcard if nullprop - Property value to match, or wildcard if nullobj - Object value to match, or wildcard if null
public void clear()
public int size()
public boolean isEmpty()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||