Class GraphTDB

java.lang.Object
org.apache.jena.graph.impl.GraphBase
org.apache.jena.sparql.core.GraphView
org.apache.jena.tdb1.store.GraphTDB
All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable, org.apache.jena.atlas.lib.Sync, org.apache.jena.graph.Graph, org.apache.jena.graph.impl.GraphWithPerform, org.apache.jena.sparql.core.NamedGraph
Direct Known Subclasses:
GraphNonTxnTDB, GraphTxnTDB

public abstract class GraphTDB extends org.apache.jena.sparql.core.GraphView implements org.apache.jena.atlas.lib.Closeable, org.apache.jena.atlas.lib.Sync
General operations for TDB graphs (free-standing graph, default graph and named graphs)
  • Field Summary

    Fields inherited from class org.apache.jena.graph.impl.GraphBase

    TOSTRING_TRIPLE_BASE, TOSTRING_TRIPLE_LIMIT

    Fields inherited from interface org.apache.jena.graph.Graph

    emptyGraph
  • Constructor Summary

    Constructors
    Constructor
    Description
    GraphTDB(org.apache.jena.sparql.core.DatasetGraph dataset, org.apache.jena.graph.Node graphName)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final void
     
    Return the associated DatasetGraphTDB.
    The NodeTupleTable for this graph - valid only inside the transaction or non-transactional.
    void
    remove(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o)
     
    final void
     

    Methods inherited from class org.apache.jena.sparql.core.GraphView

    clear, createDefaultGraph, createNamedGraph, createUnionGraph, getCapabilities, getDataset, getGraphName, getTransactionHandler, performAdd, performDelete

    Methods inherited from class org.apache.jena.graph.impl.GraphBase

    add, contains, contains, delete, dependsOn, find, find, forTestingOnly_graphBaseFind, getEventManager, getPrefixMapping, isClosed, isEmpty, isIsomorphicWith, notifyAdd, notifyDelete, size, toString, toString

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.jena.graph.Graph

    add, add, contains, contains, delete, delete, dependsOn, find, find, find, getEventManager, getPrefixMapping, isClosed, isEmpty, isIsomorphicWith, size, sizeLong, stream, stream
  • Constructor Details

    • GraphTDB

      public GraphTDB(org.apache.jena.sparql.core.DatasetGraph dataset, org.apache.jena.graph.Node graphName)
  • Method Details

    • getDatasetGraphTDB

      public abstract DatasetGraphTDB getDatasetGraphTDB()
      Return the associated DatasetGraphTDB. For non-transactional, that's the base storage. For transactional, it is the current transaction wrapper DatasetGraphTDB.

      Immediate validity only. Not valid across transaction boundaries, nor non-transactional to transactional.

    • getDatasetGraphTransaction

      public abstract DatasetGraphTransaction getDatasetGraphTransaction()
      Return the DatasetGraphTransaction. If this wrapping a base DatasetGraphTDB, return null.
    • getNodeTupleTable

      public NodeTupleTable getNodeTupleTable()
      The NodeTupleTable for this graph - valid only inside the transaction or non-transactional.
    • sync

      public final void sync()
      Specified by:
      sync in interface org.apache.jena.atlas.lib.Sync
      Overrides:
      sync in class org.apache.jena.sparql.core.GraphView
    • close

      public final void close()
      Specified by:
      close in interface org.apache.jena.atlas.lib.Closeable
      Specified by:
      close in interface org.apache.jena.graph.Graph
      Overrides:
      close in class org.apache.jena.graph.impl.GraphBase
    • remove

      public void remove(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o)
      Specified by:
      remove in interface org.apache.jena.graph.Graph
      Overrides:
      remove in class org.apache.jena.sparql.core.GraphView