public abstract class JanusGraphBlueprintsGraph extends Object implements JanusGraph
JanusGraph.
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 |
|---|
JanusGraphBlueprintsGraph() |
| Modifier and Type | Method and Description |
|---|---|
JanusGraphVertex |
addVertex(Object... keyValues) |
JanusGraphVertex |
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 JanusGraph schema.
|
boolean |
containsPropertyKey(String name)
Checks whether a property key of the given name has been defined in the JanusGraph 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) |
JanusGraphTransaction |
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.
|
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. |
<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. |
JanusGraphMultiVertexQuery |
multiQuery(Collection<JanusGraphVertex> vertices)
Deprecated.
|
JanusGraphMultiVertexQuery |
multiQuery(JanusGraphVertex... vertices)
Deprecated.
|
abstract JanusGraphTransaction |
newThreadBoundTransaction() |
JanusGraphQuery<? extends JanusGraphQuery> |
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, main, newTransaction, openManagement, versionpublic abstract JanusGraphTransaction newThreadBoundTransaction()
public JanusGraphTransaction getCurrentThreadTx()
public void close()
JanusGraphclose in interface AutoCloseableclose in interface org.apache.tinkerpop.gremlin.structure.Graphclose in interface JanusGraphclose in interface Transactionpublic 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 JanusGraphVertex addVertex(Object... keyValues)
addVertex in interface org.apache.tinkerpop.gremlin.structure.GraphaddVertex in interface Transactionpublic 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 JanusGraphVertex addVertex(String vertexLabel)
TransactionaddVertex in interface org.apache.tinkerpop.gremlin.structure.GraphaddVertex in interface TransactionvertexLabel - the name of the vertex label to usepublic JanusGraphQuery<? extends JanusGraphQuery> query()
query in interface TransactionTransaction.query()public JanusGraphIndexQuery indexQuery(String indexName, String query)
TransactionJanusGraphIndexQuery 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 TransactionindexName - Name of the indexing backend to query as configuredquery - Query string@Deprecated public JanusGraphMultiVertexQuery multiQuery(JanusGraphVertex... vertices)
multiQuery in interface TransactionTransaction.multiQuery(org.janusgraph.core.JanusGraphVertex...)@Deprecated public JanusGraphMultiVertexQuery multiQuery(Collection<JanusGraphVertex> vertices)
multiQuery in interface TransactionTransaction.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–2017. All rights reserved.