Class ArangoDBGraphClient
java.lang.Object
com.arangodb.tinkerpop.gremlin.client.ArangoDBGraphClient
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ArangoDBGraphConfig
protected final com.arangodb.ArangoDatabase
-
Constructor Summary
ConstructorsConstructorDescriptionArangoDBGraphClient
(ArangoDBGraphConfig config, ElementIdFactory idFactory, ArangoDBGraph graph) -
Method Summary
Modifier and TypeMethodDescriptionvoid
createGraph
(String name, Set<ArangoDBGraphConfig.EdgeDef> edgeDefinitions, Set<String> orphanCollections) Create a new graph.void
deleteEdge
(ArangoDBEdge edge) void
deleteVertex
(ArangoDBVertex vertex) void
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.com.arangodb.ArangoIterable
<EdgeData> getGraphEdges
(List<ElementId> ids) Get edges of a graph.com.arangodb.ArangoIterable
<VertexData> getGraphVertices
(List<ElementId> ids) Get vertices of a graph.getVertexEdges
(ElementId vertexId, Set<String> edgeCollections, org.apache.tinkerpop.gremlin.structure.Direction direction, String[] labels) getVertexNeighbors
(ElementId vertexId, Set<String> edgeCollections, org.apache.tinkerpop.gremlin.structure.Direction direction, String[] labels) void
insertEdge
(ArangoDBEdge edge) insertGraphVariables
(VariablesData document) void
insertVertex
(ArangoDBVertex vertex) readVertex
(ElementId id) void
shutdown()
void
updateEdge
(ArangoDBEdge edge) void
updateGraphVariables
(VariablesData document) void
updateVertex
(ArangoDBVertex vertex)
-
Field Details
-
db
protected final com.arangodb.ArangoDatabase db -
config
-
-
Constructor Details
-
ArangoDBGraphClient
public ArangoDBGraphClient(ArangoDBGraphConfig config, ElementIdFactory idFactory, ArangoDBGraph graph)
-
-
Method Details
-
shutdown
public void shutdown() -
ensureVariablesDataCollection
public void ensureVariablesDataCollection() -
getGraphVariables
-
insertGraphVariables
-
updateGraphVariables
-
getGraphVertices
Get vertices of a graph. If no ids are provided, get all vertices.- Parameters:
ids
- the ids to match- Returns:
- the documents
-
getGraphEdges
Get edges of a graph. If no ids are provided, get all edges.- Parameters:
ids
- the ids to match- Returns:
- the documents
-
createGraph
public void createGraph(String name, Set<ArangoDBGraphConfig.EdgeDef> edgeDefinitions, Set<String> orphanCollections) Create a new graph.- Parameters:
name
- the name of the new graphedgeDefinitions
- the edge definitions for the graphorphanCollections
- orphan collections
-
getArangoGraph
public com.arangodb.ArangoGraph getArangoGraph()Get the underlying ArangoGraph instance.- Returns:
- ArangoGraph instance
-
getArangoDatabase
public com.arangodb.ArangoDatabase getArangoDatabase()Get the underlying ArangoDB database instance.- Returns:
- ArangoDatabase instance
-
getArangoDriver
public com.arangodb.ArangoDB getArangoDriver()Get the underlying ArangoDB driver instance.- Returns:
- ArangoDB driver instance
-
query
-
insertEdge
-
deleteEdge
-
updateEdge
-
readVertex
-
insertVertex
-
deleteVertex
-
updateVertex
-
getVertexNeighbors
-
getVertexEdges
-