Class PMapTripleTable

java.lang.Object
org.apache.jena.sparql.core.mem.OrderedTupleTable<TupleType,ConsumerType>
org.apache.jena.sparql.core.mem.PMapTupleTable<FourTupleMap.ThreeTupleMap,org.apache.jena.graph.Triple,org.apache.jena.atlas.lib.tuple.TConsumer3<org.apache.jena.graph.Node>>
org.apache.jena.sparql.core.mem.PMapTripleTable
All Implemented Interfaces:
TransactionalComponent, TripleTable, TupleTable<org.apache.jena.graph.Triple>

public class PMapTripleTable extends PMapTupleTable<FourTupleMap.ThreeTupleMap,org.apache.jena.graph.Triple,org.apache.jena.atlas.lib.tuple.TConsumer3<org.apache.jena.graph.Node>> implements TripleTable
A TripleTable employing persistent maps to index triples in one particular slot order (e.g. SPO, OSP or POS).
  • Constructor Details

    • PMapTripleTable

      public PMapTripleTable(String order)
      Parameters:
      order - an internal order for this table
    • PMapTripleTable

      public PMapTripleTable(String canonical, String order)
      Parameters:
      canonical - the canonical order outside this table
      order - the internal order for this table
    • PMapTripleTable

      public PMapTripleTable(String tableName, org.apache.jena.atlas.lib.tuple.TupleMap order)
      Parameters:
      tableName - a name for this table
      order - the order of elements in this table
  • Method Details

    • add

      public void add(org.apache.jena.graph.Triple t)
      Description copied from interface: TupleTable
      Add a tuple to the table
      Specified by:
      add in interface TupleTable<org.apache.jena.graph.Triple>
      Parameters:
      t - the tuple to add
    • delete

      public void delete(org.apache.jena.graph.Triple t)
      Description copied from interface: TupleTable
      Remove a tuple from the table
      Specified by:
      delete in interface TupleTable<org.apache.jena.graph.Triple>
      Parameters:
      t - the tuple to remove
    • find

      public Stream<org.apache.jena.graph.Triple> find(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o)
      Description copied from interface: TripleTable
      Search the table using a pattern of slots. Node.ANY or null will work as a wildcard.
      Specified by:
      find in interface TripleTable
      Parameters:
      s - the subject node of the pattern
      p - the predicate node of the pattern
      o - the object node of the pattern
      Returns:
      an Stream of matched triples