public interface TitanGraphTransaction extends org.apache.tinkerpop.gremlin.structure.Graph, SchemaManager
TitanGraph. Since TitanGraph is a transactional graph
database, all interactions with the graph are mitigated by a TitanGraphTransaction.
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 |
|---|---|
TitanVertex |
addVertex(Object... objects) |
TitanVertex |
addVertex(String vertexLabel)
Creates a new vertex in the graph with the vertex label named by the argument.
|
void |
close() |
TitanIndexQuery |
indexQuery(String indexName,
String query)
Returns a
TitanIndexQuery to query for vertices or edges against the specified indexing backend using
the given query string. |
TitanMultiVertexQuery<? extends TitanMultiVertexQuery> |
multiQuery(Collection<TitanVertex> vertices)
Deprecated.
|
TitanMultiVertexQuery<? extends TitanMultiVertexQuery> |
multiQuery(TitanVertex... vertices)
Deprecated.
|
TitanGraphQuery<? extends TitanGraphQuery> |
query() |
compute, compute, configuration, edges, features, io, traversal, traversal, tx, variables, verticesmakeEdgeLabel, makePropertyKey, makeVertexLabelcontainsEdgeLabel, containsPropertyKey, containsRelationType, containsVertexLabel, getEdgeLabel, getOrCreateEdgeLabel, getOrCreatePropertyKey, getOrCreateVertexLabel, getPropertyKey, getRelationType, getVertexLabelTitanVertex addVertex(String vertexLabel)
addVertex in interface org.apache.tinkerpop.gremlin.structure.GraphvertexLabel - the name of the vertex label to useTitanVertex addVertex(Object... objects)
addVertex in interface org.apache.tinkerpop.gremlin.structure.GraphTitanGraphQuery<? extends TitanGraphQuery> query()
query()TitanIndexQuery indexQuery(String indexName, String query)
TitanIndexQuery 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 will may ignore modifications in the current transaction.indexName - Name of the indexing backend to query as configuredquery - Query string@Deprecated TitanMultiVertexQuery<? extends TitanMultiVertexQuery> multiQuery(TitanVertex... vertices)
multiQuery(com.thinkaurelius.titan.core.TitanVertex...)@Deprecated TitanMultiVertexQuery<? extends TitanMultiVertexQuery> multiQuery(Collection<TitanVertex> vertices)
multiQuery(java.util.Collection)void close()
close in interface AutoCloseableclose in interface org.apache.tinkerpop.gremlin.structure.GraphCopyright © 2012–2015. All rights reserved.