public abstract class TitanBlueprintsGraph extends Object implements TitanGraph
TitanGraph.
Handles thread-bound transactions.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| Constructor and Description |
|---|
TitanBlueprintsGraph() |
| Modifier and Type | Method and Description |
|---|---|
TitanVertex |
addVertex(Object... keyValues) |
TitanVertex |
addVertex(String vertexLabel)
Creates a new vertex in the graph with the vertex label named by the argument.
|
void |
close()
Closes the graph database.
|
FulgoraGraphComputer |
compute() |
<C extends org.apache.tinkerpop.gremlin.process.computer.GraphComputer> |
compute(Class<C> graphComputerClass) |
org.apache.commons.configuration.Configuration |
configuration() |
boolean |
containsEdgeLabel(String name)
Checks whether an edge label of the given name has been defined in the Titan schema.
|
boolean |
containsPropertyKey(String name)
Checks whether a property key of the given name has been defined in the Titan schema.
|
boolean |
containsRelationType(String name)
Checks whether a type with the specified name exists.
|
boolean |
containsVertexLabel(String name)
Whether a vertex label with the given name exists in the graph.
|
Iterator<org.apache.tinkerpop.gremlin.structure.Edge> |
edges(Object... edgeIds) |
TitanTransaction |
getCurrentThreadTx() |
EdgeLabel |
getEdgeLabel(String name)
Returns the edge label with the given name.
|
EdgeLabel |
getOrCreateEdgeLabel(String name)
Returns the edge label with the given name.
|
PropertyKey |
getOrCreatePropertyKey(String name)
Returns the property key with the given name.
|
VertexLabel |
getOrCreateVertexLabel(String name)
Returns the vertex label with the given name.
|
PropertyKey |
getPropertyKey(String name)
Returns the property key with the given name.
|
RelationType |
getRelationType(String name)
Returns the type with the given name.
|
VertexLabel |
getVertexLabel(String name)
Returns the vertex label with the given name.
|
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. |
<I extends org.apache.tinkerpop.gremlin.structure.io.Io> |
io(org.apache.tinkerpop.gremlin.structure.io.Io.Builder<I> builder) |
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)
Deprecated.
|
TitanMultiVertexQuery |
multiQuery(TitanVertex... vertices)
Deprecated.
|
abstract TitanTransaction |
newThreadBoundTransaction() |
TitanGraphQuery<? extends TitanGraphQuery> |
query() |
String |
toString() |
org.apache.tinkerpop.gremlin.structure.Transaction |
tx() |
org.apache.tinkerpop.gremlin.structure.Graph.Variables |
variables() |
Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> |
vertices(Object... vertexIds) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbuildTransaction, isClosed, isOpen, newTransaction, openManagementpublic abstract TitanTransaction newThreadBoundTransaction()
public TitanTransaction getCurrentThreadTx()
public void close()
TitanGraphclose in interface TitanGraphclose in interface TitanGraphTransactionclose in interface AutoCloseableclose in interface org.apache.tinkerpop.gremlin.structure.Graphpublic org.apache.tinkerpop.gremlin.structure.Transaction tx()
tx in interface org.apache.tinkerpop.gremlin.structure.Graphpublic org.apache.tinkerpop.gremlin.structure.Graph.Variables variables()
variables in interface org.apache.tinkerpop.gremlin.structure.Graphpublic org.apache.commons.configuration.Configuration configuration()
configuration in interface org.apache.tinkerpop.gremlin.structure.Graphpublic <I extends org.apache.tinkerpop.gremlin.structure.io.Io> I io(org.apache.tinkerpop.gremlin.structure.io.Io.Builder<I> builder)
io in interface org.apache.tinkerpop.gremlin.structure.Graphpublic TitanVertex addVertex(Object... keyValues)
addVertex in interface TitanGraphTransactionaddVertex in interface org.apache.tinkerpop.gremlin.structure.Graphpublic Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> vertices(Object... vertexIds)
vertices in interface org.apache.tinkerpop.gremlin.structure.Graphpublic Iterator<org.apache.tinkerpop.gremlin.structure.Edge> edges(Object... edgeIds)
edges in interface org.apache.tinkerpop.gremlin.structure.Graphpublic <C extends org.apache.tinkerpop.gremlin.process.computer.GraphComputer> C compute(Class<C> graphComputerClass) throws IllegalArgumentException
compute in interface org.apache.tinkerpop.gremlin.structure.GraphIllegalArgumentExceptionpublic FulgoraGraphComputer compute() throws IllegalArgumentException
compute in interface org.apache.tinkerpop.gremlin.structure.GraphIllegalArgumentExceptionpublic TitanVertex addVertex(String vertexLabel)
TitanGraphTransactionaddVertex in interface TitanGraphTransactionaddVertex in interface org.apache.tinkerpop.gremlin.structure.GraphvertexLabel - the name of the vertex label to usepublic TitanGraphQuery<? extends TitanGraphQuery> query()
query in interface TitanGraphTransactionTitanGraphTransaction.query()public TitanIndexQuery indexQuery(String indexName, String query)
TitanGraphTransactionTitanIndexQuery 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.indexQuery in interface TitanGraphTransactionindexName - Name of the indexing backend to query as configuredquery - Query string@Deprecated public TitanMultiVertexQuery multiQuery(TitanVertex... vertices)
multiQuery in interface TitanGraphTransactionTitanGraphTransaction.multiQuery(com.thinkaurelius.titan.core.TitanVertex...)@Deprecated public TitanMultiVertexQuery multiQuery(Collection<TitanVertex> vertices)
multiQuery in interface TitanGraphTransactionTitanGraphTransaction.multiQuery(java.util.Collection)public PropertyKeyMaker makePropertyKey(String name)
SchemaManagerPropertyKeyMaker 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.
The key constructed with this maker will be created in the context of this transaction.makePropertyKey in interface SchemaManagerPropertyKeyMaker linked to this transaction.PropertyKeyMaker,
PropertyKeypublic EdgeLabelMaker makeEdgeLabel(String name)
SchemaManagerEdgeLabelMaker 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.
The label constructed with this maker will be created in the context of this transaction.makeEdgeLabel in interface SchemaManagerEdgeLabelMaker linked to this transaction.EdgeLabelMaker,
EdgeLabelpublic VertexLabelMaker makeVertexLabel(String name)
SchemaManagerVertexLabelMaker to define a new vertex label with the given name. Note, that the name must
be unique.makeVertexLabel in interface SchemaManagerpublic boolean containsPropertyKey(String name)
SchemaInspectorcontainsPropertyKey in interface SchemaInspectorname - name of the property keypublic PropertyKey getOrCreatePropertyKey(String name)
SchemaInspectorgetOrCreatePropertyKey in interface SchemaInspectorname - name of the property key to returnPropertyKeypublic PropertyKey getPropertyKey(String name)
SchemaInspectorgetPropertyKey in interface SchemaInspectorpublic boolean containsEdgeLabel(String name)
SchemaInspectorcontainsEdgeLabel in interface SchemaInspectorname - name of the edge labelpublic EdgeLabel getOrCreateEdgeLabel(String name)
SchemaInspectorgetOrCreateEdgeLabel in interface SchemaInspectorname - name of the edge label to returnEdgeLabelpublic EdgeLabel getEdgeLabel(String name)
SchemaInspectorgetEdgeLabel in interface SchemaInspectorpublic boolean containsRelationType(String name)
SchemaInspectorcontainsRelationType in interface SchemaInspectorname - name of the typepublic RelationType getRelationType(String name)
SchemaInspectorgetRelationType in interface SchemaInspectorname - name of the type to returnRelationTypepublic boolean containsVertexLabel(String name)
SchemaInspectorcontainsVertexLabel in interface SchemaInspectorpublic VertexLabel getVertexLabel(String name)
SchemaInspectorgetVertexLabel in interface SchemaInspectorpublic VertexLabel getOrCreateVertexLabel(String name)
SchemaInspectorDefaultSchemaMaker.
Attempting to automatically create a vertex label might cause an exception depending on the configuration.getOrCreateVertexLabel in interface SchemaInspectorCopyright © 2012–2015. All rights reserved.