Class ArangoDBGraph
java.lang.Object
com.arangodb.tinkerpop.gremlin.structure.ArangoDBGraph
- All Implemented Interfaces:
AutoCloseable
,org.apache.tinkerpop.gremlin.structure.Graph
,org.apache.tinkerpop.gremlin.structure.util.Host
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.Graph
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
-
Field Summary
FieldsFields inherited from interface org.apache.tinkerpop.gremlin.structure.Graph
GRAPH
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ArangoDBGraph
(org.apache.commons.configuration2.Configuration cfg) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.tinkerpop.gremlin.structure.Vertex
<E> org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal
<?, E> Execute the AQL query and get the result set as aGraphTraversal
.<E> org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal
<?, E> Execute the AQL query and get the result set as aGraphTraversal
.<E> org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal
<?, E> Execute the AQL query with provided parameters and get the result set as aGraphTraversal
.<E> org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal
<?, E> Execute the AQL query with provided parameters and get the result set as aGraphTraversal
.void
close()
org.apache.tinkerpop.gremlin.process.computer.GraphComputer
compute()
<C extends org.apache.tinkerpop.gremlin.process.computer.GraphComputer>
Corg.apache.commons.configuration2.Configuration
createEdge
(EdgeData data) createEdge
(String label, org.apache.tinkerpop.gremlin.structure.Vertex outVertex, org.apache.tinkerpop.gremlin.structure.Vertex inVertex, Object... keyValues) createVertex
(VertexData data) createVertex
(Object... keyValues) Iterator
<org.apache.tinkerpop.gremlin.structure.Edge> elementId
(org.apache.tinkerpop.gremlin.structure.Element element) Create theElementId
for a persistent element.org.apache.tinkerpop.gremlin.structure.Graph.Features
features()
com.arangodb.ArangoDatabase
Get the underlying ArangoDB database instance.com.arangodb.ArangoDB
Get the underlying ArangoDB driver instance.com.arangodb.ArangoGraph
Get the underlying ArangoGraph instance.name()
static ArangoDBGraph
open
(org.apache.commons.configuration2.Configuration configuration) Open a newArangoDBGraph
instance.toString()
org.apache.tinkerpop.gremlin.structure.Transaction
tx()
type()
org.apache.tinkerpop.gremlin.structure.Graph.Variables
Iterator
<org.apache.tinkerpop.gremlin.structure.Vertex> Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.tinkerpop.gremlin.structure.Graph
addVertex, getServiceRegistry, io, traversal, traversal, tx
-
Field Details
-
GRAPH_VARIABLES_COLLECTION
- See Also:
-
-
Constructor Details
-
ArangoDBGraph
protected ArangoDBGraph(org.apache.commons.configuration2.Configuration cfg)
-
-
Method Details
-
open
Open a newArangoDBGraph
instance. This method is used by theGraphFactory
to instantiateGraph
instances.- Parameters:
configuration
- the configuration for the instance- Returns:
- a newly opened
Graph
-
edgeCollections
-
vertexCollections
-
type
-
addVertex
- Specified by:
addVertex
in interfaceorg.apache.tinkerpop.gremlin.structure.Graph
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceorg.apache.tinkerpop.gremlin.structure.Graph
-
compute
public org.apache.tinkerpop.gremlin.process.computer.GraphComputer compute() throws IllegalArgumentException- Specified by:
compute
in interfaceorg.apache.tinkerpop.gremlin.structure.Graph
- Throws:
IllegalArgumentException
-
compute
public <C extends org.apache.tinkerpop.gremlin.process.computer.GraphComputer> C compute(Class<C> graphComputerClass) throws IllegalArgumentException - Specified by:
compute
in interfaceorg.apache.tinkerpop.gremlin.structure.Graph
- Throws:
IllegalArgumentException
-
configuration
public org.apache.commons.configuration2.Configuration configuration()- Specified by:
configuration
in interfaceorg.apache.tinkerpop.gremlin.structure.Graph
-
edges
- Specified by:
edges
in interfaceorg.apache.tinkerpop.gremlin.structure.Graph
-
vertices
- Specified by:
vertices
in interfaceorg.apache.tinkerpop.gremlin.structure.Graph
-
features
public org.apache.tinkerpop.gremlin.structure.Graph.Features features()- Specified by:
features
in interfaceorg.apache.tinkerpop.gremlin.structure.Graph
-
getClient
-
elementId
Create theElementId
for a persistent element. The returned elementId can be used to reference the related ArangoDB document in AQL queries.- Parameters:
element
- a persistent element (Edge or Vertex)- Returns:
- elementId
-
name
-
tx
public org.apache.tinkerpop.gremlin.structure.Transaction tx()- Specified by:
tx
in interfaceorg.apache.tinkerpop.gremlin.structure.Graph
-
variables
public org.apache.tinkerpop.gremlin.structure.Graph.Variables variables()- Specified by:
variables
in interfaceorg.apache.tinkerpop.gremlin.structure.Graph
-
toString
-
aql
public <E> org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<?,E> aql(String query) Execute the AQL query and get the result set as aGraphTraversal
.- Parameters:
query
- the AQL query to execute- Returns:
- a fluent Gremlin traversal
-
aql
public <E> org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<?,E> aql(String query, com.arangodb.model.AqlQueryOptions options) Execute the AQL query and get the result set as aGraphTraversal
.- Parameters:
query
- the AQL query to executeoptions
- query options- Returns:
- a fluent Gremlin traversal
-
aql
public <E> org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<?,E> aql(String query, Map<String, ?> parameters) Execute the AQL query with provided parameters and get the result set as aGraphTraversal
.- Parameters:
query
- the AQL query to executeparameters
- the parameters of the AQL query- Returns:
- a fluent Gremlin traversal
-
aql
public <E> org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<?,E> aql(String query, Map<String, ?> parameters, com.arangodb.model.AqlQueryOptions options) Execute the AQL query with provided parameters and get the result set as aGraphTraversal
.- Parameters:
query
- the AQL query to executeparameters
- the parameters of the AQL queryoptions
- query options- Returns:
- a fluent Gremlin traversal
-
getArangoDriver
public com.arangodb.ArangoDB getArangoDriver()Get the underlying ArangoDB driver instance.- Returns:
- ArangoDB driver instance
-
getArangoDatabase
public com.arangodb.ArangoDatabase getArangoDatabase()Get the underlying ArangoDB database instance.- Returns:
- ArangoDatabase instance
-
getArangoGraph
public com.arangodb.ArangoGraph getArangoGraph()Get the underlying ArangoGraph instance.- Returns:
- ArangoGraph instance
-
createVertex
-
createVertex
-
createEdge
public ArangoDBEdge createEdge(String label, org.apache.tinkerpop.gremlin.structure.Vertex outVertex, org.apache.tinkerpop.gremlin.structure.Vertex inVertex, Object... keyValues) -
createEdge
-