Package com.arangodb.entity
Class GraphEntity
java.lang.Object
com.arangodb.entity.GraphEntity
- Author:
- Mark Vollmary
-
Constructor Details
-
GraphEntity
public GraphEntity()
-
-
Method Details
-
getName
- Returns:
- Name of the graph.
-
getEdgeDefinitions
- Returns:
- An array of definitions for the relations of the graph.
-
getOrphanCollections
- Returns:
- An array of additional vertex collections. Documents within these collections do not have edges within this graph.
-
getNumberOfShards
- Returns:
- Number of shards created for every new collection in the graph.
-
getId
- Returns:
- The internal id value of this graph.
-
getRev
- Returns:
- The revision of this graph. Can be used to make sure to not override concurrent modifications to this graph.
-
getReplicationFactor
- Returns:
- The replication factor used for every new collection in the graph. Can also be satellite for a SmartGraph (Enterprise Edition only).
-
getWriteConcern
- Returns:
- Default write concern for new collections in the graph. It determines how many copies of each shard are required to be in sync on the different DB-Servers. If there are less then these many copies in the cluster a shard will refuse to write. Writes to shards with enough up-to-date copies will succeed at the same time however. The value of writeConcern can not be larger than replicationFactor. (cluster only)
-
getIsSmart
- Returns:
- Whether the graph is a SmartGraph (Enterprise Edition only).
-
getIsDisjoint
- Returns:
- Whether the graph is a Disjoint SmartGraph (Enterprise Edition only).
-
getSmartGraphAttribute
- Returns:
- Name of the sharding attribute in the SmartGraph case (Enterprise Edition only).
-
getIsSatellite
- Returns:
- Flag if the graph is a SatelliteGraph (Enterprise Edition only) or not.
-