public class TriTable extends Object implements TripleTable
TripleTable using all of the available forms in TripleTableForm.| Constructor and Description |
|---|
TriTable() |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Abort a transaction - finish the transaction and undo any changes (if a "write" transaction)
|
void |
add(Triple t)
Add a tuple to the table
|
void |
begin(ReadWrite rw)
Start either a READ or WRITE transaction
|
void |
clear()
Clear all tuples from this table.
|
void |
commit()
Commit a transaction - finish the transaction and make any changes permanent (if a "write" transaction)
|
void |
delete(Triple t)
Remove a tuple from the table
|
void |
end()
Finish the transaction - if a write transaction and commit() has not been called, then abort
|
java.util.stream.Stream<Triple> |
find(Node s,
Node p,
Node o)
Search the table using a pattern of slots.
|
public void commit()
TransactionalComponentcommit in interface TransactionalComponentpublic void abort()
TransactionalComponentabort in interface TransactionalComponentabort in interface TupleTable<Triple>public void end()
TransactionalComponentend in interface TransactionalComponentpublic java.util.stream.Stream<Triple> find(Node s, Node p, Node o)
TripleTableNode.ANY or null will work as a wildcard.find in interface TripleTables - the subject node of the patternp - the predicate node of the patterno - the object node of the patternStream of matched triplespublic void add(Triple t)
TupleTableadd in interface TupleTable<Triple>t - the tuple to addpublic void delete(Triple t)
TupleTabledelete in interface TupleTable<Triple>t - the tuple to removepublic void begin(ReadWrite rw)
TransactionalComponentbegin in interface TransactionalComponentpublic void clear()
TupleTableclear in interface TripleTableclear in interface TupleTable<Triple>Licenced under the Apache License, Version 2.0