Package com.arangodb.entity
Class GraphEntity
- java.lang.Object
-
- com.arangodb.entity.GraphEntity
-
public final class GraphEntity extends Object
- Author:
- Mark Vollmary
- See Also:
- API Documentation
-
-
Constructor Summary
Constructors Constructor Description GraphEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<EdgeDefinition>
getEdgeDefinitions()
String
getId()
Boolean
getIsDisjoint()
Boolean
getIsSatellite()
Boolean
getIsSmart()
String
getName()
Integer
getNumberOfShards()
Collection<String>
getOrphanCollections()
ReplicationFactor
getReplicationFactor()
String
getRev()
String
getSmartGraphAttribute()
Integer
getWriteConcern()
-
-
-
Method Detail
-
getName
public String getName()
- Returns:
- Name of the graph.
-
getEdgeDefinitions
public Collection<EdgeDefinition> getEdgeDefinitions()
- Returns:
- An array of definitions for the relations of the graph.
-
getOrphanCollections
public Collection<String> getOrphanCollections()
- Returns:
- An array of additional vertex collections. Documents within these collections do not have edges within this graph.
-
getNumberOfShards
public Integer getNumberOfShards()
- Returns:
- Number of shards created for every new collection in the graph.
-
getId
public String getId()
- Returns:
- The internal id value of this graph.
-
getRev
public String getRev()
- Returns:
- The revision of this graph. Can be used to make sure to not override concurrent modifications to this graph.
-
getReplicationFactor
public ReplicationFactor getReplicationFactor()
- Returns:
- The replication factor used for every new collection in the graph. Can also be satellite for a SmartGraph (Enterprise Edition only).
-
getWriteConcern
public Integer 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
public Boolean getIsSmart()
- Returns:
- Whether the graph is a SmartGraph (Enterprise Edition only).
-
getIsDisjoint
public Boolean getIsDisjoint()
- Returns:
- Whether the graph is a Disjoint SmartGraph (Enterprise Edition only).
-
getSmartGraphAttribute
public String getSmartGraphAttribute()
- Returns:
- Name of the sharding attribute in the SmartGraph case (Enterprise Edition only).
-
getIsSatellite
public Boolean getIsSatellite()
- Returns:
- Flag if the graph is a SatelliteGraph (Enterprise Edition only) or not.
-
-