Class ArangoDBGraphClient

java.lang.Object
com.arangodb.tinkerpop.gremlin.client.ArangoDBGraphClient

public class ArangoDBGraphClient extends Object
  • Field Details

    • db

      protected final com.arangodb.ArangoDatabase db
    • config

      protected final ArangoDBGraphConfig config
  • Constructor Details

  • Method Details

    • shutdown

      public void shutdown()
    • ensureVariablesDataCollection

      public void ensureVariablesDataCollection()
    • getGraphVariables

      public VariablesData getGraphVariables()
    • insertGraphVariables

      public VariablesData insertGraphVariables(VariablesData document)
    • updateGraphVariables

      public void updateGraphVariables(VariablesData document)
    • getGraphVertices

      public com.arangodb.ArangoIterable<VertexData> getGraphVertices(List<ElementId> ids)
      Get vertices of a graph. If no ids are provided, get all vertices.
      Parameters:
      ids - the ids to match
      Returns:
      the documents
    • getGraphEdges

      public com.arangodb.ArangoIterable<EdgeData> getGraphEdges(List<ElementId> ids)
      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 graph
      edgeDefinitions - the edge definitions for the graph
      orphanCollections - 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

      public Iterator<Object> query(String query, Map<String,?> parameters, com.arangodb.model.AqlQueryOptions options)
    • insertEdge

      public void insertEdge(ArangoDBEdge edge)
    • deleteEdge

      public void deleteEdge(ArangoDBEdge edge)
    • updateEdge

      public void updateEdge(ArangoDBEdge edge)
    • readVertex

      public VertexData readVertex(ElementId id)
    • insertVertex

      public void insertVertex(ArangoDBVertex vertex)
    • deleteVertex

      public void deleteVertex(ArangoDBVertex vertex)
    • updateVertex

      public void updateVertex(ArangoDBVertex vertex)
    • getVertexNeighbors

      public Iterator<VertexData> getVertexNeighbors(ElementId vertexId, Set<String> edgeCollections, org.apache.tinkerpop.gremlin.structure.Direction direction, String[] labels)
    • getVertexEdges

      public Iterator<EdgeData> getVertexEdges(ElementId vertexId, Set<String> edgeCollections, org.apache.tinkerpop.gremlin.structure.Direction direction, String[] labels)