public class HexTable extends Object implements QuadTable
QuadTable using all of the available forms in QuadTableForm. This class binds together all
of the enumerated values in enum QuadTableForm, each of which implements QuadTable, into one
implementation of QuadTable that selects the most useful index form(s) for any given operation.| Constructor and Description |
|---|
HexTable() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Quad q)
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(Quad q)
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<Quad> |
find(Node g,
Node s,
Node p,
Node o)
Search the table using a pattern of slots.
|
java.util.stream.Stream<Quad> |
findInUnionGraph(Node s,
Node p,
Node o) |
java.util.stream.Stream<Node> |
listGraphNodes()
Discover the graphs named in the table
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabortpublic java.util.stream.Stream<Quad> find(Node g, Node s, Node p, Node o)
QuadTableNode.ANY or null will work as a wildcard.public void add(Quad q)
TupleTableadd in interface TupleTable<Quad>q - the tuple to addpublic void delete(Quad q)
TupleTabledelete in interface TupleTable<Quad>q - the tuple to removepublic java.util.stream.Stream<Node> listGraphNodes()
QuadTablelistGraphNodes in interface QuadTableStream of graph names used in this tablepublic java.util.stream.Stream<Quad> findInUnionGraph(Node s, Node p, Node o)
findInUnionGraph in interface QuadTablepublic void begin(ReadWrite rw)
TransactionalComponentbegin in interface TransactionalComponentpublic void end()
TransactionalComponentend in interface TransactionalComponentpublic void commit()
TransactionalComponentcommit in interface TransactionalComponentpublic void clear()
TupleTableclear in interface QuadTableclear in interface TupleTable<Quad>Licenced under the Apache License, Version 2.0