public abstract class TitanBlueprintsGraph extends Object implements TitanGraph
TitanGraph.
Handles thread-bound transactions.| Constructor and Description |
|---|
TitanBlueprintsGraph() |
| Modifier and Type | Method and Description |
|---|---|
TitanEdge |
addEdge(Object id,
com.tinkerpop.blueprints.Vertex outVertex,
com.tinkerpop.blueprints.Vertex inVertex,
String label) |
TitanVertex |
addVertex(Object id) |
TitanVertex |
addVertex(VertexLabel vertexLabel)
Creates a new vertex in the graph with the given vertex label.
|
void |
commit() |
boolean |
containsVertexLabel(String name)
Whether a vertex label with the given name exists in the graph.
|
<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) |
TitanTransaction |
getCurrentThreadTx() |
TitanEdge |
getEdge(Object id) |
Iterable<com.tinkerpop.blueprints.Edge> |
getEdges() |
Iterable<com.tinkerpop.blueprints.Edge> |
getEdges(String key,
Object value) |
<T extends com.tinkerpop.blueprints.Element> |
getIndexedKeys(Class<T> elementClass) |
RelationType |
getRelationType(String name)
Returns the
RelationType uniquely identified by the given name, or NULL if such does not exist. |
TitanVertex |
getVertex(Object id) |
VertexLabel |
getVertexLabel(String name)
Returns the vertex label with the given name.
|
Iterable<com.tinkerpop.blueprints.Vertex> |
getVertices() |
Iterable<com.tinkerpop.blueprints.Vertex> |
getVertices(String key,
Object value) |
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. |
EdgeLabelMaker |
makeEdgeLabel(String name)
Returns a
EdgeLabelMaker instance to define a new EdgeLabel with the given name. |
PropertyKeyMaker |
makePropertyKey(String name)
Returns a
PropertyKeyMaker instance to define a new PropertyKey with the given name. |
VertexLabelMaker |
makeVertexLabel(String name)
Returns a
VertexLabelMaker to define a new vertex label with the given name. |
TitanMultiVertexQuery |
multiQuery(Collection<TitanVertex> vertices)
Returns a
TitanMultiVertexQuery to query for vertices or edges on multiple vertices simultaneously. |
TitanMultiVertexQuery |
multiQuery(TitanVertex... vertices)
Returns a
TitanMultiVertexQuery to query for vertices or edges on multiple vertices simultaneously. |
abstract TitanTransaction |
newThreadBoundTransaction() |
TitanGraphQuery<? extends TitanGraphQuery> |
query()
Returns a
TitanGraphQuery to query for vertices or edges in the graph by their properties. |
void |
removeEdge(com.tinkerpop.blueprints.Edge edge) |
void |
removeVertex(com.tinkerpop.blueprints.Vertex vertex) |
void |
rollback() |
void |
shutdown()
Closes the graph database.
|
void |
stopTransaction(com.tinkerpop.blueprints.TransactionalGraph.Conclusion conclusion)
Deprecated.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbuildTransaction, getManagementSystem, isOpen, newTransactionpublic void commit()
commit in interface com.tinkerpop.blueprints.TransactionalGraphpublic void rollback()
rollback in interface com.tinkerpop.blueprints.TransactionalGraph@Deprecated public void stopTransaction(com.tinkerpop.blueprints.TransactionalGraph.Conclusion conclusion)
stopTransaction in interface com.tinkerpop.blueprints.TransactionalGraphpublic abstract TitanTransaction newThreadBoundTransaction()
public TitanTransaction getCurrentThreadTx()
public void shutdown()
TitanGraphshutdown in interface TitanGraphshutdown 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.KeyIndexableGraphpublic <T extends com.tinkerpop.blueprints.Element> Set<String> getIndexedKeys(Class<T> elementClass)
getIndexedKeys in interface com.tinkerpop.blueprints.KeyIndexableGraphpublic TitanVertex addVertex(Object id)
addVertex in interface com.tinkerpop.blueprints.Graphpublic TitanVertex getVertex(Object id)
getVertex in interface com.tinkerpop.blueprints.Graphpublic void removeVertex(com.tinkerpop.blueprints.Vertex vertex)
removeVertex in interface com.tinkerpop.blueprints.Graphpublic Iterable<com.tinkerpop.blueprints.Vertex> getVertices()
getVertices in interface com.tinkerpop.blueprints.Graphpublic PropertyKeyMaker makePropertyKey(String name)
TitanGraphPropertyKeyMaker instance to define a new PropertyKey with the given name.
By defining types explicitly (rather than implicitly through usage) one can control various
aspects of the key and associated consistency constraints.
makePropertyKey in interface TitanGraphPropertyKeyMaker instancePropertyKeyMaker,
PropertyKeypublic EdgeLabelMaker makeEdgeLabel(String name)
TitanGraphEdgeLabelMaker instance to define a new EdgeLabel with the given name.
By defining types explicitly (rather than implicitly through usage) one can control various
aspects of the label and associated consistency constraints.
makeEdgeLabel in interface TitanGraphEdgeLabelMaker instanceEdgeLabelMaker,
EdgeLabelpublic boolean containsVertexLabel(String name)
TitanGraphcontainsVertexLabel in interface TitanGraphpublic VertexLabel getVertexLabel(String name)
TitanGraphDefaultSchemaMaker.
Attempting to automatically create a vertex label might cause an exception depending on the configuration.getVertexLabel in interface TitanGraphpublic VertexLabelMaker makeVertexLabel(String name)
TitanGraphVertexLabelMaker to define a new vertex label with the given name. Note, that the name must
be unique.makeVertexLabel in interface TitanGraphpublic TitanVertex addVertex(VertexLabel vertexLabel)
TitanGraphaddVertex in interface TitanGraphpublic TitanGraphQuery<? extends TitanGraphQuery> query()
TitanGraphTitanGraphQuery to query for vertices or edges in the graph by their properties.query in interface TitanGraphquery in interface com.tinkerpop.blueprints.Graphpublic TitanIndexQuery indexQuery(String indexName, String query)
TitanGraphTitanIndexQuery 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, i.e. the query is not transactionally
bound.indexQuery in interface TitanGraphindexName - Name of the indexing backend to query as configuredquery - Query stringpublic TitanMultiVertexQuery multiQuery(TitanVertex... vertices)
TitanGraphTitanMultiVertexQuery to query for vertices or edges on multiple vertices simultaneously.
This is similar to TitanVertex.query() but for multiple vertices at once. Hence, this query method is often
significantly faster when executing identical TitanVertexQuery on multiple vertices.multiQuery in interface TitanGraphpublic TitanMultiVertexQuery multiQuery(Collection<TitanVertex> vertices)
TitanGraphTitanMultiVertexQuery to query for vertices or edges on multiple vertices simultaneously.
This is similar to TitanVertex.query() but for multiple vertices at once. Hence, this query method is often
significantly faster when executing identical TitanVertexQuery on multiple vertices.multiQuery in interface TitanGraphpublic RelationType getRelationType(String name)
TitanGraphRelationType uniquely identified by the given name, or NULL if such does not exist.getRelationType in interface TitanGraphpublic Iterable<com.tinkerpop.blueprints.Vertex> getVertices(String key, Object value)
getVertices 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 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()
getEdges in interface com.tinkerpop.blueprints.GraphCopyright © 2012–2014. All rights reserved.