relevanced_client 0.9.2 → 0.9.4
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 +173 -0
- data/lib/gen-rb/relevanced_protocol_types.rb +43 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19c974b07996b367ef0e48cec29bd2220209268a
|
4
|
+
data.tar.gz: 3a2e2350ab3b91c47f9d115a1e8421accee98fe7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f1d0f3e597c1cbeb8eb4313a7353915440d972e6fc7d207e7521bc61feaffd9dc24877f3fb7204bb0a8c7e7afff87feccc296b8ca455ef2fc38cb9bee2ff3d5
|
7
|
+
data.tar.gz: 8597fb8a57d762409e2bc45173b30a33a75284e6e343a40ed86afd86bd501d23fcfe8830ad8793e4adf453f7ce073b888a2b223e5c97758eafbfa78b21f54a01
|
data/lib/gen-rb/relevanced.rb
CHANGED
@@ -298,6 +298,52 @@ module Relevanced
|
|
298
298
|
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'listAllDocuments failed: unknown result')
|
299
299
|
end
|
300
300
|
|
301
|
+
def debugEraseAllData()
|
302
|
+
send_debugEraseAllData()
|
303
|
+
recv_debugEraseAllData()
|
304
|
+
end
|
305
|
+
|
306
|
+
def send_debugEraseAllData()
|
307
|
+
send_message('debugEraseAllData', DebugEraseAllData_args)
|
308
|
+
end
|
309
|
+
|
310
|
+
def recv_debugEraseAllData()
|
311
|
+
result = receive_message(DebugEraseAllData_result)
|
312
|
+
return
|
313
|
+
end
|
314
|
+
|
315
|
+
def debugGetFullCentroid(centroidId)
|
316
|
+
send_debugGetFullCentroid(centroidId)
|
317
|
+
return recv_debugGetFullCentroid()
|
318
|
+
end
|
319
|
+
|
320
|
+
def send_debugGetFullCentroid(centroidId)
|
321
|
+
send_message('debugGetFullCentroid', DebugGetFullCentroid_args, :centroidId => centroidId)
|
322
|
+
end
|
323
|
+
|
324
|
+
def recv_debugGetFullCentroid()
|
325
|
+
result = receive_message(DebugGetFullCentroid_result)
|
326
|
+
return result.success unless result.success.nil?
|
327
|
+
raise result.err unless result.err.nil?
|
328
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'debugGetFullCentroid failed: unknown result')
|
329
|
+
end
|
330
|
+
|
331
|
+
def debugGetFullProcessedDocument(documentId)
|
332
|
+
send_debugGetFullProcessedDocument(documentId)
|
333
|
+
return recv_debugGetFullProcessedDocument()
|
334
|
+
end
|
335
|
+
|
336
|
+
def send_debugGetFullProcessedDocument(documentId)
|
337
|
+
send_message('debugGetFullProcessedDocument', DebugGetFullProcessedDocument_args, :documentId => documentId)
|
338
|
+
end
|
339
|
+
|
340
|
+
def recv_debugGetFullProcessedDocument()
|
341
|
+
result = receive_message(DebugGetFullProcessedDocument_result)
|
342
|
+
return result.success unless result.success.nil?
|
343
|
+
raise result.err unless result.err.nil?
|
344
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'debugGetFullProcessedDocument failed: unknown result')
|
345
|
+
end
|
346
|
+
|
301
347
|
end
|
302
348
|
|
303
349
|
class Processor
|
@@ -491,6 +537,35 @@ module Relevanced
|
|
491
537
|
write_result(result, oprot, 'listAllDocuments', seqid)
|
492
538
|
end
|
493
539
|
|
540
|
+
def process_debugEraseAllData(seqid, iprot, oprot)
|
541
|
+
args = read_args(iprot, DebugEraseAllData_args)
|
542
|
+
result = DebugEraseAllData_result.new()
|
543
|
+
@handler.debugEraseAllData()
|
544
|
+
write_result(result, oprot, 'debugEraseAllData', seqid)
|
545
|
+
end
|
546
|
+
|
547
|
+
def process_debugGetFullCentroid(seqid, iprot, oprot)
|
548
|
+
args = read_args(iprot, DebugGetFullCentroid_args)
|
549
|
+
result = DebugGetFullCentroid_result.new()
|
550
|
+
begin
|
551
|
+
result.success = @handler.debugGetFullCentroid(args.centroidId)
|
552
|
+
rescue ::ECentroidDoesNotExist => err
|
553
|
+
result.err = err
|
554
|
+
end
|
555
|
+
write_result(result, oprot, 'debugGetFullCentroid', seqid)
|
556
|
+
end
|
557
|
+
|
558
|
+
def process_debugGetFullProcessedDocument(seqid, iprot, oprot)
|
559
|
+
args = read_args(iprot, DebugGetFullProcessedDocument_args)
|
560
|
+
result = DebugGetFullProcessedDocument_result.new()
|
561
|
+
begin
|
562
|
+
result.success = @handler.debugGetFullProcessedDocument(args.documentId)
|
563
|
+
rescue ::EDocumentDoesNotExist => err
|
564
|
+
result.err = err
|
565
|
+
end
|
566
|
+
write_result(result, oprot, 'debugGetFullProcessedDocument', seqid)
|
567
|
+
end
|
568
|
+
|
494
569
|
end
|
495
570
|
|
496
571
|
# HELPER FUNCTIONS AND STRUCTURES
|
@@ -1116,5 +1191,103 @@ module Relevanced
|
|
1116
1191
|
::Thrift::Struct.generate_accessors self
|
1117
1192
|
end
|
1118
1193
|
|
1194
|
+
class DebugEraseAllData_args
|
1195
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1196
|
+
|
1197
|
+
FIELDS = {
|
1198
|
+
|
1199
|
+
}
|
1200
|
+
|
1201
|
+
def struct_fields; FIELDS; end
|
1202
|
+
|
1203
|
+
def validate
|
1204
|
+
end
|
1205
|
+
|
1206
|
+
::Thrift::Struct.generate_accessors self
|
1207
|
+
end
|
1208
|
+
|
1209
|
+
class DebugEraseAllData_result
|
1210
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1211
|
+
|
1212
|
+
FIELDS = {
|
1213
|
+
|
1214
|
+
}
|
1215
|
+
|
1216
|
+
def struct_fields; FIELDS; end
|
1217
|
+
|
1218
|
+
def validate
|
1219
|
+
end
|
1220
|
+
|
1221
|
+
::Thrift::Struct.generate_accessors self
|
1222
|
+
end
|
1223
|
+
|
1224
|
+
class DebugGetFullCentroid_args
|
1225
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1226
|
+
CENTROIDID = 1
|
1227
|
+
|
1228
|
+
FIELDS = {
|
1229
|
+
CENTROIDID => {:type => ::Thrift::Types::STRING, :name => 'centroidId'}
|
1230
|
+
}
|
1231
|
+
|
1232
|
+
def struct_fields; FIELDS; end
|
1233
|
+
|
1234
|
+
def validate
|
1235
|
+
end
|
1236
|
+
|
1237
|
+
::Thrift::Struct.generate_accessors self
|
1238
|
+
end
|
1239
|
+
|
1240
|
+
class DebugGetFullCentroid_result
|
1241
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1242
|
+
SUCCESS = 0
|
1243
|
+
ERR = 1
|
1244
|
+
|
1245
|
+
FIELDS = {
|
1246
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::CentroidDTO},
|
1247
|
+
ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::ECentroidDoesNotExist}
|
1248
|
+
}
|
1249
|
+
|
1250
|
+
def struct_fields; FIELDS; end
|
1251
|
+
|
1252
|
+
def validate
|
1253
|
+
end
|
1254
|
+
|
1255
|
+
::Thrift::Struct.generate_accessors self
|
1256
|
+
end
|
1257
|
+
|
1258
|
+
class DebugGetFullProcessedDocument_args
|
1259
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1260
|
+
DOCUMENTID = 1
|
1261
|
+
|
1262
|
+
FIELDS = {
|
1263
|
+
DOCUMENTID => {:type => ::Thrift::Types::STRING, :name => 'documentId'}
|
1264
|
+
}
|
1265
|
+
|
1266
|
+
def struct_fields; FIELDS; end
|
1267
|
+
|
1268
|
+
def validate
|
1269
|
+
end
|
1270
|
+
|
1271
|
+
::Thrift::Struct.generate_accessors self
|
1272
|
+
end
|
1273
|
+
|
1274
|
+
class DebugGetFullProcessedDocument_result
|
1275
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1276
|
+
SUCCESS = 0
|
1277
|
+
ERR = 1
|
1278
|
+
|
1279
|
+
FIELDS = {
|
1280
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::ProcessedDocumentDTO},
|
1281
|
+
ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => ::EDocumentDoesNotExist}
|
1282
|
+
}
|
1283
|
+
|
1284
|
+
def struct_fields; FIELDS; end
|
1285
|
+
|
1286
|
+
def validate
|
1287
|
+
end
|
1288
|
+
|
1289
|
+
::Thrift::Struct.generate_accessors self
|
1290
|
+
end
|
1291
|
+
|
1119
1292
|
end
|
1120
1293
|
|
@@ -29,6 +29,26 @@ class WordVectorDTO
|
|
29
29
|
::Thrift::Struct.generate_accessors self
|
30
30
|
end
|
31
31
|
|
32
|
+
class ScoredWordDTO
|
33
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
34
|
+
WORDBUFF = 1
|
35
|
+
SCORE = 2
|
36
|
+
|
37
|
+
FIELDS = {
|
38
|
+
WORDBUFF => {:type => ::Thrift::Types::STRING, :name => 'wordBuff', :binary => true},
|
39
|
+
SCORE => {:type => ::Thrift::Types::DOUBLE, :name => 'score'}
|
40
|
+
}
|
41
|
+
|
42
|
+
def struct_fields; FIELDS; end
|
43
|
+
|
44
|
+
def validate
|
45
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field wordBuff is unset!') unless @wordBuff
|
46
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field score is unset!') unless @score
|
47
|
+
end
|
48
|
+
|
49
|
+
::Thrift::Struct.generate_accessors self
|
50
|
+
end
|
51
|
+
|
32
52
|
class CentroidMetadataDTO
|
33
53
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
34
54
|
ID = 1
|
@@ -101,6 +121,29 @@ class ProcessedDocumentMetadataDTO
|
|
101
121
|
::Thrift::Struct.generate_accessors self
|
102
122
|
end
|
103
123
|
|
124
|
+
class ProcessedDocumentPersistenceDTO
|
125
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
126
|
+
METADATA = 1
|
127
|
+
SCOREDWORDS = 2
|
128
|
+
MAGNITUDE = 3
|
129
|
+
|
130
|
+
FIELDS = {
|
131
|
+
METADATA => {:type => ::Thrift::Types::STRUCT, :name => 'metadata', :class => ::ProcessedDocumentMetadataDTO},
|
132
|
+
SCOREDWORDS => {:type => ::Thrift::Types::LIST, :name => 'scoredWords', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ScoredWordDTO}},
|
133
|
+
MAGNITUDE => {:type => ::Thrift::Types::DOUBLE, :name => 'magnitude'}
|
134
|
+
}
|
135
|
+
|
136
|
+
def struct_fields; FIELDS; end
|
137
|
+
|
138
|
+
def validate
|
139
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field metadata is unset!') unless @metadata
|
140
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field scoredWords is unset!') unless @scoredWords
|
141
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field magnitude is unset!') unless @magnitude
|
142
|
+
end
|
143
|
+
|
144
|
+
::Thrift::Struct.generate_accessors self
|
145
|
+
end
|
146
|
+
|
104
147
|
class ProcessedDocumentDTO
|
105
148
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
106
149
|
METADATA = 1
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relevanced_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Ivey
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thrift
|