haplocheirus-client 0.6.5
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/LICENSE +13 -0
- data/README.md +70 -0
- data/lib/haplocheirus.rb +40 -0
- data/lib/haplocheirus/client.rb +177 -0
- data/lib/haplocheirus/mock_service.rb +166 -0
- data/lib/haplocheirus/service.rb +24 -0
- data/lib/haplocheirus/thrift/timeline_store.rb +886 -0
- data/lib/haplocheirus/thrift/timeline_store_types.rb +107 -0
- data/lib/haplocheirus/version.rb +3 -0
- metadata +123 -0
@@ -0,0 +1,24 @@
|
|
1
|
+
class Haplocheirus::Service < ThriftClient
|
2
|
+
DEFAULTS = {
|
3
|
+
:transport_wrapper => Thrift::FramedTransport,
|
4
|
+
:exception_classes => [ IOError,
|
5
|
+
Thrift::TransportException,
|
6
|
+
Thrift::ProtocolException,
|
7
|
+
Thrift::ApplicationException ]
|
8
|
+
}
|
9
|
+
|
10
|
+
class ServiceDisabled < StandardError; end
|
11
|
+
|
12
|
+
def initialize(servers = nil, options = {})
|
13
|
+
raise ServiceDisabled if options.key?(:enabled) && !options[:enabled]
|
14
|
+
|
15
|
+
if servers.nil? || servers.empty?
|
16
|
+
servers = ['127.0.0.1:7666']
|
17
|
+
else
|
18
|
+
server = Array(servers)
|
19
|
+
end
|
20
|
+
|
21
|
+
super(Haplocheirus::TimelineStore::Client, servers, DEFAULTS.merge(options))
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
@@ -0,0 +1,886 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
require 'haplocheirus/thrift/timeline_store_types'
|
9
|
+
|
10
|
+
module Haplocheirus
|
11
|
+
module TimelineStore
|
12
|
+
class Client
|
13
|
+
include ::Thrift::Client
|
14
|
+
|
15
|
+
def append(entry, timeline_prefix, timeline_ids)
|
16
|
+
send_append(entry, timeline_prefix, timeline_ids)
|
17
|
+
recv_append()
|
18
|
+
end
|
19
|
+
|
20
|
+
def send_append(entry, timeline_prefix, timeline_ids)
|
21
|
+
send_message('append', Append_args, :entry => entry, :timeline_prefix => timeline_prefix, :timeline_ids => timeline_ids)
|
22
|
+
end
|
23
|
+
|
24
|
+
def recv_append()
|
25
|
+
result = receive_message(Append_result)
|
26
|
+
raise result.ex unless result.ex.nil?
|
27
|
+
return
|
28
|
+
end
|
29
|
+
|
30
|
+
def remove(entry, timeline_prefix, timeline_ids)
|
31
|
+
send_remove(entry, timeline_prefix, timeline_ids)
|
32
|
+
recv_remove()
|
33
|
+
end
|
34
|
+
|
35
|
+
def send_remove(entry, timeline_prefix, timeline_ids)
|
36
|
+
send_message('remove', Remove_args, :entry => entry, :timeline_prefix => timeline_prefix, :timeline_ids => timeline_ids)
|
37
|
+
end
|
38
|
+
|
39
|
+
def recv_remove()
|
40
|
+
result = receive_message(Remove_result)
|
41
|
+
raise result.ex unless result.ex.nil?
|
42
|
+
return
|
43
|
+
end
|
44
|
+
|
45
|
+
def filter(timeline_id, entries, max_search)
|
46
|
+
send_filter(timeline_id, entries, max_search)
|
47
|
+
return recv_filter()
|
48
|
+
end
|
49
|
+
|
50
|
+
def send_filter(timeline_id, entries, max_search)
|
51
|
+
send_message('filter', Filter_args, :timeline_id => timeline_id, :entries => entries, :max_search => max_search)
|
52
|
+
end
|
53
|
+
|
54
|
+
def recv_filter()
|
55
|
+
result = receive_message(Filter_result)
|
56
|
+
return result.success unless result.success.nil?
|
57
|
+
raise result.ex unless result.ex.nil?
|
58
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'filter failed: unknown result')
|
59
|
+
end
|
60
|
+
|
61
|
+
def filter2(timeline_id, id, max_search)
|
62
|
+
send_filter2(timeline_id, id, max_search)
|
63
|
+
return recv_filter2()
|
64
|
+
end
|
65
|
+
|
66
|
+
def send_filter2(timeline_id, id, max_search)
|
67
|
+
send_message('filter2', Filter2_args, :timeline_id => timeline_id, :id => id, :max_search => max_search)
|
68
|
+
end
|
69
|
+
|
70
|
+
def recv_filter2()
|
71
|
+
result = receive_message(Filter2_result)
|
72
|
+
return result.success unless result.success.nil?
|
73
|
+
raise result.ex unless result.ex.nil?
|
74
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'filter2 failed: unknown result')
|
75
|
+
end
|
76
|
+
|
77
|
+
def get(timeline_id, offset, length, dedupe)
|
78
|
+
send_get(timeline_id, offset, length, dedupe)
|
79
|
+
return recv_get()
|
80
|
+
end
|
81
|
+
|
82
|
+
def send_get(timeline_id, offset, length, dedupe)
|
83
|
+
send_message('get', Get_args, :timeline_id => timeline_id, :offset => offset, :length => length, :dedupe => dedupe)
|
84
|
+
end
|
85
|
+
|
86
|
+
def recv_get()
|
87
|
+
result = receive_message(Get_result)
|
88
|
+
return result.success unless result.success.nil?
|
89
|
+
raise result.ex unless result.ex.nil?
|
90
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get failed: unknown result')
|
91
|
+
end
|
92
|
+
|
93
|
+
def get_multi(gets)
|
94
|
+
send_get_multi(gets)
|
95
|
+
return recv_get_multi()
|
96
|
+
end
|
97
|
+
|
98
|
+
def send_get_multi(gets)
|
99
|
+
send_message('get_multi', Get_multi_args, :gets => gets)
|
100
|
+
end
|
101
|
+
|
102
|
+
def recv_get_multi()
|
103
|
+
result = receive_message(Get_multi_result)
|
104
|
+
return result.success unless result.success.nil?
|
105
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_multi failed: unknown result')
|
106
|
+
end
|
107
|
+
|
108
|
+
def get_range(timeline_id, from_id, to_id, dedupe)
|
109
|
+
send_get_range(timeline_id, from_id, to_id, dedupe)
|
110
|
+
return recv_get_range()
|
111
|
+
end
|
112
|
+
|
113
|
+
def send_get_range(timeline_id, from_id, to_id, dedupe)
|
114
|
+
send_message('get_range', Get_range_args, :timeline_id => timeline_id, :from_id => from_id, :to_id => to_id, :dedupe => dedupe)
|
115
|
+
end
|
116
|
+
|
117
|
+
def recv_get_range()
|
118
|
+
result = receive_message(Get_range_result)
|
119
|
+
return result.success unless result.success.nil?
|
120
|
+
raise result.ex unless result.ex.nil?
|
121
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_range failed: unknown result')
|
122
|
+
end
|
123
|
+
|
124
|
+
def get_range_multi(get_ranges)
|
125
|
+
send_get_range_multi(get_ranges)
|
126
|
+
return recv_get_range_multi()
|
127
|
+
end
|
128
|
+
|
129
|
+
def send_get_range_multi(get_ranges)
|
130
|
+
send_message('get_range_multi', Get_range_multi_args, :get_ranges => get_ranges)
|
131
|
+
end
|
132
|
+
|
133
|
+
def recv_get_range_multi()
|
134
|
+
result = receive_message(Get_range_multi_result)
|
135
|
+
return result.success unless result.success.nil?
|
136
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_range_multi failed: unknown result')
|
137
|
+
end
|
138
|
+
|
139
|
+
def store(timeline_id, entries)
|
140
|
+
send_store(timeline_id, entries)
|
141
|
+
recv_store()
|
142
|
+
end
|
143
|
+
|
144
|
+
def send_store(timeline_id, entries)
|
145
|
+
send_message('store', Store_args, :timeline_id => timeline_id, :entries => entries)
|
146
|
+
end
|
147
|
+
|
148
|
+
def recv_store()
|
149
|
+
result = receive_message(Store_result)
|
150
|
+
raise result.ex unless result.ex.nil?
|
151
|
+
return
|
152
|
+
end
|
153
|
+
|
154
|
+
def merge(timeline_id, entries)
|
155
|
+
send_merge(timeline_id, entries)
|
156
|
+
recv_merge()
|
157
|
+
end
|
158
|
+
|
159
|
+
def send_merge(timeline_id, entries)
|
160
|
+
send_message('merge', Merge_args, :timeline_id => timeline_id, :entries => entries)
|
161
|
+
end
|
162
|
+
|
163
|
+
def recv_merge()
|
164
|
+
result = receive_message(Merge_result)
|
165
|
+
raise result.ex unless result.ex.nil?
|
166
|
+
return
|
167
|
+
end
|
168
|
+
|
169
|
+
def unmerge(timeline_id, entries)
|
170
|
+
send_unmerge(timeline_id, entries)
|
171
|
+
recv_unmerge()
|
172
|
+
end
|
173
|
+
|
174
|
+
def send_unmerge(timeline_id, entries)
|
175
|
+
send_message('unmerge', Unmerge_args, :timeline_id => timeline_id, :entries => entries)
|
176
|
+
end
|
177
|
+
|
178
|
+
def recv_unmerge()
|
179
|
+
result = receive_message(Unmerge_result)
|
180
|
+
raise result.ex unless result.ex.nil?
|
181
|
+
return
|
182
|
+
end
|
183
|
+
|
184
|
+
def merge_indirect(dest_timeline_id, source_timeline_id)
|
185
|
+
send_merge_indirect(dest_timeline_id, source_timeline_id)
|
186
|
+
return recv_merge_indirect()
|
187
|
+
end
|
188
|
+
|
189
|
+
def send_merge_indirect(dest_timeline_id, source_timeline_id)
|
190
|
+
send_message('merge_indirect', Merge_indirect_args, :dest_timeline_id => dest_timeline_id, :source_timeline_id => source_timeline_id)
|
191
|
+
end
|
192
|
+
|
193
|
+
def recv_merge_indirect()
|
194
|
+
result = receive_message(Merge_indirect_result)
|
195
|
+
return result.success unless result.success.nil?
|
196
|
+
raise result.ex unless result.ex.nil?
|
197
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'merge_indirect failed: unknown result')
|
198
|
+
end
|
199
|
+
|
200
|
+
def unmerge_indirect(dest_timeline_id, source_timeline_id)
|
201
|
+
send_unmerge_indirect(dest_timeline_id, source_timeline_id)
|
202
|
+
return recv_unmerge_indirect()
|
203
|
+
end
|
204
|
+
|
205
|
+
def send_unmerge_indirect(dest_timeline_id, source_timeline_id)
|
206
|
+
send_message('unmerge_indirect', Unmerge_indirect_args, :dest_timeline_id => dest_timeline_id, :source_timeline_id => source_timeline_id)
|
207
|
+
end
|
208
|
+
|
209
|
+
def recv_unmerge_indirect()
|
210
|
+
result = receive_message(Unmerge_indirect_result)
|
211
|
+
return result.success unless result.success.nil?
|
212
|
+
raise result.ex unless result.ex.nil?
|
213
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'unmerge_indirect failed: unknown result')
|
214
|
+
end
|
215
|
+
|
216
|
+
def delete_timeline(timeline_id)
|
217
|
+
send_delete_timeline(timeline_id)
|
218
|
+
recv_delete_timeline()
|
219
|
+
end
|
220
|
+
|
221
|
+
def send_delete_timeline(timeline_id)
|
222
|
+
send_message('delete_timeline', Delete_timeline_args, :timeline_id => timeline_id)
|
223
|
+
end
|
224
|
+
|
225
|
+
def recv_delete_timeline()
|
226
|
+
result = receive_message(Delete_timeline_result)
|
227
|
+
raise result.ex unless result.ex.nil?
|
228
|
+
return
|
229
|
+
end
|
230
|
+
|
231
|
+
end
|
232
|
+
|
233
|
+
class Processor
|
234
|
+
include ::Thrift::Processor
|
235
|
+
|
236
|
+
def process_append(seqid, iprot, oprot)
|
237
|
+
args = read_args(iprot, Append_args)
|
238
|
+
result = Append_result.new()
|
239
|
+
begin
|
240
|
+
@handler.append(args.entry, args.timeline_prefix, args.timeline_ids)
|
241
|
+
rescue Haplocheirus::TimelineStoreException => ex
|
242
|
+
result.ex = ex
|
243
|
+
end
|
244
|
+
write_result(result, oprot, 'append', seqid)
|
245
|
+
end
|
246
|
+
|
247
|
+
def process_remove(seqid, iprot, oprot)
|
248
|
+
args = read_args(iprot, Remove_args)
|
249
|
+
result = Remove_result.new()
|
250
|
+
begin
|
251
|
+
@handler.remove(args.entry, args.timeline_prefix, args.timeline_ids)
|
252
|
+
rescue Haplocheirus::TimelineStoreException => ex
|
253
|
+
result.ex = ex
|
254
|
+
end
|
255
|
+
write_result(result, oprot, 'remove', seqid)
|
256
|
+
end
|
257
|
+
|
258
|
+
def process_filter(seqid, iprot, oprot)
|
259
|
+
args = read_args(iprot, Filter_args)
|
260
|
+
result = Filter_result.new()
|
261
|
+
begin
|
262
|
+
result.success = @handler.filter(args.timeline_id, args.entries, args.max_search)
|
263
|
+
rescue Haplocheirus::TimelineStoreException => ex
|
264
|
+
result.ex = ex
|
265
|
+
end
|
266
|
+
write_result(result, oprot, 'filter', seqid)
|
267
|
+
end
|
268
|
+
|
269
|
+
def process_filter2(seqid, iprot, oprot)
|
270
|
+
args = read_args(iprot, Filter2_args)
|
271
|
+
result = Filter2_result.new()
|
272
|
+
begin
|
273
|
+
result.success = @handler.filter2(args.timeline_id, args.id, args.max_search)
|
274
|
+
rescue Haplocheirus::TimelineStoreException => ex
|
275
|
+
result.ex = ex
|
276
|
+
end
|
277
|
+
write_result(result, oprot, 'filter2', seqid)
|
278
|
+
end
|
279
|
+
|
280
|
+
def process_get(seqid, iprot, oprot)
|
281
|
+
args = read_args(iprot, Get_args)
|
282
|
+
result = Get_result.new()
|
283
|
+
begin
|
284
|
+
result.success = @handler.get(args.timeline_id, args.offset, args.length, args.dedupe)
|
285
|
+
rescue Haplocheirus::TimelineStoreException => ex
|
286
|
+
result.ex = ex
|
287
|
+
end
|
288
|
+
write_result(result, oprot, 'get', seqid)
|
289
|
+
end
|
290
|
+
|
291
|
+
def process_get_multi(seqid, iprot, oprot)
|
292
|
+
args = read_args(iprot, Get_multi_args)
|
293
|
+
result = Get_multi_result.new()
|
294
|
+
result.success = @handler.get_multi(args.gets)
|
295
|
+
write_result(result, oprot, 'get_multi', seqid)
|
296
|
+
end
|
297
|
+
|
298
|
+
def process_get_range(seqid, iprot, oprot)
|
299
|
+
args = read_args(iprot, Get_range_args)
|
300
|
+
result = Get_range_result.new()
|
301
|
+
begin
|
302
|
+
result.success = @handler.get_range(args.timeline_id, args.from_id, args.to_id, args.dedupe)
|
303
|
+
rescue Haplocheirus::TimelineStoreException => ex
|
304
|
+
result.ex = ex
|
305
|
+
end
|
306
|
+
write_result(result, oprot, 'get_range', seqid)
|
307
|
+
end
|
308
|
+
|
309
|
+
def process_get_range_multi(seqid, iprot, oprot)
|
310
|
+
args = read_args(iprot, Get_range_multi_args)
|
311
|
+
result = Get_range_multi_result.new()
|
312
|
+
result.success = @handler.get_range_multi(args.get_ranges)
|
313
|
+
write_result(result, oprot, 'get_range_multi', seqid)
|
314
|
+
end
|
315
|
+
|
316
|
+
def process_store(seqid, iprot, oprot)
|
317
|
+
args = read_args(iprot, Store_args)
|
318
|
+
result = Store_result.new()
|
319
|
+
begin
|
320
|
+
@handler.store(args.timeline_id, args.entries)
|
321
|
+
rescue Haplocheirus::TimelineStoreException => ex
|
322
|
+
result.ex = ex
|
323
|
+
end
|
324
|
+
write_result(result, oprot, 'store', seqid)
|
325
|
+
end
|
326
|
+
|
327
|
+
def process_merge(seqid, iprot, oprot)
|
328
|
+
args = read_args(iprot, Merge_args)
|
329
|
+
result = Merge_result.new()
|
330
|
+
begin
|
331
|
+
@handler.merge(args.timeline_id, args.entries)
|
332
|
+
rescue Haplocheirus::TimelineStoreException => ex
|
333
|
+
result.ex = ex
|
334
|
+
end
|
335
|
+
write_result(result, oprot, 'merge', seqid)
|
336
|
+
end
|
337
|
+
|
338
|
+
def process_unmerge(seqid, iprot, oprot)
|
339
|
+
args = read_args(iprot, Unmerge_args)
|
340
|
+
result = Unmerge_result.new()
|
341
|
+
begin
|
342
|
+
@handler.unmerge(args.timeline_id, args.entries)
|
343
|
+
rescue Haplocheirus::TimelineStoreException => ex
|
344
|
+
result.ex = ex
|
345
|
+
end
|
346
|
+
write_result(result, oprot, 'unmerge', seqid)
|
347
|
+
end
|
348
|
+
|
349
|
+
def process_merge_indirect(seqid, iprot, oprot)
|
350
|
+
args = read_args(iprot, Merge_indirect_args)
|
351
|
+
result = Merge_indirect_result.new()
|
352
|
+
begin
|
353
|
+
result.success = @handler.merge_indirect(args.dest_timeline_id, args.source_timeline_id)
|
354
|
+
rescue Haplocheirus::TimelineStoreException => ex
|
355
|
+
result.ex = ex
|
356
|
+
end
|
357
|
+
write_result(result, oprot, 'merge_indirect', seqid)
|
358
|
+
end
|
359
|
+
|
360
|
+
def process_unmerge_indirect(seqid, iprot, oprot)
|
361
|
+
args = read_args(iprot, Unmerge_indirect_args)
|
362
|
+
result = Unmerge_indirect_result.new()
|
363
|
+
begin
|
364
|
+
result.success = @handler.unmerge_indirect(args.dest_timeline_id, args.source_timeline_id)
|
365
|
+
rescue Haplocheirus::TimelineStoreException => ex
|
366
|
+
result.ex = ex
|
367
|
+
end
|
368
|
+
write_result(result, oprot, 'unmerge_indirect', seqid)
|
369
|
+
end
|
370
|
+
|
371
|
+
def process_delete_timeline(seqid, iprot, oprot)
|
372
|
+
args = read_args(iprot, Delete_timeline_args)
|
373
|
+
result = Delete_timeline_result.new()
|
374
|
+
begin
|
375
|
+
@handler.delete_timeline(args.timeline_id)
|
376
|
+
rescue Haplocheirus::TimelineStoreException => ex
|
377
|
+
result.ex = ex
|
378
|
+
end
|
379
|
+
write_result(result, oprot, 'delete_timeline', seqid)
|
380
|
+
end
|
381
|
+
|
382
|
+
end
|
383
|
+
|
384
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
385
|
+
|
386
|
+
class Append_args
|
387
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
388
|
+
ENTRY = 1
|
389
|
+
TIMELINE_PREFIX = 2
|
390
|
+
TIMELINE_IDS = 3
|
391
|
+
|
392
|
+
FIELDS = {
|
393
|
+
ENTRY => {:type => ::Thrift::Types::STRING, :name => 'entry', :binary => true},
|
394
|
+
TIMELINE_PREFIX => {:type => ::Thrift::Types::STRING, :name => 'timeline_prefix'},
|
395
|
+
TIMELINE_IDS => {:type => ::Thrift::Types::LIST, :name => 'timeline_ids', :element => {:type => ::Thrift::Types::I64}}
|
396
|
+
}
|
397
|
+
|
398
|
+
def struct_fields; FIELDS; end
|
399
|
+
|
400
|
+
def validate
|
401
|
+
end
|
402
|
+
|
403
|
+
::Thrift::Struct.generate_accessors self
|
404
|
+
end
|
405
|
+
|
406
|
+
class Append_result
|
407
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
408
|
+
EX = 1
|
409
|
+
|
410
|
+
FIELDS = {
|
411
|
+
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => Haplocheirus::TimelineStoreException}
|
412
|
+
}
|
413
|
+
|
414
|
+
def struct_fields; FIELDS; end
|
415
|
+
|
416
|
+
def validate
|
417
|
+
end
|
418
|
+
|
419
|
+
::Thrift::Struct.generate_accessors self
|
420
|
+
end
|
421
|
+
|
422
|
+
class Remove_args
|
423
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
424
|
+
ENTRY = 1
|
425
|
+
TIMELINE_PREFIX = 2
|
426
|
+
TIMELINE_IDS = 3
|
427
|
+
|
428
|
+
FIELDS = {
|
429
|
+
ENTRY => {:type => ::Thrift::Types::STRING, :name => 'entry', :binary => true},
|
430
|
+
TIMELINE_PREFIX => {:type => ::Thrift::Types::STRING, :name => 'timeline_prefix'},
|
431
|
+
TIMELINE_IDS => {:type => ::Thrift::Types::LIST, :name => 'timeline_ids', :element => {:type => ::Thrift::Types::I64}}
|
432
|
+
}
|
433
|
+
|
434
|
+
def struct_fields; FIELDS; end
|
435
|
+
|
436
|
+
def validate
|
437
|
+
end
|
438
|
+
|
439
|
+
::Thrift::Struct.generate_accessors self
|
440
|
+
end
|
441
|
+
|
442
|
+
class Remove_result
|
443
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
444
|
+
EX = 1
|
445
|
+
|
446
|
+
FIELDS = {
|
447
|
+
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => Haplocheirus::TimelineStoreException}
|
448
|
+
}
|
449
|
+
|
450
|
+
def struct_fields; FIELDS; end
|
451
|
+
|
452
|
+
def validate
|
453
|
+
end
|
454
|
+
|
455
|
+
::Thrift::Struct.generate_accessors self
|
456
|
+
end
|
457
|
+
|
458
|
+
class Filter_args
|
459
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
460
|
+
TIMELINE_ID = 1
|
461
|
+
ENTRIES = 2
|
462
|
+
MAX_SEARCH = 3
|
463
|
+
|
464
|
+
FIELDS = {
|
465
|
+
TIMELINE_ID => {:type => ::Thrift::Types::STRING, :name => 'timeline_id'},
|
466
|
+
ENTRIES => {:type => ::Thrift::Types::LIST, :name => 'entries', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
|
467
|
+
MAX_SEARCH => {:type => ::Thrift::Types::I32, :name => 'max_search'}
|
468
|
+
}
|
469
|
+
|
470
|
+
def struct_fields; FIELDS; end
|
471
|
+
|
472
|
+
def validate
|
473
|
+
end
|
474
|
+
|
475
|
+
::Thrift::Struct.generate_accessors self
|
476
|
+
end
|
477
|
+
|
478
|
+
class Filter_result
|
479
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
480
|
+
SUCCESS = 0
|
481
|
+
EX = 1
|
482
|
+
|
483
|
+
FIELDS = {
|
484
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
|
485
|
+
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => Haplocheirus::TimelineStoreException}
|
486
|
+
}
|
487
|
+
|
488
|
+
def struct_fields; FIELDS; end
|
489
|
+
|
490
|
+
def validate
|
491
|
+
end
|
492
|
+
|
493
|
+
::Thrift::Struct.generate_accessors self
|
494
|
+
end
|
495
|
+
|
496
|
+
class Filter2_args
|
497
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
498
|
+
TIMELINE_ID = 1
|
499
|
+
ID = 2
|
500
|
+
MAX_SEARCH = 3
|
501
|
+
|
502
|
+
FIELDS = {
|
503
|
+
TIMELINE_ID => {:type => ::Thrift::Types::STRING, :name => 'timeline_id'},
|
504
|
+
ID => {:type => ::Thrift::Types::LIST, :name => 'id', :element => {:type => ::Thrift::Types::I64}},
|
505
|
+
MAX_SEARCH => {:type => ::Thrift::Types::I32, :name => 'max_search'}
|
506
|
+
}
|
507
|
+
|
508
|
+
def struct_fields; FIELDS; end
|
509
|
+
|
510
|
+
def validate
|
511
|
+
end
|
512
|
+
|
513
|
+
::Thrift::Struct.generate_accessors self
|
514
|
+
end
|
515
|
+
|
516
|
+
class Filter2_result
|
517
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
518
|
+
SUCCESS = 0
|
519
|
+
EX = 1
|
520
|
+
|
521
|
+
FIELDS = {
|
522
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
|
523
|
+
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => Haplocheirus::TimelineStoreException}
|
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 Get_args
|
535
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
536
|
+
TIMELINE_ID = 1
|
537
|
+
OFFSET = 2
|
538
|
+
LENGTH = 3
|
539
|
+
DEDUPE = 4
|
540
|
+
|
541
|
+
FIELDS = {
|
542
|
+
TIMELINE_ID => {:type => ::Thrift::Types::STRING, :name => 'timeline_id'},
|
543
|
+
OFFSET => {:type => ::Thrift::Types::I32, :name => 'offset'},
|
544
|
+
LENGTH => {:type => ::Thrift::Types::I32, :name => 'length'},
|
545
|
+
DEDUPE => {:type => ::Thrift::Types::BOOL, :name => 'dedupe'}
|
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 Get_result
|
557
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
558
|
+
SUCCESS = 0
|
559
|
+
EX = 1
|
560
|
+
|
561
|
+
FIELDS = {
|
562
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Haplocheirus::TimelineSegment},
|
563
|
+
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => Haplocheirus::TimelineStoreException}
|
564
|
+
}
|
565
|
+
|
566
|
+
def struct_fields; FIELDS; end
|
567
|
+
|
568
|
+
def validate
|
569
|
+
end
|
570
|
+
|
571
|
+
::Thrift::Struct.generate_accessors self
|
572
|
+
end
|
573
|
+
|
574
|
+
class Get_multi_args
|
575
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
576
|
+
GETS = 1
|
577
|
+
|
578
|
+
FIELDS = {
|
579
|
+
GETS => {:type => ::Thrift::Types::LIST, :name => 'gets', :element => {:type => ::Thrift::Types::STRUCT, :class => Haplocheirus::TimelineGet}}
|
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 Get_multi_result
|
591
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
592
|
+
SUCCESS = 0
|
593
|
+
|
594
|
+
FIELDS = {
|
595
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Haplocheirus::TimelineSegment}}
|
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 Get_range_args
|
607
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
608
|
+
TIMELINE_ID = 1
|
609
|
+
FROM_ID = 2
|
610
|
+
TO_ID = 3
|
611
|
+
DEDUPE = 4
|
612
|
+
|
613
|
+
FIELDS = {
|
614
|
+
TIMELINE_ID => {:type => ::Thrift::Types::STRING, :name => 'timeline_id'},
|
615
|
+
FROM_ID => {:type => ::Thrift::Types::I64, :name => 'from_id'},
|
616
|
+
TO_ID => {:type => ::Thrift::Types::I64, :name => 'to_id'},
|
617
|
+
DEDUPE => {:type => ::Thrift::Types::BOOL, :name => 'dedupe'}
|
618
|
+
}
|
619
|
+
|
620
|
+
def struct_fields; FIELDS; end
|
621
|
+
|
622
|
+
def validate
|
623
|
+
end
|
624
|
+
|
625
|
+
::Thrift::Struct.generate_accessors self
|
626
|
+
end
|
627
|
+
|
628
|
+
class Get_range_result
|
629
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
630
|
+
SUCCESS = 0
|
631
|
+
EX = 1
|
632
|
+
|
633
|
+
FIELDS = {
|
634
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Haplocheirus::TimelineSegment},
|
635
|
+
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => Haplocheirus::TimelineStoreException}
|
636
|
+
}
|
637
|
+
|
638
|
+
def struct_fields; FIELDS; end
|
639
|
+
|
640
|
+
def validate
|
641
|
+
end
|
642
|
+
|
643
|
+
::Thrift::Struct.generate_accessors self
|
644
|
+
end
|
645
|
+
|
646
|
+
class Get_range_multi_args
|
647
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
648
|
+
GET_RANGES = 1
|
649
|
+
|
650
|
+
FIELDS = {
|
651
|
+
GET_RANGES => {:type => ::Thrift::Types::LIST, :name => 'get_ranges', :element => {:type => ::Thrift::Types::STRUCT, :class => Haplocheirus::TimelineGetRange}}
|
652
|
+
}
|
653
|
+
|
654
|
+
def struct_fields; FIELDS; end
|
655
|
+
|
656
|
+
def validate
|
657
|
+
end
|
658
|
+
|
659
|
+
::Thrift::Struct.generate_accessors self
|
660
|
+
end
|
661
|
+
|
662
|
+
class Get_range_multi_result
|
663
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
664
|
+
SUCCESS = 0
|
665
|
+
|
666
|
+
FIELDS = {
|
667
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Haplocheirus::TimelineSegment}}
|
668
|
+
}
|
669
|
+
|
670
|
+
def struct_fields; FIELDS; end
|
671
|
+
|
672
|
+
def validate
|
673
|
+
end
|
674
|
+
|
675
|
+
::Thrift::Struct.generate_accessors self
|
676
|
+
end
|
677
|
+
|
678
|
+
class Store_args
|
679
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
680
|
+
TIMELINE_ID = 1
|
681
|
+
ENTRIES = 2
|
682
|
+
|
683
|
+
FIELDS = {
|
684
|
+
TIMELINE_ID => {:type => ::Thrift::Types::STRING, :name => 'timeline_id'},
|
685
|
+
ENTRIES => {:type => ::Thrift::Types::LIST, :name => 'entries', :element => {:type => ::Thrift::Types::STRING, :binary => true}}
|
686
|
+
}
|
687
|
+
|
688
|
+
def struct_fields; FIELDS; end
|
689
|
+
|
690
|
+
def validate
|
691
|
+
end
|
692
|
+
|
693
|
+
::Thrift::Struct.generate_accessors self
|
694
|
+
end
|
695
|
+
|
696
|
+
class Store_result
|
697
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
698
|
+
EX = 1
|
699
|
+
|
700
|
+
FIELDS = {
|
701
|
+
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => Haplocheirus::TimelineStoreException}
|
702
|
+
}
|
703
|
+
|
704
|
+
def struct_fields; FIELDS; end
|
705
|
+
|
706
|
+
def validate
|
707
|
+
end
|
708
|
+
|
709
|
+
::Thrift::Struct.generate_accessors self
|
710
|
+
end
|
711
|
+
|
712
|
+
class Merge_args
|
713
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
714
|
+
TIMELINE_ID = 1
|
715
|
+
ENTRIES = 2
|
716
|
+
|
717
|
+
FIELDS = {
|
718
|
+
TIMELINE_ID => {:type => ::Thrift::Types::STRING, :name => 'timeline_id'},
|
719
|
+
ENTRIES => {:type => ::Thrift::Types::LIST, :name => 'entries', :element => {:type => ::Thrift::Types::STRING, :binary => true}}
|
720
|
+
}
|
721
|
+
|
722
|
+
def struct_fields; FIELDS; end
|
723
|
+
|
724
|
+
def validate
|
725
|
+
end
|
726
|
+
|
727
|
+
::Thrift::Struct.generate_accessors self
|
728
|
+
end
|
729
|
+
|
730
|
+
class Merge_result
|
731
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
732
|
+
EX = 1
|
733
|
+
|
734
|
+
FIELDS = {
|
735
|
+
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => Haplocheirus::TimelineStoreException}
|
736
|
+
}
|
737
|
+
|
738
|
+
def struct_fields; FIELDS; end
|
739
|
+
|
740
|
+
def validate
|
741
|
+
end
|
742
|
+
|
743
|
+
::Thrift::Struct.generate_accessors self
|
744
|
+
end
|
745
|
+
|
746
|
+
class Unmerge_args
|
747
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
748
|
+
TIMELINE_ID = 1
|
749
|
+
ENTRIES = 2
|
750
|
+
|
751
|
+
FIELDS = {
|
752
|
+
TIMELINE_ID => {:type => ::Thrift::Types::STRING, :name => 'timeline_id'},
|
753
|
+
ENTRIES => {:type => ::Thrift::Types::LIST, :name => 'entries', :element => {:type => ::Thrift::Types::STRING, :binary => true}}
|
754
|
+
}
|
755
|
+
|
756
|
+
def struct_fields; FIELDS; end
|
757
|
+
|
758
|
+
def validate
|
759
|
+
end
|
760
|
+
|
761
|
+
::Thrift::Struct.generate_accessors self
|
762
|
+
end
|
763
|
+
|
764
|
+
class Unmerge_result
|
765
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
766
|
+
EX = 1
|
767
|
+
|
768
|
+
FIELDS = {
|
769
|
+
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => Haplocheirus::TimelineStoreException}
|
770
|
+
}
|
771
|
+
|
772
|
+
def struct_fields; FIELDS; end
|
773
|
+
|
774
|
+
def validate
|
775
|
+
end
|
776
|
+
|
777
|
+
::Thrift::Struct.generate_accessors self
|
778
|
+
end
|
779
|
+
|
780
|
+
class Merge_indirect_args
|
781
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
782
|
+
DEST_TIMELINE_ID = 1
|
783
|
+
SOURCE_TIMELINE_ID = 2
|
784
|
+
|
785
|
+
FIELDS = {
|
786
|
+
DEST_TIMELINE_ID => {:type => ::Thrift::Types::STRING, :name => 'dest_timeline_id'},
|
787
|
+
SOURCE_TIMELINE_ID => {:type => ::Thrift::Types::STRING, :name => 'source_timeline_id'}
|
788
|
+
}
|
789
|
+
|
790
|
+
def struct_fields; FIELDS; end
|
791
|
+
|
792
|
+
def validate
|
793
|
+
end
|
794
|
+
|
795
|
+
::Thrift::Struct.generate_accessors self
|
796
|
+
end
|
797
|
+
|
798
|
+
class Merge_indirect_result
|
799
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
800
|
+
SUCCESS = 0
|
801
|
+
EX = 1
|
802
|
+
|
803
|
+
FIELDS = {
|
804
|
+
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
|
805
|
+
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => Haplocheirus::TimelineStoreException}
|
806
|
+
}
|
807
|
+
|
808
|
+
def struct_fields; FIELDS; end
|
809
|
+
|
810
|
+
def validate
|
811
|
+
end
|
812
|
+
|
813
|
+
::Thrift::Struct.generate_accessors self
|
814
|
+
end
|
815
|
+
|
816
|
+
class Unmerge_indirect_args
|
817
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
818
|
+
DEST_TIMELINE_ID = 1
|
819
|
+
SOURCE_TIMELINE_ID = 2
|
820
|
+
|
821
|
+
FIELDS = {
|
822
|
+
DEST_TIMELINE_ID => {:type => ::Thrift::Types::STRING, :name => 'dest_timeline_id'},
|
823
|
+
SOURCE_TIMELINE_ID => {:type => ::Thrift::Types::STRING, :name => 'source_timeline_id'}
|
824
|
+
}
|
825
|
+
|
826
|
+
def struct_fields; FIELDS; end
|
827
|
+
|
828
|
+
def validate
|
829
|
+
end
|
830
|
+
|
831
|
+
::Thrift::Struct.generate_accessors self
|
832
|
+
end
|
833
|
+
|
834
|
+
class Unmerge_indirect_result
|
835
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
836
|
+
SUCCESS = 0
|
837
|
+
EX = 1
|
838
|
+
|
839
|
+
FIELDS = {
|
840
|
+
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
|
841
|
+
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => Haplocheirus::TimelineStoreException}
|
842
|
+
}
|
843
|
+
|
844
|
+
def struct_fields; FIELDS; end
|
845
|
+
|
846
|
+
def validate
|
847
|
+
end
|
848
|
+
|
849
|
+
::Thrift::Struct.generate_accessors self
|
850
|
+
end
|
851
|
+
|
852
|
+
class Delete_timeline_args
|
853
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
854
|
+
TIMELINE_ID = 1
|
855
|
+
|
856
|
+
FIELDS = {
|
857
|
+
TIMELINE_ID => {:type => ::Thrift::Types::STRING, :name => 'timeline_id'}
|
858
|
+
}
|
859
|
+
|
860
|
+
def struct_fields; FIELDS; end
|
861
|
+
|
862
|
+
def validate
|
863
|
+
end
|
864
|
+
|
865
|
+
::Thrift::Struct.generate_accessors self
|
866
|
+
end
|
867
|
+
|
868
|
+
class Delete_timeline_result
|
869
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
870
|
+
EX = 1
|
871
|
+
|
872
|
+
FIELDS = {
|
873
|
+
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => Haplocheirus::TimelineStoreException}
|
874
|
+
}
|
875
|
+
|
876
|
+
def struct_fields; FIELDS; end
|
877
|
+
|
878
|
+
def validate
|
879
|
+
end
|
880
|
+
|
881
|
+
::Thrift::Struct.generate_accessors self
|
882
|
+
end
|
883
|
+
|
884
|
+
end
|
885
|
+
|
886
|
+
end
|