Class TDBInternal

java.lang.Object
org.apache.jena.tdb1.sys.TDBInternal

public class TDBInternal extends Object
A collection of helpers to abstract away from internal details of TDB. Use with care. These are not general purpose operations.
  • Constructor Details

    • TDBInternal

      public TDBInternal()
  • Method Details

    • isTDB1

      public static boolean isTDB1(org.apache.jena.sparql.core.DatasetGraph dsg)
      Return true if this is a TDB1 backed DatasetGraph.
    • getNodeId

      public static NodeId getNodeId(org.apache.jena.query.Dataset ds, org.apache.jena.graph.Node node)
      Return the NodeId for a node. Returns NodeId.NodeDoesNotExist when the node is not found. Returns null when not a TDB-backed dataset.
    • getNodeId

      public static NodeId getNodeId(org.apache.jena.sparql.core.DatasetGraph ds, org.apache.jena.graph.Node node)
      Return the NodeId for a node. Returns NodeId.NodeDoesNotExist when the node is not found. Returns null when not a TDB-backed dataset.
    • getNodeId

      public static NodeId getNodeId(DatasetGraphTDB dsg, org.apache.jena.graph.Node node)
      Return the NodeId for a node. Returns NodeId.NodeDoesNotExist when the node is not found. Returns null when not a TDB-backed dataset.
    • getNode

      public static org.apache.jena.graph.Node getNode(org.apache.jena.query.Dataset ds, NodeId nodeId)
      Return the node for a NodeId (if any). Returns null if the NodeId does not exist in the dataset.
    • getNode

      public static org.apache.jena.graph.Node getNode(org.apache.jena.sparql.core.DatasetGraph ds, NodeId nodeId)
      Return the node for a NodeId (if any). Returns null if the NodeId does not exist in the dataset.
    • getNode

      public static org.apache.jena.graph.Node getNode(DatasetGraphTDB dsg, NodeId nodeId)
      Return the node for a NodeId (if any). Returns null if the NodeId does not exist in the dataset.
    • getDatasetGraphTDB

      public static DatasetGraphTDB getDatasetGraphTDB(org.apache.jena.query.Dataset ds)
      Return the DatasetGraphTDB for a Dataset, or null.
    • getDatasetGraphTDB

      public static DatasetGraphTDB getDatasetGraphTDB(org.apache.jena.sparql.core.DatasetGraph dsg)
      Return the DatasetGraphTDB for a DatasetGraph, or null. May not be up-to-date.
    • getBaseDatasetGraphTDB

      public static DatasetGraphTDB getBaseDatasetGraphTDB(org.apache.jena.sparql.core.DatasetGraph dsg)
      Return a DatasetGraphTDB that uses the raw storage for tables. Use with great care.
    • getTransactionManager

      public static TransactionManager getTransactionManager(org.apache.jena.sparql.core.DatasetGraph dsg)
      Return the TransactionManager of this DatasetGraphTransaction
    • getStoreConnection

      public static StoreConnection getStoreConnection(org.apache.jena.sparql.core.DatasetGraph dsg)
    • expel

      public static void expel(org.apache.jena.sparql.core.DatasetGraph dsg)
      Stop managing a TDB1 DatasetGraph. This function does nothing if it is not a TDB1 database. Use with great care. Don't call while transactions are active.
    • expel

      public static void expel(Location location)
      Stop managing a TDB1 database at Location. Use with great care. Assumes no transactions are active.
    • expel

      public static void expel(Location location, boolean force)
      Stop managing a TDB1 database at Location. Use with very great care. Using "force" will orphan any active transactions.
    • releaseDSG

      public static void releaseDSG(Location location)
      Stop managing the DatasetGraphTransaction for the location. This operation does not release the StoreConnection. Use with great care. Don't call while transactions are active.
    • isNewDatabaseArea

      public static boolean isNewDatabaseArea(Location location)
      Look at a directory and see if it is a new area
    • reset

      public static void reset()