public class ArangoGraphImpl extends InternalArangoGraph<ArangoDBImpl,ArangoDatabaseImpl,ArangoExecutorSync> implements ArangoGraph
PATH_API_GHARIAL
executor, 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, replaceEdgeDefinitionResponseDeserializer
createPath, executor, getSerde, request
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
db, name
getSerde
protected ArangoGraphImpl(ArangoDatabaseImpl db, String name)
public boolean exists()
ArangoGraph
exists
in interface ArangoGraph
public GraphEntity create(Collection<EdgeDefinition> edgeDefinitions)
ArangoGraph
create
in interface ArangoGraph
edgeDefinitions
- An array of definitions for the edgepublic GraphEntity create(Collection<EdgeDefinition> edgeDefinitions, GraphCreateOptions options)
ArangoGraph
create
in interface ArangoGraph
edgeDefinitions
- An array of definitions for the edgeoptions
- Additional options, can be nullpublic void drop()
ArangoGraph
drop
in interface ArangoGraph
public void drop(boolean dropCollections)
ArangoGraph
drop
in interface ArangoGraph
dropCollections
- Drop collections of this graph as well. Collections will only be
dropped if they are not used in other graphs.public GraphEntity getInfo()
ArangoGraph
getInfo
in interface ArangoGraph
public Collection<String> getVertexCollections()
ArangoGraph
getVertexCollections
in interface ArangoGraph
public GraphEntity addVertexCollection(String name)
ArangoGraph
addVertexCollection
in interface ArangoGraph
name
- Name of the vertex collectionpublic GraphEntity addVertexCollection(String name, VertexCollectionCreateOptions options)
ArangoGraph
addVertexCollection
in interface ArangoGraph
name
- Name of the vertex collectionoptions
- additional optionspublic ArangoVertexCollection vertexCollection(String name)
ArangoGraph
ArangoVertexCollection
instance for the given vertex collection name.vertexCollection
in interface ArangoGraph
name
- Name of the vertex collectionpublic ArangoEdgeCollection edgeCollection(String name)
ArangoGraph
ArangoEdgeCollection
instance for the given edge collection name.edgeCollection
in interface ArangoGraph
name
- Name of the edge collectionpublic Collection<String> getEdgeDefinitions()
ArangoGraph
getEdgeDefinitions
in interface ArangoGraph
public GraphEntity addEdgeDefinition(EdgeDefinition definition)
ArangoGraph
addEdgeDefinition
in interface ArangoGraph
definition
- The edge definitionpublic GraphEntity replaceEdgeDefinition(EdgeDefinition definition)
ArangoGraph
replaceEdgeDefinition
in interface ArangoGraph
definition
- The edge definitionpublic GraphEntity removeEdgeDefinition(String definitionName)
ArangoGraph
removeEdgeDefinition
in interface ArangoGraph
definitionName
- The name of the edge collection used in the definitionCopyright © 2016–2023 ArangoDB GmbH. All rights reserved.