tempest_db 0.12.1
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.
- data/lib/base_thrift_client.rb +37 -0
- data/lib/gen/tempest_constants.rb +9 -0
- data/lib/gen/tempest_d_b_service.rb +481 -0
- data/lib/gen/tempest_db_constants.rb +13 -0
- data/lib/gen/tempest_db_types.rb +129 -0
- data/lib/gen/tempest_graph_service.rb +701 -0
- data/lib/gen/tempest_types.rb +93 -0
- data/lib/tempest_db.rb +82 -0
- metadata +55 -0
@@ -0,0 +1,701 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.3)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
require 'tempest_types'
|
9
|
+
|
10
|
+
module TempestGraphService
|
11
|
+
class Client
|
12
|
+
include ::Thrift::Client
|
13
|
+
|
14
|
+
def outDegree(edgeType, id)
|
15
|
+
send_outDegree(edgeType, id)
|
16
|
+
return recv_outDegree()
|
17
|
+
end
|
18
|
+
|
19
|
+
def send_outDegree(edgeType, id)
|
20
|
+
send_message('outDegree', OutDegree_args, :edgeType => edgeType, :id => id)
|
21
|
+
end
|
22
|
+
|
23
|
+
def recv_outDegree()
|
24
|
+
result = receive_message(OutDegree_result)
|
25
|
+
return result.success unless result.success.nil?
|
26
|
+
raise result.ex1 unless result.ex1.nil?
|
27
|
+
raise result.ex2 unless result.ex2.nil?
|
28
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'outDegree failed: unknown result')
|
29
|
+
end
|
30
|
+
|
31
|
+
def inDegree(edgeType, id)
|
32
|
+
send_inDegree(edgeType, id)
|
33
|
+
return recv_inDegree()
|
34
|
+
end
|
35
|
+
|
36
|
+
def send_inDegree(edgeType, id)
|
37
|
+
send_message('inDegree', InDegree_args, :edgeType => edgeType, :id => id)
|
38
|
+
end
|
39
|
+
|
40
|
+
def recv_inDegree()
|
41
|
+
result = receive_message(InDegree_result)
|
42
|
+
return result.success unless result.success.nil?
|
43
|
+
raise result.ex1 unless result.ex1.nil?
|
44
|
+
raise result.ex2 unless result.ex2.nil?
|
45
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'inDegree failed: unknown result')
|
46
|
+
end
|
47
|
+
|
48
|
+
def outNeighbors(edgeType, id)
|
49
|
+
send_outNeighbors(edgeType, id)
|
50
|
+
return recv_outNeighbors()
|
51
|
+
end
|
52
|
+
|
53
|
+
def send_outNeighbors(edgeType, id)
|
54
|
+
send_message('outNeighbors', OutNeighbors_args, :edgeType => edgeType, :id => id)
|
55
|
+
end
|
56
|
+
|
57
|
+
def recv_outNeighbors()
|
58
|
+
result = receive_message(OutNeighbors_result)
|
59
|
+
return result.success unless result.success.nil?
|
60
|
+
raise result.ex1 unless result.ex1.nil?
|
61
|
+
raise result.ex2 unless result.ex2.nil?
|
62
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'outNeighbors failed: unknown result')
|
63
|
+
end
|
64
|
+
|
65
|
+
def inNeighbors(edgeType, id)
|
66
|
+
send_inNeighbors(edgeType, id)
|
67
|
+
return recv_inNeighbors()
|
68
|
+
end
|
69
|
+
|
70
|
+
def send_inNeighbors(edgeType, id)
|
71
|
+
send_message('inNeighbors', InNeighbors_args, :edgeType => edgeType, :id => id)
|
72
|
+
end
|
73
|
+
|
74
|
+
def recv_inNeighbors()
|
75
|
+
result = receive_message(InNeighbors_result)
|
76
|
+
return result.success unless result.success.nil?
|
77
|
+
raise result.ex1 unless result.ex1.nil?
|
78
|
+
raise result.ex2 unless result.ex2.nil?
|
79
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'inNeighbors failed: unknown result')
|
80
|
+
end
|
81
|
+
|
82
|
+
def outNeighbor(edgeType, id, i)
|
83
|
+
send_outNeighbor(edgeType, id, i)
|
84
|
+
return recv_outNeighbor()
|
85
|
+
end
|
86
|
+
|
87
|
+
def send_outNeighbor(edgeType, id, i)
|
88
|
+
send_message('outNeighbor', OutNeighbor_args, :edgeType => edgeType, :id => id, :i => i)
|
89
|
+
end
|
90
|
+
|
91
|
+
def recv_outNeighbor()
|
92
|
+
result = receive_message(OutNeighbor_result)
|
93
|
+
return result.success unless result.success.nil?
|
94
|
+
raise result.ex1 unless result.ex1.nil?
|
95
|
+
raise result.ex2 unless result.ex2.nil?
|
96
|
+
raise result.ex3 unless result.ex3.nil?
|
97
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'outNeighbor failed: unknown result')
|
98
|
+
end
|
99
|
+
|
100
|
+
def inNeighbor(edgeType, id, i)
|
101
|
+
send_inNeighbor(edgeType, id, i)
|
102
|
+
return recv_inNeighbor()
|
103
|
+
end
|
104
|
+
|
105
|
+
def send_inNeighbor(edgeType, id, i)
|
106
|
+
send_message('inNeighbor', InNeighbor_args, :edgeType => edgeType, :id => id, :i => i)
|
107
|
+
end
|
108
|
+
|
109
|
+
def recv_inNeighbor()
|
110
|
+
result = receive_message(InNeighbor_result)
|
111
|
+
return result.success unless result.success.nil?
|
112
|
+
raise result.ex1 unless result.ex1.nil?
|
113
|
+
raise result.ex2 unless result.ex2.nil?
|
114
|
+
raise result.ex3 unless result.ex3.nil?
|
115
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'inNeighbor failed: unknown result')
|
116
|
+
end
|
117
|
+
|
118
|
+
def maxNodeId(edgeType)
|
119
|
+
send_maxNodeId(edgeType)
|
120
|
+
return recv_maxNodeId()
|
121
|
+
end
|
122
|
+
|
123
|
+
def send_maxNodeId(edgeType)
|
124
|
+
send_message('maxNodeId', MaxNodeId_args, :edgeType => edgeType)
|
125
|
+
end
|
126
|
+
|
127
|
+
def recv_maxNodeId()
|
128
|
+
result = receive_message(MaxNodeId_result)
|
129
|
+
return result.success unless result.success.nil?
|
130
|
+
raise result.ex unless result.ex.nil?
|
131
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'maxNodeId failed: unknown result')
|
132
|
+
end
|
133
|
+
|
134
|
+
def nodeCount(edgeType)
|
135
|
+
send_nodeCount(edgeType)
|
136
|
+
return recv_nodeCount()
|
137
|
+
end
|
138
|
+
|
139
|
+
def send_nodeCount(edgeType)
|
140
|
+
send_message('nodeCount', NodeCount_args, :edgeType => edgeType)
|
141
|
+
end
|
142
|
+
|
143
|
+
def recv_nodeCount()
|
144
|
+
result = receive_message(NodeCount_result)
|
145
|
+
return result.success unless result.success.nil?
|
146
|
+
raise result.ex unless result.ex.nil?
|
147
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'nodeCount failed: unknown result')
|
148
|
+
end
|
149
|
+
|
150
|
+
def edgeCount(edgeType)
|
151
|
+
send_edgeCount(edgeType)
|
152
|
+
return recv_edgeCount()
|
153
|
+
end
|
154
|
+
|
155
|
+
def send_edgeCount(edgeType)
|
156
|
+
send_message('edgeCount', EdgeCount_args, :edgeType => edgeType)
|
157
|
+
end
|
158
|
+
|
159
|
+
def recv_edgeCount()
|
160
|
+
result = receive_message(EdgeCount_result)
|
161
|
+
return result.success unless result.success.nil?
|
162
|
+
raise result.ex unless result.ex.nil?
|
163
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'edgeCount failed: unknown result')
|
164
|
+
end
|
165
|
+
|
166
|
+
def pprSingleTarget(edgeType, seedNodeIds, targetNodeId, biPPRParams)
|
167
|
+
send_pprSingleTarget(edgeType, seedNodeIds, targetNodeId, biPPRParams)
|
168
|
+
return recv_pprSingleTarget()
|
169
|
+
end
|
170
|
+
|
171
|
+
def send_pprSingleTarget(edgeType, seedNodeIds, targetNodeId, biPPRParams)
|
172
|
+
send_message('pprSingleTarget', PprSingleTarget_args, :edgeType => edgeType, :seedNodeIds => seedNodeIds, :targetNodeId => targetNodeId, :biPPRParams => biPPRParams)
|
173
|
+
end
|
174
|
+
|
175
|
+
def recv_pprSingleTarget()
|
176
|
+
result = receive_message(PprSingleTarget_result)
|
177
|
+
return result.success unless result.success.nil?
|
178
|
+
raise result.ex1 unless result.ex1.nil?
|
179
|
+
raise result.ex2 unless result.ex2.nil?
|
180
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'pprSingleTarget failed: unknown result')
|
181
|
+
end
|
182
|
+
|
183
|
+
end
|
184
|
+
|
185
|
+
class Processor
|
186
|
+
include ::Thrift::Processor
|
187
|
+
|
188
|
+
def process_outDegree(seqid, iprot, oprot)
|
189
|
+
args = read_args(iprot, OutDegree_args)
|
190
|
+
result = OutDegree_result.new()
|
191
|
+
begin
|
192
|
+
result.success = @handler.outDegree(args.edgeType, args.id)
|
193
|
+
rescue ::InvalidNodeIdException => ex1
|
194
|
+
result.ex1 = ex1
|
195
|
+
rescue ::InvalidArgumentException => ex2
|
196
|
+
result.ex2 = ex2
|
197
|
+
end
|
198
|
+
write_result(result, oprot, 'outDegree', seqid)
|
199
|
+
end
|
200
|
+
|
201
|
+
def process_inDegree(seqid, iprot, oprot)
|
202
|
+
args = read_args(iprot, InDegree_args)
|
203
|
+
result = InDegree_result.new()
|
204
|
+
begin
|
205
|
+
result.success = @handler.inDegree(args.edgeType, args.id)
|
206
|
+
rescue ::InvalidNodeIdException => ex1
|
207
|
+
result.ex1 = ex1
|
208
|
+
rescue ::InvalidArgumentException => ex2
|
209
|
+
result.ex2 = ex2
|
210
|
+
end
|
211
|
+
write_result(result, oprot, 'inDegree', seqid)
|
212
|
+
end
|
213
|
+
|
214
|
+
def process_outNeighbors(seqid, iprot, oprot)
|
215
|
+
args = read_args(iprot, OutNeighbors_args)
|
216
|
+
result = OutNeighbors_result.new()
|
217
|
+
begin
|
218
|
+
result.success = @handler.outNeighbors(args.edgeType, args.id)
|
219
|
+
rescue ::InvalidNodeIdException => ex1
|
220
|
+
result.ex1 = ex1
|
221
|
+
rescue ::InvalidArgumentException => ex2
|
222
|
+
result.ex2 = ex2
|
223
|
+
end
|
224
|
+
write_result(result, oprot, 'outNeighbors', seqid)
|
225
|
+
end
|
226
|
+
|
227
|
+
def process_inNeighbors(seqid, iprot, oprot)
|
228
|
+
args = read_args(iprot, InNeighbors_args)
|
229
|
+
result = InNeighbors_result.new()
|
230
|
+
begin
|
231
|
+
result.success = @handler.inNeighbors(args.edgeType, args.id)
|
232
|
+
rescue ::InvalidNodeIdException => ex1
|
233
|
+
result.ex1 = ex1
|
234
|
+
rescue ::InvalidArgumentException => ex2
|
235
|
+
result.ex2 = ex2
|
236
|
+
end
|
237
|
+
write_result(result, oprot, 'inNeighbors', seqid)
|
238
|
+
end
|
239
|
+
|
240
|
+
def process_outNeighbor(seqid, iprot, oprot)
|
241
|
+
args = read_args(iprot, OutNeighbor_args)
|
242
|
+
result = OutNeighbor_result.new()
|
243
|
+
begin
|
244
|
+
result.success = @handler.outNeighbor(args.edgeType, args.id, args.i)
|
245
|
+
rescue ::InvalidNodeIdException => ex1
|
246
|
+
result.ex1 = ex1
|
247
|
+
rescue ::InvalidIndexException => ex2
|
248
|
+
result.ex2 = ex2
|
249
|
+
rescue ::InvalidArgumentException => ex3
|
250
|
+
result.ex3 = ex3
|
251
|
+
end
|
252
|
+
write_result(result, oprot, 'outNeighbor', seqid)
|
253
|
+
end
|
254
|
+
|
255
|
+
def process_inNeighbor(seqid, iprot, oprot)
|
256
|
+
args = read_args(iprot, InNeighbor_args)
|
257
|
+
result = InNeighbor_result.new()
|
258
|
+
begin
|
259
|
+
result.success = @handler.inNeighbor(args.edgeType, args.id, args.i)
|
260
|
+
rescue ::InvalidNodeIdException => ex1
|
261
|
+
result.ex1 = ex1
|
262
|
+
rescue ::InvalidIndexException => ex2
|
263
|
+
result.ex2 = ex2
|
264
|
+
rescue ::InvalidArgumentException => ex3
|
265
|
+
result.ex3 = ex3
|
266
|
+
end
|
267
|
+
write_result(result, oprot, 'inNeighbor', seqid)
|
268
|
+
end
|
269
|
+
|
270
|
+
def process_maxNodeId(seqid, iprot, oprot)
|
271
|
+
args = read_args(iprot, MaxNodeId_args)
|
272
|
+
result = MaxNodeId_result.new()
|
273
|
+
begin
|
274
|
+
result.success = @handler.maxNodeId(args.edgeType)
|
275
|
+
rescue ::InvalidArgumentException => ex
|
276
|
+
result.ex = ex
|
277
|
+
end
|
278
|
+
write_result(result, oprot, 'maxNodeId', seqid)
|
279
|
+
end
|
280
|
+
|
281
|
+
def process_nodeCount(seqid, iprot, oprot)
|
282
|
+
args = read_args(iprot, NodeCount_args)
|
283
|
+
result = NodeCount_result.new()
|
284
|
+
begin
|
285
|
+
result.success = @handler.nodeCount(args.edgeType)
|
286
|
+
rescue ::InvalidArgumentException => ex
|
287
|
+
result.ex = ex
|
288
|
+
end
|
289
|
+
write_result(result, oprot, 'nodeCount', seqid)
|
290
|
+
end
|
291
|
+
|
292
|
+
def process_edgeCount(seqid, iprot, oprot)
|
293
|
+
args = read_args(iprot, EdgeCount_args)
|
294
|
+
result = EdgeCount_result.new()
|
295
|
+
begin
|
296
|
+
result.success = @handler.edgeCount(args.edgeType)
|
297
|
+
rescue ::InvalidArgumentException => ex
|
298
|
+
result.ex = ex
|
299
|
+
end
|
300
|
+
write_result(result, oprot, 'edgeCount', seqid)
|
301
|
+
end
|
302
|
+
|
303
|
+
def process_pprSingleTarget(seqid, iprot, oprot)
|
304
|
+
args = read_args(iprot, PprSingleTarget_args)
|
305
|
+
result = PprSingleTarget_result.new()
|
306
|
+
begin
|
307
|
+
result.success = @handler.pprSingleTarget(args.edgeType, args.seedNodeIds, args.targetNodeId, args.biPPRParams)
|
308
|
+
rescue ::InvalidNodeIdException => ex1
|
309
|
+
result.ex1 = ex1
|
310
|
+
rescue ::InvalidArgumentException => ex2
|
311
|
+
result.ex2 = ex2
|
312
|
+
end
|
313
|
+
write_result(result, oprot, 'pprSingleTarget', seqid)
|
314
|
+
end
|
315
|
+
|
316
|
+
end
|
317
|
+
|
318
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
319
|
+
|
320
|
+
class OutDegree_args
|
321
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
322
|
+
EDGETYPE = 1
|
323
|
+
ID = 2
|
324
|
+
|
325
|
+
FIELDS = {
|
326
|
+
EDGETYPE => {:type => ::Thrift::Types::STRING, :name => 'edgeType'},
|
327
|
+
ID => {:type => ::Thrift::Types::I32, :name => 'id'}
|
328
|
+
}
|
329
|
+
|
330
|
+
def struct_fields; FIELDS; end
|
331
|
+
|
332
|
+
def validate
|
333
|
+
end
|
334
|
+
|
335
|
+
::Thrift::Struct.generate_accessors self
|
336
|
+
end
|
337
|
+
|
338
|
+
class OutDegree_result
|
339
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
340
|
+
SUCCESS = 0
|
341
|
+
EX1 = 1
|
342
|
+
EX2 = 2
|
343
|
+
|
344
|
+
FIELDS = {
|
345
|
+
SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
|
346
|
+
EX1 => {:type => ::Thrift::Types::STRUCT, :name => 'ex1', :class => ::InvalidNodeIdException},
|
347
|
+
EX2 => {:type => ::Thrift::Types::STRUCT, :name => 'ex2', :class => ::InvalidArgumentException}
|
348
|
+
}
|
349
|
+
|
350
|
+
def struct_fields; FIELDS; end
|
351
|
+
|
352
|
+
def validate
|
353
|
+
end
|
354
|
+
|
355
|
+
::Thrift::Struct.generate_accessors self
|
356
|
+
end
|
357
|
+
|
358
|
+
class InDegree_args
|
359
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
360
|
+
EDGETYPE = 1
|
361
|
+
ID = 2
|
362
|
+
|
363
|
+
FIELDS = {
|
364
|
+
EDGETYPE => {:type => ::Thrift::Types::STRING, :name => 'edgeType'},
|
365
|
+
ID => {:type => ::Thrift::Types::I32, :name => 'id'}
|
366
|
+
}
|
367
|
+
|
368
|
+
def struct_fields; FIELDS; end
|
369
|
+
|
370
|
+
def validate
|
371
|
+
end
|
372
|
+
|
373
|
+
::Thrift::Struct.generate_accessors self
|
374
|
+
end
|
375
|
+
|
376
|
+
class InDegree_result
|
377
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
378
|
+
SUCCESS = 0
|
379
|
+
EX1 = 1
|
380
|
+
EX2 = 2
|
381
|
+
|
382
|
+
FIELDS = {
|
383
|
+
SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
|
384
|
+
EX1 => {:type => ::Thrift::Types::STRUCT, :name => 'ex1', :class => ::InvalidNodeIdException},
|
385
|
+
EX2 => {:type => ::Thrift::Types::STRUCT, :name => 'ex2', :class => ::InvalidArgumentException}
|
386
|
+
}
|
387
|
+
|
388
|
+
def struct_fields; FIELDS; end
|
389
|
+
|
390
|
+
def validate
|
391
|
+
end
|
392
|
+
|
393
|
+
::Thrift::Struct.generate_accessors self
|
394
|
+
end
|
395
|
+
|
396
|
+
class OutNeighbors_args
|
397
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
398
|
+
EDGETYPE = 1
|
399
|
+
ID = 2
|
400
|
+
|
401
|
+
FIELDS = {
|
402
|
+
EDGETYPE => {:type => ::Thrift::Types::STRING, :name => 'edgeType'},
|
403
|
+
ID => {:type => ::Thrift::Types::I32, :name => 'id'}
|
404
|
+
}
|
405
|
+
|
406
|
+
def struct_fields; FIELDS; end
|
407
|
+
|
408
|
+
def validate
|
409
|
+
end
|
410
|
+
|
411
|
+
::Thrift::Struct.generate_accessors self
|
412
|
+
end
|
413
|
+
|
414
|
+
class OutNeighbors_result
|
415
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
416
|
+
SUCCESS = 0
|
417
|
+
EX1 = 1
|
418
|
+
EX2 = 2
|
419
|
+
|
420
|
+
FIELDS = {
|
421
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::I32}},
|
422
|
+
EX1 => {:type => ::Thrift::Types::STRUCT, :name => 'ex1', :class => ::InvalidNodeIdException},
|
423
|
+
EX2 => {:type => ::Thrift::Types::STRUCT, :name => 'ex2', :class => ::InvalidArgumentException}
|
424
|
+
}
|
425
|
+
|
426
|
+
def struct_fields; FIELDS; end
|
427
|
+
|
428
|
+
def validate
|
429
|
+
end
|
430
|
+
|
431
|
+
::Thrift::Struct.generate_accessors self
|
432
|
+
end
|
433
|
+
|
434
|
+
class InNeighbors_args
|
435
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
436
|
+
EDGETYPE = 1
|
437
|
+
ID = 2
|
438
|
+
|
439
|
+
FIELDS = {
|
440
|
+
EDGETYPE => {:type => ::Thrift::Types::STRING, :name => 'edgeType'},
|
441
|
+
ID => {:type => ::Thrift::Types::I32, :name => 'id'}
|
442
|
+
}
|
443
|
+
|
444
|
+
def struct_fields; FIELDS; end
|
445
|
+
|
446
|
+
def validate
|
447
|
+
end
|
448
|
+
|
449
|
+
::Thrift::Struct.generate_accessors self
|
450
|
+
end
|
451
|
+
|
452
|
+
class InNeighbors_result
|
453
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
454
|
+
SUCCESS = 0
|
455
|
+
EX1 = 1
|
456
|
+
EX2 = 2
|
457
|
+
|
458
|
+
FIELDS = {
|
459
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::I32}},
|
460
|
+
EX1 => {:type => ::Thrift::Types::STRUCT, :name => 'ex1', :class => ::InvalidNodeIdException},
|
461
|
+
EX2 => {:type => ::Thrift::Types::STRUCT, :name => 'ex2', :class => ::InvalidArgumentException}
|
462
|
+
}
|
463
|
+
|
464
|
+
def struct_fields; FIELDS; end
|
465
|
+
|
466
|
+
def validate
|
467
|
+
end
|
468
|
+
|
469
|
+
::Thrift::Struct.generate_accessors self
|
470
|
+
end
|
471
|
+
|
472
|
+
class OutNeighbor_args
|
473
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
474
|
+
EDGETYPE = 1
|
475
|
+
ID = 2
|
476
|
+
I = 3
|
477
|
+
|
478
|
+
FIELDS = {
|
479
|
+
EDGETYPE => {:type => ::Thrift::Types::STRING, :name => 'edgeType'},
|
480
|
+
ID => {:type => ::Thrift::Types::I32, :name => 'id'},
|
481
|
+
I => {:type => ::Thrift::Types::I32, :name => 'i'}
|
482
|
+
}
|
483
|
+
|
484
|
+
def struct_fields; FIELDS; end
|
485
|
+
|
486
|
+
def validate
|
487
|
+
end
|
488
|
+
|
489
|
+
::Thrift::Struct.generate_accessors self
|
490
|
+
end
|
491
|
+
|
492
|
+
class OutNeighbor_result
|
493
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
494
|
+
SUCCESS = 0
|
495
|
+
EX1 = 1
|
496
|
+
EX2 = 2
|
497
|
+
EX3 = 3
|
498
|
+
|
499
|
+
FIELDS = {
|
500
|
+
SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
|
501
|
+
EX1 => {:type => ::Thrift::Types::STRUCT, :name => 'ex1', :class => ::InvalidNodeIdException},
|
502
|
+
EX2 => {:type => ::Thrift::Types::STRUCT, :name => 'ex2', :class => ::InvalidIndexException},
|
503
|
+
EX3 => {:type => ::Thrift::Types::STRUCT, :name => 'ex3', :class => ::InvalidArgumentException}
|
504
|
+
}
|
505
|
+
|
506
|
+
def struct_fields; FIELDS; end
|
507
|
+
|
508
|
+
def validate
|
509
|
+
end
|
510
|
+
|
511
|
+
::Thrift::Struct.generate_accessors self
|
512
|
+
end
|
513
|
+
|
514
|
+
class InNeighbor_args
|
515
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
516
|
+
EDGETYPE = 1
|
517
|
+
ID = 2
|
518
|
+
I = 3
|
519
|
+
|
520
|
+
FIELDS = {
|
521
|
+
EDGETYPE => {:type => ::Thrift::Types::STRING, :name => 'edgeType'},
|
522
|
+
ID => {:type => ::Thrift::Types::I32, :name => 'id'},
|
523
|
+
I => {:type => ::Thrift::Types::I32, :name => 'i'}
|
524
|
+
}
|
525
|
+
|
526
|
+
def struct_fields; FIELDS; end
|
527
|
+
|
528
|
+
def validate
|
529
|
+
end
|
530
|
+
|
531
|
+
::Thrift::Struct.generate_accessors self
|
532
|
+
end
|
533
|
+
|
534
|
+
class InNeighbor_result
|
535
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
536
|
+
SUCCESS = 0
|
537
|
+
EX1 = 1
|
538
|
+
EX2 = 2
|
539
|
+
EX3 = 3
|
540
|
+
|
541
|
+
FIELDS = {
|
542
|
+
SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
|
543
|
+
EX1 => {:type => ::Thrift::Types::STRUCT, :name => 'ex1', :class => ::InvalidNodeIdException},
|
544
|
+
EX2 => {:type => ::Thrift::Types::STRUCT, :name => 'ex2', :class => ::InvalidIndexException},
|
545
|
+
EX3 => {:type => ::Thrift::Types::STRUCT, :name => 'ex3', :class => ::InvalidArgumentException}
|
546
|
+
}
|
547
|
+
|
548
|
+
def struct_fields; FIELDS; end
|
549
|
+
|
550
|
+
def validate
|
551
|
+
end
|
552
|
+
|
553
|
+
::Thrift::Struct.generate_accessors self
|
554
|
+
end
|
555
|
+
|
556
|
+
class MaxNodeId_args
|
557
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
558
|
+
EDGETYPE = 1
|
559
|
+
|
560
|
+
FIELDS = {
|
561
|
+
EDGETYPE => {:type => ::Thrift::Types::STRING, :name => 'edgeType'}
|
562
|
+
}
|
563
|
+
|
564
|
+
def struct_fields; FIELDS; end
|
565
|
+
|
566
|
+
def validate
|
567
|
+
end
|
568
|
+
|
569
|
+
::Thrift::Struct.generate_accessors self
|
570
|
+
end
|
571
|
+
|
572
|
+
class MaxNodeId_result
|
573
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
574
|
+
SUCCESS = 0
|
575
|
+
EX = 1
|
576
|
+
|
577
|
+
FIELDS = {
|
578
|
+
SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
|
579
|
+
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::InvalidArgumentException}
|
580
|
+
}
|
581
|
+
|
582
|
+
def struct_fields; FIELDS; end
|
583
|
+
|
584
|
+
def validate
|
585
|
+
end
|
586
|
+
|
587
|
+
::Thrift::Struct.generate_accessors self
|
588
|
+
end
|
589
|
+
|
590
|
+
class NodeCount_args
|
591
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
592
|
+
EDGETYPE = 1
|
593
|
+
|
594
|
+
FIELDS = {
|
595
|
+
EDGETYPE => {:type => ::Thrift::Types::STRING, :name => 'edgeType'}
|
596
|
+
}
|
597
|
+
|
598
|
+
def struct_fields; FIELDS; end
|
599
|
+
|
600
|
+
def validate
|
601
|
+
end
|
602
|
+
|
603
|
+
::Thrift::Struct.generate_accessors self
|
604
|
+
end
|
605
|
+
|
606
|
+
class NodeCount_result
|
607
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
608
|
+
SUCCESS = 0
|
609
|
+
EX = 1
|
610
|
+
|
611
|
+
FIELDS = {
|
612
|
+
SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
|
613
|
+
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::InvalidArgumentException}
|
614
|
+
}
|
615
|
+
|
616
|
+
def struct_fields; FIELDS; end
|
617
|
+
|
618
|
+
def validate
|
619
|
+
end
|
620
|
+
|
621
|
+
::Thrift::Struct.generate_accessors self
|
622
|
+
end
|
623
|
+
|
624
|
+
class EdgeCount_args
|
625
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
626
|
+
EDGETYPE = 1
|
627
|
+
|
628
|
+
FIELDS = {
|
629
|
+
EDGETYPE => {:type => ::Thrift::Types::STRING, :name => 'edgeType'}
|
630
|
+
}
|
631
|
+
|
632
|
+
def struct_fields; FIELDS; end
|
633
|
+
|
634
|
+
def validate
|
635
|
+
end
|
636
|
+
|
637
|
+
::Thrift::Struct.generate_accessors self
|
638
|
+
end
|
639
|
+
|
640
|
+
class EdgeCount_result
|
641
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
642
|
+
SUCCESS = 0
|
643
|
+
EX = 1
|
644
|
+
|
645
|
+
FIELDS = {
|
646
|
+
SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'},
|
647
|
+
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::InvalidArgumentException}
|
648
|
+
}
|
649
|
+
|
650
|
+
def struct_fields; FIELDS; end
|
651
|
+
|
652
|
+
def validate
|
653
|
+
end
|
654
|
+
|
655
|
+
::Thrift::Struct.generate_accessors self
|
656
|
+
end
|
657
|
+
|
658
|
+
class PprSingleTarget_args
|
659
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
660
|
+
EDGETYPE = 1
|
661
|
+
SEEDNODEIDS = 2
|
662
|
+
TARGETNODEID = 3
|
663
|
+
BIPPRPARAMS = 4
|
664
|
+
|
665
|
+
FIELDS = {
|
666
|
+
EDGETYPE => {:type => ::Thrift::Types::STRING, :name => 'edgeType'},
|
667
|
+
SEEDNODEIDS => {:type => ::Thrift::Types::LIST, :name => 'seedNodeIds', :element => {:type => ::Thrift::Types::I32}},
|
668
|
+
TARGETNODEID => {:type => ::Thrift::Types::I32, :name => 'targetNodeId'},
|
669
|
+
BIPPRPARAMS => {:type => ::Thrift::Types::STRUCT, :name => 'biPPRParams', :class => ::BidirectionalPPRParams}
|
670
|
+
}
|
671
|
+
|
672
|
+
def struct_fields; FIELDS; end
|
673
|
+
|
674
|
+
def validate
|
675
|
+
end
|
676
|
+
|
677
|
+
::Thrift::Struct.generate_accessors self
|
678
|
+
end
|
679
|
+
|
680
|
+
class PprSingleTarget_result
|
681
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
682
|
+
SUCCESS = 0
|
683
|
+
EX1 = 1
|
684
|
+
EX2 = 2
|
685
|
+
|
686
|
+
FIELDS = {
|
687
|
+
SUCCESS => {:type => ::Thrift::Types::DOUBLE, :name => 'success'},
|
688
|
+
EX1 => {:type => ::Thrift::Types::STRUCT, :name => 'ex1', :class => ::InvalidNodeIdException},
|
689
|
+
EX2 => {:type => ::Thrift::Types::STRUCT, :name => 'ex2', :class => ::InvalidArgumentException}
|
690
|
+
}
|
691
|
+
|
692
|
+
def struct_fields; FIELDS; end
|
693
|
+
|
694
|
+
def validate
|
695
|
+
end
|
696
|
+
|
697
|
+
::Thrift::Struct.generate_accessors self
|
698
|
+
end
|
699
|
+
|
700
|
+
end
|
701
|
+
|