Class QuadTable

java.lang.Object
org.apache.jena.tdb1.store.TableBase
org.apache.jena.tdb1.store.QuadTable
All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable, org.apache.jena.atlas.lib.Sync

public class QuadTable extends TableBase
Quad table - a collection of TupleIndexes for 4-tuples together with a node table.
  • Constructor Summary

    Constructors
    Constructor
    Description
    QuadTable(TupleIndex[] indexes, NodeTable nodeTable, DatasetControl policy)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    add(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o)
    Add a quad - return true if it was added, false if it already existed
    boolean
    add(org.apache.jena.graph.Node gn, org.apache.jena.graph.Triple triple)
    Add a quad (as graph node and triple) - return true if it was added, false if it already existed
    boolean
    add(org.apache.jena.sparql.core.Quad quad)
    Add a quad - return true if it was added, false if it already existed
    void
    Clear - does not clear the associated node tuple table
    boolean
    delete(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o)
    Delete a quad - return true if it was deleted, false if it didn't exist
    boolean
    delete(org.apache.jena.graph.Node gn, org.apache.jena.graph.Triple triple)
    Delete a quad (as graph node and triple) - return true if it was deleted, false if it didn't exist
    boolean
    delete(org.apache.jena.sparql.core.Quad quad)
    Delete a quad - return true if it was deleted, false if it didn't exist
    Iterator<org.apache.jena.sparql.core.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)
    Find matching quads

    Methods inherited from class org.apache.jena.tdb1.store.TableBase

    close, getNodeTupleTable, getPolicy, isEmpty, sync

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • add

      public boolean add(org.apache.jena.sparql.core.Quad quad)
      Add a quad - return true if it was added, false if it already existed
    • add

      public boolean add(org.apache.jena.graph.Node gn, org.apache.jena.graph.Triple triple)
      Add a quad (as graph node and triple) - return true if it was added, false if it already existed
    • add

      public boolean add(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o)
      Add a quad - return true if it was added, false if it already existed
    • delete

      public boolean delete(org.apache.jena.sparql.core.Quad quad)
      Delete a quad - return true if it was deleted, false if it didn't exist
    • delete

      public boolean delete(org.apache.jena.graph.Node gn, org.apache.jena.graph.Triple triple)
      Delete a quad (as graph node and triple) - return true if it was deleted, false if it didn't exist
    • delete

      public boolean delete(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o)
      Delete a quad - return true if it was deleted, false if it didn't exist
    • find

      public Iterator<org.apache.jena.sparql.core.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)
      Find matching quads
    • clearQuads

      public void clearQuads()
      Clear - does not clear the associated node tuple table