public class ArangoGraphAsyncImpl extends InternalArangoGraph<ArangoDBAsyncImpl,ArangoDatabaseAsyncImpl,ArangoExecutorAsync> implements ArangoGraphAsync
PATH_API_GHARIAL
executor, serde
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> |
addVertexCollection(String name,
VertexCollectionCreateOptions options)
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.
|
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
|
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
|
addEdgeDefinitionRequest, addEdgeDefinitionResponseDeserializer, addVertexCollectionRequest, addVertexCollectionResponseDeserializer, db, dropRequest, dropRequest, getEdgeDefinitionsDeserializer, getEdgeDefinitionsRequest, getInfoRequest, getInfoResponseDeserializer, getVertexCollectionsRequest, getVertexCollectionsResponseDeserializer, name, removeEdgeDefinitionRequest, removeEdgeDefinitionResponseDeserializer, replaceEdgeDefinitionRequest, replaceEdgeDefinitionResponseDeserializer
createPath, executor, getSerde, request
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
db, name
getSerde
public CompletableFuture<Boolean> exists()
ArangoGraphAsync
exists
in interface ArangoGraphAsync
public CompletableFuture<GraphEntity> create(Collection<EdgeDefinition> edgeDefinitions)
ArangoGraphAsync
create
in interface ArangoGraphAsync
edgeDefinitions
- An array of definitions for the edgepublic CompletableFuture<GraphEntity> createGraph(Collection<EdgeDefinition> edgeDefinitions, GraphCreateOptions options)
ArangoGraphAsync
createGraph
in interface ArangoGraphAsync
edgeDefinitions
- An array of definitions for the edgeoptions
- Additional options, can be nullpublic CompletableFuture<Void> drop()
ArangoGraphAsync
drop
in interface ArangoGraphAsync
public CompletableFuture<Void> drop(boolean dropCollections)
ArangoGraphAsync
drop
in interface ArangoGraphAsync
dropCollections
- Drop collections of this graph as well. Collections will only be dropped if they are
not used in other
graphs.public CompletableFuture<GraphEntity> getInfo()
ArangoGraphAsync
getInfo
in interface ArangoGraphAsync
public CompletableFuture<Collection<String>> getVertexCollections()
ArangoGraphAsync
getVertexCollections
in interface ArangoGraphAsync
public CompletableFuture<GraphEntity> addVertexCollection(String name)
ArangoGraphAsync
addVertexCollection
in interface ArangoGraphAsync
name
- The name of the collectionpublic CompletableFuture<GraphEntity> addVertexCollection(String name, VertexCollectionCreateOptions options)
ArangoGraphAsync
addVertexCollection
in interface ArangoGraphAsync
name
- The name of the collectionoptions
- additional optionspublic ArangoVertexCollectionAsync vertexCollection(String name)
ArangoGraphAsync
vertexCollection
in interface ArangoGraphAsync
name
- Name of the vertex collectionpublic ArangoEdgeCollectionAsync edgeCollection(String name)
ArangoGraphAsync
edgeCollection
in interface ArangoGraphAsync
name
- Name of the edge collectionpublic CompletableFuture<Collection<String>> getEdgeDefinitions()
ArangoGraphAsync
getEdgeDefinitions
in interface ArangoGraphAsync
public CompletableFuture<GraphEntity> addEdgeDefinition(EdgeDefinition definition)
ArangoGraphAsync
addEdgeDefinition
in interface ArangoGraphAsync
public CompletableFuture<GraphEntity> replaceEdgeDefinition(EdgeDefinition definition)
ArangoGraphAsync
replaceEdgeDefinition
in interface ArangoGraphAsync
definition
- The edge definitionpublic CompletableFuture<GraphEntity> removeEdgeDefinition(String definitionName)
ArangoGraphAsync
removeEdgeDefinition
in interface ArangoGraphAsync
definitionName
- The name of the edge collection used in the definitionCopyright © 2016–2023 ArangoDB GmbH. All rights reserved.