rbhive 0.2.95 → 0.5.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.
- data/.gitignore +2 -0
- data/LICENSE +20 -0
- data/README.md +204 -0
- data/lib/rbhive/connection.rb +2 -1
- data/lib/rbhive/t_c_l_i_connection.rb +315 -0
- data/lib/rbhive/t_c_l_i_result_set.rb +3 -0
- data/lib/rbhive/t_c_l_i_schema_definition.rb +87 -0
- data/lib/rbhive/version.rb +3 -0
- data/lib/rbhive.rb +4 -1
- data/lib/thrift/facebook_service.rb +4 -5
- data/lib/thrift/fb303_constants.rb +3 -2
- data/lib/thrift/fb303_types.rb +2 -1
- data/lib/thrift/hive_metastore_constants.rb +3 -3
- data/lib/thrift/hive_metastore_types.rb +176 -14
- data/lib/thrift/hive_service_constants.rb +7 -2
- data/lib/thrift/hive_service_types.rb +53 -48
- data/lib/thrift/queryplan_constants.rb +7 -2
- data/lib/thrift/queryplan_types.rb +225 -217
- data/lib/thrift/sasl_client_transport.rb +97 -0
- data/lib/thrift/serde_constants.rb +5 -3
- data/lib/thrift/serde_types.rb +2 -2
- data/lib/thrift/t_c_l_i_service.rb +892 -0
- data/lib/thrift/t_c_l_i_service_constants.rb +66 -0
- data/lib/thrift/t_c_l_i_service_types.rb +1469 -0
- data/lib/thrift/thrift_hive.rb +405 -401
- data/lib/thrift/thrift_hive_metastore.rb +1452 -203
- data/rbhive.gemspec +24 -0
- metadata +90 -69
- data/lib/thrift/reflection_limited_constants.rb +0 -8
- data/lib/thrift/reflection_limited_types.rb +0 -150
data/lib/thrift/thrift_hive.rb
CHANGED
@@ -1,504 +1,508 @@
|
|
1
1
|
#
|
2
|
-
# Autogenerated by Thrift
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.0)
|
3
3
|
#
|
4
4
|
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
5
|
#
|
6
6
|
|
7
7
|
require 'thrift'
|
8
|
-
|
9
|
-
|
8
|
+
require_relative 'thrift_hive_metastore'
|
9
|
+
require_relative 'hive_service_types'
|
10
|
+
|
11
|
+
module Hive
|
12
|
+
module Thrift
|
13
|
+
module ThriftHive
|
14
|
+
class Client < ::ThriftHiveMetastore::Client
|
15
|
+
include ::Thrift::Client
|
16
|
+
|
17
|
+
def execute(query)
|
18
|
+
send_execute(query)
|
19
|
+
recv_execute()
|
20
|
+
end
|
21
|
+
|
22
|
+
def send_execute(query)
|
23
|
+
send_message('execute', Execute_args, :query => query)
|
24
|
+
end
|
25
|
+
|
26
|
+
def recv_execute()
|
27
|
+
result = receive_message(Execute_result)
|
28
|
+
raise result.ex unless result.ex.nil?
|
29
|
+
return
|
30
|
+
end
|
31
|
+
|
32
|
+
def fetchOne()
|
33
|
+
send_fetchOne()
|
34
|
+
return recv_fetchOne()
|
35
|
+
end
|
36
|
+
|
37
|
+
def send_fetchOne()
|
38
|
+
send_message('fetchOne', FetchOne_args)
|
39
|
+
end
|
40
|
+
|
41
|
+
def recv_fetchOne()
|
42
|
+
result = receive_message(FetchOne_result)
|
43
|
+
return result.success unless result.success.nil?
|
44
|
+
raise result.ex unless result.ex.nil?
|
45
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'fetchOne failed: unknown result')
|
46
|
+
end
|
47
|
+
|
48
|
+
def fetchN(numRows)
|
49
|
+
send_fetchN(numRows)
|
50
|
+
return recv_fetchN()
|
51
|
+
end
|
52
|
+
|
53
|
+
def send_fetchN(numRows)
|
54
|
+
send_message('fetchN', FetchN_args, :numRows => numRows)
|
55
|
+
end
|
56
|
+
|
57
|
+
def recv_fetchN()
|
58
|
+
result = receive_message(FetchN_result)
|
59
|
+
return result.success unless result.success.nil?
|
60
|
+
raise result.ex unless result.ex.nil?
|
61
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'fetchN failed: unknown result')
|
62
|
+
end
|
63
|
+
|
64
|
+
def fetchAll()
|
65
|
+
send_fetchAll()
|
66
|
+
return recv_fetchAll()
|
67
|
+
end
|
68
|
+
|
69
|
+
def send_fetchAll()
|
70
|
+
send_message('fetchAll', FetchAll_args)
|
71
|
+
end
|
72
|
+
|
73
|
+
def recv_fetchAll()
|
74
|
+
result = receive_message(FetchAll_result)
|
75
|
+
return result.success unless result.success.nil?
|
76
|
+
raise result.ex unless result.ex.nil?
|
77
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'fetchAll failed: unknown result')
|
78
|
+
end
|
79
|
+
|
80
|
+
def getSchema()
|
81
|
+
send_getSchema()
|
82
|
+
return recv_getSchema()
|
83
|
+
end
|
84
|
+
|
85
|
+
def send_getSchema()
|
86
|
+
send_message('getSchema', GetSchema_args)
|
87
|
+
end
|
88
|
+
|
89
|
+
def recv_getSchema()
|
90
|
+
result = receive_message(GetSchema_result)
|
91
|
+
return result.success unless result.success.nil?
|
92
|
+
raise result.ex unless result.ex.nil?
|
93
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getSchema failed: unknown result')
|
94
|
+
end
|
95
|
+
|
96
|
+
def getThriftSchema()
|
97
|
+
send_getThriftSchema()
|
98
|
+
return recv_getThriftSchema()
|
99
|
+
end
|
100
|
+
|
101
|
+
def send_getThriftSchema()
|
102
|
+
send_message('getThriftSchema', GetThriftSchema_args)
|
103
|
+
end
|
104
|
+
|
105
|
+
def recv_getThriftSchema()
|
106
|
+
result = receive_message(GetThriftSchema_result)
|
107
|
+
return result.success unless result.success.nil?
|
108
|
+
raise result.ex unless result.ex.nil?
|
109
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getThriftSchema failed: unknown result')
|
110
|
+
end
|
111
|
+
|
112
|
+
def getClusterStatus()
|
113
|
+
send_getClusterStatus()
|
114
|
+
return recv_getClusterStatus()
|
115
|
+
end
|
116
|
+
|
117
|
+
def send_getClusterStatus()
|
118
|
+
send_message('getClusterStatus', GetClusterStatus_args)
|
119
|
+
end
|
120
|
+
|
121
|
+
def recv_getClusterStatus()
|
122
|
+
result = receive_message(GetClusterStatus_result)
|
123
|
+
return result.success unless result.success.nil?
|
124
|
+
raise result.ex unless result.ex.nil?
|
125
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getClusterStatus failed: unknown result')
|
126
|
+
end
|
127
|
+
|
128
|
+
def getQueryPlan()
|
129
|
+
send_getQueryPlan()
|
130
|
+
return recv_getQueryPlan()
|
131
|
+
end
|
132
|
+
|
133
|
+
def send_getQueryPlan()
|
134
|
+
send_message('getQueryPlan', GetQueryPlan_args)
|
135
|
+
end
|
136
|
+
|
137
|
+
def recv_getQueryPlan()
|
138
|
+
result = receive_message(GetQueryPlan_result)
|
139
|
+
return result.success unless result.success.nil?
|
140
|
+
raise result.ex unless result.ex.nil?
|
141
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getQueryPlan failed: unknown result')
|
142
|
+
end
|
10
143
|
|
11
|
-
module ThriftHive
|
12
|
-
class Client < ThriftHiveMetastore::Client
|
13
|
-
include ::Thrift::Client
|
14
|
-
|
15
|
-
def execute(query)
|
16
|
-
send_execute(query)
|
17
|
-
recv_execute()
|
18
|
-
end
|
19
|
-
|
20
|
-
def send_execute(query)
|
21
|
-
send_message('execute', Execute_args, :query => query)
|
22
|
-
end
|
23
|
-
|
24
|
-
def recv_execute()
|
25
|
-
result = receive_message(Execute_result)
|
26
|
-
raise result.ex unless result.ex.nil?
|
27
|
-
return
|
28
|
-
end
|
29
|
-
|
30
|
-
def fetchOne()
|
31
|
-
send_fetchOne()
|
32
|
-
return recv_fetchOne()
|
33
|
-
end
|
34
|
-
|
35
|
-
def send_fetchOne()
|
36
|
-
send_message('fetchOne', FetchOne_args)
|
37
|
-
end
|
38
|
-
|
39
|
-
def recv_fetchOne()
|
40
|
-
result = receive_message(FetchOne_result)
|
41
|
-
return result.success unless result.success.nil?
|
42
|
-
raise result.ex unless result.ex.nil?
|
43
|
-
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'fetchOne failed: unknown result')
|
44
|
-
end
|
45
|
-
|
46
|
-
def fetchN(numRows)
|
47
|
-
send_fetchN(numRows)
|
48
|
-
return recv_fetchN()
|
49
|
-
end
|
50
|
-
|
51
|
-
def send_fetchN(numRows)
|
52
|
-
send_message('fetchN', FetchN_args, :numRows => numRows)
|
53
|
-
end
|
54
|
-
|
55
|
-
def recv_fetchN()
|
56
|
-
result = receive_message(FetchN_result)
|
57
|
-
return result.success unless result.success.nil?
|
58
|
-
raise result.ex unless result.ex.nil?
|
59
|
-
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'fetchN failed: unknown result')
|
60
|
-
end
|
61
|
-
|
62
|
-
def fetchAll()
|
63
|
-
send_fetchAll()
|
64
|
-
return recv_fetchAll()
|
65
|
-
end
|
66
|
-
|
67
|
-
def send_fetchAll()
|
68
|
-
send_message('fetchAll', FetchAll_args)
|
69
|
-
end
|
70
|
-
|
71
|
-
def recv_fetchAll()
|
72
|
-
result = receive_message(FetchAll_result)
|
73
|
-
return result.success unless result.success.nil?
|
74
|
-
raise result.ex unless result.ex.nil?
|
75
|
-
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'fetchAll failed: unknown result')
|
76
|
-
end
|
77
|
-
|
78
|
-
def getSchema()
|
79
|
-
send_getSchema()
|
80
|
-
return recv_getSchema()
|
81
|
-
end
|
82
|
-
|
83
|
-
def send_getSchema()
|
84
|
-
send_message('getSchema', GetSchema_args)
|
85
|
-
end
|
86
|
-
|
87
|
-
def recv_getSchema()
|
88
|
-
result = receive_message(GetSchema_result)
|
89
|
-
return result.success unless result.success.nil?
|
90
|
-
raise result.ex unless result.ex.nil?
|
91
|
-
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getSchema failed: unknown result')
|
92
|
-
end
|
93
|
-
|
94
|
-
def getThriftSchema()
|
95
|
-
send_getThriftSchema()
|
96
|
-
return recv_getThriftSchema()
|
97
|
-
end
|
98
|
-
|
99
|
-
def send_getThriftSchema()
|
100
|
-
send_message('getThriftSchema', GetThriftSchema_args)
|
101
|
-
end
|
102
|
-
|
103
|
-
def recv_getThriftSchema()
|
104
|
-
result = receive_message(GetThriftSchema_result)
|
105
|
-
return result.success unless result.success.nil?
|
106
|
-
raise result.ex unless result.ex.nil?
|
107
|
-
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getThriftSchema failed: unknown result')
|
108
|
-
end
|
109
|
-
|
110
|
-
def getClusterStatus()
|
111
|
-
send_getClusterStatus()
|
112
|
-
return recv_getClusterStatus()
|
113
|
-
end
|
114
|
-
|
115
|
-
def send_getClusterStatus()
|
116
|
-
send_message('getClusterStatus', GetClusterStatus_args)
|
117
|
-
end
|
118
|
-
|
119
|
-
def recv_getClusterStatus()
|
120
|
-
result = receive_message(GetClusterStatus_result)
|
121
|
-
return result.success unless result.success.nil?
|
122
|
-
raise result.ex unless result.ex.nil?
|
123
|
-
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getClusterStatus failed: unknown result')
|
124
|
-
end
|
125
|
-
|
126
|
-
def getQueryPlan()
|
127
|
-
send_getQueryPlan()
|
128
|
-
return recv_getQueryPlan()
|
129
|
-
end
|
130
|
-
|
131
|
-
def send_getQueryPlan()
|
132
|
-
send_message('getQueryPlan', GetQueryPlan_args)
|
133
|
-
end
|
134
|
-
|
135
|
-
def recv_getQueryPlan()
|
136
|
-
result = receive_message(GetQueryPlan_result)
|
137
|
-
return result.success unless result.success.nil?
|
138
|
-
raise result.ex unless result.ex.nil?
|
139
|
-
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getQueryPlan failed: unknown result')
|
140
|
-
end
|
141
|
-
|
142
|
-
end
|
143
|
-
|
144
|
-
class Processor < ThriftHiveMetastore::Processor
|
145
|
-
include ::Thrift::Processor
|
146
|
-
|
147
|
-
def process_execute(seqid, iprot, oprot)
|
148
|
-
args = read_args(iprot, Execute_args)
|
149
|
-
result = Execute_result.new()
|
150
|
-
begin
|
151
|
-
@handler.execute(args.query)
|
152
|
-
rescue HiveServerException => ex
|
153
|
-
result.ex = ex
|
154
144
|
end
|
155
|
-
write_result(result, oprot, 'execute', seqid)
|
156
|
-
end
|
157
145
|
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
146
|
+
class Processor < ::ThriftHiveMetastore::Processor
|
147
|
+
include ::Thrift::Processor
|
148
|
+
|
149
|
+
def process_execute(seqid, iprot, oprot)
|
150
|
+
args = read_args(iprot, Execute_args)
|
151
|
+
result = Execute_result.new()
|
152
|
+
begin
|
153
|
+
@handler.execute(args.query)
|
154
|
+
rescue ::Hive::Thrift::HiveServerException => ex
|
155
|
+
result.ex = ex
|
156
|
+
end
|
157
|
+
write_result(result, oprot, 'execute', seqid)
|
158
|
+
end
|
159
|
+
|
160
|
+
def process_fetchOne(seqid, iprot, oprot)
|
161
|
+
args = read_args(iprot, FetchOne_args)
|
162
|
+
result = FetchOne_result.new()
|
163
|
+
begin
|
164
|
+
result.success = @handler.fetchOne()
|
165
|
+
rescue ::Hive::Thrift::HiveServerException => ex
|
166
|
+
result.ex = ex
|
167
|
+
end
|
168
|
+
write_result(result, oprot, 'fetchOne', seqid)
|
169
|
+
end
|
170
|
+
|
171
|
+
def process_fetchN(seqid, iprot, oprot)
|
172
|
+
args = read_args(iprot, FetchN_args)
|
173
|
+
result = FetchN_result.new()
|
174
|
+
begin
|
175
|
+
result.success = @handler.fetchN(args.numRows)
|
176
|
+
rescue ::Hive::Thrift::HiveServerException => ex
|
177
|
+
result.ex = ex
|
178
|
+
end
|
179
|
+
write_result(result, oprot, 'fetchN', seqid)
|
180
|
+
end
|
181
|
+
|
182
|
+
def process_fetchAll(seqid, iprot, oprot)
|
183
|
+
args = read_args(iprot, FetchAll_args)
|
184
|
+
result = FetchAll_result.new()
|
185
|
+
begin
|
186
|
+
result.success = @handler.fetchAll()
|
187
|
+
rescue ::Hive::Thrift::HiveServerException => ex
|
188
|
+
result.ex = ex
|
189
|
+
end
|
190
|
+
write_result(result, oprot, 'fetchAll', seqid)
|
191
|
+
end
|
192
|
+
|
193
|
+
def process_getSchema(seqid, iprot, oprot)
|
194
|
+
args = read_args(iprot, GetSchema_args)
|
195
|
+
result = GetSchema_result.new()
|
196
|
+
begin
|
197
|
+
result.success = @handler.getSchema()
|
198
|
+
rescue ::Hive::Thrift::HiveServerException => ex
|
199
|
+
result.ex = ex
|
200
|
+
end
|
201
|
+
write_result(result, oprot, 'getSchema', seqid)
|
202
|
+
end
|
203
|
+
|
204
|
+
def process_getThriftSchema(seqid, iprot, oprot)
|
205
|
+
args = read_args(iprot, GetThriftSchema_args)
|
206
|
+
result = GetThriftSchema_result.new()
|
207
|
+
begin
|
208
|
+
result.success = @handler.getThriftSchema()
|
209
|
+
rescue ::Hive::Thrift::HiveServerException => ex
|
210
|
+
result.ex = ex
|
211
|
+
end
|
212
|
+
write_result(result, oprot, 'getThriftSchema', seqid)
|
213
|
+
end
|
214
|
+
|
215
|
+
def process_getClusterStatus(seqid, iprot, oprot)
|
216
|
+
args = read_args(iprot, GetClusterStatus_args)
|
217
|
+
result = GetClusterStatus_result.new()
|
218
|
+
begin
|
219
|
+
result.success = @handler.getClusterStatus()
|
220
|
+
rescue ::Hive::Thrift::HiveServerException => ex
|
221
|
+
result.ex = ex
|
222
|
+
end
|
223
|
+
write_result(result, oprot, 'getClusterStatus', seqid)
|
224
|
+
end
|
225
|
+
|
226
|
+
def process_getQueryPlan(seqid, iprot, oprot)
|
227
|
+
args = read_args(iprot, GetQueryPlan_args)
|
228
|
+
result = GetQueryPlan_result.new()
|
229
|
+
begin
|
230
|
+
result.success = @handler.getQueryPlan()
|
231
|
+
rescue ::Hive::Thrift::HiveServerException => ex
|
232
|
+
result.ex = ex
|
233
|
+
end
|
234
|
+
write_result(result, oprot, 'getQueryPlan', seqid)
|
235
|
+
end
|
168
236
|
|
169
|
-
def process_fetchN(seqid, iprot, oprot)
|
170
|
-
args = read_args(iprot, FetchN_args)
|
171
|
-
result = FetchN_result.new()
|
172
|
-
begin
|
173
|
-
result.success = @handler.fetchN(args.numRows)
|
174
|
-
rescue HiveServerException => ex
|
175
|
-
result.ex = ex
|
176
237
|
end
|
177
|
-
write_result(result, oprot, 'fetchN', seqid)
|
178
|
-
end
|
179
238
|
|
180
|
-
|
181
|
-
args = read_args(iprot, FetchAll_args)
|
182
|
-
result = FetchAll_result.new()
|
183
|
-
begin
|
184
|
-
result.success = @handler.fetchAll()
|
185
|
-
rescue HiveServerException => ex
|
186
|
-
result.ex = ex
|
187
|
-
end
|
188
|
-
write_result(result, oprot, 'fetchAll', seqid)
|
189
|
-
end
|
239
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
190
240
|
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
begin
|
195
|
-
result.success = @handler.getSchema()
|
196
|
-
rescue HiveServerException => ex
|
197
|
-
result.ex = ex
|
198
|
-
end
|
199
|
-
write_result(result, oprot, 'getSchema', seqid)
|
200
|
-
end
|
241
|
+
class Execute_args
|
242
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
243
|
+
QUERY = 1
|
201
244
|
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
begin
|
206
|
-
result.success = @handler.getThriftSchema()
|
207
|
-
rescue HiveServerException => ex
|
208
|
-
result.ex = ex
|
209
|
-
end
|
210
|
-
write_result(result, oprot, 'getThriftSchema', seqid)
|
211
|
-
end
|
212
|
-
|
213
|
-
def process_getClusterStatus(seqid, iprot, oprot)
|
214
|
-
args = read_args(iprot, GetClusterStatus_args)
|
215
|
-
result = GetClusterStatus_result.new()
|
216
|
-
begin
|
217
|
-
result.success = @handler.getClusterStatus()
|
218
|
-
rescue HiveServerException => ex
|
219
|
-
result.ex = ex
|
220
|
-
end
|
221
|
-
write_result(result, oprot, 'getClusterStatus', seqid)
|
222
|
-
end
|
245
|
+
FIELDS = {
|
246
|
+
QUERY => {:type => ::Thrift::Types::STRING, :name => 'query'}
|
247
|
+
}
|
223
248
|
|
224
|
-
|
225
|
-
args = read_args(iprot, GetQueryPlan_args)
|
226
|
-
result = GetQueryPlan_result.new()
|
227
|
-
begin
|
228
|
-
result.success = @handler.getQueryPlan()
|
229
|
-
rescue HiveServerException => ex
|
230
|
-
result.ex = ex
|
231
|
-
end
|
232
|
-
write_result(result, oprot, 'getQueryPlan', seqid)
|
233
|
-
end
|
249
|
+
def struct_fields; FIELDS; end
|
234
250
|
|
235
|
-
|
251
|
+
def validate
|
252
|
+
end
|
236
253
|
|
237
|
-
|
238
|
-
|
239
|
-
class Execute_args
|
240
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
241
|
-
QUERY = 1
|
254
|
+
::Thrift::Struct.generate_accessors self
|
255
|
+
end
|
242
256
|
|
243
|
-
|
244
|
-
|
245
|
-
|
257
|
+
class Execute_result
|
258
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
259
|
+
EX = 1
|
246
260
|
|
247
|
-
|
261
|
+
FIELDS = {
|
262
|
+
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Hive::Thrift::HiveServerException}
|
263
|
+
}
|
248
264
|
|
249
|
-
|
250
|
-
end
|
265
|
+
def struct_fields; FIELDS; end
|
251
266
|
|
252
|
-
|
253
|
-
|
267
|
+
def validate
|
268
|
+
end
|
254
269
|
|
255
|
-
|
256
|
-
|
257
|
-
EX = 1
|
270
|
+
::Thrift::Struct.generate_accessors self
|
271
|
+
end
|
258
272
|
|
259
|
-
|
260
|
-
|
261
|
-
}
|
273
|
+
class FetchOne_args
|
274
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
262
275
|
|
263
|
-
|
276
|
+
FIELDS = {
|
264
277
|
|
265
|
-
|
266
|
-
end
|
278
|
+
}
|
267
279
|
|
268
|
-
|
269
|
-
end
|
280
|
+
def struct_fields; FIELDS; end
|
270
281
|
|
271
|
-
|
272
|
-
|
282
|
+
def validate
|
283
|
+
end
|
273
284
|
|
274
|
-
|
285
|
+
::Thrift::Struct.generate_accessors self
|
286
|
+
end
|
275
287
|
|
276
|
-
|
288
|
+
class FetchOne_result
|
289
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
290
|
+
SUCCESS = 0
|
291
|
+
EX = 1
|
277
292
|
|
278
|
-
|
293
|
+
FIELDS = {
|
294
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
|
295
|
+
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Hive::Thrift::HiveServerException}
|
296
|
+
}
|
279
297
|
|
280
|
-
|
281
|
-
end
|
298
|
+
def struct_fields; FIELDS; end
|
282
299
|
|
283
|
-
|
284
|
-
|
300
|
+
def validate
|
301
|
+
end
|
285
302
|
|
286
|
-
|
287
|
-
|
288
|
-
SUCCESS = 0
|
289
|
-
EX = 1
|
303
|
+
::Thrift::Struct.generate_accessors self
|
304
|
+
end
|
290
305
|
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
}
|
306
|
+
class FetchN_args
|
307
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
308
|
+
NUMROWS = 1
|
295
309
|
|
296
|
-
|
310
|
+
FIELDS = {
|
311
|
+
NUMROWS => {:type => ::Thrift::Types::I32, :name => 'numRows'}
|
312
|
+
}
|
297
313
|
|
298
|
-
|
299
|
-
end
|
314
|
+
def struct_fields; FIELDS; end
|
300
315
|
|
301
|
-
|
302
|
-
|
316
|
+
def validate
|
317
|
+
end
|
303
318
|
|
304
|
-
|
305
|
-
|
306
|
-
NUMROWS = 1
|
319
|
+
::Thrift::Struct.generate_accessors self
|
320
|
+
end
|
307
321
|
|
308
|
-
|
309
|
-
|
310
|
-
|
322
|
+
class FetchN_result
|
323
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
324
|
+
SUCCESS = 0
|
325
|
+
EX = 1
|
311
326
|
|
312
|
-
|
327
|
+
FIELDS = {
|
328
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
|
329
|
+
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Hive::Thrift::HiveServerException}
|
330
|
+
}
|
313
331
|
|
314
|
-
|
315
|
-
end
|
332
|
+
def struct_fields; FIELDS; end
|
316
333
|
|
317
|
-
|
318
|
-
|
334
|
+
def validate
|
335
|
+
end
|
319
336
|
|
320
|
-
|
321
|
-
|
322
|
-
SUCCESS = 0
|
323
|
-
EX = 1
|
337
|
+
::Thrift::Struct.generate_accessors self
|
338
|
+
end
|
324
339
|
|
325
|
-
|
326
|
-
|
327
|
-
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => HiveServerException}
|
328
|
-
}
|
340
|
+
class FetchAll_args
|
341
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
329
342
|
|
330
|
-
|
343
|
+
FIELDS = {
|
331
344
|
|
332
|
-
|
333
|
-
end
|
345
|
+
}
|
334
346
|
|
335
|
-
|
336
|
-
end
|
347
|
+
def struct_fields; FIELDS; end
|
337
348
|
|
338
|
-
|
339
|
-
|
349
|
+
def validate
|
350
|
+
end
|
340
351
|
|
341
|
-
|
352
|
+
::Thrift::Struct.generate_accessors self
|
353
|
+
end
|
342
354
|
|
343
|
-
|
355
|
+
class FetchAll_result
|
356
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
357
|
+
SUCCESS = 0
|
358
|
+
EX = 1
|
344
359
|
|
345
|
-
|
360
|
+
FIELDS = {
|
361
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
|
362
|
+
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Hive::Thrift::HiveServerException}
|
363
|
+
}
|
346
364
|
|
347
|
-
|
348
|
-
end
|
365
|
+
def struct_fields; FIELDS; end
|
349
366
|
|
350
|
-
|
351
|
-
|
367
|
+
def validate
|
368
|
+
end
|
352
369
|
|
353
|
-
|
354
|
-
|
355
|
-
SUCCESS = 0
|
356
|
-
EX = 1
|
370
|
+
::Thrift::Struct.generate_accessors self
|
371
|
+
end
|
357
372
|
|
358
|
-
|
359
|
-
|
360
|
-
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => HiveServerException}
|
361
|
-
}
|
373
|
+
class GetSchema_args
|
374
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
362
375
|
|
363
|
-
|
376
|
+
FIELDS = {
|
364
377
|
|
365
|
-
|
366
|
-
end
|
378
|
+
}
|
367
379
|
|
368
|
-
|
369
|
-
end
|
380
|
+
def struct_fields; FIELDS; end
|
370
381
|
|
371
|
-
|
372
|
-
|
382
|
+
def validate
|
383
|
+
end
|
373
384
|
|
374
|
-
|
385
|
+
::Thrift::Struct.generate_accessors self
|
386
|
+
end
|
375
387
|
|
376
|
-
|
388
|
+
class GetSchema_result
|
389
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
390
|
+
SUCCESS = 0
|
391
|
+
EX = 1
|
377
392
|
|
378
|
-
|
393
|
+
FIELDS = {
|
394
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Schema},
|
395
|
+
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Hive::Thrift::HiveServerException}
|
396
|
+
}
|
379
397
|
|
380
|
-
|
381
|
-
end
|
398
|
+
def struct_fields; FIELDS; end
|
382
399
|
|
383
|
-
|
384
|
-
|
400
|
+
def validate
|
401
|
+
end
|
385
402
|
|
386
|
-
|
387
|
-
|
388
|
-
SUCCESS = 0
|
389
|
-
EX = 1
|
403
|
+
::Thrift::Struct.generate_accessors self
|
404
|
+
end
|
390
405
|
|
391
|
-
|
392
|
-
|
393
|
-
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => HiveServerException}
|
394
|
-
}
|
406
|
+
class GetThriftSchema_args
|
407
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
395
408
|
|
396
|
-
|
409
|
+
FIELDS = {
|
397
410
|
|
398
|
-
|
399
|
-
end
|
411
|
+
}
|
400
412
|
|
401
|
-
|
402
|
-
end
|
413
|
+
def struct_fields; FIELDS; end
|
403
414
|
|
404
|
-
|
405
|
-
|
415
|
+
def validate
|
416
|
+
end
|
406
417
|
|
407
|
-
|
418
|
+
::Thrift::Struct.generate_accessors self
|
419
|
+
end
|
408
420
|
|
409
|
-
|
421
|
+
class GetThriftSchema_result
|
422
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
423
|
+
SUCCESS = 0
|
424
|
+
EX = 1
|
410
425
|
|
411
|
-
|
426
|
+
FIELDS = {
|
427
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Schema},
|
428
|
+
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Hive::Thrift::HiveServerException}
|
429
|
+
}
|
412
430
|
|
413
|
-
|
414
|
-
end
|
431
|
+
def struct_fields; FIELDS; end
|
415
432
|
|
416
|
-
|
417
|
-
|
433
|
+
def validate
|
434
|
+
end
|
418
435
|
|
419
|
-
|
420
|
-
|
421
|
-
SUCCESS = 0
|
422
|
-
EX = 1
|
436
|
+
::Thrift::Struct.generate_accessors self
|
437
|
+
end
|
423
438
|
|
424
|
-
|
425
|
-
|
426
|
-
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => HiveServerException}
|
427
|
-
}
|
439
|
+
class GetClusterStatus_args
|
440
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
428
441
|
|
429
|
-
|
442
|
+
FIELDS = {
|
430
443
|
|
431
|
-
|
432
|
-
end
|
444
|
+
}
|
433
445
|
|
434
|
-
|
435
|
-
end
|
446
|
+
def struct_fields; FIELDS; end
|
436
447
|
|
437
|
-
|
438
|
-
|
448
|
+
def validate
|
449
|
+
end
|
439
450
|
|
440
|
-
|
441
|
-
|
442
|
-
}
|
451
|
+
::Thrift::Struct.generate_accessors self
|
452
|
+
end
|
443
453
|
|
444
|
-
|
454
|
+
class GetClusterStatus_result
|
455
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
456
|
+
SUCCESS = 0
|
457
|
+
EX = 1
|
445
458
|
|
446
|
-
|
447
|
-
|
459
|
+
FIELDS = {
|
460
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Hive::Thrift::HiveClusterStatus},
|
461
|
+
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Hive::Thrift::HiveServerException}
|
462
|
+
}
|
448
463
|
|
449
|
-
|
450
|
-
end
|
464
|
+
def struct_fields; FIELDS; end
|
451
465
|
|
452
|
-
|
453
|
-
|
454
|
-
SUCCESS = 0
|
455
|
-
EX = 1
|
466
|
+
def validate
|
467
|
+
end
|
456
468
|
|
457
|
-
|
458
|
-
|
459
|
-
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => HiveServerException}
|
460
|
-
}
|
461
|
-
|
462
|
-
def struct_fields; FIELDS; end
|
469
|
+
::Thrift::Struct.generate_accessors self
|
470
|
+
end
|
463
471
|
|
464
|
-
|
465
|
-
|
472
|
+
class GetQueryPlan_args
|
473
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
466
474
|
|
467
|
-
|
468
|
-
end
|
475
|
+
FIELDS = {
|
469
476
|
|
470
|
-
|
471
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
477
|
+
}
|
472
478
|
|
473
|
-
|
479
|
+
def struct_fields; FIELDS; end
|
474
480
|
|
475
|
-
|
481
|
+
def validate
|
482
|
+
end
|
476
483
|
|
477
|
-
|
484
|
+
::Thrift::Struct.generate_accessors self
|
485
|
+
end
|
478
486
|
|
479
|
-
|
480
|
-
|
487
|
+
class GetQueryPlan_result
|
488
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
489
|
+
SUCCESS = 0
|
490
|
+
EX = 1
|
481
491
|
|
482
|
-
|
483
|
-
|
492
|
+
FIELDS = {
|
493
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Hive::Thrift::QueryPlan},
|
494
|
+
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Hive::Thrift::HiveServerException}
|
495
|
+
}
|
484
496
|
|
485
|
-
|
486
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
487
|
-
SUCCESS = 0
|
488
|
-
EX = 1
|
497
|
+
def struct_fields; FIELDS; end
|
489
498
|
|
490
|
-
|
491
|
-
|
492
|
-
EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => HiveServerException}
|
493
|
-
}
|
499
|
+
def validate
|
500
|
+
end
|
494
501
|
|
495
|
-
|
502
|
+
::Thrift::Struct.generate_accessors self
|
503
|
+
end
|
496
504
|
|
497
|
-
def validate
|
498
505
|
end
|
499
506
|
|
500
|
-
::Thrift::Struct.generate_accessors self
|
501
507
|
end
|
502
|
-
|
503
508
|
end
|
504
|
-
|