java.lang.Object
org.apache.jena.sparql.core.mem.OrderedTupleTable<TupleType,ConsumerType>
org.apache.jena.sparql.core.mem.PMapTupleTable<FourTupleMap,Quad,org.apache.jena.atlas.lib.tuple.TConsumer4<org.apache.jena.graph.Node>>
org.apache.jena.sparql.core.mem.PMapQuadTable
- All Implemented Interfaces:
QuadTable
,TransactionalComponent
,TupleTable<Quad>
public class PMapQuadTable
extends PMapTupleTable<FourTupleMap,Quad,org.apache.jena.atlas.lib.tuple.TConsumer4<org.apache.jena.graph.Node>>
implements QuadTable
An implementation of
QuadTable
based on the use of nested PMap
s. Intended for high-speed in-memory
use.-
Constructor Summary
ConstructorsConstructorDescriptionPMapQuadTable
(String order) PMapQuadTable
(String canonical, String order) PMapQuadTable
(String tableName, org.apache.jena.atlas.lib.tuple.TupleMap order) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a tuple to the tablevoid
Remove a tuple from the tablefind
(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.Methods inherited from class org.apache.jena.sparql.core.mem.PMapTupleTable
begin, clear, commit, end
Methods 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.QuadTable
clear, findInUnionGraph, listGraphNodes
Methods inherited from interface org.apache.jena.sparql.core.mem.TransactionalComponent
begin, commit, end
Methods inherited from interface org.apache.jena.sparql.core.mem.TupleTable
abort
-
Constructor Details
-
PMapQuadTable
- Parameters:
order
- an internal order for this table
-
PMapQuadTable
- Parameters:
canonical
- the canonical order outside this tableorder
- the internal order for this table
-
PMapQuadTable
- Parameters:
tableName
- a name for this tableorder
- the order of elements in this table
-
-
Method Details
-
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
-
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:QuadTable
Search the table using a pattern of slots.Node.ANY
ornull
will work as a wildcard.
-