public interface JanusGraph extends Transaction
JanusGraphFactory
to open and configure JanusGraph instances.JanusGraphFactory
,
JanusGraphTransaction
org.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 JanusGraphTransaction . |
void |
close()
Closes the graph database.
|
boolean |
isClosed()
Checks whether the graph is closed.
|
boolean |
isOpen()
Checks whether the graph is open.
|
static void |
main(String[] args) |
JanusGraphTransaction |
newTransaction()
Opens a new thread-independent
JanusGraphTransaction . |
JanusGraphManagement |
openManagement()
Returns the management system for this graph instance.
|
static String |
version()
The version of this JanusGraph graph database
|
addVertex, addVertex, indexQuery, multiQuery, multiQuery, query
compute, compute, configuration, edges, features, io, traversal, traversal, tx, variables, vertices
addConnection, addProperties, addProperties, makeEdgeLabel, makePropertyKey, makeVertexLabel
containsEdgeLabel, containsPropertyKey, containsRelationType, containsVertexLabel, getEdgeLabel, getOrCreateEdgeLabel, getOrCreatePropertyKey, getOrCreatePropertyKey, getOrCreateVertexLabel, getPropertyKey, getRelationType, getVertexLabel
JanusGraphTransaction newTransaction()
JanusGraphTransaction
.
The transaction is open when it is returned but MUST be explicitly closed by calling JanusGraphTransaction.commit()
or JanusGraphTransaction.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 JanusGraphTransaction
.TransactionBuilder
,
newTransaction()
JanusGraphManagement openManagement()
The management system operates in its own transactional context which must be explicitly closed.
boolean isOpen()
close()
boolean isClosed()
void close() throws JanusGraphException
Closing the graph database causes a disconnect and possible closing of the underlying storage backend and a release of all occupied resources by this graph database. Closing a graph database requires that all open thread-independent transactions have been closed - otherwise they will be left abandoned.
close
in interface AutoCloseable
close
in interface org.apache.tinkerpop.gremlin.structure.Graph
close
in interface Transaction
JanusGraphException
- if closing the graph database caused errors in the storage backendstatic String version()
static void main(String[] args)
Copyright © 2012–2018. All rights reserved.