public interface TitanGraph extends TitanGraphTransaction
TitanFactory to open and configure TitanGraph instances.TitanFactory,
TitanTransactionorg.apache.tinkerpop.gremlin.structure.Graph.Exceptions, org.apache.tinkerpop.gremlin.structure.Graph.Features, org.apache.tinkerpop.gremlin.structure.Graph.Hidden, org.apache.tinkerpop.gremlin.structure.Graph.OptIn, org.apache.tinkerpop.gremlin.structure.Graph.OptIns, org.apache.tinkerpop.gremlin.structure.Graph.OptOut, org.apache.tinkerpop.gremlin.structure.Graph.OptOuts, org.apache.tinkerpop.gremlin.structure.Graph.Variables| Modifier and Type | Method and Description |
|---|---|
TransactionBuilder |
buildTransaction()
Returns a
TransactionBuilder to construct a new thread-independent TitanTransaction. |
void |
close()
Closes the graph database.
|
boolean |
isClosed()
Checks whether the graph is closed.
|
boolean |
isOpen()
Checks whether the graph is open.
|
TitanTransaction |
newTransaction()
Opens a new thread-independent
TitanTransaction. |
TitanManagement |
openManagement()
Returns the management system for this graph instance.
|
addVertex, addVertex, indexQuery, multiQuery, multiQuery, querycompute, compute, configuration, edges, features, io, traversal, traversal, tx, variables, verticesmakeEdgeLabel, makePropertyKey, makeVertexLabelcontainsEdgeLabel, containsPropertyKey, containsRelationType, containsVertexLabel, getEdgeLabel, getOrCreateEdgeLabel, getOrCreatePropertyKey, getOrCreateVertexLabel, getPropertyKey, getRelationType, getVertexLabelTitanTransaction newTransaction()
TitanTransaction.
The transaction is open when it is returned but MUST be explicitly closed by calling TitanTransaction.commit()
or TitanTransaction.rollback() when it is no longer needed.
Note, that this returns a thread independent transaction object. It is not necessary to call this method
to use Blueprint's standard transaction framework which will automatically start a transaction with the first
operation on the graph.TransactionBuilder buildTransaction()
TransactionBuilder to construct a new thread-independent TitanTransaction.TransactionBuilder,
newTransaction()TitanManagement openManagement()
boolean isOpen()
close()boolean isClosed()
void close()
throws TitanException
close in interface AutoCloseableclose in interface org.apache.tinkerpop.gremlin.structure.Graphclose in interface TitanGraphTransactionTitanException - if closing the graph database caused errors in the storage backendCopyright © 2012–2015. All rights reserved.