public interface ArangoGraphAsync extends ArangoSerializationAccessor
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<GraphEntity> |
addEdgeDefinition(EdgeDefinition definition)
Add a new edge definition to the graph
|
CompletableFuture<GraphEntity> |
addVertexCollection(String name)
Adds a vertex collection to the set of collections of the graph.
|
CompletableFuture<GraphEntity> |
create(Collection<EdgeDefinition> edgeDefinitions)
Creates the graph in the graph module.
|
CompletableFuture<GraphEntity> |
createGraph(Collection<EdgeDefinition> edgeDefinitions,
GraphCreateOptions options)
Creates the graph in the graph module.
|
ArangoDatabaseAsync |
db()
The the handler of the database the named graph is within
|
CompletableFuture<Void> |
drop()
Delete an existing graph
|
CompletableFuture<Void> |
drop(boolean dropCollections)
Delete an existing graph including
|
ArangoEdgeCollectionAsync |
edgeCollection(String name)
Returns a handler of the edge collection by the given name
|
CompletableFuture<Boolean> |
exists()
Checks whether the graph exists
|
CompletableFuture<Collection<String>> |
getEdgeDefinitions()
Lists all edge collections used in this graph
|
CompletableFuture<GraphEntity> |
getInfo()
Get a graph from the graph module
|
CompletableFuture<Collection<String>> |
getVertexCollections()
Lists all vertex collections used in this graph
|
String |
name()
The name of the collection
|
CompletableFuture<GraphEntity> |
removeEdgeDefinition(String definitionName)
Remove one edge definition from the graph.
|
CompletableFuture<GraphEntity> |
replaceEdgeDefinition(EdgeDefinition definition)
Change one specific edge definition.
|
ArangoVertexCollectionAsync |
vertexCollection(String name)
Returns a handler of the vertex collection by the given name
|
util, utilArangoDatabaseAsync db()
String name()
CompletableFuture<Boolean> exists()
CompletableFuture<GraphEntity> create(Collection<EdgeDefinition> edgeDefinitions)
edgeDefinitions - An array of definitions for the edgeCompletableFuture<GraphEntity> createGraph(Collection<EdgeDefinition> edgeDefinitions, GraphCreateOptions options)
edgeDefinitions - An array of definitions for the edgeoptions - Additional options, can be nullCompletableFuture<Void> drop()
CompletableFuture<Void> drop(boolean dropCollections)
dropCollections - Drop collections of this graph as well. Collections will only be dropped if they are not used in other
graphs.CompletableFuture<GraphEntity> getInfo()
CompletableFuture<Collection<String>> getVertexCollections()
CompletableFuture<GraphEntity> addVertexCollection(String name)
name - The name of the collectionArangoVertexCollectionAsync vertexCollection(String name)
name - Name of the vertex collectionArangoEdgeCollectionAsync edgeCollection(String name)
name - Name of the edge collectionCompletableFuture<Collection<String>> getEdgeDefinitions()
CompletableFuture<GraphEntity> addEdgeDefinition(EdgeDefinition definition)
definition - CompletableFuture<GraphEntity> replaceEdgeDefinition(EdgeDefinition definition)
definition - The edge definitionCompletableFuture<GraphEntity> removeEdgeDefinition(String definitionName)
definitionName - The name of the edge collection used in the definitionCopyright © 2016–2020 ArangoDB GmbH. All rights reserved.