java.lang.Object
org.apache.jena.sparql.core.mem.HexTable
- All Implemented Interfaces:
QuadTable
,TransactionalComponent
,TupleTable<Quad>
A six-way
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a tuple to the tablevoid
Start either a READ or WRITE transactionvoid
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
Remove a tuple from the tablevoid
end()
Finish the transaction - if a write transaction and commit() has not been called, then abortSearch the table using a pattern of slots.findInUnionGraph
(Node s, Node p, Node o) Discover the graphs named in the tableMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.jena.sparql.core.mem.TupleTable
abort
-
Constructor Details
-
HexTable
public HexTable()
-
-
Method Details
-
find
Description copied from interface:QuadTable
Search the table using a pattern of slots.Node.ANY
ornull
will work as a wildcard. -
add
Description copied from interface:TupleTable
Add a tuple to the table- Specified by:
add
in interfaceTupleTable<Quad>
- Parameters:
q
- the tuple to add
-
delete
Description copied from interface:TupleTable
Remove a tuple from the table- Specified by:
delete
in interfaceTupleTable<Quad>
- Parameters:
q
- the tuple to remove
-
listGraphNodes
Description copied from interface:QuadTable
Discover the graphs named in the table- Specified by:
listGraphNodes
in interfaceQuadTable
- Returns:
- an
Stream
of graph names used in this table
-
findInUnionGraph
- Specified by:
findInUnionGraph
in interfaceQuadTable
-
begin
Description copied from interface:TransactionalComponent
Start either a READ or WRITE transaction- Specified by:
begin
in interfaceTransactionalComponent
-
end
public void end()Description copied from interface:TransactionalComponent
Finish the transaction - if a write transaction and commit() has not been called, then abort- Specified by:
end
in interfaceTransactionalComponent
-
commit
public void commit()Description copied from interface:TransactionalComponent
Commit a transaction - finish the transaction and make any changes permanent (if a "write" transaction)- Specified by:
commit
in interfaceTransactionalComponent
-
clear
public void clear()Description copied from interface:TupleTable
Clear all tuples from this table.- Specified by:
clear
in interfaceQuadTable
- Specified by:
clear
in interfaceTupleTable<Quad>
-