public interface Transaction extends org.apache.tinkerpop.gremlin.structure.Graph, SchemaManager
JanusGraph. Since JanusGraph is a transactional graph
database, all interactions with the graph are mitigated by a Transaction.
All vertex and edge retrievals are channeled by a graph transaction which bundles all such retrievals, creations and deletions into one transaction. A graph transaction is analogous to a database transaction. The isolation level and ACID support are configured through the storage backend, meaning whatever level of isolation is supported by the storage backend is mirrored by a graph transaction.
A graph transaction supports:
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 |
|---|---|
JanusGraphVertex |
addVertex(Object... objects) |
JanusGraphVertex |
addVertex(String vertexLabel)
Creates a new vertex in the graph with the vertex label named by the argument.
|
void |
close() |
JanusGraphIndexQuery |
indexQuery(String indexName,
String query)
Returns a
JanusGraphIndexQuery to query for vertices or edges against the specified indexing backend using
the given query string. |
MixedIndexCountQuery |
mixedIndexCountQuery() |
JanusGraphMultiVertexQuery<? extends JanusGraphMultiVertexQuery> |
multiQuery(Collection<JanusGraphVertex> vertices) |
JanusGraphMultiVertexQuery<? extends JanusGraphMultiVertexQuery> |
multiQuery(JanusGraphVertex... vertices) |
JanusGraphQuery<? extends JanusGraphQuery> |
query() |
compute, compute, configuration, edges, features, io, traversal, traversal, tx, tx, variables, verticesaddConnection, addProperties, addProperties, makeEdgeLabel, makePropertyKey, makeVertexLabelcontainsEdgeLabel, containsPropertyKey, containsRelationType, containsVertexLabel, getEdgeLabel, getOrCreateEdgeLabel, getOrCreatePropertyKey, getOrCreatePropertyKey, getOrCreatePropertyKey, getOrCreateVertexLabel, getPropertyKey, getRelationType, getVertexLabelJanusGraphVertex addVertex(String vertexLabel)
addVertex in interface org.apache.tinkerpop.gremlin.structure.GraphvertexLabel - the name of the vertex label to useJanusGraphVertex addVertex(Object... objects)
addVertex in interface org.apache.tinkerpop.gremlin.structure.GraphJanusGraphQuery<? extends JanusGraphQuery> query()
query()MixedIndexCountQuery mixedIndexCountQuery()
StandardJanusGraphTx.mixedIndexCountQuery()JanusGraphIndexQuery indexQuery(String indexName, String query)
JanusGraphIndexQuery to query for vertices or edges against the specified indexing backend using
the given query string. The query string is analyzed and answered by the underlying storage backend.
Note, that using indexQuery may ignore modifications in the current transaction.
indexName - Name of the index to query as configuredquery - Query stringJanusGraphMultiVertexQuery<? extends JanusGraphMultiVertexQuery> multiQuery(JanusGraphVertex... vertices)
multiQuery(org.janusgraph.core.JanusGraphVertex...)JanusGraphMultiVertexQuery<? extends JanusGraphMultiVertexQuery> multiQuery(Collection<JanusGraphVertex> vertices)
multiQuery(java.util.Collection)void close()
close in interface AutoCloseableclose in interface org.apache.tinkerpop.gremlin.structure.GraphCopyright © 2012–2023. All rights reserved.