@@ -35,6 +35,8 @@ public class GraphCreateOptions {
35
35
private String name ;
36
36
private Collection <EdgeDefinition > edgeDefinitions ;
37
37
private Collection <String > orphanCollections ;
38
+ private Boolean isSmart ;
39
+ private SmartOptions options ;
38
40
39
41
public GraphCreateOptions () {
40
42
super ();
@@ -72,4 +74,62 @@ public GraphCreateOptions orphanCollections(final String... orphanCollections) {
72
74
return this ;
73
75
}
74
76
77
+ public Boolean getIsSmart () {
78
+ return isSmart ;
79
+ }
80
+
81
+ public GraphCreateOptions isSmart (final Boolean isSmart ) {
82
+ this .isSmart = isSmart ;
83
+ return this ;
84
+ }
85
+
86
+ public Integer getNumberOfShards () {
87
+ return getOptions ().getNumberOfShards ();
88
+ }
89
+
90
+ public void numberOfShards (final Integer numberOfShards ) {
91
+ getOptions ().setNumberOfShards (numberOfShards );
92
+ }
93
+
94
+ public String getSmartGraphAttribute () {
95
+ return getOptions ().getSmartGraphAttribute ();
96
+ }
97
+
98
+ public void smartGraphAttribute (final String smartGraphAttribute ) {
99
+ getOptions ().setSmartGraphAttribute (smartGraphAttribute );
100
+ }
101
+
102
+ private SmartOptions getOptions () {
103
+ if (options == null ) {
104
+ options = new SmartOptions ();
105
+ }
106
+ return options ;
107
+ }
108
+
109
+ public static class SmartOptions {
110
+ private Integer numberOfShards ;
111
+ private String smartGraphAttribute ;
112
+
113
+ public SmartOptions () {
114
+ super ();
115
+ }
116
+
117
+ public Integer getNumberOfShards () {
118
+ return numberOfShards ;
119
+ }
120
+
121
+ public void setNumberOfShards (final Integer numberOfShards ) {
122
+ this .numberOfShards = numberOfShards ;
123
+ }
124
+
125
+ public String getSmartGraphAttribute () {
126
+ return smartGraphAttribute ;
127
+ }
128
+
129
+ public void setSmartGraphAttribute (final String smartGraphAttribute ) {
130
+ this .smartGraphAttribute = smartGraphAttribute ;
131
+ }
132
+
133
+ }
134
+
75
135
}
0 commit comments