impala 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/Gemfile +2 -0
- data/LICENSE.txt +22 -0
- data/README.md +28 -0
- data/Rakefile +15 -0
- data/impala.gemspec +25 -0
- data/lib/impala.rb +33 -0
- data/lib/impala/connection.rb +93 -0
- data/lib/impala/cursor.rb +86 -0
- data/lib/impala/protocol.rb +6 -0
- data/lib/impala/protocol/beeswax_constants.rb +14 -0
- data/lib/impala/protocol/beeswax_service.rb +747 -0
- data/lib/impala/protocol/beeswax_types.rb +192 -0
- data/lib/impala/protocol/data_constants.rb +12 -0
- data/lib/impala/protocol/data_sinks_constants.rb +12 -0
- data/lib/impala/protocol/data_sinks_types.rb +107 -0
- data/lib/impala/protocol/data_types.rb +77 -0
- data/lib/impala/protocol/descriptors_constants.rb +12 -0
- data/lib/impala/protocol/descriptors_types.rb +266 -0
- data/lib/impala/protocol/exprs_constants.rb +12 -0
- data/lib/impala/protocol/exprs_types.rb +345 -0
- data/lib/impala/protocol/facebook_service.rb +706 -0
- data/lib/impala/protocol/fb303_constants.rb +14 -0
- data/lib/impala/protocol/fb303_types.rb +24 -0
- data/lib/impala/protocol/frontend_constants.rb +12 -0
- data/lib/impala/protocol/frontend_types.rb +347 -0
- data/lib/impala/protocol/hive_metastore_constants.rb +52 -0
- data/lib/impala/protocol/hive_metastore_types.rb +697 -0
- data/lib/impala/protocol/impala_internal_service.rb +244 -0
- data/lib/impala/protocol/impala_internal_service_constants.rb +12 -0
- data/lib/impala/protocol/impala_internal_service_types.rb +362 -0
- data/lib/impala/protocol/impala_plan_service.rb +310 -0
- data/lib/impala/protocol/impala_plan_service_constants.rb +12 -0
- data/lib/impala/protocol/impala_plan_service_types.rb +36 -0
- data/lib/impala/protocol/impala_service.rb +260 -0
- data/lib/impala/protocol/impala_service_constants.rb +12 -0
- data/lib/impala/protocol/impala_service_types.rb +46 -0
- data/lib/impala/protocol/java_constants_constants.rb +42 -0
- data/lib/impala/protocol/java_constants_types.rb +14 -0
- data/lib/impala/protocol/opcodes_constants.rb +12 -0
- data/lib/impala/protocol/opcodes_types.rb +309 -0
- data/lib/impala/protocol/partitions_constants.rb +12 -0
- data/lib/impala/protocol/partitions_types.rb +44 -0
- data/lib/impala/protocol/plan_nodes_constants.rb +12 -0
- data/lib/impala/protocol/plan_nodes_types.rb +345 -0
- data/lib/impala/protocol/planner_constants.rb +12 -0
- data/lib/impala/protocol/planner_types.rb +78 -0
- data/lib/impala/protocol/runtime_profile_constants.rb +12 -0
- data/lib/impala/protocol/runtime_profile_types.rb +97 -0
- data/lib/impala/protocol/state_store_service.rb +244 -0
- data/lib/impala/protocol/state_store_service_constants.rb +12 -0
- data/lib/impala/protocol/state_store_service_types.rb +185 -0
- data/lib/impala/protocol/state_store_subscriber_service.rb +82 -0
- data/lib/impala/protocol/state_store_subscriber_service_constants.rb +12 -0
- data/lib/impala/protocol/state_store_subscriber_service_types.rb +67 -0
- data/lib/impala/protocol/statestore_types_constants.rb +12 -0
- data/lib/impala/protocol/statestore_types_types.rb +77 -0
- data/lib/impala/protocol/status_constants.rb +12 -0
- data/lib/impala/protocol/status_types.rb +44 -0
- data/lib/impala/protocol/thrift_hive_metastore.rb +4707 -0
- data/lib/impala/protocol/types_constants.rb +12 -0
- data/lib/impala/protocol/types_types.rb +86 -0
- data/lib/impala/version.rb +3 -0
- data/thrift/Data.thrift +52 -0
- data/thrift/DataSinks.thrift +61 -0
- data/thrift/Descriptors.thrift +115 -0
- data/thrift/Exprs.thrift +134 -0
- data/thrift/Frontend.thrift +193 -0
- data/thrift/ImpalaInternalService.thrift +265 -0
- data/thrift/ImpalaPlanService.thrift +44 -0
- data/thrift/ImpalaService.thrift +105 -0
- data/thrift/JavaConstants.thrift +60 -0
- data/thrift/Opcodes.thrift +317 -0
- data/thrift/Partitions.thrift +41 -0
- data/thrift/PlanNodes.thrift +184 -0
- data/thrift/Planner.thrift +72 -0
- data/thrift/RuntimeProfile.thrift +58 -0
- data/thrift/StateStoreService.thrift +121 -0
- data/thrift/StateStoreSubscriberService.thrift +64 -0
- data/thrift/StatestoreTypes.thrift +50 -0
- data/thrift/Status.thrift +31 -0
- data/thrift/Types.thrift +71 -0
- data/thrift/beeswax.thrift +175 -0
- data/thrift/fb303.thrift +112 -0
- data/thrift/hive_metastore.thrift +528 -0
- metadata +206 -0
@@ -0,0 +1,697 @@
|
|
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 'fb303_types'
|
8
|
+
|
9
|
+
|
10
|
+
module Impala
|
11
|
+
module Protocol
|
12
|
+
module HiveMetastore
|
13
|
+
module HiveObjectType
|
14
|
+
GLOBAL = 1
|
15
|
+
DATABASE = 2
|
16
|
+
TABLE = 3
|
17
|
+
PARTITION = 4
|
18
|
+
COLUMN = 5
|
19
|
+
VALUE_MAP = { 1 => "GLOBAL", 2 => "DATABASE", 3 => "TABLE", 4 => "PARTITION", 5 => "COLUMN" }
|
20
|
+
VALID_VALUES = Set.new([GLOBAL, DATABASE, TABLE, PARTITION, COLUMN]).freeze
|
21
|
+
end
|
22
|
+
|
23
|
+
module PrincipalType
|
24
|
+
USER = 1
|
25
|
+
ROLE = 2
|
26
|
+
GROUP = 3
|
27
|
+
VALUE_MAP = { 1 => "USER", 2 => "ROLE", 3 => "GROUP" }
|
28
|
+
VALID_VALUES = Set.new([USER, ROLE, GROUP]).freeze
|
29
|
+
end
|
30
|
+
|
31
|
+
module PartitionEventType
|
32
|
+
LOAD_DONE = 1
|
33
|
+
VALUE_MAP = { 1 => "LOAD_DONE" }
|
34
|
+
VALID_VALUES = Set.new([LOAD_DONE]).freeze
|
35
|
+
end
|
36
|
+
|
37
|
+
class Version
|
38
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
39
|
+
VERSION = 1
|
40
|
+
COMMENTS = 2
|
41
|
+
|
42
|
+
FIELDS = {
|
43
|
+
VERSION => { :type => ::Thrift::Types::STRING, :name => 'version' },
|
44
|
+
COMMENTS => { :type => ::Thrift::Types::STRING, :name => 'comments' }
|
45
|
+
}
|
46
|
+
|
47
|
+
def struct_fields; FIELDS; end
|
48
|
+
|
49
|
+
def validate
|
50
|
+
end
|
51
|
+
|
52
|
+
::Thrift::Struct.generate_accessors self
|
53
|
+
end
|
54
|
+
|
55
|
+
class FieldSchema
|
56
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
57
|
+
NAME = 1
|
58
|
+
TYPE = 2
|
59
|
+
COMMENT = 3
|
60
|
+
|
61
|
+
FIELDS = {
|
62
|
+
NAME => { :type => ::Thrift::Types::STRING, :name => 'name' },
|
63
|
+
TYPE => { :type => ::Thrift::Types::STRING, :name => 'type' },
|
64
|
+
COMMENT => { :type => ::Thrift::Types::STRING, :name => 'comment' }
|
65
|
+
}
|
66
|
+
|
67
|
+
def struct_fields; FIELDS; end
|
68
|
+
|
69
|
+
def validate
|
70
|
+
end
|
71
|
+
|
72
|
+
::Thrift::Struct.generate_accessors self
|
73
|
+
end
|
74
|
+
|
75
|
+
class Type
|
76
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
77
|
+
NAME = 1
|
78
|
+
TYPE1 = 2
|
79
|
+
TYPE2 = 3
|
80
|
+
|
81
|
+
FIELDS = {
|
82
|
+
NAME => { :type => ::Thrift::Types::STRING, :name => 'name' },
|
83
|
+
TYPE1 => { :type => ::Thrift::Types::STRING, :name => 'type1', :optional => true },
|
84
|
+
TYPE2 => { :type => ::Thrift::Types::STRING, :name => 'type2', :optional => true }
|
85
|
+
}
|
86
|
+
|
87
|
+
def struct_fields; FIELDS; end
|
88
|
+
|
89
|
+
def validate
|
90
|
+
end
|
91
|
+
|
92
|
+
::Thrift::Struct.generate_accessors self
|
93
|
+
end
|
94
|
+
|
95
|
+
class HiveObjectRef
|
96
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
97
|
+
OBJECTTYPE = 1
|
98
|
+
DBNAME = 2
|
99
|
+
OBJECTNAME = 3
|
100
|
+
PARTVALUES = 4
|
101
|
+
COLUMNNAME = 5
|
102
|
+
|
103
|
+
FIELDS = {
|
104
|
+
OBJECTTYPE => { :type => ::Thrift::Types::I32, :name => 'objectType', :enum_class => Impala::Protocol::HiveMetastore::HiveObjectType },
|
105
|
+
DBNAME => { :type => ::Thrift::Types::STRING, :name => 'dbName' },
|
106
|
+
OBJECTNAME => { :type => ::Thrift::Types::STRING, :name => 'objectName' },
|
107
|
+
PARTVALUES => { :type => ::Thrift::Types::LIST, :name => 'partValues', :element => { :type => ::Thrift::Types::STRING } },
|
108
|
+
COLUMNNAME => { :type => ::Thrift::Types::STRING, :name => 'columnName' }
|
109
|
+
}
|
110
|
+
|
111
|
+
def struct_fields; FIELDS; end
|
112
|
+
|
113
|
+
def validate
|
114
|
+
unless @objectType.nil? || Impala::Protocol::HiveMetastore::HiveObjectType::VALID_VALUES.include?(@objectType)
|
115
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field objectType!')
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
::Thrift::Struct.generate_accessors self
|
120
|
+
end
|
121
|
+
|
122
|
+
class PrivilegeGrantInfo
|
123
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
124
|
+
PRIVILEGE = 1
|
125
|
+
CREATETIME = 2
|
126
|
+
GRANTOR = 3
|
127
|
+
GRANTORTYPE = 4
|
128
|
+
GRANTOPTION = 5
|
129
|
+
|
130
|
+
FIELDS = {
|
131
|
+
PRIVILEGE => { :type => ::Thrift::Types::STRING, :name => 'privilege' },
|
132
|
+
CREATETIME => { :type => ::Thrift::Types::I32, :name => 'createTime' },
|
133
|
+
GRANTOR => { :type => ::Thrift::Types::STRING, :name => 'grantor' },
|
134
|
+
GRANTORTYPE => { :type => ::Thrift::Types::I32, :name => 'grantorType', :enum_class => Impala::Protocol::HiveMetastore::PrincipalType },
|
135
|
+
GRANTOPTION => { :type => ::Thrift::Types::BOOL, :name => 'grantOption' }
|
136
|
+
}
|
137
|
+
|
138
|
+
def struct_fields; FIELDS; end
|
139
|
+
|
140
|
+
def validate
|
141
|
+
unless @grantorType.nil? || Impala::Protocol::HiveMetastore::PrincipalType::VALID_VALUES.include?(@grantorType)
|
142
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field grantorType!')
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
::Thrift::Struct.generate_accessors self
|
147
|
+
end
|
148
|
+
|
149
|
+
class HiveObjectPrivilege
|
150
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
151
|
+
HIVEOBJECT = 1
|
152
|
+
PRINCIPALNAME = 2
|
153
|
+
PRINCIPALTYPE = 3
|
154
|
+
GRANTINFO = 4
|
155
|
+
|
156
|
+
FIELDS = {
|
157
|
+
HIVEOBJECT => { :type => ::Thrift::Types::STRUCT, :name => 'hiveObject', :class => Impala::Protocol::HiveMetastore::HiveObjectRef },
|
158
|
+
PRINCIPALNAME => { :type => ::Thrift::Types::STRING, :name => 'principalName' },
|
159
|
+
PRINCIPALTYPE => { :type => ::Thrift::Types::I32, :name => 'principalType', :enum_class => Impala::Protocol::HiveMetastore::PrincipalType },
|
160
|
+
GRANTINFO => { :type => ::Thrift::Types::STRUCT, :name => 'grantInfo', :class => Impala::Protocol::HiveMetastore::PrivilegeGrantInfo }
|
161
|
+
}
|
162
|
+
|
163
|
+
def struct_fields; FIELDS; end
|
164
|
+
|
165
|
+
def validate
|
166
|
+
unless @principalType.nil? || Impala::Protocol::HiveMetastore::PrincipalType::VALID_VALUES.include?(@principalType)
|
167
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field principalType!')
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
::Thrift::Struct.generate_accessors self
|
172
|
+
end
|
173
|
+
|
174
|
+
class PrivilegeBag
|
175
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
176
|
+
PRIVILEGES = 1
|
177
|
+
|
178
|
+
FIELDS = {
|
179
|
+
PRIVILEGES => { :type => ::Thrift::Types::LIST, :name => 'privileges', :element => { :type => ::Thrift::Types::STRUCT, :class => Impala::Protocol::HiveMetastore::HiveObjectPrivilege } }
|
180
|
+
}
|
181
|
+
|
182
|
+
def struct_fields; FIELDS; end
|
183
|
+
|
184
|
+
def validate
|
185
|
+
end
|
186
|
+
|
187
|
+
::Thrift::Struct.generate_accessors self
|
188
|
+
end
|
189
|
+
|
190
|
+
class PrincipalPrivilegeSet
|
191
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
192
|
+
USERPRIVILEGES = 1
|
193
|
+
GROUPPRIVILEGES = 2
|
194
|
+
ROLEPRIVILEGES = 3
|
195
|
+
|
196
|
+
FIELDS = {
|
197
|
+
USERPRIVILEGES => { :type => ::Thrift::Types::MAP, :name => 'userPrivileges', :key => { :type => ::Thrift::Types::STRING }, :value => { :type => ::Thrift::Types::LIST, :element => { :type => ::Thrift::Types::STRUCT, :class => Impala::Protocol::HiveMetastore::PrivilegeGrantInfo } } },
|
198
|
+
GROUPPRIVILEGES => { :type => ::Thrift::Types::MAP, :name => 'groupPrivileges', :key => { :type => ::Thrift::Types::STRING }, :value => { :type => ::Thrift::Types::LIST, :element => { :type => ::Thrift::Types::STRUCT, :class => Impala::Protocol::HiveMetastore::PrivilegeGrantInfo } } },
|
199
|
+
ROLEPRIVILEGES => { :type => ::Thrift::Types::MAP, :name => 'rolePrivileges', :key => { :type => ::Thrift::Types::STRING }, :value => { :type => ::Thrift::Types::LIST, :element => { :type => ::Thrift::Types::STRUCT, :class => Impala::Protocol::HiveMetastore::PrivilegeGrantInfo } } }
|
200
|
+
}
|
201
|
+
|
202
|
+
def struct_fields; FIELDS; end
|
203
|
+
|
204
|
+
def validate
|
205
|
+
end
|
206
|
+
|
207
|
+
::Thrift::Struct.generate_accessors self
|
208
|
+
end
|
209
|
+
|
210
|
+
class Role
|
211
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
212
|
+
ROLENAME = 1
|
213
|
+
CREATETIME = 2
|
214
|
+
OWNERNAME = 3
|
215
|
+
|
216
|
+
FIELDS = {
|
217
|
+
ROLENAME => { :type => ::Thrift::Types::STRING, :name => 'roleName' },
|
218
|
+
CREATETIME => { :type => ::Thrift::Types::I32, :name => 'createTime' },
|
219
|
+
OWNERNAME => { :type => ::Thrift::Types::STRING, :name => 'ownerName' }
|
220
|
+
}
|
221
|
+
|
222
|
+
def struct_fields; FIELDS; end
|
223
|
+
|
224
|
+
def validate
|
225
|
+
end
|
226
|
+
|
227
|
+
::Thrift::Struct.generate_accessors self
|
228
|
+
end
|
229
|
+
|
230
|
+
class Database
|
231
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
232
|
+
NAME = 1
|
233
|
+
DESCRIPTION = 2
|
234
|
+
LOCATIONURI = 3
|
235
|
+
PARAMETERS = 4
|
236
|
+
PRIVILEGES = 5
|
237
|
+
|
238
|
+
FIELDS = {
|
239
|
+
NAME => { :type => ::Thrift::Types::STRING, :name => 'name' },
|
240
|
+
DESCRIPTION => { :type => ::Thrift::Types::STRING, :name => 'description' },
|
241
|
+
LOCATIONURI => { :type => ::Thrift::Types::STRING, :name => 'locationUri' },
|
242
|
+
PARAMETERS => { :type => ::Thrift::Types::MAP, :name => 'parameters', :key => { :type => ::Thrift::Types::STRING }, :value => { :type => ::Thrift::Types::STRING } },
|
243
|
+
PRIVILEGES => { :type => ::Thrift::Types::STRUCT, :name => 'privileges', :class => Impala::Protocol::HiveMetastore::PrincipalPrivilegeSet, :optional => true }
|
244
|
+
}
|
245
|
+
|
246
|
+
def struct_fields; FIELDS; end
|
247
|
+
|
248
|
+
def validate
|
249
|
+
end
|
250
|
+
|
251
|
+
::Thrift::Struct.generate_accessors self
|
252
|
+
end
|
253
|
+
|
254
|
+
class SerDeInfo
|
255
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
256
|
+
NAME = 1
|
257
|
+
SERIALIZATIONLIB = 2
|
258
|
+
PARAMETERS = 3
|
259
|
+
|
260
|
+
FIELDS = {
|
261
|
+
NAME => { :type => ::Thrift::Types::STRING, :name => 'name' },
|
262
|
+
SERIALIZATIONLIB => { :type => ::Thrift::Types::STRING, :name => 'serializationLib' },
|
263
|
+
PARAMETERS => { :type => ::Thrift::Types::MAP, :name => 'parameters', :key => { :type => ::Thrift::Types::STRING }, :value => { :type => ::Thrift::Types::STRING } }
|
264
|
+
}
|
265
|
+
|
266
|
+
def struct_fields; FIELDS; end
|
267
|
+
|
268
|
+
def validate
|
269
|
+
end
|
270
|
+
|
271
|
+
::Thrift::Struct.generate_accessors self
|
272
|
+
end
|
273
|
+
|
274
|
+
class Order
|
275
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
276
|
+
COL = 1
|
277
|
+
ORDER = 2
|
278
|
+
|
279
|
+
FIELDS = {
|
280
|
+
COL => { :type => ::Thrift::Types::STRING, :name => 'col' },
|
281
|
+
ORDER => { :type => ::Thrift::Types::I32, :name => 'order' }
|
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 StorageDescriptor
|
293
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
294
|
+
COLS = 1
|
295
|
+
LOCATION = 2
|
296
|
+
INPUTFORMAT = 3
|
297
|
+
OUTPUTFORMAT = 4
|
298
|
+
COMPRESSED = 5
|
299
|
+
NUMBUCKETS = 6
|
300
|
+
SERDEINFO = 7
|
301
|
+
BUCKETCOLS = 8
|
302
|
+
SORTCOLS = 9
|
303
|
+
PARAMETERS = 10
|
304
|
+
|
305
|
+
FIELDS = {
|
306
|
+
COLS => { :type => ::Thrift::Types::LIST, :name => 'cols', :element => { :type => ::Thrift::Types::STRUCT, :class => Impala::Protocol::HiveMetastore::FieldSchema } },
|
307
|
+
LOCATION => { :type => ::Thrift::Types::STRING, :name => 'location' },
|
308
|
+
INPUTFORMAT => { :type => ::Thrift::Types::STRING, :name => 'inputFormat' },
|
309
|
+
OUTPUTFORMAT => { :type => ::Thrift::Types::STRING, :name => 'outputFormat' },
|
310
|
+
COMPRESSED => { :type => ::Thrift::Types::BOOL, :name => 'compressed' },
|
311
|
+
NUMBUCKETS => { :type => ::Thrift::Types::I32, :name => 'numBuckets' },
|
312
|
+
SERDEINFO => { :type => ::Thrift::Types::STRUCT, :name => 'serdeInfo', :class => Impala::Protocol::HiveMetastore::SerDeInfo },
|
313
|
+
BUCKETCOLS => { :type => ::Thrift::Types::LIST, :name => 'bucketCols', :element => { :type => ::Thrift::Types::STRING } },
|
314
|
+
SORTCOLS => { :type => ::Thrift::Types::LIST, :name => 'sortCols', :element => { :type => ::Thrift::Types::STRUCT, :class => Impala::Protocol::HiveMetastore::Order } },
|
315
|
+
PARAMETERS => { :type => ::Thrift::Types::MAP, :name => 'parameters', :key => { :type => ::Thrift::Types::STRING }, :value => { :type => ::Thrift::Types::STRING } }
|
316
|
+
}
|
317
|
+
|
318
|
+
def struct_fields; FIELDS; end
|
319
|
+
|
320
|
+
def validate
|
321
|
+
end
|
322
|
+
|
323
|
+
::Thrift::Struct.generate_accessors self
|
324
|
+
end
|
325
|
+
|
326
|
+
class Table
|
327
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
328
|
+
TABLENAME = 1
|
329
|
+
DBNAME = 2
|
330
|
+
OWNER = 3
|
331
|
+
CREATETIME = 4
|
332
|
+
LASTACCESSTIME = 5
|
333
|
+
RETENTION = 6
|
334
|
+
SD = 7
|
335
|
+
PARTITIONKEYS = 8
|
336
|
+
PARAMETERS = 9
|
337
|
+
VIEWORIGINALTEXT = 10
|
338
|
+
VIEWEXPANDEDTEXT = 11
|
339
|
+
TABLETYPE = 12
|
340
|
+
PRIVILEGES = 13
|
341
|
+
|
342
|
+
FIELDS = {
|
343
|
+
TABLENAME => { :type => ::Thrift::Types::STRING, :name => 'tableName' },
|
344
|
+
DBNAME => { :type => ::Thrift::Types::STRING, :name => 'dbName' },
|
345
|
+
OWNER => { :type => ::Thrift::Types::STRING, :name => 'owner' },
|
346
|
+
CREATETIME => { :type => ::Thrift::Types::I32, :name => 'createTime' },
|
347
|
+
LASTACCESSTIME => { :type => ::Thrift::Types::I32, :name => 'lastAccessTime' },
|
348
|
+
RETENTION => { :type => ::Thrift::Types::I32, :name => 'retention' },
|
349
|
+
SD => { :type => ::Thrift::Types::STRUCT, :name => 'sd', :class => Impala::Protocol::HiveMetastore::StorageDescriptor },
|
350
|
+
PARTITIONKEYS => { :type => ::Thrift::Types::LIST, :name => 'partitionKeys', :element => { :type => ::Thrift::Types::STRUCT, :class => Impala::Protocol::HiveMetastore::FieldSchema } },
|
351
|
+
PARAMETERS => { :type => ::Thrift::Types::MAP, :name => 'parameters', :key => { :type => ::Thrift::Types::STRING }, :value => { :type => ::Thrift::Types::STRING } },
|
352
|
+
VIEWORIGINALTEXT => { :type => ::Thrift::Types::STRING, :name => 'viewOriginalText' },
|
353
|
+
VIEWEXPANDEDTEXT => { :type => ::Thrift::Types::STRING, :name => 'viewExpandedText' },
|
354
|
+
TABLETYPE => { :type => ::Thrift::Types::STRING, :name => 'tableType' },
|
355
|
+
PRIVILEGES => { :type => ::Thrift::Types::STRUCT, :name => 'privileges', :class => Impala::Protocol::HiveMetastore::PrincipalPrivilegeSet, :optional => true }
|
356
|
+
}
|
357
|
+
|
358
|
+
def struct_fields; FIELDS; end
|
359
|
+
|
360
|
+
def validate
|
361
|
+
end
|
362
|
+
|
363
|
+
::Thrift::Struct.generate_accessors self
|
364
|
+
end
|
365
|
+
|
366
|
+
class Partition
|
367
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
368
|
+
VALUES = 1
|
369
|
+
DBNAME = 2
|
370
|
+
TABLENAME = 3
|
371
|
+
CREATETIME = 4
|
372
|
+
LASTACCESSTIME = 5
|
373
|
+
SD = 6
|
374
|
+
PARAMETERS = 7
|
375
|
+
PRIVILEGES = 8
|
376
|
+
|
377
|
+
FIELDS = {
|
378
|
+
VALUES => { :type => ::Thrift::Types::LIST, :name => 'values', :element => { :type => ::Thrift::Types::STRING } },
|
379
|
+
DBNAME => { :type => ::Thrift::Types::STRING, :name => 'dbName' },
|
380
|
+
TABLENAME => { :type => ::Thrift::Types::STRING, :name => 'tableName' },
|
381
|
+
CREATETIME => { :type => ::Thrift::Types::I32, :name => 'createTime' },
|
382
|
+
LASTACCESSTIME => { :type => ::Thrift::Types::I32, :name => 'lastAccessTime' },
|
383
|
+
SD => { :type => ::Thrift::Types::STRUCT, :name => 'sd', :class => Impala::Protocol::HiveMetastore::StorageDescriptor },
|
384
|
+
PARAMETERS => { :type => ::Thrift::Types::MAP, :name => 'parameters', :key => { :type => ::Thrift::Types::STRING }, :value => { :type => ::Thrift::Types::STRING } },
|
385
|
+
PRIVILEGES => { :type => ::Thrift::Types::STRUCT, :name => 'privileges', :class => Impala::Protocol::HiveMetastore::PrincipalPrivilegeSet, :optional => true }
|
386
|
+
}
|
387
|
+
|
388
|
+
def struct_fields; FIELDS; end
|
389
|
+
|
390
|
+
def validate
|
391
|
+
end
|
392
|
+
|
393
|
+
::Thrift::Struct.generate_accessors self
|
394
|
+
end
|
395
|
+
|
396
|
+
class Index
|
397
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
398
|
+
INDEXNAME = 1
|
399
|
+
INDEXHANDLERCLASS = 2
|
400
|
+
DBNAME = 3
|
401
|
+
ORIGTABLENAME = 4
|
402
|
+
CREATETIME = 5
|
403
|
+
LASTACCESSTIME = 6
|
404
|
+
INDEXTABLENAME = 7
|
405
|
+
SD = 8
|
406
|
+
PARAMETERS = 9
|
407
|
+
DEFERREDREBUILD = 10
|
408
|
+
|
409
|
+
FIELDS = {
|
410
|
+
INDEXNAME => { :type => ::Thrift::Types::STRING, :name => 'indexName' },
|
411
|
+
INDEXHANDLERCLASS => { :type => ::Thrift::Types::STRING, :name => 'indexHandlerClass' },
|
412
|
+
DBNAME => { :type => ::Thrift::Types::STRING, :name => 'dbName' },
|
413
|
+
ORIGTABLENAME => { :type => ::Thrift::Types::STRING, :name => 'origTableName' },
|
414
|
+
CREATETIME => { :type => ::Thrift::Types::I32, :name => 'createTime' },
|
415
|
+
LASTACCESSTIME => { :type => ::Thrift::Types::I32, :name => 'lastAccessTime' },
|
416
|
+
INDEXTABLENAME => { :type => ::Thrift::Types::STRING, :name => 'indexTableName' },
|
417
|
+
SD => { :type => ::Thrift::Types::STRUCT, :name => 'sd', :class => Impala::Protocol::HiveMetastore::StorageDescriptor },
|
418
|
+
PARAMETERS => { :type => ::Thrift::Types::MAP, :name => 'parameters', :key => { :type => ::Thrift::Types::STRING }, :value => { :type => ::Thrift::Types::STRING } },
|
419
|
+
DEFERREDREBUILD => { :type => ::Thrift::Types::BOOL, :name => 'deferredRebuild' }
|
420
|
+
}
|
421
|
+
|
422
|
+
def struct_fields; FIELDS; end
|
423
|
+
|
424
|
+
def validate
|
425
|
+
end
|
426
|
+
|
427
|
+
::Thrift::Struct.generate_accessors self
|
428
|
+
end
|
429
|
+
|
430
|
+
class Schema
|
431
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
432
|
+
FIELDSCHEMAS = 1
|
433
|
+
PROPERTIES = 2
|
434
|
+
|
435
|
+
FIELDS = {
|
436
|
+
FIELDSCHEMAS => { :type => ::Thrift::Types::LIST, :name => 'fieldSchemas', :element => { :type => ::Thrift::Types::STRUCT, :class => Impala::Protocol::HiveMetastore::FieldSchema } },
|
437
|
+
PROPERTIES => { :type => ::Thrift::Types::MAP, :name => 'properties', :key => { :type => ::Thrift::Types::STRING }, :value => { :type => ::Thrift::Types::STRING } }
|
438
|
+
}
|
439
|
+
|
440
|
+
def struct_fields; FIELDS; end
|
441
|
+
|
442
|
+
def validate
|
443
|
+
end
|
444
|
+
|
445
|
+
::Thrift::Struct.generate_accessors self
|
446
|
+
end
|
447
|
+
|
448
|
+
class EnvironmentContext
|
449
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
450
|
+
PROPERTIES = 1
|
451
|
+
|
452
|
+
FIELDS = {
|
453
|
+
PROPERTIES => { :type => ::Thrift::Types::MAP, :name => 'properties', :key => { :type => ::Thrift::Types::STRING }, :value => { :type => ::Thrift::Types::STRING } }
|
454
|
+
}
|
455
|
+
|
456
|
+
def struct_fields; FIELDS; end
|
457
|
+
|
458
|
+
def validate
|
459
|
+
end
|
460
|
+
|
461
|
+
::Thrift::Struct.generate_accessors self
|
462
|
+
end
|
463
|
+
|
464
|
+
class MetaException < ::Thrift::Exception
|
465
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
466
|
+
def initialize(message=nil)
|
467
|
+
super()
|
468
|
+
self.message = message
|
469
|
+
end
|
470
|
+
|
471
|
+
MESSAGE = 1
|
472
|
+
|
473
|
+
FIELDS = {
|
474
|
+
MESSAGE => { :type => ::Thrift::Types::STRING, :name => 'message' }
|
475
|
+
}
|
476
|
+
|
477
|
+
def struct_fields; FIELDS; end
|
478
|
+
|
479
|
+
def validate
|
480
|
+
end
|
481
|
+
|
482
|
+
::Thrift::Struct.generate_accessors self
|
483
|
+
end
|
484
|
+
|
485
|
+
class UnknownTableException < ::Thrift::Exception
|
486
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
487
|
+
def initialize(message=nil)
|
488
|
+
super()
|
489
|
+
self.message = message
|
490
|
+
end
|
491
|
+
|
492
|
+
MESSAGE = 1
|
493
|
+
|
494
|
+
FIELDS = {
|
495
|
+
MESSAGE => { :type => ::Thrift::Types::STRING, :name => 'message' }
|
496
|
+
}
|
497
|
+
|
498
|
+
def struct_fields; FIELDS; end
|
499
|
+
|
500
|
+
def validate
|
501
|
+
end
|
502
|
+
|
503
|
+
::Thrift::Struct.generate_accessors self
|
504
|
+
end
|
505
|
+
|
506
|
+
class UnknownDBException < ::Thrift::Exception
|
507
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
508
|
+
def initialize(message=nil)
|
509
|
+
super()
|
510
|
+
self.message = message
|
511
|
+
end
|
512
|
+
|
513
|
+
MESSAGE = 1
|
514
|
+
|
515
|
+
FIELDS = {
|
516
|
+
MESSAGE => { :type => ::Thrift::Types::STRING, :name => 'message' }
|
517
|
+
}
|
518
|
+
|
519
|
+
def struct_fields; FIELDS; end
|
520
|
+
|
521
|
+
def validate
|
522
|
+
end
|
523
|
+
|
524
|
+
::Thrift::Struct.generate_accessors self
|
525
|
+
end
|
526
|
+
|
527
|
+
class AlreadyExistsException < ::Thrift::Exception
|
528
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
529
|
+
def initialize(message=nil)
|
530
|
+
super()
|
531
|
+
self.message = message
|
532
|
+
end
|
533
|
+
|
534
|
+
MESSAGE = 1
|
535
|
+
|
536
|
+
FIELDS = {
|
537
|
+
MESSAGE => { :type => ::Thrift::Types::STRING, :name => 'message' }
|
538
|
+
}
|
539
|
+
|
540
|
+
def struct_fields; FIELDS; end
|
541
|
+
|
542
|
+
def validate
|
543
|
+
end
|
544
|
+
|
545
|
+
::Thrift::Struct.generate_accessors self
|
546
|
+
end
|
547
|
+
|
548
|
+
class InvalidPartitionException < ::Thrift::Exception
|
549
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
550
|
+
def initialize(message=nil)
|
551
|
+
super()
|
552
|
+
self.message = message
|
553
|
+
end
|
554
|
+
|
555
|
+
MESSAGE = 1
|
556
|
+
|
557
|
+
FIELDS = {
|
558
|
+
MESSAGE => { :type => ::Thrift::Types::STRING, :name => 'message' }
|
559
|
+
}
|
560
|
+
|
561
|
+
def struct_fields; FIELDS; end
|
562
|
+
|
563
|
+
def validate
|
564
|
+
end
|
565
|
+
|
566
|
+
::Thrift::Struct.generate_accessors self
|
567
|
+
end
|
568
|
+
|
569
|
+
class UnknownPartitionException < ::Thrift::Exception
|
570
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
571
|
+
def initialize(message=nil)
|
572
|
+
super()
|
573
|
+
self.message = message
|
574
|
+
end
|
575
|
+
|
576
|
+
MESSAGE = 1
|
577
|
+
|
578
|
+
FIELDS = {
|
579
|
+
MESSAGE => { :type => ::Thrift::Types::STRING, :name => 'message' }
|
580
|
+
}
|
581
|
+
|
582
|
+
def struct_fields; FIELDS; end
|
583
|
+
|
584
|
+
def validate
|
585
|
+
end
|
586
|
+
|
587
|
+
::Thrift::Struct.generate_accessors self
|
588
|
+
end
|
589
|
+
|
590
|
+
class InvalidObjectException < ::Thrift::Exception
|
591
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
592
|
+
def initialize(message=nil)
|
593
|
+
super()
|
594
|
+
self.message = message
|
595
|
+
end
|
596
|
+
|
597
|
+
MESSAGE = 1
|
598
|
+
|
599
|
+
FIELDS = {
|
600
|
+
MESSAGE => { :type => ::Thrift::Types::STRING, :name => 'message' }
|
601
|
+
}
|
602
|
+
|
603
|
+
def struct_fields; FIELDS; end
|
604
|
+
|
605
|
+
def validate
|
606
|
+
end
|
607
|
+
|
608
|
+
::Thrift::Struct.generate_accessors self
|
609
|
+
end
|
610
|
+
|
611
|
+
class NoSuchObjectException < ::Thrift::Exception
|
612
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
613
|
+
def initialize(message=nil)
|
614
|
+
super()
|
615
|
+
self.message = message
|
616
|
+
end
|
617
|
+
|
618
|
+
MESSAGE = 1
|
619
|
+
|
620
|
+
FIELDS = {
|
621
|
+
MESSAGE => { :type => ::Thrift::Types::STRING, :name => 'message' }
|
622
|
+
}
|
623
|
+
|
624
|
+
def struct_fields; FIELDS; end
|
625
|
+
|
626
|
+
def validate
|
627
|
+
end
|
628
|
+
|
629
|
+
::Thrift::Struct.generate_accessors self
|
630
|
+
end
|
631
|
+
|
632
|
+
class IndexAlreadyExistsException < ::Thrift::Exception
|
633
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
634
|
+
def initialize(message=nil)
|
635
|
+
super()
|
636
|
+
self.message = message
|
637
|
+
end
|
638
|
+
|
639
|
+
MESSAGE = 1
|
640
|
+
|
641
|
+
FIELDS = {
|
642
|
+
MESSAGE => { :type => ::Thrift::Types::STRING, :name => 'message' }
|
643
|
+
}
|
644
|
+
|
645
|
+
def struct_fields; FIELDS; end
|
646
|
+
|
647
|
+
def validate
|
648
|
+
end
|
649
|
+
|
650
|
+
::Thrift::Struct.generate_accessors self
|
651
|
+
end
|
652
|
+
|
653
|
+
class InvalidOperationException < ::Thrift::Exception
|
654
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
655
|
+
def initialize(message=nil)
|
656
|
+
super()
|
657
|
+
self.message = message
|
658
|
+
end
|
659
|
+
|
660
|
+
MESSAGE = 1
|
661
|
+
|
662
|
+
FIELDS = {
|
663
|
+
MESSAGE => { :type => ::Thrift::Types::STRING, :name => 'message' }
|
664
|
+
}
|
665
|
+
|
666
|
+
def struct_fields; FIELDS; end
|
667
|
+
|
668
|
+
def validate
|
669
|
+
end
|
670
|
+
|
671
|
+
::Thrift::Struct.generate_accessors self
|
672
|
+
end
|
673
|
+
|
674
|
+
class ConfigValSecurityException < ::Thrift::Exception
|
675
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
676
|
+
def initialize(message=nil)
|
677
|
+
super()
|
678
|
+
self.message = message
|
679
|
+
end
|
680
|
+
|
681
|
+
MESSAGE = 1
|
682
|
+
|
683
|
+
FIELDS = {
|
684
|
+
MESSAGE => { :type => ::Thrift::Types::STRING, :name => 'message' }
|
685
|
+
}
|
686
|
+
|
687
|
+
def struct_fields; FIELDS; end
|
688
|
+
|
689
|
+
def validate
|
690
|
+
end
|
691
|
+
|
692
|
+
::Thrift::Struct.generate_accessors self
|
693
|
+
end
|
694
|
+
|
695
|
+
end
|
696
|
+
end
|
697
|
+
end
|