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
|
java.util.stream.Stream<Triple> |
find(Node s,
Node p,
Node o)
Search the table using a pattern of slots.
|
begin, clear, commit, endequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearabortbegin, commit, endpublic 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)
TupleTableadd in interface TupleTable<Triple>t - the tuple to addpublic void delete(Triple t)
TupleTabledelete in interface TupleTable<Triple>t - the tuple to removepublic java.util.stream.Stream<Triple> find(Node s, Node p, Node o)
TripleTableNode.ANY or null will work as a wildcard.find in interface TripleTables - 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