public interface ArangoGraph
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.
|
GraphEntity |
create(Collection<EdgeDefinition> edgeDefinitions)
Creates the graph in the graph module.
|
GraphEntity |
create(Collection<EdgeDefinition> edgeDefinitions,
GraphCreateOptions options)
Creates the graph in the graph module.
|
ArangoDatabase |
db()
The the handler of the database the named graph is within
|
void |
drop()
Delete an existing graph
|
ArangoEdgeCollection |
edgeCollection(String name)
Returns a handler of the edge collection by the given name
|
boolean |
exists()
Checks whether the graph exists
|
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
|
String |
name()
The name of the collection
|
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
|
ArangoDatabase db()
String name()
boolean exists() throws ArangoDBException
ArangoDBException
GraphEntity create(Collection<EdgeDefinition> edgeDefinitions) throws ArangoDBException
edgeDefinitions
- An array of definitions for the edgeArangoDBException
GraphEntity create(Collection<EdgeDefinition> edgeDefinitions, GraphCreateOptions options) throws ArangoDBException
edgeDefinitions
- An array of definitions for the edgeoptions
- Additional options, can be nullArangoDBException
void drop() throws ArangoDBException
ArangoDBException
GraphEntity getInfo() throws ArangoDBException
ArangoDBException
Collection<String> getVertexCollections() throws ArangoDBException
ArangoDBException
GraphEntity addVertexCollection(String name) throws ArangoDBException
name
- The name of the collectionArangoDBException
ArangoVertexCollection vertexCollection(String name)
name
- Name of the vertex collectionArangoEdgeCollection edgeCollection(String name)
name
- Name of the edge collectionCollection<String> getEdgeDefinitions() throws ArangoDBException
ArangoDBException
GraphEntity addEdgeDefinition(EdgeDefinition definition) throws ArangoDBException
definition
- ArangoDBException
GraphEntity replaceEdgeDefinition(EdgeDefinition definition) throws ArangoDBException
definition
- The edge definitionArangoDBException
GraphEntity removeEdgeDefinition(String definitionName) throws ArangoDBException
definitionName
- The name of the edge collection used in the definitionArangoDBException
Copyright © 2016–2018 ArangoDB GmbH. All rights reserved.