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.
|
boolean |
isInTransaction()
Say whether inside a transaction.
|
public boolean isInTransaction()
Transactional
isInTransaction
in interface Transactional
public void commit()
Transactional
commit
in interface Transactional
public void abort()
Transactional
abort
in interface TupleTable<Triple>
abort
in interface Transactional
public void end()
Transactional
end
in interface Transactional
public java.util.stream.Stream<Triple> find(Node s, Node p, Node o)
TripleTable
Node.ANY
or null
will work as a wildcard.find
in interface TripleTable
s
- 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)
TupleTable
add
in interface TupleTable<Triple>
t
- the tuple to addpublic void delete(Triple t)
TupleTable
delete
in interface TupleTable<Triple>
t
- the tuple to removepublic void begin(ReadWrite rw)
Transactional
begin
in interface Transactional
public void clear()
TupleTable
clear
in interface TripleTable
clear
in interface TupleTable<Triple>
Licenced under the Apache License, Version 2.0