public class ArangoGraph extends InternalArangoGraph<ArangoDB,ArangoDatabase,ArangoExecutorSync,Response,ConnectionSync>
executor
Modifier | Constructor and Description |
---|---|
protected |
ArangoGraph(ArangoDatabase db,
String name) |
Modifier and Type | Method and Description |
---|---|
GraphEntity |
addEdgeDefinition(EdgeDefinition definition)
Add a new edge definition to the graph
|
GraphEntity |
addVertexCollection(String name)
Adds a vertex collection to the set of collections of the graph.
|
void |
drop()
Delete an existing graph
|
ArangoEdgeCollection |
edgeCollection(String name)
Returns a handler of the edge collection by the given name
|
Collection<String> |
getEdgeDefinitions()
Lists all edge collections used in this graph
|
GraphEntity |
getInfo()
Get a graph from the graph module
|
Collection<String> |
getVertexCollections()
Lists all vertex collections used in this graph
|
GraphEntity |
removeEdgeDefinition(String definitionName)
Remove one edge definition from the graph.
|
GraphEntity |
replaceEdgeDefinition(EdgeDefinition definition)
Change one specific edge definition.
|
ArangoVertexCollection |
vertexCollection(String name)
Returns a handler of the vertex collection by the given name
|
addEdgeDefinitionRequest, addEdgeDefinitionResponseDeserializer, addVertexCollectionRequest, addVertexCollectionResponseDeserializer, db, dropRequest, getEdgeDefinitionsDeserializer, getEdgeDefinitionsRequest, getInfoRequest, getInfoResponseDeserializer, getVertexCollectionsRequest, getVertexCollectionsResponseDeserializer, name, removeEdgeDefinitionRequest, removeEdgeDefinitionResponseDeserializer, replaceEdgeDefinitionRequest, replaceEdgeDefinitionResponseDeserializer
executor, util
protected ArangoGraph(ArangoDatabase db, String name)
public void drop() throws ArangoDBException
ArangoDBException
public GraphEntity getInfo() throws ArangoDBException
ArangoDBException
public Collection<String> getVertexCollections() throws ArangoDBException
ArangoDBException
public GraphEntity addVertexCollection(String name) throws ArangoDBException
name
- The name of the collectionArangoDBException
public ArangoVertexCollection vertexCollection(String name)
name
- Name of the vertex collectionpublic ArangoEdgeCollection edgeCollection(String name)
name
- Name of the edge collectionpublic Collection<String> getEdgeDefinitions() throws ArangoDBException
ArangoDBException
public GraphEntity addEdgeDefinition(EdgeDefinition definition) throws ArangoDBException
definition
- ArangoDBException
public GraphEntity replaceEdgeDefinition(EdgeDefinition definition) throws ArangoDBException
definition
- The edge definitionArangoDBException
public GraphEntity removeEdgeDefinition(String definitionName) throws ArangoDBException
definitionName
- The name of the edge collection used in the definitionArangoDBException
Copyright © 2016–2017 ArangoDB GmbH. All rights reserved.