rbhive-vidma 1.0.2.pre1.pre.thrift0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/CHANGELOG.md +16 -0
- data/Gemfile +3 -0
- data/LICENSE +20 -0
- data/README.md +344 -0
- data/Rakefile +1 -0
- data/lib/rbhive.rb +8 -0
- data/lib/rbhive/connection.rb +150 -0
- data/lib/rbhive/explain_result.rb +46 -0
- data/lib/rbhive/result_set.rb +37 -0
- data/lib/rbhive/schema_definition.rb +86 -0
- data/lib/rbhive/t_c_l_i_connection.rb +439 -0
- data/lib/rbhive/t_c_l_i_result_set.rb +3 -0
- data/lib/rbhive/t_c_l_i_schema_definition.rb +88 -0
- data/lib/rbhive/table_schema.rb +117 -0
- data/lib/rbhive/version.rb +3 -0
- data/lib/thrift/facebook_service.rb +700 -0
- data/lib/thrift/fb303_constants.rb +9 -0
- data/lib/thrift/fb303_types.rb +19 -0
- data/lib/thrift/hive_metastore_constants.rb +41 -0
- data/lib/thrift/hive_metastore_types.rb +630 -0
- data/lib/thrift/hive_service_constants.rb +13 -0
- data/lib/thrift/hive_service_types.rb +72 -0
- data/lib/thrift/queryplan_constants.rb +13 -0
- data/lib/thrift/queryplan_types.rb +261 -0
- data/lib/thrift/sasl_client_transport.rb +97 -0
- data/lib/thrift/serde_constants.rb +92 -0
- data/lib/thrift/serde_types.rb +7 -0
- data/lib/thrift/t_c_l_i_service.rb +1054 -0
- data/lib/thrift/t_c_l_i_service_constants.rb +72 -0
- data/lib/thrift/t_c_l_i_service_types.rb +1762 -0
- data/lib/thrift/thrift_hive.rb +508 -0
- data/lib/thrift/thrift_hive_metastore.rb +3856 -0
- data/rbhive.gemspec +33 -0
- metadata +165 -0
@@ -0,0 +1,3856 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.0)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
require_relative 'facebook_service'
|
9
|
+
require_relative 'hive_metastore_types'
|
10
|
+
|
11
|
+
module ThriftHiveMetastore
|
12
|
+
class Client < ::FacebookService::Client
|
13
|
+
include ::Thrift::Client
|
14
|
+
|
15
|
+
def create_database(database)
|
16
|
+
send_create_database(database)
|
17
|
+
recv_create_database()
|
18
|
+
end
|
19
|
+
|
20
|
+
def send_create_database(database)
|
21
|
+
send_message('create_database', Create_database_args, :database => database)
|
22
|
+
end
|
23
|
+
|
24
|
+
def recv_create_database()
|
25
|
+
result = receive_message(Create_database_result)
|
26
|
+
raise result.o1 unless result.o1.nil?
|
27
|
+
raise result.o2 unless result.o2.nil?
|
28
|
+
raise result.o3 unless result.o3.nil?
|
29
|
+
return
|
30
|
+
end
|
31
|
+
|
32
|
+
def get_database(name)
|
33
|
+
send_get_database(name)
|
34
|
+
return recv_get_database()
|
35
|
+
end
|
36
|
+
|
37
|
+
def send_get_database(name)
|
38
|
+
send_message('get_database', Get_database_args, :name => name)
|
39
|
+
end
|
40
|
+
|
41
|
+
def recv_get_database()
|
42
|
+
result = receive_message(Get_database_result)
|
43
|
+
return result.success unless result.success.nil?
|
44
|
+
raise result.o1 unless result.o1.nil?
|
45
|
+
raise result.o2 unless result.o2.nil?
|
46
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_database failed: unknown result')
|
47
|
+
end
|
48
|
+
|
49
|
+
def drop_database(name, deleteData)
|
50
|
+
send_drop_database(name, deleteData)
|
51
|
+
recv_drop_database()
|
52
|
+
end
|
53
|
+
|
54
|
+
def send_drop_database(name, deleteData)
|
55
|
+
send_message('drop_database', Drop_database_args, :name => name, :deleteData => deleteData)
|
56
|
+
end
|
57
|
+
|
58
|
+
def recv_drop_database()
|
59
|
+
result = receive_message(Drop_database_result)
|
60
|
+
raise result.o1 unless result.o1.nil?
|
61
|
+
raise result.o2 unless result.o2.nil?
|
62
|
+
raise result.o3 unless result.o3.nil?
|
63
|
+
return
|
64
|
+
end
|
65
|
+
|
66
|
+
def get_databases(pattern)
|
67
|
+
send_get_databases(pattern)
|
68
|
+
return recv_get_databases()
|
69
|
+
end
|
70
|
+
|
71
|
+
def send_get_databases(pattern)
|
72
|
+
send_message('get_databases', Get_databases_args, :pattern => pattern)
|
73
|
+
end
|
74
|
+
|
75
|
+
def recv_get_databases()
|
76
|
+
result = receive_message(Get_databases_result)
|
77
|
+
return result.success unless result.success.nil?
|
78
|
+
raise result.o1 unless result.o1.nil?
|
79
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_databases failed: unknown result')
|
80
|
+
end
|
81
|
+
|
82
|
+
def get_all_databases()
|
83
|
+
send_get_all_databases()
|
84
|
+
return recv_get_all_databases()
|
85
|
+
end
|
86
|
+
|
87
|
+
def send_get_all_databases()
|
88
|
+
send_message('get_all_databases', Get_all_databases_args)
|
89
|
+
end
|
90
|
+
|
91
|
+
def recv_get_all_databases()
|
92
|
+
result = receive_message(Get_all_databases_result)
|
93
|
+
return result.success unless result.success.nil?
|
94
|
+
raise result.o1 unless result.o1.nil?
|
95
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_all_databases failed: unknown result')
|
96
|
+
end
|
97
|
+
|
98
|
+
def alter_database(dbname, db)
|
99
|
+
send_alter_database(dbname, db)
|
100
|
+
recv_alter_database()
|
101
|
+
end
|
102
|
+
|
103
|
+
def send_alter_database(dbname, db)
|
104
|
+
send_message('alter_database', Alter_database_args, :dbname => dbname, :db => db)
|
105
|
+
end
|
106
|
+
|
107
|
+
def recv_alter_database()
|
108
|
+
result = receive_message(Alter_database_result)
|
109
|
+
raise result.o1 unless result.o1.nil?
|
110
|
+
raise result.o2 unless result.o2.nil?
|
111
|
+
return
|
112
|
+
end
|
113
|
+
|
114
|
+
def get_type(name)
|
115
|
+
send_get_type(name)
|
116
|
+
return recv_get_type()
|
117
|
+
end
|
118
|
+
|
119
|
+
def send_get_type(name)
|
120
|
+
send_message('get_type', Get_type_args, :name => name)
|
121
|
+
end
|
122
|
+
|
123
|
+
def recv_get_type()
|
124
|
+
result = receive_message(Get_type_result)
|
125
|
+
return result.success unless result.success.nil?
|
126
|
+
raise result.o1 unless result.o1.nil?
|
127
|
+
raise result.o2 unless result.o2.nil?
|
128
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_type failed: unknown result')
|
129
|
+
end
|
130
|
+
|
131
|
+
def create_type(type)
|
132
|
+
send_create_type(type)
|
133
|
+
return recv_create_type()
|
134
|
+
end
|
135
|
+
|
136
|
+
def send_create_type(type)
|
137
|
+
send_message('create_type', Create_type_args, :type => type)
|
138
|
+
end
|
139
|
+
|
140
|
+
def recv_create_type()
|
141
|
+
result = receive_message(Create_type_result)
|
142
|
+
return result.success unless result.success.nil?
|
143
|
+
raise result.o1 unless result.o1.nil?
|
144
|
+
raise result.o2 unless result.o2.nil?
|
145
|
+
raise result.o3 unless result.o3.nil?
|
146
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'create_type failed: unknown result')
|
147
|
+
end
|
148
|
+
|
149
|
+
def drop_type(type)
|
150
|
+
send_drop_type(type)
|
151
|
+
return recv_drop_type()
|
152
|
+
end
|
153
|
+
|
154
|
+
def send_drop_type(type)
|
155
|
+
send_message('drop_type', Drop_type_args, :type => type)
|
156
|
+
end
|
157
|
+
|
158
|
+
def recv_drop_type()
|
159
|
+
result = receive_message(Drop_type_result)
|
160
|
+
return result.success unless result.success.nil?
|
161
|
+
raise result.o1 unless result.o1.nil?
|
162
|
+
raise result.o2 unless result.o2.nil?
|
163
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'drop_type failed: unknown result')
|
164
|
+
end
|
165
|
+
|
166
|
+
def get_type_all(name)
|
167
|
+
send_get_type_all(name)
|
168
|
+
return recv_get_type_all()
|
169
|
+
end
|
170
|
+
|
171
|
+
def send_get_type_all(name)
|
172
|
+
send_message('get_type_all', Get_type_all_args, :name => name)
|
173
|
+
end
|
174
|
+
|
175
|
+
def recv_get_type_all()
|
176
|
+
result = receive_message(Get_type_all_result)
|
177
|
+
return result.success unless result.success.nil?
|
178
|
+
raise result.o2 unless result.o2.nil?
|
179
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_type_all failed: unknown result')
|
180
|
+
end
|
181
|
+
|
182
|
+
def get_fields(db_name, table_name)
|
183
|
+
send_get_fields(db_name, table_name)
|
184
|
+
return recv_get_fields()
|
185
|
+
end
|
186
|
+
|
187
|
+
def send_get_fields(db_name, table_name)
|
188
|
+
send_message('get_fields', Get_fields_args, :db_name => db_name, :table_name => table_name)
|
189
|
+
end
|
190
|
+
|
191
|
+
def recv_get_fields()
|
192
|
+
result = receive_message(Get_fields_result)
|
193
|
+
return result.success unless result.success.nil?
|
194
|
+
raise result.o1 unless result.o1.nil?
|
195
|
+
raise result.o2 unless result.o2.nil?
|
196
|
+
raise result.o3 unless result.o3.nil?
|
197
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_fields failed: unknown result')
|
198
|
+
end
|
199
|
+
|
200
|
+
def get_schema(db_name, table_name)
|
201
|
+
send_get_schema(db_name, table_name)
|
202
|
+
return recv_get_schema()
|
203
|
+
end
|
204
|
+
|
205
|
+
def send_get_schema(db_name, table_name)
|
206
|
+
send_message('get_schema', Get_schema_args, :db_name => db_name, :table_name => table_name)
|
207
|
+
end
|
208
|
+
|
209
|
+
def recv_get_schema()
|
210
|
+
result = receive_message(Get_schema_result)
|
211
|
+
return result.success unless result.success.nil?
|
212
|
+
raise result.o1 unless result.o1.nil?
|
213
|
+
raise result.o2 unless result.o2.nil?
|
214
|
+
raise result.o3 unless result.o3.nil?
|
215
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_schema failed: unknown result')
|
216
|
+
end
|
217
|
+
|
218
|
+
def create_table(tbl)
|
219
|
+
send_create_table(tbl)
|
220
|
+
recv_create_table()
|
221
|
+
end
|
222
|
+
|
223
|
+
def send_create_table(tbl)
|
224
|
+
send_message('create_table', Create_table_args, :tbl => tbl)
|
225
|
+
end
|
226
|
+
|
227
|
+
def recv_create_table()
|
228
|
+
result = receive_message(Create_table_result)
|
229
|
+
raise result.o1 unless result.o1.nil?
|
230
|
+
raise result.o2 unless result.o2.nil?
|
231
|
+
raise result.o3 unless result.o3.nil?
|
232
|
+
raise result.o4 unless result.o4.nil?
|
233
|
+
return
|
234
|
+
end
|
235
|
+
|
236
|
+
def drop_table(dbname, name, deleteData)
|
237
|
+
send_drop_table(dbname, name, deleteData)
|
238
|
+
recv_drop_table()
|
239
|
+
end
|
240
|
+
|
241
|
+
def send_drop_table(dbname, name, deleteData)
|
242
|
+
send_message('drop_table', Drop_table_args, :dbname => dbname, :name => name, :deleteData => deleteData)
|
243
|
+
end
|
244
|
+
|
245
|
+
def recv_drop_table()
|
246
|
+
result = receive_message(Drop_table_result)
|
247
|
+
raise result.o1 unless result.o1.nil?
|
248
|
+
raise result.o3 unless result.o3.nil?
|
249
|
+
return
|
250
|
+
end
|
251
|
+
|
252
|
+
def get_tables(db_name, pattern)
|
253
|
+
send_get_tables(db_name, pattern)
|
254
|
+
return recv_get_tables()
|
255
|
+
end
|
256
|
+
|
257
|
+
def send_get_tables(db_name, pattern)
|
258
|
+
send_message('get_tables', Get_tables_args, :db_name => db_name, :pattern => pattern)
|
259
|
+
end
|
260
|
+
|
261
|
+
def recv_get_tables()
|
262
|
+
result = receive_message(Get_tables_result)
|
263
|
+
return result.success unless result.success.nil?
|
264
|
+
raise result.o1 unless result.o1.nil?
|
265
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_tables failed: unknown result')
|
266
|
+
end
|
267
|
+
|
268
|
+
def get_all_tables(db_name)
|
269
|
+
send_get_all_tables(db_name)
|
270
|
+
return recv_get_all_tables()
|
271
|
+
end
|
272
|
+
|
273
|
+
def send_get_all_tables(db_name)
|
274
|
+
send_message('get_all_tables', Get_all_tables_args, :db_name => db_name)
|
275
|
+
end
|
276
|
+
|
277
|
+
def recv_get_all_tables()
|
278
|
+
result = receive_message(Get_all_tables_result)
|
279
|
+
return result.success unless result.success.nil?
|
280
|
+
raise result.o1 unless result.o1.nil?
|
281
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_all_tables failed: unknown result')
|
282
|
+
end
|
283
|
+
|
284
|
+
def get_table(dbname, tbl_name)
|
285
|
+
send_get_table(dbname, tbl_name)
|
286
|
+
return recv_get_table()
|
287
|
+
end
|
288
|
+
|
289
|
+
def send_get_table(dbname, tbl_name)
|
290
|
+
send_message('get_table', Get_table_args, :dbname => dbname, :tbl_name => tbl_name)
|
291
|
+
end
|
292
|
+
|
293
|
+
def recv_get_table()
|
294
|
+
result = receive_message(Get_table_result)
|
295
|
+
return result.success unless result.success.nil?
|
296
|
+
raise result.o1 unless result.o1.nil?
|
297
|
+
raise result.o2 unless result.o2.nil?
|
298
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_table failed: unknown result')
|
299
|
+
end
|
300
|
+
|
301
|
+
def alter_table(dbname, tbl_name, new_tbl)
|
302
|
+
send_alter_table(dbname, tbl_name, new_tbl)
|
303
|
+
recv_alter_table()
|
304
|
+
end
|
305
|
+
|
306
|
+
def send_alter_table(dbname, tbl_name, new_tbl)
|
307
|
+
send_message('alter_table', Alter_table_args, :dbname => dbname, :tbl_name => tbl_name, :new_tbl => new_tbl)
|
308
|
+
end
|
309
|
+
|
310
|
+
def recv_alter_table()
|
311
|
+
result = receive_message(Alter_table_result)
|
312
|
+
raise result.o1 unless result.o1.nil?
|
313
|
+
raise result.o2 unless result.o2.nil?
|
314
|
+
return
|
315
|
+
end
|
316
|
+
|
317
|
+
def add_partition(new_part)
|
318
|
+
send_add_partition(new_part)
|
319
|
+
return recv_add_partition()
|
320
|
+
end
|
321
|
+
|
322
|
+
def send_add_partition(new_part)
|
323
|
+
send_message('add_partition', Add_partition_args, :new_part => new_part)
|
324
|
+
end
|
325
|
+
|
326
|
+
def recv_add_partition()
|
327
|
+
result = receive_message(Add_partition_result)
|
328
|
+
return result.success unless result.success.nil?
|
329
|
+
raise result.o1 unless result.o1.nil?
|
330
|
+
raise result.o2 unless result.o2.nil?
|
331
|
+
raise result.o3 unless result.o3.nil?
|
332
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'add_partition failed: unknown result')
|
333
|
+
end
|
334
|
+
|
335
|
+
def append_partition(db_name, tbl_name, part_vals)
|
336
|
+
send_append_partition(db_name, tbl_name, part_vals)
|
337
|
+
return recv_append_partition()
|
338
|
+
end
|
339
|
+
|
340
|
+
def send_append_partition(db_name, tbl_name, part_vals)
|
341
|
+
send_message('append_partition', Append_partition_args, :db_name => db_name, :tbl_name => tbl_name, :part_vals => part_vals)
|
342
|
+
end
|
343
|
+
|
344
|
+
def recv_append_partition()
|
345
|
+
result = receive_message(Append_partition_result)
|
346
|
+
return result.success unless result.success.nil?
|
347
|
+
raise result.o1 unless result.o1.nil?
|
348
|
+
raise result.o2 unless result.o2.nil?
|
349
|
+
raise result.o3 unless result.o3.nil?
|
350
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'append_partition failed: unknown result')
|
351
|
+
end
|
352
|
+
|
353
|
+
def append_partition_by_name(db_name, tbl_name, part_name)
|
354
|
+
send_append_partition_by_name(db_name, tbl_name, part_name)
|
355
|
+
return recv_append_partition_by_name()
|
356
|
+
end
|
357
|
+
|
358
|
+
def send_append_partition_by_name(db_name, tbl_name, part_name)
|
359
|
+
send_message('append_partition_by_name', Append_partition_by_name_args, :db_name => db_name, :tbl_name => tbl_name, :part_name => part_name)
|
360
|
+
end
|
361
|
+
|
362
|
+
def recv_append_partition_by_name()
|
363
|
+
result = receive_message(Append_partition_by_name_result)
|
364
|
+
return result.success unless result.success.nil?
|
365
|
+
raise result.o1 unless result.o1.nil?
|
366
|
+
raise result.o2 unless result.o2.nil?
|
367
|
+
raise result.o3 unless result.o3.nil?
|
368
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'append_partition_by_name failed: unknown result')
|
369
|
+
end
|
370
|
+
|
371
|
+
def drop_partition(db_name, tbl_name, part_vals, deleteData)
|
372
|
+
send_drop_partition(db_name, tbl_name, part_vals, deleteData)
|
373
|
+
return recv_drop_partition()
|
374
|
+
end
|
375
|
+
|
376
|
+
def send_drop_partition(db_name, tbl_name, part_vals, deleteData)
|
377
|
+
send_message('drop_partition', Drop_partition_args, :db_name => db_name, :tbl_name => tbl_name, :part_vals => part_vals, :deleteData => deleteData)
|
378
|
+
end
|
379
|
+
|
380
|
+
def recv_drop_partition()
|
381
|
+
result = receive_message(Drop_partition_result)
|
382
|
+
return result.success unless result.success.nil?
|
383
|
+
raise result.o1 unless result.o1.nil?
|
384
|
+
raise result.o2 unless result.o2.nil?
|
385
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'drop_partition failed: unknown result')
|
386
|
+
end
|
387
|
+
|
388
|
+
def drop_partition_by_name(db_name, tbl_name, part_name, deleteData)
|
389
|
+
send_drop_partition_by_name(db_name, tbl_name, part_name, deleteData)
|
390
|
+
return recv_drop_partition_by_name()
|
391
|
+
end
|
392
|
+
|
393
|
+
def send_drop_partition_by_name(db_name, tbl_name, part_name, deleteData)
|
394
|
+
send_message('drop_partition_by_name', Drop_partition_by_name_args, :db_name => db_name, :tbl_name => tbl_name, :part_name => part_name, :deleteData => deleteData)
|
395
|
+
end
|
396
|
+
|
397
|
+
def recv_drop_partition_by_name()
|
398
|
+
result = receive_message(Drop_partition_by_name_result)
|
399
|
+
return result.success unless result.success.nil?
|
400
|
+
raise result.o1 unless result.o1.nil?
|
401
|
+
raise result.o2 unless result.o2.nil?
|
402
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'drop_partition_by_name failed: unknown result')
|
403
|
+
end
|
404
|
+
|
405
|
+
def get_partition(db_name, tbl_name, part_vals)
|
406
|
+
send_get_partition(db_name, tbl_name, part_vals)
|
407
|
+
return recv_get_partition()
|
408
|
+
end
|
409
|
+
|
410
|
+
def send_get_partition(db_name, tbl_name, part_vals)
|
411
|
+
send_message('get_partition', Get_partition_args, :db_name => db_name, :tbl_name => tbl_name, :part_vals => part_vals)
|
412
|
+
end
|
413
|
+
|
414
|
+
def recv_get_partition()
|
415
|
+
result = receive_message(Get_partition_result)
|
416
|
+
return result.success unless result.success.nil?
|
417
|
+
raise result.o1 unless result.o1.nil?
|
418
|
+
raise result.o2 unless result.o2.nil?
|
419
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partition failed: unknown result')
|
420
|
+
end
|
421
|
+
|
422
|
+
def get_partition_with_auth(db_name, tbl_name, part_vals, user_name, group_names)
|
423
|
+
send_get_partition_with_auth(db_name, tbl_name, part_vals, user_name, group_names)
|
424
|
+
return recv_get_partition_with_auth()
|
425
|
+
end
|
426
|
+
|
427
|
+
def send_get_partition_with_auth(db_name, tbl_name, part_vals, user_name, group_names)
|
428
|
+
send_message('get_partition_with_auth', Get_partition_with_auth_args, :db_name => db_name, :tbl_name => tbl_name, :part_vals => part_vals, :user_name => user_name, :group_names => group_names)
|
429
|
+
end
|
430
|
+
|
431
|
+
def recv_get_partition_with_auth()
|
432
|
+
result = receive_message(Get_partition_with_auth_result)
|
433
|
+
return result.success unless result.success.nil?
|
434
|
+
raise result.o1 unless result.o1.nil?
|
435
|
+
raise result.o2 unless result.o2.nil?
|
436
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partition_with_auth failed: unknown result')
|
437
|
+
end
|
438
|
+
|
439
|
+
def get_partition_by_name(db_name, tbl_name, part_name)
|
440
|
+
send_get_partition_by_name(db_name, tbl_name, part_name)
|
441
|
+
return recv_get_partition_by_name()
|
442
|
+
end
|
443
|
+
|
444
|
+
def send_get_partition_by_name(db_name, tbl_name, part_name)
|
445
|
+
send_message('get_partition_by_name', Get_partition_by_name_args, :db_name => db_name, :tbl_name => tbl_name, :part_name => part_name)
|
446
|
+
end
|
447
|
+
|
448
|
+
def recv_get_partition_by_name()
|
449
|
+
result = receive_message(Get_partition_by_name_result)
|
450
|
+
return result.success unless result.success.nil?
|
451
|
+
raise result.o1 unless result.o1.nil?
|
452
|
+
raise result.o2 unless result.o2.nil?
|
453
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partition_by_name failed: unknown result')
|
454
|
+
end
|
455
|
+
|
456
|
+
def get_partitions(db_name, tbl_name, max_parts)
|
457
|
+
send_get_partitions(db_name, tbl_name, max_parts)
|
458
|
+
return recv_get_partitions()
|
459
|
+
end
|
460
|
+
|
461
|
+
def send_get_partitions(db_name, tbl_name, max_parts)
|
462
|
+
send_message('get_partitions', Get_partitions_args, :db_name => db_name, :tbl_name => tbl_name, :max_parts => max_parts)
|
463
|
+
end
|
464
|
+
|
465
|
+
def recv_get_partitions()
|
466
|
+
result = receive_message(Get_partitions_result)
|
467
|
+
return result.success unless result.success.nil?
|
468
|
+
raise result.o1 unless result.o1.nil?
|
469
|
+
raise result.o2 unless result.o2.nil?
|
470
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partitions failed: unknown result')
|
471
|
+
end
|
472
|
+
|
473
|
+
def get_partitions_with_auth(db_name, tbl_name, max_parts, user_name, group_names)
|
474
|
+
send_get_partitions_with_auth(db_name, tbl_name, max_parts, user_name, group_names)
|
475
|
+
return recv_get_partitions_with_auth()
|
476
|
+
end
|
477
|
+
|
478
|
+
def send_get_partitions_with_auth(db_name, tbl_name, max_parts, user_name, group_names)
|
479
|
+
send_message('get_partitions_with_auth', Get_partitions_with_auth_args, :db_name => db_name, :tbl_name => tbl_name, :max_parts => max_parts, :user_name => user_name, :group_names => group_names)
|
480
|
+
end
|
481
|
+
|
482
|
+
def recv_get_partitions_with_auth()
|
483
|
+
result = receive_message(Get_partitions_with_auth_result)
|
484
|
+
return result.success unless result.success.nil?
|
485
|
+
raise result.o1 unless result.o1.nil?
|
486
|
+
raise result.o2 unless result.o2.nil?
|
487
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partitions_with_auth failed: unknown result')
|
488
|
+
end
|
489
|
+
|
490
|
+
def get_partition_names(db_name, tbl_name, max_parts)
|
491
|
+
send_get_partition_names(db_name, tbl_name, max_parts)
|
492
|
+
return recv_get_partition_names()
|
493
|
+
end
|
494
|
+
|
495
|
+
def send_get_partition_names(db_name, tbl_name, max_parts)
|
496
|
+
send_message('get_partition_names', Get_partition_names_args, :db_name => db_name, :tbl_name => tbl_name, :max_parts => max_parts)
|
497
|
+
end
|
498
|
+
|
499
|
+
def recv_get_partition_names()
|
500
|
+
result = receive_message(Get_partition_names_result)
|
501
|
+
return result.success unless result.success.nil?
|
502
|
+
raise result.o2 unless result.o2.nil?
|
503
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partition_names failed: unknown result')
|
504
|
+
end
|
505
|
+
|
506
|
+
def get_partitions_ps(db_name, tbl_name, part_vals, max_parts)
|
507
|
+
send_get_partitions_ps(db_name, tbl_name, part_vals, max_parts)
|
508
|
+
return recv_get_partitions_ps()
|
509
|
+
end
|
510
|
+
|
511
|
+
def send_get_partitions_ps(db_name, tbl_name, part_vals, max_parts)
|
512
|
+
send_message('get_partitions_ps', Get_partitions_ps_args, :db_name => db_name, :tbl_name => tbl_name, :part_vals => part_vals, :max_parts => max_parts)
|
513
|
+
end
|
514
|
+
|
515
|
+
def recv_get_partitions_ps()
|
516
|
+
result = receive_message(Get_partitions_ps_result)
|
517
|
+
return result.success unless result.success.nil?
|
518
|
+
raise result.o1 unless result.o1.nil?
|
519
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partitions_ps failed: unknown result')
|
520
|
+
end
|
521
|
+
|
522
|
+
def get_partitions_ps_with_auth(db_name, tbl_name, part_vals, max_parts, user_name, group_names)
|
523
|
+
send_get_partitions_ps_with_auth(db_name, tbl_name, part_vals, max_parts, user_name, group_names)
|
524
|
+
return recv_get_partitions_ps_with_auth()
|
525
|
+
end
|
526
|
+
|
527
|
+
def send_get_partitions_ps_with_auth(db_name, tbl_name, part_vals, max_parts, user_name, group_names)
|
528
|
+
send_message('get_partitions_ps_with_auth', Get_partitions_ps_with_auth_args, :db_name => db_name, :tbl_name => tbl_name, :part_vals => part_vals, :max_parts => max_parts, :user_name => user_name, :group_names => group_names)
|
529
|
+
end
|
530
|
+
|
531
|
+
def recv_get_partitions_ps_with_auth()
|
532
|
+
result = receive_message(Get_partitions_ps_with_auth_result)
|
533
|
+
return result.success unless result.success.nil?
|
534
|
+
raise result.o1 unless result.o1.nil?
|
535
|
+
raise result.o2 unless result.o2.nil?
|
536
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partitions_ps_with_auth failed: unknown result')
|
537
|
+
end
|
538
|
+
|
539
|
+
def get_partition_names_ps(db_name, tbl_name, part_vals, max_parts)
|
540
|
+
send_get_partition_names_ps(db_name, tbl_name, part_vals, max_parts)
|
541
|
+
return recv_get_partition_names_ps()
|
542
|
+
end
|
543
|
+
|
544
|
+
def send_get_partition_names_ps(db_name, tbl_name, part_vals, max_parts)
|
545
|
+
send_message('get_partition_names_ps', Get_partition_names_ps_args, :db_name => db_name, :tbl_name => tbl_name, :part_vals => part_vals, :max_parts => max_parts)
|
546
|
+
end
|
547
|
+
|
548
|
+
def recv_get_partition_names_ps()
|
549
|
+
result = receive_message(Get_partition_names_ps_result)
|
550
|
+
return result.success unless result.success.nil?
|
551
|
+
raise result.o1 unless result.o1.nil?
|
552
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partition_names_ps failed: unknown result')
|
553
|
+
end
|
554
|
+
|
555
|
+
def get_partitions_by_filter(db_name, tbl_name, filter, max_parts)
|
556
|
+
send_get_partitions_by_filter(db_name, tbl_name, filter, max_parts)
|
557
|
+
return recv_get_partitions_by_filter()
|
558
|
+
end
|
559
|
+
|
560
|
+
def send_get_partitions_by_filter(db_name, tbl_name, filter, max_parts)
|
561
|
+
send_message('get_partitions_by_filter', Get_partitions_by_filter_args, :db_name => db_name, :tbl_name => tbl_name, :filter => filter, :max_parts => max_parts)
|
562
|
+
end
|
563
|
+
|
564
|
+
def recv_get_partitions_by_filter()
|
565
|
+
result = receive_message(Get_partitions_by_filter_result)
|
566
|
+
return result.success unless result.success.nil?
|
567
|
+
raise result.o1 unless result.o1.nil?
|
568
|
+
raise result.o2 unless result.o2.nil?
|
569
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partitions_by_filter failed: unknown result')
|
570
|
+
end
|
571
|
+
|
572
|
+
def alter_partition(db_name, tbl_name, new_part)
|
573
|
+
send_alter_partition(db_name, tbl_name, new_part)
|
574
|
+
recv_alter_partition()
|
575
|
+
end
|
576
|
+
|
577
|
+
def send_alter_partition(db_name, tbl_name, new_part)
|
578
|
+
send_message('alter_partition', Alter_partition_args, :db_name => db_name, :tbl_name => tbl_name, :new_part => new_part)
|
579
|
+
end
|
580
|
+
|
581
|
+
def recv_alter_partition()
|
582
|
+
result = receive_message(Alter_partition_result)
|
583
|
+
raise result.o1 unless result.o1.nil?
|
584
|
+
raise result.o2 unless result.o2.nil?
|
585
|
+
return
|
586
|
+
end
|
587
|
+
|
588
|
+
def get_config_value(name, defaultValue)
|
589
|
+
send_get_config_value(name, defaultValue)
|
590
|
+
return recv_get_config_value()
|
591
|
+
end
|
592
|
+
|
593
|
+
def send_get_config_value(name, defaultValue)
|
594
|
+
send_message('get_config_value', Get_config_value_args, :name => name, :defaultValue => defaultValue)
|
595
|
+
end
|
596
|
+
|
597
|
+
def recv_get_config_value()
|
598
|
+
result = receive_message(Get_config_value_result)
|
599
|
+
return result.success unless result.success.nil?
|
600
|
+
raise result.o1 unless result.o1.nil?
|
601
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_config_value failed: unknown result')
|
602
|
+
end
|
603
|
+
|
604
|
+
def partition_name_to_vals(part_name)
|
605
|
+
send_partition_name_to_vals(part_name)
|
606
|
+
return recv_partition_name_to_vals()
|
607
|
+
end
|
608
|
+
|
609
|
+
def send_partition_name_to_vals(part_name)
|
610
|
+
send_message('partition_name_to_vals', Partition_name_to_vals_args, :part_name => part_name)
|
611
|
+
end
|
612
|
+
|
613
|
+
def recv_partition_name_to_vals()
|
614
|
+
result = receive_message(Partition_name_to_vals_result)
|
615
|
+
return result.success unless result.success.nil?
|
616
|
+
raise result.o1 unless result.o1.nil?
|
617
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'partition_name_to_vals failed: unknown result')
|
618
|
+
end
|
619
|
+
|
620
|
+
def partition_name_to_spec(part_name)
|
621
|
+
send_partition_name_to_spec(part_name)
|
622
|
+
return recv_partition_name_to_spec()
|
623
|
+
end
|
624
|
+
|
625
|
+
def send_partition_name_to_spec(part_name)
|
626
|
+
send_message('partition_name_to_spec', Partition_name_to_spec_args, :part_name => part_name)
|
627
|
+
end
|
628
|
+
|
629
|
+
def recv_partition_name_to_spec()
|
630
|
+
result = receive_message(Partition_name_to_spec_result)
|
631
|
+
return result.success unless result.success.nil?
|
632
|
+
raise result.o1 unless result.o1.nil?
|
633
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'partition_name_to_spec failed: unknown result')
|
634
|
+
end
|
635
|
+
|
636
|
+
def add_index(new_index, index_table)
|
637
|
+
send_add_index(new_index, index_table)
|
638
|
+
return recv_add_index()
|
639
|
+
end
|
640
|
+
|
641
|
+
def send_add_index(new_index, index_table)
|
642
|
+
send_message('add_index', Add_index_args, :new_index => new_index, :index_table => index_table)
|
643
|
+
end
|
644
|
+
|
645
|
+
def recv_add_index()
|
646
|
+
result = receive_message(Add_index_result)
|
647
|
+
return result.success unless result.success.nil?
|
648
|
+
raise result.o1 unless result.o1.nil?
|
649
|
+
raise result.o2 unless result.o2.nil?
|
650
|
+
raise result.o3 unless result.o3.nil?
|
651
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'add_index failed: unknown result')
|
652
|
+
end
|
653
|
+
|
654
|
+
def alter_index(dbname, base_tbl_name, idx_name, new_idx)
|
655
|
+
send_alter_index(dbname, base_tbl_name, idx_name, new_idx)
|
656
|
+
recv_alter_index()
|
657
|
+
end
|
658
|
+
|
659
|
+
def send_alter_index(dbname, base_tbl_name, idx_name, new_idx)
|
660
|
+
send_message('alter_index', Alter_index_args, :dbname => dbname, :base_tbl_name => base_tbl_name, :idx_name => idx_name, :new_idx => new_idx)
|
661
|
+
end
|
662
|
+
|
663
|
+
def recv_alter_index()
|
664
|
+
result = receive_message(Alter_index_result)
|
665
|
+
raise result.o1 unless result.o1.nil?
|
666
|
+
raise result.o2 unless result.o2.nil?
|
667
|
+
return
|
668
|
+
end
|
669
|
+
|
670
|
+
def drop_index_by_name(db_name, tbl_name, index_name, deleteData)
|
671
|
+
send_drop_index_by_name(db_name, tbl_name, index_name, deleteData)
|
672
|
+
return recv_drop_index_by_name()
|
673
|
+
end
|
674
|
+
|
675
|
+
def send_drop_index_by_name(db_name, tbl_name, index_name, deleteData)
|
676
|
+
send_message('drop_index_by_name', Drop_index_by_name_args, :db_name => db_name, :tbl_name => tbl_name, :index_name => index_name, :deleteData => deleteData)
|
677
|
+
end
|
678
|
+
|
679
|
+
def recv_drop_index_by_name()
|
680
|
+
result = receive_message(Drop_index_by_name_result)
|
681
|
+
return result.success unless result.success.nil?
|
682
|
+
raise result.o1 unless result.o1.nil?
|
683
|
+
raise result.o2 unless result.o2.nil?
|
684
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'drop_index_by_name failed: unknown result')
|
685
|
+
end
|
686
|
+
|
687
|
+
def get_index_by_name(db_name, tbl_name, index_name)
|
688
|
+
send_get_index_by_name(db_name, tbl_name, index_name)
|
689
|
+
return recv_get_index_by_name()
|
690
|
+
end
|
691
|
+
|
692
|
+
def send_get_index_by_name(db_name, tbl_name, index_name)
|
693
|
+
send_message('get_index_by_name', Get_index_by_name_args, :db_name => db_name, :tbl_name => tbl_name, :index_name => index_name)
|
694
|
+
end
|
695
|
+
|
696
|
+
def recv_get_index_by_name()
|
697
|
+
result = receive_message(Get_index_by_name_result)
|
698
|
+
return result.success unless result.success.nil?
|
699
|
+
raise result.o1 unless result.o1.nil?
|
700
|
+
raise result.o2 unless result.o2.nil?
|
701
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_index_by_name failed: unknown result')
|
702
|
+
end
|
703
|
+
|
704
|
+
def get_indexes(db_name, tbl_name, max_indexes)
|
705
|
+
send_get_indexes(db_name, tbl_name, max_indexes)
|
706
|
+
return recv_get_indexes()
|
707
|
+
end
|
708
|
+
|
709
|
+
def send_get_indexes(db_name, tbl_name, max_indexes)
|
710
|
+
send_message('get_indexes', Get_indexes_args, :db_name => db_name, :tbl_name => tbl_name, :max_indexes => max_indexes)
|
711
|
+
end
|
712
|
+
|
713
|
+
def recv_get_indexes()
|
714
|
+
result = receive_message(Get_indexes_result)
|
715
|
+
return result.success unless result.success.nil?
|
716
|
+
raise result.o1 unless result.o1.nil?
|
717
|
+
raise result.o2 unless result.o2.nil?
|
718
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_indexes failed: unknown result')
|
719
|
+
end
|
720
|
+
|
721
|
+
def get_index_names(db_name, tbl_name, max_indexes)
|
722
|
+
send_get_index_names(db_name, tbl_name, max_indexes)
|
723
|
+
return recv_get_index_names()
|
724
|
+
end
|
725
|
+
|
726
|
+
def send_get_index_names(db_name, tbl_name, max_indexes)
|
727
|
+
send_message('get_index_names', Get_index_names_args, :db_name => db_name, :tbl_name => tbl_name, :max_indexes => max_indexes)
|
728
|
+
end
|
729
|
+
|
730
|
+
def recv_get_index_names()
|
731
|
+
result = receive_message(Get_index_names_result)
|
732
|
+
return result.success unless result.success.nil?
|
733
|
+
raise result.o2 unless result.o2.nil?
|
734
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_index_names failed: unknown result')
|
735
|
+
end
|
736
|
+
|
737
|
+
def create_role(role)
|
738
|
+
send_create_role(role)
|
739
|
+
return recv_create_role()
|
740
|
+
end
|
741
|
+
|
742
|
+
def send_create_role(role)
|
743
|
+
send_message('create_role', Create_role_args, :role => role)
|
744
|
+
end
|
745
|
+
|
746
|
+
def recv_create_role()
|
747
|
+
result = receive_message(Create_role_result)
|
748
|
+
return result.success unless result.success.nil?
|
749
|
+
raise result.o1 unless result.o1.nil?
|
750
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'create_role failed: unknown result')
|
751
|
+
end
|
752
|
+
|
753
|
+
def drop_role(role_name)
|
754
|
+
send_drop_role(role_name)
|
755
|
+
return recv_drop_role()
|
756
|
+
end
|
757
|
+
|
758
|
+
def send_drop_role(role_name)
|
759
|
+
send_message('drop_role', Drop_role_args, :role_name => role_name)
|
760
|
+
end
|
761
|
+
|
762
|
+
def recv_drop_role()
|
763
|
+
result = receive_message(Drop_role_result)
|
764
|
+
return result.success unless result.success.nil?
|
765
|
+
raise result.o1 unless result.o1.nil?
|
766
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'drop_role failed: unknown result')
|
767
|
+
end
|
768
|
+
|
769
|
+
def get_role_names()
|
770
|
+
send_get_role_names()
|
771
|
+
return recv_get_role_names()
|
772
|
+
end
|
773
|
+
|
774
|
+
def send_get_role_names()
|
775
|
+
send_message('get_role_names', Get_role_names_args)
|
776
|
+
end
|
777
|
+
|
778
|
+
def recv_get_role_names()
|
779
|
+
result = receive_message(Get_role_names_result)
|
780
|
+
return result.success unless result.success.nil?
|
781
|
+
raise result.o1 unless result.o1.nil?
|
782
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_role_names failed: unknown result')
|
783
|
+
end
|
784
|
+
|
785
|
+
def grant_role(role_name, principal_name, principal_type, grantor, grantorType, grant_option)
|
786
|
+
send_grant_role(role_name, principal_name, principal_type, grantor, grantorType, grant_option)
|
787
|
+
return recv_grant_role()
|
788
|
+
end
|
789
|
+
|
790
|
+
def send_grant_role(role_name, principal_name, principal_type, grantor, grantorType, grant_option)
|
791
|
+
send_message('grant_role', Grant_role_args, :role_name => role_name, :principal_name => principal_name, :principal_type => principal_type, :grantor => grantor, :grantorType => grantorType, :grant_option => grant_option)
|
792
|
+
end
|
793
|
+
|
794
|
+
def recv_grant_role()
|
795
|
+
result = receive_message(Grant_role_result)
|
796
|
+
return result.success unless result.success.nil?
|
797
|
+
raise result.o1 unless result.o1.nil?
|
798
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'grant_role failed: unknown result')
|
799
|
+
end
|
800
|
+
|
801
|
+
def revoke_role(role_name, principal_name, principal_type)
|
802
|
+
send_revoke_role(role_name, principal_name, principal_type)
|
803
|
+
return recv_revoke_role()
|
804
|
+
end
|
805
|
+
|
806
|
+
def send_revoke_role(role_name, principal_name, principal_type)
|
807
|
+
send_message('revoke_role', Revoke_role_args, :role_name => role_name, :principal_name => principal_name, :principal_type => principal_type)
|
808
|
+
end
|
809
|
+
|
810
|
+
def recv_revoke_role()
|
811
|
+
result = receive_message(Revoke_role_result)
|
812
|
+
return result.success unless result.success.nil?
|
813
|
+
raise result.o1 unless result.o1.nil?
|
814
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'revoke_role failed: unknown result')
|
815
|
+
end
|
816
|
+
|
817
|
+
def list_roles(principal_name, principal_type)
|
818
|
+
send_list_roles(principal_name, principal_type)
|
819
|
+
return recv_list_roles()
|
820
|
+
end
|
821
|
+
|
822
|
+
def send_list_roles(principal_name, principal_type)
|
823
|
+
send_message('list_roles', List_roles_args, :principal_name => principal_name, :principal_type => principal_type)
|
824
|
+
end
|
825
|
+
|
826
|
+
def recv_list_roles()
|
827
|
+
result = receive_message(List_roles_result)
|
828
|
+
return result.success unless result.success.nil?
|
829
|
+
raise result.o1 unless result.o1.nil?
|
830
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'list_roles failed: unknown result')
|
831
|
+
end
|
832
|
+
|
833
|
+
def get_privilege_set(hiveObject, user_name, group_names)
|
834
|
+
send_get_privilege_set(hiveObject, user_name, group_names)
|
835
|
+
return recv_get_privilege_set()
|
836
|
+
end
|
837
|
+
|
838
|
+
def send_get_privilege_set(hiveObject, user_name, group_names)
|
839
|
+
send_message('get_privilege_set', Get_privilege_set_args, :hiveObject => hiveObject, :user_name => user_name, :group_names => group_names)
|
840
|
+
end
|
841
|
+
|
842
|
+
def recv_get_privilege_set()
|
843
|
+
result = receive_message(Get_privilege_set_result)
|
844
|
+
return result.success unless result.success.nil?
|
845
|
+
raise result.o1 unless result.o1.nil?
|
846
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_privilege_set failed: unknown result')
|
847
|
+
end
|
848
|
+
|
849
|
+
def list_privileges(principal_name, principal_type, hiveObject)
|
850
|
+
send_list_privileges(principal_name, principal_type, hiveObject)
|
851
|
+
return recv_list_privileges()
|
852
|
+
end
|
853
|
+
|
854
|
+
def send_list_privileges(principal_name, principal_type, hiveObject)
|
855
|
+
send_message('list_privileges', List_privileges_args, :principal_name => principal_name, :principal_type => principal_type, :hiveObject => hiveObject)
|
856
|
+
end
|
857
|
+
|
858
|
+
def recv_list_privileges()
|
859
|
+
result = receive_message(List_privileges_result)
|
860
|
+
return result.success unless result.success.nil?
|
861
|
+
raise result.o1 unless result.o1.nil?
|
862
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'list_privileges failed: unknown result')
|
863
|
+
end
|
864
|
+
|
865
|
+
def grant_privileges(privileges)
|
866
|
+
send_grant_privileges(privileges)
|
867
|
+
return recv_grant_privileges()
|
868
|
+
end
|
869
|
+
|
870
|
+
def send_grant_privileges(privileges)
|
871
|
+
send_message('grant_privileges', Grant_privileges_args, :privileges => privileges)
|
872
|
+
end
|
873
|
+
|
874
|
+
def recv_grant_privileges()
|
875
|
+
result = receive_message(Grant_privileges_result)
|
876
|
+
return result.success unless result.success.nil?
|
877
|
+
raise result.o1 unless result.o1.nil?
|
878
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'grant_privileges failed: unknown result')
|
879
|
+
end
|
880
|
+
|
881
|
+
def revoke_privileges(privileges)
|
882
|
+
send_revoke_privileges(privileges)
|
883
|
+
return recv_revoke_privileges()
|
884
|
+
end
|
885
|
+
|
886
|
+
def send_revoke_privileges(privileges)
|
887
|
+
send_message('revoke_privileges', Revoke_privileges_args, :privileges => privileges)
|
888
|
+
end
|
889
|
+
|
890
|
+
def recv_revoke_privileges()
|
891
|
+
result = receive_message(Revoke_privileges_result)
|
892
|
+
return result.success unless result.success.nil?
|
893
|
+
raise result.o1 unless result.o1.nil?
|
894
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'revoke_privileges failed: unknown result')
|
895
|
+
end
|
896
|
+
|
897
|
+
def get_delegation_token(renewer_kerberos_principal_name)
|
898
|
+
send_get_delegation_token(renewer_kerberos_principal_name)
|
899
|
+
return recv_get_delegation_token()
|
900
|
+
end
|
901
|
+
|
902
|
+
def send_get_delegation_token(renewer_kerberos_principal_name)
|
903
|
+
send_message('get_delegation_token', Get_delegation_token_args, :renewer_kerberos_principal_name => renewer_kerberos_principal_name)
|
904
|
+
end
|
905
|
+
|
906
|
+
def recv_get_delegation_token()
|
907
|
+
result = receive_message(Get_delegation_token_result)
|
908
|
+
return result.success unless result.success.nil?
|
909
|
+
raise result.o1 unless result.o1.nil?
|
910
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_delegation_token failed: unknown result')
|
911
|
+
end
|
912
|
+
|
913
|
+
def get_delegation_token_with_signature(renewer_kerberos_principal_name, token_signature)
|
914
|
+
send_get_delegation_token_with_signature(renewer_kerberos_principal_name, token_signature)
|
915
|
+
return recv_get_delegation_token_with_signature()
|
916
|
+
end
|
917
|
+
|
918
|
+
def send_get_delegation_token_with_signature(renewer_kerberos_principal_name, token_signature)
|
919
|
+
send_message('get_delegation_token_with_signature', Get_delegation_token_with_signature_args, :renewer_kerberos_principal_name => renewer_kerberos_principal_name, :token_signature => token_signature)
|
920
|
+
end
|
921
|
+
|
922
|
+
def recv_get_delegation_token_with_signature()
|
923
|
+
result = receive_message(Get_delegation_token_with_signature_result)
|
924
|
+
return result.success unless result.success.nil?
|
925
|
+
raise result.o1 unless result.o1.nil?
|
926
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_delegation_token_with_signature failed: unknown result')
|
927
|
+
end
|
928
|
+
|
929
|
+
def renew_delegation_token(token_str_form)
|
930
|
+
send_renew_delegation_token(token_str_form)
|
931
|
+
return recv_renew_delegation_token()
|
932
|
+
end
|
933
|
+
|
934
|
+
def send_renew_delegation_token(token_str_form)
|
935
|
+
send_message('renew_delegation_token', Renew_delegation_token_args, :token_str_form => token_str_form)
|
936
|
+
end
|
937
|
+
|
938
|
+
def recv_renew_delegation_token()
|
939
|
+
result = receive_message(Renew_delegation_token_result)
|
940
|
+
return result.success unless result.success.nil?
|
941
|
+
raise result.o1 unless result.o1.nil?
|
942
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'renew_delegation_token failed: unknown result')
|
943
|
+
end
|
944
|
+
|
945
|
+
def cancel_delegation_token(token_str_form)
|
946
|
+
send_cancel_delegation_token(token_str_form)
|
947
|
+
recv_cancel_delegation_token()
|
948
|
+
end
|
949
|
+
|
950
|
+
def send_cancel_delegation_token(token_str_form)
|
951
|
+
send_message('cancel_delegation_token', Cancel_delegation_token_args, :token_str_form => token_str_form)
|
952
|
+
end
|
953
|
+
|
954
|
+
def recv_cancel_delegation_token()
|
955
|
+
result = receive_message(Cancel_delegation_token_result)
|
956
|
+
raise result.o1 unless result.o1.nil?
|
957
|
+
return
|
958
|
+
end
|
959
|
+
|
960
|
+
end
|
961
|
+
|
962
|
+
class Processor < ::FacebookService::Processor
|
963
|
+
include ::Thrift::Processor
|
964
|
+
|
965
|
+
def process_create_database(seqid, iprot, oprot)
|
966
|
+
args = read_args(iprot, Create_database_args)
|
967
|
+
result = Create_database_result.new()
|
968
|
+
begin
|
969
|
+
@handler.create_database(args.database)
|
970
|
+
rescue ::AlreadyExistsException => o1
|
971
|
+
result.o1 = o1
|
972
|
+
rescue ::InvalidObjectException => o2
|
973
|
+
result.o2 = o2
|
974
|
+
rescue ::MetaException => o3
|
975
|
+
result.o3 = o3
|
976
|
+
end
|
977
|
+
write_result(result, oprot, 'create_database', seqid)
|
978
|
+
end
|
979
|
+
|
980
|
+
def process_get_database(seqid, iprot, oprot)
|
981
|
+
args = read_args(iprot, Get_database_args)
|
982
|
+
result = Get_database_result.new()
|
983
|
+
begin
|
984
|
+
result.success = @handler.get_database(args.name)
|
985
|
+
rescue ::NoSuchObjectException => o1
|
986
|
+
result.o1 = o1
|
987
|
+
rescue ::MetaException => o2
|
988
|
+
result.o2 = o2
|
989
|
+
end
|
990
|
+
write_result(result, oprot, 'get_database', seqid)
|
991
|
+
end
|
992
|
+
|
993
|
+
def process_drop_database(seqid, iprot, oprot)
|
994
|
+
args = read_args(iprot, Drop_database_args)
|
995
|
+
result = Drop_database_result.new()
|
996
|
+
begin
|
997
|
+
@handler.drop_database(args.name, args.deleteData)
|
998
|
+
rescue ::NoSuchObjectException => o1
|
999
|
+
result.o1 = o1
|
1000
|
+
rescue ::InvalidOperationException => o2
|
1001
|
+
result.o2 = o2
|
1002
|
+
rescue ::MetaException => o3
|
1003
|
+
result.o3 = o3
|
1004
|
+
end
|
1005
|
+
write_result(result, oprot, 'drop_database', seqid)
|
1006
|
+
end
|
1007
|
+
|
1008
|
+
def process_get_databases(seqid, iprot, oprot)
|
1009
|
+
args = read_args(iprot, Get_databases_args)
|
1010
|
+
result = Get_databases_result.new()
|
1011
|
+
begin
|
1012
|
+
result.success = @handler.get_databases(args.pattern)
|
1013
|
+
rescue ::MetaException => o1
|
1014
|
+
result.o1 = o1
|
1015
|
+
end
|
1016
|
+
write_result(result, oprot, 'get_databases', seqid)
|
1017
|
+
end
|
1018
|
+
|
1019
|
+
def process_get_all_databases(seqid, iprot, oprot)
|
1020
|
+
args = read_args(iprot, Get_all_databases_args)
|
1021
|
+
result = Get_all_databases_result.new()
|
1022
|
+
begin
|
1023
|
+
result.success = @handler.get_all_databases()
|
1024
|
+
rescue ::MetaException => o1
|
1025
|
+
result.o1 = o1
|
1026
|
+
end
|
1027
|
+
write_result(result, oprot, 'get_all_databases', seqid)
|
1028
|
+
end
|
1029
|
+
|
1030
|
+
def process_alter_database(seqid, iprot, oprot)
|
1031
|
+
args = read_args(iprot, Alter_database_args)
|
1032
|
+
result = Alter_database_result.new()
|
1033
|
+
begin
|
1034
|
+
@handler.alter_database(args.dbname, args.db)
|
1035
|
+
rescue ::MetaException => o1
|
1036
|
+
result.o1 = o1
|
1037
|
+
rescue ::NoSuchObjectException => o2
|
1038
|
+
result.o2 = o2
|
1039
|
+
end
|
1040
|
+
write_result(result, oprot, 'alter_database', seqid)
|
1041
|
+
end
|
1042
|
+
|
1043
|
+
def process_get_type(seqid, iprot, oprot)
|
1044
|
+
args = read_args(iprot, Get_type_args)
|
1045
|
+
result = Get_type_result.new()
|
1046
|
+
begin
|
1047
|
+
result.success = @handler.get_type(args.name)
|
1048
|
+
rescue ::MetaException => o1
|
1049
|
+
result.o1 = o1
|
1050
|
+
rescue ::NoSuchObjectException => o2
|
1051
|
+
result.o2 = o2
|
1052
|
+
end
|
1053
|
+
write_result(result, oprot, 'get_type', seqid)
|
1054
|
+
end
|
1055
|
+
|
1056
|
+
def process_create_type(seqid, iprot, oprot)
|
1057
|
+
args = read_args(iprot, Create_type_args)
|
1058
|
+
result = Create_type_result.new()
|
1059
|
+
begin
|
1060
|
+
result.success = @handler.create_type(args.type)
|
1061
|
+
rescue ::AlreadyExistsException => o1
|
1062
|
+
result.o1 = o1
|
1063
|
+
rescue ::InvalidObjectException => o2
|
1064
|
+
result.o2 = o2
|
1065
|
+
rescue ::MetaException => o3
|
1066
|
+
result.o3 = o3
|
1067
|
+
end
|
1068
|
+
write_result(result, oprot, 'create_type', seqid)
|
1069
|
+
end
|
1070
|
+
|
1071
|
+
def process_drop_type(seqid, iprot, oprot)
|
1072
|
+
args = read_args(iprot, Drop_type_args)
|
1073
|
+
result = Drop_type_result.new()
|
1074
|
+
begin
|
1075
|
+
result.success = @handler.drop_type(args.type)
|
1076
|
+
rescue ::MetaException => o1
|
1077
|
+
result.o1 = o1
|
1078
|
+
rescue ::NoSuchObjectException => o2
|
1079
|
+
result.o2 = o2
|
1080
|
+
end
|
1081
|
+
write_result(result, oprot, 'drop_type', seqid)
|
1082
|
+
end
|
1083
|
+
|
1084
|
+
def process_get_type_all(seqid, iprot, oprot)
|
1085
|
+
args = read_args(iprot, Get_type_all_args)
|
1086
|
+
result = Get_type_all_result.new()
|
1087
|
+
begin
|
1088
|
+
result.success = @handler.get_type_all(args.name)
|
1089
|
+
rescue ::MetaException => o2
|
1090
|
+
result.o2 = o2
|
1091
|
+
end
|
1092
|
+
write_result(result, oprot, 'get_type_all', seqid)
|
1093
|
+
end
|
1094
|
+
|
1095
|
+
def process_get_fields(seqid, iprot, oprot)
|
1096
|
+
args = read_args(iprot, Get_fields_args)
|
1097
|
+
result = Get_fields_result.new()
|
1098
|
+
begin
|
1099
|
+
result.success = @handler.get_fields(args.db_name, args.table_name)
|
1100
|
+
rescue ::MetaException => o1
|
1101
|
+
result.o1 = o1
|
1102
|
+
rescue ::UnknownTableException => o2
|
1103
|
+
result.o2 = o2
|
1104
|
+
rescue ::UnknownDBException => o3
|
1105
|
+
result.o3 = o3
|
1106
|
+
end
|
1107
|
+
write_result(result, oprot, 'get_fields', seqid)
|
1108
|
+
end
|
1109
|
+
|
1110
|
+
def process_get_schema(seqid, iprot, oprot)
|
1111
|
+
args = read_args(iprot, Get_schema_args)
|
1112
|
+
result = Get_schema_result.new()
|
1113
|
+
begin
|
1114
|
+
result.success = @handler.get_schema(args.db_name, args.table_name)
|
1115
|
+
rescue ::MetaException => o1
|
1116
|
+
result.o1 = o1
|
1117
|
+
rescue ::UnknownTableException => o2
|
1118
|
+
result.o2 = o2
|
1119
|
+
rescue ::UnknownDBException => o3
|
1120
|
+
result.o3 = o3
|
1121
|
+
end
|
1122
|
+
write_result(result, oprot, 'get_schema', seqid)
|
1123
|
+
end
|
1124
|
+
|
1125
|
+
def process_create_table(seqid, iprot, oprot)
|
1126
|
+
args = read_args(iprot, Create_table_args)
|
1127
|
+
result = Create_table_result.new()
|
1128
|
+
begin
|
1129
|
+
@handler.create_table(args.tbl)
|
1130
|
+
rescue ::AlreadyExistsException => o1
|
1131
|
+
result.o1 = o1
|
1132
|
+
rescue ::InvalidObjectException => o2
|
1133
|
+
result.o2 = o2
|
1134
|
+
rescue ::MetaException => o3
|
1135
|
+
result.o3 = o3
|
1136
|
+
rescue ::NoSuchObjectException => o4
|
1137
|
+
result.o4 = o4
|
1138
|
+
end
|
1139
|
+
write_result(result, oprot, 'create_table', seqid)
|
1140
|
+
end
|
1141
|
+
|
1142
|
+
def process_drop_table(seqid, iprot, oprot)
|
1143
|
+
args = read_args(iprot, Drop_table_args)
|
1144
|
+
result = Drop_table_result.new()
|
1145
|
+
begin
|
1146
|
+
@handler.drop_table(args.dbname, args.name, args.deleteData)
|
1147
|
+
rescue ::NoSuchObjectException => o1
|
1148
|
+
result.o1 = o1
|
1149
|
+
rescue ::MetaException => o3
|
1150
|
+
result.o3 = o3
|
1151
|
+
end
|
1152
|
+
write_result(result, oprot, 'drop_table', seqid)
|
1153
|
+
end
|
1154
|
+
|
1155
|
+
def process_get_tables(seqid, iprot, oprot)
|
1156
|
+
args = read_args(iprot, Get_tables_args)
|
1157
|
+
result = Get_tables_result.new()
|
1158
|
+
begin
|
1159
|
+
result.success = @handler.get_tables(args.db_name, args.pattern)
|
1160
|
+
rescue ::MetaException => o1
|
1161
|
+
result.o1 = o1
|
1162
|
+
end
|
1163
|
+
write_result(result, oprot, 'get_tables', seqid)
|
1164
|
+
end
|
1165
|
+
|
1166
|
+
def process_get_all_tables(seqid, iprot, oprot)
|
1167
|
+
args = read_args(iprot, Get_all_tables_args)
|
1168
|
+
result = Get_all_tables_result.new()
|
1169
|
+
begin
|
1170
|
+
result.success = @handler.get_all_tables(args.db_name)
|
1171
|
+
rescue ::MetaException => o1
|
1172
|
+
result.o1 = o1
|
1173
|
+
end
|
1174
|
+
write_result(result, oprot, 'get_all_tables', seqid)
|
1175
|
+
end
|
1176
|
+
|
1177
|
+
def process_get_table(seqid, iprot, oprot)
|
1178
|
+
args = read_args(iprot, Get_table_args)
|
1179
|
+
result = Get_table_result.new()
|
1180
|
+
begin
|
1181
|
+
result.success = @handler.get_table(args.dbname, args.tbl_name)
|
1182
|
+
rescue ::MetaException => o1
|
1183
|
+
result.o1 = o1
|
1184
|
+
rescue ::NoSuchObjectException => o2
|
1185
|
+
result.o2 = o2
|
1186
|
+
end
|
1187
|
+
write_result(result, oprot, 'get_table', seqid)
|
1188
|
+
end
|
1189
|
+
|
1190
|
+
def process_alter_table(seqid, iprot, oprot)
|
1191
|
+
args = read_args(iprot, Alter_table_args)
|
1192
|
+
result = Alter_table_result.new()
|
1193
|
+
begin
|
1194
|
+
@handler.alter_table(args.dbname, args.tbl_name, args.new_tbl)
|
1195
|
+
rescue ::InvalidOperationException => o1
|
1196
|
+
result.o1 = o1
|
1197
|
+
rescue ::MetaException => o2
|
1198
|
+
result.o2 = o2
|
1199
|
+
end
|
1200
|
+
write_result(result, oprot, 'alter_table', seqid)
|
1201
|
+
end
|
1202
|
+
|
1203
|
+
def process_add_partition(seqid, iprot, oprot)
|
1204
|
+
args = read_args(iprot, Add_partition_args)
|
1205
|
+
result = Add_partition_result.new()
|
1206
|
+
begin
|
1207
|
+
result.success = @handler.add_partition(args.new_part)
|
1208
|
+
rescue ::InvalidObjectException => o1
|
1209
|
+
result.o1 = o1
|
1210
|
+
rescue ::AlreadyExistsException => o2
|
1211
|
+
result.o2 = o2
|
1212
|
+
rescue ::MetaException => o3
|
1213
|
+
result.o3 = o3
|
1214
|
+
end
|
1215
|
+
write_result(result, oprot, 'add_partition', seqid)
|
1216
|
+
end
|
1217
|
+
|
1218
|
+
def process_append_partition(seqid, iprot, oprot)
|
1219
|
+
args = read_args(iprot, Append_partition_args)
|
1220
|
+
result = Append_partition_result.new()
|
1221
|
+
begin
|
1222
|
+
result.success = @handler.append_partition(args.db_name, args.tbl_name, args.part_vals)
|
1223
|
+
rescue ::InvalidObjectException => o1
|
1224
|
+
result.o1 = o1
|
1225
|
+
rescue ::AlreadyExistsException => o2
|
1226
|
+
result.o2 = o2
|
1227
|
+
rescue ::MetaException => o3
|
1228
|
+
result.o3 = o3
|
1229
|
+
end
|
1230
|
+
write_result(result, oprot, 'append_partition', seqid)
|
1231
|
+
end
|
1232
|
+
|
1233
|
+
def process_append_partition_by_name(seqid, iprot, oprot)
|
1234
|
+
args = read_args(iprot, Append_partition_by_name_args)
|
1235
|
+
result = Append_partition_by_name_result.new()
|
1236
|
+
begin
|
1237
|
+
result.success = @handler.append_partition_by_name(args.db_name, args.tbl_name, args.part_name)
|
1238
|
+
rescue ::InvalidObjectException => o1
|
1239
|
+
result.o1 = o1
|
1240
|
+
rescue ::AlreadyExistsException => o2
|
1241
|
+
result.o2 = o2
|
1242
|
+
rescue ::MetaException => o3
|
1243
|
+
result.o3 = o3
|
1244
|
+
end
|
1245
|
+
write_result(result, oprot, 'append_partition_by_name', seqid)
|
1246
|
+
end
|
1247
|
+
|
1248
|
+
def process_drop_partition(seqid, iprot, oprot)
|
1249
|
+
args = read_args(iprot, Drop_partition_args)
|
1250
|
+
result = Drop_partition_result.new()
|
1251
|
+
begin
|
1252
|
+
result.success = @handler.drop_partition(args.db_name, args.tbl_name, args.part_vals, args.deleteData)
|
1253
|
+
rescue ::NoSuchObjectException => o1
|
1254
|
+
result.o1 = o1
|
1255
|
+
rescue ::MetaException => o2
|
1256
|
+
result.o2 = o2
|
1257
|
+
end
|
1258
|
+
write_result(result, oprot, 'drop_partition', seqid)
|
1259
|
+
end
|
1260
|
+
|
1261
|
+
def process_drop_partition_by_name(seqid, iprot, oprot)
|
1262
|
+
args = read_args(iprot, Drop_partition_by_name_args)
|
1263
|
+
result = Drop_partition_by_name_result.new()
|
1264
|
+
begin
|
1265
|
+
result.success = @handler.drop_partition_by_name(args.db_name, args.tbl_name, args.part_name, args.deleteData)
|
1266
|
+
rescue ::NoSuchObjectException => o1
|
1267
|
+
result.o1 = o1
|
1268
|
+
rescue ::MetaException => o2
|
1269
|
+
result.o2 = o2
|
1270
|
+
end
|
1271
|
+
write_result(result, oprot, 'drop_partition_by_name', seqid)
|
1272
|
+
end
|
1273
|
+
|
1274
|
+
def process_get_partition(seqid, iprot, oprot)
|
1275
|
+
args = read_args(iprot, Get_partition_args)
|
1276
|
+
result = Get_partition_result.new()
|
1277
|
+
begin
|
1278
|
+
result.success = @handler.get_partition(args.db_name, args.tbl_name, args.part_vals)
|
1279
|
+
rescue ::MetaException => o1
|
1280
|
+
result.o1 = o1
|
1281
|
+
rescue ::NoSuchObjectException => o2
|
1282
|
+
result.o2 = o2
|
1283
|
+
end
|
1284
|
+
write_result(result, oprot, 'get_partition', seqid)
|
1285
|
+
end
|
1286
|
+
|
1287
|
+
def process_get_partition_with_auth(seqid, iprot, oprot)
|
1288
|
+
args = read_args(iprot, Get_partition_with_auth_args)
|
1289
|
+
result = Get_partition_with_auth_result.new()
|
1290
|
+
begin
|
1291
|
+
result.success = @handler.get_partition_with_auth(args.db_name, args.tbl_name, args.part_vals, args.user_name, args.group_names)
|
1292
|
+
rescue ::MetaException => o1
|
1293
|
+
result.o1 = o1
|
1294
|
+
rescue ::NoSuchObjectException => o2
|
1295
|
+
result.o2 = o2
|
1296
|
+
end
|
1297
|
+
write_result(result, oprot, 'get_partition_with_auth', seqid)
|
1298
|
+
end
|
1299
|
+
|
1300
|
+
def process_get_partition_by_name(seqid, iprot, oprot)
|
1301
|
+
args = read_args(iprot, Get_partition_by_name_args)
|
1302
|
+
result = Get_partition_by_name_result.new()
|
1303
|
+
begin
|
1304
|
+
result.success = @handler.get_partition_by_name(args.db_name, args.tbl_name, args.part_name)
|
1305
|
+
rescue ::MetaException => o1
|
1306
|
+
result.o1 = o1
|
1307
|
+
rescue ::NoSuchObjectException => o2
|
1308
|
+
result.o2 = o2
|
1309
|
+
end
|
1310
|
+
write_result(result, oprot, 'get_partition_by_name', seqid)
|
1311
|
+
end
|
1312
|
+
|
1313
|
+
def process_get_partitions(seqid, iprot, oprot)
|
1314
|
+
args = read_args(iprot, Get_partitions_args)
|
1315
|
+
result = Get_partitions_result.new()
|
1316
|
+
begin
|
1317
|
+
result.success = @handler.get_partitions(args.db_name, args.tbl_name, args.max_parts)
|
1318
|
+
rescue ::NoSuchObjectException => o1
|
1319
|
+
result.o1 = o1
|
1320
|
+
rescue ::MetaException => o2
|
1321
|
+
result.o2 = o2
|
1322
|
+
end
|
1323
|
+
write_result(result, oprot, 'get_partitions', seqid)
|
1324
|
+
end
|
1325
|
+
|
1326
|
+
def process_get_partitions_with_auth(seqid, iprot, oprot)
|
1327
|
+
args = read_args(iprot, Get_partitions_with_auth_args)
|
1328
|
+
result = Get_partitions_with_auth_result.new()
|
1329
|
+
begin
|
1330
|
+
result.success = @handler.get_partitions_with_auth(args.db_name, args.tbl_name, args.max_parts, args.user_name, args.group_names)
|
1331
|
+
rescue ::NoSuchObjectException => o1
|
1332
|
+
result.o1 = o1
|
1333
|
+
rescue ::MetaException => o2
|
1334
|
+
result.o2 = o2
|
1335
|
+
end
|
1336
|
+
write_result(result, oprot, 'get_partitions_with_auth', seqid)
|
1337
|
+
end
|
1338
|
+
|
1339
|
+
def process_get_partition_names(seqid, iprot, oprot)
|
1340
|
+
args = read_args(iprot, Get_partition_names_args)
|
1341
|
+
result = Get_partition_names_result.new()
|
1342
|
+
begin
|
1343
|
+
result.success = @handler.get_partition_names(args.db_name, args.tbl_name, args.max_parts)
|
1344
|
+
rescue ::MetaException => o2
|
1345
|
+
result.o2 = o2
|
1346
|
+
end
|
1347
|
+
write_result(result, oprot, 'get_partition_names', seqid)
|
1348
|
+
end
|
1349
|
+
|
1350
|
+
def process_get_partitions_ps(seqid, iprot, oprot)
|
1351
|
+
args = read_args(iprot, Get_partitions_ps_args)
|
1352
|
+
result = Get_partitions_ps_result.new()
|
1353
|
+
begin
|
1354
|
+
result.success = @handler.get_partitions_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts)
|
1355
|
+
rescue ::MetaException => o1
|
1356
|
+
result.o1 = o1
|
1357
|
+
end
|
1358
|
+
write_result(result, oprot, 'get_partitions_ps', seqid)
|
1359
|
+
end
|
1360
|
+
|
1361
|
+
def process_get_partitions_ps_with_auth(seqid, iprot, oprot)
|
1362
|
+
args = read_args(iprot, Get_partitions_ps_with_auth_args)
|
1363
|
+
result = Get_partitions_ps_with_auth_result.new()
|
1364
|
+
begin
|
1365
|
+
result.success = @handler.get_partitions_ps_with_auth(args.db_name, args.tbl_name, args.part_vals, args.max_parts, args.user_name, args.group_names)
|
1366
|
+
rescue ::NoSuchObjectException => o1
|
1367
|
+
result.o1 = o1
|
1368
|
+
rescue ::MetaException => o2
|
1369
|
+
result.o2 = o2
|
1370
|
+
end
|
1371
|
+
write_result(result, oprot, 'get_partitions_ps_with_auth', seqid)
|
1372
|
+
end
|
1373
|
+
|
1374
|
+
def process_get_partition_names_ps(seqid, iprot, oprot)
|
1375
|
+
args = read_args(iprot, Get_partition_names_ps_args)
|
1376
|
+
result = Get_partition_names_ps_result.new()
|
1377
|
+
begin
|
1378
|
+
result.success = @handler.get_partition_names_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts)
|
1379
|
+
rescue ::MetaException => o1
|
1380
|
+
result.o1 = o1
|
1381
|
+
end
|
1382
|
+
write_result(result, oprot, 'get_partition_names_ps', seqid)
|
1383
|
+
end
|
1384
|
+
|
1385
|
+
def process_get_partitions_by_filter(seqid, iprot, oprot)
|
1386
|
+
args = read_args(iprot, Get_partitions_by_filter_args)
|
1387
|
+
result = Get_partitions_by_filter_result.new()
|
1388
|
+
begin
|
1389
|
+
result.success = @handler.get_partitions_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts)
|
1390
|
+
rescue ::MetaException => o1
|
1391
|
+
result.o1 = o1
|
1392
|
+
rescue ::NoSuchObjectException => o2
|
1393
|
+
result.o2 = o2
|
1394
|
+
end
|
1395
|
+
write_result(result, oprot, 'get_partitions_by_filter', seqid)
|
1396
|
+
end
|
1397
|
+
|
1398
|
+
def process_alter_partition(seqid, iprot, oprot)
|
1399
|
+
args = read_args(iprot, Alter_partition_args)
|
1400
|
+
result = Alter_partition_result.new()
|
1401
|
+
begin
|
1402
|
+
@handler.alter_partition(args.db_name, args.tbl_name, args.new_part)
|
1403
|
+
rescue ::InvalidOperationException => o1
|
1404
|
+
result.o1 = o1
|
1405
|
+
rescue ::MetaException => o2
|
1406
|
+
result.o2 = o2
|
1407
|
+
end
|
1408
|
+
write_result(result, oprot, 'alter_partition', seqid)
|
1409
|
+
end
|
1410
|
+
|
1411
|
+
def process_get_config_value(seqid, iprot, oprot)
|
1412
|
+
args = read_args(iprot, Get_config_value_args)
|
1413
|
+
result = Get_config_value_result.new()
|
1414
|
+
begin
|
1415
|
+
result.success = @handler.get_config_value(args.name, args.defaultValue)
|
1416
|
+
rescue ::ConfigValSecurityException => o1
|
1417
|
+
result.o1 = o1
|
1418
|
+
end
|
1419
|
+
write_result(result, oprot, 'get_config_value', seqid)
|
1420
|
+
end
|
1421
|
+
|
1422
|
+
def process_partition_name_to_vals(seqid, iprot, oprot)
|
1423
|
+
args = read_args(iprot, Partition_name_to_vals_args)
|
1424
|
+
result = Partition_name_to_vals_result.new()
|
1425
|
+
begin
|
1426
|
+
result.success = @handler.partition_name_to_vals(args.part_name)
|
1427
|
+
rescue ::MetaException => o1
|
1428
|
+
result.o1 = o1
|
1429
|
+
end
|
1430
|
+
write_result(result, oprot, 'partition_name_to_vals', seqid)
|
1431
|
+
end
|
1432
|
+
|
1433
|
+
def process_partition_name_to_spec(seqid, iprot, oprot)
|
1434
|
+
args = read_args(iprot, Partition_name_to_spec_args)
|
1435
|
+
result = Partition_name_to_spec_result.new()
|
1436
|
+
begin
|
1437
|
+
result.success = @handler.partition_name_to_spec(args.part_name)
|
1438
|
+
rescue ::MetaException => o1
|
1439
|
+
result.o1 = o1
|
1440
|
+
end
|
1441
|
+
write_result(result, oprot, 'partition_name_to_spec', seqid)
|
1442
|
+
end
|
1443
|
+
|
1444
|
+
def process_add_index(seqid, iprot, oprot)
|
1445
|
+
args = read_args(iprot, Add_index_args)
|
1446
|
+
result = Add_index_result.new()
|
1447
|
+
begin
|
1448
|
+
result.success = @handler.add_index(args.new_index, args.index_table)
|
1449
|
+
rescue ::InvalidObjectException => o1
|
1450
|
+
result.o1 = o1
|
1451
|
+
rescue ::AlreadyExistsException => o2
|
1452
|
+
result.o2 = o2
|
1453
|
+
rescue ::MetaException => o3
|
1454
|
+
result.o3 = o3
|
1455
|
+
end
|
1456
|
+
write_result(result, oprot, 'add_index', seqid)
|
1457
|
+
end
|
1458
|
+
|
1459
|
+
def process_alter_index(seqid, iprot, oprot)
|
1460
|
+
args = read_args(iprot, Alter_index_args)
|
1461
|
+
result = Alter_index_result.new()
|
1462
|
+
begin
|
1463
|
+
@handler.alter_index(args.dbname, args.base_tbl_name, args.idx_name, args.new_idx)
|
1464
|
+
rescue ::InvalidOperationException => o1
|
1465
|
+
result.o1 = o1
|
1466
|
+
rescue ::MetaException => o2
|
1467
|
+
result.o2 = o2
|
1468
|
+
end
|
1469
|
+
write_result(result, oprot, 'alter_index', seqid)
|
1470
|
+
end
|
1471
|
+
|
1472
|
+
def process_drop_index_by_name(seqid, iprot, oprot)
|
1473
|
+
args = read_args(iprot, Drop_index_by_name_args)
|
1474
|
+
result = Drop_index_by_name_result.new()
|
1475
|
+
begin
|
1476
|
+
result.success = @handler.drop_index_by_name(args.db_name, args.tbl_name, args.index_name, args.deleteData)
|
1477
|
+
rescue ::NoSuchObjectException => o1
|
1478
|
+
result.o1 = o1
|
1479
|
+
rescue ::MetaException => o2
|
1480
|
+
result.o2 = o2
|
1481
|
+
end
|
1482
|
+
write_result(result, oprot, 'drop_index_by_name', seqid)
|
1483
|
+
end
|
1484
|
+
|
1485
|
+
def process_get_index_by_name(seqid, iprot, oprot)
|
1486
|
+
args = read_args(iprot, Get_index_by_name_args)
|
1487
|
+
result = Get_index_by_name_result.new()
|
1488
|
+
begin
|
1489
|
+
result.success = @handler.get_index_by_name(args.db_name, args.tbl_name, args.index_name)
|
1490
|
+
rescue ::MetaException => o1
|
1491
|
+
result.o1 = o1
|
1492
|
+
rescue ::NoSuchObjectException => o2
|
1493
|
+
result.o2 = o2
|
1494
|
+
end
|
1495
|
+
write_result(result, oprot, 'get_index_by_name', seqid)
|
1496
|
+
end
|
1497
|
+
|
1498
|
+
def process_get_indexes(seqid, iprot, oprot)
|
1499
|
+
args = read_args(iprot, Get_indexes_args)
|
1500
|
+
result = Get_indexes_result.new()
|
1501
|
+
begin
|
1502
|
+
result.success = @handler.get_indexes(args.db_name, args.tbl_name, args.max_indexes)
|
1503
|
+
rescue ::NoSuchObjectException => o1
|
1504
|
+
result.o1 = o1
|
1505
|
+
rescue ::MetaException => o2
|
1506
|
+
result.o2 = o2
|
1507
|
+
end
|
1508
|
+
write_result(result, oprot, 'get_indexes', seqid)
|
1509
|
+
end
|
1510
|
+
|
1511
|
+
def process_get_index_names(seqid, iprot, oprot)
|
1512
|
+
args = read_args(iprot, Get_index_names_args)
|
1513
|
+
result = Get_index_names_result.new()
|
1514
|
+
begin
|
1515
|
+
result.success = @handler.get_index_names(args.db_name, args.tbl_name, args.max_indexes)
|
1516
|
+
rescue ::MetaException => o2
|
1517
|
+
result.o2 = o2
|
1518
|
+
end
|
1519
|
+
write_result(result, oprot, 'get_index_names', seqid)
|
1520
|
+
end
|
1521
|
+
|
1522
|
+
def process_create_role(seqid, iprot, oprot)
|
1523
|
+
args = read_args(iprot, Create_role_args)
|
1524
|
+
result = Create_role_result.new()
|
1525
|
+
begin
|
1526
|
+
result.success = @handler.create_role(args.role)
|
1527
|
+
rescue ::MetaException => o1
|
1528
|
+
result.o1 = o1
|
1529
|
+
end
|
1530
|
+
write_result(result, oprot, 'create_role', seqid)
|
1531
|
+
end
|
1532
|
+
|
1533
|
+
def process_drop_role(seqid, iprot, oprot)
|
1534
|
+
args = read_args(iprot, Drop_role_args)
|
1535
|
+
result = Drop_role_result.new()
|
1536
|
+
begin
|
1537
|
+
result.success = @handler.drop_role(args.role_name)
|
1538
|
+
rescue ::MetaException => o1
|
1539
|
+
result.o1 = o1
|
1540
|
+
end
|
1541
|
+
write_result(result, oprot, 'drop_role', seqid)
|
1542
|
+
end
|
1543
|
+
|
1544
|
+
def process_get_role_names(seqid, iprot, oprot)
|
1545
|
+
args = read_args(iprot, Get_role_names_args)
|
1546
|
+
result = Get_role_names_result.new()
|
1547
|
+
begin
|
1548
|
+
result.success = @handler.get_role_names()
|
1549
|
+
rescue ::MetaException => o1
|
1550
|
+
result.o1 = o1
|
1551
|
+
end
|
1552
|
+
write_result(result, oprot, 'get_role_names', seqid)
|
1553
|
+
end
|
1554
|
+
|
1555
|
+
def process_grant_role(seqid, iprot, oprot)
|
1556
|
+
args = read_args(iprot, Grant_role_args)
|
1557
|
+
result = Grant_role_result.new()
|
1558
|
+
begin
|
1559
|
+
result.success = @handler.grant_role(args.role_name, args.principal_name, args.principal_type, args.grantor, args.grantorType, args.grant_option)
|
1560
|
+
rescue ::MetaException => o1
|
1561
|
+
result.o1 = o1
|
1562
|
+
end
|
1563
|
+
write_result(result, oprot, 'grant_role', seqid)
|
1564
|
+
end
|
1565
|
+
|
1566
|
+
def process_revoke_role(seqid, iprot, oprot)
|
1567
|
+
args = read_args(iprot, Revoke_role_args)
|
1568
|
+
result = Revoke_role_result.new()
|
1569
|
+
begin
|
1570
|
+
result.success = @handler.revoke_role(args.role_name, args.principal_name, args.principal_type)
|
1571
|
+
rescue ::MetaException => o1
|
1572
|
+
result.o1 = o1
|
1573
|
+
end
|
1574
|
+
write_result(result, oprot, 'revoke_role', seqid)
|
1575
|
+
end
|
1576
|
+
|
1577
|
+
def process_list_roles(seqid, iprot, oprot)
|
1578
|
+
args = read_args(iprot, List_roles_args)
|
1579
|
+
result = List_roles_result.new()
|
1580
|
+
begin
|
1581
|
+
result.success = @handler.list_roles(args.principal_name, args.principal_type)
|
1582
|
+
rescue ::MetaException => o1
|
1583
|
+
result.o1 = o1
|
1584
|
+
end
|
1585
|
+
write_result(result, oprot, 'list_roles', seqid)
|
1586
|
+
end
|
1587
|
+
|
1588
|
+
def process_get_privilege_set(seqid, iprot, oprot)
|
1589
|
+
args = read_args(iprot, Get_privilege_set_args)
|
1590
|
+
result = Get_privilege_set_result.new()
|
1591
|
+
begin
|
1592
|
+
result.success = @handler.get_privilege_set(args.hiveObject, args.user_name, args.group_names)
|
1593
|
+
rescue ::MetaException => o1
|
1594
|
+
result.o1 = o1
|
1595
|
+
end
|
1596
|
+
write_result(result, oprot, 'get_privilege_set', seqid)
|
1597
|
+
end
|
1598
|
+
|
1599
|
+
def process_list_privileges(seqid, iprot, oprot)
|
1600
|
+
args = read_args(iprot, List_privileges_args)
|
1601
|
+
result = List_privileges_result.new()
|
1602
|
+
begin
|
1603
|
+
result.success = @handler.list_privileges(args.principal_name, args.principal_type, args.hiveObject)
|
1604
|
+
rescue ::MetaException => o1
|
1605
|
+
result.o1 = o1
|
1606
|
+
end
|
1607
|
+
write_result(result, oprot, 'list_privileges', seqid)
|
1608
|
+
end
|
1609
|
+
|
1610
|
+
def process_grant_privileges(seqid, iprot, oprot)
|
1611
|
+
args = read_args(iprot, Grant_privileges_args)
|
1612
|
+
result = Grant_privileges_result.new()
|
1613
|
+
begin
|
1614
|
+
result.success = @handler.grant_privileges(args.privileges)
|
1615
|
+
rescue ::MetaException => o1
|
1616
|
+
result.o1 = o1
|
1617
|
+
end
|
1618
|
+
write_result(result, oprot, 'grant_privileges', seqid)
|
1619
|
+
end
|
1620
|
+
|
1621
|
+
def process_revoke_privileges(seqid, iprot, oprot)
|
1622
|
+
args = read_args(iprot, Revoke_privileges_args)
|
1623
|
+
result = Revoke_privileges_result.new()
|
1624
|
+
begin
|
1625
|
+
result.success = @handler.revoke_privileges(args.privileges)
|
1626
|
+
rescue ::MetaException => o1
|
1627
|
+
result.o1 = o1
|
1628
|
+
end
|
1629
|
+
write_result(result, oprot, 'revoke_privileges', seqid)
|
1630
|
+
end
|
1631
|
+
|
1632
|
+
def process_get_delegation_token(seqid, iprot, oprot)
|
1633
|
+
args = read_args(iprot, Get_delegation_token_args)
|
1634
|
+
result = Get_delegation_token_result.new()
|
1635
|
+
begin
|
1636
|
+
result.success = @handler.get_delegation_token(args.renewer_kerberos_principal_name)
|
1637
|
+
rescue ::MetaException => o1
|
1638
|
+
result.o1 = o1
|
1639
|
+
end
|
1640
|
+
write_result(result, oprot, 'get_delegation_token', seqid)
|
1641
|
+
end
|
1642
|
+
|
1643
|
+
def process_get_delegation_token_with_signature(seqid, iprot, oprot)
|
1644
|
+
args = read_args(iprot, Get_delegation_token_with_signature_args)
|
1645
|
+
result = Get_delegation_token_with_signature_result.new()
|
1646
|
+
begin
|
1647
|
+
result.success = @handler.get_delegation_token_with_signature(args.renewer_kerberos_principal_name, args.token_signature)
|
1648
|
+
rescue ::MetaException => o1
|
1649
|
+
result.o1 = o1
|
1650
|
+
end
|
1651
|
+
write_result(result, oprot, 'get_delegation_token_with_signature', seqid)
|
1652
|
+
end
|
1653
|
+
|
1654
|
+
def process_renew_delegation_token(seqid, iprot, oprot)
|
1655
|
+
args = read_args(iprot, Renew_delegation_token_args)
|
1656
|
+
result = Renew_delegation_token_result.new()
|
1657
|
+
begin
|
1658
|
+
result.success = @handler.renew_delegation_token(args.token_str_form)
|
1659
|
+
rescue ::MetaException => o1
|
1660
|
+
result.o1 = o1
|
1661
|
+
end
|
1662
|
+
write_result(result, oprot, 'renew_delegation_token', seqid)
|
1663
|
+
end
|
1664
|
+
|
1665
|
+
def process_cancel_delegation_token(seqid, iprot, oprot)
|
1666
|
+
args = read_args(iprot, Cancel_delegation_token_args)
|
1667
|
+
result = Cancel_delegation_token_result.new()
|
1668
|
+
begin
|
1669
|
+
@handler.cancel_delegation_token(args.token_str_form)
|
1670
|
+
rescue ::MetaException => o1
|
1671
|
+
result.o1 = o1
|
1672
|
+
end
|
1673
|
+
write_result(result, oprot, 'cancel_delegation_token', seqid)
|
1674
|
+
end
|
1675
|
+
|
1676
|
+
end
|
1677
|
+
|
1678
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
1679
|
+
|
1680
|
+
class Create_database_args
|
1681
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1682
|
+
DATABASE = 1
|
1683
|
+
|
1684
|
+
FIELDS = {
|
1685
|
+
DATABASE => {:type => ::Thrift::Types::STRUCT, :name => 'database', :class => ::Database}
|
1686
|
+
}
|
1687
|
+
|
1688
|
+
def struct_fields; FIELDS; end
|
1689
|
+
|
1690
|
+
def validate
|
1691
|
+
end
|
1692
|
+
|
1693
|
+
::Thrift::Struct.generate_accessors self
|
1694
|
+
end
|
1695
|
+
|
1696
|
+
class Create_database_result
|
1697
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1698
|
+
O1 = 1
|
1699
|
+
O2 = 2
|
1700
|
+
O3 = 3
|
1701
|
+
|
1702
|
+
FIELDS = {
|
1703
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::AlreadyExistsException},
|
1704
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::InvalidObjectException},
|
1705
|
+
O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::MetaException}
|
1706
|
+
}
|
1707
|
+
|
1708
|
+
def struct_fields; FIELDS; end
|
1709
|
+
|
1710
|
+
def validate
|
1711
|
+
end
|
1712
|
+
|
1713
|
+
::Thrift::Struct.generate_accessors self
|
1714
|
+
end
|
1715
|
+
|
1716
|
+
class Get_database_args
|
1717
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1718
|
+
NAME = 1
|
1719
|
+
|
1720
|
+
FIELDS = {
|
1721
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'}
|
1722
|
+
}
|
1723
|
+
|
1724
|
+
def struct_fields; FIELDS; end
|
1725
|
+
|
1726
|
+
def validate
|
1727
|
+
end
|
1728
|
+
|
1729
|
+
::Thrift::Struct.generate_accessors self
|
1730
|
+
end
|
1731
|
+
|
1732
|
+
class Get_database_result
|
1733
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1734
|
+
SUCCESS = 0
|
1735
|
+
O1 = 1
|
1736
|
+
O2 = 2
|
1737
|
+
|
1738
|
+
FIELDS = {
|
1739
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Database},
|
1740
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::NoSuchObjectException},
|
1741
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException}
|
1742
|
+
}
|
1743
|
+
|
1744
|
+
def struct_fields; FIELDS; end
|
1745
|
+
|
1746
|
+
def validate
|
1747
|
+
end
|
1748
|
+
|
1749
|
+
::Thrift::Struct.generate_accessors self
|
1750
|
+
end
|
1751
|
+
|
1752
|
+
class Drop_database_args
|
1753
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1754
|
+
NAME = 1
|
1755
|
+
DELETEDATA = 2
|
1756
|
+
|
1757
|
+
FIELDS = {
|
1758
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
1759
|
+
DELETEDATA => {:type => ::Thrift::Types::BOOL, :name => 'deleteData'}
|
1760
|
+
}
|
1761
|
+
|
1762
|
+
def struct_fields; FIELDS; end
|
1763
|
+
|
1764
|
+
def validate
|
1765
|
+
end
|
1766
|
+
|
1767
|
+
::Thrift::Struct.generate_accessors self
|
1768
|
+
end
|
1769
|
+
|
1770
|
+
class Drop_database_result
|
1771
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1772
|
+
O1 = 1
|
1773
|
+
O2 = 2
|
1774
|
+
O3 = 3
|
1775
|
+
|
1776
|
+
FIELDS = {
|
1777
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::NoSuchObjectException},
|
1778
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::InvalidOperationException},
|
1779
|
+
O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::MetaException}
|
1780
|
+
}
|
1781
|
+
|
1782
|
+
def struct_fields; FIELDS; end
|
1783
|
+
|
1784
|
+
def validate
|
1785
|
+
end
|
1786
|
+
|
1787
|
+
::Thrift::Struct.generate_accessors self
|
1788
|
+
end
|
1789
|
+
|
1790
|
+
class Get_databases_args
|
1791
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1792
|
+
PATTERN = 1
|
1793
|
+
|
1794
|
+
FIELDS = {
|
1795
|
+
PATTERN => {:type => ::Thrift::Types::STRING, :name => 'pattern'}
|
1796
|
+
}
|
1797
|
+
|
1798
|
+
def struct_fields; FIELDS; end
|
1799
|
+
|
1800
|
+
def validate
|
1801
|
+
end
|
1802
|
+
|
1803
|
+
::Thrift::Struct.generate_accessors self
|
1804
|
+
end
|
1805
|
+
|
1806
|
+
class Get_databases_result
|
1807
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1808
|
+
SUCCESS = 0
|
1809
|
+
O1 = 1
|
1810
|
+
|
1811
|
+
FIELDS = {
|
1812
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
|
1813
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
|
1814
|
+
}
|
1815
|
+
|
1816
|
+
def struct_fields; FIELDS; end
|
1817
|
+
|
1818
|
+
def validate
|
1819
|
+
end
|
1820
|
+
|
1821
|
+
::Thrift::Struct.generate_accessors self
|
1822
|
+
end
|
1823
|
+
|
1824
|
+
class Get_all_databases_args
|
1825
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1826
|
+
|
1827
|
+
FIELDS = {
|
1828
|
+
|
1829
|
+
}
|
1830
|
+
|
1831
|
+
def struct_fields; FIELDS; end
|
1832
|
+
|
1833
|
+
def validate
|
1834
|
+
end
|
1835
|
+
|
1836
|
+
::Thrift::Struct.generate_accessors self
|
1837
|
+
end
|
1838
|
+
|
1839
|
+
class Get_all_databases_result
|
1840
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1841
|
+
SUCCESS = 0
|
1842
|
+
O1 = 1
|
1843
|
+
|
1844
|
+
FIELDS = {
|
1845
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
|
1846
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
|
1847
|
+
}
|
1848
|
+
|
1849
|
+
def struct_fields; FIELDS; end
|
1850
|
+
|
1851
|
+
def validate
|
1852
|
+
end
|
1853
|
+
|
1854
|
+
::Thrift::Struct.generate_accessors self
|
1855
|
+
end
|
1856
|
+
|
1857
|
+
class Alter_database_args
|
1858
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1859
|
+
DBNAME = 1
|
1860
|
+
DB = 2
|
1861
|
+
|
1862
|
+
FIELDS = {
|
1863
|
+
DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbname'},
|
1864
|
+
DB => {:type => ::Thrift::Types::STRUCT, :name => 'db', :class => ::Database}
|
1865
|
+
}
|
1866
|
+
|
1867
|
+
def struct_fields; FIELDS; end
|
1868
|
+
|
1869
|
+
def validate
|
1870
|
+
end
|
1871
|
+
|
1872
|
+
::Thrift::Struct.generate_accessors self
|
1873
|
+
end
|
1874
|
+
|
1875
|
+
class Alter_database_result
|
1876
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1877
|
+
O1 = 1
|
1878
|
+
O2 = 2
|
1879
|
+
|
1880
|
+
FIELDS = {
|
1881
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException},
|
1882
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::NoSuchObjectException}
|
1883
|
+
}
|
1884
|
+
|
1885
|
+
def struct_fields; FIELDS; end
|
1886
|
+
|
1887
|
+
def validate
|
1888
|
+
end
|
1889
|
+
|
1890
|
+
::Thrift::Struct.generate_accessors self
|
1891
|
+
end
|
1892
|
+
|
1893
|
+
class Get_type_args
|
1894
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1895
|
+
NAME = 1
|
1896
|
+
|
1897
|
+
FIELDS = {
|
1898
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'}
|
1899
|
+
}
|
1900
|
+
|
1901
|
+
def struct_fields; FIELDS; end
|
1902
|
+
|
1903
|
+
def validate
|
1904
|
+
end
|
1905
|
+
|
1906
|
+
::Thrift::Struct.generate_accessors self
|
1907
|
+
end
|
1908
|
+
|
1909
|
+
class Get_type_result
|
1910
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1911
|
+
SUCCESS = 0
|
1912
|
+
O1 = 1
|
1913
|
+
O2 = 2
|
1914
|
+
|
1915
|
+
FIELDS = {
|
1916
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Type},
|
1917
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException},
|
1918
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::NoSuchObjectException}
|
1919
|
+
}
|
1920
|
+
|
1921
|
+
def struct_fields; FIELDS; end
|
1922
|
+
|
1923
|
+
def validate
|
1924
|
+
end
|
1925
|
+
|
1926
|
+
::Thrift::Struct.generate_accessors self
|
1927
|
+
end
|
1928
|
+
|
1929
|
+
class Create_type_args
|
1930
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1931
|
+
TYPE = 1
|
1932
|
+
|
1933
|
+
FIELDS = {
|
1934
|
+
TYPE => {:type => ::Thrift::Types::STRUCT, :name => 'type', :class => ::Type}
|
1935
|
+
}
|
1936
|
+
|
1937
|
+
def struct_fields; FIELDS; end
|
1938
|
+
|
1939
|
+
def validate
|
1940
|
+
end
|
1941
|
+
|
1942
|
+
::Thrift::Struct.generate_accessors self
|
1943
|
+
end
|
1944
|
+
|
1945
|
+
class Create_type_result
|
1946
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1947
|
+
SUCCESS = 0
|
1948
|
+
O1 = 1
|
1949
|
+
O2 = 2
|
1950
|
+
O3 = 3
|
1951
|
+
|
1952
|
+
FIELDS = {
|
1953
|
+
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
|
1954
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::AlreadyExistsException},
|
1955
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::InvalidObjectException},
|
1956
|
+
O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::MetaException}
|
1957
|
+
}
|
1958
|
+
|
1959
|
+
def struct_fields; FIELDS; end
|
1960
|
+
|
1961
|
+
def validate
|
1962
|
+
end
|
1963
|
+
|
1964
|
+
::Thrift::Struct.generate_accessors self
|
1965
|
+
end
|
1966
|
+
|
1967
|
+
class Drop_type_args
|
1968
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1969
|
+
TYPE = 1
|
1970
|
+
|
1971
|
+
FIELDS = {
|
1972
|
+
TYPE => {:type => ::Thrift::Types::STRING, :name => 'type'}
|
1973
|
+
}
|
1974
|
+
|
1975
|
+
def struct_fields; FIELDS; end
|
1976
|
+
|
1977
|
+
def validate
|
1978
|
+
end
|
1979
|
+
|
1980
|
+
::Thrift::Struct.generate_accessors self
|
1981
|
+
end
|
1982
|
+
|
1983
|
+
class Drop_type_result
|
1984
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1985
|
+
SUCCESS = 0
|
1986
|
+
O1 = 1
|
1987
|
+
O2 = 2
|
1988
|
+
|
1989
|
+
FIELDS = {
|
1990
|
+
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
|
1991
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException},
|
1992
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::NoSuchObjectException}
|
1993
|
+
}
|
1994
|
+
|
1995
|
+
def struct_fields; FIELDS; end
|
1996
|
+
|
1997
|
+
def validate
|
1998
|
+
end
|
1999
|
+
|
2000
|
+
::Thrift::Struct.generate_accessors self
|
2001
|
+
end
|
2002
|
+
|
2003
|
+
class Get_type_all_args
|
2004
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2005
|
+
NAME = 1
|
2006
|
+
|
2007
|
+
FIELDS = {
|
2008
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'}
|
2009
|
+
}
|
2010
|
+
|
2011
|
+
def struct_fields; FIELDS; end
|
2012
|
+
|
2013
|
+
def validate
|
2014
|
+
end
|
2015
|
+
|
2016
|
+
::Thrift::Struct.generate_accessors self
|
2017
|
+
end
|
2018
|
+
|
2019
|
+
class Get_type_all_result
|
2020
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2021
|
+
SUCCESS = 0
|
2022
|
+
O2 = 1
|
2023
|
+
|
2024
|
+
FIELDS = {
|
2025
|
+
SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Type}},
|
2026
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException}
|
2027
|
+
}
|
2028
|
+
|
2029
|
+
def struct_fields; FIELDS; end
|
2030
|
+
|
2031
|
+
def validate
|
2032
|
+
end
|
2033
|
+
|
2034
|
+
::Thrift::Struct.generate_accessors self
|
2035
|
+
end
|
2036
|
+
|
2037
|
+
class Get_fields_args
|
2038
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2039
|
+
DB_NAME = 1
|
2040
|
+
TABLE_NAME = 2
|
2041
|
+
|
2042
|
+
FIELDS = {
|
2043
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
2044
|
+
TABLE_NAME => {:type => ::Thrift::Types::STRING, :name => 'table_name'}
|
2045
|
+
}
|
2046
|
+
|
2047
|
+
def struct_fields; FIELDS; end
|
2048
|
+
|
2049
|
+
def validate
|
2050
|
+
end
|
2051
|
+
|
2052
|
+
::Thrift::Struct.generate_accessors self
|
2053
|
+
end
|
2054
|
+
|
2055
|
+
class Get_fields_result
|
2056
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2057
|
+
SUCCESS = 0
|
2058
|
+
O1 = 1
|
2059
|
+
O2 = 2
|
2060
|
+
O3 = 3
|
2061
|
+
|
2062
|
+
FIELDS = {
|
2063
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::FieldSchema}},
|
2064
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException},
|
2065
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::UnknownTableException},
|
2066
|
+
O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::UnknownDBException}
|
2067
|
+
}
|
2068
|
+
|
2069
|
+
def struct_fields; FIELDS; end
|
2070
|
+
|
2071
|
+
def validate
|
2072
|
+
end
|
2073
|
+
|
2074
|
+
::Thrift::Struct.generate_accessors self
|
2075
|
+
end
|
2076
|
+
|
2077
|
+
class Get_schema_args
|
2078
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2079
|
+
DB_NAME = 1
|
2080
|
+
TABLE_NAME = 2
|
2081
|
+
|
2082
|
+
FIELDS = {
|
2083
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
2084
|
+
TABLE_NAME => {:type => ::Thrift::Types::STRING, :name => 'table_name'}
|
2085
|
+
}
|
2086
|
+
|
2087
|
+
def struct_fields; FIELDS; end
|
2088
|
+
|
2089
|
+
def validate
|
2090
|
+
end
|
2091
|
+
|
2092
|
+
::Thrift::Struct.generate_accessors self
|
2093
|
+
end
|
2094
|
+
|
2095
|
+
class Get_schema_result
|
2096
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2097
|
+
SUCCESS = 0
|
2098
|
+
O1 = 1
|
2099
|
+
O2 = 2
|
2100
|
+
O3 = 3
|
2101
|
+
|
2102
|
+
FIELDS = {
|
2103
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::FieldSchema}},
|
2104
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException},
|
2105
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::UnknownTableException},
|
2106
|
+
O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::UnknownDBException}
|
2107
|
+
}
|
2108
|
+
|
2109
|
+
def struct_fields; FIELDS; end
|
2110
|
+
|
2111
|
+
def validate
|
2112
|
+
end
|
2113
|
+
|
2114
|
+
::Thrift::Struct.generate_accessors self
|
2115
|
+
end
|
2116
|
+
|
2117
|
+
class Create_table_args
|
2118
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2119
|
+
TBL = 1
|
2120
|
+
|
2121
|
+
FIELDS = {
|
2122
|
+
TBL => {:type => ::Thrift::Types::STRUCT, :name => 'tbl', :class => ::Table}
|
2123
|
+
}
|
2124
|
+
|
2125
|
+
def struct_fields; FIELDS; end
|
2126
|
+
|
2127
|
+
def validate
|
2128
|
+
end
|
2129
|
+
|
2130
|
+
::Thrift::Struct.generate_accessors self
|
2131
|
+
end
|
2132
|
+
|
2133
|
+
class Create_table_result
|
2134
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2135
|
+
O1 = 1
|
2136
|
+
O2 = 2
|
2137
|
+
O3 = 3
|
2138
|
+
O4 = 4
|
2139
|
+
|
2140
|
+
FIELDS = {
|
2141
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::AlreadyExistsException},
|
2142
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::InvalidObjectException},
|
2143
|
+
O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::MetaException},
|
2144
|
+
O4 => {:type => ::Thrift::Types::STRUCT, :name => 'o4', :class => ::NoSuchObjectException}
|
2145
|
+
}
|
2146
|
+
|
2147
|
+
def struct_fields; FIELDS; end
|
2148
|
+
|
2149
|
+
def validate
|
2150
|
+
end
|
2151
|
+
|
2152
|
+
::Thrift::Struct.generate_accessors self
|
2153
|
+
end
|
2154
|
+
|
2155
|
+
class Drop_table_args
|
2156
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2157
|
+
DBNAME = 1
|
2158
|
+
NAME = 2
|
2159
|
+
DELETEDATA = 3
|
2160
|
+
|
2161
|
+
FIELDS = {
|
2162
|
+
DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbname'},
|
2163
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
2164
|
+
DELETEDATA => {:type => ::Thrift::Types::BOOL, :name => 'deleteData'}
|
2165
|
+
}
|
2166
|
+
|
2167
|
+
def struct_fields; FIELDS; end
|
2168
|
+
|
2169
|
+
def validate
|
2170
|
+
end
|
2171
|
+
|
2172
|
+
::Thrift::Struct.generate_accessors self
|
2173
|
+
end
|
2174
|
+
|
2175
|
+
class Drop_table_result
|
2176
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2177
|
+
O1 = 1
|
2178
|
+
O3 = 2
|
2179
|
+
|
2180
|
+
FIELDS = {
|
2181
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::NoSuchObjectException},
|
2182
|
+
O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::MetaException}
|
2183
|
+
}
|
2184
|
+
|
2185
|
+
def struct_fields; FIELDS; end
|
2186
|
+
|
2187
|
+
def validate
|
2188
|
+
end
|
2189
|
+
|
2190
|
+
::Thrift::Struct.generate_accessors self
|
2191
|
+
end
|
2192
|
+
|
2193
|
+
class Get_tables_args
|
2194
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2195
|
+
DB_NAME = 1
|
2196
|
+
PATTERN = 2
|
2197
|
+
|
2198
|
+
FIELDS = {
|
2199
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
2200
|
+
PATTERN => {:type => ::Thrift::Types::STRING, :name => 'pattern'}
|
2201
|
+
}
|
2202
|
+
|
2203
|
+
def struct_fields; FIELDS; end
|
2204
|
+
|
2205
|
+
def validate
|
2206
|
+
end
|
2207
|
+
|
2208
|
+
::Thrift::Struct.generate_accessors self
|
2209
|
+
end
|
2210
|
+
|
2211
|
+
class Get_tables_result
|
2212
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2213
|
+
SUCCESS = 0
|
2214
|
+
O1 = 1
|
2215
|
+
|
2216
|
+
FIELDS = {
|
2217
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
|
2218
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
|
2219
|
+
}
|
2220
|
+
|
2221
|
+
def struct_fields; FIELDS; end
|
2222
|
+
|
2223
|
+
def validate
|
2224
|
+
end
|
2225
|
+
|
2226
|
+
::Thrift::Struct.generate_accessors self
|
2227
|
+
end
|
2228
|
+
|
2229
|
+
class Get_all_tables_args
|
2230
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2231
|
+
DB_NAME = 1
|
2232
|
+
|
2233
|
+
FIELDS = {
|
2234
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'}
|
2235
|
+
}
|
2236
|
+
|
2237
|
+
def struct_fields; FIELDS; end
|
2238
|
+
|
2239
|
+
def validate
|
2240
|
+
end
|
2241
|
+
|
2242
|
+
::Thrift::Struct.generate_accessors self
|
2243
|
+
end
|
2244
|
+
|
2245
|
+
class Get_all_tables_result
|
2246
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2247
|
+
SUCCESS = 0
|
2248
|
+
O1 = 1
|
2249
|
+
|
2250
|
+
FIELDS = {
|
2251
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
|
2252
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
|
2253
|
+
}
|
2254
|
+
|
2255
|
+
def struct_fields; FIELDS; end
|
2256
|
+
|
2257
|
+
def validate
|
2258
|
+
end
|
2259
|
+
|
2260
|
+
::Thrift::Struct.generate_accessors self
|
2261
|
+
end
|
2262
|
+
|
2263
|
+
class Get_table_args
|
2264
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2265
|
+
DBNAME = 1
|
2266
|
+
TBL_NAME = 2
|
2267
|
+
|
2268
|
+
FIELDS = {
|
2269
|
+
DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbname'},
|
2270
|
+
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'}
|
2271
|
+
}
|
2272
|
+
|
2273
|
+
def struct_fields; FIELDS; end
|
2274
|
+
|
2275
|
+
def validate
|
2276
|
+
end
|
2277
|
+
|
2278
|
+
::Thrift::Struct.generate_accessors self
|
2279
|
+
end
|
2280
|
+
|
2281
|
+
class Get_table_result
|
2282
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2283
|
+
SUCCESS = 0
|
2284
|
+
O1 = 1
|
2285
|
+
O2 = 2
|
2286
|
+
|
2287
|
+
FIELDS = {
|
2288
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Table},
|
2289
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException},
|
2290
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::NoSuchObjectException}
|
2291
|
+
}
|
2292
|
+
|
2293
|
+
def struct_fields; FIELDS; end
|
2294
|
+
|
2295
|
+
def validate
|
2296
|
+
end
|
2297
|
+
|
2298
|
+
::Thrift::Struct.generate_accessors self
|
2299
|
+
end
|
2300
|
+
|
2301
|
+
class Alter_table_args
|
2302
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2303
|
+
DBNAME = 1
|
2304
|
+
TBL_NAME = 2
|
2305
|
+
NEW_TBL = 3
|
2306
|
+
|
2307
|
+
FIELDS = {
|
2308
|
+
DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbname'},
|
2309
|
+
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
2310
|
+
NEW_TBL => {:type => ::Thrift::Types::STRUCT, :name => 'new_tbl', :class => ::Table}
|
2311
|
+
}
|
2312
|
+
|
2313
|
+
def struct_fields; FIELDS; end
|
2314
|
+
|
2315
|
+
def validate
|
2316
|
+
end
|
2317
|
+
|
2318
|
+
::Thrift::Struct.generate_accessors self
|
2319
|
+
end
|
2320
|
+
|
2321
|
+
class Alter_table_result
|
2322
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2323
|
+
O1 = 1
|
2324
|
+
O2 = 2
|
2325
|
+
|
2326
|
+
FIELDS = {
|
2327
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::InvalidOperationException},
|
2328
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException}
|
2329
|
+
}
|
2330
|
+
|
2331
|
+
def struct_fields; FIELDS; end
|
2332
|
+
|
2333
|
+
def validate
|
2334
|
+
end
|
2335
|
+
|
2336
|
+
::Thrift::Struct.generate_accessors self
|
2337
|
+
end
|
2338
|
+
|
2339
|
+
class Add_partition_args
|
2340
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2341
|
+
NEW_PART = 1
|
2342
|
+
|
2343
|
+
FIELDS = {
|
2344
|
+
NEW_PART => {:type => ::Thrift::Types::STRUCT, :name => 'new_part', :class => ::Partition}
|
2345
|
+
}
|
2346
|
+
|
2347
|
+
def struct_fields; FIELDS; end
|
2348
|
+
|
2349
|
+
def validate
|
2350
|
+
end
|
2351
|
+
|
2352
|
+
::Thrift::Struct.generate_accessors self
|
2353
|
+
end
|
2354
|
+
|
2355
|
+
class Add_partition_result
|
2356
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2357
|
+
SUCCESS = 0
|
2358
|
+
O1 = 1
|
2359
|
+
O2 = 2
|
2360
|
+
O3 = 3
|
2361
|
+
|
2362
|
+
FIELDS = {
|
2363
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Partition},
|
2364
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::InvalidObjectException},
|
2365
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::AlreadyExistsException},
|
2366
|
+
O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::MetaException}
|
2367
|
+
}
|
2368
|
+
|
2369
|
+
def struct_fields; FIELDS; end
|
2370
|
+
|
2371
|
+
def validate
|
2372
|
+
end
|
2373
|
+
|
2374
|
+
::Thrift::Struct.generate_accessors self
|
2375
|
+
end
|
2376
|
+
|
2377
|
+
class Append_partition_args
|
2378
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2379
|
+
DB_NAME = 1
|
2380
|
+
TBL_NAME = 2
|
2381
|
+
PART_VALS = 3
|
2382
|
+
|
2383
|
+
FIELDS = {
|
2384
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
2385
|
+
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
2386
|
+
PART_VALS => {:type => ::Thrift::Types::LIST, :name => 'part_vals', :element => {:type => ::Thrift::Types::STRING}}
|
2387
|
+
}
|
2388
|
+
|
2389
|
+
def struct_fields; FIELDS; end
|
2390
|
+
|
2391
|
+
def validate
|
2392
|
+
end
|
2393
|
+
|
2394
|
+
::Thrift::Struct.generate_accessors self
|
2395
|
+
end
|
2396
|
+
|
2397
|
+
class Append_partition_result
|
2398
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2399
|
+
SUCCESS = 0
|
2400
|
+
O1 = 1
|
2401
|
+
O2 = 2
|
2402
|
+
O3 = 3
|
2403
|
+
|
2404
|
+
FIELDS = {
|
2405
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Partition},
|
2406
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::InvalidObjectException},
|
2407
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::AlreadyExistsException},
|
2408
|
+
O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::MetaException}
|
2409
|
+
}
|
2410
|
+
|
2411
|
+
def struct_fields; FIELDS; end
|
2412
|
+
|
2413
|
+
def validate
|
2414
|
+
end
|
2415
|
+
|
2416
|
+
::Thrift::Struct.generate_accessors self
|
2417
|
+
end
|
2418
|
+
|
2419
|
+
class Append_partition_by_name_args
|
2420
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2421
|
+
DB_NAME = 1
|
2422
|
+
TBL_NAME = 2
|
2423
|
+
PART_NAME = 3
|
2424
|
+
|
2425
|
+
FIELDS = {
|
2426
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
2427
|
+
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
2428
|
+
PART_NAME => {:type => ::Thrift::Types::STRING, :name => 'part_name'}
|
2429
|
+
}
|
2430
|
+
|
2431
|
+
def struct_fields; FIELDS; end
|
2432
|
+
|
2433
|
+
def validate
|
2434
|
+
end
|
2435
|
+
|
2436
|
+
::Thrift::Struct.generate_accessors self
|
2437
|
+
end
|
2438
|
+
|
2439
|
+
class Append_partition_by_name_result
|
2440
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2441
|
+
SUCCESS = 0
|
2442
|
+
O1 = 1
|
2443
|
+
O2 = 2
|
2444
|
+
O3 = 3
|
2445
|
+
|
2446
|
+
FIELDS = {
|
2447
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Partition},
|
2448
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::InvalidObjectException},
|
2449
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::AlreadyExistsException},
|
2450
|
+
O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::MetaException}
|
2451
|
+
}
|
2452
|
+
|
2453
|
+
def struct_fields; FIELDS; end
|
2454
|
+
|
2455
|
+
def validate
|
2456
|
+
end
|
2457
|
+
|
2458
|
+
::Thrift::Struct.generate_accessors self
|
2459
|
+
end
|
2460
|
+
|
2461
|
+
class Drop_partition_args
|
2462
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2463
|
+
DB_NAME = 1
|
2464
|
+
TBL_NAME = 2
|
2465
|
+
PART_VALS = 3
|
2466
|
+
DELETEDATA = 4
|
2467
|
+
|
2468
|
+
FIELDS = {
|
2469
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
2470
|
+
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
2471
|
+
PART_VALS => {:type => ::Thrift::Types::LIST, :name => 'part_vals', :element => {:type => ::Thrift::Types::STRING}},
|
2472
|
+
DELETEDATA => {:type => ::Thrift::Types::BOOL, :name => 'deleteData'}
|
2473
|
+
}
|
2474
|
+
|
2475
|
+
def struct_fields; FIELDS; end
|
2476
|
+
|
2477
|
+
def validate
|
2478
|
+
end
|
2479
|
+
|
2480
|
+
::Thrift::Struct.generate_accessors self
|
2481
|
+
end
|
2482
|
+
|
2483
|
+
class Drop_partition_result
|
2484
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2485
|
+
SUCCESS = 0
|
2486
|
+
O1 = 1
|
2487
|
+
O2 = 2
|
2488
|
+
|
2489
|
+
FIELDS = {
|
2490
|
+
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
|
2491
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::NoSuchObjectException},
|
2492
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException}
|
2493
|
+
}
|
2494
|
+
|
2495
|
+
def struct_fields; FIELDS; end
|
2496
|
+
|
2497
|
+
def validate
|
2498
|
+
end
|
2499
|
+
|
2500
|
+
::Thrift::Struct.generate_accessors self
|
2501
|
+
end
|
2502
|
+
|
2503
|
+
class Drop_partition_by_name_args
|
2504
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2505
|
+
DB_NAME = 1
|
2506
|
+
TBL_NAME = 2
|
2507
|
+
PART_NAME = 3
|
2508
|
+
DELETEDATA = 4
|
2509
|
+
|
2510
|
+
FIELDS = {
|
2511
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
2512
|
+
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
2513
|
+
PART_NAME => {:type => ::Thrift::Types::STRING, :name => 'part_name'},
|
2514
|
+
DELETEDATA => {:type => ::Thrift::Types::BOOL, :name => 'deleteData'}
|
2515
|
+
}
|
2516
|
+
|
2517
|
+
def struct_fields; FIELDS; end
|
2518
|
+
|
2519
|
+
def validate
|
2520
|
+
end
|
2521
|
+
|
2522
|
+
::Thrift::Struct.generate_accessors self
|
2523
|
+
end
|
2524
|
+
|
2525
|
+
class Drop_partition_by_name_result
|
2526
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2527
|
+
SUCCESS = 0
|
2528
|
+
O1 = 1
|
2529
|
+
O2 = 2
|
2530
|
+
|
2531
|
+
FIELDS = {
|
2532
|
+
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
|
2533
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::NoSuchObjectException},
|
2534
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException}
|
2535
|
+
}
|
2536
|
+
|
2537
|
+
def struct_fields; FIELDS; end
|
2538
|
+
|
2539
|
+
def validate
|
2540
|
+
end
|
2541
|
+
|
2542
|
+
::Thrift::Struct.generate_accessors self
|
2543
|
+
end
|
2544
|
+
|
2545
|
+
class Get_partition_args
|
2546
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2547
|
+
DB_NAME = 1
|
2548
|
+
TBL_NAME = 2
|
2549
|
+
PART_VALS = 3
|
2550
|
+
|
2551
|
+
FIELDS = {
|
2552
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
2553
|
+
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
2554
|
+
PART_VALS => {:type => ::Thrift::Types::LIST, :name => 'part_vals', :element => {:type => ::Thrift::Types::STRING}}
|
2555
|
+
}
|
2556
|
+
|
2557
|
+
def struct_fields; FIELDS; end
|
2558
|
+
|
2559
|
+
def validate
|
2560
|
+
end
|
2561
|
+
|
2562
|
+
::Thrift::Struct.generate_accessors self
|
2563
|
+
end
|
2564
|
+
|
2565
|
+
class Get_partition_result
|
2566
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2567
|
+
SUCCESS = 0
|
2568
|
+
O1 = 1
|
2569
|
+
O2 = 2
|
2570
|
+
|
2571
|
+
FIELDS = {
|
2572
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Partition},
|
2573
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException},
|
2574
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::NoSuchObjectException}
|
2575
|
+
}
|
2576
|
+
|
2577
|
+
def struct_fields; FIELDS; end
|
2578
|
+
|
2579
|
+
def validate
|
2580
|
+
end
|
2581
|
+
|
2582
|
+
::Thrift::Struct.generate_accessors self
|
2583
|
+
end
|
2584
|
+
|
2585
|
+
class Get_partition_with_auth_args
|
2586
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2587
|
+
DB_NAME = 1
|
2588
|
+
TBL_NAME = 2
|
2589
|
+
PART_VALS = 3
|
2590
|
+
USER_NAME = 4
|
2591
|
+
GROUP_NAMES = 5
|
2592
|
+
|
2593
|
+
FIELDS = {
|
2594
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
2595
|
+
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
2596
|
+
PART_VALS => {:type => ::Thrift::Types::LIST, :name => 'part_vals', :element => {:type => ::Thrift::Types::STRING}},
|
2597
|
+
USER_NAME => {:type => ::Thrift::Types::STRING, :name => 'user_name'},
|
2598
|
+
GROUP_NAMES => {:type => ::Thrift::Types::LIST, :name => 'group_names', :element => {:type => ::Thrift::Types::STRING}}
|
2599
|
+
}
|
2600
|
+
|
2601
|
+
def struct_fields; FIELDS; end
|
2602
|
+
|
2603
|
+
def validate
|
2604
|
+
end
|
2605
|
+
|
2606
|
+
::Thrift::Struct.generate_accessors self
|
2607
|
+
end
|
2608
|
+
|
2609
|
+
class Get_partition_with_auth_result
|
2610
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2611
|
+
SUCCESS = 0
|
2612
|
+
O1 = 1
|
2613
|
+
O2 = 2
|
2614
|
+
|
2615
|
+
FIELDS = {
|
2616
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Partition},
|
2617
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException},
|
2618
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::NoSuchObjectException}
|
2619
|
+
}
|
2620
|
+
|
2621
|
+
def struct_fields; FIELDS; end
|
2622
|
+
|
2623
|
+
def validate
|
2624
|
+
end
|
2625
|
+
|
2626
|
+
::Thrift::Struct.generate_accessors self
|
2627
|
+
end
|
2628
|
+
|
2629
|
+
class Get_partition_by_name_args
|
2630
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2631
|
+
DB_NAME = 1
|
2632
|
+
TBL_NAME = 2
|
2633
|
+
PART_NAME = 3
|
2634
|
+
|
2635
|
+
FIELDS = {
|
2636
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
2637
|
+
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
2638
|
+
PART_NAME => {:type => ::Thrift::Types::STRING, :name => 'part_name'}
|
2639
|
+
}
|
2640
|
+
|
2641
|
+
def struct_fields; FIELDS; end
|
2642
|
+
|
2643
|
+
def validate
|
2644
|
+
end
|
2645
|
+
|
2646
|
+
::Thrift::Struct.generate_accessors self
|
2647
|
+
end
|
2648
|
+
|
2649
|
+
class Get_partition_by_name_result
|
2650
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2651
|
+
SUCCESS = 0
|
2652
|
+
O1 = 1
|
2653
|
+
O2 = 2
|
2654
|
+
|
2655
|
+
FIELDS = {
|
2656
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Partition},
|
2657
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException},
|
2658
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::NoSuchObjectException}
|
2659
|
+
}
|
2660
|
+
|
2661
|
+
def struct_fields; FIELDS; end
|
2662
|
+
|
2663
|
+
def validate
|
2664
|
+
end
|
2665
|
+
|
2666
|
+
::Thrift::Struct.generate_accessors self
|
2667
|
+
end
|
2668
|
+
|
2669
|
+
class Get_partitions_args
|
2670
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2671
|
+
DB_NAME = 1
|
2672
|
+
TBL_NAME = 2
|
2673
|
+
MAX_PARTS = 3
|
2674
|
+
|
2675
|
+
FIELDS = {
|
2676
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
2677
|
+
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
2678
|
+
MAX_PARTS => {:type => ::Thrift::Types::I16, :name => 'max_parts', :default => -1}
|
2679
|
+
}
|
2680
|
+
|
2681
|
+
def struct_fields; FIELDS; end
|
2682
|
+
|
2683
|
+
def validate
|
2684
|
+
end
|
2685
|
+
|
2686
|
+
::Thrift::Struct.generate_accessors self
|
2687
|
+
end
|
2688
|
+
|
2689
|
+
class Get_partitions_result
|
2690
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2691
|
+
SUCCESS = 0
|
2692
|
+
O1 = 1
|
2693
|
+
O2 = 2
|
2694
|
+
|
2695
|
+
FIELDS = {
|
2696
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Partition}},
|
2697
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::NoSuchObjectException},
|
2698
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException}
|
2699
|
+
}
|
2700
|
+
|
2701
|
+
def struct_fields; FIELDS; end
|
2702
|
+
|
2703
|
+
def validate
|
2704
|
+
end
|
2705
|
+
|
2706
|
+
::Thrift::Struct.generate_accessors self
|
2707
|
+
end
|
2708
|
+
|
2709
|
+
class Get_partitions_with_auth_args
|
2710
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2711
|
+
DB_NAME = 1
|
2712
|
+
TBL_NAME = 2
|
2713
|
+
MAX_PARTS = 3
|
2714
|
+
USER_NAME = 4
|
2715
|
+
GROUP_NAMES = 5
|
2716
|
+
|
2717
|
+
FIELDS = {
|
2718
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
2719
|
+
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
2720
|
+
MAX_PARTS => {:type => ::Thrift::Types::I16, :name => 'max_parts', :default => -1},
|
2721
|
+
USER_NAME => {:type => ::Thrift::Types::STRING, :name => 'user_name'},
|
2722
|
+
GROUP_NAMES => {:type => ::Thrift::Types::LIST, :name => 'group_names', :element => {:type => ::Thrift::Types::STRING}}
|
2723
|
+
}
|
2724
|
+
|
2725
|
+
def struct_fields; FIELDS; end
|
2726
|
+
|
2727
|
+
def validate
|
2728
|
+
end
|
2729
|
+
|
2730
|
+
::Thrift::Struct.generate_accessors self
|
2731
|
+
end
|
2732
|
+
|
2733
|
+
class Get_partitions_with_auth_result
|
2734
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2735
|
+
SUCCESS = 0
|
2736
|
+
O1 = 1
|
2737
|
+
O2 = 2
|
2738
|
+
|
2739
|
+
FIELDS = {
|
2740
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Partition}},
|
2741
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::NoSuchObjectException},
|
2742
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException}
|
2743
|
+
}
|
2744
|
+
|
2745
|
+
def struct_fields; FIELDS; end
|
2746
|
+
|
2747
|
+
def validate
|
2748
|
+
end
|
2749
|
+
|
2750
|
+
::Thrift::Struct.generate_accessors self
|
2751
|
+
end
|
2752
|
+
|
2753
|
+
class Get_partition_names_args
|
2754
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2755
|
+
DB_NAME = 1
|
2756
|
+
TBL_NAME = 2
|
2757
|
+
MAX_PARTS = 3
|
2758
|
+
|
2759
|
+
FIELDS = {
|
2760
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
2761
|
+
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
2762
|
+
MAX_PARTS => {:type => ::Thrift::Types::I16, :name => 'max_parts', :default => -1}
|
2763
|
+
}
|
2764
|
+
|
2765
|
+
def struct_fields; FIELDS; end
|
2766
|
+
|
2767
|
+
def validate
|
2768
|
+
end
|
2769
|
+
|
2770
|
+
::Thrift::Struct.generate_accessors self
|
2771
|
+
end
|
2772
|
+
|
2773
|
+
class Get_partition_names_result
|
2774
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2775
|
+
SUCCESS = 0
|
2776
|
+
O2 = 1
|
2777
|
+
|
2778
|
+
FIELDS = {
|
2779
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
|
2780
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException}
|
2781
|
+
}
|
2782
|
+
|
2783
|
+
def struct_fields; FIELDS; end
|
2784
|
+
|
2785
|
+
def validate
|
2786
|
+
end
|
2787
|
+
|
2788
|
+
::Thrift::Struct.generate_accessors self
|
2789
|
+
end
|
2790
|
+
|
2791
|
+
class Get_partitions_ps_args
|
2792
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2793
|
+
DB_NAME = 1
|
2794
|
+
TBL_NAME = 2
|
2795
|
+
PART_VALS = 3
|
2796
|
+
MAX_PARTS = 4
|
2797
|
+
|
2798
|
+
FIELDS = {
|
2799
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
2800
|
+
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
2801
|
+
PART_VALS => {:type => ::Thrift::Types::LIST, :name => 'part_vals', :element => {:type => ::Thrift::Types::STRING}},
|
2802
|
+
MAX_PARTS => {:type => ::Thrift::Types::I16, :name => 'max_parts', :default => -1}
|
2803
|
+
}
|
2804
|
+
|
2805
|
+
def struct_fields; FIELDS; end
|
2806
|
+
|
2807
|
+
def validate
|
2808
|
+
end
|
2809
|
+
|
2810
|
+
::Thrift::Struct.generate_accessors self
|
2811
|
+
end
|
2812
|
+
|
2813
|
+
class Get_partitions_ps_result
|
2814
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2815
|
+
SUCCESS = 0
|
2816
|
+
O1 = 1
|
2817
|
+
|
2818
|
+
FIELDS = {
|
2819
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Partition}},
|
2820
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
|
2821
|
+
}
|
2822
|
+
|
2823
|
+
def struct_fields; FIELDS; end
|
2824
|
+
|
2825
|
+
def validate
|
2826
|
+
end
|
2827
|
+
|
2828
|
+
::Thrift::Struct.generate_accessors self
|
2829
|
+
end
|
2830
|
+
|
2831
|
+
class Get_partitions_ps_with_auth_args
|
2832
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2833
|
+
DB_NAME = 1
|
2834
|
+
TBL_NAME = 2
|
2835
|
+
PART_VALS = 3
|
2836
|
+
MAX_PARTS = 4
|
2837
|
+
USER_NAME = 5
|
2838
|
+
GROUP_NAMES = 6
|
2839
|
+
|
2840
|
+
FIELDS = {
|
2841
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
2842
|
+
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
2843
|
+
PART_VALS => {:type => ::Thrift::Types::LIST, :name => 'part_vals', :element => {:type => ::Thrift::Types::STRING}},
|
2844
|
+
MAX_PARTS => {:type => ::Thrift::Types::I16, :name => 'max_parts', :default => -1},
|
2845
|
+
USER_NAME => {:type => ::Thrift::Types::STRING, :name => 'user_name'},
|
2846
|
+
GROUP_NAMES => {:type => ::Thrift::Types::LIST, :name => 'group_names', :element => {:type => ::Thrift::Types::STRING}}
|
2847
|
+
}
|
2848
|
+
|
2849
|
+
def struct_fields; FIELDS; end
|
2850
|
+
|
2851
|
+
def validate
|
2852
|
+
end
|
2853
|
+
|
2854
|
+
::Thrift::Struct.generate_accessors self
|
2855
|
+
end
|
2856
|
+
|
2857
|
+
class Get_partitions_ps_with_auth_result
|
2858
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2859
|
+
SUCCESS = 0
|
2860
|
+
O1 = 1
|
2861
|
+
O2 = 2
|
2862
|
+
|
2863
|
+
FIELDS = {
|
2864
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Partition}},
|
2865
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::NoSuchObjectException},
|
2866
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException}
|
2867
|
+
}
|
2868
|
+
|
2869
|
+
def struct_fields; FIELDS; end
|
2870
|
+
|
2871
|
+
def validate
|
2872
|
+
end
|
2873
|
+
|
2874
|
+
::Thrift::Struct.generate_accessors self
|
2875
|
+
end
|
2876
|
+
|
2877
|
+
class Get_partition_names_ps_args
|
2878
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2879
|
+
DB_NAME = 1
|
2880
|
+
TBL_NAME = 2
|
2881
|
+
PART_VALS = 3
|
2882
|
+
MAX_PARTS = 4
|
2883
|
+
|
2884
|
+
FIELDS = {
|
2885
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
2886
|
+
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
2887
|
+
PART_VALS => {:type => ::Thrift::Types::LIST, :name => 'part_vals', :element => {:type => ::Thrift::Types::STRING}},
|
2888
|
+
MAX_PARTS => {:type => ::Thrift::Types::I16, :name => 'max_parts', :default => -1}
|
2889
|
+
}
|
2890
|
+
|
2891
|
+
def struct_fields; FIELDS; end
|
2892
|
+
|
2893
|
+
def validate
|
2894
|
+
end
|
2895
|
+
|
2896
|
+
::Thrift::Struct.generate_accessors self
|
2897
|
+
end
|
2898
|
+
|
2899
|
+
class Get_partition_names_ps_result
|
2900
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2901
|
+
SUCCESS = 0
|
2902
|
+
O1 = 1
|
2903
|
+
|
2904
|
+
FIELDS = {
|
2905
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
|
2906
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
|
2907
|
+
}
|
2908
|
+
|
2909
|
+
def struct_fields; FIELDS; end
|
2910
|
+
|
2911
|
+
def validate
|
2912
|
+
end
|
2913
|
+
|
2914
|
+
::Thrift::Struct.generate_accessors self
|
2915
|
+
end
|
2916
|
+
|
2917
|
+
class Get_partitions_by_filter_args
|
2918
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2919
|
+
DB_NAME = 1
|
2920
|
+
TBL_NAME = 2
|
2921
|
+
FILTER = 3
|
2922
|
+
MAX_PARTS = 4
|
2923
|
+
|
2924
|
+
FIELDS = {
|
2925
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
2926
|
+
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
2927
|
+
FILTER => {:type => ::Thrift::Types::STRING, :name => 'filter'},
|
2928
|
+
MAX_PARTS => {:type => ::Thrift::Types::I16, :name => 'max_parts', :default => -1}
|
2929
|
+
}
|
2930
|
+
|
2931
|
+
def struct_fields; FIELDS; end
|
2932
|
+
|
2933
|
+
def validate
|
2934
|
+
end
|
2935
|
+
|
2936
|
+
::Thrift::Struct.generate_accessors self
|
2937
|
+
end
|
2938
|
+
|
2939
|
+
class Get_partitions_by_filter_result
|
2940
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2941
|
+
SUCCESS = 0
|
2942
|
+
O1 = 1
|
2943
|
+
O2 = 2
|
2944
|
+
|
2945
|
+
FIELDS = {
|
2946
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Partition}},
|
2947
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException},
|
2948
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::NoSuchObjectException}
|
2949
|
+
}
|
2950
|
+
|
2951
|
+
def struct_fields; FIELDS; end
|
2952
|
+
|
2953
|
+
def validate
|
2954
|
+
end
|
2955
|
+
|
2956
|
+
::Thrift::Struct.generate_accessors self
|
2957
|
+
end
|
2958
|
+
|
2959
|
+
class Alter_partition_args
|
2960
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2961
|
+
DB_NAME = 1
|
2962
|
+
TBL_NAME = 2
|
2963
|
+
NEW_PART = 3
|
2964
|
+
|
2965
|
+
FIELDS = {
|
2966
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
2967
|
+
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
2968
|
+
NEW_PART => {:type => ::Thrift::Types::STRUCT, :name => 'new_part', :class => ::Partition}
|
2969
|
+
}
|
2970
|
+
|
2971
|
+
def struct_fields; FIELDS; end
|
2972
|
+
|
2973
|
+
def validate
|
2974
|
+
end
|
2975
|
+
|
2976
|
+
::Thrift::Struct.generate_accessors self
|
2977
|
+
end
|
2978
|
+
|
2979
|
+
class Alter_partition_result
|
2980
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2981
|
+
O1 = 1
|
2982
|
+
O2 = 2
|
2983
|
+
|
2984
|
+
FIELDS = {
|
2985
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::InvalidOperationException},
|
2986
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException}
|
2987
|
+
}
|
2988
|
+
|
2989
|
+
def struct_fields; FIELDS; end
|
2990
|
+
|
2991
|
+
def validate
|
2992
|
+
end
|
2993
|
+
|
2994
|
+
::Thrift::Struct.generate_accessors self
|
2995
|
+
end
|
2996
|
+
|
2997
|
+
class Get_config_value_args
|
2998
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2999
|
+
NAME = 1
|
3000
|
+
DEFAULTVALUE = 2
|
3001
|
+
|
3002
|
+
FIELDS = {
|
3003
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
3004
|
+
DEFAULTVALUE => {:type => ::Thrift::Types::STRING, :name => 'defaultValue'}
|
3005
|
+
}
|
3006
|
+
|
3007
|
+
def struct_fields; FIELDS; end
|
3008
|
+
|
3009
|
+
def validate
|
3010
|
+
end
|
3011
|
+
|
3012
|
+
::Thrift::Struct.generate_accessors self
|
3013
|
+
end
|
3014
|
+
|
3015
|
+
class Get_config_value_result
|
3016
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3017
|
+
SUCCESS = 0
|
3018
|
+
O1 = 1
|
3019
|
+
|
3020
|
+
FIELDS = {
|
3021
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
|
3022
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::ConfigValSecurityException}
|
3023
|
+
}
|
3024
|
+
|
3025
|
+
def struct_fields; FIELDS; end
|
3026
|
+
|
3027
|
+
def validate
|
3028
|
+
end
|
3029
|
+
|
3030
|
+
::Thrift::Struct.generate_accessors self
|
3031
|
+
end
|
3032
|
+
|
3033
|
+
class Partition_name_to_vals_args
|
3034
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3035
|
+
PART_NAME = 1
|
3036
|
+
|
3037
|
+
FIELDS = {
|
3038
|
+
PART_NAME => {:type => ::Thrift::Types::STRING, :name => 'part_name'}
|
3039
|
+
}
|
3040
|
+
|
3041
|
+
def struct_fields; FIELDS; end
|
3042
|
+
|
3043
|
+
def validate
|
3044
|
+
end
|
3045
|
+
|
3046
|
+
::Thrift::Struct.generate_accessors self
|
3047
|
+
end
|
3048
|
+
|
3049
|
+
class Partition_name_to_vals_result
|
3050
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3051
|
+
SUCCESS = 0
|
3052
|
+
O1 = 1
|
3053
|
+
|
3054
|
+
FIELDS = {
|
3055
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
|
3056
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
|
3057
|
+
}
|
3058
|
+
|
3059
|
+
def struct_fields; FIELDS; end
|
3060
|
+
|
3061
|
+
def validate
|
3062
|
+
end
|
3063
|
+
|
3064
|
+
::Thrift::Struct.generate_accessors self
|
3065
|
+
end
|
3066
|
+
|
3067
|
+
class Partition_name_to_spec_args
|
3068
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3069
|
+
PART_NAME = 1
|
3070
|
+
|
3071
|
+
FIELDS = {
|
3072
|
+
PART_NAME => {:type => ::Thrift::Types::STRING, :name => 'part_name'}
|
3073
|
+
}
|
3074
|
+
|
3075
|
+
def struct_fields; FIELDS; end
|
3076
|
+
|
3077
|
+
def validate
|
3078
|
+
end
|
3079
|
+
|
3080
|
+
::Thrift::Struct.generate_accessors self
|
3081
|
+
end
|
3082
|
+
|
3083
|
+
class Partition_name_to_spec_result
|
3084
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3085
|
+
SUCCESS = 0
|
3086
|
+
O1 = 1
|
3087
|
+
|
3088
|
+
FIELDS = {
|
3089
|
+
SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
|
3090
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
|
3091
|
+
}
|
3092
|
+
|
3093
|
+
def struct_fields; FIELDS; end
|
3094
|
+
|
3095
|
+
def validate
|
3096
|
+
end
|
3097
|
+
|
3098
|
+
::Thrift::Struct.generate_accessors self
|
3099
|
+
end
|
3100
|
+
|
3101
|
+
class Add_index_args
|
3102
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3103
|
+
NEW_INDEX = 1
|
3104
|
+
INDEX_TABLE = 2
|
3105
|
+
|
3106
|
+
FIELDS = {
|
3107
|
+
NEW_INDEX => {:type => ::Thrift::Types::STRUCT, :name => 'new_index', :class => ::Index},
|
3108
|
+
INDEX_TABLE => {:type => ::Thrift::Types::STRUCT, :name => 'index_table', :class => ::Table}
|
3109
|
+
}
|
3110
|
+
|
3111
|
+
def struct_fields; FIELDS; end
|
3112
|
+
|
3113
|
+
def validate
|
3114
|
+
end
|
3115
|
+
|
3116
|
+
::Thrift::Struct.generate_accessors self
|
3117
|
+
end
|
3118
|
+
|
3119
|
+
class Add_index_result
|
3120
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3121
|
+
SUCCESS = 0
|
3122
|
+
O1 = 1
|
3123
|
+
O2 = 2
|
3124
|
+
O3 = 3
|
3125
|
+
|
3126
|
+
FIELDS = {
|
3127
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Index},
|
3128
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::InvalidObjectException},
|
3129
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::AlreadyExistsException},
|
3130
|
+
O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::MetaException}
|
3131
|
+
}
|
3132
|
+
|
3133
|
+
def struct_fields; FIELDS; end
|
3134
|
+
|
3135
|
+
def validate
|
3136
|
+
end
|
3137
|
+
|
3138
|
+
::Thrift::Struct.generate_accessors self
|
3139
|
+
end
|
3140
|
+
|
3141
|
+
class Alter_index_args
|
3142
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3143
|
+
DBNAME = 1
|
3144
|
+
BASE_TBL_NAME = 2
|
3145
|
+
IDX_NAME = 3
|
3146
|
+
NEW_IDX = 4
|
3147
|
+
|
3148
|
+
FIELDS = {
|
3149
|
+
DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbname'},
|
3150
|
+
BASE_TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'base_tbl_name'},
|
3151
|
+
IDX_NAME => {:type => ::Thrift::Types::STRING, :name => 'idx_name'},
|
3152
|
+
NEW_IDX => {:type => ::Thrift::Types::STRUCT, :name => 'new_idx', :class => ::Index}
|
3153
|
+
}
|
3154
|
+
|
3155
|
+
def struct_fields; FIELDS; end
|
3156
|
+
|
3157
|
+
def validate
|
3158
|
+
end
|
3159
|
+
|
3160
|
+
::Thrift::Struct.generate_accessors self
|
3161
|
+
end
|
3162
|
+
|
3163
|
+
class Alter_index_result
|
3164
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3165
|
+
O1 = 1
|
3166
|
+
O2 = 2
|
3167
|
+
|
3168
|
+
FIELDS = {
|
3169
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::InvalidOperationException},
|
3170
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException}
|
3171
|
+
}
|
3172
|
+
|
3173
|
+
def struct_fields; FIELDS; end
|
3174
|
+
|
3175
|
+
def validate
|
3176
|
+
end
|
3177
|
+
|
3178
|
+
::Thrift::Struct.generate_accessors self
|
3179
|
+
end
|
3180
|
+
|
3181
|
+
class Drop_index_by_name_args
|
3182
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3183
|
+
DB_NAME = 1
|
3184
|
+
TBL_NAME = 2
|
3185
|
+
INDEX_NAME = 3
|
3186
|
+
DELETEDATA = 4
|
3187
|
+
|
3188
|
+
FIELDS = {
|
3189
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
3190
|
+
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
3191
|
+
INDEX_NAME => {:type => ::Thrift::Types::STRING, :name => 'index_name'},
|
3192
|
+
DELETEDATA => {:type => ::Thrift::Types::BOOL, :name => 'deleteData'}
|
3193
|
+
}
|
3194
|
+
|
3195
|
+
def struct_fields; FIELDS; end
|
3196
|
+
|
3197
|
+
def validate
|
3198
|
+
end
|
3199
|
+
|
3200
|
+
::Thrift::Struct.generate_accessors self
|
3201
|
+
end
|
3202
|
+
|
3203
|
+
class Drop_index_by_name_result
|
3204
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3205
|
+
SUCCESS = 0
|
3206
|
+
O1 = 1
|
3207
|
+
O2 = 2
|
3208
|
+
|
3209
|
+
FIELDS = {
|
3210
|
+
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
|
3211
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::NoSuchObjectException},
|
3212
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException}
|
3213
|
+
}
|
3214
|
+
|
3215
|
+
def struct_fields; FIELDS; end
|
3216
|
+
|
3217
|
+
def validate
|
3218
|
+
end
|
3219
|
+
|
3220
|
+
::Thrift::Struct.generate_accessors self
|
3221
|
+
end
|
3222
|
+
|
3223
|
+
class Get_index_by_name_args
|
3224
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3225
|
+
DB_NAME = 1
|
3226
|
+
TBL_NAME = 2
|
3227
|
+
INDEX_NAME = 3
|
3228
|
+
|
3229
|
+
FIELDS = {
|
3230
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
3231
|
+
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
3232
|
+
INDEX_NAME => {:type => ::Thrift::Types::STRING, :name => 'index_name'}
|
3233
|
+
}
|
3234
|
+
|
3235
|
+
def struct_fields; FIELDS; end
|
3236
|
+
|
3237
|
+
def validate
|
3238
|
+
end
|
3239
|
+
|
3240
|
+
::Thrift::Struct.generate_accessors self
|
3241
|
+
end
|
3242
|
+
|
3243
|
+
class Get_index_by_name_result
|
3244
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3245
|
+
SUCCESS = 0
|
3246
|
+
O1 = 1
|
3247
|
+
O2 = 2
|
3248
|
+
|
3249
|
+
FIELDS = {
|
3250
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Index},
|
3251
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException},
|
3252
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::NoSuchObjectException}
|
3253
|
+
}
|
3254
|
+
|
3255
|
+
def struct_fields; FIELDS; end
|
3256
|
+
|
3257
|
+
def validate
|
3258
|
+
end
|
3259
|
+
|
3260
|
+
::Thrift::Struct.generate_accessors self
|
3261
|
+
end
|
3262
|
+
|
3263
|
+
class Get_indexes_args
|
3264
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3265
|
+
DB_NAME = 1
|
3266
|
+
TBL_NAME = 2
|
3267
|
+
MAX_INDEXES = 3
|
3268
|
+
|
3269
|
+
FIELDS = {
|
3270
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
3271
|
+
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
3272
|
+
MAX_INDEXES => {:type => ::Thrift::Types::I16, :name => 'max_indexes', :default => -1}
|
3273
|
+
}
|
3274
|
+
|
3275
|
+
def struct_fields; FIELDS; end
|
3276
|
+
|
3277
|
+
def validate
|
3278
|
+
end
|
3279
|
+
|
3280
|
+
::Thrift::Struct.generate_accessors self
|
3281
|
+
end
|
3282
|
+
|
3283
|
+
class Get_indexes_result
|
3284
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3285
|
+
SUCCESS = 0
|
3286
|
+
O1 = 1
|
3287
|
+
O2 = 2
|
3288
|
+
|
3289
|
+
FIELDS = {
|
3290
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Index}},
|
3291
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::NoSuchObjectException},
|
3292
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException}
|
3293
|
+
}
|
3294
|
+
|
3295
|
+
def struct_fields; FIELDS; end
|
3296
|
+
|
3297
|
+
def validate
|
3298
|
+
end
|
3299
|
+
|
3300
|
+
::Thrift::Struct.generate_accessors self
|
3301
|
+
end
|
3302
|
+
|
3303
|
+
class Get_index_names_args
|
3304
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3305
|
+
DB_NAME = 1
|
3306
|
+
TBL_NAME = 2
|
3307
|
+
MAX_INDEXES = 3
|
3308
|
+
|
3309
|
+
FIELDS = {
|
3310
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
3311
|
+
TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
|
3312
|
+
MAX_INDEXES => {:type => ::Thrift::Types::I16, :name => 'max_indexes', :default => -1}
|
3313
|
+
}
|
3314
|
+
|
3315
|
+
def struct_fields; FIELDS; end
|
3316
|
+
|
3317
|
+
def validate
|
3318
|
+
end
|
3319
|
+
|
3320
|
+
::Thrift::Struct.generate_accessors self
|
3321
|
+
end
|
3322
|
+
|
3323
|
+
class Get_index_names_result
|
3324
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3325
|
+
SUCCESS = 0
|
3326
|
+
O2 = 1
|
3327
|
+
|
3328
|
+
FIELDS = {
|
3329
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
|
3330
|
+
O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException}
|
3331
|
+
}
|
3332
|
+
|
3333
|
+
def struct_fields; FIELDS; end
|
3334
|
+
|
3335
|
+
def validate
|
3336
|
+
end
|
3337
|
+
|
3338
|
+
::Thrift::Struct.generate_accessors self
|
3339
|
+
end
|
3340
|
+
|
3341
|
+
class Create_role_args
|
3342
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3343
|
+
ROLE = 1
|
3344
|
+
|
3345
|
+
FIELDS = {
|
3346
|
+
ROLE => {:type => ::Thrift::Types::STRUCT, :name => 'role', :class => ::Role}
|
3347
|
+
}
|
3348
|
+
|
3349
|
+
def struct_fields; FIELDS; end
|
3350
|
+
|
3351
|
+
def validate
|
3352
|
+
end
|
3353
|
+
|
3354
|
+
::Thrift::Struct.generate_accessors self
|
3355
|
+
end
|
3356
|
+
|
3357
|
+
class Create_role_result
|
3358
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3359
|
+
SUCCESS = 0
|
3360
|
+
O1 = 1
|
3361
|
+
|
3362
|
+
FIELDS = {
|
3363
|
+
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
|
3364
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
|
3365
|
+
}
|
3366
|
+
|
3367
|
+
def struct_fields; FIELDS; end
|
3368
|
+
|
3369
|
+
def validate
|
3370
|
+
end
|
3371
|
+
|
3372
|
+
::Thrift::Struct.generate_accessors self
|
3373
|
+
end
|
3374
|
+
|
3375
|
+
class Drop_role_args
|
3376
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3377
|
+
ROLE_NAME = 1
|
3378
|
+
|
3379
|
+
FIELDS = {
|
3380
|
+
ROLE_NAME => {:type => ::Thrift::Types::STRING, :name => 'role_name'}
|
3381
|
+
}
|
3382
|
+
|
3383
|
+
def struct_fields; FIELDS; end
|
3384
|
+
|
3385
|
+
def validate
|
3386
|
+
end
|
3387
|
+
|
3388
|
+
::Thrift::Struct.generate_accessors self
|
3389
|
+
end
|
3390
|
+
|
3391
|
+
class Drop_role_result
|
3392
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3393
|
+
SUCCESS = 0
|
3394
|
+
O1 = 1
|
3395
|
+
|
3396
|
+
FIELDS = {
|
3397
|
+
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
|
3398
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
|
3399
|
+
}
|
3400
|
+
|
3401
|
+
def struct_fields; FIELDS; end
|
3402
|
+
|
3403
|
+
def validate
|
3404
|
+
end
|
3405
|
+
|
3406
|
+
::Thrift::Struct.generate_accessors self
|
3407
|
+
end
|
3408
|
+
|
3409
|
+
class Get_role_names_args
|
3410
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3411
|
+
|
3412
|
+
FIELDS = {
|
3413
|
+
|
3414
|
+
}
|
3415
|
+
|
3416
|
+
def struct_fields; FIELDS; end
|
3417
|
+
|
3418
|
+
def validate
|
3419
|
+
end
|
3420
|
+
|
3421
|
+
::Thrift::Struct.generate_accessors self
|
3422
|
+
end
|
3423
|
+
|
3424
|
+
class Get_role_names_result
|
3425
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3426
|
+
SUCCESS = 0
|
3427
|
+
O1 = 1
|
3428
|
+
|
3429
|
+
FIELDS = {
|
3430
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
|
3431
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
|
3432
|
+
}
|
3433
|
+
|
3434
|
+
def struct_fields; FIELDS; end
|
3435
|
+
|
3436
|
+
def validate
|
3437
|
+
end
|
3438
|
+
|
3439
|
+
::Thrift::Struct.generate_accessors self
|
3440
|
+
end
|
3441
|
+
|
3442
|
+
class Grant_role_args
|
3443
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3444
|
+
ROLE_NAME = 1
|
3445
|
+
PRINCIPAL_NAME = 2
|
3446
|
+
PRINCIPAL_TYPE = 3
|
3447
|
+
GRANTOR = 4
|
3448
|
+
GRANTORTYPE = 5
|
3449
|
+
GRANT_OPTION = 6
|
3450
|
+
|
3451
|
+
FIELDS = {
|
3452
|
+
ROLE_NAME => {:type => ::Thrift::Types::STRING, :name => 'role_name'},
|
3453
|
+
PRINCIPAL_NAME => {:type => ::Thrift::Types::STRING, :name => 'principal_name'},
|
3454
|
+
PRINCIPAL_TYPE => {:type => ::Thrift::Types::I32, :name => 'principal_type', :enum_class => ::PrincipalType},
|
3455
|
+
GRANTOR => {:type => ::Thrift::Types::STRING, :name => 'grantor'},
|
3456
|
+
GRANTORTYPE => {:type => ::Thrift::Types::I32, :name => 'grantorType', :enum_class => ::PrincipalType},
|
3457
|
+
GRANT_OPTION => {:type => ::Thrift::Types::BOOL, :name => 'grant_option'}
|
3458
|
+
}
|
3459
|
+
|
3460
|
+
def struct_fields; FIELDS; end
|
3461
|
+
|
3462
|
+
def validate
|
3463
|
+
unless @principal_type.nil? || ::PrincipalType::VALID_VALUES.include?(@principal_type)
|
3464
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field principal_type!')
|
3465
|
+
end
|
3466
|
+
unless @grantorType.nil? || ::PrincipalType::VALID_VALUES.include?(@grantorType)
|
3467
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field grantorType!')
|
3468
|
+
end
|
3469
|
+
end
|
3470
|
+
|
3471
|
+
::Thrift::Struct.generate_accessors self
|
3472
|
+
end
|
3473
|
+
|
3474
|
+
class Grant_role_result
|
3475
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3476
|
+
SUCCESS = 0
|
3477
|
+
O1 = 1
|
3478
|
+
|
3479
|
+
FIELDS = {
|
3480
|
+
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
|
3481
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
|
3482
|
+
}
|
3483
|
+
|
3484
|
+
def struct_fields; FIELDS; end
|
3485
|
+
|
3486
|
+
def validate
|
3487
|
+
end
|
3488
|
+
|
3489
|
+
::Thrift::Struct.generate_accessors self
|
3490
|
+
end
|
3491
|
+
|
3492
|
+
class Revoke_role_args
|
3493
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3494
|
+
ROLE_NAME = 1
|
3495
|
+
PRINCIPAL_NAME = 2
|
3496
|
+
PRINCIPAL_TYPE = 3
|
3497
|
+
|
3498
|
+
FIELDS = {
|
3499
|
+
ROLE_NAME => {:type => ::Thrift::Types::STRING, :name => 'role_name'},
|
3500
|
+
PRINCIPAL_NAME => {:type => ::Thrift::Types::STRING, :name => 'principal_name'},
|
3501
|
+
PRINCIPAL_TYPE => {:type => ::Thrift::Types::I32, :name => 'principal_type', :enum_class => ::PrincipalType}
|
3502
|
+
}
|
3503
|
+
|
3504
|
+
def struct_fields; FIELDS; end
|
3505
|
+
|
3506
|
+
def validate
|
3507
|
+
unless @principal_type.nil? || ::PrincipalType::VALID_VALUES.include?(@principal_type)
|
3508
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field principal_type!')
|
3509
|
+
end
|
3510
|
+
end
|
3511
|
+
|
3512
|
+
::Thrift::Struct.generate_accessors self
|
3513
|
+
end
|
3514
|
+
|
3515
|
+
class Revoke_role_result
|
3516
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3517
|
+
SUCCESS = 0
|
3518
|
+
O1 = 1
|
3519
|
+
|
3520
|
+
FIELDS = {
|
3521
|
+
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
|
3522
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
|
3523
|
+
}
|
3524
|
+
|
3525
|
+
def struct_fields; FIELDS; end
|
3526
|
+
|
3527
|
+
def validate
|
3528
|
+
end
|
3529
|
+
|
3530
|
+
::Thrift::Struct.generate_accessors self
|
3531
|
+
end
|
3532
|
+
|
3533
|
+
class List_roles_args
|
3534
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3535
|
+
PRINCIPAL_NAME = 1
|
3536
|
+
PRINCIPAL_TYPE = 2
|
3537
|
+
|
3538
|
+
FIELDS = {
|
3539
|
+
PRINCIPAL_NAME => {:type => ::Thrift::Types::STRING, :name => 'principal_name'},
|
3540
|
+
PRINCIPAL_TYPE => {:type => ::Thrift::Types::I32, :name => 'principal_type', :enum_class => ::PrincipalType}
|
3541
|
+
}
|
3542
|
+
|
3543
|
+
def struct_fields; FIELDS; end
|
3544
|
+
|
3545
|
+
def validate
|
3546
|
+
unless @principal_type.nil? || ::PrincipalType::VALID_VALUES.include?(@principal_type)
|
3547
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field principal_type!')
|
3548
|
+
end
|
3549
|
+
end
|
3550
|
+
|
3551
|
+
::Thrift::Struct.generate_accessors self
|
3552
|
+
end
|
3553
|
+
|
3554
|
+
class List_roles_result
|
3555
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3556
|
+
SUCCESS = 0
|
3557
|
+
O1 = 1
|
3558
|
+
|
3559
|
+
FIELDS = {
|
3560
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Role}},
|
3561
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
|
3562
|
+
}
|
3563
|
+
|
3564
|
+
def struct_fields; FIELDS; end
|
3565
|
+
|
3566
|
+
def validate
|
3567
|
+
end
|
3568
|
+
|
3569
|
+
::Thrift::Struct.generate_accessors self
|
3570
|
+
end
|
3571
|
+
|
3572
|
+
class Get_privilege_set_args
|
3573
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3574
|
+
HIVEOBJECT = 1
|
3575
|
+
USER_NAME = 2
|
3576
|
+
GROUP_NAMES = 3
|
3577
|
+
|
3578
|
+
FIELDS = {
|
3579
|
+
HIVEOBJECT => {:type => ::Thrift::Types::STRUCT, :name => 'hiveObject', :class => ::HiveObjectRef},
|
3580
|
+
USER_NAME => {:type => ::Thrift::Types::STRING, :name => 'user_name'},
|
3581
|
+
GROUP_NAMES => {:type => ::Thrift::Types::LIST, :name => 'group_names', :element => {:type => ::Thrift::Types::STRING}}
|
3582
|
+
}
|
3583
|
+
|
3584
|
+
def struct_fields; FIELDS; end
|
3585
|
+
|
3586
|
+
def validate
|
3587
|
+
end
|
3588
|
+
|
3589
|
+
::Thrift::Struct.generate_accessors self
|
3590
|
+
end
|
3591
|
+
|
3592
|
+
class Get_privilege_set_result
|
3593
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3594
|
+
SUCCESS = 0
|
3595
|
+
O1 = 1
|
3596
|
+
|
3597
|
+
FIELDS = {
|
3598
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::PrincipalPrivilegeSet},
|
3599
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
|
3600
|
+
}
|
3601
|
+
|
3602
|
+
def struct_fields; FIELDS; end
|
3603
|
+
|
3604
|
+
def validate
|
3605
|
+
end
|
3606
|
+
|
3607
|
+
::Thrift::Struct.generate_accessors self
|
3608
|
+
end
|
3609
|
+
|
3610
|
+
class List_privileges_args
|
3611
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3612
|
+
PRINCIPAL_NAME = 1
|
3613
|
+
PRINCIPAL_TYPE = 2
|
3614
|
+
HIVEOBJECT = 3
|
3615
|
+
|
3616
|
+
FIELDS = {
|
3617
|
+
PRINCIPAL_NAME => {:type => ::Thrift::Types::STRING, :name => 'principal_name'},
|
3618
|
+
PRINCIPAL_TYPE => {:type => ::Thrift::Types::I32, :name => 'principal_type', :enum_class => ::PrincipalType},
|
3619
|
+
HIVEOBJECT => {:type => ::Thrift::Types::STRUCT, :name => 'hiveObject', :class => ::HiveObjectRef}
|
3620
|
+
}
|
3621
|
+
|
3622
|
+
def struct_fields; FIELDS; end
|
3623
|
+
|
3624
|
+
def validate
|
3625
|
+
unless @principal_type.nil? || ::PrincipalType::VALID_VALUES.include?(@principal_type)
|
3626
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field principal_type!')
|
3627
|
+
end
|
3628
|
+
end
|
3629
|
+
|
3630
|
+
::Thrift::Struct.generate_accessors self
|
3631
|
+
end
|
3632
|
+
|
3633
|
+
class List_privileges_result
|
3634
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3635
|
+
SUCCESS = 0
|
3636
|
+
O1 = 1
|
3637
|
+
|
3638
|
+
FIELDS = {
|
3639
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::HiveObjectPrivilege}},
|
3640
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
|
3641
|
+
}
|
3642
|
+
|
3643
|
+
def struct_fields; FIELDS; end
|
3644
|
+
|
3645
|
+
def validate
|
3646
|
+
end
|
3647
|
+
|
3648
|
+
::Thrift::Struct.generate_accessors self
|
3649
|
+
end
|
3650
|
+
|
3651
|
+
class Grant_privileges_args
|
3652
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3653
|
+
PRIVILEGES = 1
|
3654
|
+
|
3655
|
+
FIELDS = {
|
3656
|
+
PRIVILEGES => {:type => ::Thrift::Types::STRUCT, :name => 'privileges', :class => ::PrivilegeBag}
|
3657
|
+
}
|
3658
|
+
|
3659
|
+
def struct_fields; FIELDS; end
|
3660
|
+
|
3661
|
+
def validate
|
3662
|
+
end
|
3663
|
+
|
3664
|
+
::Thrift::Struct.generate_accessors self
|
3665
|
+
end
|
3666
|
+
|
3667
|
+
class Grant_privileges_result
|
3668
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3669
|
+
SUCCESS = 0
|
3670
|
+
O1 = 1
|
3671
|
+
|
3672
|
+
FIELDS = {
|
3673
|
+
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
|
3674
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
|
3675
|
+
}
|
3676
|
+
|
3677
|
+
def struct_fields; FIELDS; end
|
3678
|
+
|
3679
|
+
def validate
|
3680
|
+
end
|
3681
|
+
|
3682
|
+
::Thrift::Struct.generate_accessors self
|
3683
|
+
end
|
3684
|
+
|
3685
|
+
class Revoke_privileges_args
|
3686
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3687
|
+
PRIVILEGES = 1
|
3688
|
+
|
3689
|
+
FIELDS = {
|
3690
|
+
PRIVILEGES => {:type => ::Thrift::Types::STRUCT, :name => 'privileges', :class => ::PrivilegeBag}
|
3691
|
+
}
|
3692
|
+
|
3693
|
+
def struct_fields; FIELDS; end
|
3694
|
+
|
3695
|
+
def validate
|
3696
|
+
end
|
3697
|
+
|
3698
|
+
::Thrift::Struct.generate_accessors self
|
3699
|
+
end
|
3700
|
+
|
3701
|
+
class Revoke_privileges_result
|
3702
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3703
|
+
SUCCESS = 0
|
3704
|
+
O1 = 1
|
3705
|
+
|
3706
|
+
FIELDS = {
|
3707
|
+
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
|
3708
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
|
3709
|
+
}
|
3710
|
+
|
3711
|
+
def struct_fields; FIELDS; end
|
3712
|
+
|
3713
|
+
def validate
|
3714
|
+
end
|
3715
|
+
|
3716
|
+
::Thrift::Struct.generate_accessors self
|
3717
|
+
end
|
3718
|
+
|
3719
|
+
class Get_delegation_token_args
|
3720
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3721
|
+
RENEWER_KERBEROS_PRINCIPAL_NAME = 1
|
3722
|
+
|
3723
|
+
FIELDS = {
|
3724
|
+
RENEWER_KERBEROS_PRINCIPAL_NAME => {:type => ::Thrift::Types::STRING, :name => 'renewer_kerberos_principal_name'}
|
3725
|
+
}
|
3726
|
+
|
3727
|
+
def struct_fields; FIELDS; end
|
3728
|
+
|
3729
|
+
def validate
|
3730
|
+
end
|
3731
|
+
|
3732
|
+
::Thrift::Struct.generate_accessors self
|
3733
|
+
end
|
3734
|
+
|
3735
|
+
class Get_delegation_token_result
|
3736
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3737
|
+
SUCCESS = 0
|
3738
|
+
O1 = 1
|
3739
|
+
|
3740
|
+
FIELDS = {
|
3741
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
|
3742
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
|
3743
|
+
}
|
3744
|
+
|
3745
|
+
def struct_fields; FIELDS; end
|
3746
|
+
|
3747
|
+
def validate
|
3748
|
+
end
|
3749
|
+
|
3750
|
+
::Thrift::Struct.generate_accessors self
|
3751
|
+
end
|
3752
|
+
|
3753
|
+
class Get_delegation_token_with_signature_args
|
3754
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3755
|
+
RENEWER_KERBEROS_PRINCIPAL_NAME = 1
|
3756
|
+
TOKEN_SIGNATURE = 2
|
3757
|
+
|
3758
|
+
FIELDS = {
|
3759
|
+
RENEWER_KERBEROS_PRINCIPAL_NAME => {:type => ::Thrift::Types::STRING, :name => 'renewer_kerberos_principal_name'},
|
3760
|
+
TOKEN_SIGNATURE => {:type => ::Thrift::Types::STRING, :name => 'token_signature'}
|
3761
|
+
}
|
3762
|
+
|
3763
|
+
def struct_fields; FIELDS; end
|
3764
|
+
|
3765
|
+
def validate
|
3766
|
+
end
|
3767
|
+
|
3768
|
+
::Thrift::Struct.generate_accessors self
|
3769
|
+
end
|
3770
|
+
|
3771
|
+
class Get_delegation_token_with_signature_result
|
3772
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3773
|
+
SUCCESS = 0
|
3774
|
+
O1 = 1
|
3775
|
+
|
3776
|
+
FIELDS = {
|
3777
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
|
3778
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
|
3779
|
+
}
|
3780
|
+
|
3781
|
+
def struct_fields; FIELDS; end
|
3782
|
+
|
3783
|
+
def validate
|
3784
|
+
end
|
3785
|
+
|
3786
|
+
::Thrift::Struct.generate_accessors self
|
3787
|
+
end
|
3788
|
+
|
3789
|
+
class Renew_delegation_token_args
|
3790
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3791
|
+
TOKEN_STR_FORM = 1
|
3792
|
+
|
3793
|
+
FIELDS = {
|
3794
|
+
TOKEN_STR_FORM => {:type => ::Thrift::Types::STRING, :name => 'token_str_form'}
|
3795
|
+
}
|
3796
|
+
|
3797
|
+
def struct_fields; FIELDS; end
|
3798
|
+
|
3799
|
+
def validate
|
3800
|
+
end
|
3801
|
+
|
3802
|
+
::Thrift::Struct.generate_accessors self
|
3803
|
+
end
|
3804
|
+
|
3805
|
+
class Renew_delegation_token_result
|
3806
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3807
|
+
SUCCESS = 0
|
3808
|
+
O1 = 1
|
3809
|
+
|
3810
|
+
FIELDS = {
|
3811
|
+
SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'},
|
3812
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
|
3813
|
+
}
|
3814
|
+
|
3815
|
+
def struct_fields; FIELDS; end
|
3816
|
+
|
3817
|
+
def validate
|
3818
|
+
end
|
3819
|
+
|
3820
|
+
::Thrift::Struct.generate_accessors self
|
3821
|
+
end
|
3822
|
+
|
3823
|
+
class Cancel_delegation_token_args
|
3824
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3825
|
+
TOKEN_STR_FORM = 1
|
3826
|
+
|
3827
|
+
FIELDS = {
|
3828
|
+
TOKEN_STR_FORM => {:type => ::Thrift::Types::STRING, :name => 'token_str_form'}
|
3829
|
+
}
|
3830
|
+
|
3831
|
+
def struct_fields; FIELDS; end
|
3832
|
+
|
3833
|
+
def validate
|
3834
|
+
end
|
3835
|
+
|
3836
|
+
::Thrift::Struct.generate_accessors self
|
3837
|
+
end
|
3838
|
+
|
3839
|
+
class Cancel_delegation_token_result
|
3840
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
3841
|
+
O1 = 1
|
3842
|
+
|
3843
|
+
FIELDS = {
|
3844
|
+
O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
|
3845
|
+
}
|
3846
|
+
|
3847
|
+
def struct_fields; FIELDS; end
|
3848
|
+
|
3849
|
+
def validate
|
3850
|
+
end
|
3851
|
+
|
3852
|
+
::Thrift::Struct.generate_accessors self
|
3853
|
+
end
|
3854
|
+
|
3855
|
+
end
|
3856
|
+
|