File tree 1 file changed +21
-2
lines changed
src/main/java/com/arangodb/model 1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,12 @@ public Boolean getIsSmart() {
88
88
return isSmart ;
89
89
}
90
90
91
+ /**
92
+ *
93
+ * @param isSmart
94
+ * Define if the created graph should be smart. This only has effect in Enterprise version.
95
+ * @return options
96
+ */
91
97
public GraphCreateOptions isSmart (final Boolean isSmart ) {
92
98
this .isSmart = isSmart ;
93
99
return this ;
@@ -97,16 +103,29 @@ public Integer getNumberOfShards() {
97
103
return getOptions ().getNumberOfShards ();
98
104
}
99
105
100
- public void numberOfShards (final Integer numberOfShards ) {
106
+ /**
107
+ * @param numberOfShards
108
+ * The number of shards that is used for every collection within this graph. Cannot be modified later.
109
+ * @return options
110
+ */
111
+ public GraphCreateOptions numberOfShards (final Integer numberOfShards ) {
101
112
getOptions ().setNumberOfShards (numberOfShards );
113
+ return this ;
102
114
}
103
115
104
116
public String getSmartGraphAttribute () {
105
117
return getOptions ().getSmartGraphAttribute ();
106
118
}
107
119
108
- public void smartGraphAttribute (final String smartGraphAttribute ) {
120
+ /**
121
+ * @param smartGraphAttribute
122
+ * The attribute name that is used to smartly shard the vertices of a graph. Every vertex in this Graph
123
+ * has to have this attribute. Cannot be modified later.
124
+ * @return options
125
+ */
126
+ public GraphCreateOptions smartGraphAttribute (final String smartGraphAttribute ) {
109
127
getOptions ().setSmartGraphAttribute (smartGraphAttribute );
128
+ return this ;
110
129
}
111
130
112
131
private SmartOptions getOptions () {
You can’t perform that action at this time.
0 commit comments