relevanced_client 0.9.6 → 0.9.7
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.
- checksums.yaml +4 -4
- data/lib/gen-rb/relevanced.rb +593 -353
- data/lib/gen-rb/relevanced_protocol_types.rb +290 -9
- data/lib/relevanced_client.rb +99 -47
- metadata +2 -2
data/lib/gen-rb/relevanced.rb
CHANGED
@@ -74,22 +74,6 @@ module Relevanced
|
|
74
74
|
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'multiGetDocumentSimilarity failed: unknown result')
|
75
75
|
end
|
76
76
|
|
77
|
-
def multiGetTextSimilarity(centroidIds, text, lang)
|
78
|
-
send_multiGetTextSimilarity(centroidIds, text, lang)
|
79
|
-
return recv_multiGetTextSimilarity()
|
80
|
-
end
|
81
|
-
|
82
|
-
def send_multiGetTextSimilarity(centroidIds, text, lang)
|
83
|
-
send_message('multiGetTextSimilarity', MultiGetTextSimilarity_args, :centroidIds => centroidIds, :text => text, :lang => lang)
|
84
|
-
end
|
85
|
-
|
86
|
-
def recv_multiGetTextSimilarity()
|
87
|
-
result = receive_message(MultiGetTextSimilarity_result)
|
88
|
-
return result.success unless result.success.nil?
|
89
|
-
raise result.err unless result.err.nil?
|
90
|
-
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'multiGetTextSimilarity failed: unknown result')
|
91
|
-
end
|
92
|
-
|
93
77
|
def getTextSimilarity(centroidId, text, lang)
|
94
78
|
send_getTextSimilarity(centroidId, text, lang)
|
95
79
|
return recv_getTextSimilarity()
|
@@ -106,6 +90,22 @@ module Relevanced
|
|
106
90
|
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getTextSimilarity failed: unknown result')
|
107
91
|
end
|
108
92
|
|
93
|
+
def multiGetTextSimilarity(centroidIds, text, lang)
|
94
|
+
send_multiGetTextSimilarity(centroidIds, text, lang)
|
95
|
+
return recv_multiGetTextSimilarity()
|
96
|
+
end
|
97
|
+
|
98
|
+
def send_multiGetTextSimilarity(centroidIds, text, lang)
|
99
|
+
send_message('multiGetTextSimilarity', MultiGetTextSimilarity_args, :centroidIds => centroidIds, :text => text, :lang => lang)
|
100
|
+
end
|
101
|
+
|
102
|
+
def recv_multiGetTextSimilarity()
|
103
|
+
result = receive_message(MultiGetTextSimilarity_result)
|
104
|
+
return result.success unless result.success.nil?
|
105
|
+
raise result.err unless result.err.nil?
|
106
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'multiGetTextSimilarity failed: unknown result')
|
107
|
+
end
|
108
|
+
|
109
109
|
def getCentroidSimilarity(centroid1Id, centroid2Id)
|
110
110
|
send_getCentroidSimilarity(centroid1Id, centroid2Id)
|
111
111
|
return recv_getCentroidSimilarity()
|
@@ -153,13 +153,13 @@ module Relevanced
|
|
153
153
|
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'createDocumentWithID failed: unknown result')
|
154
154
|
end
|
155
155
|
|
156
|
-
def deleteDocument(
|
157
|
-
send_deleteDocument(
|
156
|
+
def deleteDocument(request)
|
157
|
+
send_deleteDocument(request)
|
158
158
|
return recv_deleteDocument()
|
159
159
|
end
|
160
160
|
|
161
|
-
def send_deleteDocument(
|
162
|
-
send_message('deleteDocument', DeleteDocument_args, :
|
161
|
+
def send_deleteDocument(request)
|
162
|
+
send_message('deleteDocument', DeleteDocument_args, :request => request)
|
163
163
|
end
|
164
164
|
|
165
165
|
def recv_deleteDocument()
|
@@ -169,6 +169,22 @@ module Relevanced
|
|
169
169
|
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'deleteDocument failed: unknown result')
|
170
170
|
end
|
171
171
|
|
172
|
+
def multiDeleteDocuments(request)
|
173
|
+
send_multiDeleteDocuments(request)
|
174
|
+
return recv_multiDeleteDocuments()
|
175
|
+
end
|
176
|
+
|
177
|
+
def send_multiDeleteDocuments(request)
|
178
|
+
send_message('multiDeleteDocuments', MultiDeleteDocuments_args, :request => request)
|
179
|
+
end
|
180
|
+
|
181
|
+
def recv_multiDeleteDocuments()
|
182
|
+
result = receive_message(MultiDeleteDocuments_result)
|
183
|
+
return result.success unless result.success.nil?
|
184
|
+
raise result.err unless result.err.nil?
|
185
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'multiDeleteDocuments failed: unknown result')
|
186
|
+
end
|
187
|
+
|
172
188
|
def getDocumentMetadata(id)
|
173
189
|
send_getDocumentMetadata(id)
|
174
190
|
return recv_getDocumentMetadata()
|
@@ -185,129 +201,173 @@ module Relevanced
|
|
185
201
|
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getDocumentMetadata failed: unknown result')
|
186
202
|
end
|
187
203
|
|
188
|
-
def
|
189
|
-
|
190
|
-
return
|
204
|
+
def listAllDocuments()
|
205
|
+
send_listAllDocuments()
|
206
|
+
return recv_listAllDocuments()
|
191
207
|
end
|
192
208
|
|
193
|
-
def
|
194
|
-
send_message('
|
209
|
+
def send_listAllDocuments()
|
210
|
+
send_message('listAllDocuments', ListAllDocuments_args)
|
195
211
|
end
|
196
212
|
|
197
|
-
def
|
198
|
-
result = receive_message(
|
213
|
+
def recv_listAllDocuments()
|
214
|
+
result = receive_message(ListAllDocuments_result)
|
199
215
|
return result.success unless result.success.nil?
|
200
|
-
raise
|
201
|
-
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'createCentroid failed: unknown result')
|
216
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'listAllDocuments failed: unknown result')
|
202
217
|
end
|
203
218
|
|
204
|
-
def
|
205
|
-
|
206
|
-
return
|
219
|
+
def listUnusedDocuments(limit)
|
220
|
+
send_listUnusedDocuments(limit)
|
221
|
+
return recv_listUnusedDocuments()
|
207
222
|
end
|
208
223
|
|
209
|
-
def
|
210
|
-
send_message('
|
224
|
+
def send_listUnusedDocuments(limit)
|
225
|
+
send_message('listUnusedDocuments', ListUnusedDocuments_args, :limit => limit)
|
211
226
|
end
|
212
227
|
|
213
|
-
def
|
214
|
-
result = receive_message(
|
228
|
+
def recv_listUnusedDocuments()
|
229
|
+
result = receive_message(ListUnusedDocuments_result)
|
230
|
+
return result.success unless result.success.nil?
|
231
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'listUnusedDocuments failed: unknown result')
|
232
|
+
end
|
233
|
+
|
234
|
+
def listDocumentRange(offset, count)
|
235
|
+
send_listDocumentRange(offset, count)
|
236
|
+
return recv_listDocumentRange()
|
237
|
+
end
|
238
|
+
|
239
|
+
def send_listDocumentRange(offset, count)
|
240
|
+
send_message('listDocumentRange', ListDocumentRange_args, :offset => offset, :count => count)
|
241
|
+
end
|
242
|
+
|
243
|
+
def recv_listDocumentRange()
|
244
|
+
result = receive_message(ListDocumentRange_result)
|
245
|
+
return result.success unless result.success.nil?
|
246
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'listDocumentRange failed: unknown result')
|
247
|
+
end
|
248
|
+
|
249
|
+
def listDocumentRangeFromID(documentId, count)
|
250
|
+
send_listDocumentRangeFromID(documentId, count)
|
251
|
+
return recv_listDocumentRangeFromID()
|
252
|
+
end
|
253
|
+
|
254
|
+
def send_listDocumentRangeFromID(documentId, count)
|
255
|
+
send_message('listDocumentRangeFromID', ListDocumentRangeFromID_args, :documentId => documentId, :count => count)
|
256
|
+
end
|
257
|
+
|
258
|
+
def recv_listDocumentRangeFromID()
|
259
|
+
result = receive_message(ListDocumentRangeFromID_result)
|
260
|
+
return result.success unless result.success.nil?
|
261
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'listDocumentRangeFromID failed: unknown result')
|
262
|
+
end
|
263
|
+
|
264
|
+
def createCentroid(request)
|
265
|
+
send_createCentroid(request)
|
266
|
+
return recv_createCentroid()
|
267
|
+
end
|
268
|
+
|
269
|
+
def send_createCentroid(request)
|
270
|
+
send_message('createCentroid', CreateCentroid_args, :request => request)
|
271
|
+
end
|
272
|
+
|
273
|
+
def recv_createCentroid()
|
274
|
+
result = receive_message(CreateCentroid_result)
|
215
275
|
return result.success unless result.success.nil?
|
216
276
|
raise result.err unless result.err.nil?
|
217
|
-
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, '
|
277
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'createCentroid failed: unknown result')
|
218
278
|
end
|
219
279
|
|
220
|
-
def
|
221
|
-
|
222
|
-
return
|
280
|
+
def multiCreateCentroids(request)
|
281
|
+
send_multiCreateCentroids(request)
|
282
|
+
return recv_multiCreateCentroids()
|
223
283
|
end
|
224
284
|
|
225
|
-
def
|
226
|
-
send_message('
|
285
|
+
def send_multiCreateCentroids(request)
|
286
|
+
send_message('multiCreateCentroids', MultiCreateCentroids_args, :request => request)
|
227
287
|
end
|
228
288
|
|
229
|
-
def
|
230
|
-
result = receive_message(
|
289
|
+
def recv_multiCreateCentroids()
|
290
|
+
result = receive_message(MultiCreateCentroids_result)
|
231
291
|
return result.success unless result.success.nil?
|
232
292
|
raise result.err unless result.err.nil?
|
233
|
-
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, '
|
293
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'multiCreateCentroids failed: unknown result')
|
234
294
|
end
|
235
295
|
|
236
|
-
def
|
237
|
-
|
238
|
-
return
|
296
|
+
def deleteCentroid(request)
|
297
|
+
send_deleteCentroid(request)
|
298
|
+
return recv_deleteCentroid()
|
239
299
|
end
|
240
300
|
|
241
|
-
def
|
242
|
-
send_message('
|
301
|
+
def send_deleteCentroid(request)
|
302
|
+
send_message('deleteCentroid', DeleteCentroid_args, :request => request)
|
243
303
|
end
|
244
304
|
|
245
|
-
def
|
246
|
-
result = receive_message(
|
305
|
+
def recv_deleteCentroid()
|
306
|
+
result = receive_message(DeleteCentroid_result)
|
247
307
|
return result.success unless result.success.nil?
|
248
308
|
raise result.err unless result.err.nil?
|
249
|
-
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, '
|
309
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'deleteCentroid failed: unknown result')
|
250
310
|
end
|
251
311
|
|
252
|
-
def
|
253
|
-
|
254
|
-
return
|
312
|
+
def multiDeleteCentroids(request)
|
313
|
+
send_multiDeleteCentroids(request)
|
314
|
+
return recv_multiDeleteCentroids()
|
255
315
|
end
|
256
316
|
|
257
|
-
def
|
258
|
-
send_message('
|
317
|
+
def send_multiDeleteCentroids(request)
|
318
|
+
send_message('multiDeleteCentroids', MultiDeleteCentroids_args, :request => request)
|
259
319
|
end
|
260
320
|
|
261
|
-
def
|
262
|
-
result = receive_message(
|
321
|
+
def recv_multiDeleteCentroids()
|
322
|
+
result = receive_message(MultiDeleteCentroids_result)
|
263
323
|
return result.success unless result.success.nil?
|
264
324
|
raise result.err unless result.err.nil?
|
265
|
-
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, '
|
325
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'multiDeleteCentroids failed: unknown result')
|
266
326
|
end
|
267
327
|
|
268
|
-
def
|
269
|
-
|
270
|
-
return
|
328
|
+
def addDocumentsToCentroid(request)
|
329
|
+
send_addDocumentsToCentroid(request)
|
330
|
+
return recv_addDocumentsToCentroid()
|
271
331
|
end
|
272
332
|
|
273
|
-
def
|
274
|
-
send_message('
|
333
|
+
def send_addDocumentsToCentroid(request)
|
334
|
+
send_message('addDocumentsToCentroid', AddDocumentsToCentroid_args, :request => request)
|
275
335
|
end
|
276
336
|
|
277
|
-
def
|
278
|
-
result = receive_message(
|
337
|
+
def recv_addDocumentsToCentroid()
|
338
|
+
result = receive_message(AddDocumentsToCentroid_result)
|
279
339
|
return result.success unless result.success.nil?
|
280
340
|
raise result.centroidErr unless result.centroidErr.nil?
|
281
341
|
raise result.docErr unless result.docErr.nil?
|
282
342
|
raise result.bothErr unless result.bothErr.nil?
|
283
|
-
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, '
|
343
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'addDocumentsToCentroid failed: unknown result')
|
284
344
|
end
|
285
345
|
|
286
|
-
def
|
287
|
-
|
288
|
-
return
|
346
|
+
def removeDocumentsFromCentroid(request)
|
347
|
+
send_removeDocumentsFromCentroid(request)
|
348
|
+
return recv_removeDocumentsFromCentroid()
|
289
349
|
end
|
290
350
|
|
291
|
-
def
|
292
|
-
send_message('
|
351
|
+
def send_removeDocumentsFromCentroid(request)
|
352
|
+
send_message('removeDocumentsFromCentroid', RemoveDocumentsFromCentroid_args, :request => request)
|
293
353
|
end
|
294
354
|
|
295
|
-
def
|
296
|
-
result = receive_message(
|
355
|
+
def recv_removeDocumentsFromCentroid()
|
356
|
+
result = receive_message(RemoveDocumentsFromCentroid_result)
|
297
357
|
return result.success unless result.success.nil?
|
298
358
|
raise result.centroidErr unless result.centroidErr.nil?
|
299
359
|
raise result.docErr unless result.docErr.nil?
|
300
360
|
raise result.bothErr unless result.bothErr.nil?
|
301
|
-
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, '
|
361
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'removeDocumentsFromCentroid failed: unknown result')
|
302
362
|
end
|
303
363
|
|
304
|
-
def joinCentroid(
|
305
|
-
send_joinCentroid(
|
364
|
+
def joinCentroid(request)
|
365
|
+
send_joinCentroid(request)
|
306
366
|
return recv_joinCentroid()
|
307
367
|
end
|
308
368
|
|
309
|
-
def send_joinCentroid(
|
310
|
-
send_message('joinCentroid', JoinCentroid_args, :
|
369
|
+
def send_joinCentroid(request)
|
370
|
+
send_message('joinCentroid', JoinCentroid_args, :request => request)
|
311
371
|
end
|
312
372
|
|
313
373
|
def recv_joinCentroid()
|
@@ -317,6 +377,22 @@ module Relevanced
|
|
317
377
|
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'joinCentroid failed: unknown result')
|
318
378
|
end
|
319
379
|
|
380
|
+
def multiJoinCentroids(request)
|
381
|
+
send_multiJoinCentroids(request)
|
382
|
+
return recv_multiJoinCentroids()
|
383
|
+
end
|
384
|
+
|
385
|
+
def send_multiJoinCentroids(request)
|
386
|
+
send_message('multiJoinCentroids', MultiJoinCentroids_args, :request => request)
|
387
|
+
end
|
388
|
+
|
389
|
+
def recv_multiJoinCentroids()
|
390
|
+
result = receive_message(MultiJoinCentroids_result)
|
391
|
+
return result.success unless result.success.nil?
|
392
|
+
raise result.err unless result.err.nil?
|
393
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'multiJoinCentroids failed: unknown result')
|
394
|
+
end
|
395
|
+
|
320
396
|
def listAllCentroids()
|
321
397
|
send_listAllCentroids()
|
322
398
|
return recv_listAllCentroids()
|
@@ -362,64 +438,52 @@ module Relevanced
|
|
362
438
|
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'listCentroidRangeFromID failed: unknown result')
|
363
439
|
end
|
364
440
|
|
365
|
-
def
|
366
|
-
|
367
|
-
return
|
368
|
-
end
|
369
|
-
|
370
|
-
def send_listAllDocuments()
|
371
|
-
send_message('listAllDocuments', ListAllDocuments_args)
|
372
|
-
end
|
373
|
-
|
374
|
-
def recv_listAllDocuments()
|
375
|
-
result = receive_message(ListAllDocuments_result)
|
376
|
-
return result.success unless result.success.nil?
|
377
|
-
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'listAllDocuments failed: unknown result')
|
378
|
-
end
|
379
|
-
|
380
|
-
def listUnusedDocuments(limit)
|
381
|
-
send_listUnusedDocuments(limit)
|
382
|
-
return recv_listUnusedDocuments()
|
441
|
+
def listAllDocumentsForCentroid(centroidId)
|
442
|
+
send_listAllDocumentsForCentroid(centroidId)
|
443
|
+
return recv_listAllDocumentsForCentroid()
|
383
444
|
end
|
384
445
|
|
385
|
-
def
|
386
|
-
send_message('
|
446
|
+
def send_listAllDocumentsForCentroid(centroidId)
|
447
|
+
send_message('listAllDocumentsForCentroid', ListAllDocumentsForCentroid_args, :centroidId => centroidId)
|
387
448
|
end
|
388
449
|
|
389
|
-
def
|
390
|
-
result = receive_message(
|
450
|
+
def recv_listAllDocumentsForCentroid()
|
451
|
+
result = receive_message(ListAllDocumentsForCentroid_result)
|
391
452
|
return result.success unless result.success.nil?
|
392
|
-
raise
|
453
|
+
raise result.err unless result.err.nil?
|
454
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'listAllDocumentsForCentroid failed: unknown result')
|
393
455
|
end
|
394
456
|
|
395
|
-
def
|
396
|
-
|
397
|
-
return
|
457
|
+
def listCentroidDocumentRange(centroidId, offset, count)
|
458
|
+
send_listCentroidDocumentRange(centroidId, offset, count)
|
459
|
+
return recv_listCentroidDocumentRange()
|
398
460
|
end
|
399
461
|
|
400
|
-
def
|
401
|
-
send_message('
|
462
|
+
def send_listCentroidDocumentRange(centroidId, offset, count)
|
463
|
+
send_message('listCentroidDocumentRange', ListCentroidDocumentRange_args, :centroidId => centroidId, :offset => offset, :count => count)
|
402
464
|
end
|
403
465
|
|
404
|
-
def
|
405
|
-
result = receive_message(
|
466
|
+
def recv_listCentroidDocumentRange()
|
467
|
+
result = receive_message(ListCentroidDocumentRange_result)
|
406
468
|
return result.success unless result.success.nil?
|
407
|
-
raise
|
469
|
+
raise result.err unless result.err.nil?
|
470
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'listCentroidDocumentRange failed: unknown result')
|
408
471
|
end
|
409
472
|
|
410
|
-
def
|
411
|
-
|
412
|
-
return
|
473
|
+
def listCentroidDocumentRangeFromID(centroidId, documentId, count)
|
474
|
+
send_listCentroidDocumentRangeFromID(centroidId, documentId, count)
|
475
|
+
return recv_listCentroidDocumentRangeFromID()
|
413
476
|
end
|
414
477
|
|
415
|
-
def
|
416
|
-
send_message('
|
478
|
+
def send_listCentroidDocumentRangeFromID(centroidId, documentId, count)
|
479
|
+
send_message('listCentroidDocumentRangeFromID', ListCentroidDocumentRangeFromID_args, :centroidId => centroidId, :documentId => documentId, :count => count)
|
417
480
|
end
|
418
481
|
|
419
|
-
def
|
420
|
-
result = receive_message(
|
482
|
+
def recv_listCentroidDocumentRangeFromID()
|
483
|
+
result = receive_message(ListCentroidDocumentRangeFromID_result)
|
421
484
|
return result.success unless result.success.nil?
|
422
|
-
raise
|
485
|
+
raise result.err unless result.err.nil?
|
486
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'listCentroidDocumentRangeFromID failed: unknown result')
|
423
487
|
end
|
424
488
|
|
425
489
|
def debugEraseAllData()
|
@@ -513,26 +577,26 @@ module Relevanced
|
|
513
577
|
write_result(result, oprot, 'multiGetDocumentSimilarity', seqid)
|
514
578
|
end
|
515
579
|
|
516
|
-
def
|
517
|
-
args = read_args(iprot,
|
518
|
-
result =
|
580
|
+
def process_getTextSimilarity(seqid, iprot, oprot)
|
581
|
+
args = read_args(iprot, GetTextSimilarity_args)
|
582
|
+
result = GetTextSimilarity_result.new()
|
519
583
|
begin
|
520
|
-
result.success = @handler.
|
584
|
+
result.success = @handler.getTextSimilarity(args.centroidId, args.text, args.lang)
|
521
585
|
rescue ::ECentroidDoesNotExist => err
|
522
586
|
result.err = err
|
523
587
|
end
|
524
|
-
write_result(result, oprot, '
|
588
|
+
write_result(result, oprot, 'getTextSimilarity', seqid)
|
525
589
|
end
|
526
590
|
|
527
|
-
def
|
528
|
-
args = read_args(iprot,
|
529
|
-
result =
|
591
|
+
def process_multiGetTextSimilarity(seqid, iprot, oprot)
|
592
|
+
args = read_args(iprot, MultiGetTextSimilarity_args)
|
593
|
+
result = MultiGetTextSimilarity_result.new()
|
530
594
|
begin
|
531
|
-
result.success = @handler.
|
595
|
+
result.success = @handler.multiGetTextSimilarity(args.centroidIds, args.text, args.lang)
|
532
596
|
rescue ::ECentroidDoesNotExist => err
|
533
597
|
result.err = err
|
534
598
|
end
|
535
|
-
write_result(result, oprot, '
|
599
|
+
write_result(result, oprot, 'multiGetTextSimilarity', seqid)
|
536
600
|
end
|
537
601
|
|
538
602
|
def process_getCentroidSimilarity(seqid, iprot, oprot)
|
@@ -568,13 +632,24 @@ module Relevanced
|
|
568
632
|
args = read_args(iprot, DeleteDocument_args)
|
569
633
|
result = DeleteDocument_result.new()
|
570
634
|
begin
|
571
|
-
result.success = @handler.deleteDocument(args.
|
635
|
+
result.success = @handler.deleteDocument(args.request)
|
572
636
|
rescue ::EDocumentDoesNotExist => err
|
573
637
|
result.err = err
|
574
638
|
end
|
575
639
|
write_result(result, oprot, 'deleteDocument', seqid)
|
576
640
|
end
|
577
641
|
|
642
|
+
def process_multiDeleteDocuments(seqid, iprot, oprot)
|
643
|
+
args = read_args(iprot, MultiDeleteDocuments_args)
|
644
|
+
result = MultiDeleteDocuments_result.new()
|
645
|
+
begin
|
646
|
+
result.success = @handler.multiDeleteDocuments(args.request)
|
647
|
+
rescue ::EDocumentDoesNotExist => err
|
648
|
+
result.err = err
|
649
|
+
end
|
650
|
+
write_result(result, oprot, 'multiDeleteDocuments', seqid)
|
651
|
+
end
|
652
|
+
|
578
653
|
def process_getDocumentMetadata(seqid, iprot, oprot)
|
579
654
|
args = read_args(iprot, GetDocumentMetadata_args)
|
580
655
|
result = GetDocumentMetadata_result.new()
|
@@ -586,66 +661,83 @@ module Relevanced
|
|
586
661
|
write_result(result, oprot, 'getDocumentMetadata', seqid)
|
587
662
|
end
|
588
663
|
|
664
|
+
def process_listAllDocuments(seqid, iprot, oprot)
|
665
|
+
args = read_args(iprot, ListAllDocuments_args)
|
666
|
+
result = ListAllDocuments_result.new()
|
667
|
+
result.success = @handler.listAllDocuments()
|
668
|
+
write_result(result, oprot, 'listAllDocuments', seqid)
|
669
|
+
end
|
670
|
+
|
671
|
+
def process_listUnusedDocuments(seqid, iprot, oprot)
|
672
|
+
args = read_args(iprot, ListUnusedDocuments_args)
|
673
|
+
result = ListUnusedDocuments_result.new()
|
674
|
+
result.success = @handler.listUnusedDocuments(args.limit)
|
675
|
+
write_result(result, oprot, 'listUnusedDocuments', seqid)
|
676
|
+
end
|
677
|
+
|
678
|
+
def process_listDocumentRange(seqid, iprot, oprot)
|
679
|
+
args = read_args(iprot, ListDocumentRange_args)
|
680
|
+
result = ListDocumentRange_result.new()
|
681
|
+
result.success = @handler.listDocumentRange(args.offset, args.count)
|
682
|
+
write_result(result, oprot, 'listDocumentRange', seqid)
|
683
|
+
end
|
684
|
+
|
685
|
+
def process_listDocumentRangeFromID(seqid, iprot, oprot)
|
686
|
+
args = read_args(iprot, ListDocumentRangeFromID_args)
|
687
|
+
result = ListDocumentRangeFromID_result.new()
|
688
|
+
result.success = @handler.listDocumentRangeFromID(args.documentId, args.count)
|
689
|
+
write_result(result, oprot, 'listDocumentRangeFromID', seqid)
|
690
|
+
end
|
691
|
+
|
589
692
|
def process_createCentroid(seqid, iprot, oprot)
|
590
693
|
args = read_args(iprot, CreateCentroid_args)
|
591
694
|
result = CreateCentroid_result.new()
|
592
695
|
begin
|
593
|
-
result.success = @handler.createCentroid(args.
|
696
|
+
result.success = @handler.createCentroid(args.request)
|
594
697
|
rescue ::ECentroidAlreadyExists => err
|
595
698
|
result.err = err
|
596
699
|
end
|
597
700
|
write_result(result, oprot, 'createCentroid', seqid)
|
598
701
|
end
|
599
702
|
|
600
|
-
def
|
601
|
-
args = read_args(iprot,
|
602
|
-
result =
|
603
|
-
begin
|
604
|
-
result.success = @handler.deleteCentroid(args.centroidId)
|
605
|
-
rescue ::ECentroidDoesNotExist => err
|
606
|
-
result.err = err
|
607
|
-
end
|
608
|
-
write_result(result, oprot, 'deleteCentroid', seqid)
|
609
|
-
end
|
610
|
-
|
611
|
-
def process_listAllDocumentsForCentroid(seqid, iprot, oprot)
|
612
|
-
args = read_args(iprot, ListAllDocumentsForCentroid_args)
|
613
|
-
result = ListAllDocumentsForCentroid_result.new()
|
703
|
+
def process_multiCreateCentroids(seqid, iprot, oprot)
|
704
|
+
args = read_args(iprot, MultiCreateCentroids_args)
|
705
|
+
result = MultiCreateCentroids_result.new()
|
614
706
|
begin
|
615
|
-
result.success = @handler.
|
616
|
-
rescue ::
|
707
|
+
result.success = @handler.multiCreateCentroids(args.request)
|
708
|
+
rescue ::ECentroidAlreadyExists => err
|
617
709
|
result.err = err
|
618
710
|
end
|
619
|
-
write_result(result, oprot, '
|
711
|
+
write_result(result, oprot, 'multiCreateCentroids', seqid)
|
620
712
|
end
|
621
713
|
|
622
|
-
def
|
623
|
-
args = read_args(iprot,
|
624
|
-
result =
|
714
|
+
def process_deleteCentroid(seqid, iprot, oprot)
|
715
|
+
args = read_args(iprot, DeleteCentroid_args)
|
716
|
+
result = DeleteCentroid_result.new()
|
625
717
|
begin
|
626
|
-
result.success = @handler.
|
718
|
+
result.success = @handler.deleteCentroid(args.request)
|
627
719
|
rescue ::ECentroidDoesNotExist => err
|
628
720
|
result.err = err
|
629
721
|
end
|
630
|
-
write_result(result, oprot, '
|
722
|
+
write_result(result, oprot, 'deleteCentroid', seqid)
|
631
723
|
end
|
632
724
|
|
633
|
-
def
|
634
|
-
args = read_args(iprot,
|
635
|
-
result =
|
725
|
+
def process_multiDeleteCentroids(seqid, iprot, oprot)
|
726
|
+
args = read_args(iprot, MultiDeleteCentroids_args)
|
727
|
+
result = MultiDeleteCentroids_result.new()
|
636
728
|
begin
|
637
|
-
result.success = @handler.
|
729
|
+
result.success = @handler.multiDeleteCentroids(args.request)
|
638
730
|
rescue ::ECentroidDoesNotExist => err
|
639
731
|
result.err = err
|
640
732
|
end
|
641
|
-
write_result(result, oprot, '
|
733
|
+
write_result(result, oprot, 'multiDeleteCentroids', seqid)
|
642
734
|
end
|
643
735
|
|
644
|
-
def
|
645
|
-
args = read_args(iprot,
|
646
|
-
result =
|
736
|
+
def process_addDocumentsToCentroid(seqid, iprot, oprot)
|
737
|
+
args = read_args(iprot, AddDocumentsToCentroid_args)
|
738
|
+
result = AddDocumentsToCentroid_result.new()
|
647
739
|
begin
|
648
|
-
result.success = @handler.
|
740
|
+
result.success = @handler.addDocumentsToCentroid(args.request)
|
649
741
|
rescue ::ECentroidDoesNotExist => centroidErr
|
650
742
|
result.centroidErr = centroidErr
|
651
743
|
rescue ::EDocumentDoesNotExist => docErr
|
@@ -653,14 +745,14 @@ module Relevanced
|
|
653
745
|
rescue ::EDocumentAlreadyInCentroid => bothErr
|
654
746
|
result.bothErr = bothErr
|
655
747
|
end
|
656
|
-
write_result(result, oprot, '
|
748
|
+
write_result(result, oprot, 'addDocumentsToCentroid', seqid)
|
657
749
|
end
|
658
750
|
|
659
|
-
def
|
660
|
-
args = read_args(iprot,
|
661
|
-
result =
|
751
|
+
def process_removeDocumentsFromCentroid(seqid, iprot, oprot)
|
752
|
+
args = read_args(iprot, RemoveDocumentsFromCentroid_args)
|
753
|
+
result = RemoveDocumentsFromCentroid_result.new()
|
662
754
|
begin
|
663
|
-
result.success = @handler.
|
755
|
+
result.success = @handler.removeDocumentsFromCentroid(args.request)
|
664
756
|
rescue ::ECentroidDoesNotExist => centroidErr
|
665
757
|
result.centroidErr = centroidErr
|
666
758
|
rescue ::EDocumentDoesNotExist => docErr
|
@@ -668,20 +760,31 @@ module Relevanced
|
|
668
760
|
rescue ::EDocumentNotInCentroid => bothErr
|
669
761
|
result.bothErr = bothErr
|
670
762
|
end
|
671
|
-
write_result(result, oprot, '
|
763
|
+
write_result(result, oprot, 'removeDocumentsFromCentroid', seqid)
|
672
764
|
end
|
673
765
|
|
674
766
|
def process_joinCentroid(seqid, iprot, oprot)
|
675
767
|
args = read_args(iprot, JoinCentroid_args)
|
676
768
|
result = JoinCentroid_result.new()
|
677
769
|
begin
|
678
|
-
result.success = @handler.joinCentroid(args.
|
770
|
+
result.success = @handler.joinCentroid(args.request)
|
679
771
|
rescue ::ECentroidDoesNotExist => err
|
680
772
|
result.err = err
|
681
773
|
end
|
682
774
|
write_result(result, oprot, 'joinCentroid', seqid)
|
683
775
|
end
|
684
776
|
|
777
|
+
def process_multiJoinCentroids(seqid, iprot, oprot)
|
778
|
+
args = read_args(iprot, MultiJoinCentroids_args)
|
779
|
+
result = MultiJoinCentroids_result.new()
|
780
|
+
begin
|
781
|
+
result.success = @handler.multiJoinCentroids(args.request)
|
782
|
+
rescue ::ECentroidDoesNotExist => err
|
783
|
+
result.err = err
|
784
|
+
end
|
785
|
+
write_result(result, oprot, 'multiJoinCentroids', seqid)
|
786
|
+
end
|
787
|
+
|
685
788
|
def process_listAllCentroids(seqid, iprot, oprot)
|
686
789
|
args = read_args(iprot, ListAllCentroids_args)
|
687
790
|
result = ListAllCentroids_result.new()
|
@@ -703,32 +806,37 @@ module Relevanced
|
|
703
806
|
write_result(result, oprot, 'listCentroidRangeFromID', seqid)
|
704
807
|
end
|
705
808
|
|
706
|
-
def
|
707
|
-
args = read_args(iprot,
|
708
|
-
result =
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
result = ListUnusedDocuments_result.new()
|
716
|
-
result.success = @handler.listUnusedDocuments(args.limit)
|
717
|
-
write_result(result, oprot, 'listUnusedDocuments', seqid)
|
809
|
+
def process_listAllDocumentsForCentroid(seqid, iprot, oprot)
|
810
|
+
args = read_args(iprot, ListAllDocumentsForCentroid_args)
|
811
|
+
result = ListAllDocumentsForCentroid_result.new()
|
812
|
+
begin
|
813
|
+
result.success = @handler.listAllDocumentsForCentroid(args.centroidId)
|
814
|
+
rescue ::ECentroidDoesNotExist => err
|
815
|
+
result.err = err
|
816
|
+
end
|
817
|
+
write_result(result, oprot, 'listAllDocumentsForCentroid', seqid)
|
718
818
|
end
|
719
819
|
|
720
|
-
def
|
721
|
-
args = read_args(iprot,
|
722
|
-
result =
|
723
|
-
|
724
|
-
|
820
|
+
def process_listCentroidDocumentRange(seqid, iprot, oprot)
|
821
|
+
args = read_args(iprot, ListCentroidDocumentRange_args)
|
822
|
+
result = ListCentroidDocumentRange_result.new()
|
823
|
+
begin
|
824
|
+
result.success = @handler.listCentroidDocumentRange(args.centroidId, args.offset, args.count)
|
825
|
+
rescue ::ECentroidDoesNotExist => err
|
826
|
+
result.err = err
|
827
|
+
end
|
828
|
+
write_result(result, oprot, 'listCentroidDocumentRange', seqid)
|
725
829
|
end
|
726
830
|
|
727
|
-
def
|
728
|
-
args = read_args(iprot,
|
729
|
-
result =
|
730
|
-
|
731
|
-
|
831
|
+
def process_listCentroidDocumentRangeFromID(seqid, iprot, oprot)
|
832
|
+
args = read_args(iprot, ListCentroidDocumentRangeFromID_args)
|
833
|
+
result = ListCentroidDocumentRangeFromID_result.new()
|
834
|
+
begin
|
835
|
+
result.success = @handler.listCentroidDocumentRangeFromID(args.centroidId, args.documentId, args.count)
|
836
|
+
rescue ::ECentroidDoesNotExist => err
|
837
|
+
result.err = err
|
838
|
+
end
|
839
|
+
write_result(result, oprot, 'listCentroidDocumentRangeFromID', seqid)
|
732
840
|
end
|
733
841
|
|
734
842
|
def process_debugEraseAllData(seqid, iprot, oprot)
|
@@ -881,16 +989,171 @@ module Relevanced
|
|
881
989
|
::Thrift::Struct.generate_accessors self
|
882
990
|
end
|
883
991
|
|
884
|
-
class MultiGetDocumentSimilarity_result
|
992
|
+
class MultiGetDocumentSimilarity_result
|
993
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
994
|
+
SUCCESS = 0
|
995
|
+
CENTROIDERR = 1
|
996
|
+
DOCERR = 2
|
997
|
+
|
998
|
+
FIELDS = {
|
999
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::MultiSimilarityResponse},
|
1000
|
+
CENTROIDERR => {:type => ::Thrift::Types::STRUCT, :name => 'centroidErr', :class => ::ECentroidDoesNotExist},
|
1001
|
+
DOCERR => {:type => ::Thrift::Types::STRUCT, :name => 'docErr', :class => ::EDocumentDoesNotExist}
|
1002
|
+
}
|
1003
|
+
|
1004
|
+
def struct_fields; FIELDS; end
|
1005
|
+
|
1006
|
+
def validate
|
1007
|
+
end
|
1008
|
+
|
1009
|
+
::Thrift::Struct.generate_accessors self
|
1010
|
+
end
|
1011
|
+
|
1012
|
+
class GetTextSimilarity_args
|
1013
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1014
|
+
CENTROIDID = 1
|
1015
|
+
TEXT = 2
|
1016
|
+
LANG = 3
|
1017
|
+
|
1018
|
+
FIELDS = {
|
1019
|
+
CENTROIDID => {:type => ::Thrift::Types::STRING, :name => 'centroidId'},
|
1020
|
+
TEXT => {:type => ::Thrift::Types::STRING, :name => 'text'},
|
1021
|
+
LANG => {:type => ::Thrift::Types::I32, :name => 'lang', :enum_class => ::Language}
|
1022
|
+
}
|
1023
|
+
|
1024
|
+
def struct_fields; FIELDS; end
|
1025
|
+
|
1026
|
+
def validate
|
1027
|
+
unless @lang.nil? || ::Language::VALID_VALUES.include?(@lang)
|
1028
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field lang!')
|
1029
|
+
end
|
1030
|
+
end
|
1031
|
+
|
1032
|
+
::Thrift::Struct.generate_accessors self
|
1033
|
+
end
|
1034
|
+
|
1035
|
+
class GetTextSimilarity_result
|
1036
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1037
|
+
SUCCESS = 0
|
1038
|
+
ERR = 1
|
1039
|
+
|
1040
|
+
FIELDS = {
|
1041
|
+
SUCCESS => {:type => ::Thrift::Types::DOUBLE, :name => 'success'},
|
1042
|
+
ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::ECentroidDoesNotExist}
|
1043
|
+
}
|
1044
|
+
|
1045
|
+
def struct_fields; FIELDS; end
|
1046
|
+
|
1047
|
+
def validate
|
1048
|
+
end
|
1049
|
+
|
1050
|
+
::Thrift::Struct.generate_accessors self
|
1051
|
+
end
|
1052
|
+
|
1053
|
+
class MultiGetTextSimilarity_args
|
1054
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1055
|
+
CENTROIDIDS = 1
|
1056
|
+
TEXT = 2
|
1057
|
+
LANG = 3
|
1058
|
+
|
1059
|
+
FIELDS = {
|
1060
|
+
CENTROIDIDS => {:type => ::Thrift::Types::LIST, :name => 'centroidIds', :element => {:type => ::Thrift::Types::STRING}},
|
1061
|
+
TEXT => {:type => ::Thrift::Types::STRING, :name => 'text'},
|
1062
|
+
LANG => {:type => ::Thrift::Types::I32, :name => 'lang', :enum_class => ::Language}
|
1063
|
+
}
|
1064
|
+
|
1065
|
+
def struct_fields; FIELDS; end
|
1066
|
+
|
1067
|
+
def validate
|
1068
|
+
unless @lang.nil? || ::Language::VALID_VALUES.include?(@lang)
|
1069
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field lang!')
|
1070
|
+
end
|
1071
|
+
end
|
1072
|
+
|
1073
|
+
::Thrift::Struct.generate_accessors self
|
1074
|
+
end
|
1075
|
+
|
1076
|
+
class MultiGetTextSimilarity_result
|
1077
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1078
|
+
SUCCESS = 0
|
1079
|
+
ERR = 1
|
1080
|
+
|
1081
|
+
FIELDS = {
|
1082
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::MultiSimilarityResponse},
|
1083
|
+
ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::ECentroidDoesNotExist}
|
1084
|
+
}
|
1085
|
+
|
1086
|
+
def struct_fields; FIELDS; end
|
1087
|
+
|
1088
|
+
def validate
|
1089
|
+
end
|
1090
|
+
|
1091
|
+
::Thrift::Struct.generate_accessors self
|
1092
|
+
end
|
1093
|
+
|
1094
|
+
class GetCentroidSimilarity_args
|
1095
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1096
|
+
CENTROID1ID = 1
|
1097
|
+
CENTROID2ID = 2
|
1098
|
+
|
1099
|
+
FIELDS = {
|
1100
|
+
CENTROID1ID => {:type => ::Thrift::Types::STRING, :name => 'centroid1Id'},
|
1101
|
+
CENTROID2ID => {:type => ::Thrift::Types::STRING, :name => 'centroid2Id'}
|
1102
|
+
}
|
1103
|
+
|
1104
|
+
def struct_fields; FIELDS; end
|
1105
|
+
|
1106
|
+
def validate
|
1107
|
+
end
|
1108
|
+
|
1109
|
+
::Thrift::Struct.generate_accessors self
|
1110
|
+
end
|
1111
|
+
|
1112
|
+
class GetCentroidSimilarity_result
|
1113
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1114
|
+
SUCCESS = 0
|
1115
|
+
ERR = 1
|
1116
|
+
|
1117
|
+
FIELDS = {
|
1118
|
+
SUCCESS => {:type => ::Thrift::Types::DOUBLE, :name => 'success'},
|
1119
|
+
ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::ECentroidDoesNotExist}
|
1120
|
+
}
|
1121
|
+
|
1122
|
+
def struct_fields; FIELDS; end
|
1123
|
+
|
1124
|
+
def validate
|
1125
|
+
end
|
1126
|
+
|
1127
|
+
::Thrift::Struct.generate_accessors self
|
1128
|
+
end
|
1129
|
+
|
1130
|
+
class CreateDocument_args
|
1131
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1132
|
+
TEXT = 1
|
1133
|
+
LANGUAGE = 2
|
1134
|
+
|
1135
|
+
FIELDS = {
|
1136
|
+
TEXT => {:type => ::Thrift::Types::STRING, :name => 'text'},
|
1137
|
+
LANGUAGE => {:type => ::Thrift::Types::I32, :name => 'language', :enum_class => ::Language}
|
1138
|
+
}
|
1139
|
+
|
1140
|
+
def struct_fields; FIELDS; end
|
1141
|
+
|
1142
|
+
def validate
|
1143
|
+
unless @language.nil? || ::Language::VALID_VALUES.include?(@language)
|
1144
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field language!')
|
1145
|
+
end
|
1146
|
+
end
|
1147
|
+
|
1148
|
+
::Thrift::Struct.generate_accessors self
|
1149
|
+
end
|
1150
|
+
|
1151
|
+
class CreateDocument_result
|
885
1152
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
886
1153
|
SUCCESS = 0
|
887
|
-
CENTROIDERR = 1
|
888
|
-
DOCERR = 2
|
889
1154
|
|
890
1155
|
FIELDS = {
|
891
|
-
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::
|
892
|
-
CENTROIDERR => {:type => ::Thrift::Types::STRUCT, :name => 'centroidErr', :class => ::ECentroidDoesNotExist},
|
893
|
-
DOCERR => {:type => ::Thrift::Types::STRUCT, :name => 'docErr', :class => ::EDocumentDoesNotExist}
|
1156
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::CreateDocumentResponse}
|
894
1157
|
}
|
895
1158
|
|
896
1159
|
def struct_fields; FIELDS; end
|
@@ -901,37 +1164,37 @@ module Relevanced
|
|
901
1164
|
::Thrift::Struct.generate_accessors self
|
902
1165
|
end
|
903
1166
|
|
904
|
-
class
|
1167
|
+
class CreateDocumentWithID_args
|
905
1168
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
906
|
-
|
1169
|
+
ID = 1
|
907
1170
|
TEXT = 2
|
908
|
-
|
1171
|
+
LANGUAGE = 3
|
909
1172
|
|
910
1173
|
FIELDS = {
|
911
|
-
|
1174
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
|
912
1175
|
TEXT => {:type => ::Thrift::Types::STRING, :name => 'text'},
|
913
|
-
|
1176
|
+
LANGUAGE => {:type => ::Thrift::Types::I32, :name => 'language', :enum_class => ::Language}
|
914
1177
|
}
|
915
1178
|
|
916
1179
|
def struct_fields; FIELDS; end
|
917
1180
|
|
918
1181
|
def validate
|
919
|
-
unless @
|
920
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field
|
1182
|
+
unless @language.nil? || ::Language::VALID_VALUES.include?(@language)
|
1183
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field language!')
|
921
1184
|
end
|
922
1185
|
end
|
923
1186
|
|
924
1187
|
::Thrift::Struct.generate_accessors self
|
925
1188
|
end
|
926
1189
|
|
927
|
-
class
|
1190
|
+
class CreateDocumentWithID_result
|
928
1191
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
929
1192
|
SUCCESS = 0
|
930
1193
|
ERR = 1
|
931
1194
|
|
932
1195
|
FIELDS = {
|
933
|
-
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::
|
934
|
-
ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::
|
1196
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::CreateDocumentResponse},
|
1197
|
+
ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::EDocumentAlreadyExists}
|
935
1198
|
}
|
936
1199
|
|
937
1200
|
def struct_fields; FIELDS; end
|
@@ -942,37 +1205,30 @@ module Relevanced
|
|
942
1205
|
::Thrift::Struct.generate_accessors self
|
943
1206
|
end
|
944
1207
|
|
945
|
-
class
|
1208
|
+
class DeleteDocument_args
|
946
1209
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
947
|
-
|
948
|
-
TEXT = 2
|
949
|
-
LANG = 3
|
1210
|
+
REQUEST = 1
|
950
1211
|
|
951
1212
|
FIELDS = {
|
952
|
-
|
953
|
-
TEXT => {:type => ::Thrift::Types::STRING, :name => 'text'},
|
954
|
-
LANG => {:type => ::Thrift::Types::I32, :name => 'lang', :enum_class => ::Language}
|
1213
|
+
REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'request', :class => ::DeleteDocumentRequest}
|
955
1214
|
}
|
956
1215
|
|
957
1216
|
def struct_fields; FIELDS; end
|
958
1217
|
|
959
1218
|
def validate
|
960
|
-
unless @lang.nil? || ::Language::VALID_VALUES.include?(@lang)
|
961
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field lang!')
|
962
|
-
end
|
963
1219
|
end
|
964
1220
|
|
965
1221
|
::Thrift::Struct.generate_accessors self
|
966
1222
|
end
|
967
1223
|
|
968
|
-
class
|
1224
|
+
class DeleteDocument_result
|
969
1225
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
970
1226
|
SUCCESS = 0
|
971
1227
|
ERR = 1
|
972
1228
|
|
973
1229
|
FIELDS = {
|
974
|
-
SUCCESS => {:type => ::Thrift::Types::
|
975
|
-
ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::
|
1230
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::DeleteDocumentResponse},
|
1231
|
+
ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::EDocumentDoesNotExist}
|
976
1232
|
}
|
977
1233
|
|
978
1234
|
def struct_fields; FIELDS; end
|
@@ -983,14 +1239,12 @@ module Relevanced
|
|
983
1239
|
::Thrift::Struct.generate_accessors self
|
984
1240
|
end
|
985
1241
|
|
986
|
-
class
|
1242
|
+
class MultiDeleteDocuments_args
|
987
1243
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
988
|
-
|
989
|
-
CENTROID2ID = 2
|
1244
|
+
REQUEST = 1
|
990
1245
|
|
991
1246
|
FIELDS = {
|
992
|
-
|
993
|
-
CENTROID2ID => {:type => ::Thrift::Types::STRING, :name => 'centroid2Id'}
|
1247
|
+
REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'request', :class => ::MultiDeleteDocumentsRequest}
|
994
1248
|
}
|
995
1249
|
|
996
1250
|
def struct_fields; FIELDS; end
|
@@ -1001,14 +1255,14 @@ module Relevanced
|
|
1001
1255
|
::Thrift::Struct.generate_accessors self
|
1002
1256
|
end
|
1003
1257
|
|
1004
|
-
class
|
1258
|
+
class MultiDeleteDocuments_result
|
1005
1259
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1006
1260
|
SUCCESS = 0
|
1007
1261
|
ERR = 1
|
1008
1262
|
|
1009
1263
|
FIELDS = {
|
1010
|
-
SUCCESS => {:type => ::Thrift::Types::
|
1011
|
-
ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::
|
1264
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::MultiDeleteDocumentsResponse},
|
1265
|
+
ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::EDocumentDoesNotExist}
|
1012
1266
|
}
|
1013
1267
|
|
1014
1268
|
def struct_fields; FIELDS; end
|
@@ -1019,33 +1273,30 @@ module Relevanced
|
|
1019
1273
|
::Thrift::Struct.generate_accessors self
|
1020
1274
|
end
|
1021
1275
|
|
1022
|
-
class
|
1276
|
+
class GetDocumentMetadata_args
|
1023
1277
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1024
|
-
|
1025
|
-
LANGUAGE = 2
|
1278
|
+
ID = 1
|
1026
1279
|
|
1027
1280
|
FIELDS = {
|
1028
|
-
|
1029
|
-
LANGUAGE => {:type => ::Thrift::Types::I32, :name => 'language', :enum_class => ::Language}
|
1281
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id'}
|
1030
1282
|
}
|
1031
1283
|
|
1032
1284
|
def struct_fields; FIELDS; end
|
1033
1285
|
|
1034
1286
|
def validate
|
1035
|
-
unless @language.nil? || ::Language::VALID_VALUES.include?(@language)
|
1036
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field language!')
|
1037
|
-
end
|
1038
1287
|
end
|
1039
1288
|
|
1040
1289
|
::Thrift::Struct.generate_accessors self
|
1041
1290
|
end
|
1042
1291
|
|
1043
|
-
class
|
1292
|
+
class GetDocumentMetadata_result
|
1044
1293
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1045
1294
|
SUCCESS = 0
|
1295
|
+
ERR = 1
|
1046
1296
|
|
1047
1297
|
FIELDS = {
|
1048
|
-
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::
|
1298
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::GetDocumentMetadataResponse},
|
1299
|
+
ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::EDocumentDoesNotExist}
|
1049
1300
|
}
|
1050
1301
|
|
1051
1302
|
def struct_fields; FIELDS; end
|
@@ -1056,37 +1307,27 @@ module Relevanced
|
|
1056
1307
|
::Thrift::Struct.generate_accessors self
|
1057
1308
|
end
|
1058
1309
|
|
1059
|
-
class
|
1310
|
+
class ListAllDocuments_args
|
1060
1311
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1061
|
-
ID = 1
|
1062
|
-
TEXT = 2
|
1063
|
-
LANGUAGE = 3
|
1064
1312
|
|
1065
1313
|
FIELDS = {
|
1066
|
-
|
1067
|
-
TEXT => {:type => ::Thrift::Types::STRING, :name => 'text'},
|
1068
|
-
LANGUAGE => {:type => ::Thrift::Types::I32, :name => 'language', :enum_class => ::Language}
|
1314
|
+
|
1069
1315
|
}
|
1070
1316
|
|
1071
1317
|
def struct_fields; FIELDS; end
|
1072
1318
|
|
1073
1319
|
def validate
|
1074
|
-
unless @language.nil? || ::Language::VALID_VALUES.include?(@language)
|
1075
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field language!')
|
1076
|
-
end
|
1077
1320
|
end
|
1078
1321
|
|
1079
1322
|
::Thrift::Struct.generate_accessors self
|
1080
1323
|
end
|
1081
1324
|
|
1082
|
-
class
|
1325
|
+
class ListAllDocuments_result
|
1083
1326
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1084
1327
|
SUCCESS = 0
|
1085
|
-
ERR = 1
|
1086
1328
|
|
1087
1329
|
FIELDS = {
|
1088
|
-
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::
|
1089
|
-
ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::EDocumentAlreadyExists}
|
1330
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::ListDocumentsResponse}
|
1090
1331
|
}
|
1091
1332
|
|
1092
1333
|
def struct_fields; FIELDS; end
|
@@ -1097,12 +1338,12 @@ module Relevanced
|
|
1097
1338
|
::Thrift::Struct.generate_accessors self
|
1098
1339
|
end
|
1099
1340
|
|
1100
|
-
class
|
1341
|
+
class ListUnusedDocuments_args
|
1101
1342
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1102
|
-
|
1343
|
+
LIMIT = 1
|
1103
1344
|
|
1104
1345
|
FIELDS = {
|
1105
|
-
|
1346
|
+
LIMIT => {:type => ::Thrift::Types::I64, :name => 'limit'}
|
1106
1347
|
}
|
1107
1348
|
|
1108
1349
|
def struct_fields; FIELDS; end
|
@@ -1113,14 +1354,12 @@ module Relevanced
|
|
1113
1354
|
::Thrift::Struct.generate_accessors self
|
1114
1355
|
end
|
1115
1356
|
|
1116
|
-
class
|
1357
|
+
class ListUnusedDocuments_result
|
1117
1358
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1118
1359
|
SUCCESS = 0
|
1119
|
-
ERR = 1
|
1120
1360
|
|
1121
1361
|
FIELDS = {
|
1122
|
-
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::
|
1123
|
-
ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::EDocumentDoesNotExist}
|
1362
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::ListDocumentsResponse}
|
1124
1363
|
}
|
1125
1364
|
|
1126
1365
|
def struct_fields; FIELDS; end
|
@@ -1131,12 +1370,14 @@ module Relevanced
|
|
1131
1370
|
::Thrift::Struct.generate_accessors self
|
1132
1371
|
end
|
1133
1372
|
|
1134
|
-
class
|
1373
|
+
class ListDocumentRange_args
|
1135
1374
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1136
|
-
|
1375
|
+
OFFSET = 1
|
1376
|
+
COUNT = 2
|
1137
1377
|
|
1138
1378
|
FIELDS = {
|
1139
|
-
|
1379
|
+
OFFSET => {:type => ::Thrift::Types::I64, :name => 'offset'},
|
1380
|
+
COUNT => {:type => ::Thrift::Types::I64, :name => 'count'}
|
1140
1381
|
}
|
1141
1382
|
|
1142
1383
|
def struct_fields; FIELDS; end
|
@@ -1147,14 +1388,12 @@ module Relevanced
|
|
1147
1388
|
::Thrift::Struct.generate_accessors self
|
1148
1389
|
end
|
1149
1390
|
|
1150
|
-
class
|
1391
|
+
class ListDocumentRange_result
|
1151
1392
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1152
1393
|
SUCCESS = 0
|
1153
|
-
ERR = 1
|
1154
1394
|
|
1155
1395
|
FIELDS = {
|
1156
|
-
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::
|
1157
|
-
ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::EDocumentDoesNotExist}
|
1396
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::ListDocumentsResponse}
|
1158
1397
|
}
|
1159
1398
|
|
1160
1399
|
def struct_fields; FIELDS; end
|
@@ -1165,12 +1404,14 @@ module Relevanced
|
|
1165
1404
|
::Thrift::Struct.generate_accessors self
|
1166
1405
|
end
|
1167
1406
|
|
1168
|
-
class
|
1407
|
+
class ListDocumentRangeFromID_args
|
1169
1408
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1170
|
-
|
1409
|
+
DOCUMENTID = 1
|
1410
|
+
COUNT = 2
|
1171
1411
|
|
1172
1412
|
FIELDS = {
|
1173
|
-
|
1413
|
+
DOCUMENTID => {:type => ::Thrift::Types::STRING, :name => 'documentId'},
|
1414
|
+
COUNT => {:type => ::Thrift::Types::I64, :name => 'count'}
|
1174
1415
|
}
|
1175
1416
|
|
1176
1417
|
def struct_fields; FIELDS; end
|
@@ -1181,14 +1422,12 @@ module Relevanced
|
|
1181
1422
|
::Thrift::Struct.generate_accessors self
|
1182
1423
|
end
|
1183
1424
|
|
1184
|
-
class
|
1425
|
+
class ListDocumentRangeFromID_result
|
1185
1426
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1186
1427
|
SUCCESS = 0
|
1187
|
-
ERR = 1
|
1188
1428
|
|
1189
1429
|
FIELDS = {
|
1190
|
-
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::
|
1191
|
-
ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::ECentroidAlreadyExists}
|
1430
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::ListDocumentsResponse}
|
1192
1431
|
}
|
1193
1432
|
|
1194
1433
|
def struct_fields; FIELDS; end
|
@@ -1199,12 +1438,12 @@ module Relevanced
|
|
1199
1438
|
::Thrift::Struct.generate_accessors self
|
1200
1439
|
end
|
1201
1440
|
|
1202
|
-
class
|
1441
|
+
class CreateCentroid_args
|
1203
1442
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1204
|
-
|
1443
|
+
REQUEST = 1
|
1205
1444
|
|
1206
1445
|
FIELDS = {
|
1207
|
-
|
1446
|
+
REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'request', :class => ::CreateCentroidRequest}
|
1208
1447
|
}
|
1209
1448
|
|
1210
1449
|
def struct_fields; FIELDS; end
|
@@ -1215,14 +1454,14 @@ module Relevanced
|
|
1215
1454
|
::Thrift::Struct.generate_accessors self
|
1216
1455
|
end
|
1217
1456
|
|
1218
|
-
class
|
1457
|
+
class CreateCentroid_result
|
1219
1458
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1220
1459
|
SUCCESS = 0
|
1221
1460
|
ERR = 1
|
1222
1461
|
|
1223
1462
|
FIELDS = {
|
1224
|
-
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::
|
1225
|
-
ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::
|
1463
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::CreateCentroidResponse},
|
1464
|
+
ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::ECentroidAlreadyExists}
|
1226
1465
|
}
|
1227
1466
|
|
1228
1467
|
def struct_fields; FIELDS; end
|
@@ -1233,12 +1472,12 @@ module Relevanced
|
|
1233
1472
|
::Thrift::Struct.generate_accessors self
|
1234
1473
|
end
|
1235
1474
|
|
1236
|
-
class
|
1475
|
+
class MultiCreateCentroids_args
|
1237
1476
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1238
|
-
|
1477
|
+
REQUEST = 1
|
1239
1478
|
|
1240
1479
|
FIELDS = {
|
1241
|
-
|
1480
|
+
REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'request', :class => ::MultiCreateCentroidsRequest}
|
1242
1481
|
}
|
1243
1482
|
|
1244
1483
|
def struct_fields; FIELDS; end
|
@@ -1249,14 +1488,14 @@ module Relevanced
|
|
1249
1488
|
::Thrift::Struct.generate_accessors self
|
1250
1489
|
end
|
1251
1490
|
|
1252
|
-
class
|
1491
|
+
class MultiCreateCentroids_result
|
1253
1492
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1254
1493
|
SUCCESS = 0
|
1255
1494
|
ERR = 1
|
1256
1495
|
|
1257
1496
|
FIELDS = {
|
1258
|
-
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::
|
1259
|
-
ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::
|
1497
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::MultiCreateCentroidsResponse},
|
1498
|
+
ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::ECentroidAlreadyExists}
|
1260
1499
|
}
|
1261
1500
|
|
1262
1501
|
def struct_fields; FIELDS; end
|
@@ -1267,16 +1506,12 @@ module Relevanced
|
|
1267
1506
|
::Thrift::Struct.generate_accessors self
|
1268
1507
|
end
|
1269
1508
|
|
1270
|
-
class
|
1509
|
+
class DeleteCentroid_args
|
1271
1510
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1272
|
-
|
1273
|
-
OFFSET = 2
|
1274
|
-
COUNT = 3
|
1511
|
+
REQUEST = 1
|
1275
1512
|
|
1276
1513
|
FIELDS = {
|
1277
|
-
|
1278
|
-
OFFSET => {:type => ::Thrift::Types::I64, :name => 'offset'},
|
1279
|
-
COUNT => {:type => ::Thrift::Types::I64, :name => 'count'}
|
1514
|
+
REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'request', :class => ::DeleteCentroidRequest}
|
1280
1515
|
}
|
1281
1516
|
|
1282
1517
|
def struct_fields; FIELDS; end
|
@@ -1287,13 +1522,13 @@ module Relevanced
|
|
1287
1522
|
::Thrift::Struct.generate_accessors self
|
1288
1523
|
end
|
1289
1524
|
|
1290
|
-
class
|
1525
|
+
class DeleteCentroid_result
|
1291
1526
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1292
1527
|
SUCCESS = 0
|
1293
1528
|
ERR = 1
|
1294
1529
|
|
1295
1530
|
FIELDS = {
|
1296
|
-
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::
|
1531
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::DeleteCentroidResponse},
|
1297
1532
|
ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::ECentroidDoesNotExist}
|
1298
1533
|
}
|
1299
1534
|
|
@@ -1305,16 +1540,12 @@ module Relevanced
|
|
1305
1540
|
::Thrift::Struct.generate_accessors self
|
1306
1541
|
end
|
1307
1542
|
|
1308
|
-
class
|
1543
|
+
class MultiDeleteCentroids_args
|
1309
1544
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1310
|
-
|
1311
|
-
DOCUMENTID = 2
|
1312
|
-
COUNT = 3
|
1545
|
+
REQUEST = 1
|
1313
1546
|
|
1314
1547
|
FIELDS = {
|
1315
|
-
|
1316
|
-
DOCUMENTID => {:type => ::Thrift::Types::STRING, :name => 'documentId'},
|
1317
|
-
COUNT => {:type => ::Thrift::Types::I64, :name => 'count'}
|
1548
|
+
REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'request', :class => ::MultiDeleteCentroidsRequest}
|
1318
1549
|
}
|
1319
1550
|
|
1320
1551
|
def struct_fields; FIELDS; end
|
@@ -1325,13 +1556,13 @@ module Relevanced
|
|
1325
1556
|
::Thrift::Struct.generate_accessors self
|
1326
1557
|
end
|
1327
1558
|
|
1328
|
-
class
|
1559
|
+
class MultiDeleteCentroids_result
|
1329
1560
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1330
1561
|
SUCCESS = 0
|
1331
1562
|
ERR = 1
|
1332
1563
|
|
1333
1564
|
FIELDS = {
|
1334
|
-
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::
|
1565
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::MultiDeleteCentroidsResponse},
|
1335
1566
|
ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::ECentroidDoesNotExist}
|
1336
1567
|
}
|
1337
1568
|
|
@@ -1343,14 +1574,12 @@ module Relevanced
|
|
1343
1574
|
::Thrift::Struct.generate_accessors self
|
1344
1575
|
end
|
1345
1576
|
|
1346
|
-
class
|
1577
|
+
class AddDocumentsToCentroid_args
|
1347
1578
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1348
|
-
|
1349
|
-
DOCID = 2
|
1579
|
+
REQUEST = 1
|
1350
1580
|
|
1351
1581
|
FIELDS = {
|
1352
|
-
|
1353
|
-
DOCID => {:type => ::Thrift::Types::STRING, :name => 'docId'}
|
1582
|
+
REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'request', :class => ::AddDocumentsToCentroidRequest}
|
1354
1583
|
}
|
1355
1584
|
|
1356
1585
|
def struct_fields; FIELDS; end
|
@@ -1361,7 +1590,7 @@ module Relevanced
|
|
1361
1590
|
::Thrift::Struct.generate_accessors self
|
1362
1591
|
end
|
1363
1592
|
|
1364
|
-
class
|
1593
|
+
class AddDocumentsToCentroid_result
|
1365
1594
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1366
1595
|
SUCCESS = 0
|
1367
1596
|
CENTROIDERR = 1
|
@@ -1369,7 +1598,7 @@ module Relevanced
|
|
1369
1598
|
BOTHERR = 3
|
1370
1599
|
|
1371
1600
|
FIELDS = {
|
1372
|
-
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::
|
1601
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::AddDocumentsToCentroidResponse},
|
1373
1602
|
CENTROIDERR => {:type => ::Thrift::Types::STRUCT, :name => 'centroidErr', :class => ::ECentroidDoesNotExist},
|
1374
1603
|
DOCERR => {:type => ::Thrift::Types::STRUCT, :name => 'docErr', :class => ::EDocumentDoesNotExist},
|
1375
1604
|
BOTHERR => {:type => ::Thrift::Types::STRUCT, :name => 'bothErr', :class => ::EDocumentAlreadyInCentroid}
|
@@ -1383,14 +1612,12 @@ module Relevanced
|
|
1383
1612
|
::Thrift::Struct.generate_accessors self
|
1384
1613
|
end
|
1385
1614
|
|
1386
|
-
class
|
1615
|
+
class RemoveDocumentsFromCentroid_args
|
1387
1616
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1388
|
-
|
1389
|
-
DOCID = 2
|
1617
|
+
REQUEST = 1
|
1390
1618
|
|
1391
1619
|
FIELDS = {
|
1392
|
-
|
1393
|
-
DOCID => {:type => ::Thrift::Types::STRING, :name => 'docId'}
|
1620
|
+
REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'request', :class => ::RemoveDocumentsFromCentroidRequest}
|
1394
1621
|
}
|
1395
1622
|
|
1396
1623
|
def struct_fields; FIELDS; end
|
@@ -1401,7 +1628,7 @@ module Relevanced
|
|
1401
1628
|
::Thrift::Struct.generate_accessors self
|
1402
1629
|
end
|
1403
1630
|
|
1404
|
-
class
|
1631
|
+
class RemoveDocumentsFromCentroid_result
|
1405
1632
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1406
1633
|
SUCCESS = 0
|
1407
1634
|
CENTROIDERR = 1
|
@@ -1409,7 +1636,7 @@ module Relevanced
|
|
1409
1636
|
BOTHERR = 3
|
1410
1637
|
|
1411
1638
|
FIELDS = {
|
1412
|
-
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::
|
1639
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::RemoveDocumentsFromCentroidResponse},
|
1413
1640
|
CENTROIDERR => {:type => ::Thrift::Types::STRUCT, :name => 'centroidErr', :class => ::ECentroidDoesNotExist},
|
1414
1641
|
DOCERR => {:type => ::Thrift::Types::STRUCT, :name => 'docErr', :class => ::EDocumentDoesNotExist},
|
1415
1642
|
BOTHERR => {:type => ::Thrift::Types::STRUCT, :name => 'bothErr', :class => ::EDocumentNotInCentroid}
|
@@ -1425,10 +1652,10 @@ module Relevanced
|
|
1425
1652
|
|
1426
1653
|
class JoinCentroid_args
|
1427
1654
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1428
|
-
|
1655
|
+
REQUEST = 1
|
1429
1656
|
|
1430
1657
|
FIELDS = {
|
1431
|
-
|
1658
|
+
REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'request', :class => ::JoinCentroidRequest}
|
1432
1659
|
}
|
1433
1660
|
|
1434
1661
|
def struct_fields; FIELDS; end
|
@@ -1457,11 +1684,12 @@ module Relevanced
|
|
1457
1684
|
::Thrift::Struct.generate_accessors self
|
1458
1685
|
end
|
1459
1686
|
|
1460
|
-
class
|
1687
|
+
class MultiJoinCentroids_args
|
1461
1688
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1689
|
+
REQUEST = 1
|
1462
1690
|
|
1463
1691
|
FIELDS = {
|
1464
|
-
|
1692
|
+
REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'request', :class => ::MultiJoinCentroidsRequest}
|
1465
1693
|
}
|
1466
1694
|
|
1467
1695
|
def struct_fields; FIELDS; end
|
@@ -1472,12 +1700,14 @@ module Relevanced
|
|
1472
1700
|
::Thrift::Struct.generate_accessors self
|
1473
1701
|
end
|
1474
1702
|
|
1475
|
-
class
|
1703
|
+
class MultiJoinCentroids_result
|
1476
1704
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1477
1705
|
SUCCESS = 0
|
1706
|
+
ERR = 1
|
1478
1707
|
|
1479
1708
|
FIELDS = {
|
1480
|
-
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::
|
1709
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::MultiJoinCentroidsResponse},
|
1710
|
+
ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::ECentroidDoesNotExist}
|
1481
1711
|
}
|
1482
1712
|
|
1483
1713
|
def struct_fields; FIELDS; end
|
@@ -1488,14 +1718,11 @@ module Relevanced
|
|
1488
1718
|
::Thrift::Struct.generate_accessors self
|
1489
1719
|
end
|
1490
1720
|
|
1491
|
-
class
|
1721
|
+
class ListAllCentroids_args
|
1492
1722
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1493
|
-
OFFSET = 1
|
1494
|
-
COUNT = 2
|
1495
1723
|
|
1496
1724
|
FIELDS = {
|
1497
|
-
|
1498
|
-
COUNT => {:type => ::Thrift::Types::I64, :name => 'count'}
|
1725
|
+
|
1499
1726
|
}
|
1500
1727
|
|
1501
1728
|
def struct_fields; FIELDS; end
|
@@ -1506,7 +1733,7 @@ module Relevanced
|
|
1506
1733
|
::Thrift::Struct.generate_accessors self
|
1507
1734
|
end
|
1508
1735
|
|
1509
|
-
class
|
1736
|
+
class ListAllCentroids_result
|
1510
1737
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1511
1738
|
SUCCESS = 0
|
1512
1739
|
|
@@ -1522,13 +1749,13 @@ module Relevanced
|
|
1522
1749
|
::Thrift::Struct.generate_accessors self
|
1523
1750
|
end
|
1524
1751
|
|
1525
|
-
class
|
1752
|
+
class ListCentroidRange_args
|
1526
1753
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1527
|
-
|
1754
|
+
OFFSET = 1
|
1528
1755
|
COUNT = 2
|
1529
1756
|
|
1530
1757
|
FIELDS = {
|
1531
|
-
|
1758
|
+
OFFSET => {:type => ::Thrift::Types::I64, :name => 'offset'},
|
1532
1759
|
COUNT => {:type => ::Thrift::Types::I64, :name => 'count'}
|
1533
1760
|
}
|
1534
1761
|
|
@@ -1540,7 +1767,7 @@ module Relevanced
|
|
1540
1767
|
::Thrift::Struct.generate_accessors self
|
1541
1768
|
end
|
1542
1769
|
|
1543
|
-
class
|
1770
|
+
class ListCentroidRange_result
|
1544
1771
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1545
1772
|
SUCCESS = 0
|
1546
1773
|
|
@@ -1556,11 +1783,14 @@ module Relevanced
|
|
1556
1783
|
::Thrift::Struct.generate_accessors self
|
1557
1784
|
end
|
1558
1785
|
|
1559
|
-
class
|
1786
|
+
class ListCentroidRangeFromID_args
|
1560
1787
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1788
|
+
CENTROIDID = 1
|
1789
|
+
COUNT = 2
|
1561
1790
|
|
1562
1791
|
FIELDS = {
|
1563
|
-
|
1792
|
+
CENTROIDID => {:type => ::Thrift::Types::STRING, :name => 'centroidId'},
|
1793
|
+
COUNT => {:type => ::Thrift::Types::I64, :name => 'count'}
|
1564
1794
|
}
|
1565
1795
|
|
1566
1796
|
def struct_fields; FIELDS; end
|
@@ -1571,12 +1801,12 @@ module Relevanced
|
|
1571
1801
|
::Thrift::Struct.generate_accessors self
|
1572
1802
|
end
|
1573
1803
|
|
1574
|
-
class
|
1804
|
+
class ListCentroidRangeFromID_result
|
1575
1805
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1576
1806
|
SUCCESS = 0
|
1577
1807
|
|
1578
1808
|
FIELDS = {
|
1579
|
-
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::
|
1809
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::ListCentroidsResponse}
|
1580
1810
|
}
|
1581
1811
|
|
1582
1812
|
def struct_fields; FIELDS; end
|
@@ -1587,12 +1817,12 @@ module Relevanced
|
|
1587
1817
|
::Thrift::Struct.generate_accessors self
|
1588
1818
|
end
|
1589
1819
|
|
1590
|
-
class
|
1820
|
+
class ListAllDocumentsForCentroid_args
|
1591
1821
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1592
|
-
|
1822
|
+
CENTROIDID = 1
|
1593
1823
|
|
1594
1824
|
FIELDS = {
|
1595
|
-
|
1825
|
+
CENTROIDID => {:type => ::Thrift::Types::STRING, :name => 'centroidId'}
|
1596
1826
|
}
|
1597
1827
|
|
1598
1828
|
def struct_fields; FIELDS; end
|
@@ -1603,12 +1833,14 @@ module Relevanced
|
|
1603
1833
|
::Thrift::Struct.generate_accessors self
|
1604
1834
|
end
|
1605
1835
|
|
1606
|
-
class
|
1836
|
+
class ListAllDocumentsForCentroid_result
|
1607
1837
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1608
1838
|
SUCCESS = 0
|
1839
|
+
ERR = 1
|
1609
1840
|
|
1610
1841
|
FIELDS = {
|
1611
|
-
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::
|
1842
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::ListCentroidDocumentsResponse},
|
1843
|
+
ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::ECentroidDoesNotExist}
|
1612
1844
|
}
|
1613
1845
|
|
1614
1846
|
def struct_fields; FIELDS; end
|
@@ -1619,12 +1851,14 @@ module Relevanced
|
|
1619
1851
|
::Thrift::Struct.generate_accessors self
|
1620
1852
|
end
|
1621
1853
|
|
1622
|
-
class
|
1854
|
+
class ListCentroidDocumentRange_args
|
1623
1855
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1624
|
-
|
1625
|
-
|
1856
|
+
CENTROIDID = 1
|
1857
|
+
OFFSET = 2
|
1858
|
+
COUNT = 3
|
1626
1859
|
|
1627
1860
|
FIELDS = {
|
1861
|
+
CENTROIDID => {:type => ::Thrift::Types::STRING, :name => 'centroidId'},
|
1628
1862
|
OFFSET => {:type => ::Thrift::Types::I64, :name => 'offset'},
|
1629
1863
|
COUNT => {:type => ::Thrift::Types::I64, :name => 'count'}
|
1630
1864
|
}
|
@@ -1637,12 +1871,14 @@ module Relevanced
|
|
1637
1871
|
::Thrift::Struct.generate_accessors self
|
1638
1872
|
end
|
1639
1873
|
|
1640
|
-
class
|
1874
|
+
class ListCentroidDocumentRange_result
|
1641
1875
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1642
1876
|
SUCCESS = 0
|
1877
|
+
ERR = 1
|
1643
1878
|
|
1644
1879
|
FIELDS = {
|
1645
|
-
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::
|
1880
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::ListCentroidDocumentsResponse},
|
1881
|
+
ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::ECentroidDoesNotExist}
|
1646
1882
|
}
|
1647
1883
|
|
1648
1884
|
def struct_fields; FIELDS; end
|
@@ -1653,12 +1889,14 @@ module Relevanced
|
|
1653
1889
|
::Thrift::Struct.generate_accessors self
|
1654
1890
|
end
|
1655
1891
|
|
1656
|
-
class
|
1892
|
+
class ListCentroidDocumentRangeFromID_args
|
1657
1893
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1658
|
-
|
1659
|
-
|
1894
|
+
CENTROIDID = 1
|
1895
|
+
DOCUMENTID = 2
|
1896
|
+
COUNT = 3
|
1660
1897
|
|
1661
1898
|
FIELDS = {
|
1899
|
+
CENTROIDID => {:type => ::Thrift::Types::STRING, :name => 'centroidId'},
|
1662
1900
|
DOCUMENTID => {:type => ::Thrift::Types::STRING, :name => 'documentId'},
|
1663
1901
|
COUNT => {:type => ::Thrift::Types::I64, :name => 'count'}
|
1664
1902
|
}
|
@@ -1671,12 +1909,14 @@ module Relevanced
|
|
1671
1909
|
::Thrift::Struct.generate_accessors self
|
1672
1910
|
end
|
1673
1911
|
|
1674
|
-
class
|
1912
|
+
class ListCentroidDocumentRangeFromID_result
|
1675
1913
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1676
1914
|
SUCCESS = 0
|
1915
|
+
ERR = 1
|
1677
1916
|
|
1678
1917
|
FIELDS = {
|
1679
|
-
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::
|
1918
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::ListCentroidDocumentsResponse},
|
1919
|
+
ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::ECentroidDoesNotExist}
|
1680
1920
|
}
|
1681
1921
|
|
1682
1922
|
def struct_fields; FIELDS; end
|