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) |
boolean |
isInTransaction()
Say whether inside a transaction.
|
java.util.stream.Stream<Node> |
listGraphNodes()
Discover the graphs named in the table
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
abort
public boolean isInTransaction()
Transactional
isInTransaction
in interface Transactional
public java.util.stream.Stream<Quad> find(Node g, Node s, Node p, Node o)
QuadTable
Node.ANY
or null
will work as a wildcard.public void add(Quad q)
TupleTable
add
in interface TupleTable<Quad>
q
- the tuple to addpublic void delete(Quad q)
TupleTable
delete
in interface TupleTable<Quad>
q
- the tuple to removepublic java.util.stream.Stream<Node> listGraphNodes()
QuadTable
listGraphNodes
in interface QuadTable
Stream
of graph names used in this tablepublic java.util.stream.Stream<Quad> findInUnionGraph(Node s, Node p, Node o)
findInUnionGraph
in interface QuadTable
public void begin(ReadWrite rw)
Transactional
begin
in interface Transactional
public void end()
Transactional
end
in interface Transactional
public void commit()
Transactional
commit
in interface Transactional
public void clear()
TupleTable
clear
in interface QuadTable
clear
in interface TupleTable<Quad>
Licenced under the Apache License, Version 2.0