public class PMapTripleTable extends PMapTupleTable<FourTupleMap.ThreeTupleMap,Triple,org.apache.jena.atlas.lib.tuple.TConsumer3<Node>> implements TripleTable
TripleTable
employing persistent maps to index triples in one particular slot order (e.g. SPO, OSP or POS).Constructor and Description |
---|
PMapTripleTable(String order) |
PMapTripleTable(String canonical,
String order) |
PMapTripleTable(String tableName,
org.apache.jena.atlas.lib.tuple.TupleMap order) |
Modifier and Type | Method and Description |
---|---|
void |
add(Triple t)
Add a tuple to the table
|
void |
delete(Triple t)
Remove a tuple from the table
|
Stream<Triple> |
find(Node s,
Node p,
Node o)
Search the table using a pattern of slots.
|
begin, clear, commit, end
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear
abort
begin, commit, end
public PMapTripleTable(String order)
order
- an internal order for this tablepublic PMapTripleTable(String canonical, String order)
canonical
- the canonical order outside this tableorder
- the internal order for this tablepublic PMapTripleTable(String tableName, org.apache.jena.atlas.lib.tuple.TupleMap order)
tableName
- a name for this tableorder
- the order of elements in this tablepublic void add(Triple t)
TupleTable
add
in interface TupleTable<Triple>
t
- the tuple to addpublic void delete(Triple t)
TupleTable
delete
in interface TupleTable<Triple>
t
- the tuple to removepublic Stream<Triple> find(Node s, Node p, Node o)
TripleTable
Node.ANY
or null
will work as a wildcard.find
in interface TripleTable
s
- the subject node of the patternp
- the predicate node of the patterno
- the object node of the patternStream
of matched triplesLicenced under the Apache License, Version 2.0