public class GraphCreateOptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GraphCreateOptions.SmartOptions |
Constructor and Description |
---|
GraphCreateOptions() |
Modifier and Type | Method and Description |
---|---|
protected GraphCreateOptions |
edgeDefinitions(Collection<EdgeDefinition> edgeDefinitions) |
Collection<EdgeDefinition> |
getEdgeDefinitions() |
Boolean |
getIsSmart() |
protected String |
getName() |
Integer |
getNumberOfShards() |
Collection<String> |
getOrphanCollections() |
String |
getSmartGraphAttribute() |
GraphCreateOptions |
isSmart(Boolean isSmart) |
protected GraphCreateOptions |
name(String name) |
GraphCreateOptions |
numberOfShards(Integer numberOfShards) |
GraphCreateOptions |
orphanCollections(String... orphanCollections) |
GraphCreateOptions |
smartGraphAttribute(String smartGraphAttribute) |
protected String getName()
protected GraphCreateOptions name(String name)
name
- Name of the graphpublic Collection<EdgeDefinition> getEdgeDefinitions()
protected GraphCreateOptions edgeDefinitions(Collection<EdgeDefinition> edgeDefinitions)
edgeDefinitions
- An array of definitions for the edgepublic Collection<String> getOrphanCollections()
public GraphCreateOptions orphanCollections(String... orphanCollections)
orphanCollections
- Additional vertex collectionspublic Boolean getIsSmart()
public GraphCreateOptions isSmart(Boolean isSmart)
isSmart
- Define if the created graph should be smart. This only has effect in Enterprise version.public Integer getNumberOfShards()
public GraphCreateOptions numberOfShards(Integer numberOfShards)
numberOfShards
- The number of shards that is used for every collection within this graph. Cannot be modified later.public String getSmartGraphAttribute()
public GraphCreateOptions smartGraphAttribute(String smartGraphAttribute)
smartGraphAttribute
- The attribute name that is used to smartly shard the vertices of a graph. Every vertex in this Graph
has to have this attribute. Cannot be modified later.Copyright © 2016–2017 ArangoDB GmbH. All rights reserved.