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 PMaps. 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 TypeMethodDescriptionvoidAdd a tuple to the tablevoidRemove 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, endMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jena.sparql.core.mem.QuadTable
clear, findInUnionGraph, listGraphNodesMethods inherited from interface org.apache.jena.sparql.core.mem.TransactionalComponent
begin, commit, endMethods 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: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
-
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.
-