Class DatasetGraphTDB

java.lang.Object
org.apache.jena.sparql.core.DatasetGraphBase
org.apache.jena.sparql.core.DatasetGraphBaseFind
org.apache.jena.sparql.core.DatasetGraphTriplesQuads
org.apache.jena.tdb1.store.DatasetGraphTDB
All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable, org.apache.jena.atlas.lib.Sync, org.apache.jena.sparql.core.DatasetGraph, org.apache.jena.sparql.core.Transactional

public final class DatasetGraphTDB extends org.apache.jena.sparql.core.DatasetGraphTriplesQuads implements org.apache.jena.atlas.lib.Sync, org.apache.jena.atlas.lib.Closeable
This is the class that creates a dataset over the storage. The name is historical. "TDBStorage" might be better nowadays.

This class is not Transactional. It is used within the TDB transaction system.

See also:

  • Constructor Details

  • Method Details

    • getQuadTable

      public QuadTable getQuadTable()
    • getTripleTable

      public TripleTable getTripleTable()
    • getDefaultGraphTDB

      public GraphTDB getDefaultGraphTDB()
    • getGraphTDB

      public GraphTDB getGraphTDB(org.apache.jena.graph.Node graphNode)
    • close

      public void close()
      Specified by:
      close in interface org.apache.jena.atlas.lib.Closeable
      Specified by:
      close in interface org.apache.jena.sparql.core.DatasetGraph
      Overrides:
      close in class org.apache.jena.sparql.core.DatasetGraphBase
    • containsGraph

      public boolean containsGraph(org.apache.jena.graph.Node graphNode)
      Specified by:
      containsGraph in interface org.apache.jena.sparql.core.DatasetGraph
      Overrides:
      containsGraph in class org.apache.jena.sparql.core.DatasetGraphBase
    • getDefaultGraph

      public org.apache.jena.graph.Graph getDefaultGraph()
      Specified by:
      getDefaultGraph in interface org.apache.jena.sparql.core.DatasetGraph
      Specified by:
      getDefaultGraph in class org.apache.jena.sparql.core.DatasetGraphBase
    • getUnionGraph

      public org.apache.jena.graph.Graph getUnionGraph()
      Specified by:
      getUnionGraph in interface org.apache.jena.sparql.core.DatasetGraph
      Overrides:
      getUnionGraph in class org.apache.jena.sparql.core.DatasetGraphBase
    • getGraph

      public org.apache.jena.graph.Graph getGraph(org.apache.jena.graph.Node graphNode)
      Specified by:
      getGraph in interface org.apache.jena.sparql.core.DatasetGraph
      Specified by:
      getGraph in class org.apache.jena.sparql.core.DatasetGraphBase
    • removeGraph

      public void removeGraph(org.apache.jena.graph.Node graphNode)
      Specified by:
      removeGraph in interface org.apache.jena.sparql.core.DatasetGraph
      Overrides:
      removeGraph in class org.apache.jena.sparql.core.DatasetGraphTriplesQuads
    • getConfig

      public StorageConfig getConfig()
    • getReorderTransform

      public org.apache.jena.sparql.engine.optimizer.reorder.ReorderTransformation getReorderTransform()
    • prefixes

      public org.apache.jena.riot.system.PrefixMap prefixes()
      Specified by:
      prefixes in interface org.apache.jena.sparql.core.DatasetGraph
    • getStoragePrefixes

      public DatasetPrefixesTDB getStoragePrefixes()
    • listGraphNodes

      public Iterator<org.apache.jena.graph.Node> listGraphNodes()
      Specified by:
      listGraphNodes in interface org.apache.jena.sparql.core.DatasetGraph
    • size

      public long size()
      Specified by:
      size in interface org.apache.jena.sparql.core.DatasetGraph
      Overrides:
      size in class org.apache.jena.sparql.core.DatasetGraphBase
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.apache.jena.sparql.core.DatasetGraph
      Overrides:
      isEmpty in class org.apache.jena.sparql.core.DatasetGraphBase
    • clear

      public void clear()
      Specified by:
      clear in interface org.apache.jena.sparql.core.DatasetGraph
      Overrides:
      clear in class org.apache.jena.sparql.core.DatasetGraphBase
    • chooseNodeTupleTable

      public NodeTupleTable chooseNodeTupleTable(org.apache.jena.graph.Node graphNode)
    • deleteAny

      public void deleteAny(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o)
      Specified by:
      deleteAny in interface org.apache.jena.sparql.core.DatasetGraph
      Overrides:
      deleteAny in class org.apache.jena.sparql.core.DatasetGraphBase
    • getLocation

      public Location getLocation()
    • sync

      public void sync()
      Specified by:
      sync in interface org.apache.jena.atlas.lib.Sync
    • toString

      public String toString()
      Overrides:
      toString in class org.apache.jena.sparql.core.DatasetGraphBase
    • begin

      public void begin()
      Specified by:
      begin in interface org.apache.jena.sparql.core.Transactional
    • begin

      public void begin(org.apache.jena.query.TxnType txnType)
      Specified by:
      begin in interface org.apache.jena.sparql.core.Transactional
    • begin

      public void begin(org.apache.jena.query.ReadWrite mode)
      Specified by:
      begin in interface org.apache.jena.sparql.core.Transactional
    • promote

      public boolean promote(org.apache.jena.sparql.core.Transactional.Promote txnType)
      Specified by:
      promote in interface org.apache.jena.sparql.core.Transactional
    • commit

      public void commit()
      Specified by:
      commit in interface org.apache.jena.sparql.core.Transactional
    • abort

      public void abort()
      Specified by:
      abort in interface org.apache.jena.sparql.core.Transactional
    • isInTransaction

      public boolean isInTransaction()
      Specified by:
      isInTransaction in interface org.apache.jena.sparql.core.Transactional
    • end

      public void end()
      Specified by:
      end in interface org.apache.jena.sparql.core.Transactional
    • transactionMode

      public org.apache.jena.query.ReadWrite transactionMode()
      Specified by:
      transactionMode in interface org.apache.jena.sparql.core.Transactional
    • transactionType

      public org.apache.jena.query.TxnType transactionType()
      Specified by:
      transactionType in interface org.apache.jena.sparql.core.Transactional
    • supportsTransactions

      public boolean supportsTransactions()
      Specified by:
      supportsTransactions in interface org.apache.jena.sparql.core.DatasetGraph
    • supportsTransactionAbort

      public boolean supportsTransactionAbort()
      Specified by:
      supportsTransactionAbort in interface org.apache.jena.sparql.core.DatasetGraph