@@ -32,6 +32,8 @@ public class VertexExecutionOptions extends ExecutionOptions {
32
32
*/
33
33
private int idIndex ;
34
34
35
+ private boolean isDeleteExecutedWithEdges = false ;
36
+
35
37
public VertexExecutionOptions (String graphSpace ,
36
38
String executeStatement ,
37
39
List <String > fields ,
@@ -44,6 +46,7 @@ public VertexExecutionOptions(String graphSpace,
44
46
PolicyEnum policy ,
45
47
WriteModeEnum mode ,
46
48
String tag ,
49
+ boolean isDeleteExecutedWithEdges ,
47
50
int idIndex ,
48
51
int batchIntervalMs ,
49
52
FailureHandlerEnum failureHandler ,
@@ -54,6 +57,7 @@ public VertexExecutionOptions(String graphSpace,
54
57
failureHandler , maxRetries , retryDelayMs );
55
58
this .tag = tag ;
56
59
this .idIndex = idIndex ;
60
+ this .isDeleteExecutedWithEdges = isDeleteExecutedWithEdges ;
57
61
}
58
62
59
63
public int getIdIndex () {
@@ -65,6 +69,10 @@ public String getLabel() {
65
69
return tag ;
66
70
}
67
71
72
+ public boolean isDeleteExecutedWithEdges () {
73
+ return isDeleteExecutedWithEdges ;
74
+ }
75
+
68
76
@ Override
69
77
public DataTypeEnum getDataType () {
70
78
return DataTypeEnum .VERTEX ;
@@ -78,6 +86,7 @@ public ExecutionOptionBuilder toBuilder() {
78
86
.setFields (this .getFields ())
79
87
.setPositions (this .getPositions ())
80
88
.setNoColumn (this .isNoColumn ())
89
+ .setDeleteExecutedWithEdges (this .isDeleteExecutedWithEdges ())
81
90
.setLimit (this .getLimit ())
82
91
.setStartTime (this .getStartTime ())
83
92
.setEndTime (this .getEndTime ())
@@ -99,6 +108,7 @@ public static class ExecutionOptionBuilder {
99
108
private List <String > fields ;
100
109
private List <Integer > positions ;
101
110
private boolean noColumn = false ;
111
+ private boolean isDeleteExecutedWithEdges = false ;
102
112
private int limit = DEFAULT_SCAN_LIMIT ;
103
113
private long startTime = 0 ;
104
114
private long endTime = Long .MAX_VALUE ;
@@ -144,6 +154,13 @@ public ExecutionOptionBuilder setNoColumn(boolean noColumn) {
144
154
return this ;
145
155
}
146
156
157
+ public ExecutionOptionBuilder setDeleteExecutedWithEdges (
158
+ boolean isDeleteExecutedWithEdges
159
+ ) {
160
+ this .isDeleteExecutedWithEdges = isDeleteExecutedWithEdges ;
161
+ return this ;
162
+ }
163
+
147
164
public ExecutionOptionBuilder setLimit (int limit ) {
148
165
this .limit = limit ;
149
166
return this ;
@@ -220,7 +237,8 @@ public VertexExecutionOptions build() {
220
237
}
221
238
return new VertexExecutionOptions (graphSpace , executeStatement , fields ,
222
239
positions , noColumn , limit , startTime , endTime , batchSize , policy , mode , tag ,
223
- idIndex , batchIntervalMs , failureHandler , maxRetries , retryDelayMs );
240
+ isDeleteExecutedWithEdges , idIndex , batchIntervalMs ,
241
+ failureHandler , maxRetries , retryDelayMs );
224
242
}
225
243
}
226
244
}
0 commit comments