gremlin 3.5.0 → 3.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +154 -0
- package/.prettierrc.js +29 -0
- package/Gruntfile.js +15 -16
- package/NOTICE +1 -1
- package/doc/AnonymousTraversalSource.html +7 -7
- package/doc/Authenticator.html +3 -3
- package/doc/Bytecode.html +249 -5
- package/doc/Client.html +139 -65
- package/doc/Connection.html +90 -6
- package/doc/DriverRemoteConnection.html +380 -8
- package/doc/EdgeLabelVerificationStrategy.html +3 -3
- package/doc/Graph.html +2 -2
- package/doc/GraphSON2Reader.html +4 -4
- package/doc/GraphSON2Writer.html +3 -3
- package/doc/GraphSON3Reader.html +3 -3
- package/doc/GraphSON3Writer.html +3 -3
- package/doc/GraphTraversal.html +107 -107
- package/doc/GraphTraversalSource.html +130 -19
- package/doc/HaltedTraverserStrategy.html +3 -3
- package/doc/MatchAlgorithmStrategy.html +3 -3
- package/doc/P.html +13 -13
- package/doc/PartitionStrategy.html +3 -3
- package/doc/Path.html +2 -2
- package/doc/PlainTextSaslAuthenticator.html +2 -2
- package/doc/ProductiveByStrategy.html +288 -0
- package/doc/RemoteConnection.html +484 -10
- package/doc/RemoteStrategy.html +4 -4
- package/doc/RemoteTraversal.html +3 -3
- package/doc/ReservedKeysVerificationStrategy.html +3 -3
- package/doc/ResponseError.html +3 -3
- package/doc/ResultSet.html +8 -8
- package/doc/SaslAuthenticator.html +2 -2
- package/doc/SaslMechanismBase.html +3 -3
- package/doc/SaslMechanismPlain.html +6 -6
- package/doc/{GraphSONReader.html → SeedStrategy.html} +12 -15
- package/doc/SubgraphStrategy.html +3 -3
- package/doc/TextP.html +10 -10
- package/doc/Transaction.html +655 -0
- package/doc/Translator.html +200 -6
- package/doc/TraversalStrategies.html +137 -4
- package/doc/TraversalStrategy.html +4 -4
- package/doc/TypeSerializer.html +2 -2
- package/doc/driver_auth_authenticator.js.html +4 -4
- package/doc/driver_auth_mechanisms_sasl-mechanism-base.js.html +3 -3
- package/doc/driver_auth_mechanisms_sasl-mechanism-plain.js.html +26 -17
- package/doc/driver_auth_plain-text-sasl-authenticator.js.html +7 -7
- package/doc/driver_auth_sasl-authenticator.js.html +3 -3
- package/doc/driver_client.js.html +75 -25
- package/doc/driver_connection.js.html +108 -89
- package/doc/driver_driver-remote-connection.js.html +40 -9
- package/doc/driver_remote-connection.js.html +47 -6
- package/doc/driver_response-error.js.html +5 -4
- package/doc/driver_result-set.js.html +4 -4
- package/doc/global.html +200 -3
- package/doc/index.html +2 -2
- package/doc/process_anonymous-traversal.js.html +5 -5
- package/doc/process_bytecode.js.html +32 -7
- package/doc/process_graph-traversal.js.html +213 -143
- package/doc/process_transaction.js.html +143 -0
- package/doc/process_translator.js.html +58 -39
- package/doc/process_traversal-strategy.js.html +79 -52
- package/doc/process_traversal.js.html +101 -108
- package/doc/structure_graph.js.html +7 -7
- package/doc/structure_io_graph-serializer.js.html +65 -18
- package/doc/structure_io_type-serializers.js.html +86 -89
- package/index.js +5 -5
- package/lib/driver/auth/authenticator.js +2 -2
- package/lib/driver/auth/mechanisms/sasl-mechanism-base.js +1 -1
- package/lib/driver/auth/mechanisms/sasl-mechanism-plain.js +24 -15
- package/lib/driver/auth/plain-text-sasl-authenticator.js +5 -5
- package/lib/driver/auth/sasl-authenticator.js +1 -1
- package/lib/driver/client.js +73 -23
- package/lib/driver/connection.js +106 -87
- package/lib/driver/driver-remote-connection.js +38 -7
- package/lib/driver/remote-connection.js +45 -4
- package/lib/driver/response-error.js +2 -2
- package/lib/driver/result-set.js +1 -2
- package/lib/process/anonymous-traversal.js +2 -3
- package/lib/process/bytecode.js +30 -5
- package/lib/process/graph-traversal.js +210 -141
- package/lib/process/transaction.js +92 -0
- package/lib/process/translator.js +55 -37
- package/lib/process/traversal-strategy.js +76 -50
- package/lib/process/traversal.js +99 -106
- package/lib/structure/graph.js +5 -5
- package/lib/structure/io/graph-serializer.js +62 -16
- package/lib/structure/io/type-serializers.js +84 -87
- package/lib/utils.js +15 -10
- package/package.json +11 -5
- package/doc/GraphSONWriter.html +0 -436
- package/gremlin-javascript.iml +0 -9
|
@@ -51,17 +51,15 @@
|
|
|
51
51
|
'use strict';
|
|
52
52
|
|
|
53
53
|
const { Traversal } = require('./traversal');
|
|
54
|
+
const { Transaction } = require('./transaction');
|
|
54
55
|
const remote = require('../driver/remote-connection');
|
|
55
|
-
const utils = require('../utils');
|
|
56
56
|
const Bytecode = require('./bytecode');
|
|
57
57
|
const { TraversalStrategies, VertexProgramStrategy, OptionsStrategy } = require('./traversal-strategy');
|
|
58
58
|
|
|
59
|
-
|
|
60
59
|
/**
|
|
61
60
|
* Represents the primary DSL of the Gremlin traversal machine.
|
|
62
61
|
*/
|
|
63
62
|
class GraphTraversalSource {
|
|
64
|
-
|
|
65
63
|
/**
|
|
66
64
|
* Creates a new instance of {@link GraphTraversalSource}.
|
|
67
65
|
* @param {Graph} graph
|
|
@@ -76,16 +74,41 @@ class GraphTraversalSource {
|
|
|
76
74
|
this.bytecode = bytecode || new Bytecode();
|
|
77
75
|
this.graphTraversalSourceClass = graphTraversalSourceClass || GraphTraversalSource;
|
|
78
76
|
this.graphTraversalClass = graphTraversalClass || GraphTraversal;
|
|
77
|
+
|
|
78
|
+
// in order to keep the constructor unchanged within 3.5.x we can try to pop the RemoteConnection out of the
|
|
79
|
+
// TraversalStrategies. keeping this unchanged will allow user DSLs to not take a break.
|
|
80
|
+
// TODO: refactor this to be nicer in 3.6.0 when we can take a breaking change
|
|
81
|
+
const strat = traversalStrategies.strategies.find((ts) => ts.fqcn === 'js:RemoteStrategy');
|
|
82
|
+
this.remoteConnection = strat !== undefined ? strat.connection : undefined;
|
|
79
83
|
}
|
|
80
84
|
|
|
81
85
|
/**
|
|
82
|
-
* @param remoteConnection
|
|
86
|
+
* @param {RemoteConnection} remoteConnection
|
|
83
87
|
* @returns {GraphTraversalSource}
|
|
84
88
|
*/
|
|
85
89
|
withRemote(remoteConnection) {
|
|
86
90
|
const traversalStrategy = new TraversalStrategies(this.traversalStrategies);
|
|
87
91
|
traversalStrategy.addStrategy(new remote.RemoteStrategy(remoteConnection));
|
|
88
|
-
return new this.graphTraversalSourceClass(
|
|
92
|
+
return new this.graphTraversalSourceClass(
|
|
93
|
+
this.graph,
|
|
94
|
+
traversalStrategy,
|
|
95
|
+
new Bytecode(this.bytecode),
|
|
96
|
+
this.graphTraversalSourceClass,
|
|
97
|
+
this.graphTraversalClass,
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Spawn a new <code>Transaction</code> object that can then start and stop a transaction.
|
|
103
|
+
* @returns {Transaction}
|
|
104
|
+
*/
|
|
105
|
+
tx() {
|
|
106
|
+
// you can't do g.tx().begin().tx() - no child transactions
|
|
107
|
+
if (this.remoteConnection && this.remoteConnection.isSessionBound) {
|
|
108
|
+
throw new Error('This TraversalSource is already bound to a transaction - child transactions are not supported');
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
return new Transaction(this);
|
|
89
112
|
}
|
|
90
113
|
|
|
91
114
|
/**
|
|
@@ -99,9 +122,17 @@ class GraphTraversalSource {
|
|
|
99
122
|
* @returns {GraphTraversalSource}
|
|
100
123
|
*/
|
|
101
124
|
withComputer(graphComputer, workers, result, persist, vertices, edges, configuration) {
|
|
102
|
-
return this.withStrategies(
|
|
103
|
-
|
|
104
|
-
|
|
125
|
+
return this.withStrategies(
|
|
126
|
+
new VertexProgramStrategy({
|
|
127
|
+
graphComputer: graphComputer,
|
|
128
|
+
workers: workers,
|
|
129
|
+
result: result,
|
|
130
|
+
persist: persist,
|
|
131
|
+
vertices: vertices,
|
|
132
|
+
edges: edges,
|
|
133
|
+
configuration: configuration,
|
|
134
|
+
}),
|
|
135
|
+
);
|
|
105
136
|
}
|
|
106
137
|
|
|
107
138
|
/**
|
|
@@ -110,18 +141,23 @@ class GraphTraversalSource {
|
|
|
110
141
|
* @param {Object} value if not specified, the value with default to {@code true}
|
|
111
142
|
* @returns {GraphTraversalSource}
|
|
112
143
|
*/
|
|
113
|
-
with_(key, value=undefined) {
|
|
144
|
+
with_(key, value = undefined) {
|
|
114
145
|
const val = value === undefined ? true : value;
|
|
115
146
|
let optionsStrategy = this.bytecode.sourceInstructions.find(
|
|
116
|
-
|
|
147
|
+
(i) => i[0] === 'withStrategies' && i[1] instanceof OptionsStrategy,
|
|
148
|
+
);
|
|
117
149
|
if (optionsStrategy === undefined) {
|
|
118
|
-
optionsStrategy = new OptionsStrategy({[key]: val});
|
|
150
|
+
optionsStrategy = new OptionsStrategy({ [key]: val });
|
|
119
151
|
return this.withStrategies(optionsStrategy);
|
|
120
|
-
} else {
|
|
121
|
-
optionsStrategy[1].configuration[key] = val;
|
|
122
|
-
return new this.graphTraversalSourceClass(this.graph, new TraversalStrategies(this.traversalStrategies),
|
|
123
|
-
this.bytecode, this.graphTraversalSourceClass, this.graphTraversalClass);
|
|
124
152
|
}
|
|
153
|
+
optionsStrategy[1].configuration[key] = val;
|
|
154
|
+
return new this.graphTraversalSourceClass(
|
|
155
|
+
this.graph,
|
|
156
|
+
new TraversalStrategies(this.traversalStrategies),
|
|
157
|
+
this.bytecode,
|
|
158
|
+
this.graphTraversalSourceClass,
|
|
159
|
+
this.graphTraversalClass,
|
|
160
|
+
);
|
|
125
161
|
}
|
|
126
162
|
|
|
127
163
|
/**
|
|
@@ -131,7 +167,7 @@ class GraphTraversalSource {
|
|
|
131
167
|
toString() {
|
|
132
168
|
return 'graphtraversalsource[' + this.graph.toString() + ']';
|
|
133
169
|
}
|
|
134
|
-
|
|
170
|
+
|
|
135
171
|
/**
|
|
136
172
|
* Graph Traversal Source withBulk method.
|
|
137
173
|
* @param {...Object} args
|
|
@@ -139,9 +175,15 @@ class GraphTraversalSource {
|
|
|
139
175
|
*/
|
|
140
176
|
withBulk(...args) {
|
|
141
177
|
const b = new Bytecode(this.bytecode).addSource('withBulk', args);
|
|
142
|
-
return new this.graphTraversalSourceClass(
|
|
178
|
+
return new this.graphTraversalSourceClass(
|
|
179
|
+
this.graph,
|
|
180
|
+
new TraversalStrategies(this.traversalStrategies),
|
|
181
|
+
b,
|
|
182
|
+
this.graphTraversalSourceClass,
|
|
183
|
+
this.graphTraversalClass,
|
|
184
|
+
);
|
|
143
185
|
}
|
|
144
|
-
|
|
186
|
+
|
|
145
187
|
/**
|
|
146
188
|
* Graph Traversal Source withPath method.
|
|
147
189
|
* @param {...Object} args
|
|
@@ -149,9 +191,15 @@ class GraphTraversalSource {
|
|
|
149
191
|
*/
|
|
150
192
|
withPath(...args) {
|
|
151
193
|
const b = new Bytecode(this.bytecode).addSource('withPath', args);
|
|
152
|
-
return new this.graphTraversalSourceClass(
|
|
194
|
+
return new this.graphTraversalSourceClass(
|
|
195
|
+
this.graph,
|
|
196
|
+
new TraversalStrategies(this.traversalStrategies),
|
|
197
|
+
b,
|
|
198
|
+
this.graphTraversalSourceClass,
|
|
199
|
+
this.graphTraversalClass,
|
|
200
|
+
);
|
|
153
201
|
}
|
|
154
|
-
|
|
202
|
+
|
|
155
203
|
/**
|
|
156
204
|
* Graph Traversal Source withSack method.
|
|
157
205
|
* @param {...Object} args
|
|
@@ -159,9 +207,15 @@ class GraphTraversalSource {
|
|
|
159
207
|
*/
|
|
160
208
|
withSack(...args) {
|
|
161
209
|
const b = new Bytecode(this.bytecode).addSource('withSack', args);
|
|
162
|
-
return new this.graphTraversalSourceClass(
|
|
210
|
+
return new this.graphTraversalSourceClass(
|
|
211
|
+
this.graph,
|
|
212
|
+
new TraversalStrategies(this.traversalStrategies),
|
|
213
|
+
b,
|
|
214
|
+
this.graphTraversalSourceClass,
|
|
215
|
+
this.graphTraversalClass,
|
|
216
|
+
);
|
|
163
217
|
}
|
|
164
|
-
|
|
218
|
+
|
|
165
219
|
/**
|
|
166
220
|
* Graph Traversal Source withSideEffect method.
|
|
167
221
|
* @param {...Object} args
|
|
@@ -169,9 +223,15 @@ class GraphTraversalSource {
|
|
|
169
223
|
*/
|
|
170
224
|
withSideEffect(...args) {
|
|
171
225
|
const b = new Bytecode(this.bytecode).addSource('withSideEffect', args);
|
|
172
|
-
return new this.graphTraversalSourceClass(
|
|
226
|
+
return new this.graphTraversalSourceClass(
|
|
227
|
+
this.graph,
|
|
228
|
+
new TraversalStrategies(this.traversalStrategies),
|
|
229
|
+
b,
|
|
230
|
+
this.graphTraversalSourceClass,
|
|
231
|
+
this.graphTraversalClass,
|
|
232
|
+
);
|
|
173
233
|
}
|
|
174
|
-
|
|
234
|
+
|
|
175
235
|
/**
|
|
176
236
|
* Graph Traversal Source withStrategies method.
|
|
177
237
|
* @param {...Object} args
|
|
@@ -179,9 +239,15 @@ class GraphTraversalSource {
|
|
|
179
239
|
*/
|
|
180
240
|
withStrategies(...args) {
|
|
181
241
|
const b = new Bytecode(this.bytecode).addSource('withStrategies', args);
|
|
182
|
-
return new this.graphTraversalSourceClass(
|
|
242
|
+
return new this.graphTraversalSourceClass(
|
|
243
|
+
this.graph,
|
|
244
|
+
new TraversalStrategies(this.traversalStrategies),
|
|
245
|
+
b,
|
|
246
|
+
this.graphTraversalSourceClass,
|
|
247
|
+
this.graphTraversalClass,
|
|
248
|
+
);
|
|
183
249
|
}
|
|
184
|
-
|
|
250
|
+
|
|
185
251
|
/**
|
|
186
252
|
* Graph Traversal Source withoutStrategies method.
|
|
187
253
|
* @param {...Object} args
|
|
@@ -189,9 +255,15 @@ class GraphTraversalSource {
|
|
|
189
255
|
*/
|
|
190
256
|
withoutStrategies(...args) {
|
|
191
257
|
const b = new Bytecode(this.bytecode).addSource('withoutStrategies', args);
|
|
192
|
-
return new this.graphTraversalSourceClass(
|
|
258
|
+
return new this.graphTraversalSourceClass(
|
|
259
|
+
this.graph,
|
|
260
|
+
new TraversalStrategies(this.traversalStrategies),
|
|
261
|
+
b,
|
|
262
|
+
this.graphTraversalSourceClass,
|
|
263
|
+
this.graphTraversalClass,
|
|
264
|
+
);
|
|
193
265
|
}
|
|
194
|
-
|
|
266
|
+
|
|
195
267
|
/**
|
|
196
268
|
* E GraphTraversalSource step method.
|
|
197
269
|
* @param {...Object} args
|
|
@@ -201,7 +273,7 @@ class GraphTraversalSource {
|
|
|
201
273
|
const b = new Bytecode(this.bytecode).addStep('E', args);
|
|
202
274
|
return new this.graphTraversalClass(this.graph, new TraversalStrategies(this.traversalStrategies), b);
|
|
203
275
|
}
|
|
204
|
-
|
|
276
|
+
|
|
205
277
|
/**
|
|
206
278
|
* V GraphTraversalSource step method.
|
|
207
279
|
* @param {...Object} args
|
|
@@ -211,7 +283,7 @@ class GraphTraversalSource {
|
|
|
211
283
|
const b = new Bytecode(this.bytecode).addStep('V', args);
|
|
212
284
|
return new this.graphTraversalClass(this.graph, new TraversalStrategies(this.traversalStrategies), b);
|
|
213
285
|
}
|
|
214
|
-
|
|
286
|
+
|
|
215
287
|
/**
|
|
216
288
|
* addE GraphTraversalSource step method.
|
|
217
289
|
* @param {...Object} args
|
|
@@ -221,7 +293,7 @@ class GraphTraversalSource {
|
|
|
221
293
|
const b = new Bytecode(this.bytecode).addStep('addE', args);
|
|
222
294
|
return new this.graphTraversalClass(this.graph, new TraversalStrategies(this.traversalStrategies), b);
|
|
223
295
|
}
|
|
224
|
-
|
|
296
|
+
|
|
225
297
|
/**
|
|
226
298
|
* addV GraphTraversalSource step method.
|
|
227
299
|
* @param {...Object} args
|
|
@@ -231,7 +303,7 @@ class GraphTraversalSource {
|
|
|
231
303
|
const b = new Bytecode(this.bytecode).addStep('addV', args);
|
|
232
304
|
return new this.graphTraversalClass(this.graph, new TraversalStrategies(this.traversalStrategies), b);
|
|
233
305
|
}
|
|
234
|
-
|
|
306
|
+
|
|
235
307
|
/**
|
|
236
308
|
* inject GraphTraversalSource step method.
|
|
237
309
|
* @param {...Object} args
|
|
@@ -241,7 +313,7 @@ class GraphTraversalSource {
|
|
|
241
313
|
const b = new Bytecode(this.bytecode).addStep('inject', args);
|
|
242
314
|
return new this.graphTraversalClass(this.graph, new TraversalStrategies(this.traversalStrategies), b);
|
|
243
315
|
}
|
|
244
|
-
|
|
316
|
+
|
|
245
317
|
/**
|
|
246
318
|
* io GraphTraversalSource step method.
|
|
247
319
|
* @param {...Object} args
|
|
@@ -251,7 +323,6 @@ class GraphTraversalSource {
|
|
|
251
323
|
const b = new Bytecode(this.bytecode).addStep('io', args);
|
|
252
324
|
return new this.graphTraversalClass(this.graph, new TraversalStrategies(this.traversalStrategies), b);
|
|
253
325
|
}
|
|
254
|
-
|
|
255
326
|
}
|
|
256
327
|
|
|
257
328
|
/**
|
|
@@ -269,7 +340,6 @@ class GraphTraversal extends Traversal {
|
|
|
269
340
|
return new GraphTraversal(this.graph, this.traversalStrategies, this.getBytecode());
|
|
270
341
|
}
|
|
271
342
|
|
|
272
|
-
|
|
273
343
|
/**
|
|
274
344
|
* Graph traversal V method.
|
|
275
345
|
* @param {...Object} args
|
|
@@ -279,7 +349,7 @@ class GraphTraversal extends Traversal {
|
|
|
279
349
|
this.bytecode.addStep('V', args);
|
|
280
350
|
return this;
|
|
281
351
|
}
|
|
282
|
-
|
|
352
|
+
|
|
283
353
|
/**
|
|
284
354
|
* Graph traversal addE method.
|
|
285
355
|
* @param {...Object} args
|
|
@@ -289,7 +359,7 @@ class GraphTraversal extends Traversal {
|
|
|
289
359
|
this.bytecode.addStep('addE', args);
|
|
290
360
|
return this;
|
|
291
361
|
}
|
|
292
|
-
|
|
362
|
+
|
|
293
363
|
/**
|
|
294
364
|
* Graph traversal addV method.
|
|
295
365
|
* @param {...Object} args
|
|
@@ -299,7 +369,7 @@ class GraphTraversal extends Traversal {
|
|
|
299
369
|
this.bytecode.addStep('addV', args);
|
|
300
370
|
return this;
|
|
301
371
|
}
|
|
302
|
-
|
|
372
|
+
|
|
303
373
|
/**
|
|
304
374
|
* Graph traversal aggregate method.
|
|
305
375
|
* @param {...Object} args
|
|
@@ -309,7 +379,7 @@ class GraphTraversal extends Traversal {
|
|
|
309
379
|
this.bytecode.addStep('aggregate', args);
|
|
310
380
|
return this;
|
|
311
381
|
}
|
|
312
|
-
|
|
382
|
+
|
|
313
383
|
/**
|
|
314
384
|
* Graph traversal and method.
|
|
315
385
|
* @param {...Object} args
|
|
@@ -319,7 +389,7 @@ class GraphTraversal extends Traversal {
|
|
|
319
389
|
this.bytecode.addStep('and', args);
|
|
320
390
|
return this;
|
|
321
391
|
}
|
|
322
|
-
|
|
392
|
+
|
|
323
393
|
/**
|
|
324
394
|
* Graph traversal as method.
|
|
325
395
|
* @param {...Object} args
|
|
@@ -329,7 +399,7 @@ class GraphTraversal extends Traversal {
|
|
|
329
399
|
this.bytecode.addStep('as', args);
|
|
330
400
|
return this;
|
|
331
401
|
}
|
|
332
|
-
|
|
402
|
+
|
|
333
403
|
/**
|
|
334
404
|
* Graph traversal barrier method.
|
|
335
405
|
* @param {...Object} args
|
|
@@ -339,7 +409,7 @@ class GraphTraversal extends Traversal {
|
|
|
339
409
|
this.bytecode.addStep('barrier', args);
|
|
340
410
|
return this;
|
|
341
411
|
}
|
|
342
|
-
|
|
412
|
+
|
|
343
413
|
/**
|
|
344
414
|
* Graph traversal both method.
|
|
345
415
|
* @param {...Object} args
|
|
@@ -349,7 +419,7 @@ class GraphTraversal extends Traversal {
|
|
|
349
419
|
this.bytecode.addStep('both', args);
|
|
350
420
|
return this;
|
|
351
421
|
}
|
|
352
|
-
|
|
422
|
+
|
|
353
423
|
/**
|
|
354
424
|
* Graph traversal bothE method.
|
|
355
425
|
* @param {...Object} args
|
|
@@ -359,7 +429,7 @@ class GraphTraversal extends Traversal {
|
|
|
359
429
|
this.bytecode.addStep('bothE', args);
|
|
360
430
|
return this;
|
|
361
431
|
}
|
|
362
|
-
|
|
432
|
+
|
|
363
433
|
/**
|
|
364
434
|
* Graph traversal bothV method.
|
|
365
435
|
* @param {...Object} args
|
|
@@ -369,7 +439,7 @@ class GraphTraversal extends Traversal {
|
|
|
369
439
|
this.bytecode.addStep('bothV', args);
|
|
370
440
|
return this;
|
|
371
441
|
}
|
|
372
|
-
|
|
442
|
+
|
|
373
443
|
/**
|
|
374
444
|
* Graph traversal branch method.
|
|
375
445
|
* @param {...Object} args
|
|
@@ -379,7 +449,7 @@ class GraphTraversal extends Traversal {
|
|
|
379
449
|
this.bytecode.addStep('branch', args);
|
|
380
450
|
return this;
|
|
381
451
|
}
|
|
382
|
-
|
|
452
|
+
|
|
383
453
|
/**
|
|
384
454
|
* Graph traversal by method.
|
|
385
455
|
* @param {...Object} args
|
|
@@ -389,7 +459,7 @@ class GraphTraversal extends Traversal {
|
|
|
389
459
|
this.bytecode.addStep('by', args);
|
|
390
460
|
return this;
|
|
391
461
|
}
|
|
392
|
-
|
|
462
|
+
|
|
393
463
|
/**
|
|
394
464
|
* Graph traversal cap method.
|
|
395
465
|
* @param {...Object} args
|
|
@@ -399,7 +469,7 @@ class GraphTraversal extends Traversal {
|
|
|
399
469
|
this.bytecode.addStep('cap', args);
|
|
400
470
|
return this;
|
|
401
471
|
}
|
|
402
|
-
|
|
472
|
+
|
|
403
473
|
/**
|
|
404
474
|
* Graph traversal choose method.
|
|
405
475
|
* @param {...Object} args
|
|
@@ -409,7 +479,7 @@ class GraphTraversal extends Traversal {
|
|
|
409
479
|
this.bytecode.addStep('choose', args);
|
|
410
480
|
return this;
|
|
411
481
|
}
|
|
412
|
-
|
|
482
|
+
|
|
413
483
|
/**
|
|
414
484
|
* Graph traversal coalesce method.
|
|
415
485
|
* @param {...Object} args
|
|
@@ -419,7 +489,7 @@ class GraphTraversal extends Traversal {
|
|
|
419
489
|
this.bytecode.addStep('coalesce', args);
|
|
420
490
|
return this;
|
|
421
491
|
}
|
|
422
|
-
|
|
492
|
+
|
|
423
493
|
/**
|
|
424
494
|
* Graph traversal coin method.
|
|
425
495
|
* @param {...Object} args
|
|
@@ -429,7 +499,7 @@ class GraphTraversal extends Traversal {
|
|
|
429
499
|
this.bytecode.addStep('coin', args);
|
|
430
500
|
return this;
|
|
431
501
|
}
|
|
432
|
-
|
|
502
|
+
|
|
433
503
|
/**
|
|
434
504
|
* Graph traversal connectedComponent method.
|
|
435
505
|
* @param {...Object} args
|
|
@@ -439,7 +509,7 @@ class GraphTraversal extends Traversal {
|
|
|
439
509
|
this.bytecode.addStep('connectedComponent', args);
|
|
440
510
|
return this;
|
|
441
511
|
}
|
|
442
|
-
|
|
512
|
+
|
|
443
513
|
/**
|
|
444
514
|
* Graph traversal constant method.
|
|
445
515
|
* @param {...Object} args
|
|
@@ -449,7 +519,7 @@ class GraphTraversal extends Traversal {
|
|
|
449
519
|
this.bytecode.addStep('constant', args);
|
|
450
520
|
return this;
|
|
451
521
|
}
|
|
452
|
-
|
|
522
|
+
|
|
453
523
|
/**
|
|
454
524
|
* Graph traversal count method.
|
|
455
525
|
* @param {...Object} args
|
|
@@ -459,7 +529,7 @@ class GraphTraversal extends Traversal {
|
|
|
459
529
|
this.bytecode.addStep('count', args);
|
|
460
530
|
return this;
|
|
461
531
|
}
|
|
462
|
-
|
|
532
|
+
|
|
463
533
|
/**
|
|
464
534
|
* Graph traversal cyclicPath method.
|
|
465
535
|
* @param {...Object} args
|
|
@@ -469,7 +539,7 @@ class GraphTraversal extends Traversal {
|
|
|
469
539
|
this.bytecode.addStep('cyclicPath', args);
|
|
470
540
|
return this;
|
|
471
541
|
}
|
|
472
|
-
|
|
542
|
+
|
|
473
543
|
/**
|
|
474
544
|
* Graph traversal dedup method.
|
|
475
545
|
* @param {...Object} args
|
|
@@ -479,7 +549,7 @@ class GraphTraversal extends Traversal {
|
|
|
479
549
|
this.bytecode.addStep('dedup', args);
|
|
480
550
|
return this;
|
|
481
551
|
}
|
|
482
|
-
|
|
552
|
+
|
|
483
553
|
/**
|
|
484
554
|
* Graph traversal drop method.
|
|
485
555
|
* @param {...Object} args
|
|
@@ -489,7 +559,7 @@ class GraphTraversal extends Traversal {
|
|
|
489
559
|
this.bytecode.addStep('drop', args);
|
|
490
560
|
return this;
|
|
491
561
|
}
|
|
492
|
-
|
|
562
|
+
|
|
493
563
|
/**
|
|
494
564
|
* Graph traversal elementMap method.
|
|
495
565
|
* @param {...Object} args
|
|
@@ -499,7 +569,7 @@ class GraphTraversal extends Traversal {
|
|
|
499
569
|
this.bytecode.addStep('elementMap', args);
|
|
500
570
|
return this;
|
|
501
571
|
}
|
|
502
|
-
|
|
572
|
+
|
|
503
573
|
/**
|
|
504
574
|
* Graph traversal emit method.
|
|
505
575
|
* @param {...Object} args
|
|
@@ -509,7 +579,7 @@ class GraphTraversal extends Traversal {
|
|
|
509
579
|
this.bytecode.addStep('emit', args);
|
|
510
580
|
return this;
|
|
511
581
|
}
|
|
512
|
-
|
|
582
|
+
|
|
513
583
|
/**
|
|
514
584
|
* Graph traversal filter method.
|
|
515
585
|
* @param {...Object} args
|
|
@@ -519,7 +589,7 @@ class GraphTraversal extends Traversal {
|
|
|
519
589
|
this.bytecode.addStep('filter', args);
|
|
520
590
|
return this;
|
|
521
591
|
}
|
|
522
|
-
|
|
592
|
+
|
|
523
593
|
/**
|
|
524
594
|
* Graph traversal flatMap method.
|
|
525
595
|
* @param {...Object} args
|
|
@@ -529,7 +599,7 @@ class GraphTraversal extends Traversal {
|
|
|
529
599
|
this.bytecode.addStep('flatMap', args);
|
|
530
600
|
return this;
|
|
531
601
|
}
|
|
532
|
-
|
|
602
|
+
|
|
533
603
|
/**
|
|
534
604
|
* Graph traversal fold method.
|
|
535
605
|
* @param {...Object} args
|
|
@@ -539,7 +609,7 @@ class GraphTraversal extends Traversal {
|
|
|
539
609
|
this.bytecode.addStep('fold', args);
|
|
540
610
|
return this;
|
|
541
611
|
}
|
|
542
|
-
|
|
612
|
+
|
|
543
613
|
/**
|
|
544
614
|
* Graph traversal from method.
|
|
545
615
|
* @param {...Object} args
|
|
@@ -549,7 +619,7 @@ class GraphTraversal extends Traversal {
|
|
|
549
619
|
this.bytecode.addStep('from', args);
|
|
550
620
|
return this;
|
|
551
621
|
}
|
|
552
|
-
|
|
622
|
+
|
|
553
623
|
/**
|
|
554
624
|
* Graph traversal group method.
|
|
555
625
|
* @param {...Object} args
|
|
@@ -559,7 +629,7 @@ class GraphTraversal extends Traversal {
|
|
|
559
629
|
this.bytecode.addStep('group', args);
|
|
560
630
|
return this;
|
|
561
631
|
}
|
|
562
|
-
|
|
632
|
+
|
|
563
633
|
/**
|
|
564
634
|
* Graph traversal groupCount method.
|
|
565
635
|
* @param {...Object} args
|
|
@@ -569,7 +639,7 @@ class GraphTraversal extends Traversal {
|
|
|
569
639
|
this.bytecode.addStep('groupCount', args);
|
|
570
640
|
return this;
|
|
571
641
|
}
|
|
572
|
-
|
|
642
|
+
|
|
573
643
|
/**
|
|
574
644
|
* Graph traversal has method.
|
|
575
645
|
* @param {...Object} args
|
|
@@ -579,7 +649,7 @@ class GraphTraversal extends Traversal {
|
|
|
579
649
|
this.bytecode.addStep('has', args);
|
|
580
650
|
return this;
|
|
581
651
|
}
|
|
582
|
-
|
|
652
|
+
|
|
583
653
|
/**
|
|
584
654
|
* Graph traversal hasId method.
|
|
585
655
|
* @param {...Object} args
|
|
@@ -589,7 +659,7 @@ class GraphTraversal extends Traversal {
|
|
|
589
659
|
this.bytecode.addStep('hasId', args);
|
|
590
660
|
return this;
|
|
591
661
|
}
|
|
592
|
-
|
|
662
|
+
|
|
593
663
|
/**
|
|
594
664
|
* Graph traversal hasKey method.
|
|
595
665
|
* @param {...Object} args
|
|
@@ -599,7 +669,7 @@ class GraphTraversal extends Traversal {
|
|
|
599
669
|
this.bytecode.addStep('hasKey', args);
|
|
600
670
|
return this;
|
|
601
671
|
}
|
|
602
|
-
|
|
672
|
+
|
|
603
673
|
/**
|
|
604
674
|
* Graph traversal hasLabel method.
|
|
605
675
|
* @param {...Object} args
|
|
@@ -609,7 +679,7 @@ class GraphTraversal extends Traversal {
|
|
|
609
679
|
this.bytecode.addStep('hasLabel', args);
|
|
610
680
|
return this;
|
|
611
681
|
}
|
|
612
|
-
|
|
682
|
+
|
|
613
683
|
/**
|
|
614
684
|
* Graph traversal hasNot method.
|
|
615
685
|
* @param {...Object} args
|
|
@@ -619,7 +689,7 @@ class GraphTraversal extends Traversal {
|
|
|
619
689
|
this.bytecode.addStep('hasNot', args);
|
|
620
690
|
return this;
|
|
621
691
|
}
|
|
622
|
-
|
|
692
|
+
|
|
623
693
|
/**
|
|
624
694
|
* Graph traversal hasValue method.
|
|
625
695
|
* @param {...Object} args
|
|
@@ -629,7 +699,7 @@ class GraphTraversal extends Traversal {
|
|
|
629
699
|
this.bytecode.addStep('hasValue', args);
|
|
630
700
|
return this;
|
|
631
701
|
}
|
|
632
|
-
|
|
702
|
+
|
|
633
703
|
/**
|
|
634
704
|
* Graph traversal id method.
|
|
635
705
|
* @param {...Object} args
|
|
@@ -639,7 +709,7 @@ class GraphTraversal extends Traversal {
|
|
|
639
709
|
this.bytecode.addStep('id', args);
|
|
640
710
|
return this;
|
|
641
711
|
}
|
|
642
|
-
|
|
712
|
+
|
|
643
713
|
/**
|
|
644
714
|
* Graph traversal identity method.
|
|
645
715
|
* @param {...Object} args
|
|
@@ -649,7 +719,7 @@ class GraphTraversal extends Traversal {
|
|
|
649
719
|
this.bytecode.addStep('identity', args);
|
|
650
720
|
return this;
|
|
651
721
|
}
|
|
652
|
-
|
|
722
|
+
|
|
653
723
|
/**
|
|
654
724
|
* Graph traversal in method.
|
|
655
725
|
* @param {...Object} args
|
|
@@ -659,7 +729,7 @@ class GraphTraversal extends Traversal {
|
|
|
659
729
|
this.bytecode.addStep('in', args);
|
|
660
730
|
return this;
|
|
661
731
|
}
|
|
662
|
-
|
|
732
|
+
|
|
663
733
|
/**
|
|
664
734
|
* Graph traversal inE method.
|
|
665
735
|
* @param {...Object} args
|
|
@@ -669,7 +739,7 @@ class GraphTraversal extends Traversal {
|
|
|
669
739
|
this.bytecode.addStep('inE', args);
|
|
670
740
|
return this;
|
|
671
741
|
}
|
|
672
|
-
|
|
742
|
+
|
|
673
743
|
/**
|
|
674
744
|
* Graph traversal inV method.
|
|
675
745
|
* @param {...Object} args
|
|
@@ -679,7 +749,7 @@ class GraphTraversal extends Traversal {
|
|
|
679
749
|
this.bytecode.addStep('inV', args);
|
|
680
750
|
return this;
|
|
681
751
|
}
|
|
682
|
-
|
|
752
|
+
|
|
683
753
|
/**
|
|
684
754
|
* Graph traversal index method.
|
|
685
755
|
* @param {...Object} args
|
|
@@ -689,7 +759,7 @@ class GraphTraversal extends Traversal {
|
|
|
689
759
|
this.bytecode.addStep('index', args);
|
|
690
760
|
return this;
|
|
691
761
|
}
|
|
692
|
-
|
|
762
|
+
|
|
693
763
|
/**
|
|
694
764
|
* Graph traversal inject method.
|
|
695
765
|
* @param {...Object} args
|
|
@@ -699,7 +769,7 @@ class GraphTraversal extends Traversal {
|
|
|
699
769
|
this.bytecode.addStep('inject', args);
|
|
700
770
|
return this;
|
|
701
771
|
}
|
|
702
|
-
|
|
772
|
+
|
|
703
773
|
/**
|
|
704
774
|
* Graph traversal is method.
|
|
705
775
|
* @param {...Object} args
|
|
@@ -709,7 +779,7 @@ class GraphTraversal extends Traversal {
|
|
|
709
779
|
this.bytecode.addStep('is', args);
|
|
710
780
|
return this;
|
|
711
781
|
}
|
|
712
|
-
|
|
782
|
+
|
|
713
783
|
/**
|
|
714
784
|
* Graph traversal key method.
|
|
715
785
|
* @param {...Object} args
|
|
@@ -719,7 +789,7 @@ class GraphTraversal extends Traversal {
|
|
|
719
789
|
this.bytecode.addStep('key', args);
|
|
720
790
|
return this;
|
|
721
791
|
}
|
|
722
|
-
|
|
792
|
+
|
|
723
793
|
/**
|
|
724
794
|
* Graph traversal label method.
|
|
725
795
|
* @param {...Object} args
|
|
@@ -729,7 +799,7 @@ class GraphTraversal extends Traversal {
|
|
|
729
799
|
this.bytecode.addStep('label', args);
|
|
730
800
|
return this;
|
|
731
801
|
}
|
|
732
|
-
|
|
802
|
+
|
|
733
803
|
/**
|
|
734
804
|
* Graph traversal limit method.
|
|
735
805
|
* @param {...Object} args
|
|
@@ -739,7 +809,7 @@ class GraphTraversal extends Traversal {
|
|
|
739
809
|
this.bytecode.addStep('limit', args);
|
|
740
810
|
return this;
|
|
741
811
|
}
|
|
742
|
-
|
|
812
|
+
|
|
743
813
|
/**
|
|
744
814
|
* Graph traversal local method.
|
|
745
815
|
* @param {...Object} args
|
|
@@ -749,7 +819,7 @@ class GraphTraversal extends Traversal {
|
|
|
749
819
|
this.bytecode.addStep('local', args);
|
|
750
820
|
return this;
|
|
751
821
|
}
|
|
752
|
-
|
|
822
|
+
|
|
753
823
|
/**
|
|
754
824
|
* Graph traversal loops method.
|
|
755
825
|
* @param {...Object} args
|
|
@@ -759,7 +829,7 @@ class GraphTraversal extends Traversal {
|
|
|
759
829
|
this.bytecode.addStep('loops', args);
|
|
760
830
|
return this;
|
|
761
831
|
}
|
|
762
|
-
|
|
832
|
+
|
|
763
833
|
/**
|
|
764
834
|
* Graph traversal map method.
|
|
765
835
|
* @param {...Object} args
|
|
@@ -769,7 +839,7 @@ class GraphTraversal extends Traversal {
|
|
|
769
839
|
this.bytecode.addStep('map', args);
|
|
770
840
|
return this;
|
|
771
841
|
}
|
|
772
|
-
|
|
842
|
+
|
|
773
843
|
/**
|
|
774
844
|
* Graph traversal match method.
|
|
775
845
|
* @param {...Object} args
|
|
@@ -779,7 +849,7 @@ class GraphTraversal extends Traversal {
|
|
|
779
849
|
this.bytecode.addStep('match', args);
|
|
780
850
|
return this;
|
|
781
851
|
}
|
|
782
|
-
|
|
852
|
+
|
|
783
853
|
/**
|
|
784
854
|
* Graph traversal math method.
|
|
785
855
|
* @param {...Object} args
|
|
@@ -789,7 +859,7 @@ class GraphTraversal extends Traversal {
|
|
|
789
859
|
this.bytecode.addStep('math', args);
|
|
790
860
|
return this;
|
|
791
861
|
}
|
|
792
|
-
|
|
862
|
+
|
|
793
863
|
/**
|
|
794
864
|
* Graph traversal max method.
|
|
795
865
|
* @param {...Object} args
|
|
@@ -799,7 +869,7 @@ class GraphTraversal extends Traversal {
|
|
|
799
869
|
this.bytecode.addStep('max', args);
|
|
800
870
|
return this;
|
|
801
871
|
}
|
|
802
|
-
|
|
872
|
+
|
|
803
873
|
/**
|
|
804
874
|
* Graph traversal mean method.
|
|
805
875
|
* @param {...Object} args
|
|
@@ -809,7 +879,7 @@ class GraphTraversal extends Traversal {
|
|
|
809
879
|
this.bytecode.addStep('mean', args);
|
|
810
880
|
return this;
|
|
811
881
|
}
|
|
812
|
-
|
|
882
|
+
|
|
813
883
|
/**
|
|
814
884
|
* Graph traversal min method.
|
|
815
885
|
* @param {...Object} args
|
|
@@ -819,7 +889,7 @@ class GraphTraversal extends Traversal {
|
|
|
819
889
|
this.bytecode.addStep('min', args);
|
|
820
890
|
return this;
|
|
821
891
|
}
|
|
822
|
-
|
|
892
|
+
|
|
823
893
|
/**
|
|
824
894
|
* Graph traversal none method.
|
|
825
895
|
* @param {...Object} args
|
|
@@ -829,7 +899,7 @@ class GraphTraversal extends Traversal {
|
|
|
829
899
|
this.bytecode.addStep('none', args);
|
|
830
900
|
return this;
|
|
831
901
|
}
|
|
832
|
-
|
|
902
|
+
|
|
833
903
|
/**
|
|
834
904
|
* Graph traversal not method.
|
|
835
905
|
* @param {...Object} args
|
|
@@ -839,7 +909,7 @@ class GraphTraversal extends Traversal {
|
|
|
839
909
|
this.bytecode.addStep('not', args);
|
|
840
910
|
return this;
|
|
841
911
|
}
|
|
842
|
-
|
|
912
|
+
|
|
843
913
|
/**
|
|
844
914
|
* Graph traversal option method.
|
|
845
915
|
* @param {...Object} args
|
|
@@ -849,7 +919,7 @@ class GraphTraversal extends Traversal {
|
|
|
849
919
|
this.bytecode.addStep('option', args);
|
|
850
920
|
return this;
|
|
851
921
|
}
|
|
852
|
-
|
|
922
|
+
|
|
853
923
|
/**
|
|
854
924
|
* Graph traversal optional method.
|
|
855
925
|
* @param {...Object} args
|
|
@@ -859,7 +929,7 @@ class GraphTraversal extends Traversal {
|
|
|
859
929
|
this.bytecode.addStep('optional', args);
|
|
860
930
|
return this;
|
|
861
931
|
}
|
|
862
|
-
|
|
932
|
+
|
|
863
933
|
/**
|
|
864
934
|
* Graph traversal or method.
|
|
865
935
|
* @param {...Object} args
|
|
@@ -869,7 +939,7 @@ class GraphTraversal extends Traversal {
|
|
|
869
939
|
this.bytecode.addStep('or', args);
|
|
870
940
|
return this;
|
|
871
941
|
}
|
|
872
|
-
|
|
942
|
+
|
|
873
943
|
/**
|
|
874
944
|
* Graph traversal order method.
|
|
875
945
|
* @param {...Object} args
|
|
@@ -879,7 +949,7 @@ class GraphTraversal extends Traversal {
|
|
|
879
949
|
this.bytecode.addStep('order', args);
|
|
880
950
|
return this;
|
|
881
951
|
}
|
|
882
|
-
|
|
952
|
+
|
|
883
953
|
/**
|
|
884
954
|
* Graph traversal otherV method.
|
|
885
955
|
* @param {...Object} args
|
|
@@ -889,7 +959,7 @@ class GraphTraversal extends Traversal {
|
|
|
889
959
|
this.bytecode.addStep('otherV', args);
|
|
890
960
|
return this;
|
|
891
961
|
}
|
|
892
|
-
|
|
962
|
+
|
|
893
963
|
/**
|
|
894
964
|
* Graph traversal out method.
|
|
895
965
|
* @param {...Object} args
|
|
@@ -899,7 +969,7 @@ class GraphTraversal extends Traversal {
|
|
|
899
969
|
this.bytecode.addStep('out', args);
|
|
900
970
|
return this;
|
|
901
971
|
}
|
|
902
|
-
|
|
972
|
+
|
|
903
973
|
/**
|
|
904
974
|
* Graph traversal outE method.
|
|
905
975
|
* @param {...Object} args
|
|
@@ -909,7 +979,7 @@ class GraphTraversal extends Traversal {
|
|
|
909
979
|
this.bytecode.addStep('outE', args);
|
|
910
980
|
return this;
|
|
911
981
|
}
|
|
912
|
-
|
|
982
|
+
|
|
913
983
|
/**
|
|
914
984
|
* Graph traversal outV method.
|
|
915
985
|
* @param {...Object} args
|
|
@@ -919,7 +989,7 @@ class GraphTraversal extends Traversal {
|
|
|
919
989
|
this.bytecode.addStep('outV', args);
|
|
920
990
|
return this;
|
|
921
991
|
}
|
|
922
|
-
|
|
992
|
+
|
|
923
993
|
/**
|
|
924
994
|
* Graph traversal pageRank method.
|
|
925
995
|
* @param {...Object} args
|
|
@@ -929,7 +999,7 @@ class GraphTraversal extends Traversal {
|
|
|
929
999
|
this.bytecode.addStep('pageRank', args);
|
|
930
1000
|
return this;
|
|
931
1001
|
}
|
|
932
|
-
|
|
1002
|
+
|
|
933
1003
|
/**
|
|
934
1004
|
* Graph traversal path method.
|
|
935
1005
|
* @param {...Object} args
|
|
@@ -939,7 +1009,7 @@ class GraphTraversal extends Traversal {
|
|
|
939
1009
|
this.bytecode.addStep('path', args);
|
|
940
1010
|
return this;
|
|
941
1011
|
}
|
|
942
|
-
|
|
1012
|
+
|
|
943
1013
|
/**
|
|
944
1014
|
* Graph traversal peerPressure method.
|
|
945
1015
|
* @param {...Object} args
|
|
@@ -949,7 +1019,7 @@ class GraphTraversal extends Traversal {
|
|
|
949
1019
|
this.bytecode.addStep('peerPressure', args);
|
|
950
1020
|
return this;
|
|
951
1021
|
}
|
|
952
|
-
|
|
1022
|
+
|
|
953
1023
|
/**
|
|
954
1024
|
* Graph traversal profile method.
|
|
955
1025
|
* @param {...Object} args
|
|
@@ -959,7 +1029,7 @@ class GraphTraversal extends Traversal {
|
|
|
959
1029
|
this.bytecode.addStep('profile', args);
|
|
960
1030
|
return this;
|
|
961
1031
|
}
|
|
962
|
-
|
|
1032
|
+
|
|
963
1033
|
/**
|
|
964
1034
|
* Graph traversal program method.
|
|
965
1035
|
* @param {...Object} args
|
|
@@ -969,7 +1039,7 @@ class GraphTraversal extends Traversal {
|
|
|
969
1039
|
this.bytecode.addStep('program', args);
|
|
970
1040
|
return this;
|
|
971
1041
|
}
|
|
972
|
-
|
|
1042
|
+
|
|
973
1043
|
/**
|
|
974
1044
|
* Graph traversal project method.
|
|
975
1045
|
* @param {...Object} args
|
|
@@ -979,7 +1049,7 @@ class GraphTraversal extends Traversal {
|
|
|
979
1049
|
this.bytecode.addStep('project', args);
|
|
980
1050
|
return this;
|
|
981
1051
|
}
|
|
982
|
-
|
|
1052
|
+
|
|
983
1053
|
/**
|
|
984
1054
|
* Graph traversal properties method.
|
|
985
1055
|
* @param {...Object} args
|
|
@@ -989,7 +1059,7 @@ class GraphTraversal extends Traversal {
|
|
|
989
1059
|
this.bytecode.addStep('properties', args);
|
|
990
1060
|
return this;
|
|
991
1061
|
}
|
|
992
|
-
|
|
1062
|
+
|
|
993
1063
|
/**
|
|
994
1064
|
* Graph traversal property method.
|
|
995
1065
|
* @param {...Object} args
|
|
@@ -999,7 +1069,7 @@ class GraphTraversal extends Traversal {
|
|
|
999
1069
|
this.bytecode.addStep('property', args);
|
|
1000
1070
|
return this;
|
|
1001
1071
|
}
|
|
1002
|
-
|
|
1072
|
+
|
|
1003
1073
|
/**
|
|
1004
1074
|
* Graph traversal propertyMap method.
|
|
1005
1075
|
* @param {...Object} args
|
|
@@ -1009,7 +1079,7 @@ class GraphTraversal extends Traversal {
|
|
|
1009
1079
|
this.bytecode.addStep('propertyMap', args);
|
|
1010
1080
|
return this;
|
|
1011
1081
|
}
|
|
1012
|
-
|
|
1082
|
+
|
|
1013
1083
|
/**
|
|
1014
1084
|
* Graph traversal range method.
|
|
1015
1085
|
* @param {...Object} args
|
|
@@ -1019,7 +1089,7 @@ class GraphTraversal extends Traversal {
|
|
|
1019
1089
|
this.bytecode.addStep('range', args);
|
|
1020
1090
|
return this;
|
|
1021
1091
|
}
|
|
1022
|
-
|
|
1092
|
+
|
|
1023
1093
|
/**
|
|
1024
1094
|
* Graph traversal read method.
|
|
1025
1095
|
* @param {...Object} args
|
|
@@ -1029,7 +1099,7 @@ class GraphTraversal extends Traversal {
|
|
|
1029
1099
|
this.bytecode.addStep('read', args);
|
|
1030
1100
|
return this;
|
|
1031
1101
|
}
|
|
1032
|
-
|
|
1102
|
+
|
|
1033
1103
|
/**
|
|
1034
1104
|
* Graph traversal repeat method.
|
|
1035
1105
|
* @param {...Object} args
|
|
@@ -1039,7 +1109,7 @@ class GraphTraversal extends Traversal {
|
|
|
1039
1109
|
this.bytecode.addStep('repeat', args);
|
|
1040
1110
|
return this;
|
|
1041
1111
|
}
|
|
1042
|
-
|
|
1112
|
+
|
|
1043
1113
|
/**
|
|
1044
1114
|
* Graph traversal sack method.
|
|
1045
1115
|
* @param {...Object} args
|
|
@@ -1049,7 +1119,7 @@ class GraphTraversal extends Traversal {
|
|
|
1049
1119
|
this.bytecode.addStep('sack', args);
|
|
1050
1120
|
return this;
|
|
1051
1121
|
}
|
|
1052
|
-
|
|
1122
|
+
|
|
1053
1123
|
/**
|
|
1054
1124
|
* Graph traversal sample method.
|
|
1055
1125
|
* @param {...Object} args
|
|
@@ -1059,7 +1129,7 @@ class GraphTraversal extends Traversal {
|
|
|
1059
1129
|
this.bytecode.addStep('sample', args);
|
|
1060
1130
|
return this;
|
|
1061
1131
|
}
|
|
1062
|
-
|
|
1132
|
+
|
|
1063
1133
|
/**
|
|
1064
1134
|
* Graph traversal select method.
|
|
1065
1135
|
* @param {...Object} args
|
|
@@ -1069,7 +1139,7 @@ class GraphTraversal extends Traversal {
|
|
|
1069
1139
|
this.bytecode.addStep('select', args);
|
|
1070
1140
|
return this;
|
|
1071
1141
|
}
|
|
1072
|
-
|
|
1142
|
+
|
|
1073
1143
|
/**
|
|
1074
1144
|
* Graph traversal shortestPath method.
|
|
1075
1145
|
* @param {...Object} args
|
|
@@ -1079,7 +1149,7 @@ class GraphTraversal extends Traversal {
|
|
|
1079
1149
|
this.bytecode.addStep('shortestPath', args);
|
|
1080
1150
|
return this;
|
|
1081
1151
|
}
|
|
1082
|
-
|
|
1152
|
+
|
|
1083
1153
|
/**
|
|
1084
1154
|
* Graph traversal sideEffect method.
|
|
1085
1155
|
* @param {...Object} args
|
|
@@ -1089,7 +1159,7 @@ class GraphTraversal extends Traversal {
|
|
|
1089
1159
|
this.bytecode.addStep('sideEffect', args);
|
|
1090
1160
|
return this;
|
|
1091
1161
|
}
|
|
1092
|
-
|
|
1162
|
+
|
|
1093
1163
|
/**
|
|
1094
1164
|
* Graph traversal simplePath method.
|
|
1095
1165
|
* @param {...Object} args
|
|
@@ -1099,7 +1169,7 @@ class GraphTraversal extends Traversal {
|
|
|
1099
1169
|
this.bytecode.addStep('simplePath', args);
|
|
1100
1170
|
return this;
|
|
1101
1171
|
}
|
|
1102
|
-
|
|
1172
|
+
|
|
1103
1173
|
/**
|
|
1104
1174
|
* Graph traversal skip method.
|
|
1105
1175
|
* @param {...Object} args
|
|
@@ -1109,7 +1179,7 @@ class GraphTraversal extends Traversal {
|
|
|
1109
1179
|
this.bytecode.addStep('skip', args);
|
|
1110
1180
|
return this;
|
|
1111
1181
|
}
|
|
1112
|
-
|
|
1182
|
+
|
|
1113
1183
|
/**
|
|
1114
1184
|
* Graph traversal store method.
|
|
1115
1185
|
* @param {...Object} args
|
|
@@ -1119,7 +1189,7 @@ class GraphTraversal extends Traversal {
|
|
|
1119
1189
|
this.bytecode.addStep('store', args);
|
|
1120
1190
|
return this;
|
|
1121
1191
|
}
|
|
1122
|
-
|
|
1192
|
+
|
|
1123
1193
|
/**
|
|
1124
1194
|
* Graph traversal subgraph method.
|
|
1125
1195
|
* @param {...Object} args
|
|
@@ -1129,7 +1199,7 @@ class GraphTraversal extends Traversal {
|
|
|
1129
1199
|
this.bytecode.addStep('subgraph', args);
|
|
1130
1200
|
return this;
|
|
1131
1201
|
}
|
|
1132
|
-
|
|
1202
|
+
|
|
1133
1203
|
/**
|
|
1134
1204
|
* Graph traversal sum method.
|
|
1135
1205
|
* @param {...Object} args
|
|
@@ -1139,7 +1209,7 @@ class GraphTraversal extends Traversal {
|
|
|
1139
1209
|
this.bytecode.addStep('sum', args);
|
|
1140
1210
|
return this;
|
|
1141
1211
|
}
|
|
1142
|
-
|
|
1212
|
+
|
|
1143
1213
|
/**
|
|
1144
1214
|
* Graph traversal tail method.
|
|
1145
1215
|
* @param {...Object} args
|
|
@@ -1149,7 +1219,7 @@ class GraphTraversal extends Traversal {
|
|
|
1149
1219
|
this.bytecode.addStep('tail', args);
|
|
1150
1220
|
return this;
|
|
1151
1221
|
}
|
|
1152
|
-
|
|
1222
|
+
|
|
1153
1223
|
/**
|
|
1154
1224
|
* Graph traversal timeLimit method.
|
|
1155
1225
|
* @param {...Object} args
|
|
@@ -1159,7 +1229,7 @@ class GraphTraversal extends Traversal {
|
|
|
1159
1229
|
this.bytecode.addStep('timeLimit', args);
|
|
1160
1230
|
return this;
|
|
1161
1231
|
}
|
|
1162
|
-
|
|
1232
|
+
|
|
1163
1233
|
/**
|
|
1164
1234
|
* Graph traversal times method.
|
|
1165
1235
|
* @param {...Object} args
|
|
@@ -1169,7 +1239,7 @@ class GraphTraversal extends Traversal {
|
|
|
1169
1239
|
this.bytecode.addStep('times', args);
|
|
1170
1240
|
return this;
|
|
1171
1241
|
}
|
|
1172
|
-
|
|
1242
|
+
|
|
1173
1243
|
/**
|
|
1174
1244
|
* Graph traversal to method.
|
|
1175
1245
|
* @param {...Object} args
|
|
@@ -1179,7 +1249,7 @@ class GraphTraversal extends Traversal {
|
|
|
1179
1249
|
this.bytecode.addStep('to', args);
|
|
1180
1250
|
return this;
|
|
1181
1251
|
}
|
|
1182
|
-
|
|
1252
|
+
|
|
1183
1253
|
/**
|
|
1184
1254
|
* Graph traversal toE method.
|
|
1185
1255
|
* @param {...Object} args
|
|
@@ -1189,7 +1259,7 @@ class GraphTraversal extends Traversal {
|
|
|
1189
1259
|
this.bytecode.addStep('toE', args);
|
|
1190
1260
|
return this;
|
|
1191
1261
|
}
|
|
1192
|
-
|
|
1262
|
+
|
|
1193
1263
|
/**
|
|
1194
1264
|
* Graph traversal toV method.
|
|
1195
1265
|
* @param {...Object} args
|
|
@@ -1199,7 +1269,7 @@ class GraphTraversal extends Traversal {
|
|
|
1199
1269
|
this.bytecode.addStep('toV', args);
|
|
1200
1270
|
return this;
|
|
1201
1271
|
}
|
|
1202
|
-
|
|
1272
|
+
|
|
1203
1273
|
/**
|
|
1204
1274
|
* Graph traversal tree method.
|
|
1205
1275
|
* @param {...Object} args
|
|
@@ -1209,7 +1279,7 @@ class GraphTraversal extends Traversal {
|
|
|
1209
1279
|
this.bytecode.addStep('tree', args);
|
|
1210
1280
|
return this;
|
|
1211
1281
|
}
|
|
1212
|
-
|
|
1282
|
+
|
|
1213
1283
|
/**
|
|
1214
1284
|
* Graph traversal unfold method.
|
|
1215
1285
|
* @param {...Object} args
|
|
@@ -1219,7 +1289,7 @@ class GraphTraversal extends Traversal {
|
|
|
1219
1289
|
this.bytecode.addStep('unfold', args);
|
|
1220
1290
|
return this;
|
|
1221
1291
|
}
|
|
1222
|
-
|
|
1292
|
+
|
|
1223
1293
|
/**
|
|
1224
1294
|
* Graph traversal union method.
|
|
1225
1295
|
* @param {...Object} args
|
|
@@ -1229,7 +1299,7 @@ class GraphTraversal extends Traversal {
|
|
|
1229
1299
|
this.bytecode.addStep('union', args);
|
|
1230
1300
|
return this;
|
|
1231
1301
|
}
|
|
1232
|
-
|
|
1302
|
+
|
|
1233
1303
|
/**
|
|
1234
1304
|
* Graph traversal until method.
|
|
1235
1305
|
* @param {...Object} args
|
|
@@ -1239,7 +1309,7 @@ class GraphTraversal extends Traversal {
|
|
|
1239
1309
|
this.bytecode.addStep('until', args);
|
|
1240
1310
|
return this;
|
|
1241
1311
|
}
|
|
1242
|
-
|
|
1312
|
+
|
|
1243
1313
|
/**
|
|
1244
1314
|
* Graph traversal value method.
|
|
1245
1315
|
* @param {...Object} args
|
|
@@ -1249,7 +1319,7 @@ class GraphTraversal extends Traversal {
|
|
|
1249
1319
|
this.bytecode.addStep('value', args);
|
|
1250
1320
|
return this;
|
|
1251
1321
|
}
|
|
1252
|
-
|
|
1322
|
+
|
|
1253
1323
|
/**
|
|
1254
1324
|
* Graph traversal valueMap method.
|
|
1255
1325
|
* @param {...Object} args
|
|
@@ -1259,7 +1329,7 @@ class GraphTraversal extends Traversal {
|
|
|
1259
1329
|
this.bytecode.addStep('valueMap', args);
|
|
1260
1330
|
return this;
|
|
1261
1331
|
}
|
|
1262
|
-
|
|
1332
|
+
|
|
1263
1333
|
/**
|
|
1264
1334
|
* Graph traversal values method.
|
|
1265
1335
|
* @param {...Object} args
|
|
@@ -1269,7 +1339,7 @@ class GraphTraversal extends Traversal {
|
|
|
1269
1339
|
this.bytecode.addStep('values', args);
|
|
1270
1340
|
return this;
|
|
1271
1341
|
}
|
|
1272
|
-
|
|
1342
|
+
|
|
1273
1343
|
/**
|
|
1274
1344
|
* Graph traversal where method.
|
|
1275
1345
|
* @param {...Object} args
|
|
@@ -1279,7 +1349,7 @@ class GraphTraversal extends Traversal {
|
|
|
1279
1349
|
this.bytecode.addStep('where', args);
|
|
1280
1350
|
return this;
|
|
1281
1351
|
}
|
|
1282
|
-
|
|
1352
|
+
|
|
1283
1353
|
/**
|
|
1284
1354
|
* Graph traversal with method.
|
|
1285
1355
|
* @param {...Object} args
|
|
@@ -1289,7 +1359,7 @@ class GraphTraversal extends Traversal {
|
|
|
1289
1359
|
this.bytecode.addStep('with', args);
|
|
1290
1360
|
return this;
|
|
1291
1361
|
}
|
|
1292
|
-
|
|
1362
|
+
|
|
1293
1363
|
/**
|
|
1294
1364
|
* Graph traversal write method.
|
|
1295
1365
|
* @param {...Object} args
|
|
@@ -1299,7 +1369,6 @@ class GraphTraversal extends Traversal {
|
|
|
1299
1369
|
this.bytecode.addStep('write', args);
|
|
1300
1370
|
return this;
|
|
1301
1371
|
}
|
|
1302
|
-
|
|
1303
1372
|
}
|
|
1304
1373
|
|
|
1305
1374
|
function callOnEmptyTraversal(fnName, args) {
|
|
@@ -1401,14 +1470,15 @@ const statics = {
|
|
|
1401
1470
|
value: (...args) => callOnEmptyTraversal('value', args),
|
|
1402
1471
|
valueMap: (...args) => callOnEmptyTraversal('valueMap', args),
|
|
1403
1472
|
values: (...args) => callOnEmptyTraversal('values', args),
|
|
1404
|
-
where: (...args) => callOnEmptyTraversal('where', args)
|
|
1473
|
+
where: (...args) => callOnEmptyTraversal('where', args),
|
|
1405
1474
|
};
|
|
1406
1475
|
|
|
1407
1476
|
module.exports = {
|
|
1408
1477
|
GraphTraversal,
|
|
1409
1478
|
GraphTraversalSource,
|
|
1410
|
-
statics
|
|
1411
|
-
}
|
|
1479
|
+
statics,
|
|
1480
|
+
};
|
|
1481
|
+
</code></pre>
|
|
1412
1482
|
</article>
|
|
1413
1483
|
</section>
|
|
1414
1484
|
|
|
@@ -1418,13 +1488,13 @@ module.exports = {
|
|
|
1418
1488
|
</div>
|
|
1419
1489
|
|
|
1420
1490
|
<nav>
|
|
1421
|
-
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AnonymousTraversalSource.html">AnonymousTraversalSource</a></li><li><a href="Authenticator.html">Authenticator</a></li><li><a href="Bytecode.html">Bytecode</a></li><li><a href="Client.html">Client</a></li><li><a href="Connection.html">Connection</a></li><li><a href="DriverRemoteConnection.html">DriverRemoteConnection</a></li><li><a href="EdgeLabelVerificationStrategy.html">EdgeLabelVerificationStrategy</a></li><li><a href="Graph.html">Graph</a></li><li><a href="GraphSON2Reader.html">GraphSON2Reader</a></li><li><a href="GraphSON2Writer.html">GraphSON2Writer</a></li><li><a href="GraphSON3Reader.html">GraphSON3Reader</a></li><li><a href="GraphSON3Writer.html">GraphSON3Writer</a></li><li><a href="GraphTraversal.html">GraphTraversal</a></li><li><a href="GraphTraversalSource.html">GraphTraversalSource</a></li><li><a href="HaltedTraverserStrategy.html">HaltedTraverserStrategy</a></li><li><a href="MatchAlgorithmStrategy.html">MatchAlgorithmStrategy</a></li><li><a href="P.html">P</a></li><li><a href="PartitionStrategy.html">PartitionStrategy</a></li><li><a href="Path.html">Path</a></li><li><a href="PlainTextSaslAuthenticator.html">PlainTextSaslAuthenticator</a></li><li><a href="RemoteConnection.html">RemoteConnection</a></li><li><a href="RemoteStrategy.html">RemoteStrategy</a></li><li><a href="RemoteTraversal.html">RemoteTraversal</a></li><li><a href="ReservedKeysVerificationStrategy.html">ReservedKeysVerificationStrategy</a></li><li><a href="ResponseError.html">ResponseError</a></li><li><a href="ResultSet.html">ResultSet</a></li><li><a href="SaslAuthenticator.html">SaslAuthenticator</a></li><li><a href="SaslMechanismBase.html">SaslMechanismBase</a></li><li><a href="SaslMechanismPlain.html">SaslMechanismPlain</a></li><li><a href="SubgraphStrategy.html">SubgraphStrategy</a></li><li><a href="TextP.html">TextP</a></li><li><a href="Translator.html">Translator</a></li><li><a href="TraversalStrategies.html">TraversalStrategies</a></li><li><a href="TraversalStrategy.html">TraversalStrategy</a></li><li><a href="TypeSerializer.html">TypeSerializer</a></li></ul><h3>Global</h3><ul><li><a href="global.html#statics">statics</a></li></ul>
|
|
1491
|
+
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AnonymousTraversalSource.html">AnonymousTraversalSource</a></li><li><a href="Authenticator.html">Authenticator</a></li><li><a href="Bytecode.html">Bytecode</a></li><li><a href="Client.html">Client</a></li><li><a href="Connection.html">Connection</a></li><li><a href="DriverRemoteConnection.html">DriverRemoteConnection</a></li><li><a href="EdgeLabelVerificationStrategy.html">EdgeLabelVerificationStrategy</a></li><li><a href="Graph.html">Graph</a></li><li><a href="GraphSON2Reader.html">GraphSON2Reader</a></li><li><a href="GraphSON2Writer.html">GraphSON2Writer</a></li><li><a href="GraphSON3Reader.html">GraphSON3Reader</a></li><li><a href="GraphSON3Writer.html">GraphSON3Writer</a></li><li><a href="GraphTraversal.html">GraphTraversal</a></li><li><a href="GraphTraversalSource.html">GraphTraversalSource</a></li><li><a href="HaltedTraverserStrategy.html">HaltedTraverserStrategy</a></li><li><a href="MatchAlgorithmStrategy.html">MatchAlgorithmStrategy</a></li><li><a href="P.html">P</a></li><li><a href="PartitionStrategy.html">PartitionStrategy</a></li><li><a href="Path.html">Path</a></li><li><a href="PlainTextSaslAuthenticator.html">PlainTextSaslAuthenticator</a></li><li><a href="ProductiveByStrategy.html">ProductiveByStrategy</a></li><li><a href="RemoteConnection.html">RemoteConnection</a></li><li><a href="RemoteStrategy.html">RemoteStrategy</a></li><li><a href="RemoteTraversal.html">RemoteTraversal</a></li><li><a href="ReservedKeysVerificationStrategy.html">ReservedKeysVerificationStrategy</a></li><li><a href="ResponseError.html">ResponseError</a></li><li><a href="ResultSet.html">ResultSet</a></li><li><a href="SaslAuthenticator.html">SaslAuthenticator</a></li><li><a href="SaslMechanismBase.html">SaslMechanismBase</a></li><li><a href="SaslMechanismPlain.html">SaslMechanismPlain</a></li><li><a href="SubgraphStrategy.html">SubgraphStrategy</a></li><li><a href="TextP.html">TextP</a></li><li><a href="Transaction.html">Transaction</a></li><li><a href="Translator.html">Translator</a></li><li><a href="TraversalStrategies.html">TraversalStrategies</a></li><li><a href="TraversalStrategy.html">TraversalStrategy</a></li><li><a href="TypeSerializer.html">TypeSerializer</a></li></ul><h3>Global</h3><ul><li><a href="global.html#statics">statics</a></li></ul>
|
|
1422
1492
|
</nav>
|
|
1423
1493
|
|
|
1424
1494
|
<br class="clear">
|
|
1425
1495
|
|
|
1426
1496
|
<footer>
|
|
1427
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.
|
|
1497
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon Apr 11 2022 07:21:14 GMT-0400 (Eastern Daylight Time)
|
|
1428
1498
|
</footer>
|
|
1429
1499
|
|
|
1430
1500
|
<script> prettyPrint(); </script>
|