public interface ArangoGraphAsync
extends com.arangodb.ArangoSerializationAccessor
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<com.arangodb.entity.GraphEntity> |
addEdgeDefinition(com.arangodb.entity.EdgeDefinition definition)
Add a new edge definition to the graph
|
CompletableFuture<com.arangodb.entity.GraphEntity> |
addVertexCollection(String name)
Adds a vertex collection to the set of collections of the graph.
|
CompletableFuture<com.arangodb.entity.GraphEntity> |
create(Collection<com.arangodb.entity.EdgeDefinition> edgeDefinitions)
Creates the graph in the graph module.
|
CompletableFuture<com.arangodb.entity.GraphEntity> |
createGraph(Collection<com.arangodb.entity.EdgeDefinition> edgeDefinitions,
com.arangodb.model.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
|
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<com.arangodb.entity.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<com.arangodb.entity.GraphEntity> |
removeEdgeDefinition(String definitionName)
Remove one edge definition from the graph.
|
CompletableFuture<com.arangodb.entity.GraphEntity> |
replaceEdgeDefinition(com.arangodb.entity.EdgeDefinition definition)
Change one specific edge definition.
|
ArangoVertexCollectionAsync |
vertexCollection(String name)
Returns a handler of the vertex collection by the given name
|
ArangoDatabaseAsync db()
String name()
CompletableFuture<Boolean> exists()
CompletableFuture<com.arangodb.entity.GraphEntity> create(Collection<com.arangodb.entity.EdgeDefinition> edgeDefinitions)
edgeDefinitions - An array of definitions for the edgeCompletableFuture<com.arangodb.entity.GraphEntity> createGraph(Collection<com.arangodb.entity.EdgeDefinition> edgeDefinitions, com.arangodb.model.GraphCreateOptions options)
edgeDefinitions - An array of definitions for the edgeoptions - Additional options, can be nullCompletableFuture<Void> drop()
CompletableFuture<com.arangodb.entity.GraphEntity> getInfo()
CompletableFuture<Collection<String>> getVertexCollections()
CompletableFuture<com.arangodb.entity.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<com.arangodb.entity.GraphEntity> addEdgeDefinition(com.arangodb.entity.EdgeDefinition definition)
definition - CompletableFuture<com.arangodb.entity.GraphEntity> replaceEdgeDefinition(com.arangodb.entity.EdgeDefinition definition)
definition - The edge definitionCompletableFuture<com.arangodb.entity.GraphEntity> removeEdgeDefinition(String definitionName)
definitionName - The name of the edge collection used in the definitionCopyright © 2016–2018 ArangoDB GmbH. All rights reserved.