public class ArangoGraphImpl extends InternalArangoGraph<ArangoDBImpl,ArangoDatabaseImpl,ArangoExecutorSync> implements ArangoGraph
PATH_API_GHARIALexecutor, serde| Modifier | Constructor and Description |
|---|---|
protected |
ArangoGraphImpl(ArangoDatabaseImpl db,
String name) |
| Modifier and Type | Method and Description |
|---|---|
GraphEntity |
addEdgeDefinition(EdgeDefinition definition)
Adds the given edge definition to the graph.
|
GraphEntity |
addVertexCollection(String name)
Adds a vertex collection to the set of collections of the graph.
|
GraphEntity |
addVertexCollection(String name,
VertexCollectionCreateOptions options)
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.
|
void |
drop()
Deletes the graph from the database.
|
void |
drop(boolean dropCollections)
Deletes the graph from the database.
|
ArangoEdgeCollection |
edgeCollection(String name)
Returns a
ArangoEdgeCollection instance for the given edge collection name. |
boolean |
exists()
Checks whether the graph exists
|
Collection<String> |
getEdgeDefinitions()
Fetches all edge collections from the graph and returns a list of collection names.
|
GraphEntity |
getInfo()
Retrieves general information about the graph.
|
Collection<String> |
getVertexCollections()
Fetches all vertex collections from the graph and returns a list of collection names.
|
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
ArangoVertexCollection instance for the given vertex collection name. |
addEdgeDefinitionRequest, addEdgeDefinitionResponseDeserializer, addVertexCollectionRequest, addVertexCollectionResponseDeserializer, db, dropRequest, dropRequest, getEdgeDefinitionsDeserializer, getEdgeDefinitionsRequest, getInfoRequest, getInfoResponseDeserializer, getVertexCollectionsRequest, getVertexCollectionsResponseDeserializer, name, removeEdgeDefinitionRequest, removeEdgeDefinitionResponseDeserializer, replaceEdgeDefinitionRequest, replaceEdgeDefinitionResponseDeserializercreatePath, executor, getSerde, requestclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdb, namegetSerdeprotected ArangoGraphImpl(ArangoDatabaseImpl db, String name)
public boolean exists()
ArangoGraphexists in interface ArangoGraphpublic GraphEntity create(Collection<EdgeDefinition> edgeDefinitions)
ArangoGraphcreate in interface ArangoGraphedgeDefinitions - An array of definitions for the edgepublic GraphEntity create(Collection<EdgeDefinition> edgeDefinitions, GraphCreateOptions options)
ArangoGraphcreate in interface ArangoGraphedgeDefinitions - An array of definitions for the edgeoptions - Additional options, can be nullpublic void drop()
ArangoGraphdrop in interface ArangoGraphpublic void drop(boolean dropCollections)
ArangoGraphdrop in interface ArangoGraphdropCollections - Drop collections of this graph as well. Collections will only be
dropped if they are not used in other graphs.public GraphEntity getInfo()
ArangoGraphgetInfo in interface ArangoGraphpublic Collection<String> getVertexCollections()
ArangoGraphgetVertexCollections in interface ArangoGraphpublic GraphEntity addVertexCollection(String name)
ArangoGraphaddVertexCollection in interface ArangoGraphname - Name of the vertex collectionpublic GraphEntity addVertexCollection(String name, VertexCollectionCreateOptions options)
ArangoGraphaddVertexCollection in interface ArangoGraphname - Name of the vertex collectionoptions - additional optionspublic ArangoVertexCollection vertexCollection(String name)
ArangoGraphArangoVertexCollection instance for the given vertex collection name.vertexCollection in interface ArangoGraphname - Name of the vertex collectionpublic ArangoEdgeCollection edgeCollection(String name)
ArangoGraphArangoEdgeCollection instance for the given edge collection name.edgeCollection in interface ArangoGraphname - Name of the edge collectionpublic Collection<String> getEdgeDefinitions()
ArangoGraphgetEdgeDefinitions in interface ArangoGraphpublic GraphEntity addEdgeDefinition(EdgeDefinition definition)
ArangoGraphaddEdgeDefinition in interface ArangoGraphdefinition - The edge definitionpublic GraphEntity replaceEdgeDefinition(EdgeDefinition definition)
ArangoGraphreplaceEdgeDefinition in interface ArangoGraphdefinition - The edge definitionpublic GraphEntity removeEdgeDefinition(String definitionName)
ArangoGraphremoveEdgeDefinition in interface ArangoGraphdefinitionName - The name of the edge collection used in the definitionCopyright © 2016–2023 ArangoDB GmbH. All rights reserved.