public abstract class TitanBlueprintsTransaction extends Object implements TitanTransaction
TitanTransaction.
Provides utility methods that wrap Titan calls with Blueprints terminology.| Constructor and Description |
|---|
TitanBlueprintsTransaction() |
| Modifier and Type | Method and Description |
|---|---|
TitanEdge |
addEdge(Object id,
com.tinkerpop.blueprints.Vertex outVertex,
com.tinkerpop.blueprints.Vertex inVertex,
String label) |
TitanEdge |
addEdge(TitanVertex outVertex,
TitanVertex inVertex,
String label)
Creates a new edge connecting the specified vertices.
|
TitanProperty |
addProperty(TitanVertex vertex,
String key,
Object attribute)
Creates a new property for the given vertex and key with the specified value.
|
TitanVertex |
addVertex(Object id)
Creates a new vertex in the graph with the given vertex id.
|
<T extends com.tinkerpop.blueprints.Element> |
createKeyIndex(String key,
Class<T> elementClass,
com.tinkerpop.blueprints.Parameter... indexParameters) |
<T extends com.tinkerpop.blueprints.Element> |
dropKeyIndex(String key,
Class<T> elementClass) |
TitanEdge |
getEdge(Object id) |
Iterable<com.tinkerpop.blueprints.Edge> |
getEdges(String key,
Object value) |
com.tinkerpop.blueprints.Features |
getFeatures() |
<T extends com.tinkerpop.blueprints.Element> |
getIndexedKeys(Class<T> elementClass) |
TitanVertex |
getVertex(Object id) |
Iterable<com.tinkerpop.blueprints.Vertex> |
getVertices(String key,
Object attribute) |
void |
removeEdge(com.tinkerpop.blueprints.Edge edge) |
void |
removeVertex(com.tinkerpop.blueprints.Vertex vertex) |
void |
shutdown() |
void |
stopTransaction(com.tinkerpop.blueprints.TransactionalGraph.Conclusion conclusion) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddEdge, addProperty, addVertex, addVertex, addVertex, addVertex, commit, containsRelationType, containsVertex, containsVertexLabel, getEdgeLabel, getEdges, getPropertyKey, getRelationType, getVertex, getVertexLabel, getVertices, hasModifications, indexQuery, isClosed, isOpen, makeEdgeLabel, makePropertyKey, makeVertexLabel, multiQuery, multiQuery, query, rollbackpublic void stopTransaction(com.tinkerpop.blueprints.TransactionalGraph.Conclusion conclusion)
stopTransaction in interface com.tinkerpop.blueprints.TransactionalGraphpublic com.tinkerpop.blueprints.Features getFeatures()
getFeatures in interface com.tinkerpop.blueprints.Graphpublic TitanVertex addVertex(Object id)
GraphDatabaseConfiguration.ALLOW_SETTING_VERTEX_ID.
Use TitanId.toVertexId(long) to construct a valid Titan vertex id from a user id.addVertex in interface com.tinkerpop.blueprints.Graphid - vertex id of the vertex to be createdpublic TitanVertex getVertex(Object id)
getVertex in interface com.tinkerpop.blueprints.Graphpublic Iterable<com.tinkerpop.blueprints.Vertex> getVertices(String key, Object attribute)
getVertices in interface com.tinkerpop.blueprints.Graphpublic void removeVertex(com.tinkerpop.blueprints.Vertex vertex)
removeVertex in interface com.tinkerpop.blueprints.Graphpublic TitanEdge addEdge(Object id, com.tinkerpop.blueprints.Vertex outVertex, com.tinkerpop.blueprints.Vertex inVertex, String label)
addEdge in interface com.tinkerpop.blueprints.Graphpublic TitanEdge addEdge(TitanVertex outVertex, TitanVertex inVertex, String label)
TitanTransactionTitanEdge with given label connecting the vertices in the order
specified.
IllegalArgumentException.addEdge in interface TitanTransactionoutVertex - outgoing vertex of the edgeinVertex - incoming vertex of the edgelabel - label of the edge to be createdpublic TitanEdge getEdge(Object id)
getEdge in interface com.tinkerpop.blueprints.Graphpublic void removeEdge(com.tinkerpop.blueprints.Edge edge)
removeEdge in interface com.tinkerpop.blueprints.Graphpublic Iterable<com.tinkerpop.blueprints.Edge> getEdges(String key, Object value)
getEdges in interface com.tinkerpop.blueprints.Graphpublic TitanProperty addProperty(TitanVertex vertex, String key, Object attribute)
TitanTransactionTitanProperty with specified property key and the given object being the value.
IllegalArgumentException.addProperty in interface TitanTransactionvertex - vertex for which to create the propertykey - key of the property to be createdattribute - value of the property to be createdpublic void shutdown()
shutdown in interface com.tinkerpop.blueprints.Graphshutdown in interface com.tinkerpop.blueprints.TransactionalGraphpublic <T extends com.tinkerpop.blueprints.Element> void dropKeyIndex(String key, Class<T> elementClass)
dropKeyIndex in interface com.tinkerpop.blueprints.KeyIndexableGraphpublic <T extends com.tinkerpop.blueprints.Element> void createKeyIndex(String key, Class<T> elementClass, com.tinkerpop.blueprints.Parameter... indexParameters)
createKeyIndex in interface com.tinkerpop.blueprints.KeyIndexableGraphCopyright © 2012–2014. All rights reserved.