Class ArangoDBGraphClient
java.lang.Object
com.arangodb.tinkerpop.gremlin.client.ArangoDBGraphClient
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ArangoDBGraphConfigprotected final com.arangodb.ArangoDatabase -
Constructor Summary
ConstructorsConstructorDescriptionArangoDBGraphClient(ArangoDBGraphConfig config, ElementIdFactory idFactory, ArangoDBGraph graph) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateGraph(String name, Set<ArangoDBGraphConfig.EdgeDef> edgeDefinitions, Set<String> orphanCollections) Create a new graph.voiddeleteEdge(ArangoDBEdge edge) voiddeleteVertex(ArangoDBVertex vertex) voidcom.arangodb.ArangoDatabaseGet the underlying ArangoDB database instance.com.arangodb.ArangoDBGet the underlying ArangoDB driver instance.com.arangodb.ArangoGraphGet the underlying ArangoGraph instance.getGraphEdges(List<ElementId> ids) Get edges of a graph.getGraphEdges(List<ElementId> ids, ArangoFilter filter, Set<String> colNames) getGraphVertices(List<ElementId> ids) Get vertices of a graph.getGraphVertices(List<ElementId> ids, ArangoFilter filter, Set<String> colNames) 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) voidinsertEdge(ArangoDBEdge edge) insertGraphVariables(VariablesData document) voidinsertVertex(ArangoDBVertex vertex) readVertex(ElementId id) voidshutdown()voidupdateEdge(ArangoDBEdge edge) voidupdateGraphVariables(VariablesData document) voidupdateVertex(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
public Stream<VertexData> getGraphVertices(List<ElementId> ids, ArangoFilter filter, Set<String> colNames) -
getGraphEdges
-
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
-