sequel_impala 1.1.0

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.
Files changed (129) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +50 -0
  3. data/LICENSE +463 -0
  4. data/README.md +45 -0
  5. data/Rakefile +39 -0
  6. data/lib/driver/commons-collections-3.2.1.jar +0 -0
  7. data/lib/driver/commons-configuration-1.10.jar +0 -0
  8. data/lib/driver/commons-logging-1.2.jar +0 -0
  9. data/lib/driver/hadoop-auth-2.9.0.jar +0 -0
  10. data/lib/driver/hadoop-common-2.9.0.jar +0 -0
  11. data/lib/driver/hadoop-core-2.6.0.jar +0 -0
  12. data/lib/driver/hive-exec-1.1.0.jar +0 -0
  13. data/lib/driver/hive-jdbc-1.1.0.jar +0 -0
  14. data/lib/driver/hive-metastore-1.1.0.jar +0 -0
  15. data/lib/driver/hive-service-1.1.0.jar +0 -0
  16. data/lib/driver/httpclient-4.3.jar +0 -0
  17. data/lib/driver/httpcore-4.3.jar +0 -0
  18. data/lib/driver/libfb303-0.9.0.jar +0 -0
  19. data/lib/driver/log4j-1.2.17.jar +0 -0
  20. data/lib/driver/slf4j-api-1.7.5.jar +0 -0
  21. data/lib/driver/stax2-api-3.1.4.jar +0 -0
  22. data/lib/driver/woodstox-core-asl-4.4.1.jar +0 -0
  23. data/lib/impala.rb +55 -0
  24. data/lib/impala/connection.rb +180 -0
  25. data/lib/impala/cursor.rb +200 -0
  26. data/lib/impala/progress_reporter.rb +40 -0
  27. data/lib/impala/protocol.rb +8 -0
  28. data/lib/impala/protocol/beeswax_constants.rb +15 -0
  29. data/lib/impala/protocol/beeswax_service.rb +747 -0
  30. data/lib/impala/protocol/beeswax_types.rb +193 -0
  31. data/lib/impala/protocol/exec_stats_constants.rb +13 -0
  32. data/lib/impala/protocol/exec_stats_types.rb +133 -0
  33. data/lib/impala/protocol/facebook_service.rb +706 -0
  34. data/lib/impala/protocol/fb303_constants.rb +15 -0
  35. data/lib/impala/protocol/fb303_types.rb +25 -0
  36. data/lib/impala/protocol/hive_metastore_constants.rb +53 -0
  37. data/lib/impala/protocol/hive_metastore_types.rb +698 -0
  38. data/lib/impala/protocol/impala_hive_server2_service.rb +137 -0
  39. data/lib/impala/protocol/impala_service.rb +443 -0
  40. data/lib/impala/protocol/impala_service_constants.rb +13 -0
  41. data/lib/impala/protocol/impala_service_types.rb +192 -0
  42. data/lib/impala/protocol/status_constants.rb +13 -0
  43. data/lib/impala/protocol/status_types.rb +46 -0
  44. data/lib/impala/protocol/t_c_l_i_service.rb +1108 -0
  45. data/lib/impala/protocol/t_c_l_i_service_constants.rb +72 -0
  46. data/lib/impala/protocol/t_c_l_i_service_types.rb +1802 -0
  47. data/lib/impala/protocol/thrift_hive_metastore.rb +4707 -0
  48. data/lib/impala/protocol/types_constants.rb +13 -0
  49. data/lib/impala/protocol/types_types.rb +332 -0
  50. data/lib/impala/sasl_transport.rb +117 -0
  51. data/lib/impala/thrift_patch.rb +31 -0
  52. data/lib/impala/version.rb +3 -0
  53. data/lib/jdbc/hive2.rb +52 -0
  54. data/lib/jdbc/impala.rb +50 -0
  55. data/lib/rbhive.rb +8 -0
  56. data/lib/rbhive/connection.rb +150 -0
  57. data/lib/rbhive/explain_result.rb +46 -0
  58. data/lib/rbhive/result_set.rb +37 -0
  59. data/lib/rbhive/schema_definition.rb +86 -0
  60. data/lib/rbhive/t_c_l_i_connection.rb +466 -0
  61. data/lib/rbhive/t_c_l_i_result_set.rb +3 -0
  62. data/lib/rbhive/t_c_l_i_schema_definition.rb +87 -0
  63. data/lib/rbhive/table_schema.rb +122 -0
  64. data/lib/rbhive/version.rb +3 -0
  65. data/lib/sequel/adapters/impala.rb +220 -0
  66. data/lib/sequel/adapters/jdbc/hive2.rb +36 -0
  67. data/lib/sequel/adapters/jdbc/impala.rb +38 -0
  68. data/lib/sequel/adapters/rbhive.rb +177 -0
  69. data/lib/sequel/adapters/shared/impala.rb +808 -0
  70. data/lib/sequel/extensions/csv_to_parquet.rb +166 -0
  71. data/lib/thrift/facebook_service.rb +700 -0
  72. data/lib/thrift/fb303_constants.rb +9 -0
  73. data/lib/thrift/fb303_types.rb +19 -0
  74. data/lib/thrift/hive_metastore_constants.rb +41 -0
  75. data/lib/thrift/hive_metastore_types.rb +630 -0
  76. data/lib/thrift/hive_service_constants.rb +13 -0
  77. data/lib/thrift/hive_service_types.rb +72 -0
  78. data/lib/thrift/queryplan_constants.rb +13 -0
  79. data/lib/thrift/queryplan_types.rb +261 -0
  80. data/lib/thrift/sasl_client_transport.rb +161 -0
  81. data/lib/thrift/serde_constants.rb +92 -0
  82. data/lib/thrift/serde_types.rb +7 -0
  83. data/lib/thrift/t_c_l_i_service.rb +1054 -0
  84. data/lib/thrift/t_c_l_i_service_constants.rb +72 -0
  85. data/lib/thrift/t_c_l_i_service_types.rb +1768 -0
  86. data/lib/thrift/thrift_hive.rb +508 -0
  87. data/lib/thrift/thrift_hive_metastore.rb +3856 -0
  88. data/spec/database_test.rb +56 -0
  89. data/spec/dataset_test.rb +1268 -0
  90. data/spec/files/bad_down_migration/001_create_alt_basic.rb +4 -0
  91. data/spec/files/bad_down_migration/002_create_alt_advanced.rb +4 -0
  92. data/spec/files/bad_timestamped_migrations/1273253849_create_sessions.rb +9 -0
  93. data/spec/files/bad_timestamped_migrations/1273253851_create_nodes.rb +9 -0
  94. data/spec/files/bad_timestamped_migrations/1273253853_3_create_users.rb +3 -0
  95. data/spec/files/bad_up_migration/001_create_alt_basic.rb +4 -0
  96. data/spec/files/bad_up_migration/002_create_alt_advanced.rb +3 -0
  97. data/spec/files/convert_to_timestamp_migrations/001_create_sessions.rb +9 -0
  98. data/spec/files/convert_to_timestamp_migrations/002_create_nodes.rb +9 -0
  99. data/spec/files/convert_to_timestamp_migrations/003_3_create_users.rb +4 -0
  100. data/spec/files/convert_to_timestamp_migrations/1273253850_create_artists.rb +9 -0
  101. data/spec/files/convert_to_timestamp_migrations/1273253852_create_albums.rb +9 -0
  102. data/spec/files/duplicate_timestamped_migrations/1273253849_create_sessions.rb +9 -0
  103. data/spec/files/duplicate_timestamped_migrations/1273253853_create_nodes.rb +9 -0
  104. data/spec/files/duplicate_timestamped_migrations/1273253853_create_users.rb +4 -0
  105. data/spec/files/integer_migrations/001_create_sessions.rb +9 -0
  106. data/spec/files/integer_migrations/002_create_nodes.rb +9 -0
  107. data/spec/files/integer_migrations/003_3_create_users.rb +4 -0
  108. data/spec/files/interleaved_timestamped_migrations/1273253849_create_sessions.rb +9 -0
  109. data/spec/files/interleaved_timestamped_migrations/1273253850_create_artists.rb +9 -0
  110. data/spec/files/interleaved_timestamped_migrations/1273253851_create_nodes.rb +9 -0
  111. data/spec/files/interleaved_timestamped_migrations/1273253852_create_albums.rb +9 -0
  112. data/spec/files/interleaved_timestamped_migrations/1273253853_3_create_users.rb +4 -0
  113. data/spec/files/reversible_migrations/001_reversible.rb +5 -0
  114. data/spec/files/reversible_migrations/002_reversible.rb +5 -0
  115. data/spec/files/reversible_migrations/003_reversible.rb +5 -0
  116. data/spec/files/reversible_migrations/004_reversible.rb +5 -0
  117. data/spec/files/reversible_migrations/005_reversible.rb +10 -0
  118. data/spec/files/timestamped_migrations/1273253849_create_sessions.rb +9 -0
  119. data/spec/files/timestamped_migrations/1273253851_create_nodes.rb +9 -0
  120. data/spec/files/timestamped_migrations/1273253853_3_create_users.rb +4 -0
  121. data/spec/impala_test.rb +290 -0
  122. data/spec/migrator_test.rb +240 -0
  123. data/spec/plugin_test.rb +91 -0
  124. data/spec/prepared_statement_test.rb +327 -0
  125. data/spec/schema_test.rb +356 -0
  126. data/spec/spec_helper.rb +19 -0
  127. data/spec/timezone_test.rb +86 -0
  128. data/spec/type_test.rb +99 -0
  129. metadata +294 -0
@@ -0,0 +1,4707 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.3)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require 'facebook_service'
9
+ require 'hive_metastore_types'
10
+
11
+ module Impala
12
+ module Protocol
13
+ module HiveMetastore
14
+ module ThriftHiveMetastore
15
+ class Client < ::Impala::Protocol::Fb303::FacebookService::Client
16
+ include ::Thrift::Client
17
+
18
+ def create_database(database)
19
+ send_create_database(database)
20
+ recv_create_database()
21
+ end
22
+
23
+ def send_create_database(database)
24
+ send_message('create_database', Create_database_args, :database => database)
25
+ end
26
+
27
+ def recv_create_database()
28
+ result = receive_message(Create_database_result)
29
+ raise result.o1 unless result.o1.nil?
30
+ raise result.o2 unless result.o2.nil?
31
+ raise result.o3 unless result.o3.nil?
32
+ return
33
+ end
34
+
35
+ def get_database(name)
36
+ send_get_database(name)
37
+ return recv_get_database()
38
+ end
39
+
40
+ def send_get_database(name)
41
+ send_message('get_database', Get_database_args, :name => name)
42
+ end
43
+
44
+ def recv_get_database()
45
+ result = receive_message(Get_database_result)
46
+ return result.success unless result.success.nil?
47
+ raise result.o1 unless result.o1.nil?
48
+ raise result.o2 unless result.o2.nil?
49
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_database failed: unknown result')
50
+ end
51
+
52
+ def drop_database(name, deleteData, cascade)
53
+ send_drop_database(name, deleteData, cascade)
54
+ recv_drop_database()
55
+ end
56
+
57
+ def send_drop_database(name, deleteData, cascade)
58
+ send_message('drop_database', Drop_database_args, :name => name, :deleteData => deleteData, :cascade => cascade)
59
+ end
60
+
61
+ def recv_drop_database()
62
+ result = receive_message(Drop_database_result)
63
+ raise result.o1 unless result.o1.nil?
64
+ raise result.o2 unless result.o2.nil?
65
+ raise result.o3 unless result.o3.nil?
66
+ return
67
+ end
68
+
69
+ def get_databases(pattern)
70
+ send_get_databases(pattern)
71
+ return recv_get_databases()
72
+ end
73
+
74
+ def send_get_databases(pattern)
75
+ send_message('get_databases', Get_databases_args, :pattern => pattern)
76
+ end
77
+
78
+ def recv_get_databases()
79
+ result = receive_message(Get_databases_result)
80
+ return result.success unless result.success.nil?
81
+ raise result.o1 unless result.o1.nil?
82
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_databases failed: unknown result')
83
+ end
84
+
85
+ def get_all_databases()
86
+ send_get_all_databases()
87
+ return recv_get_all_databases()
88
+ end
89
+
90
+ def send_get_all_databases()
91
+ send_message('get_all_databases', Get_all_databases_args)
92
+ end
93
+
94
+ def recv_get_all_databases()
95
+ result = receive_message(Get_all_databases_result)
96
+ return result.success unless result.success.nil?
97
+ raise result.o1 unless result.o1.nil?
98
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_all_databases failed: unknown result')
99
+ end
100
+
101
+ def alter_database(dbname, db)
102
+ send_alter_database(dbname, db)
103
+ recv_alter_database()
104
+ end
105
+
106
+ def send_alter_database(dbname, db)
107
+ send_message('alter_database', Alter_database_args, :dbname => dbname, :db => db)
108
+ end
109
+
110
+ def recv_alter_database()
111
+ result = receive_message(Alter_database_result)
112
+ raise result.o1 unless result.o1.nil?
113
+ raise result.o2 unless result.o2.nil?
114
+ return
115
+ end
116
+
117
+ def get_type(name)
118
+ send_get_type(name)
119
+ return recv_get_type()
120
+ end
121
+
122
+ def send_get_type(name)
123
+ send_message('get_type', Get_type_args, :name => name)
124
+ end
125
+
126
+ def recv_get_type()
127
+ result = receive_message(Get_type_result)
128
+ return result.success unless result.success.nil?
129
+ raise result.o1 unless result.o1.nil?
130
+ raise result.o2 unless result.o2.nil?
131
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_type failed: unknown result')
132
+ end
133
+
134
+ def create_type(type)
135
+ send_create_type(type)
136
+ return recv_create_type()
137
+ end
138
+
139
+ def send_create_type(type)
140
+ send_message('create_type', Create_type_args, :type => type)
141
+ end
142
+
143
+ def recv_create_type()
144
+ result = receive_message(Create_type_result)
145
+ return result.success unless result.success.nil?
146
+ raise result.o1 unless result.o1.nil?
147
+ raise result.o2 unless result.o2.nil?
148
+ raise result.o3 unless result.o3.nil?
149
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'create_type failed: unknown result')
150
+ end
151
+
152
+ def drop_type(type)
153
+ send_drop_type(type)
154
+ return recv_drop_type()
155
+ end
156
+
157
+ def send_drop_type(type)
158
+ send_message('drop_type', Drop_type_args, :type => type)
159
+ end
160
+
161
+ def recv_drop_type()
162
+ result = receive_message(Drop_type_result)
163
+ return result.success unless result.success.nil?
164
+ raise result.o1 unless result.o1.nil?
165
+ raise result.o2 unless result.o2.nil?
166
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'drop_type failed: unknown result')
167
+ end
168
+
169
+ def get_type_all(name)
170
+ send_get_type_all(name)
171
+ return recv_get_type_all()
172
+ end
173
+
174
+ def send_get_type_all(name)
175
+ send_message('get_type_all', Get_type_all_args, :name => name)
176
+ end
177
+
178
+ def recv_get_type_all()
179
+ result = receive_message(Get_type_all_result)
180
+ return result.success unless result.success.nil?
181
+ raise result.o2 unless result.o2.nil?
182
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_type_all failed: unknown result')
183
+ end
184
+
185
+ def get_fields(db_name, table_name)
186
+ send_get_fields(db_name, table_name)
187
+ return recv_get_fields()
188
+ end
189
+
190
+ def send_get_fields(db_name, table_name)
191
+ send_message('get_fields', Get_fields_args, :db_name => db_name, :table_name => table_name)
192
+ end
193
+
194
+ def recv_get_fields()
195
+ result = receive_message(Get_fields_result)
196
+ return result.success unless result.success.nil?
197
+ raise result.o1 unless result.o1.nil?
198
+ raise result.o2 unless result.o2.nil?
199
+ raise result.o3 unless result.o3.nil?
200
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_fields failed: unknown result')
201
+ end
202
+
203
+ def get_schema(db_name, table_name)
204
+ send_get_schema(db_name, table_name)
205
+ return recv_get_schema()
206
+ end
207
+
208
+ def send_get_schema(db_name, table_name)
209
+ send_message('get_schema', Get_schema_args, :db_name => db_name, :table_name => table_name)
210
+ end
211
+
212
+ def recv_get_schema()
213
+ result = receive_message(Get_schema_result)
214
+ return result.success unless result.success.nil?
215
+ raise result.o1 unless result.o1.nil?
216
+ raise result.o2 unless result.o2.nil?
217
+ raise result.o3 unless result.o3.nil?
218
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_schema failed: unknown result')
219
+ end
220
+
221
+ def create_table(tbl)
222
+ send_create_table(tbl)
223
+ recv_create_table()
224
+ end
225
+
226
+ def send_create_table(tbl)
227
+ send_message('create_table', Create_table_args, :tbl => tbl)
228
+ end
229
+
230
+ def recv_create_table()
231
+ result = receive_message(Create_table_result)
232
+ raise result.o1 unless result.o1.nil?
233
+ raise result.o2 unless result.o2.nil?
234
+ raise result.o3 unless result.o3.nil?
235
+ raise result.o4 unless result.o4.nil?
236
+ return
237
+ end
238
+
239
+ def create_table_with_environment_context(tbl, environment_context)
240
+ send_create_table_with_environment_context(tbl, environment_context)
241
+ recv_create_table_with_environment_context()
242
+ end
243
+
244
+ def send_create_table_with_environment_context(tbl, environment_context)
245
+ send_message('create_table_with_environment_context', Create_table_with_environment_context_args, :tbl => tbl, :environment_context => environment_context)
246
+ end
247
+
248
+ def recv_create_table_with_environment_context()
249
+ result = receive_message(Create_table_with_environment_context_result)
250
+ raise result.o1 unless result.o1.nil?
251
+ raise result.o2 unless result.o2.nil?
252
+ raise result.o3 unless result.o3.nil?
253
+ raise result.o4 unless result.o4.nil?
254
+ return
255
+ end
256
+
257
+ def drop_table(dbname, name, deleteData)
258
+ send_drop_table(dbname, name, deleteData)
259
+ recv_drop_table()
260
+ end
261
+
262
+ def send_drop_table(dbname, name, deleteData)
263
+ send_message('drop_table', Drop_table_args, :dbname => dbname, :name => name, :deleteData => deleteData)
264
+ end
265
+
266
+ def recv_drop_table()
267
+ result = receive_message(Drop_table_result)
268
+ raise result.o1 unless result.o1.nil?
269
+ raise result.o3 unless result.o3.nil?
270
+ return
271
+ end
272
+
273
+ def get_tables(db_name, pattern)
274
+ send_get_tables(db_name, pattern)
275
+ return recv_get_tables()
276
+ end
277
+
278
+ def send_get_tables(db_name, pattern)
279
+ send_message('get_tables', Get_tables_args, :db_name => db_name, :pattern => pattern)
280
+ end
281
+
282
+ def recv_get_tables()
283
+ result = receive_message(Get_tables_result)
284
+ return result.success unless result.success.nil?
285
+ raise result.o1 unless result.o1.nil?
286
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_tables failed: unknown result')
287
+ end
288
+
289
+ def get_all_tables(db_name)
290
+ send_get_all_tables(db_name)
291
+ return recv_get_all_tables()
292
+ end
293
+
294
+ def send_get_all_tables(db_name)
295
+ send_message('get_all_tables', Get_all_tables_args, :db_name => db_name)
296
+ end
297
+
298
+ def recv_get_all_tables()
299
+ result = receive_message(Get_all_tables_result)
300
+ return result.success unless result.success.nil?
301
+ raise result.o1 unless result.o1.nil?
302
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_all_tables failed: unknown result')
303
+ end
304
+
305
+ def get_table(dbname, tbl_name)
306
+ send_get_table(dbname, tbl_name)
307
+ return recv_get_table()
308
+ end
309
+
310
+ def send_get_table(dbname, tbl_name)
311
+ send_message('get_table', Get_table_args, :dbname => dbname, :tbl_name => tbl_name)
312
+ end
313
+
314
+ def recv_get_table()
315
+ result = receive_message(Get_table_result)
316
+ return result.success unless result.success.nil?
317
+ raise result.o1 unless result.o1.nil?
318
+ raise result.o2 unless result.o2.nil?
319
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_table failed: unknown result')
320
+ end
321
+
322
+ def get_table_objects_by_name(dbname, tbl_names)
323
+ send_get_table_objects_by_name(dbname, tbl_names)
324
+ return recv_get_table_objects_by_name()
325
+ end
326
+
327
+ def send_get_table_objects_by_name(dbname, tbl_names)
328
+ send_message('get_table_objects_by_name', Get_table_objects_by_name_args, :dbname => dbname, :tbl_names => tbl_names)
329
+ end
330
+
331
+ def recv_get_table_objects_by_name()
332
+ result = receive_message(Get_table_objects_by_name_result)
333
+ return result.success unless result.success.nil?
334
+ raise result.o1 unless result.o1.nil?
335
+ raise result.o2 unless result.o2.nil?
336
+ raise result.o3 unless result.o3.nil?
337
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_table_objects_by_name failed: unknown result')
338
+ end
339
+
340
+ def get_table_names_by_filter(dbname, filter, max_tables)
341
+ send_get_table_names_by_filter(dbname, filter, max_tables)
342
+ return recv_get_table_names_by_filter()
343
+ end
344
+
345
+ def send_get_table_names_by_filter(dbname, filter, max_tables)
346
+ send_message('get_table_names_by_filter', Get_table_names_by_filter_args, :dbname => dbname, :filter => filter, :max_tables => max_tables)
347
+ end
348
+
349
+ def recv_get_table_names_by_filter()
350
+ result = receive_message(Get_table_names_by_filter_result)
351
+ return result.success unless result.success.nil?
352
+ raise result.o1 unless result.o1.nil?
353
+ raise result.o2 unless result.o2.nil?
354
+ raise result.o3 unless result.o3.nil?
355
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_table_names_by_filter failed: unknown result')
356
+ end
357
+
358
+ def alter_table(dbname, tbl_name, new_tbl)
359
+ send_alter_table(dbname, tbl_name, new_tbl)
360
+ recv_alter_table()
361
+ end
362
+
363
+ def send_alter_table(dbname, tbl_name, new_tbl)
364
+ send_message('alter_table', Alter_table_args, :dbname => dbname, :tbl_name => tbl_name, :new_tbl => new_tbl)
365
+ end
366
+
367
+ def recv_alter_table()
368
+ result = receive_message(Alter_table_result)
369
+ raise result.o1 unless result.o1.nil?
370
+ raise result.o2 unless result.o2.nil?
371
+ return
372
+ end
373
+
374
+ def alter_table_with_environment_context(dbname, tbl_name, new_tbl, environment_context)
375
+ send_alter_table_with_environment_context(dbname, tbl_name, new_tbl, environment_context)
376
+ recv_alter_table_with_environment_context()
377
+ end
378
+
379
+ def send_alter_table_with_environment_context(dbname, tbl_name, new_tbl, environment_context)
380
+ send_message('alter_table_with_environment_context', Alter_table_with_environment_context_args, :dbname => dbname, :tbl_name => tbl_name, :new_tbl => new_tbl, :environment_context => environment_context)
381
+ end
382
+
383
+ def recv_alter_table_with_environment_context()
384
+ result = receive_message(Alter_table_with_environment_context_result)
385
+ raise result.o1 unless result.o1.nil?
386
+ raise result.o2 unless result.o2.nil?
387
+ return
388
+ end
389
+
390
+ def add_partition(new_part)
391
+ send_add_partition(new_part)
392
+ return recv_add_partition()
393
+ end
394
+
395
+ def send_add_partition(new_part)
396
+ send_message('add_partition', Add_partition_args, :new_part => new_part)
397
+ end
398
+
399
+ def recv_add_partition()
400
+ result = receive_message(Add_partition_result)
401
+ return result.success unless result.success.nil?
402
+ raise result.o1 unless result.o1.nil?
403
+ raise result.o2 unless result.o2.nil?
404
+ raise result.o3 unless result.o3.nil?
405
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'add_partition failed: unknown result')
406
+ end
407
+
408
+ def add_partition_with_environment_context(new_part, environment_context)
409
+ send_add_partition_with_environment_context(new_part, environment_context)
410
+ return recv_add_partition_with_environment_context()
411
+ end
412
+
413
+ def send_add_partition_with_environment_context(new_part, environment_context)
414
+ send_message('add_partition_with_environment_context', Add_partition_with_environment_context_args, :new_part => new_part, :environment_context => environment_context)
415
+ end
416
+
417
+ def recv_add_partition_with_environment_context()
418
+ result = receive_message(Add_partition_with_environment_context_result)
419
+ return result.success unless result.success.nil?
420
+ raise result.o1 unless result.o1.nil?
421
+ raise result.o2 unless result.o2.nil?
422
+ raise result.o3 unless result.o3.nil?
423
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'add_partition_with_environment_context failed: unknown result')
424
+ end
425
+
426
+ def add_partitions(new_parts)
427
+ send_add_partitions(new_parts)
428
+ return recv_add_partitions()
429
+ end
430
+
431
+ def send_add_partitions(new_parts)
432
+ send_message('add_partitions', Add_partitions_args, :new_parts => new_parts)
433
+ end
434
+
435
+ def recv_add_partitions()
436
+ result = receive_message(Add_partitions_result)
437
+ return result.success unless result.success.nil?
438
+ raise result.o1 unless result.o1.nil?
439
+ raise result.o2 unless result.o2.nil?
440
+ raise result.o3 unless result.o3.nil?
441
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'add_partitions failed: unknown result')
442
+ end
443
+
444
+ def append_partition(db_name, tbl_name, part_vals)
445
+ send_append_partition(db_name, tbl_name, part_vals)
446
+ return recv_append_partition()
447
+ end
448
+
449
+ def send_append_partition(db_name, tbl_name, part_vals)
450
+ send_message('append_partition', Append_partition_args, :db_name => db_name, :tbl_name => tbl_name, :part_vals => part_vals)
451
+ end
452
+
453
+ def recv_append_partition()
454
+ result = receive_message(Append_partition_result)
455
+ return result.success unless result.success.nil?
456
+ raise result.o1 unless result.o1.nil?
457
+ raise result.o2 unless result.o2.nil?
458
+ raise result.o3 unless result.o3.nil?
459
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'append_partition failed: unknown result')
460
+ end
461
+
462
+ def append_partition_by_name(db_name, tbl_name, part_name)
463
+ send_append_partition_by_name(db_name, tbl_name, part_name)
464
+ return recv_append_partition_by_name()
465
+ end
466
+
467
+ def send_append_partition_by_name(db_name, tbl_name, part_name)
468
+ send_message('append_partition_by_name', Append_partition_by_name_args, :db_name => db_name, :tbl_name => tbl_name, :part_name => part_name)
469
+ end
470
+
471
+ def recv_append_partition_by_name()
472
+ result = receive_message(Append_partition_by_name_result)
473
+ return result.success unless result.success.nil?
474
+ raise result.o1 unless result.o1.nil?
475
+ raise result.o2 unless result.o2.nil?
476
+ raise result.o3 unless result.o3.nil?
477
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'append_partition_by_name failed: unknown result')
478
+ end
479
+
480
+ def drop_partition(db_name, tbl_name, part_vals, deleteData)
481
+ send_drop_partition(db_name, tbl_name, part_vals, deleteData)
482
+ return recv_drop_partition()
483
+ end
484
+
485
+ def send_drop_partition(db_name, tbl_name, part_vals, deleteData)
486
+ send_message('drop_partition', Drop_partition_args, :db_name => db_name, :tbl_name => tbl_name, :part_vals => part_vals, :deleteData => deleteData)
487
+ end
488
+
489
+ def recv_drop_partition()
490
+ result = receive_message(Drop_partition_result)
491
+ return result.success unless result.success.nil?
492
+ raise result.o1 unless result.o1.nil?
493
+ raise result.o2 unless result.o2.nil?
494
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'drop_partition failed: unknown result')
495
+ end
496
+
497
+ def drop_partition_by_name(db_name, tbl_name, part_name, deleteData)
498
+ send_drop_partition_by_name(db_name, tbl_name, part_name, deleteData)
499
+ return recv_drop_partition_by_name()
500
+ end
501
+
502
+ def send_drop_partition_by_name(db_name, tbl_name, part_name, deleteData)
503
+ 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)
504
+ end
505
+
506
+ def recv_drop_partition_by_name()
507
+ result = receive_message(Drop_partition_by_name_result)
508
+ return result.success unless result.success.nil?
509
+ raise result.o1 unless result.o1.nil?
510
+ raise result.o2 unless result.o2.nil?
511
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'drop_partition_by_name failed: unknown result')
512
+ end
513
+
514
+ def get_partition(db_name, tbl_name, part_vals)
515
+ send_get_partition(db_name, tbl_name, part_vals)
516
+ return recv_get_partition()
517
+ end
518
+
519
+ def send_get_partition(db_name, tbl_name, part_vals)
520
+ send_message('get_partition', Get_partition_args, :db_name => db_name, :tbl_name => tbl_name, :part_vals => part_vals)
521
+ end
522
+
523
+ def recv_get_partition()
524
+ result = receive_message(Get_partition_result)
525
+ return result.success unless result.success.nil?
526
+ raise result.o1 unless result.o1.nil?
527
+ raise result.o2 unless result.o2.nil?
528
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partition failed: unknown result')
529
+ end
530
+
531
+ def get_partition_with_auth(db_name, tbl_name, part_vals, user_name, group_names)
532
+ send_get_partition_with_auth(db_name, tbl_name, part_vals, user_name, group_names)
533
+ return recv_get_partition_with_auth()
534
+ end
535
+
536
+ def send_get_partition_with_auth(db_name, tbl_name, part_vals, user_name, group_names)
537
+ 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)
538
+ end
539
+
540
+ def recv_get_partition_with_auth()
541
+ result = receive_message(Get_partition_with_auth_result)
542
+ return result.success unless result.success.nil?
543
+ raise result.o1 unless result.o1.nil?
544
+ raise result.o2 unless result.o2.nil?
545
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partition_with_auth failed: unknown result')
546
+ end
547
+
548
+ def get_partition_by_name(db_name, tbl_name, part_name)
549
+ send_get_partition_by_name(db_name, tbl_name, part_name)
550
+ return recv_get_partition_by_name()
551
+ end
552
+
553
+ def send_get_partition_by_name(db_name, tbl_name, part_name)
554
+ send_message('get_partition_by_name', Get_partition_by_name_args, :db_name => db_name, :tbl_name => tbl_name, :part_name => part_name)
555
+ end
556
+
557
+ def recv_get_partition_by_name()
558
+ result = receive_message(Get_partition_by_name_result)
559
+ return result.success unless result.success.nil?
560
+ raise result.o1 unless result.o1.nil?
561
+ raise result.o2 unless result.o2.nil?
562
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partition_by_name failed: unknown result')
563
+ end
564
+
565
+ def get_partitions(db_name, tbl_name, max_parts)
566
+ send_get_partitions(db_name, tbl_name, max_parts)
567
+ return recv_get_partitions()
568
+ end
569
+
570
+ def send_get_partitions(db_name, tbl_name, max_parts)
571
+ send_message('get_partitions', Get_partitions_args, :db_name => db_name, :tbl_name => tbl_name, :max_parts => max_parts)
572
+ end
573
+
574
+ def recv_get_partitions()
575
+ result = receive_message(Get_partitions_result)
576
+ return result.success unless result.success.nil?
577
+ raise result.o1 unless result.o1.nil?
578
+ raise result.o2 unless result.o2.nil?
579
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partitions failed: unknown result')
580
+ end
581
+
582
+ def get_partitions_with_auth(db_name, tbl_name, max_parts, user_name, group_names)
583
+ send_get_partitions_with_auth(db_name, tbl_name, max_parts, user_name, group_names)
584
+ return recv_get_partitions_with_auth()
585
+ end
586
+
587
+ def send_get_partitions_with_auth(db_name, tbl_name, max_parts, user_name, group_names)
588
+ 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)
589
+ end
590
+
591
+ def recv_get_partitions_with_auth()
592
+ result = receive_message(Get_partitions_with_auth_result)
593
+ return result.success unless result.success.nil?
594
+ raise result.o1 unless result.o1.nil?
595
+ raise result.o2 unless result.o2.nil?
596
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partitions_with_auth failed: unknown result')
597
+ end
598
+
599
+ def get_partition_names(db_name, tbl_name, max_parts)
600
+ send_get_partition_names(db_name, tbl_name, max_parts)
601
+ return recv_get_partition_names()
602
+ end
603
+
604
+ def send_get_partition_names(db_name, tbl_name, max_parts)
605
+ send_message('get_partition_names', Get_partition_names_args, :db_name => db_name, :tbl_name => tbl_name, :max_parts => max_parts)
606
+ end
607
+
608
+ def recv_get_partition_names()
609
+ result = receive_message(Get_partition_names_result)
610
+ return result.success unless result.success.nil?
611
+ raise result.o2 unless result.o2.nil?
612
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partition_names failed: unknown result')
613
+ end
614
+
615
+ def get_partitions_ps(db_name, tbl_name, part_vals, max_parts)
616
+ send_get_partitions_ps(db_name, tbl_name, part_vals, max_parts)
617
+ return recv_get_partitions_ps()
618
+ end
619
+
620
+ def send_get_partitions_ps(db_name, tbl_name, part_vals, max_parts)
621
+ 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)
622
+ end
623
+
624
+ def recv_get_partitions_ps()
625
+ result = receive_message(Get_partitions_ps_result)
626
+ return result.success unless result.success.nil?
627
+ raise result.o1 unless result.o1.nil?
628
+ raise result.o2 unless result.o2.nil?
629
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partitions_ps failed: unknown result')
630
+ end
631
+
632
+ def get_partitions_ps_with_auth(db_name, tbl_name, part_vals, max_parts, user_name, group_names)
633
+ send_get_partitions_ps_with_auth(db_name, tbl_name, part_vals, max_parts, user_name, group_names)
634
+ return recv_get_partitions_ps_with_auth()
635
+ end
636
+
637
+ def send_get_partitions_ps_with_auth(db_name, tbl_name, part_vals, max_parts, user_name, group_names)
638
+ 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)
639
+ end
640
+
641
+ def recv_get_partitions_ps_with_auth()
642
+ result = receive_message(Get_partitions_ps_with_auth_result)
643
+ return result.success unless result.success.nil?
644
+ raise result.o1 unless result.o1.nil?
645
+ raise result.o2 unless result.o2.nil?
646
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partitions_ps_with_auth failed: unknown result')
647
+ end
648
+
649
+ def get_partition_names_ps(db_name, tbl_name, part_vals, max_parts)
650
+ send_get_partition_names_ps(db_name, tbl_name, part_vals, max_parts)
651
+ return recv_get_partition_names_ps()
652
+ end
653
+
654
+ def send_get_partition_names_ps(db_name, tbl_name, part_vals, max_parts)
655
+ 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)
656
+ end
657
+
658
+ def recv_get_partition_names_ps()
659
+ result = receive_message(Get_partition_names_ps_result)
660
+ return result.success unless result.success.nil?
661
+ raise result.o1 unless result.o1.nil?
662
+ raise result.o2 unless result.o2.nil?
663
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partition_names_ps failed: unknown result')
664
+ end
665
+
666
+ def get_partitions_by_filter(db_name, tbl_name, filter, max_parts)
667
+ send_get_partitions_by_filter(db_name, tbl_name, filter, max_parts)
668
+ return recv_get_partitions_by_filter()
669
+ end
670
+
671
+ def send_get_partitions_by_filter(db_name, tbl_name, filter, max_parts)
672
+ 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)
673
+ end
674
+
675
+ def recv_get_partitions_by_filter()
676
+ result = receive_message(Get_partitions_by_filter_result)
677
+ return result.success unless result.success.nil?
678
+ raise result.o1 unless result.o1.nil?
679
+ raise result.o2 unless result.o2.nil?
680
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partitions_by_filter failed: unknown result')
681
+ end
682
+
683
+ def get_partitions_by_names(db_name, tbl_name, names)
684
+ send_get_partitions_by_names(db_name, tbl_name, names)
685
+ return recv_get_partitions_by_names()
686
+ end
687
+
688
+ def send_get_partitions_by_names(db_name, tbl_name, names)
689
+ send_message('get_partitions_by_names', Get_partitions_by_names_args, :db_name => db_name, :tbl_name => tbl_name, :names => names)
690
+ end
691
+
692
+ def recv_get_partitions_by_names()
693
+ result = receive_message(Get_partitions_by_names_result)
694
+ return result.success unless result.success.nil?
695
+ raise result.o1 unless result.o1.nil?
696
+ raise result.o2 unless result.o2.nil?
697
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partitions_by_names failed: unknown result')
698
+ end
699
+
700
+ def alter_partition(db_name, tbl_name, new_part)
701
+ send_alter_partition(db_name, tbl_name, new_part)
702
+ recv_alter_partition()
703
+ end
704
+
705
+ def send_alter_partition(db_name, tbl_name, new_part)
706
+ send_message('alter_partition', Alter_partition_args, :db_name => db_name, :tbl_name => tbl_name, :new_part => new_part)
707
+ end
708
+
709
+ def recv_alter_partition()
710
+ result = receive_message(Alter_partition_result)
711
+ raise result.o1 unless result.o1.nil?
712
+ raise result.o2 unless result.o2.nil?
713
+ return
714
+ end
715
+
716
+ def alter_partition_with_environment_context(db_name, tbl_name, new_part, environment_context)
717
+ send_alter_partition_with_environment_context(db_name, tbl_name, new_part, environment_context)
718
+ recv_alter_partition_with_environment_context()
719
+ end
720
+
721
+ def send_alter_partition_with_environment_context(db_name, tbl_name, new_part, environment_context)
722
+ send_message('alter_partition_with_environment_context', Alter_partition_with_environment_context_args, :db_name => db_name, :tbl_name => tbl_name, :new_part => new_part, :environment_context => environment_context)
723
+ end
724
+
725
+ def recv_alter_partition_with_environment_context()
726
+ result = receive_message(Alter_partition_with_environment_context_result)
727
+ raise result.o1 unless result.o1.nil?
728
+ raise result.o2 unless result.o2.nil?
729
+ return
730
+ end
731
+
732
+ def rename_partition(db_name, tbl_name, part_vals, new_part)
733
+ send_rename_partition(db_name, tbl_name, part_vals, new_part)
734
+ recv_rename_partition()
735
+ end
736
+
737
+ def send_rename_partition(db_name, tbl_name, part_vals, new_part)
738
+ send_message('rename_partition', Rename_partition_args, :db_name => db_name, :tbl_name => tbl_name, :part_vals => part_vals, :new_part => new_part)
739
+ end
740
+
741
+ def recv_rename_partition()
742
+ result = receive_message(Rename_partition_result)
743
+ raise result.o1 unless result.o1.nil?
744
+ raise result.o2 unless result.o2.nil?
745
+ return
746
+ end
747
+
748
+ def get_config_value(name, defaultValue)
749
+ send_get_config_value(name, defaultValue)
750
+ return recv_get_config_value()
751
+ end
752
+
753
+ def send_get_config_value(name, defaultValue)
754
+ send_message('get_config_value', Get_config_value_args, :name => name, :defaultValue => defaultValue)
755
+ end
756
+
757
+ def recv_get_config_value()
758
+ result = receive_message(Get_config_value_result)
759
+ return result.success unless result.success.nil?
760
+ raise result.o1 unless result.o1.nil?
761
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_config_value failed: unknown result')
762
+ end
763
+
764
+ def partition_name_to_vals(part_name)
765
+ send_partition_name_to_vals(part_name)
766
+ return recv_partition_name_to_vals()
767
+ end
768
+
769
+ def send_partition_name_to_vals(part_name)
770
+ send_message('partition_name_to_vals', Partition_name_to_vals_args, :part_name => part_name)
771
+ end
772
+
773
+ def recv_partition_name_to_vals()
774
+ result = receive_message(Partition_name_to_vals_result)
775
+ return result.success unless result.success.nil?
776
+ raise result.o1 unless result.o1.nil?
777
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'partition_name_to_vals failed: unknown result')
778
+ end
779
+
780
+ def partition_name_to_spec(part_name)
781
+ send_partition_name_to_spec(part_name)
782
+ return recv_partition_name_to_spec()
783
+ end
784
+
785
+ def send_partition_name_to_spec(part_name)
786
+ send_message('partition_name_to_spec', Partition_name_to_spec_args, :part_name => part_name)
787
+ end
788
+
789
+ def recv_partition_name_to_spec()
790
+ result = receive_message(Partition_name_to_spec_result)
791
+ return result.success unless result.success.nil?
792
+ raise result.o1 unless result.o1.nil?
793
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'partition_name_to_spec failed: unknown result')
794
+ end
795
+
796
+ def markPartitionForEvent(db_name, tbl_name, part_vals, eventType)
797
+ send_markPartitionForEvent(db_name, tbl_name, part_vals, eventType)
798
+ recv_markPartitionForEvent()
799
+ end
800
+
801
+ def send_markPartitionForEvent(db_name, tbl_name, part_vals, eventType)
802
+ send_message('markPartitionForEvent', MarkPartitionForEvent_args, :db_name => db_name, :tbl_name => tbl_name, :part_vals => part_vals, :eventType => eventType)
803
+ end
804
+
805
+ def recv_markPartitionForEvent()
806
+ result = receive_message(MarkPartitionForEvent_result)
807
+ raise result.o1 unless result.o1.nil?
808
+ raise result.o2 unless result.o2.nil?
809
+ raise result.o3 unless result.o3.nil?
810
+ raise result.o4 unless result.o4.nil?
811
+ raise result.o5 unless result.o5.nil?
812
+ raise result.o6 unless result.o6.nil?
813
+ return
814
+ end
815
+
816
+ def isPartitionMarkedForEvent(db_name, tbl_name, part_vals, eventType)
817
+ send_isPartitionMarkedForEvent(db_name, tbl_name, part_vals, eventType)
818
+ return recv_isPartitionMarkedForEvent()
819
+ end
820
+
821
+ def send_isPartitionMarkedForEvent(db_name, tbl_name, part_vals, eventType)
822
+ send_message('isPartitionMarkedForEvent', IsPartitionMarkedForEvent_args, :db_name => db_name, :tbl_name => tbl_name, :part_vals => part_vals, :eventType => eventType)
823
+ end
824
+
825
+ def recv_isPartitionMarkedForEvent()
826
+ result = receive_message(IsPartitionMarkedForEvent_result)
827
+ return result.success unless result.success.nil?
828
+ raise result.o1 unless result.o1.nil?
829
+ raise result.o2 unless result.o2.nil?
830
+ raise result.o3 unless result.o3.nil?
831
+ raise result.o4 unless result.o4.nil?
832
+ raise result.o5 unless result.o5.nil?
833
+ raise result.o6 unless result.o6.nil?
834
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'isPartitionMarkedForEvent failed: unknown result')
835
+ end
836
+
837
+ def add_index(new_index, index_table)
838
+ send_add_index(new_index, index_table)
839
+ return recv_add_index()
840
+ end
841
+
842
+ def send_add_index(new_index, index_table)
843
+ send_message('add_index', Add_index_args, :new_index => new_index, :index_table => index_table)
844
+ end
845
+
846
+ def recv_add_index()
847
+ result = receive_message(Add_index_result)
848
+ return result.success unless result.success.nil?
849
+ raise result.o1 unless result.o1.nil?
850
+ raise result.o2 unless result.o2.nil?
851
+ raise result.o3 unless result.o3.nil?
852
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'add_index failed: unknown result')
853
+ end
854
+
855
+ def alter_index(dbname, base_tbl_name, idx_name, new_idx)
856
+ send_alter_index(dbname, base_tbl_name, idx_name, new_idx)
857
+ recv_alter_index()
858
+ end
859
+
860
+ def send_alter_index(dbname, base_tbl_name, idx_name, new_idx)
861
+ send_message('alter_index', Alter_index_args, :dbname => dbname, :base_tbl_name => base_tbl_name, :idx_name => idx_name, :new_idx => new_idx)
862
+ end
863
+
864
+ def recv_alter_index()
865
+ result = receive_message(Alter_index_result)
866
+ raise result.o1 unless result.o1.nil?
867
+ raise result.o2 unless result.o2.nil?
868
+ return
869
+ end
870
+
871
+ def drop_index_by_name(db_name, tbl_name, index_name, deleteData)
872
+ send_drop_index_by_name(db_name, tbl_name, index_name, deleteData)
873
+ return recv_drop_index_by_name()
874
+ end
875
+
876
+ def send_drop_index_by_name(db_name, tbl_name, index_name, deleteData)
877
+ 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)
878
+ end
879
+
880
+ def recv_drop_index_by_name()
881
+ result = receive_message(Drop_index_by_name_result)
882
+ return result.success unless result.success.nil?
883
+ raise result.o1 unless result.o1.nil?
884
+ raise result.o2 unless result.o2.nil?
885
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'drop_index_by_name failed: unknown result')
886
+ end
887
+
888
+ def get_index_by_name(db_name, tbl_name, index_name)
889
+ send_get_index_by_name(db_name, tbl_name, index_name)
890
+ return recv_get_index_by_name()
891
+ end
892
+
893
+ def send_get_index_by_name(db_name, tbl_name, index_name)
894
+ send_message('get_index_by_name', Get_index_by_name_args, :db_name => db_name, :tbl_name => tbl_name, :index_name => index_name)
895
+ end
896
+
897
+ def recv_get_index_by_name()
898
+ result = receive_message(Get_index_by_name_result)
899
+ return result.success unless result.success.nil?
900
+ raise result.o1 unless result.o1.nil?
901
+ raise result.o2 unless result.o2.nil?
902
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_index_by_name failed: unknown result')
903
+ end
904
+
905
+ def get_indexes(db_name, tbl_name, max_indexes)
906
+ send_get_indexes(db_name, tbl_name, max_indexes)
907
+ return recv_get_indexes()
908
+ end
909
+
910
+ def send_get_indexes(db_name, tbl_name, max_indexes)
911
+ send_message('get_indexes', Get_indexes_args, :db_name => db_name, :tbl_name => tbl_name, :max_indexes => max_indexes)
912
+ end
913
+
914
+ def recv_get_indexes()
915
+ result = receive_message(Get_indexes_result)
916
+ return result.success unless result.success.nil?
917
+ raise result.o1 unless result.o1.nil?
918
+ raise result.o2 unless result.o2.nil?
919
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_indexes failed: unknown result')
920
+ end
921
+
922
+ def get_index_names(db_name, tbl_name, max_indexes)
923
+ send_get_index_names(db_name, tbl_name, max_indexes)
924
+ return recv_get_index_names()
925
+ end
926
+
927
+ def send_get_index_names(db_name, tbl_name, max_indexes)
928
+ send_message('get_index_names', Get_index_names_args, :db_name => db_name, :tbl_name => tbl_name, :max_indexes => max_indexes)
929
+ end
930
+
931
+ def recv_get_index_names()
932
+ result = receive_message(Get_index_names_result)
933
+ return result.success unless result.success.nil?
934
+ raise result.o2 unless result.o2.nil?
935
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_index_names failed: unknown result')
936
+ end
937
+
938
+ def create_role(role)
939
+ send_create_role(role)
940
+ return recv_create_role()
941
+ end
942
+
943
+ def send_create_role(role)
944
+ send_message('create_role', Create_role_args, :role => role)
945
+ end
946
+
947
+ def recv_create_role()
948
+ result = receive_message(Create_role_result)
949
+ return result.success unless result.success.nil?
950
+ raise result.o1 unless result.o1.nil?
951
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'create_role failed: unknown result')
952
+ end
953
+
954
+ def drop_role(role_name)
955
+ send_drop_role(role_name)
956
+ return recv_drop_role()
957
+ end
958
+
959
+ def send_drop_role(role_name)
960
+ send_message('drop_role', Drop_role_args, :role_name => role_name)
961
+ end
962
+
963
+ def recv_drop_role()
964
+ result = receive_message(Drop_role_result)
965
+ return result.success unless result.success.nil?
966
+ raise result.o1 unless result.o1.nil?
967
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'drop_role failed: unknown result')
968
+ end
969
+
970
+ def get_role_names()
971
+ send_get_role_names()
972
+ return recv_get_role_names()
973
+ end
974
+
975
+ def send_get_role_names()
976
+ send_message('get_role_names', Get_role_names_args)
977
+ end
978
+
979
+ def recv_get_role_names()
980
+ result = receive_message(Get_role_names_result)
981
+ return result.success unless result.success.nil?
982
+ raise result.o1 unless result.o1.nil?
983
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_role_names failed: unknown result')
984
+ end
985
+
986
+ def grant_role(role_name, principal_name, principal_type, grantor, grantorType, grant_option)
987
+ send_grant_role(role_name, principal_name, principal_type, grantor, grantorType, grant_option)
988
+ return recv_grant_role()
989
+ end
990
+
991
+ def send_grant_role(role_name, principal_name, principal_type, grantor, grantorType, grant_option)
992
+ 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)
993
+ end
994
+
995
+ def recv_grant_role()
996
+ result = receive_message(Grant_role_result)
997
+ return result.success unless result.success.nil?
998
+ raise result.o1 unless result.o1.nil?
999
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'grant_role failed: unknown result')
1000
+ end
1001
+
1002
+ def revoke_role(role_name, principal_name, principal_type)
1003
+ send_revoke_role(role_name, principal_name, principal_type)
1004
+ return recv_revoke_role()
1005
+ end
1006
+
1007
+ def send_revoke_role(role_name, principal_name, principal_type)
1008
+ send_message('revoke_role', Revoke_role_args, :role_name => role_name, :principal_name => principal_name, :principal_type => principal_type)
1009
+ end
1010
+
1011
+ def recv_revoke_role()
1012
+ result = receive_message(Revoke_role_result)
1013
+ return result.success unless result.success.nil?
1014
+ raise result.o1 unless result.o1.nil?
1015
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'revoke_role failed: unknown result')
1016
+ end
1017
+
1018
+ def list_roles(principal_name, principal_type)
1019
+ send_list_roles(principal_name, principal_type)
1020
+ return recv_list_roles()
1021
+ end
1022
+
1023
+ def send_list_roles(principal_name, principal_type)
1024
+ send_message('list_roles', List_roles_args, :principal_name => principal_name, :principal_type => principal_type)
1025
+ end
1026
+
1027
+ def recv_list_roles()
1028
+ result = receive_message(List_roles_result)
1029
+ return result.success unless result.success.nil?
1030
+ raise result.o1 unless result.o1.nil?
1031
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'list_roles failed: unknown result')
1032
+ end
1033
+
1034
+ def get_privilege_set(hiveObject, user_name, group_names)
1035
+ send_get_privilege_set(hiveObject, user_name, group_names)
1036
+ return recv_get_privilege_set()
1037
+ end
1038
+
1039
+ def send_get_privilege_set(hiveObject, user_name, group_names)
1040
+ send_message('get_privilege_set', Get_privilege_set_args, :hiveObject => hiveObject, :user_name => user_name, :group_names => group_names)
1041
+ end
1042
+
1043
+ def recv_get_privilege_set()
1044
+ result = receive_message(Get_privilege_set_result)
1045
+ return result.success unless result.success.nil?
1046
+ raise result.o1 unless result.o1.nil?
1047
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_privilege_set failed: unknown result')
1048
+ end
1049
+
1050
+ def list_privileges(principal_name, principal_type, hiveObject)
1051
+ send_list_privileges(principal_name, principal_type, hiveObject)
1052
+ return recv_list_privileges()
1053
+ end
1054
+
1055
+ def send_list_privileges(principal_name, principal_type, hiveObject)
1056
+ send_message('list_privileges', List_privileges_args, :principal_name => principal_name, :principal_type => principal_type, :hiveObject => hiveObject)
1057
+ end
1058
+
1059
+ def recv_list_privileges()
1060
+ result = receive_message(List_privileges_result)
1061
+ return result.success unless result.success.nil?
1062
+ raise result.o1 unless result.o1.nil?
1063
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'list_privileges failed: unknown result')
1064
+ end
1065
+
1066
+ def grant_privileges(privileges)
1067
+ send_grant_privileges(privileges)
1068
+ return recv_grant_privileges()
1069
+ end
1070
+
1071
+ def send_grant_privileges(privileges)
1072
+ send_message('grant_privileges', Grant_privileges_args, :privileges => privileges)
1073
+ end
1074
+
1075
+ def recv_grant_privileges()
1076
+ result = receive_message(Grant_privileges_result)
1077
+ return result.success unless result.success.nil?
1078
+ raise result.o1 unless result.o1.nil?
1079
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'grant_privileges failed: unknown result')
1080
+ end
1081
+
1082
+ def revoke_privileges(privileges)
1083
+ send_revoke_privileges(privileges)
1084
+ return recv_revoke_privileges()
1085
+ end
1086
+
1087
+ def send_revoke_privileges(privileges)
1088
+ send_message('revoke_privileges', Revoke_privileges_args, :privileges => privileges)
1089
+ end
1090
+
1091
+ def recv_revoke_privileges()
1092
+ result = receive_message(Revoke_privileges_result)
1093
+ return result.success unless result.success.nil?
1094
+ raise result.o1 unless result.o1.nil?
1095
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'revoke_privileges failed: unknown result')
1096
+ end
1097
+
1098
+ def set_ugi(user_name, group_names)
1099
+ send_set_ugi(user_name, group_names)
1100
+ return recv_set_ugi()
1101
+ end
1102
+
1103
+ def send_set_ugi(user_name, group_names)
1104
+ send_message('set_ugi', Set_ugi_args, :user_name => user_name, :group_names => group_names)
1105
+ end
1106
+
1107
+ def recv_set_ugi()
1108
+ result = receive_message(Set_ugi_result)
1109
+ return result.success unless result.success.nil?
1110
+ raise result.o1 unless result.o1.nil?
1111
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'set_ugi failed: unknown result')
1112
+ end
1113
+
1114
+ def get_delegation_token(token_owner, renewer_kerberos_principal_name)
1115
+ send_get_delegation_token(token_owner, renewer_kerberos_principal_name)
1116
+ return recv_get_delegation_token()
1117
+ end
1118
+
1119
+ def send_get_delegation_token(token_owner, renewer_kerberos_principal_name)
1120
+ send_message('get_delegation_token', Get_delegation_token_args, :token_owner => token_owner, :renewer_kerberos_principal_name => renewer_kerberos_principal_name)
1121
+ end
1122
+
1123
+ def recv_get_delegation_token()
1124
+ result = receive_message(Get_delegation_token_result)
1125
+ return result.success unless result.success.nil?
1126
+ raise result.o1 unless result.o1.nil?
1127
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_delegation_token failed: unknown result')
1128
+ end
1129
+
1130
+ def renew_delegation_token(token_str_form)
1131
+ send_renew_delegation_token(token_str_form)
1132
+ return recv_renew_delegation_token()
1133
+ end
1134
+
1135
+ def send_renew_delegation_token(token_str_form)
1136
+ send_message('renew_delegation_token', Renew_delegation_token_args, :token_str_form => token_str_form)
1137
+ end
1138
+
1139
+ def recv_renew_delegation_token()
1140
+ result = receive_message(Renew_delegation_token_result)
1141
+ return result.success unless result.success.nil?
1142
+ raise result.o1 unless result.o1.nil?
1143
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'renew_delegation_token failed: unknown result')
1144
+ end
1145
+
1146
+ def cancel_delegation_token(token_str_form)
1147
+ send_cancel_delegation_token(token_str_form)
1148
+ recv_cancel_delegation_token()
1149
+ end
1150
+
1151
+ def send_cancel_delegation_token(token_str_form)
1152
+ send_message('cancel_delegation_token', Cancel_delegation_token_args, :token_str_form => token_str_form)
1153
+ end
1154
+
1155
+ def recv_cancel_delegation_token()
1156
+ result = receive_message(Cancel_delegation_token_result)
1157
+ raise result.o1 unless result.o1.nil?
1158
+ return
1159
+ end
1160
+
1161
+ end
1162
+
1163
+ class Processor < ::Impala::Protocol::Fb303::FacebookService::Processor
1164
+ include ::Thrift::Processor
1165
+
1166
+ def process_create_database(seqid, iprot, oprot)
1167
+ args = read_args(iprot, Create_database_args)
1168
+ result = Create_database_result.new()
1169
+ begin
1170
+ @handler.create_database(args.database)
1171
+ rescue ::Impala::Protocol::HiveMetastore::AlreadyExistsException => o1
1172
+ result.o1 = o1
1173
+ rescue ::Impala::Protocol::HiveMetastore::InvalidObjectException => o2
1174
+ result.o2 = o2
1175
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o3
1176
+ result.o3 = o3
1177
+ end
1178
+ write_result(result, oprot, 'create_database', seqid)
1179
+ end
1180
+
1181
+ def process_get_database(seqid, iprot, oprot)
1182
+ args = read_args(iprot, Get_database_args)
1183
+ result = Get_database_result.new()
1184
+ begin
1185
+ result.success = @handler.get_database(args.name)
1186
+ rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o1
1187
+ result.o1 = o1
1188
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o2
1189
+ result.o2 = o2
1190
+ end
1191
+ write_result(result, oprot, 'get_database', seqid)
1192
+ end
1193
+
1194
+ def process_drop_database(seqid, iprot, oprot)
1195
+ args = read_args(iprot, Drop_database_args)
1196
+ result = Drop_database_result.new()
1197
+ begin
1198
+ @handler.drop_database(args.name, args.deleteData, args.cascade)
1199
+ rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o1
1200
+ result.o1 = o1
1201
+ rescue ::Impala::Protocol::HiveMetastore::InvalidOperationException => o2
1202
+ result.o2 = o2
1203
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o3
1204
+ result.o3 = o3
1205
+ end
1206
+ write_result(result, oprot, 'drop_database', seqid)
1207
+ end
1208
+
1209
+ def process_get_databases(seqid, iprot, oprot)
1210
+ args = read_args(iprot, Get_databases_args)
1211
+ result = Get_databases_result.new()
1212
+ begin
1213
+ result.success = @handler.get_databases(args.pattern)
1214
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1215
+ result.o1 = o1
1216
+ end
1217
+ write_result(result, oprot, 'get_databases', seqid)
1218
+ end
1219
+
1220
+ def process_get_all_databases(seqid, iprot, oprot)
1221
+ args = read_args(iprot, Get_all_databases_args)
1222
+ result = Get_all_databases_result.new()
1223
+ begin
1224
+ result.success = @handler.get_all_databases()
1225
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1226
+ result.o1 = o1
1227
+ end
1228
+ write_result(result, oprot, 'get_all_databases', seqid)
1229
+ end
1230
+
1231
+ def process_alter_database(seqid, iprot, oprot)
1232
+ args = read_args(iprot, Alter_database_args)
1233
+ result = Alter_database_result.new()
1234
+ begin
1235
+ @handler.alter_database(args.dbname, args.db)
1236
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1237
+ result.o1 = o1
1238
+ rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o2
1239
+ result.o2 = o2
1240
+ end
1241
+ write_result(result, oprot, 'alter_database', seqid)
1242
+ end
1243
+
1244
+ def process_get_type(seqid, iprot, oprot)
1245
+ args = read_args(iprot, Get_type_args)
1246
+ result = Get_type_result.new()
1247
+ begin
1248
+ result.success = @handler.get_type(args.name)
1249
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1250
+ result.o1 = o1
1251
+ rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o2
1252
+ result.o2 = o2
1253
+ end
1254
+ write_result(result, oprot, 'get_type', seqid)
1255
+ end
1256
+
1257
+ def process_create_type(seqid, iprot, oprot)
1258
+ args = read_args(iprot, Create_type_args)
1259
+ result = Create_type_result.new()
1260
+ begin
1261
+ result.success = @handler.create_type(args.type)
1262
+ rescue ::Impala::Protocol::HiveMetastore::AlreadyExistsException => o1
1263
+ result.o1 = o1
1264
+ rescue ::Impala::Protocol::HiveMetastore::InvalidObjectException => o2
1265
+ result.o2 = o2
1266
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o3
1267
+ result.o3 = o3
1268
+ end
1269
+ write_result(result, oprot, 'create_type', seqid)
1270
+ end
1271
+
1272
+ def process_drop_type(seqid, iprot, oprot)
1273
+ args = read_args(iprot, Drop_type_args)
1274
+ result = Drop_type_result.new()
1275
+ begin
1276
+ result.success = @handler.drop_type(args.type)
1277
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1278
+ result.o1 = o1
1279
+ rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o2
1280
+ result.o2 = o2
1281
+ end
1282
+ write_result(result, oprot, 'drop_type', seqid)
1283
+ end
1284
+
1285
+ def process_get_type_all(seqid, iprot, oprot)
1286
+ args = read_args(iprot, Get_type_all_args)
1287
+ result = Get_type_all_result.new()
1288
+ begin
1289
+ result.success = @handler.get_type_all(args.name)
1290
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o2
1291
+ result.o2 = o2
1292
+ end
1293
+ write_result(result, oprot, 'get_type_all', seqid)
1294
+ end
1295
+
1296
+ def process_get_fields(seqid, iprot, oprot)
1297
+ args = read_args(iprot, Get_fields_args)
1298
+ result = Get_fields_result.new()
1299
+ begin
1300
+ result.success = @handler.get_fields(args.db_name, args.table_name)
1301
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1302
+ result.o1 = o1
1303
+ rescue ::Impala::Protocol::HiveMetastore::UnknownTableException => o2
1304
+ result.o2 = o2
1305
+ rescue ::Impala::Protocol::HiveMetastore::UnknownDBException => o3
1306
+ result.o3 = o3
1307
+ end
1308
+ write_result(result, oprot, 'get_fields', seqid)
1309
+ end
1310
+
1311
+ def process_get_schema(seqid, iprot, oprot)
1312
+ args = read_args(iprot, Get_schema_args)
1313
+ result = Get_schema_result.new()
1314
+ begin
1315
+ result.success = @handler.get_schema(args.db_name, args.table_name)
1316
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1317
+ result.o1 = o1
1318
+ rescue ::Impala::Protocol::HiveMetastore::UnknownTableException => o2
1319
+ result.o2 = o2
1320
+ rescue ::Impala::Protocol::HiveMetastore::UnknownDBException => o3
1321
+ result.o3 = o3
1322
+ end
1323
+ write_result(result, oprot, 'get_schema', seqid)
1324
+ end
1325
+
1326
+ def process_create_table(seqid, iprot, oprot)
1327
+ args = read_args(iprot, Create_table_args)
1328
+ result = Create_table_result.new()
1329
+ begin
1330
+ @handler.create_table(args.tbl)
1331
+ rescue ::Impala::Protocol::HiveMetastore::AlreadyExistsException => o1
1332
+ result.o1 = o1
1333
+ rescue ::Impala::Protocol::HiveMetastore::InvalidObjectException => o2
1334
+ result.o2 = o2
1335
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o3
1336
+ result.o3 = o3
1337
+ rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o4
1338
+ result.o4 = o4
1339
+ end
1340
+ write_result(result, oprot, 'create_table', seqid)
1341
+ end
1342
+
1343
+ def process_create_table_with_environment_context(seqid, iprot, oprot)
1344
+ args = read_args(iprot, Create_table_with_environment_context_args)
1345
+ result = Create_table_with_environment_context_result.new()
1346
+ begin
1347
+ @handler.create_table_with_environment_context(args.tbl, args.environment_context)
1348
+ rescue ::Impala::Protocol::HiveMetastore::AlreadyExistsException => o1
1349
+ result.o1 = o1
1350
+ rescue ::Impala::Protocol::HiveMetastore::InvalidObjectException => o2
1351
+ result.o2 = o2
1352
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o3
1353
+ result.o3 = o3
1354
+ rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o4
1355
+ result.o4 = o4
1356
+ end
1357
+ write_result(result, oprot, 'create_table_with_environment_context', seqid)
1358
+ end
1359
+
1360
+ def process_drop_table(seqid, iprot, oprot)
1361
+ args = read_args(iprot, Drop_table_args)
1362
+ result = Drop_table_result.new()
1363
+ begin
1364
+ @handler.drop_table(args.dbname, args.name, args.deleteData)
1365
+ rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o1
1366
+ result.o1 = o1
1367
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o3
1368
+ result.o3 = o3
1369
+ end
1370
+ write_result(result, oprot, 'drop_table', seqid)
1371
+ end
1372
+
1373
+ def process_get_tables(seqid, iprot, oprot)
1374
+ args = read_args(iprot, Get_tables_args)
1375
+ result = Get_tables_result.new()
1376
+ begin
1377
+ result.success = @handler.get_tables(args.db_name, args.pattern)
1378
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1379
+ result.o1 = o1
1380
+ end
1381
+ write_result(result, oprot, 'get_tables', seqid)
1382
+ end
1383
+
1384
+ def process_get_all_tables(seqid, iprot, oprot)
1385
+ args = read_args(iprot, Get_all_tables_args)
1386
+ result = Get_all_tables_result.new()
1387
+ begin
1388
+ result.success = @handler.get_all_tables(args.db_name)
1389
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1390
+ result.o1 = o1
1391
+ end
1392
+ write_result(result, oprot, 'get_all_tables', seqid)
1393
+ end
1394
+
1395
+ def process_get_table(seqid, iprot, oprot)
1396
+ args = read_args(iprot, Get_table_args)
1397
+ result = Get_table_result.new()
1398
+ begin
1399
+ result.success = @handler.get_table(args.dbname, args.tbl_name)
1400
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1401
+ result.o1 = o1
1402
+ rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o2
1403
+ result.o2 = o2
1404
+ end
1405
+ write_result(result, oprot, 'get_table', seqid)
1406
+ end
1407
+
1408
+ def process_get_table_objects_by_name(seqid, iprot, oprot)
1409
+ args = read_args(iprot, Get_table_objects_by_name_args)
1410
+ result = Get_table_objects_by_name_result.new()
1411
+ begin
1412
+ result.success = @handler.get_table_objects_by_name(args.dbname, args.tbl_names)
1413
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1414
+ result.o1 = o1
1415
+ rescue ::Impala::Protocol::HiveMetastore::InvalidOperationException => o2
1416
+ result.o2 = o2
1417
+ rescue ::Impala::Protocol::HiveMetastore::UnknownDBException => o3
1418
+ result.o3 = o3
1419
+ end
1420
+ write_result(result, oprot, 'get_table_objects_by_name', seqid)
1421
+ end
1422
+
1423
+ def process_get_table_names_by_filter(seqid, iprot, oprot)
1424
+ args = read_args(iprot, Get_table_names_by_filter_args)
1425
+ result = Get_table_names_by_filter_result.new()
1426
+ begin
1427
+ result.success = @handler.get_table_names_by_filter(args.dbname, args.filter, args.max_tables)
1428
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1429
+ result.o1 = o1
1430
+ rescue ::Impala::Protocol::HiveMetastore::InvalidOperationException => o2
1431
+ result.o2 = o2
1432
+ rescue ::Impala::Protocol::HiveMetastore::UnknownDBException => o3
1433
+ result.o3 = o3
1434
+ end
1435
+ write_result(result, oprot, 'get_table_names_by_filter', seqid)
1436
+ end
1437
+
1438
+ def process_alter_table(seqid, iprot, oprot)
1439
+ args = read_args(iprot, Alter_table_args)
1440
+ result = Alter_table_result.new()
1441
+ begin
1442
+ @handler.alter_table(args.dbname, args.tbl_name, args.new_tbl)
1443
+ rescue ::Impala::Protocol::HiveMetastore::InvalidOperationException => o1
1444
+ result.o1 = o1
1445
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o2
1446
+ result.o2 = o2
1447
+ end
1448
+ write_result(result, oprot, 'alter_table', seqid)
1449
+ end
1450
+
1451
+ def process_alter_table_with_environment_context(seqid, iprot, oprot)
1452
+ args = read_args(iprot, Alter_table_with_environment_context_args)
1453
+ result = Alter_table_with_environment_context_result.new()
1454
+ begin
1455
+ @handler.alter_table_with_environment_context(args.dbname, args.tbl_name, args.new_tbl, args.environment_context)
1456
+ rescue ::Impala::Protocol::HiveMetastore::InvalidOperationException => o1
1457
+ result.o1 = o1
1458
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o2
1459
+ result.o2 = o2
1460
+ end
1461
+ write_result(result, oprot, 'alter_table_with_environment_context', seqid)
1462
+ end
1463
+
1464
+ def process_add_partition(seqid, iprot, oprot)
1465
+ args = read_args(iprot, Add_partition_args)
1466
+ result = Add_partition_result.new()
1467
+ begin
1468
+ result.success = @handler.add_partition(args.new_part)
1469
+ rescue ::Impala::Protocol::HiveMetastore::InvalidObjectException => o1
1470
+ result.o1 = o1
1471
+ rescue ::Impala::Protocol::HiveMetastore::AlreadyExistsException => o2
1472
+ result.o2 = o2
1473
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o3
1474
+ result.o3 = o3
1475
+ end
1476
+ write_result(result, oprot, 'add_partition', seqid)
1477
+ end
1478
+
1479
+ def process_add_partition_with_environment_context(seqid, iprot, oprot)
1480
+ args = read_args(iprot, Add_partition_with_environment_context_args)
1481
+ result = Add_partition_with_environment_context_result.new()
1482
+ begin
1483
+ result.success = @handler.add_partition_with_environment_context(args.new_part, args.environment_context)
1484
+ rescue ::Impala::Protocol::HiveMetastore::InvalidObjectException => o1
1485
+ result.o1 = o1
1486
+ rescue ::Impala::Protocol::HiveMetastore::AlreadyExistsException => o2
1487
+ result.o2 = o2
1488
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o3
1489
+ result.o3 = o3
1490
+ end
1491
+ write_result(result, oprot, 'add_partition_with_environment_context', seqid)
1492
+ end
1493
+
1494
+ def process_add_partitions(seqid, iprot, oprot)
1495
+ args = read_args(iprot, Add_partitions_args)
1496
+ result = Add_partitions_result.new()
1497
+ begin
1498
+ result.success = @handler.add_partitions(args.new_parts)
1499
+ rescue ::Impala::Protocol::HiveMetastore::InvalidObjectException => o1
1500
+ result.o1 = o1
1501
+ rescue ::Impala::Protocol::HiveMetastore::AlreadyExistsException => o2
1502
+ result.o2 = o2
1503
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o3
1504
+ result.o3 = o3
1505
+ end
1506
+ write_result(result, oprot, 'add_partitions', seqid)
1507
+ end
1508
+
1509
+ def process_append_partition(seqid, iprot, oprot)
1510
+ args = read_args(iprot, Append_partition_args)
1511
+ result = Append_partition_result.new()
1512
+ begin
1513
+ result.success = @handler.append_partition(args.db_name, args.tbl_name, args.part_vals)
1514
+ rescue ::Impala::Protocol::HiveMetastore::InvalidObjectException => o1
1515
+ result.o1 = o1
1516
+ rescue ::Impala::Protocol::HiveMetastore::AlreadyExistsException => o2
1517
+ result.o2 = o2
1518
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o3
1519
+ result.o3 = o3
1520
+ end
1521
+ write_result(result, oprot, 'append_partition', seqid)
1522
+ end
1523
+
1524
+ def process_append_partition_by_name(seqid, iprot, oprot)
1525
+ args = read_args(iprot, Append_partition_by_name_args)
1526
+ result = Append_partition_by_name_result.new()
1527
+ begin
1528
+ result.success = @handler.append_partition_by_name(args.db_name, args.tbl_name, args.part_name)
1529
+ rescue ::Impala::Protocol::HiveMetastore::InvalidObjectException => o1
1530
+ result.o1 = o1
1531
+ rescue ::Impala::Protocol::HiveMetastore::AlreadyExistsException => o2
1532
+ result.o2 = o2
1533
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o3
1534
+ result.o3 = o3
1535
+ end
1536
+ write_result(result, oprot, 'append_partition_by_name', seqid)
1537
+ end
1538
+
1539
+ def process_drop_partition(seqid, iprot, oprot)
1540
+ args = read_args(iprot, Drop_partition_args)
1541
+ result = Drop_partition_result.new()
1542
+ begin
1543
+ result.success = @handler.drop_partition(args.db_name, args.tbl_name, args.part_vals, args.deleteData)
1544
+ rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o1
1545
+ result.o1 = o1
1546
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o2
1547
+ result.o2 = o2
1548
+ end
1549
+ write_result(result, oprot, 'drop_partition', seqid)
1550
+ end
1551
+
1552
+ def process_drop_partition_by_name(seqid, iprot, oprot)
1553
+ args = read_args(iprot, Drop_partition_by_name_args)
1554
+ result = Drop_partition_by_name_result.new()
1555
+ begin
1556
+ result.success = @handler.drop_partition_by_name(args.db_name, args.tbl_name, args.part_name, args.deleteData)
1557
+ rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o1
1558
+ result.o1 = o1
1559
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o2
1560
+ result.o2 = o2
1561
+ end
1562
+ write_result(result, oprot, 'drop_partition_by_name', seqid)
1563
+ end
1564
+
1565
+ def process_get_partition(seqid, iprot, oprot)
1566
+ args = read_args(iprot, Get_partition_args)
1567
+ result = Get_partition_result.new()
1568
+ begin
1569
+ result.success = @handler.get_partition(args.db_name, args.tbl_name, args.part_vals)
1570
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1571
+ result.o1 = o1
1572
+ rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o2
1573
+ result.o2 = o2
1574
+ end
1575
+ write_result(result, oprot, 'get_partition', seqid)
1576
+ end
1577
+
1578
+ def process_get_partition_with_auth(seqid, iprot, oprot)
1579
+ args = read_args(iprot, Get_partition_with_auth_args)
1580
+ result = Get_partition_with_auth_result.new()
1581
+ begin
1582
+ result.success = @handler.get_partition_with_auth(args.db_name, args.tbl_name, args.part_vals, args.user_name, args.group_names)
1583
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1584
+ result.o1 = o1
1585
+ rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o2
1586
+ result.o2 = o2
1587
+ end
1588
+ write_result(result, oprot, 'get_partition_with_auth', seqid)
1589
+ end
1590
+
1591
+ def process_get_partition_by_name(seqid, iprot, oprot)
1592
+ args = read_args(iprot, Get_partition_by_name_args)
1593
+ result = Get_partition_by_name_result.new()
1594
+ begin
1595
+ result.success = @handler.get_partition_by_name(args.db_name, args.tbl_name, args.part_name)
1596
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1597
+ result.o1 = o1
1598
+ rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o2
1599
+ result.o2 = o2
1600
+ end
1601
+ write_result(result, oprot, 'get_partition_by_name', seqid)
1602
+ end
1603
+
1604
+ def process_get_partitions(seqid, iprot, oprot)
1605
+ args = read_args(iprot, Get_partitions_args)
1606
+ result = Get_partitions_result.new()
1607
+ begin
1608
+ result.success = @handler.get_partitions(args.db_name, args.tbl_name, args.max_parts)
1609
+ rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o1
1610
+ result.o1 = o1
1611
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o2
1612
+ result.o2 = o2
1613
+ end
1614
+ write_result(result, oprot, 'get_partitions', seqid)
1615
+ end
1616
+
1617
+ def process_get_partitions_with_auth(seqid, iprot, oprot)
1618
+ args = read_args(iprot, Get_partitions_with_auth_args)
1619
+ result = Get_partitions_with_auth_result.new()
1620
+ begin
1621
+ result.success = @handler.get_partitions_with_auth(args.db_name, args.tbl_name, args.max_parts, args.user_name, args.group_names)
1622
+ rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o1
1623
+ result.o1 = o1
1624
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o2
1625
+ result.o2 = o2
1626
+ end
1627
+ write_result(result, oprot, 'get_partitions_with_auth', seqid)
1628
+ end
1629
+
1630
+ def process_get_partition_names(seqid, iprot, oprot)
1631
+ args = read_args(iprot, Get_partition_names_args)
1632
+ result = Get_partition_names_result.new()
1633
+ begin
1634
+ result.success = @handler.get_partition_names(args.db_name, args.tbl_name, args.max_parts)
1635
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o2
1636
+ result.o2 = o2
1637
+ end
1638
+ write_result(result, oprot, 'get_partition_names', seqid)
1639
+ end
1640
+
1641
+ def process_get_partitions_ps(seqid, iprot, oprot)
1642
+ args = read_args(iprot, Get_partitions_ps_args)
1643
+ result = Get_partitions_ps_result.new()
1644
+ begin
1645
+ result.success = @handler.get_partitions_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts)
1646
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1647
+ result.o1 = o1
1648
+ rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o2
1649
+ result.o2 = o2
1650
+ end
1651
+ write_result(result, oprot, 'get_partitions_ps', seqid)
1652
+ end
1653
+
1654
+ def process_get_partitions_ps_with_auth(seqid, iprot, oprot)
1655
+ args = read_args(iprot, Get_partitions_ps_with_auth_args)
1656
+ result = Get_partitions_ps_with_auth_result.new()
1657
+ begin
1658
+ 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)
1659
+ rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o1
1660
+ result.o1 = o1
1661
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o2
1662
+ result.o2 = o2
1663
+ end
1664
+ write_result(result, oprot, 'get_partitions_ps_with_auth', seqid)
1665
+ end
1666
+
1667
+ def process_get_partition_names_ps(seqid, iprot, oprot)
1668
+ args = read_args(iprot, Get_partition_names_ps_args)
1669
+ result = Get_partition_names_ps_result.new()
1670
+ begin
1671
+ result.success = @handler.get_partition_names_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts)
1672
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1673
+ result.o1 = o1
1674
+ rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o2
1675
+ result.o2 = o2
1676
+ end
1677
+ write_result(result, oprot, 'get_partition_names_ps', seqid)
1678
+ end
1679
+
1680
+ def process_get_partitions_by_filter(seqid, iprot, oprot)
1681
+ args = read_args(iprot, Get_partitions_by_filter_args)
1682
+ result = Get_partitions_by_filter_result.new()
1683
+ begin
1684
+ result.success = @handler.get_partitions_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts)
1685
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1686
+ result.o1 = o1
1687
+ rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o2
1688
+ result.o2 = o2
1689
+ end
1690
+ write_result(result, oprot, 'get_partitions_by_filter', seqid)
1691
+ end
1692
+
1693
+ def process_get_partitions_by_names(seqid, iprot, oprot)
1694
+ args = read_args(iprot, Get_partitions_by_names_args)
1695
+ result = Get_partitions_by_names_result.new()
1696
+ begin
1697
+ result.success = @handler.get_partitions_by_names(args.db_name, args.tbl_name, args.names)
1698
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1699
+ result.o1 = o1
1700
+ rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o2
1701
+ result.o2 = o2
1702
+ end
1703
+ write_result(result, oprot, 'get_partitions_by_names', seqid)
1704
+ end
1705
+
1706
+ def process_alter_partition(seqid, iprot, oprot)
1707
+ args = read_args(iprot, Alter_partition_args)
1708
+ result = Alter_partition_result.new()
1709
+ begin
1710
+ @handler.alter_partition(args.db_name, args.tbl_name, args.new_part)
1711
+ rescue ::Impala::Protocol::HiveMetastore::InvalidOperationException => o1
1712
+ result.o1 = o1
1713
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o2
1714
+ result.o2 = o2
1715
+ end
1716
+ write_result(result, oprot, 'alter_partition', seqid)
1717
+ end
1718
+
1719
+ def process_alter_partition_with_environment_context(seqid, iprot, oprot)
1720
+ args = read_args(iprot, Alter_partition_with_environment_context_args)
1721
+ result = Alter_partition_with_environment_context_result.new()
1722
+ begin
1723
+ @handler.alter_partition_with_environment_context(args.db_name, args.tbl_name, args.new_part, args.environment_context)
1724
+ rescue ::Impala::Protocol::HiveMetastore::InvalidOperationException => o1
1725
+ result.o1 = o1
1726
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o2
1727
+ result.o2 = o2
1728
+ end
1729
+ write_result(result, oprot, 'alter_partition_with_environment_context', seqid)
1730
+ end
1731
+
1732
+ def process_rename_partition(seqid, iprot, oprot)
1733
+ args = read_args(iprot, Rename_partition_args)
1734
+ result = Rename_partition_result.new()
1735
+ begin
1736
+ @handler.rename_partition(args.db_name, args.tbl_name, args.part_vals, args.new_part)
1737
+ rescue ::Impala::Protocol::HiveMetastore::InvalidOperationException => o1
1738
+ result.o1 = o1
1739
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o2
1740
+ result.o2 = o2
1741
+ end
1742
+ write_result(result, oprot, 'rename_partition', seqid)
1743
+ end
1744
+
1745
+ def process_get_config_value(seqid, iprot, oprot)
1746
+ args = read_args(iprot, Get_config_value_args)
1747
+ result = Get_config_value_result.new()
1748
+ begin
1749
+ result.success = @handler.get_config_value(args.name, args.defaultValue)
1750
+ rescue ::Impala::Protocol::HiveMetastore::ConfigValSecurityException => o1
1751
+ result.o1 = o1
1752
+ end
1753
+ write_result(result, oprot, 'get_config_value', seqid)
1754
+ end
1755
+
1756
+ def process_partition_name_to_vals(seqid, iprot, oprot)
1757
+ args = read_args(iprot, Partition_name_to_vals_args)
1758
+ result = Partition_name_to_vals_result.new()
1759
+ begin
1760
+ result.success = @handler.partition_name_to_vals(args.part_name)
1761
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1762
+ result.o1 = o1
1763
+ end
1764
+ write_result(result, oprot, 'partition_name_to_vals', seqid)
1765
+ end
1766
+
1767
+ def process_partition_name_to_spec(seqid, iprot, oprot)
1768
+ args = read_args(iprot, Partition_name_to_spec_args)
1769
+ result = Partition_name_to_spec_result.new()
1770
+ begin
1771
+ result.success = @handler.partition_name_to_spec(args.part_name)
1772
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1773
+ result.o1 = o1
1774
+ end
1775
+ write_result(result, oprot, 'partition_name_to_spec', seqid)
1776
+ end
1777
+
1778
+ def process_markPartitionForEvent(seqid, iprot, oprot)
1779
+ args = read_args(iprot, MarkPartitionForEvent_args)
1780
+ result = MarkPartitionForEvent_result.new()
1781
+ begin
1782
+ @handler.markPartitionForEvent(args.db_name, args.tbl_name, args.part_vals, args.eventType)
1783
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1784
+ result.o1 = o1
1785
+ rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o2
1786
+ result.o2 = o2
1787
+ rescue ::Impala::Protocol::HiveMetastore::UnknownDBException => o3
1788
+ result.o3 = o3
1789
+ rescue ::Impala::Protocol::HiveMetastore::UnknownTableException => o4
1790
+ result.o4 = o4
1791
+ rescue ::Impala::Protocol::HiveMetastore::UnknownPartitionException => o5
1792
+ result.o5 = o5
1793
+ rescue ::Impala::Protocol::HiveMetastore::InvalidPartitionException => o6
1794
+ result.o6 = o6
1795
+ end
1796
+ write_result(result, oprot, 'markPartitionForEvent', seqid)
1797
+ end
1798
+
1799
+ def process_isPartitionMarkedForEvent(seqid, iprot, oprot)
1800
+ args = read_args(iprot, IsPartitionMarkedForEvent_args)
1801
+ result = IsPartitionMarkedForEvent_result.new()
1802
+ begin
1803
+ result.success = @handler.isPartitionMarkedForEvent(args.db_name, args.tbl_name, args.part_vals, args.eventType)
1804
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1805
+ result.o1 = o1
1806
+ rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o2
1807
+ result.o2 = o2
1808
+ rescue ::Impala::Protocol::HiveMetastore::UnknownDBException => o3
1809
+ result.o3 = o3
1810
+ rescue ::Impala::Protocol::HiveMetastore::UnknownTableException => o4
1811
+ result.o4 = o4
1812
+ rescue ::Impala::Protocol::HiveMetastore::UnknownPartitionException => o5
1813
+ result.o5 = o5
1814
+ rescue ::Impala::Protocol::HiveMetastore::InvalidPartitionException => o6
1815
+ result.o6 = o6
1816
+ end
1817
+ write_result(result, oprot, 'isPartitionMarkedForEvent', seqid)
1818
+ end
1819
+
1820
+ def process_add_index(seqid, iprot, oprot)
1821
+ args = read_args(iprot, Add_index_args)
1822
+ result = Add_index_result.new()
1823
+ begin
1824
+ result.success = @handler.add_index(args.new_index, args.index_table)
1825
+ rescue ::Impala::Protocol::HiveMetastore::InvalidObjectException => o1
1826
+ result.o1 = o1
1827
+ rescue ::Impala::Protocol::HiveMetastore::AlreadyExistsException => o2
1828
+ result.o2 = o2
1829
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o3
1830
+ result.o3 = o3
1831
+ end
1832
+ write_result(result, oprot, 'add_index', seqid)
1833
+ end
1834
+
1835
+ def process_alter_index(seqid, iprot, oprot)
1836
+ args = read_args(iprot, Alter_index_args)
1837
+ result = Alter_index_result.new()
1838
+ begin
1839
+ @handler.alter_index(args.dbname, args.base_tbl_name, args.idx_name, args.new_idx)
1840
+ rescue ::Impala::Protocol::HiveMetastore::InvalidOperationException => o1
1841
+ result.o1 = o1
1842
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o2
1843
+ result.o2 = o2
1844
+ end
1845
+ write_result(result, oprot, 'alter_index', seqid)
1846
+ end
1847
+
1848
+ def process_drop_index_by_name(seqid, iprot, oprot)
1849
+ args = read_args(iprot, Drop_index_by_name_args)
1850
+ result = Drop_index_by_name_result.new()
1851
+ begin
1852
+ result.success = @handler.drop_index_by_name(args.db_name, args.tbl_name, args.index_name, args.deleteData)
1853
+ rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o1
1854
+ result.o1 = o1
1855
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o2
1856
+ result.o2 = o2
1857
+ end
1858
+ write_result(result, oprot, 'drop_index_by_name', seqid)
1859
+ end
1860
+
1861
+ def process_get_index_by_name(seqid, iprot, oprot)
1862
+ args = read_args(iprot, Get_index_by_name_args)
1863
+ result = Get_index_by_name_result.new()
1864
+ begin
1865
+ result.success = @handler.get_index_by_name(args.db_name, args.tbl_name, args.index_name)
1866
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1867
+ result.o1 = o1
1868
+ rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o2
1869
+ result.o2 = o2
1870
+ end
1871
+ write_result(result, oprot, 'get_index_by_name', seqid)
1872
+ end
1873
+
1874
+ def process_get_indexes(seqid, iprot, oprot)
1875
+ args = read_args(iprot, Get_indexes_args)
1876
+ result = Get_indexes_result.new()
1877
+ begin
1878
+ result.success = @handler.get_indexes(args.db_name, args.tbl_name, args.max_indexes)
1879
+ rescue ::Impala::Protocol::HiveMetastore::NoSuchObjectException => o1
1880
+ result.o1 = o1
1881
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o2
1882
+ result.o2 = o2
1883
+ end
1884
+ write_result(result, oprot, 'get_indexes', seqid)
1885
+ end
1886
+
1887
+ def process_get_index_names(seqid, iprot, oprot)
1888
+ args = read_args(iprot, Get_index_names_args)
1889
+ result = Get_index_names_result.new()
1890
+ begin
1891
+ result.success = @handler.get_index_names(args.db_name, args.tbl_name, args.max_indexes)
1892
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o2
1893
+ result.o2 = o2
1894
+ end
1895
+ write_result(result, oprot, 'get_index_names', seqid)
1896
+ end
1897
+
1898
+ def process_create_role(seqid, iprot, oprot)
1899
+ args = read_args(iprot, Create_role_args)
1900
+ result = Create_role_result.new()
1901
+ begin
1902
+ result.success = @handler.create_role(args.role)
1903
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1904
+ result.o1 = o1
1905
+ end
1906
+ write_result(result, oprot, 'create_role', seqid)
1907
+ end
1908
+
1909
+ def process_drop_role(seqid, iprot, oprot)
1910
+ args = read_args(iprot, Drop_role_args)
1911
+ result = Drop_role_result.new()
1912
+ begin
1913
+ result.success = @handler.drop_role(args.role_name)
1914
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1915
+ result.o1 = o1
1916
+ end
1917
+ write_result(result, oprot, 'drop_role', seqid)
1918
+ end
1919
+
1920
+ def process_get_role_names(seqid, iprot, oprot)
1921
+ args = read_args(iprot, Get_role_names_args)
1922
+ result = Get_role_names_result.new()
1923
+ begin
1924
+ result.success = @handler.get_role_names()
1925
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1926
+ result.o1 = o1
1927
+ end
1928
+ write_result(result, oprot, 'get_role_names', seqid)
1929
+ end
1930
+
1931
+ def process_grant_role(seqid, iprot, oprot)
1932
+ args = read_args(iprot, Grant_role_args)
1933
+ result = Grant_role_result.new()
1934
+ begin
1935
+ result.success = @handler.grant_role(args.role_name, args.principal_name, args.principal_type, args.grantor, args.grantorType, args.grant_option)
1936
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1937
+ result.o1 = o1
1938
+ end
1939
+ write_result(result, oprot, 'grant_role', seqid)
1940
+ end
1941
+
1942
+ def process_revoke_role(seqid, iprot, oprot)
1943
+ args = read_args(iprot, Revoke_role_args)
1944
+ result = Revoke_role_result.new()
1945
+ begin
1946
+ result.success = @handler.revoke_role(args.role_name, args.principal_name, args.principal_type)
1947
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1948
+ result.o1 = o1
1949
+ end
1950
+ write_result(result, oprot, 'revoke_role', seqid)
1951
+ end
1952
+
1953
+ def process_list_roles(seqid, iprot, oprot)
1954
+ args = read_args(iprot, List_roles_args)
1955
+ result = List_roles_result.new()
1956
+ begin
1957
+ result.success = @handler.list_roles(args.principal_name, args.principal_type)
1958
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1959
+ result.o1 = o1
1960
+ end
1961
+ write_result(result, oprot, 'list_roles', seqid)
1962
+ end
1963
+
1964
+ def process_get_privilege_set(seqid, iprot, oprot)
1965
+ args = read_args(iprot, Get_privilege_set_args)
1966
+ result = Get_privilege_set_result.new()
1967
+ begin
1968
+ result.success = @handler.get_privilege_set(args.hiveObject, args.user_name, args.group_names)
1969
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1970
+ result.o1 = o1
1971
+ end
1972
+ write_result(result, oprot, 'get_privilege_set', seqid)
1973
+ end
1974
+
1975
+ def process_list_privileges(seqid, iprot, oprot)
1976
+ args = read_args(iprot, List_privileges_args)
1977
+ result = List_privileges_result.new()
1978
+ begin
1979
+ result.success = @handler.list_privileges(args.principal_name, args.principal_type, args.hiveObject)
1980
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1981
+ result.o1 = o1
1982
+ end
1983
+ write_result(result, oprot, 'list_privileges', seqid)
1984
+ end
1985
+
1986
+ def process_grant_privileges(seqid, iprot, oprot)
1987
+ args = read_args(iprot, Grant_privileges_args)
1988
+ result = Grant_privileges_result.new()
1989
+ begin
1990
+ result.success = @handler.grant_privileges(args.privileges)
1991
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
1992
+ result.o1 = o1
1993
+ end
1994
+ write_result(result, oprot, 'grant_privileges', seqid)
1995
+ end
1996
+
1997
+ def process_revoke_privileges(seqid, iprot, oprot)
1998
+ args = read_args(iprot, Revoke_privileges_args)
1999
+ result = Revoke_privileges_result.new()
2000
+ begin
2001
+ result.success = @handler.revoke_privileges(args.privileges)
2002
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
2003
+ result.o1 = o1
2004
+ end
2005
+ write_result(result, oprot, 'revoke_privileges', seqid)
2006
+ end
2007
+
2008
+ def process_set_ugi(seqid, iprot, oprot)
2009
+ args = read_args(iprot, Set_ugi_args)
2010
+ result = Set_ugi_result.new()
2011
+ begin
2012
+ result.success = @handler.set_ugi(args.user_name, args.group_names)
2013
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
2014
+ result.o1 = o1
2015
+ end
2016
+ write_result(result, oprot, 'set_ugi', seqid)
2017
+ end
2018
+
2019
+ def process_get_delegation_token(seqid, iprot, oprot)
2020
+ args = read_args(iprot, Get_delegation_token_args)
2021
+ result = Get_delegation_token_result.new()
2022
+ begin
2023
+ result.success = @handler.get_delegation_token(args.token_owner, args.renewer_kerberos_principal_name)
2024
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
2025
+ result.o1 = o1
2026
+ end
2027
+ write_result(result, oprot, 'get_delegation_token', seqid)
2028
+ end
2029
+
2030
+ def process_renew_delegation_token(seqid, iprot, oprot)
2031
+ args = read_args(iprot, Renew_delegation_token_args)
2032
+ result = Renew_delegation_token_result.new()
2033
+ begin
2034
+ result.success = @handler.renew_delegation_token(args.token_str_form)
2035
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
2036
+ result.o1 = o1
2037
+ end
2038
+ write_result(result, oprot, 'renew_delegation_token', seqid)
2039
+ end
2040
+
2041
+ def process_cancel_delegation_token(seqid, iprot, oprot)
2042
+ args = read_args(iprot, Cancel_delegation_token_args)
2043
+ result = Cancel_delegation_token_result.new()
2044
+ begin
2045
+ @handler.cancel_delegation_token(args.token_str_form)
2046
+ rescue ::Impala::Protocol::HiveMetastore::MetaException => o1
2047
+ result.o1 = o1
2048
+ end
2049
+ write_result(result, oprot, 'cancel_delegation_token', seqid)
2050
+ end
2051
+
2052
+ end
2053
+
2054
+ # HELPER FUNCTIONS AND STRUCTURES
2055
+
2056
+ class Create_database_args
2057
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2058
+ DATABASE = 1
2059
+
2060
+ FIELDS = {
2061
+ DATABASE => {:type => ::Thrift::Types::STRUCT, :name => 'database', :class => ::Impala::Protocol::HiveMetastore::Database}
2062
+ }
2063
+
2064
+ def struct_fields; FIELDS; end
2065
+
2066
+ def validate
2067
+ end
2068
+
2069
+ ::Thrift::Struct.generate_accessors self
2070
+ end
2071
+
2072
+ class Create_database_result
2073
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2074
+ O1 = 1
2075
+ O2 = 2
2076
+ O3 = 3
2077
+
2078
+ FIELDS = {
2079
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::AlreadyExistsException},
2080
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::InvalidObjectException},
2081
+ O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::Impala::Protocol::HiveMetastore::MetaException}
2082
+ }
2083
+
2084
+ def struct_fields; FIELDS; end
2085
+
2086
+ def validate
2087
+ end
2088
+
2089
+ ::Thrift::Struct.generate_accessors self
2090
+ end
2091
+
2092
+ class Get_database_args
2093
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2094
+ NAME = 1
2095
+
2096
+ FIELDS = {
2097
+ NAME => {:type => ::Thrift::Types::STRING, :name => 'name'}
2098
+ }
2099
+
2100
+ def struct_fields; FIELDS; end
2101
+
2102
+ def validate
2103
+ end
2104
+
2105
+ ::Thrift::Struct.generate_accessors self
2106
+ end
2107
+
2108
+ class Get_database_result
2109
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2110
+ SUCCESS = 0
2111
+ O1 = 1
2112
+ O2 = 2
2113
+
2114
+ FIELDS = {
2115
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::HiveMetastore::Database},
2116
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::NoSuchObjectException},
2117
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::MetaException}
2118
+ }
2119
+
2120
+ def struct_fields; FIELDS; end
2121
+
2122
+ def validate
2123
+ end
2124
+
2125
+ ::Thrift::Struct.generate_accessors self
2126
+ end
2127
+
2128
+ class Drop_database_args
2129
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2130
+ NAME = 1
2131
+ DELETEDATA = 2
2132
+ CASCADE = 3
2133
+
2134
+ FIELDS = {
2135
+ NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
2136
+ DELETEDATA => {:type => ::Thrift::Types::BOOL, :name => 'deleteData'},
2137
+ CASCADE => {:type => ::Thrift::Types::BOOL, :name => 'cascade'}
2138
+ }
2139
+
2140
+ def struct_fields; FIELDS; end
2141
+
2142
+ def validate
2143
+ end
2144
+
2145
+ ::Thrift::Struct.generate_accessors self
2146
+ end
2147
+
2148
+ class Drop_database_result
2149
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2150
+ O1 = 1
2151
+ O2 = 2
2152
+ O3 = 3
2153
+
2154
+ FIELDS = {
2155
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::NoSuchObjectException},
2156
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::InvalidOperationException},
2157
+ O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::Impala::Protocol::HiveMetastore::MetaException}
2158
+ }
2159
+
2160
+ def struct_fields; FIELDS; end
2161
+
2162
+ def validate
2163
+ end
2164
+
2165
+ ::Thrift::Struct.generate_accessors self
2166
+ end
2167
+
2168
+ class Get_databases_args
2169
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2170
+ PATTERN = 1
2171
+
2172
+ FIELDS = {
2173
+ PATTERN => {:type => ::Thrift::Types::STRING, :name => 'pattern'}
2174
+ }
2175
+
2176
+ def struct_fields; FIELDS; end
2177
+
2178
+ def validate
2179
+ end
2180
+
2181
+ ::Thrift::Struct.generate_accessors self
2182
+ end
2183
+
2184
+ class Get_databases_result
2185
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2186
+ SUCCESS = 0
2187
+ O1 = 1
2188
+
2189
+ FIELDS = {
2190
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
2191
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException}
2192
+ }
2193
+
2194
+ def struct_fields; FIELDS; end
2195
+
2196
+ def validate
2197
+ end
2198
+
2199
+ ::Thrift::Struct.generate_accessors self
2200
+ end
2201
+
2202
+ class Get_all_databases_args
2203
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2204
+
2205
+ FIELDS = {
2206
+
2207
+ }
2208
+
2209
+ def struct_fields; FIELDS; end
2210
+
2211
+ def validate
2212
+ end
2213
+
2214
+ ::Thrift::Struct.generate_accessors self
2215
+ end
2216
+
2217
+ class Get_all_databases_result
2218
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2219
+ SUCCESS = 0
2220
+ O1 = 1
2221
+
2222
+ FIELDS = {
2223
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
2224
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException}
2225
+ }
2226
+
2227
+ def struct_fields; FIELDS; end
2228
+
2229
+ def validate
2230
+ end
2231
+
2232
+ ::Thrift::Struct.generate_accessors self
2233
+ end
2234
+
2235
+ class Alter_database_args
2236
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2237
+ DBNAME = 1
2238
+ DB = 2
2239
+
2240
+ FIELDS = {
2241
+ DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbname'},
2242
+ DB => {:type => ::Thrift::Types::STRUCT, :name => 'db', :class => ::Impala::Protocol::HiveMetastore::Database}
2243
+ }
2244
+
2245
+ def struct_fields; FIELDS; end
2246
+
2247
+ def validate
2248
+ end
2249
+
2250
+ ::Thrift::Struct.generate_accessors self
2251
+ end
2252
+
2253
+ class Alter_database_result
2254
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2255
+ O1 = 1
2256
+ O2 = 2
2257
+
2258
+ FIELDS = {
2259
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException},
2260
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::NoSuchObjectException}
2261
+ }
2262
+
2263
+ def struct_fields; FIELDS; end
2264
+
2265
+ def validate
2266
+ end
2267
+
2268
+ ::Thrift::Struct.generate_accessors self
2269
+ end
2270
+
2271
+ class Get_type_args
2272
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2273
+ NAME = 1
2274
+
2275
+ FIELDS = {
2276
+ NAME => {:type => ::Thrift::Types::STRING, :name => 'name'}
2277
+ }
2278
+
2279
+ def struct_fields; FIELDS; end
2280
+
2281
+ def validate
2282
+ end
2283
+
2284
+ ::Thrift::Struct.generate_accessors self
2285
+ end
2286
+
2287
+ class Get_type_result
2288
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2289
+ SUCCESS = 0
2290
+ O1 = 1
2291
+ O2 = 2
2292
+
2293
+ FIELDS = {
2294
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::HiveMetastore::Type},
2295
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException},
2296
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::NoSuchObjectException}
2297
+ }
2298
+
2299
+ def struct_fields; FIELDS; end
2300
+
2301
+ def validate
2302
+ end
2303
+
2304
+ ::Thrift::Struct.generate_accessors self
2305
+ end
2306
+
2307
+ class Create_type_args
2308
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2309
+ TYPE = 1
2310
+
2311
+ FIELDS = {
2312
+ TYPE => {:type => ::Thrift::Types::STRUCT, :name => 'type', :class => ::Impala::Protocol::HiveMetastore::Type}
2313
+ }
2314
+
2315
+ def struct_fields; FIELDS; end
2316
+
2317
+ def validate
2318
+ end
2319
+
2320
+ ::Thrift::Struct.generate_accessors self
2321
+ end
2322
+
2323
+ class Create_type_result
2324
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2325
+ SUCCESS = 0
2326
+ O1 = 1
2327
+ O2 = 2
2328
+ O3 = 3
2329
+
2330
+ FIELDS = {
2331
+ SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
2332
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::AlreadyExistsException},
2333
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::InvalidObjectException},
2334
+ O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::Impala::Protocol::HiveMetastore::MetaException}
2335
+ }
2336
+
2337
+ def struct_fields; FIELDS; end
2338
+
2339
+ def validate
2340
+ end
2341
+
2342
+ ::Thrift::Struct.generate_accessors self
2343
+ end
2344
+
2345
+ class Drop_type_args
2346
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2347
+ TYPE = 1
2348
+
2349
+ FIELDS = {
2350
+ TYPE => {:type => ::Thrift::Types::STRING, :name => 'type'}
2351
+ }
2352
+
2353
+ def struct_fields; FIELDS; end
2354
+
2355
+ def validate
2356
+ end
2357
+
2358
+ ::Thrift::Struct.generate_accessors self
2359
+ end
2360
+
2361
+ class Drop_type_result
2362
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2363
+ SUCCESS = 0
2364
+ O1 = 1
2365
+ O2 = 2
2366
+
2367
+ FIELDS = {
2368
+ SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
2369
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException},
2370
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::NoSuchObjectException}
2371
+ }
2372
+
2373
+ def struct_fields; FIELDS; end
2374
+
2375
+ def validate
2376
+ end
2377
+
2378
+ ::Thrift::Struct.generate_accessors self
2379
+ end
2380
+
2381
+ class Get_type_all_args
2382
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2383
+ NAME = 1
2384
+
2385
+ FIELDS = {
2386
+ NAME => {:type => ::Thrift::Types::STRING, :name => 'name'}
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 Get_type_all_result
2398
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2399
+ SUCCESS = 0
2400
+ O2 = 1
2401
+
2402
+ FIELDS = {
2403
+ SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Impala::Protocol::HiveMetastore::Type}},
2404
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::MetaException}
2405
+ }
2406
+
2407
+ def struct_fields; FIELDS; end
2408
+
2409
+ def validate
2410
+ end
2411
+
2412
+ ::Thrift::Struct.generate_accessors self
2413
+ end
2414
+
2415
+ class Get_fields_args
2416
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2417
+ DB_NAME = 1
2418
+ TABLE_NAME = 2
2419
+
2420
+ FIELDS = {
2421
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
2422
+ TABLE_NAME => {:type => ::Thrift::Types::STRING, :name => 'table_name'}
2423
+ }
2424
+
2425
+ def struct_fields; FIELDS; end
2426
+
2427
+ def validate
2428
+ end
2429
+
2430
+ ::Thrift::Struct.generate_accessors self
2431
+ end
2432
+
2433
+ class Get_fields_result
2434
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2435
+ SUCCESS = 0
2436
+ O1 = 1
2437
+ O2 = 2
2438
+ O3 = 3
2439
+
2440
+ FIELDS = {
2441
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Impala::Protocol::HiveMetastore::FieldSchema}},
2442
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException},
2443
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::UnknownTableException},
2444
+ O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::Impala::Protocol::HiveMetastore::UnknownDBException}
2445
+ }
2446
+
2447
+ def struct_fields; FIELDS; end
2448
+
2449
+ def validate
2450
+ end
2451
+
2452
+ ::Thrift::Struct.generate_accessors self
2453
+ end
2454
+
2455
+ class Get_schema_args
2456
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2457
+ DB_NAME = 1
2458
+ TABLE_NAME = 2
2459
+
2460
+ FIELDS = {
2461
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
2462
+ TABLE_NAME => {:type => ::Thrift::Types::STRING, :name => 'table_name'}
2463
+ }
2464
+
2465
+ def struct_fields; FIELDS; end
2466
+
2467
+ def validate
2468
+ end
2469
+
2470
+ ::Thrift::Struct.generate_accessors self
2471
+ end
2472
+
2473
+ class Get_schema_result
2474
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2475
+ SUCCESS = 0
2476
+ O1 = 1
2477
+ O2 = 2
2478
+ O3 = 3
2479
+
2480
+ FIELDS = {
2481
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Impala::Protocol::HiveMetastore::FieldSchema}},
2482
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException},
2483
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::UnknownTableException},
2484
+ O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::Impala::Protocol::HiveMetastore::UnknownDBException}
2485
+ }
2486
+
2487
+ def struct_fields; FIELDS; end
2488
+
2489
+ def validate
2490
+ end
2491
+
2492
+ ::Thrift::Struct.generate_accessors self
2493
+ end
2494
+
2495
+ class Create_table_args
2496
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2497
+ TBL = 1
2498
+
2499
+ FIELDS = {
2500
+ TBL => {:type => ::Thrift::Types::STRUCT, :name => 'tbl', :class => ::Impala::Protocol::HiveMetastore::Table}
2501
+ }
2502
+
2503
+ def struct_fields; FIELDS; end
2504
+
2505
+ def validate
2506
+ end
2507
+
2508
+ ::Thrift::Struct.generate_accessors self
2509
+ end
2510
+
2511
+ class Create_table_result
2512
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2513
+ O1 = 1
2514
+ O2 = 2
2515
+ O3 = 3
2516
+ O4 = 4
2517
+
2518
+ FIELDS = {
2519
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::AlreadyExistsException},
2520
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::InvalidObjectException},
2521
+ O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::Impala::Protocol::HiveMetastore::MetaException},
2522
+ O4 => {:type => ::Thrift::Types::STRUCT, :name => 'o4', :class => ::Impala::Protocol::HiveMetastore::NoSuchObjectException}
2523
+ }
2524
+
2525
+ def struct_fields; FIELDS; end
2526
+
2527
+ def validate
2528
+ end
2529
+
2530
+ ::Thrift::Struct.generate_accessors self
2531
+ end
2532
+
2533
+ class Create_table_with_environment_context_args
2534
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2535
+ TBL = 1
2536
+ ENVIRONMENT_CONTEXT = 2
2537
+
2538
+ FIELDS = {
2539
+ TBL => {:type => ::Thrift::Types::STRUCT, :name => 'tbl', :class => ::Impala::Protocol::HiveMetastore::Table},
2540
+ ENVIRONMENT_CONTEXT => {:type => ::Thrift::Types::STRUCT, :name => 'environment_context', :class => ::Impala::Protocol::HiveMetastore::EnvironmentContext}
2541
+ }
2542
+
2543
+ def struct_fields; FIELDS; end
2544
+
2545
+ def validate
2546
+ end
2547
+
2548
+ ::Thrift::Struct.generate_accessors self
2549
+ end
2550
+
2551
+ class Create_table_with_environment_context_result
2552
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2553
+ O1 = 1
2554
+ O2 = 2
2555
+ O3 = 3
2556
+ O4 = 4
2557
+
2558
+ FIELDS = {
2559
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::AlreadyExistsException},
2560
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::InvalidObjectException},
2561
+ O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::Impala::Protocol::HiveMetastore::MetaException},
2562
+ O4 => {:type => ::Thrift::Types::STRUCT, :name => 'o4', :class => ::Impala::Protocol::HiveMetastore::NoSuchObjectException}
2563
+ }
2564
+
2565
+ def struct_fields; FIELDS; end
2566
+
2567
+ def validate
2568
+ end
2569
+
2570
+ ::Thrift::Struct.generate_accessors self
2571
+ end
2572
+
2573
+ class Drop_table_args
2574
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2575
+ DBNAME = 1
2576
+ NAME = 2
2577
+ DELETEDATA = 3
2578
+
2579
+ FIELDS = {
2580
+ DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbname'},
2581
+ NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
2582
+ DELETEDATA => {:type => ::Thrift::Types::BOOL, :name => 'deleteData'}
2583
+ }
2584
+
2585
+ def struct_fields; FIELDS; end
2586
+
2587
+ def validate
2588
+ end
2589
+
2590
+ ::Thrift::Struct.generate_accessors self
2591
+ end
2592
+
2593
+ class Drop_table_result
2594
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2595
+ O1 = 1
2596
+ O3 = 2
2597
+
2598
+ FIELDS = {
2599
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::NoSuchObjectException},
2600
+ O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::Impala::Protocol::HiveMetastore::MetaException}
2601
+ }
2602
+
2603
+ def struct_fields; FIELDS; end
2604
+
2605
+ def validate
2606
+ end
2607
+
2608
+ ::Thrift::Struct.generate_accessors self
2609
+ end
2610
+
2611
+ class Get_tables_args
2612
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2613
+ DB_NAME = 1
2614
+ PATTERN = 2
2615
+
2616
+ FIELDS = {
2617
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
2618
+ PATTERN => {:type => ::Thrift::Types::STRING, :name => 'pattern'}
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_tables_result
2630
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2631
+ SUCCESS = 0
2632
+ O1 = 1
2633
+
2634
+ FIELDS = {
2635
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
2636
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException}
2637
+ }
2638
+
2639
+ def struct_fields; FIELDS; end
2640
+
2641
+ def validate
2642
+ end
2643
+
2644
+ ::Thrift::Struct.generate_accessors self
2645
+ end
2646
+
2647
+ class Get_all_tables_args
2648
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2649
+ DB_NAME = 1
2650
+
2651
+ FIELDS = {
2652
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'}
2653
+ }
2654
+
2655
+ def struct_fields; FIELDS; end
2656
+
2657
+ def validate
2658
+ end
2659
+
2660
+ ::Thrift::Struct.generate_accessors self
2661
+ end
2662
+
2663
+ class Get_all_tables_result
2664
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2665
+ SUCCESS = 0
2666
+ O1 = 1
2667
+
2668
+ FIELDS = {
2669
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
2670
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException}
2671
+ }
2672
+
2673
+ def struct_fields; FIELDS; end
2674
+
2675
+ def validate
2676
+ end
2677
+
2678
+ ::Thrift::Struct.generate_accessors self
2679
+ end
2680
+
2681
+ class Get_table_args
2682
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2683
+ DBNAME = 1
2684
+ TBL_NAME = 2
2685
+
2686
+ FIELDS = {
2687
+ DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbname'},
2688
+ TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'}
2689
+ }
2690
+
2691
+ def struct_fields; FIELDS; end
2692
+
2693
+ def validate
2694
+ end
2695
+
2696
+ ::Thrift::Struct.generate_accessors self
2697
+ end
2698
+
2699
+ class Get_table_result
2700
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2701
+ SUCCESS = 0
2702
+ O1 = 1
2703
+ O2 = 2
2704
+
2705
+ FIELDS = {
2706
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::HiveMetastore::Table},
2707
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException},
2708
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::NoSuchObjectException}
2709
+ }
2710
+
2711
+ def struct_fields; FIELDS; end
2712
+
2713
+ def validate
2714
+ end
2715
+
2716
+ ::Thrift::Struct.generate_accessors self
2717
+ end
2718
+
2719
+ class Get_table_objects_by_name_args
2720
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2721
+ DBNAME = 1
2722
+ TBL_NAMES = 2
2723
+
2724
+ FIELDS = {
2725
+ DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbname'},
2726
+ TBL_NAMES => {:type => ::Thrift::Types::LIST, :name => 'tbl_names', :element => {:type => ::Thrift::Types::STRING}}
2727
+ }
2728
+
2729
+ def struct_fields; FIELDS; end
2730
+
2731
+ def validate
2732
+ end
2733
+
2734
+ ::Thrift::Struct.generate_accessors self
2735
+ end
2736
+
2737
+ class Get_table_objects_by_name_result
2738
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2739
+ SUCCESS = 0
2740
+ O1 = 1
2741
+ O2 = 2
2742
+ O3 = 3
2743
+
2744
+ FIELDS = {
2745
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Impala::Protocol::HiveMetastore::Table}},
2746
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException},
2747
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::InvalidOperationException},
2748
+ O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::Impala::Protocol::HiveMetastore::UnknownDBException}
2749
+ }
2750
+
2751
+ def struct_fields; FIELDS; end
2752
+
2753
+ def validate
2754
+ end
2755
+
2756
+ ::Thrift::Struct.generate_accessors self
2757
+ end
2758
+
2759
+ class Get_table_names_by_filter_args
2760
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2761
+ DBNAME = 1
2762
+ FILTER = 2
2763
+ MAX_TABLES = 3
2764
+
2765
+ FIELDS = {
2766
+ DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbname'},
2767
+ FILTER => {:type => ::Thrift::Types::STRING, :name => 'filter'},
2768
+ MAX_TABLES => {:type => ::Thrift::Types::I16, :name => 'max_tables', :default => -1}
2769
+ }
2770
+
2771
+ def struct_fields; FIELDS; end
2772
+
2773
+ def validate
2774
+ end
2775
+
2776
+ ::Thrift::Struct.generate_accessors self
2777
+ end
2778
+
2779
+ class Get_table_names_by_filter_result
2780
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2781
+ SUCCESS = 0
2782
+ O1 = 1
2783
+ O2 = 2
2784
+ O3 = 3
2785
+
2786
+ FIELDS = {
2787
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
2788
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException},
2789
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::InvalidOperationException},
2790
+ O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::Impala::Protocol::HiveMetastore::UnknownDBException}
2791
+ }
2792
+
2793
+ def struct_fields; FIELDS; end
2794
+
2795
+ def validate
2796
+ end
2797
+
2798
+ ::Thrift::Struct.generate_accessors self
2799
+ end
2800
+
2801
+ class Alter_table_args
2802
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2803
+ DBNAME = 1
2804
+ TBL_NAME = 2
2805
+ NEW_TBL = 3
2806
+
2807
+ FIELDS = {
2808
+ DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbname'},
2809
+ TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
2810
+ NEW_TBL => {:type => ::Thrift::Types::STRUCT, :name => 'new_tbl', :class => ::Impala::Protocol::HiveMetastore::Table}
2811
+ }
2812
+
2813
+ def struct_fields; FIELDS; end
2814
+
2815
+ def validate
2816
+ end
2817
+
2818
+ ::Thrift::Struct.generate_accessors self
2819
+ end
2820
+
2821
+ class Alter_table_result
2822
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2823
+ O1 = 1
2824
+ O2 = 2
2825
+
2826
+ FIELDS = {
2827
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::InvalidOperationException},
2828
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::MetaException}
2829
+ }
2830
+
2831
+ def struct_fields; FIELDS; end
2832
+
2833
+ def validate
2834
+ end
2835
+
2836
+ ::Thrift::Struct.generate_accessors self
2837
+ end
2838
+
2839
+ class Alter_table_with_environment_context_args
2840
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2841
+ DBNAME = 1
2842
+ TBL_NAME = 2
2843
+ NEW_TBL = 3
2844
+ ENVIRONMENT_CONTEXT = 4
2845
+
2846
+ FIELDS = {
2847
+ DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbname'},
2848
+ TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
2849
+ NEW_TBL => {:type => ::Thrift::Types::STRUCT, :name => 'new_tbl', :class => ::Impala::Protocol::HiveMetastore::Table},
2850
+ ENVIRONMENT_CONTEXT => {:type => ::Thrift::Types::STRUCT, :name => 'environment_context', :class => ::Impala::Protocol::HiveMetastore::EnvironmentContext}
2851
+ }
2852
+
2853
+ def struct_fields; FIELDS; end
2854
+
2855
+ def validate
2856
+ end
2857
+
2858
+ ::Thrift::Struct.generate_accessors self
2859
+ end
2860
+
2861
+ class Alter_table_with_environment_context_result
2862
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2863
+ O1 = 1
2864
+ O2 = 2
2865
+
2866
+ FIELDS = {
2867
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::InvalidOperationException},
2868
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::MetaException}
2869
+ }
2870
+
2871
+ def struct_fields; FIELDS; end
2872
+
2873
+ def validate
2874
+ end
2875
+
2876
+ ::Thrift::Struct.generate_accessors self
2877
+ end
2878
+
2879
+ class Add_partition_args
2880
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2881
+ NEW_PART = 1
2882
+
2883
+ FIELDS = {
2884
+ NEW_PART => {:type => ::Thrift::Types::STRUCT, :name => 'new_part', :class => ::Impala::Protocol::HiveMetastore::Partition}
2885
+ }
2886
+
2887
+ def struct_fields; FIELDS; end
2888
+
2889
+ def validate
2890
+ end
2891
+
2892
+ ::Thrift::Struct.generate_accessors self
2893
+ end
2894
+
2895
+ class Add_partition_result
2896
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2897
+ SUCCESS = 0
2898
+ O1 = 1
2899
+ O2 = 2
2900
+ O3 = 3
2901
+
2902
+ FIELDS = {
2903
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::HiveMetastore::Partition},
2904
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::InvalidObjectException},
2905
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::AlreadyExistsException},
2906
+ O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::Impala::Protocol::HiveMetastore::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 Add_partition_with_environment_context_args
2918
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2919
+ NEW_PART = 1
2920
+ ENVIRONMENT_CONTEXT = 2
2921
+
2922
+ FIELDS = {
2923
+ NEW_PART => {:type => ::Thrift::Types::STRUCT, :name => 'new_part', :class => ::Impala::Protocol::HiveMetastore::Partition},
2924
+ ENVIRONMENT_CONTEXT => {:type => ::Thrift::Types::STRUCT, :name => 'environment_context', :class => ::Impala::Protocol::HiveMetastore::EnvironmentContext}
2925
+ }
2926
+
2927
+ def struct_fields; FIELDS; end
2928
+
2929
+ def validate
2930
+ end
2931
+
2932
+ ::Thrift::Struct.generate_accessors self
2933
+ end
2934
+
2935
+ class Add_partition_with_environment_context_result
2936
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2937
+ SUCCESS = 0
2938
+ O1 = 1
2939
+ O2 = 2
2940
+ O3 = 3
2941
+
2942
+ FIELDS = {
2943
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::HiveMetastore::Partition},
2944
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::InvalidObjectException},
2945
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::AlreadyExistsException},
2946
+ O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::Impala::Protocol::HiveMetastore::MetaException}
2947
+ }
2948
+
2949
+ def struct_fields; FIELDS; end
2950
+
2951
+ def validate
2952
+ end
2953
+
2954
+ ::Thrift::Struct.generate_accessors self
2955
+ end
2956
+
2957
+ class Add_partitions_args
2958
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2959
+ NEW_PARTS = 1
2960
+
2961
+ FIELDS = {
2962
+ NEW_PARTS => {:type => ::Thrift::Types::LIST, :name => 'new_parts', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Impala::Protocol::HiveMetastore::Partition}}
2963
+ }
2964
+
2965
+ def struct_fields; FIELDS; end
2966
+
2967
+ def validate
2968
+ end
2969
+
2970
+ ::Thrift::Struct.generate_accessors self
2971
+ end
2972
+
2973
+ class Add_partitions_result
2974
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2975
+ SUCCESS = 0
2976
+ O1 = 1
2977
+ O2 = 2
2978
+ O3 = 3
2979
+
2980
+ FIELDS = {
2981
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
2982
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::InvalidObjectException},
2983
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::AlreadyExistsException},
2984
+ O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::Impala::Protocol::HiveMetastore::MetaException}
2985
+ }
2986
+
2987
+ def struct_fields; FIELDS; end
2988
+
2989
+ def validate
2990
+ end
2991
+
2992
+ ::Thrift::Struct.generate_accessors self
2993
+ end
2994
+
2995
+ class Append_partition_args
2996
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2997
+ DB_NAME = 1
2998
+ TBL_NAME = 2
2999
+ PART_VALS = 3
3000
+
3001
+ FIELDS = {
3002
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
3003
+ TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
3004
+ PART_VALS => {:type => ::Thrift::Types::LIST, :name => 'part_vals', :element => {:type => ::Thrift::Types::STRING}}
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 Append_partition_result
3016
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3017
+ SUCCESS = 0
3018
+ O1 = 1
3019
+ O2 = 2
3020
+ O3 = 3
3021
+
3022
+ FIELDS = {
3023
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::HiveMetastore::Partition},
3024
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::InvalidObjectException},
3025
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::AlreadyExistsException},
3026
+ O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::Impala::Protocol::HiveMetastore::MetaException}
3027
+ }
3028
+
3029
+ def struct_fields; FIELDS; end
3030
+
3031
+ def validate
3032
+ end
3033
+
3034
+ ::Thrift::Struct.generate_accessors self
3035
+ end
3036
+
3037
+ class Append_partition_by_name_args
3038
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3039
+ DB_NAME = 1
3040
+ TBL_NAME = 2
3041
+ PART_NAME = 3
3042
+
3043
+ FIELDS = {
3044
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
3045
+ TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
3046
+ PART_NAME => {:type => ::Thrift::Types::STRING, :name => 'part_name'}
3047
+ }
3048
+
3049
+ def struct_fields; FIELDS; end
3050
+
3051
+ def validate
3052
+ end
3053
+
3054
+ ::Thrift::Struct.generate_accessors self
3055
+ end
3056
+
3057
+ class Append_partition_by_name_result
3058
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3059
+ SUCCESS = 0
3060
+ O1 = 1
3061
+ O2 = 2
3062
+ O3 = 3
3063
+
3064
+ FIELDS = {
3065
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::HiveMetastore::Partition},
3066
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::InvalidObjectException},
3067
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::AlreadyExistsException},
3068
+ O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::Impala::Protocol::HiveMetastore::MetaException}
3069
+ }
3070
+
3071
+ def struct_fields; FIELDS; end
3072
+
3073
+ def validate
3074
+ end
3075
+
3076
+ ::Thrift::Struct.generate_accessors self
3077
+ end
3078
+
3079
+ class Drop_partition_args
3080
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3081
+ DB_NAME = 1
3082
+ TBL_NAME = 2
3083
+ PART_VALS = 3
3084
+ DELETEDATA = 4
3085
+
3086
+ FIELDS = {
3087
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
3088
+ TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
3089
+ PART_VALS => {:type => ::Thrift::Types::LIST, :name => 'part_vals', :element => {:type => ::Thrift::Types::STRING}},
3090
+ DELETEDATA => {:type => ::Thrift::Types::BOOL, :name => 'deleteData'}
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 Drop_partition_result
3102
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3103
+ SUCCESS = 0
3104
+ O1 = 1
3105
+ O2 = 2
3106
+
3107
+ FIELDS = {
3108
+ SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
3109
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::NoSuchObjectException},
3110
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::MetaException}
3111
+ }
3112
+
3113
+ def struct_fields; FIELDS; end
3114
+
3115
+ def validate
3116
+ end
3117
+
3118
+ ::Thrift::Struct.generate_accessors self
3119
+ end
3120
+
3121
+ class Drop_partition_by_name_args
3122
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3123
+ DB_NAME = 1
3124
+ TBL_NAME = 2
3125
+ PART_NAME = 3
3126
+ DELETEDATA = 4
3127
+
3128
+ FIELDS = {
3129
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
3130
+ TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
3131
+ PART_NAME => {:type => ::Thrift::Types::STRING, :name => 'part_name'},
3132
+ DELETEDATA => {:type => ::Thrift::Types::BOOL, :name => 'deleteData'}
3133
+ }
3134
+
3135
+ def struct_fields; FIELDS; end
3136
+
3137
+ def validate
3138
+ end
3139
+
3140
+ ::Thrift::Struct.generate_accessors self
3141
+ end
3142
+
3143
+ class Drop_partition_by_name_result
3144
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3145
+ SUCCESS = 0
3146
+ O1 = 1
3147
+ O2 = 2
3148
+
3149
+ FIELDS = {
3150
+ SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
3151
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::NoSuchObjectException},
3152
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::MetaException}
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 Get_partition_args
3164
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3165
+ DB_NAME = 1
3166
+ TBL_NAME = 2
3167
+ PART_VALS = 3
3168
+
3169
+ FIELDS = {
3170
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
3171
+ TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
3172
+ PART_VALS => {:type => ::Thrift::Types::LIST, :name => 'part_vals', :element => {:type => ::Thrift::Types::STRING}}
3173
+ }
3174
+
3175
+ def struct_fields; FIELDS; end
3176
+
3177
+ def validate
3178
+ end
3179
+
3180
+ ::Thrift::Struct.generate_accessors self
3181
+ end
3182
+
3183
+ class Get_partition_result
3184
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3185
+ SUCCESS = 0
3186
+ O1 = 1
3187
+ O2 = 2
3188
+
3189
+ FIELDS = {
3190
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::HiveMetastore::Partition},
3191
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException},
3192
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::NoSuchObjectException}
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 Get_partition_with_auth_args
3204
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3205
+ DB_NAME = 1
3206
+ TBL_NAME = 2
3207
+ PART_VALS = 3
3208
+ USER_NAME = 4
3209
+ GROUP_NAMES = 5
3210
+
3211
+ FIELDS = {
3212
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
3213
+ TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
3214
+ PART_VALS => {:type => ::Thrift::Types::LIST, :name => 'part_vals', :element => {:type => ::Thrift::Types::STRING}},
3215
+ USER_NAME => {:type => ::Thrift::Types::STRING, :name => 'user_name'},
3216
+ GROUP_NAMES => {:type => ::Thrift::Types::LIST, :name => 'group_names', :element => {:type => ::Thrift::Types::STRING}}
3217
+ }
3218
+
3219
+ def struct_fields; FIELDS; end
3220
+
3221
+ def validate
3222
+ end
3223
+
3224
+ ::Thrift::Struct.generate_accessors self
3225
+ end
3226
+
3227
+ class Get_partition_with_auth_result
3228
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3229
+ SUCCESS = 0
3230
+ O1 = 1
3231
+ O2 = 2
3232
+
3233
+ FIELDS = {
3234
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::HiveMetastore::Partition},
3235
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException},
3236
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::NoSuchObjectException}
3237
+ }
3238
+
3239
+ def struct_fields; FIELDS; end
3240
+
3241
+ def validate
3242
+ end
3243
+
3244
+ ::Thrift::Struct.generate_accessors self
3245
+ end
3246
+
3247
+ class Get_partition_by_name_args
3248
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3249
+ DB_NAME = 1
3250
+ TBL_NAME = 2
3251
+ PART_NAME = 3
3252
+
3253
+ FIELDS = {
3254
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
3255
+ TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
3256
+ PART_NAME => {:type => ::Thrift::Types::STRING, :name => 'part_name'}
3257
+ }
3258
+
3259
+ def struct_fields; FIELDS; end
3260
+
3261
+ def validate
3262
+ end
3263
+
3264
+ ::Thrift::Struct.generate_accessors self
3265
+ end
3266
+
3267
+ class Get_partition_by_name_result
3268
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3269
+ SUCCESS = 0
3270
+ O1 = 1
3271
+ O2 = 2
3272
+
3273
+ FIELDS = {
3274
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::HiveMetastore::Partition},
3275
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException},
3276
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::NoSuchObjectException}
3277
+ }
3278
+
3279
+ def struct_fields; FIELDS; end
3280
+
3281
+ def validate
3282
+ end
3283
+
3284
+ ::Thrift::Struct.generate_accessors self
3285
+ end
3286
+
3287
+ class Get_partitions_args
3288
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3289
+ DB_NAME = 1
3290
+ TBL_NAME = 2
3291
+ MAX_PARTS = 3
3292
+
3293
+ FIELDS = {
3294
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
3295
+ TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
3296
+ MAX_PARTS => {:type => ::Thrift::Types::I16, :name => 'max_parts', :default => -1}
3297
+ }
3298
+
3299
+ def struct_fields; FIELDS; end
3300
+
3301
+ def validate
3302
+ end
3303
+
3304
+ ::Thrift::Struct.generate_accessors self
3305
+ end
3306
+
3307
+ class Get_partitions_result
3308
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3309
+ SUCCESS = 0
3310
+ O1 = 1
3311
+ O2 = 2
3312
+
3313
+ FIELDS = {
3314
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Impala::Protocol::HiveMetastore::Partition}},
3315
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::NoSuchObjectException},
3316
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::MetaException}
3317
+ }
3318
+
3319
+ def struct_fields; FIELDS; end
3320
+
3321
+ def validate
3322
+ end
3323
+
3324
+ ::Thrift::Struct.generate_accessors self
3325
+ end
3326
+
3327
+ class Get_partitions_with_auth_args
3328
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3329
+ DB_NAME = 1
3330
+ TBL_NAME = 2
3331
+ MAX_PARTS = 3
3332
+ USER_NAME = 4
3333
+ GROUP_NAMES = 5
3334
+
3335
+ FIELDS = {
3336
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
3337
+ TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
3338
+ MAX_PARTS => {:type => ::Thrift::Types::I16, :name => 'max_parts', :default => -1},
3339
+ USER_NAME => {:type => ::Thrift::Types::STRING, :name => 'user_name'},
3340
+ GROUP_NAMES => {:type => ::Thrift::Types::LIST, :name => 'group_names', :element => {:type => ::Thrift::Types::STRING}}
3341
+ }
3342
+
3343
+ def struct_fields; FIELDS; end
3344
+
3345
+ def validate
3346
+ end
3347
+
3348
+ ::Thrift::Struct.generate_accessors self
3349
+ end
3350
+
3351
+ class Get_partitions_with_auth_result
3352
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3353
+ SUCCESS = 0
3354
+ O1 = 1
3355
+ O2 = 2
3356
+
3357
+ FIELDS = {
3358
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Impala::Protocol::HiveMetastore::Partition}},
3359
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::NoSuchObjectException},
3360
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::MetaException}
3361
+ }
3362
+
3363
+ def struct_fields; FIELDS; end
3364
+
3365
+ def validate
3366
+ end
3367
+
3368
+ ::Thrift::Struct.generate_accessors self
3369
+ end
3370
+
3371
+ class Get_partition_names_args
3372
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3373
+ DB_NAME = 1
3374
+ TBL_NAME = 2
3375
+ MAX_PARTS = 3
3376
+
3377
+ FIELDS = {
3378
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
3379
+ TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
3380
+ MAX_PARTS => {:type => ::Thrift::Types::I16, :name => 'max_parts', :default => -1}
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 Get_partition_names_result
3392
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3393
+ SUCCESS = 0
3394
+ O2 = 1
3395
+
3396
+ FIELDS = {
3397
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
3398
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::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_partitions_ps_args
3410
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3411
+ DB_NAME = 1
3412
+ TBL_NAME = 2
3413
+ PART_VALS = 3
3414
+ MAX_PARTS = 4
3415
+
3416
+ FIELDS = {
3417
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
3418
+ TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
3419
+ PART_VALS => {:type => ::Thrift::Types::LIST, :name => 'part_vals', :element => {:type => ::Thrift::Types::STRING}},
3420
+ MAX_PARTS => {:type => ::Thrift::Types::I16, :name => 'max_parts', :default => -1}
3421
+ }
3422
+
3423
+ def struct_fields; FIELDS; end
3424
+
3425
+ def validate
3426
+ end
3427
+
3428
+ ::Thrift::Struct.generate_accessors self
3429
+ end
3430
+
3431
+ class Get_partitions_ps_result
3432
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3433
+ SUCCESS = 0
3434
+ O1 = 1
3435
+ O2 = 2
3436
+
3437
+ FIELDS = {
3438
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Impala::Protocol::HiveMetastore::Partition}},
3439
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException},
3440
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::NoSuchObjectException}
3441
+ }
3442
+
3443
+ def struct_fields; FIELDS; end
3444
+
3445
+ def validate
3446
+ end
3447
+
3448
+ ::Thrift::Struct.generate_accessors self
3449
+ end
3450
+
3451
+ class Get_partitions_ps_with_auth_args
3452
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3453
+ DB_NAME = 1
3454
+ TBL_NAME = 2
3455
+ PART_VALS = 3
3456
+ MAX_PARTS = 4
3457
+ USER_NAME = 5
3458
+ GROUP_NAMES = 6
3459
+
3460
+ FIELDS = {
3461
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
3462
+ TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
3463
+ PART_VALS => {:type => ::Thrift::Types::LIST, :name => 'part_vals', :element => {:type => ::Thrift::Types::STRING}},
3464
+ MAX_PARTS => {:type => ::Thrift::Types::I16, :name => 'max_parts', :default => -1},
3465
+ USER_NAME => {:type => ::Thrift::Types::STRING, :name => 'user_name'},
3466
+ GROUP_NAMES => {:type => ::Thrift::Types::LIST, :name => 'group_names', :element => {:type => ::Thrift::Types::STRING}}
3467
+ }
3468
+
3469
+ def struct_fields; FIELDS; end
3470
+
3471
+ def validate
3472
+ end
3473
+
3474
+ ::Thrift::Struct.generate_accessors self
3475
+ end
3476
+
3477
+ class Get_partitions_ps_with_auth_result
3478
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3479
+ SUCCESS = 0
3480
+ O1 = 1
3481
+ O2 = 2
3482
+
3483
+ FIELDS = {
3484
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Impala::Protocol::HiveMetastore::Partition}},
3485
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::NoSuchObjectException},
3486
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::MetaException}
3487
+ }
3488
+
3489
+ def struct_fields; FIELDS; end
3490
+
3491
+ def validate
3492
+ end
3493
+
3494
+ ::Thrift::Struct.generate_accessors self
3495
+ end
3496
+
3497
+ class Get_partition_names_ps_args
3498
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3499
+ DB_NAME = 1
3500
+ TBL_NAME = 2
3501
+ PART_VALS = 3
3502
+ MAX_PARTS = 4
3503
+
3504
+ FIELDS = {
3505
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
3506
+ TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
3507
+ PART_VALS => {:type => ::Thrift::Types::LIST, :name => 'part_vals', :element => {:type => ::Thrift::Types::STRING}},
3508
+ MAX_PARTS => {:type => ::Thrift::Types::I16, :name => 'max_parts', :default => -1}
3509
+ }
3510
+
3511
+ def struct_fields; FIELDS; end
3512
+
3513
+ def validate
3514
+ end
3515
+
3516
+ ::Thrift::Struct.generate_accessors self
3517
+ end
3518
+
3519
+ class Get_partition_names_ps_result
3520
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3521
+ SUCCESS = 0
3522
+ O1 = 1
3523
+ O2 = 2
3524
+
3525
+ FIELDS = {
3526
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
3527
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException},
3528
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::NoSuchObjectException}
3529
+ }
3530
+
3531
+ def struct_fields; FIELDS; end
3532
+
3533
+ def validate
3534
+ end
3535
+
3536
+ ::Thrift::Struct.generate_accessors self
3537
+ end
3538
+
3539
+ class Get_partitions_by_filter_args
3540
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3541
+ DB_NAME = 1
3542
+ TBL_NAME = 2
3543
+ FILTER = 3
3544
+ MAX_PARTS = 4
3545
+
3546
+ FIELDS = {
3547
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
3548
+ TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
3549
+ FILTER => {:type => ::Thrift::Types::STRING, :name => 'filter'},
3550
+ MAX_PARTS => {:type => ::Thrift::Types::I16, :name => 'max_parts', :default => -1}
3551
+ }
3552
+
3553
+ def struct_fields; FIELDS; end
3554
+
3555
+ def validate
3556
+ end
3557
+
3558
+ ::Thrift::Struct.generate_accessors self
3559
+ end
3560
+
3561
+ class Get_partitions_by_filter_result
3562
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3563
+ SUCCESS = 0
3564
+ O1 = 1
3565
+ O2 = 2
3566
+
3567
+ FIELDS = {
3568
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Impala::Protocol::HiveMetastore::Partition}},
3569
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException},
3570
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::NoSuchObjectException}
3571
+ }
3572
+
3573
+ def struct_fields; FIELDS; end
3574
+
3575
+ def validate
3576
+ end
3577
+
3578
+ ::Thrift::Struct.generate_accessors self
3579
+ end
3580
+
3581
+ class Get_partitions_by_names_args
3582
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3583
+ DB_NAME = 1
3584
+ TBL_NAME = 2
3585
+ NAMES = 3
3586
+
3587
+ FIELDS = {
3588
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
3589
+ TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
3590
+ NAMES => {:type => ::Thrift::Types::LIST, :name => 'names', :element => {:type => ::Thrift::Types::STRING}}
3591
+ }
3592
+
3593
+ def struct_fields; FIELDS; end
3594
+
3595
+ def validate
3596
+ end
3597
+
3598
+ ::Thrift::Struct.generate_accessors self
3599
+ end
3600
+
3601
+ class Get_partitions_by_names_result
3602
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3603
+ SUCCESS = 0
3604
+ O1 = 1
3605
+ O2 = 2
3606
+
3607
+ FIELDS = {
3608
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Impala::Protocol::HiveMetastore::Partition}},
3609
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException},
3610
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::NoSuchObjectException}
3611
+ }
3612
+
3613
+ def struct_fields; FIELDS; end
3614
+
3615
+ def validate
3616
+ end
3617
+
3618
+ ::Thrift::Struct.generate_accessors self
3619
+ end
3620
+
3621
+ class Alter_partition_args
3622
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3623
+ DB_NAME = 1
3624
+ TBL_NAME = 2
3625
+ NEW_PART = 3
3626
+
3627
+ FIELDS = {
3628
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
3629
+ TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
3630
+ NEW_PART => {:type => ::Thrift::Types::STRUCT, :name => 'new_part', :class => ::Impala::Protocol::HiveMetastore::Partition}
3631
+ }
3632
+
3633
+ def struct_fields; FIELDS; end
3634
+
3635
+ def validate
3636
+ end
3637
+
3638
+ ::Thrift::Struct.generate_accessors self
3639
+ end
3640
+
3641
+ class Alter_partition_result
3642
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3643
+ O1 = 1
3644
+ O2 = 2
3645
+
3646
+ FIELDS = {
3647
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::InvalidOperationException},
3648
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::MetaException}
3649
+ }
3650
+
3651
+ def struct_fields; FIELDS; end
3652
+
3653
+ def validate
3654
+ end
3655
+
3656
+ ::Thrift::Struct.generate_accessors self
3657
+ end
3658
+
3659
+ class Alter_partition_with_environment_context_args
3660
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3661
+ DB_NAME = 1
3662
+ TBL_NAME = 2
3663
+ NEW_PART = 3
3664
+ ENVIRONMENT_CONTEXT = 4
3665
+
3666
+ FIELDS = {
3667
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
3668
+ TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
3669
+ NEW_PART => {:type => ::Thrift::Types::STRUCT, :name => 'new_part', :class => ::Impala::Protocol::HiveMetastore::Partition},
3670
+ ENVIRONMENT_CONTEXT => {:type => ::Thrift::Types::STRUCT, :name => 'environment_context', :class => ::Impala::Protocol::HiveMetastore::EnvironmentContext}
3671
+ }
3672
+
3673
+ def struct_fields; FIELDS; end
3674
+
3675
+ def validate
3676
+ end
3677
+
3678
+ ::Thrift::Struct.generate_accessors self
3679
+ end
3680
+
3681
+ class Alter_partition_with_environment_context_result
3682
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3683
+ O1 = 1
3684
+ O2 = 2
3685
+
3686
+ FIELDS = {
3687
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::InvalidOperationException},
3688
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::MetaException}
3689
+ }
3690
+
3691
+ def struct_fields; FIELDS; end
3692
+
3693
+ def validate
3694
+ end
3695
+
3696
+ ::Thrift::Struct.generate_accessors self
3697
+ end
3698
+
3699
+ class Rename_partition_args
3700
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3701
+ DB_NAME = 1
3702
+ TBL_NAME = 2
3703
+ PART_VALS = 3
3704
+ NEW_PART = 4
3705
+
3706
+ FIELDS = {
3707
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
3708
+ TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
3709
+ PART_VALS => {:type => ::Thrift::Types::LIST, :name => 'part_vals', :element => {:type => ::Thrift::Types::STRING}},
3710
+ NEW_PART => {:type => ::Thrift::Types::STRUCT, :name => 'new_part', :class => ::Impala::Protocol::HiveMetastore::Partition}
3711
+ }
3712
+
3713
+ def struct_fields; FIELDS; end
3714
+
3715
+ def validate
3716
+ end
3717
+
3718
+ ::Thrift::Struct.generate_accessors self
3719
+ end
3720
+
3721
+ class Rename_partition_result
3722
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3723
+ O1 = 1
3724
+ O2 = 2
3725
+
3726
+ FIELDS = {
3727
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::InvalidOperationException},
3728
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::MetaException}
3729
+ }
3730
+
3731
+ def struct_fields; FIELDS; end
3732
+
3733
+ def validate
3734
+ end
3735
+
3736
+ ::Thrift::Struct.generate_accessors self
3737
+ end
3738
+
3739
+ class Get_config_value_args
3740
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3741
+ NAME = 1
3742
+ DEFAULTVALUE = 2
3743
+
3744
+ FIELDS = {
3745
+ NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
3746
+ DEFAULTVALUE => {:type => ::Thrift::Types::STRING, :name => 'defaultValue'}
3747
+ }
3748
+
3749
+ def struct_fields; FIELDS; end
3750
+
3751
+ def validate
3752
+ end
3753
+
3754
+ ::Thrift::Struct.generate_accessors self
3755
+ end
3756
+
3757
+ class Get_config_value_result
3758
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3759
+ SUCCESS = 0
3760
+ O1 = 1
3761
+
3762
+ FIELDS = {
3763
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
3764
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::ConfigValSecurityException}
3765
+ }
3766
+
3767
+ def struct_fields; FIELDS; end
3768
+
3769
+ def validate
3770
+ end
3771
+
3772
+ ::Thrift::Struct.generate_accessors self
3773
+ end
3774
+
3775
+ class Partition_name_to_vals_args
3776
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3777
+ PART_NAME = 1
3778
+
3779
+ FIELDS = {
3780
+ PART_NAME => {:type => ::Thrift::Types::STRING, :name => 'part_name'}
3781
+ }
3782
+
3783
+ def struct_fields; FIELDS; end
3784
+
3785
+ def validate
3786
+ end
3787
+
3788
+ ::Thrift::Struct.generate_accessors self
3789
+ end
3790
+
3791
+ class Partition_name_to_vals_result
3792
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3793
+ SUCCESS = 0
3794
+ O1 = 1
3795
+
3796
+ FIELDS = {
3797
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
3798
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException}
3799
+ }
3800
+
3801
+ def struct_fields; FIELDS; end
3802
+
3803
+ def validate
3804
+ end
3805
+
3806
+ ::Thrift::Struct.generate_accessors self
3807
+ end
3808
+
3809
+ class Partition_name_to_spec_args
3810
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3811
+ PART_NAME = 1
3812
+
3813
+ FIELDS = {
3814
+ PART_NAME => {:type => ::Thrift::Types::STRING, :name => 'part_name'}
3815
+ }
3816
+
3817
+ def struct_fields; FIELDS; end
3818
+
3819
+ def validate
3820
+ end
3821
+
3822
+ ::Thrift::Struct.generate_accessors self
3823
+ end
3824
+
3825
+ class Partition_name_to_spec_result
3826
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3827
+ SUCCESS = 0
3828
+ O1 = 1
3829
+
3830
+ FIELDS = {
3831
+ SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
3832
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException}
3833
+ }
3834
+
3835
+ def struct_fields; FIELDS; end
3836
+
3837
+ def validate
3838
+ end
3839
+
3840
+ ::Thrift::Struct.generate_accessors self
3841
+ end
3842
+
3843
+ class MarkPartitionForEvent_args
3844
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3845
+ DB_NAME = 1
3846
+ TBL_NAME = 2
3847
+ PART_VALS = 3
3848
+ EVENTTYPE = 4
3849
+
3850
+ FIELDS = {
3851
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
3852
+ TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
3853
+ PART_VALS => {:type => ::Thrift::Types::MAP, :name => 'part_vals', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
3854
+ EVENTTYPE => {:type => ::Thrift::Types::I32, :name => 'eventType', :enum_class => ::Impala::Protocol::HiveMetastore::PartitionEventType}
3855
+ }
3856
+
3857
+ def struct_fields; FIELDS; end
3858
+
3859
+ def validate
3860
+ unless @eventType.nil? || ::Impala::Protocol::HiveMetastore::PartitionEventType::VALID_VALUES.include?(@eventType)
3861
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field eventType!')
3862
+ end
3863
+ end
3864
+
3865
+ ::Thrift::Struct.generate_accessors self
3866
+ end
3867
+
3868
+ class MarkPartitionForEvent_result
3869
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3870
+ O1 = 1
3871
+ O2 = 2
3872
+ O3 = 3
3873
+ O4 = 4
3874
+ O5 = 5
3875
+ O6 = 6
3876
+
3877
+ FIELDS = {
3878
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException},
3879
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::NoSuchObjectException},
3880
+ O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::Impala::Protocol::HiveMetastore::UnknownDBException},
3881
+ O4 => {:type => ::Thrift::Types::STRUCT, :name => 'o4', :class => ::Impala::Protocol::HiveMetastore::UnknownTableException},
3882
+ O5 => {:type => ::Thrift::Types::STRUCT, :name => 'o5', :class => ::Impala::Protocol::HiveMetastore::UnknownPartitionException},
3883
+ O6 => {:type => ::Thrift::Types::STRUCT, :name => 'o6', :class => ::Impala::Protocol::HiveMetastore::InvalidPartitionException}
3884
+ }
3885
+
3886
+ def struct_fields; FIELDS; end
3887
+
3888
+ def validate
3889
+ end
3890
+
3891
+ ::Thrift::Struct.generate_accessors self
3892
+ end
3893
+
3894
+ class IsPartitionMarkedForEvent_args
3895
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3896
+ DB_NAME = 1
3897
+ TBL_NAME = 2
3898
+ PART_VALS = 3
3899
+ EVENTTYPE = 4
3900
+
3901
+ FIELDS = {
3902
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
3903
+ TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
3904
+ PART_VALS => {:type => ::Thrift::Types::MAP, :name => 'part_vals', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
3905
+ EVENTTYPE => {:type => ::Thrift::Types::I32, :name => 'eventType', :enum_class => ::Impala::Protocol::HiveMetastore::PartitionEventType}
3906
+ }
3907
+
3908
+ def struct_fields; FIELDS; end
3909
+
3910
+ def validate
3911
+ unless @eventType.nil? || ::Impala::Protocol::HiveMetastore::PartitionEventType::VALID_VALUES.include?(@eventType)
3912
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field eventType!')
3913
+ end
3914
+ end
3915
+
3916
+ ::Thrift::Struct.generate_accessors self
3917
+ end
3918
+
3919
+ class IsPartitionMarkedForEvent_result
3920
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3921
+ SUCCESS = 0
3922
+ O1 = 1
3923
+ O2 = 2
3924
+ O3 = 3
3925
+ O4 = 4
3926
+ O5 = 5
3927
+ O6 = 6
3928
+
3929
+ FIELDS = {
3930
+ SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
3931
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException},
3932
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::NoSuchObjectException},
3933
+ O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::Impala::Protocol::HiveMetastore::UnknownDBException},
3934
+ O4 => {:type => ::Thrift::Types::STRUCT, :name => 'o4', :class => ::Impala::Protocol::HiveMetastore::UnknownTableException},
3935
+ O5 => {:type => ::Thrift::Types::STRUCT, :name => 'o5', :class => ::Impala::Protocol::HiveMetastore::UnknownPartitionException},
3936
+ O6 => {:type => ::Thrift::Types::STRUCT, :name => 'o6', :class => ::Impala::Protocol::HiveMetastore::InvalidPartitionException}
3937
+ }
3938
+
3939
+ def struct_fields; FIELDS; end
3940
+
3941
+ def validate
3942
+ end
3943
+
3944
+ ::Thrift::Struct.generate_accessors self
3945
+ end
3946
+
3947
+ class Add_index_args
3948
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3949
+ NEW_INDEX = 1
3950
+ INDEX_TABLE = 2
3951
+
3952
+ FIELDS = {
3953
+ NEW_INDEX => {:type => ::Thrift::Types::STRUCT, :name => 'new_index', :class => ::Impala::Protocol::HiveMetastore::Index},
3954
+ INDEX_TABLE => {:type => ::Thrift::Types::STRUCT, :name => 'index_table', :class => ::Impala::Protocol::HiveMetastore::Table}
3955
+ }
3956
+
3957
+ def struct_fields; FIELDS; end
3958
+
3959
+ def validate
3960
+ end
3961
+
3962
+ ::Thrift::Struct.generate_accessors self
3963
+ end
3964
+
3965
+ class Add_index_result
3966
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3967
+ SUCCESS = 0
3968
+ O1 = 1
3969
+ O2 = 2
3970
+ O3 = 3
3971
+
3972
+ FIELDS = {
3973
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::HiveMetastore::Index},
3974
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::InvalidObjectException},
3975
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::AlreadyExistsException},
3976
+ O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::Impala::Protocol::HiveMetastore::MetaException}
3977
+ }
3978
+
3979
+ def struct_fields; FIELDS; end
3980
+
3981
+ def validate
3982
+ end
3983
+
3984
+ ::Thrift::Struct.generate_accessors self
3985
+ end
3986
+
3987
+ class Alter_index_args
3988
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3989
+ DBNAME = 1
3990
+ BASE_TBL_NAME = 2
3991
+ IDX_NAME = 3
3992
+ NEW_IDX = 4
3993
+
3994
+ FIELDS = {
3995
+ DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbname'},
3996
+ BASE_TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'base_tbl_name'},
3997
+ IDX_NAME => {:type => ::Thrift::Types::STRING, :name => 'idx_name'},
3998
+ NEW_IDX => {:type => ::Thrift::Types::STRUCT, :name => 'new_idx', :class => ::Impala::Protocol::HiveMetastore::Index}
3999
+ }
4000
+
4001
+ def struct_fields; FIELDS; end
4002
+
4003
+ def validate
4004
+ end
4005
+
4006
+ ::Thrift::Struct.generate_accessors self
4007
+ end
4008
+
4009
+ class Alter_index_result
4010
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4011
+ O1 = 1
4012
+ O2 = 2
4013
+
4014
+ FIELDS = {
4015
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::InvalidOperationException},
4016
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::MetaException}
4017
+ }
4018
+
4019
+ def struct_fields; FIELDS; end
4020
+
4021
+ def validate
4022
+ end
4023
+
4024
+ ::Thrift::Struct.generate_accessors self
4025
+ end
4026
+
4027
+ class Drop_index_by_name_args
4028
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4029
+ DB_NAME = 1
4030
+ TBL_NAME = 2
4031
+ INDEX_NAME = 3
4032
+ DELETEDATA = 4
4033
+
4034
+ FIELDS = {
4035
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
4036
+ TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
4037
+ INDEX_NAME => {:type => ::Thrift::Types::STRING, :name => 'index_name'},
4038
+ DELETEDATA => {:type => ::Thrift::Types::BOOL, :name => 'deleteData'}
4039
+ }
4040
+
4041
+ def struct_fields; FIELDS; end
4042
+
4043
+ def validate
4044
+ end
4045
+
4046
+ ::Thrift::Struct.generate_accessors self
4047
+ end
4048
+
4049
+ class Drop_index_by_name_result
4050
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4051
+ SUCCESS = 0
4052
+ O1 = 1
4053
+ O2 = 2
4054
+
4055
+ FIELDS = {
4056
+ SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
4057
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::NoSuchObjectException},
4058
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::MetaException}
4059
+ }
4060
+
4061
+ def struct_fields; FIELDS; end
4062
+
4063
+ def validate
4064
+ end
4065
+
4066
+ ::Thrift::Struct.generate_accessors self
4067
+ end
4068
+
4069
+ class Get_index_by_name_args
4070
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4071
+ DB_NAME = 1
4072
+ TBL_NAME = 2
4073
+ INDEX_NAME = 3
4074
+
4075
+ FIELDS = {
4076
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
4077
+ TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
4078
+ INDEX_NAME => {:type => ::Thrift::Types::STRING, :name => 'index_name'}
4079
+ }
4080
+
4081
+ def struct_fields; FIELDS; end
4082
+
4083
+ def validate
4084
+ end
4085
+
4086
+ ::Thrift::Struct.generate_accessors self
4087
+ end
4088
+
4089
+ class Get_index_by_name_result
4090
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4091
+ SUCCESS = 0
4092
+ O1 = 1
4093
+ O2 = 2
4094
+
4095
+ FIELDS = {
4096
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::HiveMetastore::Index},
4097
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException},
4098
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::NoSuchObjectException}
4099
+ }
4100
+
4101
+ def struct_fields; FIELDS; end
4102
+
4103
+ def validate
4104
+ end
4105
+
4106
+ ::Thrift::Struct.generate_accessors self
4107
+ end
4108
+
4109
+ class Get_indexes_args
4110
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4111
+ DB_NAME = 1
4112
+ TBL_NAME = 2
4113
+ MAX_INDEXES = 3
4114
+
4115
+ FIELDS = {
4116
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
4117
+ TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
4118
+ MAX_INDEXES => {:type => ::Thrift::Types::I16, :name => 'max_indexes', :default => -1}
4119
+ }
4120
+
4121
+ def struct_fields; FIELDS; end
4122
+
4123
+ def validate
4124
+ end
4125
+
4126
+ ::Thrift::Struct.generate_accessors self
4127
+ end
4128
+
4129
+ class Get_indexes_result
4130
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4131
+ SUCCESS = 0
4132
+ O1 = 1
4133
+ O2 = 2
4134
+
4135
+ FIELDS = {
4136
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Impala::Protocol::HiveMetastore::Index}},
4137
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::NoSuchObjectException},
4138
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::MetaException}
4139
+ }
4140
+
4141
+ def struct_fields; FIELDS; end
4142
+
4143
+ def validate
4144
+ end
4145
+
4146
+ ::Thrift::Struct.generate_accessors self
4147
+ end
4148
+
4149
+ class Get_index_names_args
4150
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4151
+ DB_NAME = 1
4152
+ TBL_NAME = 2
4153
+ MAX_INDEXES = 3
4154
+
4155
+ FIELDS = {
4156
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
4157
+ TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
4158
+ MAX_INDEXES => {:type => ::Thrift::Types::I16, :name => 'max_indexes', :default => -1}
4159
+ }
4160
+
4161
+ def struct_fields; FIELDS; end
4162
+
4163
+ def validate
4164
+ end
4165
+
4166
+ ::Thrift::Struct.generate_accessors self
4167
+ end
4168
+
4169
+ class Get_index_names_result
4170
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4171
+ SUCCESS = 0
4172
+ O2 = 1
4173
+
4174
+ FIELDS = {
4175
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
4176
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::Impala::Protocol::HiveMetastore::MetaException}
4177
+ }
4178
+
4179
+ def struct_fields; FIELDS; end
4180
+
4181
+ def validate
4182
+ end
4183
+
4184
+ ::Thrift::Struct.generate_accessors self
4185
+ end
4186
+
4187
+ class Create_role_args
4188
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4189
+ ROLE = 1
4190
+
4191
+ FIELDS = {
4192
+ ROLE => {:type => ::Thrift::Types::STRUCT, :name => 'role', :class => ::Impala::Protocol::HiveMetastore::Role}
4193
+ }
4194
+
4195
+ def struct_fields; FIELDS; end
4196
+
4197
+ def validate
4198
+ end
4199
+
4200
+ ::Thrift::Struct.generate_accessors self
4201
+ end
4202
+
4203
+ class Create_role_result
4204
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4205
+ SUCCESS = 0
4206
+ O1 = 1
4207
+
4208
+ FIELDS = {
4209
+ SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
4210
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException}
4211
+ }
4212
+
4213
+ def struct_fields; FIELDS; end
4214
+
4215
+ def validate
4216
+ end
4217
+
4218
+ ::Thrift::Struct.generate_accessors self
4219
+ end
4220
+
4221
+ class Drop_role_args
4222
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4223
+ ROLE_NAME = 1
4224
+
4225
+ FIELDS = {
4226
+ ROLE_NAME => {:type => ::Thrift::Types::STRING, :name => 'role_name'}
4227
+ }
4228
+
4229
+ def struct_fields; FIELDS; end
4230
+
4231
+ def validate
4232
+ end
4233
+
4234
+ ::Thrift::Struct.generate_accessors self
4235
+ end
4236
+
4237
+ class Drop_role_result
4238
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4239
+ SUCCESS = 0
4240
+ O1 = 1
4241
+
4242
+ FIELDS = {
4243
+ SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
4244
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException}
4245
+ }
4246
+
4247
+ def struct_fields; FIELDS; end
4248
+
4249
+ def validate
4250
+ end
4251
+
4252
+ ::Thrift::Struct.generate_accessors self
4253
+ end
4254
+
4255
+ class Get_role_names_args
4256
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4257
+
4258
+ FIELDS = {
4259
+
4260
+ }
4261
+
4262
+ def struct_fields; FIELDS; end
4263
+
4264
+ def validate
4265
+ end
4266
+
4267
+ ::Thrift::Struct.generate_accessors self
4268
+ end
4269
+
4270
+ class Get_role_names_result
4271
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4272
+ SUCCESS = 0
4273
+ O1 = 1
4274
+
4275
+ FIELDS = {
4276
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
4277
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException}
4278
+ }
4279
+
4280
+ def struct_fields; FIELDS; end
4281
+
4282
+ def validate
4283
+ end
4284
+
4285
+ ::Thrift::Struct.generate_accessors self
4286
+ end
4287
+
4288
+ class Grant_role_args
4289
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4290
+ ROLE_NAME = 1
4291
+ PRINCIPAL_NAME = 2
4292
+ PRINCIPAL_TYPE = 3
4293
+ GRANTOR = 4
4294
+ GRANTORTYPE = 5
4295
+ GRANT_OPTION = 6
4296
+
4297
+ FIELDS = {
4298
+ ROLE_NAME => {:type => ::Thrift::Types::STRING, :name => 'role_name'},
4299
+ PRINCIPAL_NAME => {:type => ::Thrift::Types::STRING, :name => 'principal_name'},
4300
+ PRINCIPAL_TYPE => {:type => ::Thrift::Types::I32, :name => 'principal_type', :enum_class => ::Impala::Protocol::HiveMetastore::PrincipalType},
4301
+ GRANTOR => {:type => ::Thrift::Types::STRING, :name => 'grantor'},
4302
+ GRANTORTYPE => {:type => ::Thrift::Types::I32, :name => 'grantorType', :enum_class => ::Impala::Protocol::HiveMetastore::PrincipalType},
4303
+ GRANT_OPTION => {:type => ::Thrift::Types::BOOL, :name => 'grant_option'}
4304
+ }
4305
+
4306
+ def struct_fields; FIELDS; end
4307
+
4308
+ def validate
4309
+ unless @principal_type.nil? || ::Impala::Protocol::HiveMetastore::PrincipalType::VALID_VALUES.include?(@principal_type)
4310
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field principal_type!')
4311
+ end
4312
+ unless @grantorType.nil? || ::Impala::Protocol::HiveMetastore::PrincipalType::VALID_VALUES.include?(@grantorType)
4313
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field grantorType!')
4314
+ end
4315
+ end
4316
+
4317
+ ::Thrift::Struct.generate_accessors self
4318
+ end
4319
+
4320
+ class Grant_role_result
4321
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4322
+ SUCCESS = 0
4323
+ O1 = 1
4324
+
4325
+ FIELDS = {
4326
+ SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
4327
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException}
4328
+ }
4329
+
4330
+ def struct_fields; FIELDS; end
4331
+
4332
+ def validate
4333
+ end
4334
+
4335
+ ::Thrift::Struct.generate_accessors self
4336
+ end
4337
+
4338
+ class Revoke_role_args
4339
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4340
+ ROLE_NAME = 1
4341
+ PRINCIPAL_NAME = 2
4342
+ PRINCIPAL_TYPE = 3
4343
+
4344
+ FIELDS = {
4345
+ ROLE_NAME => {:type => ::Thrift::Types::STRING, :name => 'role_name'},
4346
+ PRINCIPAL_NAME => {:type => ::Thrift::Types::STRING, :name => 'principal_name'},
4347
+ PRINCIPAL_TYPE => {:type => ::Thrift::Types::I32, :name => 'principal_type', :enum_class => ::Impala::Protocol::HiveMetastore::PrincipalType}
4348
+ }
4349
+
4350
+ def struct_fields; FIELDS; end
4351
+
4352
+ def validate
4353
+ unless @principal_type.nil? || ::Impala::Protocol::HiveMetastore::PrincipalType::VALID_VALUES.include?(@principal_type)
4354
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field principal_type!')
4355
+ end
4356
+ end
4357
+
4358
+ ::Thrift::Struct.generate_accessors self
4359
+ end
4360
+
4361
+ class Revoke_role_result
4362
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4363
+ SUCCESS = 0
4364
+ O1 = 1
4365
+
4366
+ FIELDS = {
4367
+ SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
4368
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException}
4369
+ }
4370
+
4371
+ def struct_fields; FIELDS; end
4372
+
4373
+ def validate
4374
+ end
4375
+
4376
+ ::Thrift::Struct.generate_accessors self
4377
+ end
4378
+
4379
+ class List_roles_args
4380
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4381
+ PRINCIPAL_NAME = 1
4382
+ PRINCIPAL_TYPE = 2
4383
+
4384
+ FIELDS = {
4385
+ PRINCIPAL_NAME => {:type => ::Thrift::Types::STRING, :name => 'principal_name'},
4386
+ PRINCIPAL_TYPE => {:type => ::Thrift::Types::I32, :name => 'principal_type', :enum_class => ::Impala::Protocol::HiveMetastore::PrincipalType}
4387
+ }
4388
+
4389
+ def struct_fields; FIELDS; end
4390
+
4391
+ def validate
4392
+ unless @principal_type.nil? || ::Impala::Protocol::HiveMetastore::PrincipalType::VALID_VALUES.include?(@principal_type)
4393
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field principal_type!')
4394
+ end
4395
+ end
4396
+
4397
+ ::Thrift::Struct.generate_accessors self
4398
+ end
4399
+
4400
+ class List_roles_result
4401
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4402
+ SUCCESS = 0
4403
+ O1 = 1
4404
+
4405
+ FIELDS = {
4406
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Impala::Protocol::HiveMetastore::Role}},
4407
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException}
4408
+ }
4409
+
4410
+ def struct_fields; FIELDS; end
4411
+
4412
+ def validate
4413
+ end
4414
+
4415
+ ::Thrift::Struct.generate_accessors self
4416
+ end
4417
+
4418
+ class Get_privilege_set_args
4419
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4420
+ HIVEOBJECT = 1
4421
+ USER_NAME = 2
4422
+ GROUP_NAMES = 3
4423
+
4424
+ FIELDS = {
4425
+ HIVEOBJECT => {:type => ::Thrift::Types::STRUCT, :name => 'hiveObject', :class => ::Impala::Protocol::HiveMetastore::HiveObjectRef},
4426
+ USER_NAME => {:type => ::Thrift::Types::STRING, :name => 'user_name'},
4427
+ GROUP_NAMES => {:type => ::Thrift::Types::LIST, :name => 'group_names', :element => {:type => ::Thrift::Types::STRING}}
4428
+ }
4429
+
4430
+ def struct_fields; FIELDS; end
4431
+
4432
+ def validate
4433
+ end
4434
+
4435
+ ::Thrift::Struct.generate_accessors self
4436
+ end
4437
+
4438
+ class Get_privilege_set_result
4439
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4440
+ SUCCESS = 0
4441
+ O1 = 1
4442
+
4443
+ FIELDS = {
4444
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::HiveMetastore::PrincipalPrivilegeSet},
4445
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException}
4446
+ }
4447
+
4448
+ def struct_fields; FIELDS; end
4449
+
4450
+ def validate
4451
+ end
4452
+
4453
+ ::Thrift::Struct.generate_accessors self
4454
+ end
4455
+
4456
+ class List_privileges_args
4457
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4458
+ PRINCIPAL_NAME = 1
4459
+ PRINCIPAL_TYPE = 2
4460
+ HIVEOBJECT = 3
4461
+
4462
+ FIELDS = {
4463
+ PRINCIPAL_NAME => {:type => ::Thrift::Types::STRING, :name => 'principal_name'},
4464
+ PRINCIPAL_TYPE => {:type => ::Thrift::Types::I32, :name => 'principal_type', :enum_class => ::Impala::Protocol::HiveMetastore::PrincipalType},
4465
+ HIVEOBJECT => {:type => ::Thrift::Types::STRUCT, :name => 'hiveObject', :class => ::Impala::Protocol::HiveMetastore::HiveObjectRef}
4466
+ }
4467
+
4468
+ def struct_fields; FIELDS; end
4469
+
4470
+ def validate
4471
+ unless @principal_type.nil? || ::Impala::Protocol::HiveMetastore::PrincipalType::VALID_VALUES.include?(@principal_type)
4472
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field principal_type!')
4473
+ end
4474
+ end
4475
+
4476
+ ::Thrift::Struct.generate_accessors self
4477
+ end
4478
+
4479
+ class List_privileges_result
4480
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4481
+ SUCCESS = 0
4482
+ O1 = 1
4483
+
4484
+ FIELDS = {
4485
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Impala::Protocol::HiveMetastore::HiveObjectPrivilege}},
4486
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException}
4487
+ }
4488
+
4489
+ def struct_fields; FIELDS; end
4490
+
4491
+ def validate
4492
+ end
4493
+
4494
+ ::Thrift::Struct.generate_accessors self
4495
+ end
4496
+
4497
+ class Grant_privileges_args
4498
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4499
+ PRIVILEGES = 1
4500
+
4501
+ FIELDS = {
4502
+ PRIVILEGES => {:type => ::Thrift::Types::STRUCT, :name => 'privileges', :class => ::Impala::Protocol::HiveMetastore::PrivilegeBag}
4503
+ }
4504
+
4505
+ def struct_fields; FIELDS; end
4506
+
4507
+ def validate
4508
+ end
4509
+
4510
+ ::Thrift::Struct.generate_accessors self
4511
+ end
4512
+
4513
+ class Grant_privileges_result
4514
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4515
+ SUCCESS = 0
4516
+ O1 = 1
4517
+
4518
+ FIELDS = {
4519
+ SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
4520
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException}
4521
+ }
4522
+
4523
+ def struct_fields; FIELDS; end
4524
+
4525
+ def validate
4526
+ end
4527
+
4528
+ ::Thrift::Struct.generate_accessors self
4529
+ end
4530
+
4531
+ class Revoke_privileges_args
4532
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4533
+ PRIVILEGES = 1
4534
+
4535
+ FIELDS = {
4536
+ PRIVILEGES => {:type => ::Thrift::Types::STRUCT, :name => 'privileges', :class => ::Impala::Protocol::HiveMetastore::PrivilegeBag}
4537
+ }
4538
+
4539
+ def struct_fields; FIELDS; end
4540
+
4541
+ def validate
4542
+ end
4543
+
4544
+ ::Thrift::Struct.generate_accessors self
4545
+ end
4546
+
4547
+ class Revoke_privileges_result
4548
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4549
+ SUCCESS = 0
4550
+ O1 = 1
4551
+
4552
+ FIELDS = {
4553
+ SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
4554
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException}
4555
+ }
4556
+
4557
+ def struct_fields; FIELDS; end
4558
+
4559
+ def validate
4560
+ end
4561
+
4562
+ ::Thrift::Struct.generate_accessors self
4563
+ end
4564
+
4565
+ class Set_ugi_args
4566
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4567
+ USER_NAME = 1
4568
+ GROUP_NAMES = 2
4569
+
4570
+ FIELDS = {
4571
+ USER_NAME => {:type => ::Thrift::Types::STRING, :name => 'user_name'},
4572
+ GROUP_NAMES => {:type => ::Thrift::Types::LIST, :name => 'group_names', :element => {:type => ::Thrift::Types::STRING}}
4573
+ }
4574
+
4575
+ def struct_fields; FIELDS; end
4576
+
4577
+ def validate
4578
+ end
4579
+
4580
+ ::Thrift::Struct.generate_accessors self
4581
+ end
4582
+
4583
+ class Set_ugi_result
4584
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4585
+ SUCCESS = 0
4586
+ O1 = 1
4587
+
4588
+ FIELDS = {
4589
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
4590
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException}
4591
+ }
4592
+
4593
+ def struct_fields; FIELDS; end
4594
+
4595
+ def validate
4596
+ end
4597
+
4598
+ ::Thrift::Struct.generate_accessors self
4599
+ end
4600
+
4601
+ class Get_delegation_token_args
4602
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4603
+ TOKEN_OWNER = 1
4604
+ RENEWER_KERBEROS_PRINCIPAL_NAME = 2
4605
+
4606
+ FIELDS = {
4607
+ TOKEN_OWNER => {:type => ::Thrift::Types::STRING, :name => 'token_owner'},
4608
+ RENEWER_KERBEROS_PRINCIPAL_NAME => {:type => ::Thrift::Types::STRING, :name => 'renewer_kerberos_principal_name'}
4609
+ }
4610
+
4611
+ def struct_fields; FIELDS; end
4612
+
4613
+ def validate
4614
+ end
4615
+
4616
+ ::Thrift::Struct.generate_accessors self
4617
+ end
4618
+
4619
+ class Get_delegation_token_result
4620
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4621
+ SUCCESS = 0
4622
+ O1 = 1
4623
+
4624
+ FIELDS = {
4625
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
4626
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException}
4627
+ }
4628
+
4629
+ def struct_fields; FIELDS; end
4630
+
4631
+ def validate
4632
+ end
4633
+
4634
+ ::Thrift::Struct.generate_accessors self
4635
+ end
4636
+
4637
+ class Renew_delegation_token_args
4638
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4639
+ TOKEN_STR_FORM = 1
4640
+
4641
+ FIELDS = {
4642
+ TOKEN_STR_FORM => {:type => ::Thrift::Types::STRING, :name => 'token_str_form'}
4643
+ }
4644
+
4645
+ def struct_fields; FIELDS; end
4646
+
4647
+ def validate
4648
+ end
4649
+
4650
+ ::Thrift::Struct.generate_accessors self
4651
+ end
4652
+
4653
+ class Renew_delegation_token_result
4654
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4655
+ SUCCESS = 0
4656
+ O1 = 1
4657
+
4658
+ FIELDS = {
4659
+ SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'},
4660
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException}
4661
+ }
4662
+
4663
+ def struct_fields; FIELDS; end
4664
+
4665
+ def validate
4666
+ end
4667
+
4668
+ ::Thrift::Struct.generate_accessors self
4669
+ end
4670
+
4671
+ class Cancel_delegation_token_args
4672
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4673
+ TOKEN_STR_FORM = 1
4674
+
4675
+ FIELDS = {
4676
+ TOKEN_STR_FORM => {:type => ::Thrift::Types::STRING, :name => 'token_str_form'}
4677
+ }
4678
+
4679
+ def struct_fields; FIELDS; end
4680
+
4681
+ def validate
4682
+ end
4683
+
4684
+ ::Thrift::Struct.generate_accessors self
4685
+ end
4686
+
4687
+ class Cancel_delegation_token_result
4688
+ include ::Thrift::Struct, ::Thrift::Struct_Union
4689
+ O1 = 1
4690
+
4691
+ FIELDS = {
4692
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::Impala::Protocol::HiveMetastore::MetaException}
4693
+ }
4694
+
4695
+ def struct_fields; FIELDS; end
4696
+
4697
+ def validate
4698
+ end
4699
+
4700
+ ::Thrift::Struct.generate_accessors self
4701
+ end
4702
+
4703
+ end
4704
+
4705
+ end
4706
+ end
4707
+ end