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<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 Details

    • PMapQuadTable

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

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

      public PMapQuadTable(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(Quad q)
      Description copied from interface: TupleTable
      Add a tuple to the table
      Specified by:
      add in interface TupleTable<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 interface TupleTable<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: QuadTable
      Search the table using a pattern of slots. Node.ANY or null will work as a wildcard.
      Specified by:
      find in interface QuadTable
      Parameters:
      g - the graph node of the pattern
      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 quads