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 TypeMethodDescriptionvoidAdd a tuple to the tablevoidStart either a READ or WRITE transactionvoidclear()Clear all tuples from this table.voidcommit()Commit a transaction - finish the transaction and make any changes permanent (if a "write" transaction)voidRemove a tuple from the tablevoidend()Finish the transaction - if a write transaction and commit() has not been called, then abortfind(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) Search the table using a pattern of slots.findInUnionGraph(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) Stream<org.apache.jena.graph.Node>Discover the graphs named in the tableMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jena.sparql.core.mem.TupleTable
abort
-
Constructor Details
-
HexTable
public HexTable()
-
-
Method Details
-
find
public Stream<Quad> find(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) Description copied from interface:QuadTableSearch the table using a pattern of slots.Node.ANYornullwill work as a wildcard. -
add
Description copied from interface:TupleTableAdd a tuple to the table- Specified by:
addin interfaceTupleTable<Quad>- Parameters:
q- the tuple to add
-
delete
Description copied from interface:TupleTableRemove a tuple from the table- Specified by:
deletein interfaceTupleTable<Quad>- Parameters:
q- the tuple to remove
-
listGraphNodes
Description copied from interface:QuadTableDiscover the graphs named in the table- Specified by:
listGraphNodesin interfaceQuadTable- Returns:
- an
Streamof graph names used in this table
-
findInUnionGraph
public Stream<Quad> findInUnionGraph(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) - Specified by:
findInUnionGraphin interfaceQuadTable
-
begin
Description copied from interface:TransactionalComponentStart either a READ or WRITE transaction- Specified by:
beginin interfaceTransactionalComponent
-
end
public void end()Description copied from interface:TransactionalComponentFinish the transaction - if a write transaction and commit() has not been called, then abort- Specified by:
endin interfaceTransactionalComponent
-
commit
public void commit()Description copied from interface:TransactionalComponentCommit a transaction - finish the transaction and make any changes permanent (if a "write" transaction)- Specified by:
commitin interfaceTransactionalComponent
-
clear
public void clear()Description copied from interface:TupleTableClear all tuples from this table.- Specified by:
clearin interfaceQuadTable- Specified by:
clearin interfaceTupleTable<Quad>
-