impala 0.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 (86) hide show
  1. data/.gitignore +17 -0
  2. data/Gemfile +2 -0
  3. data/LICENSE.txt +22 -0
  4. data/README.md +28 -0
  5. data/Rakefile +15 -0
  6. data/impala.gemspec +25 -0
  7. data/lib/impala.rb +33 -0
  8. data/lib/impala/connection.rb +93 -0
  9. data/lib/impala/cursor.rb +86 -0
  10. data/lib/impala/protocol.rb +6 -0
  11. data/lib/impala/protocol/beeswax_constants.rb +14 -0
  12. data/lib/impala/protocol/beeswax_service.rb +747 -0
  13. data/lib/impala/protocol/beeswax_types.rb +192 -0
  14. data/lib/impala/protocol/data_constants.rb +12 -0
  15. data/lib/impala/protocol/data_sinks_constants.rb +12 -0
  16. data/lib/impala/protocol/data_sinks_types.rb +107 -0
  17. data/lib/impala/protocol/data_types.rb +77 -0
  18. data/lib/impala/protocol/descriptors_constants.rb +12 -0
  19. data/lib/impala/protocol/descriptors_types.rb +266 -0
  20. data/lib/impala/protocol/exprs_constants.rb +12 -0
  21. data/lib/impala/protocol/exprs_types.rb +345 -0
  22. data/lib/impala/protocol/facebook_service.rb +706 -0
  23. data/lib/impala/protocol/fb303_constants.rb +14 -0
  24. data/lib/impala/protocol/fb303_types.rb +24 -0
  25. data/lib/impala/protocol/frontend_constants.rb +12 -0
  26. data/lib/impala/protocol/frontend_types.rb +347 -0
  27. data/lib/impala/protocol/hive_metastore_constants.rb +52 -0
  28. data/lib/impala/protocol/hive_metastore_types.rb +697 -0
  29. data/lib/impala/protocol/impala_internal_service.rb +244 -0
  30. data/lib/impala/protocol/impala_internal_service_constants.rb +12 -0
  31. data/lib/impala/protocol/impala_internal_service_types.rb +362 -0
  32. data/lib/impala/protocol/impala_plan_service.rb +310 -0
  33. data/lib/impala/protocol/impala_plan_service_constants.rb +12 -0
  34. data/lib/impala/protocol/impala_plan_service_types.rb +36 -0
  35. data/lib/impala/protocol/impala_service.rb +260 -0
  36. data/lib/impala/protocol/impala_service_constants.rb +12 -0
  37. data/lib/impala/protocol/impala_service_types.rb +46 -0
  38. data/lib/impala/protocol/java_constants_constants.rb +42 -0
  39. data/lib/impala/protocol/java_constants_types.rb +14 -0
  40. data/lib/impala/protocol/opcodes_constants.rb +12 -0
  41. data/lib/impala/protocol/opcodes_types.rb +309 -0
  42. data/lib/impala/protocol/partitions_constants.rb +12 -0
  43. data/lib/impala/protocol/partitions_types.rb +44 -0
  44. data/lib/impala/protocol/plan_nodes_constants.rb +12 -0
  45. data/lib/impala/protocol/plan_nodes_types.rb +345 -0
  46. data/lib/impala/protocol/planner_constants.rb +12 -0
  47. data/lib/impala/protocol/planner_types.rb +78 -0
  48. data/lib/impala/protocol/runtime_profile_constants.rb +12 -0
  49. data/lib/impala/protocol/runtime_profile_types.rb +97 -0
  50. data/lib/impala/protocol/state_store_service.rb +244 -0
  51. data/lib/impala/protocol/state_store_service_constants.rb +12 -0
  52. data/lib/impala/protocol/state_store_service_types.rb +185 -0
  53. data/lib/impala/protocol/state_store_subscriber_service.rb +82 -0
  54. data/lib/impala/protocol/state_store_subscriber_service_constants.rb +12 -0
  55. data/lib/impala/protocol/state_store_subscriber_service_types.rb +67 -0
  56. data/lib/impala/protocol/statestore_types_constants.rb +12 -0
  57. data/lib/impala/protocol/statestore_types_types.rb +77 -0
  58. data/lib/impala/protocol/status_constants.rb +12 -0
  59. data/lib/impala/protocol/status_types.rb +44 -0
  60. data/lib/impala/protocol/thrift_hive_metastore.rb +4707 -0
  61. data/lib/impala/protocol/types_constants.rb +12 -0
  62. data/lib/impala/protocol/types_types.rb +86 -0
  63. data/lib/impala/version.rb +3 -0
  64. data/thrift/Data.thrift +52 -0
  65. data/thrift/DataSinks.thrift +61 -0
  66. data/thrift/Descriptors.thrift +115 -0
  67. data/thrift/Exprs.thrift +134 -0
  68. data/thrift/Frontend.thrift +193 -0
  69. data/thrift/ImpalaInternalService.thrift +265 -0
  70. data/thrift/ImpalaPlanService.thrift +44 -0
  71. data/thrift/ImpalaService.thrift +105 -0
  72. data/thrift/JavaConstants.thrift +60 -0
  73. data/thrift/Opcodes.thrift +317 -0
  74. data/thrift/Partitions.thrift +41 -0
  75. data/thrift/PlanNodes.thrift +184 -0
  76. data/thrift/Planner.thrift +72 -0
  77. data/thrift/RuntimeProfile.thrift +58 -0
  78. data/thrift/StateStoreService.thrift +121 -0
  79. data/thrift/StateStoreSubscriberService.thrift +64 -0
  80. data/thrift/StatestoreTypes.thrift +50 -0
  81. data/thrift/Status.thrift +31 -0
  82. data/thrift/Types.thrift +71 -0
  83. data/thrift/beeswax.thrift +175 -0
  84. data/thrift/fb303.thrift +112 -0
  85. data/thrift/hive_metastore.thrift +528 -0
  86. metadata +206 -0
@@ -0,0 +1,310 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.8.0)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require 'impala_plan_service_types'
9
+
10
+ module Impala
11
+ module Protocol
12
+ module ImpalaPlanService
13
+ class Client
14
+ include ::Thrift::Client
15
+
16
+ def CreateExecRequest(clientRequest)
17
+ send_CreateExecRequest(clientRequest)
18
+ return recv_CreateExecRequest()
19
+ end
20
+
21
+ def send_CreateExecRequest(clientRequest)
22
+ send_message('CreateExecRequest', CreateExecRequest_args, :clientRequest => clientRequest)
23
+ end
24
+
25
+ def recv_CreateExecRequest()
26
+ result = receive_message(CreateExecRequest_result)
27
+ return result.success unless result.success.nil?
28
+ raise result.e unless result.e.nil?
29
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'CreateExecRequest failed: unknown result')
30
+ end
31
+
32
+ def RefreshMetadata()
33
+ send_RefreshMetadata()
34
+ recv_RefreshMetadata()
35
+ end
36
+
37
+ def send_RefreshMetadata()
38
+ send_message('RefreshMetadata', RefreshMetadata_args)
39
+ end
40
+
41
+ def recv_RefreshMetadata()
42
+ result = receive_message(RefreshMetadata_result)
43
+ return
44
+ end
45
+
46
+ def GetExplainString(queryRequest)
47
+ send_GetExplainString(queryRequest)
48
+ return recv_GetExplainString()
49
+ end
50
+
51
+ def send_GetExplainString(queryRequest)
52
+ send_message('GetExplainString', GetExplainString_args, :queryRequest => queryRequest)
53
+ end
54
+
55
+ def recv_GetExplainString()
56
+ result = receive_message(GetExplainString_result)
57
+ return result.success unless result.success.nil?
58
+ raise result.e unless result.e.nil?
59
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetExplainString failed: unknown result')
60
+ end
61
+
62
+ def UpdateMetastore(update)
63
+ send_UpdateMetastore(update)
64
+ recv_UpdateMetastore()
65
+ end
66
+
67
+ def send_UpdateMetastore(update)
68
+ send_message('UpdateMetastore', UpdateMetastore_args, :update => update)
69
+ end
70
+
71
+ def recv_UpdateMetastore()
72
+ result = receive_message(UpdateMetastore_result)
73
+ raise result.e unless result.e.nil?
74
+ return
75
+ end
76
+
77
+ def ShutdownServer()
78
+ send_ShutdownServer()
79
+ recv_ShutdownServer()
80
+ end
81
+
82
+ def send_ShutdownServer()
83
+ send_message('ShutdownServer', ShutdownServer_args)
84
+ end
85
+
86
+ def recv_ShutdownServer()
87
+ result = receive_message(ShutdownServer_result)
88
+ return
89
+ end
90
+
91
+ end
92
+
93
+ class Processor
94
+ include ::Thrift::Processor
95
+
96
+ def process_CreateExecRequest(seqid, iprot, oprot)
97
+ args = read_args(iprot, CreateExecRequest_args)
98
+ result = CreateExecRequest_result.new()
99
+ begin
100
+ result.success = @handler.CreateExecRequest(args.clientRequest)
101
+ rescue Impala::Protocol::TImpalaPlanServiceException => e
102
+ result.e = e
103
+ end
104
+ write_result(result, oprot, 'CreateExecRequest', seqid)
105
+ end
106
+
107
+ def process_RefreshMetadata(seqid, iprot, oprot)
108
+ args = read_args(iprot, RefreshMetadata_args)
109
+ result = RefreshMetadata_result.new()
110
+ @handler.RefreshMetadata()
111
+ write_result(result, oprot, 'RefreshMetadata', seqid)
112
+ end
113
+
114
+ def process_GetExplainString(seqid, iprot, oprot)
115
+ args = read_args(iprot, GetExplainString_args)
116
+ result = GetExplainString_result.new()
117
+ begin
118
+ result.success = @handler.GetExplainString(args.queryRequest)
119
+ rescue Impala::Protocol::TImpalaPlanServiceException => e
120
+ result.e = e
121
+ end
122
+ write_result(result, oprot, 'GetExplainString', seqid)
123
+ end
124
+
125
+ def process_UpdateMetastore(seqid, iprot, oprot)
126
+ args = read_args(iprot, UpdateMetastore_args)
127
+ result = UpdateMetastore_result.new()
128
+ begin
129
+ @handler.UpdateMetastore(args.update)
130
+ rescue Impala::Protocol::TImpalaPlanServiceException => e
131
+ result.e = e
132
+ end
133
+ write_result(result, oprot, 'UpdateMetastore', seqid)
134
+ end
135
+
136
+ def process_ShutdownServer(seqid, iprot, oprot)
137
+ args = read_args(iprot, ShutdownServer_args)
138
+ result = ShutdownServer_result.new()
139
+ @handler.ShutdownServer()
140
+ write_result(result, oprot, 'ShutdownServer', seqid)
141
+ end
142
+
143
+ end
144
+
145
+ # HELPER FUNCTIONS AND STRUCTURES
146
+
147
+ class CreateExecRequest_args
148
+ include ::Thrift::Struct, ::Thrift::Struct_Union
149
+ CLIENTREQUEST = 1
150
+
151
+ FIELDS = {
152
+ CLIENTREQUEST => { :type => ::Thrift::Types::STRUCT, :name => 'clientRequest', :class => Impala::Protocol::TClientRequest }
153
+ }
154
+
155
+ def struct_fields; FIELDS; end
156
+
157
+ def validate
158
+ end
159
+
160
+ ::Thrift::Struct.generate_accessors self
161
+ end
162
+
163
+ class CreateExecRequest_result
164
+ include ::Thrift::Struct, ::Thrift::Struct_Union
165
+ SUCCESS = 0
166
+ E = 1
167
+
168
+ FIELDS = {
169
+ SUCCESS => { :type => ::Thrift::Types::STRUCT, :name => 'success', :class => Impala::Protocol::TExecRequest },
170
+ E => { :type => ::Thrift::Types::STRUCT, :name => 'e', :class => Impala::Protocol::TImpalaPlanServiceException }
171
+ }
172
+
173
+ def struct_fields; FIELDS; end
174
+
175
+ def validate
176
+ end
177
+
178
+ ::Thrift::Struct.generate_accessors self
179
+ end
180
+
181
+ class RefreshMetadata_args
182
+ include ::Thrift::Struct, ::Thrift::Struct_Union
183
+
184
+ FIELDS = {
185
+
186
+ }
187
+
188
+ def struct_fields; FIELDS; end
189
+
190
+ def validate
191
+ end
192
+
193
+ ::Thrift::Struct.generate_accessors self
194
+ end
195
+
196
+ class RefreshMetadata_result
197
+ include ::Thrift::Struct, ::Thrift::Struct_Union
198
+
199
+ FIELDS = {
200
+
201
+ }
202
+
203
+ def struct_fields; FIELDS; end
204
+
205
+ def validate
206
+ end
207
+
208
+ ::Thrift::Struct.generate_accessors self
209
+ end
210
+
211
+ class GetExplainString_args
212
+ include ::Thrift::Struct, ::Thrift::Struct_Union
213
+ QUERYREQUEST = 1
214
+
215
+ FIELDS = {
216
+ QUERYREQUEST => { :type => ::Thrift::Types::STRUCT, :name => 'queryRequest', :class => Impala::Protocol::TClientRequest }
217
+ }
218
+
219
+ def struct_fields; FIELDS; end
220
+
221
+ def validate
222
+ end
223
+
224
+ ::Thrift::Struct.generate_accessors self
225
+ end
226
+
227
+ class GetExplainString_result
228
+ include ::Thrift::Struct, ::Thrift::Struct_Union
229
+ SUCCESS = 0
230
+ E = 1
231
+
232
+ FIELDS = {
233
+ SUCCESS => { :type => ::Thrift::Types::STRING, :name => 'success' },
234
+ E => { :type => ::Thrift::Types::STRUCT, :name => 'e', :class => Impala::Protocol::TImpalaPlanServiceException }
235
+ }
236
+
237
+ def struct_fields; FIELDS; end
238
+
239
+ def validate
240
+ end
241
+
242
+ ::Thrift::Struct.generate_accessors self
243
+ end
244
+
245
+ class UpdateMetastore_args
246
+ include ::Thrift::Struct, ::Thrift::Struct_Union
247
+ UPDATE = 1
248
+
249
+ FIELDS = {
250
+ UPDATE => { :type => ::Thrift::Types::STRUCT, :name => 'update', :class => Impala::Protocol::TCatalogUpdate }
251
+ }
252
+
253
+ def struct_fields; FIELDS; end
254
+
255
+ def validate
256
+ end
257
+
258
+ ::Thrift::Struct.generate_accessors self
259
+ end
260
+
261
+ class UpdateMetastore_result
262
+ include ::Thrift::Struct, ::Thrift::Struct_Union
263
+ E = 1
264
+
265
+ FIELDS = {
266
+ E => { :type => ::Thrift::Types::STRUCT, :name => 'e', :class => Impala::Protocol::TImpalaPlanServiceException }
267
+ }
268
+
269
+ def struct_fields; FIELDS; end
270
+
271
+ def validate
272
+ end
273
+
274
+ ::Thrift::Struct.generate_accessors self
275
+ end
276
+
277
+ class ShutdownServer_args
278
+ include ::Thrift::Struct, ::Thrift::Struct_Union
279
+
280
+ FIELDS = {
281
+
282
+ }
283
+
284
+ def struct_fields; FIELDS; end
285
+
286
+ def validate
287
+ end
288
+
289
+ ::Thrift::Struct.generate_accessors self
290
+ end
291
+
292
+ class ShutdownServer_result
293
+ include ::Thrift::Struct, ::Thrift::Struct_Union
294
+
295
+ FIELDS = {
296
+
297
+ }
298
+
299
+ def struct_fields; FIELDS; end
300
+
301
+ def validate
302
+ end
303
+
304
+ ::Thrift::Struct.generate_accessors self
305
+ end
306
+
307
+ end
308
+
309
+ end
310
+ end
@@ -0,0 +1,12 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.8.0)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'impala_plan_service_types'
8
+
9
+ module Impala
10
+ module Protocol
11
+ end
12
+ end
@@ -0,0 +1,36 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.8.0)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'frontend_types'
8
+
9
+
10
+ module Impala
11
+ module Protocol
12
+ class TImpalaPlanServiceException < ::Thrift::Exception
13
+ include ::Thrift::Struct, ::Thrift::Struct_Union
14
+ def initialize(message=nil)
15
+ super()
16
+ self.msg = message
17
+ end
18
+
19
+ def message; msg end
20
+
21
+ MSG = 1
22
+
23
+ FIELDS = {
24
+ MSG => { :type => ::Thrift::Types::STRING, :name => 'msg' }
25
+ }
26
+
27
+ def struct_fields; FIELDS; end
28
+
29
+ def validate
30
+ end
31
+
32
+ ::Thrift::Struct.generate_accessors self
33
+ end
34
+
35
+ end
36
+ end
@@ -0,0 +1,260 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.8.0)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require 'beeswax_service'
9
+ require 'impala_service_types'
10
+
11
+ module Impala
12
+ module Protocol
13
+ module ImpalaService
14
+ class Client < Impala::Protocol::Beeswax::BeeswaxService::Client
15
+ include ::Thrift::Client
16
+
17
+ def Cancel(query_id)
18
+ send_Cancel(query_id)
19
+ return recv_Cancel()
20
+ end
21
+
22
+ def send_Cancel(query_id)
23
+ send_message('Cancel', Cancel_args, :query_id => query_id)
24
+ end
25
+
26
+ def recv_Cancel()
27
+ result = receive_message(Cancel_result)
28
+ return result.success unless result.success.nil?
29
+ raise result.error unless result.error.nil?
30
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'Cancel failed: unknown result')
31
+ end
32
+
33
+ def ResetCatalog()
34
+ send_ResetCatalog()
35
+ return recv_ResetCatalog()
36
+ end
37
+
38
+ def send_ResetCatalog()
39
+ send_message('ResetCatalog', ResetCatalog_args)
40
+ end
41
+
42
+ def recv_ResetCatalog()
43
+ result = receive_message(ResetCatalog_result)
44
+ return result.success unless result.success.nil?
45
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'ResetCatalog failed: unknown result')
46
+ end
47
+
48
+ def CloseInsert(handle)
49
+ send_CloseInsert(handle)
50
+ return recv_CloseInsert()
51
+ end
52
+
53
+ def send_CloseInsert(handle)
54
+ send_message('CloseInsert', CloseInsert_args, :handle => handle)
55
+ end
56
+
57
+ def recv_CloseInsert()
58
+ result = receive_message(CloseInsert_result)
59
+ return result.success unless result.success.nil?
60
+ raise result.error unless result.error.nil?
61
+ raise result.error2 unless result.error2.nil?
62
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'CloseInsert failed: unknown result')
63
+ end
64
+
65
+ def PingImpalaService()
66
+ send_PingImpalaService()
67
+ recv_PingImpalaService()
68
+ end
69
+
70
+ def send_PingImpalaService()
71
+ send_message('PingImpalaService', PingImpalaService_args)
72
+ end
73
+
74
+ def recv_PingImpalaService()
75
+ result = receive_message(PingImpalaService_result)
76
+ return
77
+ end
78
+
79
+ end
80
+
81
+ class Processor < Impala::Protocol::Beeswax::BeeswaxService::Processor
82
+ include ::Thrift::Processor
83
+
84
+ def process_Cancel(seqid, iprot, oprot)
85
+ args = read_args(iprot, Cancel_args)
86
+ result = Cancel_result.new()
87
+ begin
88
+ result.success = @handler.Cancel(args.query_id)
89
+ rescue Impala::Protocol::Beeswax::BeeswaxException => error
90
+ result.error = error
91
+ end
92
+ write_result(result, oprot, 'Cancel', seqid)
93
+ end
94
+
95
+ def process_ResetCatalog(seqid, iprot, oprot)
96
+ args = read_args(iprot, ResetCatalog_args)
97
+ result = ResetCatalog_result.new()
98
+ result.success = @handler.ResetCatalog()
99
+ write_result(result, oprot, 'ResetCatalog', seqid)
100
+ end
101
+
102
+ def process_CloseInsert(seqid, iprot, oprot)
103
+ args = read_args(iprot, CloseInsert_args)
104
+ result = CloseInsert_result.new()
105
+ begin
106
+ result.success = @handler.CloseInsert(args.handle)
107
+ rescue Impala::Protocol::Beeswax::QueryNotFoundException => error
108
+ result.error = error
109
+ rescue Impala::Protocol::Beeswax::BeeswaxException => error2
110
+ result.error2 = error2
111
+ end
112
+ write_result(result, oprot, 'CloseInsert', seqid)
113
+ end
114
+
115
+ def process_PingImpalaService(seqid, iprot, oprot)
116
+ args = read_args(iprot, PingImpalaService_args)
117
+ result = PingImpalaService_result.new()
118
+ @handler.PingImpalaService()
119
+ write_result(result, oprot, 'PingImpalaService', seqid)
120
+ end
121
+
122
+ end
123
+
124
+ # HELPER FUNCTIONS AND STRUCTURES
125
+
126
+ class Cancel_args
127
+ include ::Thrift::Struct, ::Thrift::Struct_Union
128
+ QUERY_ID = 1
129
+
130
+ FIELDS = {
131
+ QUERY_ID => { :type => ::Thrift::Types::STRUCT, :name => 'query_id', :class => Impala::Protocol::Beeswax::QueryHandle }
132
+ }
133
+
134
+ def struct_fields; FIELDS; end
135
+
136
+ def validate
137
+ end
138
+
139
+ ::Thrift::Struct.generate_accessors self
140
+ end
141
+
142
+ class Cancel_result
143
+ include ::Thrift::Struct, ::Thrift::Struct_Union
144
+ SUCCESS = 0
145
+ ERROR = 1
146
+
147
+ FIELDS = {
148
+ SUCCESS => { :type => ::Thrift::Types::STRUCT, :name => 'success', :class => Impala::Protocol::TStatus },
149
+ ERROR => { :type => ::Thrift::Types::STRUCT, :name => 'error', :class => Impala::Protocol::Beeswax::BeeswaxException }
150
+ }
151
+
152
+ def struct_fields; FIELDS; end
153
+
154
+ def validate
155
+ end
156
+
157
+ ::Thrift::Struct.generate_accessors self
158
+ end
159
+
160
+ class ResetCatalog_args
161
+ include ::Thrift::Struct, ::Thrift::Struct_Union
162
+
163
+ FIELDS = {
164
+
165
+ }
166
+
167
+ def struct_fields; FIELDS; end
168
+
169
+ def validate
170
+ end
171
+
172
+ ::Thrift::Struct.generate_accessors self
173
+ end
174
+
175
+ class ResetCatalog_result
176
+ include ::Thrift::Struct, ::Thrift::Struct_Union
177
+ SUCCESS = 0
178
+
179
+ FIELDS = {
180
+ SUCCESS => { :type => ::Thrift::Types::STRUCT, :name => 'success', :class => Impala::Protocol::TStatus }
181
+ }
182
+
183
+ def struct_fields; FIELDS; end
184
+
185
+ def validate
186
+ end
187
+
188
+ ::Thrift::Struct.generate_accessors self
189
+ end
190
+
191
+ class CloseInsert_args
192
+ include ::Thrift::Struct, ::Thrift::Struct_Union
193
+ HANDLE = 1
194
+
195
+ FIELDS = {
196
+ HANDLE => { :type => ::Thrift::Types::STRUCT, :name => 'handle', :class => Impala::Protocol::Beeswax::QueryHandle }
197
+ }
198
+
199
+ def struct_fields; FIELDS; end
200
+
201
+ def validate
202
+ end
203
+
204
+ ::Thrift::Struct.generate_accessors self
205
+ end
206
+
207
+ class CloseInsert_result
208
+ include ::Thrift::Struct, ::Thrift::Struct_Union
209
+ SUCCESS = 0
210
+ ERROR = 1
211
+ ERROR2 = 2
212
+
213
+ FIELDS = {
214
+ SUCCESS => { :type => ::Thrift::Types::STRUCT, :name => 'success', :class => Impala::Protocol::TInsertResult },
215
+ ERROR => { :type => ::Thrift::Types::STRUCT, :name => 'error', :class => Impala::Protocol::Beeswax::QueryNotFoundException },
216
+ ERROR2 => { :type => ::Thrift::Types::STRUCT, :name => 'error2', :class => Impala::Protocol::Beeswax::BeeswaxException }
217
+ }
218
+
219
+ def struct_fields; FIELDS; end
220
+
221
+ def validate
222
+ end
223
+
224
+ ::Thrift::Struct.generate_accessors self
225
+ end
226
+
227
+ class PingImpalaService_args
228
+ include ::Thrift::Struct, ::Thrift::Struct_Union
229
+
230
+ FIELDS = {
231
+
232
+ }
233
+
234
+ def struct_fields; FIELDS; end
235
+
236
+ def validate
237
+ end
238
+
239
+ ::Thrift::Struct.generate_accessors self
240
+ end
241
+
242
+ class PingImpalaService_result
243
+ include ::Thrift::Struct, ::Thrift::Struct_Union
244
+
245
+ FIELDS = {
246
+
247
+ }
248
+
249
+ def struct_fields; FIELDS; end
250
+
251
+ def validate
252
+ end
253
+
254
+ ::Thrift::Struct.generate_accessors self
255
+ end
256
+
257
+ end
258
+
259
+ end
260
+ end