java.lang.Object
org.apache.jena.tdb1.sys.TDBInternal
A collection of helpers to abstract away from internal details of TDB.
Use with care.
These are not general purpose operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidexpel(org.apache.jena.sparql.core.DatasetGraph dsg) Stop managing a TDB1DatasetGraph.static voidStop managing a TDB1 database atLocation.static voidStop managing a TDB1 database atLocation.static DatasetGraphTDBgetBaseDatasetGraphTDB(org.apache.jena.sparql.core.DatasetGraph dsg) Return a DatasetGraphTDB that uses the raw storage for tables.static DatasetGraphTDBgetDatasetGraphTDB(org.apache.jena.query.Dataset ds) Return the DatasetGraphTDB for a Dataset, or null.static DatasetGraphTDBgetDatasetGraphTDB(org.apache.jena.sparql.core.DatasetGraph dsg) Return the DatasetGraphTDB for a DatasetGraph, or null.static org.apache.jena.graph.NodeReturn the node for a NodeId (if any).static org.apache.jena.graph.NodeReturn the node for a NodeId (if any).static org.apache.jena.graph.NodegetNode(DatasetGraphTDB dsg, NodeId nodeId) Return the node for a NodeId (if any).static NodeIdgetNodeId(org.apache.jena.query.Dataset ds, org.apache.jena.graph.Node node) Return the NodeId for a node.static NodeIdgetNodeId(org.apache.jena.sparql.core.DatasetGraph ds, org.apache.jena.graph.Node node) Return the NodeId for a node.static NodeIdgetNodeId(DatasetGraphTDB dsg, org.apache.jena.graph.Node node) Return the NodeId for a node.static StoreConnectiongetStoreConnection(org.apache.jena.sparql.core.DatasetGraph dsg) static TransactionManagergetTransactionManager(org.apache.jena.sparql.core.DatasetGraph dsg) Return the TransactionManager of this DatasetGraphTransactionstatic booleanisNewDatabaseArea(Location location) Look at a directory and see if it is a new areastatic booleanisTDB1(org.apache.jena.sparql.core.DatasetGraph dsg) Return true if this is a TDB1 backed DatasetGraph.static voidreleaseDSG(Location location) Stop managing theDatasetGraphTransactionfor the location.static voidreset()
-
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
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
Return the NodeId for a node. Returns NodeId.NodeDoesNotExist when the node is not found. Returns null when not a TDB-backed dataset. -
getNode
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
Return the node for a NodeId (if any). Returns null if the NodeId does not exist in the dataset. -
getDatasetGraphTDB
Return the DatasetGraphTDB for a Dataset, or null. -
getDatasetGraphTDB
Return the DatasetGraphTDB for a DatasetGraph, or null. May not be up-to-date. -
getBaseDatasetGraphTDB
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
-
expel
public static void expel(org.apache.jena.sparql.core.DatasetGraph dsg) Stop managing a TDB1DatasetGraph. This function does nothing if it is not a TDB1 database. Use with great care. Don't call while transactions are active. -
expel
Stop managing a TDB1 database atLocation. Use with great care. Assumes no transactions are active. -
expel
Stop managing a TDB1 database atLocation. Use with very great care. Using "force" will orphan any active transactions. -
releaseDSG
Stop managing theDatasetGraphTransactionfor the location. This operation does not release theStoreConnection. Use with great care. Don't call while transactions are active. -
isNewDatabaseArea
Look at a directory and see if it is a new area -
reset
public static void reset()
-