Interface QuadTable

All Superinterfaces:
TransactionalComponent, TupleTable<Quad>
All Known Implementing Classes:
HexTable, PMapQuadTable

public interface QuadTable extends TupleTable<Quad>
A simplex or multiplex table of Quads. Implementations may wish to override listGraphNodes() with a more efficient implementation.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Clear all tuples from this table.
    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)
    Search the table using a pattern of slots.
    default Stream<Quad>
    findInUnionGraph(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o)
     
    default Stream<org.apache.jena.graph.Node>
    Discover the graphs named in the table

    Methods inherited from interface org.apache.jena.sparql.core.mem.TransactionalComponent

    begin, commit, end

    Methods inherited from interface org.apache.jena.sparql.core.mem.TupleTable

    abort, add, delete
  • Method Details

    • find

      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)
      Search the table using a pattern of slots. Node.ANY or null will work as a wildcard.
      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
    • listGraphNodes

      default Stream<org.apache.jena.graph.Node> listGraphNodes()
      Discover the graphs named in the table
      Returns:
      an Stream of graph names used in this table
    • clear

      default void clear()
      Description copied from interface: TupleTable
      Clear all tuples from this table.
      Specified by:
      clear in interface TupleTable<Quad>
    • findInUnionGraph

      default Stream<Quad> findInUnionGraph(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o)