Package org.apache.jena.sparql.core.mem
Class PMapQuadTable
- 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<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<Node>> implements QuadTable
An implementation ofQuadTable
based on the use of nestedPMap
s. Intended for high-speed in-memory use.
-
-
Constructor Summary
Constructors Constructor Description PMapQuadTable(java.lang.String order)
PMapQuadTable(java.lang.String canonical, java.lang.String order)
PMapQuadTable(java.lang.String tableName, org.apache.jena.atlas.lib.tuple.TupleMap order)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Quad q)
Add a tuple to the tablevoid
delete(Quad q)
Remove a tuple from the tablejava.util.stream.Stream<Quad>
find(Node g, Node s, Node p, 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 Detail
-
PMapQuadTable
public PMapQuadTable(java.lang.String order)
- Parameters:
order
- an internal order for this table
-
PMapQuadTable
public PMapQuadTable(java.lang.String canonical, java.lang.String order)
- Parameters:
canonical
- the canonical order outside this tableorder
- the internal order for this table
-
PMapQuadTable
public PMapQuadTable(java.lang.String tableName, org.apache.jena.atlas.lib.tuple.TupleMap order)
- Parameters:
tableName
- a name for this tableorder
- the order of elements in this table
-
-
Method Detail
-
add
public void add(Quad q)
Description copied from interface:TupleTable
Add a tuple to the table- Specified by:
add
in interfaceTupleTable<Quad>
- Parameters:
q
- the tuple to add
-
delete
public void delete(Quad q)
Description copied from interface:TupleTable
Remove a tuple from the table- Specified by:
delete
in interfaceTupleTable<Quad>
- Parameters:
q
- the tuple to remove
-
-