rbhive-vidma 1.0.2.pre1.pre.thrift0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/CHANGELOG.md +16 -0
- data/Gemfile +3 -0
- data/LICENSE +20 -0
- data/README.md +344 -0
- data/Rakefile +1 -0
- data/lib/rbhive.rb +8 -0
- data/lib/rbhive/connection.rb +150 -0
- data/lib/rbhive/explain_result.rb +46 -0
- data/lib/rbhive/result_set.rb +37 -0
- data/lib/rbhive/schema_definition.rb +86 -0
- data/lib/rbhive/t_c_l_i_connection.rb +439 -0
- data/lib/rbhive/t_c_l_i_result_set.rb +3 -0
- data/lib/rbhive/t_c_l_i_schema_definition.rb +88 -0
- data/lib/rbhive/table_schema.rb +117 -0
- data/lib/rbhive/version.rb +3 -0
- data/lib/thrift/facebook_service.rb +700 -0
- data/lib/thrift/fb303_constants.rb +9 -0
- data/lib/thrift/fb303_types.rb +19 -0
- data/lib/thrift/hive_metastore_constants.rb +41 -0
- data/lib/thrift/hive_metastore_types.rb +630 -0
- data/lib/thrift/hive_service_constants.rb +13 -0
- data/lib/thrift/hive_service_types.rb +72 -0
- data/lib/thrift/queryplan_constants.rb +13 -0
- data/lib/thrift/queryplan_types.rb +261 -0
- data/lib/thrift/sasl_client_transport.rb +97 -0
- data/lib/thrift/serde_constants.rb +92 -0
- data/lib/thrift/serde_types.rb +7 -0
- data/lib/thrift/t_c_l_i_service.rb +1054 -0
- data/lib/thrift/t_c_l_i_service_constants.rb +72 -0
- data/lib/thrift/t_c_l_i_service_types.rb +1762 -0
- data/lib/thrift/thrift_hive.rb +508 -0
- data/lib/thrift/thrift_hive_metastore.rb +3856 -0
- data/rbhive.gemspec +33 -0
- metadata +165 -0
@@ -0,0 +1,19 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.0)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
|
9
|
+
module Fb_status
|
10
|
+
DEAD = 0
|
11
|
+
STARTING = 1
|
12
|
+
ALIVE = 2
|
13
|
+
STOPPING = 3
|
14
|
+
STOPPED = 4
|
15
|
+
WARNING = 5
|
16
|
+
VALUE_MAP = {0 => "DEAD", 1 => "STARTING", 2 => "ALIVE", 3 => "STOPPING", 4 => "STOPPED", 5 => "WARNING"}
|
17
|
+
VALID_VALUES = Set.new([DEAD, STARTING, ALIVE, STOPPING, STOPPED, WARNING]).freeze
|
18
|
+
end
|
19
|
+
|
@@ -0,0 +1,41 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.0)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
require_relative 'hive_metastore_types'
|
9
|
+
|
10
|
+
DDL_TIME = %q"transient_lastDdlTime"
|
11
|
+
|
12
|
+
IS_ARCHIVED = %q"is_archived"
|
13
|
+
|
14
|
+
ORIGINAL_LOCATION = %q"original_location"
|
15
|
+
|
16
|
+
META_TABLE_COLUMNS = %q"columns"
|
17
|
+
|
18
|
+
META_TABLE_COLUMN_TYPES = %q"columns.types"
|
19
|
+
|
20
|
+
BUCKET_FIELD_NAME = %q"bucket_field_name"
|
21
|
+
|
22
|
+
BUCKET_COUNT = %q"bucket_count"
|
23
|
+
|
24
|
+
FIELD_TO_DIMENSION = %q"field_to_dimension"
|
25
|
+
|
26
|
+
META_TABLE_NAME = %q"name"
|
27
|
+
|
28
|
+
META_TABLE_DB = %q"db"
|
29
|
+
|
30
|
+
META_TABLE_LOCATION = %q"location"
|
31
|
+
|
32
|
+
META_TABLE_SERDE = %q"serde"
|
33
|
+
|
34
|
+
META_TABLE_PARTITION_COLUMNS = %q"partition_columns"
|
35
|
+
|
36
|
+
FILE_INPUT_FORMAT = %q"file.inputformat"
|
37
|
+
|
38
|
+
FILE_OUTPUT_FORMAT = %q"file.outputformat"
|
39
|
+
|
40
|
+
META_TABLE_STORAGE = %q"storage_handler"
|
41
|
+
|
@@ -0,0 +1,630 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.0)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
require_relative 'fb303_types'
|
9
|
+
|
10
|
+
|
11
|
+
module HiveObjectType
|
12
|
+
GLOBAL = 1
|
13
|
+
DATABASE = 2
|
14
|
+
TABLE = 3
|
15
|
+
PARTITION = 4
|
16
|
+
COLUMN = 5
|
17
|
+
VALUE_MAP = {1 => "GLOBAL", 2 => "DATABASE", 3 => "TABLE", 4 => "PARTITION", 5 => "COLUMN"}
|
18
|
+
VALID_VALUES = Set.new([GLOBAL, DATABASE, TABLE, PARTITION, COLUMN]).freeze
|
19
|
+
end
|
20
|
+
|
21
|
+
module PrincipalType
|
22
|
+
USER = 1
|
23
|
+
ROLE = 2
|
24
|
+
GROUP = 3
|
25
|
+
VALUE_MAP = {1 => "USER", 2 => "ROLE", 3 => "GROUP"}
|
26
|
+
VALID_VALUES = Set.new([USER, ROLE, GROUP]).freeze
|
27
|
+
end
|
28
|
+
|
29
|
+
class Version
|
30
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
31
|
+
VERSION = 1
|
32
|
+
COMMENTS = 2
|
33
|
+
|
34
|
+
FIELDS = {
|
35
|
+
VERSION => {:type => ::Thrift::Types::STRING, :name => 'version'},
|
36
|
+
COMMENTS => {:type => ::Thrift::Types::STRING, :name => 'comments'}
|
37
|
+
}
|
38
|
+
|
39
|
+
def struct_fields; FIELDS; end
|
40
|
+
|
41
|
+
def validate
|
42
|
+
end
|
43
|
+
|
44
|
+
::Thrift::Struct.generate_accessors self
|
45
|
+
end
|
46
|
+
|
47
|
+
class FieldSchema
|
48
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
49
|
+
NAME = 1
|
50
|
+
TYPE = 2
|
51
|
+
COMMENT = 3
|
52
|
+
|
53
|
+
FIELDS = {
|
54
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
55
|
+
TYPE => {:type => ::Thrift::Types::STRING, :name => 'type'},
|
56
|
+
COMMENT => {:type => ::Thrift::Types::STRING, :name => 'comment'}
|
57
|
+
}
|
58
|
+
|
59
|
+
def struct_fields; FIELDS; end
|
60
|
+
|
61
|
+
def validate
|
62
|
+
end
|
63
|
+
|
64
|
+
::Thrift::Struct.generate_accessors self
|
65
|
+
end
|
66
|
+
|
67
|
+
class Type
|
68
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
69
|
+
NAME = 1
|
70
|
+
TYPE1 = 2
|
71
|
+
TYPE2 = 3
|
72
|
+
FIELDS = 4
|
73
|
+
|
74
|
+
FIELDS = {
|
75
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
76
|
+
TYPE1 => {:type => ::Thrift::Types::STRING, :name => 'type1', :optional => true},
|
77
|
+
TYPE2 => {:type => ::Thrift::Types::STRING, :name => 'type2', :optional => true},
|
78
|
+
FIELDS => {:type => ::Thrift::Types::LIST, :name => 'fields', :element => {:type => ::Thrift::Types::STRUCT, :class => ::FieldSchema}, :optional => true}
|
79
|
+
}
|
80
|
+
|
81
|
+
def struct_fields; FIELDS; end
|
82
|
+
|
83
|
+
def validate
|
84
|
+
end
|
85
|
+
|
86
|
+
::Thrift::Struct.generate_accessors self
|
87
|
+
end
|
88
|
+
|
89
|
+
class HiveObjectRef
|
90
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
91
|
+
OBJECTTYPE = 1
|
92
|
+
DBNAME = 2
|
93
|
+
OBJECTNAME = 3
|
94
|
+
PARTVALUES = 4
|
95
|
+
COLUMNNAME = 5
|
96
|
+
|
97
|
+
FIELDS = {
|
98
|
+
OBJECTTYPE => {:type => ::Thrift::Types::I32, :name => 'objectType', :enum_class => ::HiveObjectType},
|
99
|
+
DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'},
|
100
|
+
OBJECTNAME => {:type => ::Thrift::Types::STRING, :name => 'objectName'},
|
101
|
+
PARTVALUES => {:type => ::Thrift::Types::LIST, :name => 'partValues', :element => {:type => ::Thrift::Types::STRING}},
|
102
|
+
COLUMNNAME => {:type => ::Thrift::Types::STRING, :name => 'columnName'}
|
103
|
+
}
|
104
|
+
|
105
|
+
def struct_fields; FIELDS; end
|
106
|
+
|
107
|
+
def validate
|
108
|
+
unless @objectType.nil? || ::HiveObjectType::VALID_VALUES.include?(@objectType)
|
109
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field objectType!')
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
::Thrift::Struct.generate_accessors self
|
114
|
+
end
|
115
|
+
|
116
|
+
class PrivilegeGrantInfo
|
117
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
118
|
+
PRIVILEGE = 1
|
119
|
+
CREATETIME = 2
|
120
|
+
GRANTOR = 3
|
121
|
+
GRANTORTYPE = 4
|
122
|
+
GRANTOPTION = 5
|
123
|
+
|
124
|
+
FIELDS = {
|
125
|
+
PRIVILEGE => {:type => ::Thrift::Types::STRING, :name => 'privilege'},
|
126
|
+
CREATETIME => {:type => ::Thrift::Types::I32, :name => 'createTime'},
|
127
|
+
GRANTOR => {:type => ::Thrift::Types::STRING, :name => 'grantor'},
|
128
|
+
GRANTORTYPE => {:type => ::Thrift::Types::I32, :name => 'grantorType', :enum_class => ::PrincipalType},
|
129
|
+
GRANTOPTION => {:type => ::Thrift::Types::BOOL, :name => 'grantOption'}
|
130
|
+
}
|
131
|
+
|
132
|
+
def struct_fields; FIELDS; end
|
133
|
+
|
134
|
+
def validate
|
135
|
+
unless @grantorType.nil? || ::PrincipalType::VALID_VALUES.include?(@grantorType)
|
136
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field grantorType!')
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
::Thrift::Struct.generate_accessors self
|
141
|
+
end
|
142
|
+
|
143
|
+
class HiveObjectPrivilege
|
144
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
145
|
+
HIVEOBJECT = 1
|
146
|
+
PRINCIPALNAME = 2
|
147
|
+
PRINCIPALTYPE = 3
|
148
|
+
GRANTINFO = 4
|
149
|
+
|
150
|
+
FIELDS = {
|
151
|
+
HIVEOBJECT => {:type => ::Thrift::Types::STRUCT, :name => 'hiveObject', :class => ::HiveObjectRef},
|
152
|
+
PRINCIPALNAME => {:type => ::Thrift::Types::STRING, :name => 'principalName'},
|
153
|
+
PRINCIPALTYPE => {:type => ::Thrift::Types::I32, :name => 'principalType', :enum_class => ::PrincipalType},
|
154
|
+
GRANTINFO => {:type => ::Thrift::Types::STRUCT, :name => 'grantInfo', :class => ::PrivilegeGrantInfo}
|
155
|
+
}
|
156
|
+
|
157
|
+
def struct_fields; FIELDS; end
|
158
|
+
|
159
|
+
def validate
|
160
|
+
unless @principalType.nil? || ::PrincipalType::VALID_VALUES.include?(@principalType)
|
161
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field principalType!')
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
::Thrift::Struct.generate_accessors self
|
166
|
+
end
|
167
|
+
|
168
|
+
class PrivilegeBag
|
169
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
170
|
+
PRIVILEGES = 1
|
171
|
+
|
172
|
+
FIELDS = {
|
173
|
+
PRIVILEGES => {:type => ::Thrift::Types::LIST, :name => 'privileges', :element => {:type => ::Thrift::Types::STRUCT, :class => ::HiveObjectPrivilege}}
|
174
|
+
}
|
175
|
+
|
176
|
+
def struct_fields; FIELDS; end
|
177
|
+
|
178
|
+
def validate
|
179
|
+
end
|
180
|
+
|
181
|
+
::Thrift::Struct.generate_accessors self
|
182
|
+
end
|
183
|
+
|
184
|
+
class PrincipalPrivilegeSet
|
185
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
186
|
+
USERPRIVILEGES = 1
|
187
|
+
GROUPPRIVILEGES = 2
|
188
|
+
ROLEPRIVILEGES = 3
|
189
|
+
|
190
|
+
FIELDS = {
|
191
|
+
USERPRIVILEGES => {:type => ::Thrift::Types::MAP, :name => 'userPrivileges', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => ::PrivilegeGrantInfo}}},
|
192
|
+
GROUPPRIVILEGES => {:type => ::Thrift::Types::MAP, :name => 'groupPrivileges', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => ::PrivilegeGrantInfo}}},
|
193
|
+
ROLEPRIVILEGES => {:type => ::Thrift::Types::MAP, :name => 'rolePrivileges', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => ::PrivilegeGrantInfo}}}
|
194
|
+
}
|
195
|
+
|
196
|
+
def struct_fields; FIELDS; end
|
197
|
+
|
198
|
+
def validate
|
199
|
+
end
|
200
|
+
|
201
|
+
::Thrift::Struct.generate_accessors self
|
202
|
+
end
|
203
|
+
|
204
|
+
class Role
|
205
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
206
|
+
ROLENAME = 1
|
207
|
+
CREATETIME = 2
|
208
|
+
OWNERNAME = 3
|
209
|
+
|
210
|
+
FIELDS = {
|
211
|
+
ROLENAME => {:type => ::Thrift::Types::STRING, :name => 'roleName'},
|
212
|
+
CREATETIME => {:type => ::Thrift::Types::I32, :name => 'createTime'},
|
213
|
+
OWNERNAME => {:type => ::Thrift::Types::STRING, :name => 'ownerName'}
|
214
|
+
}
|
215
|
+
|
216
|
+
def struct_fields; FIELDS; end
|
217
|
+
|
218
|
+
def validate
|
219
|
+
end
|
220
|
+
|
221
|
+
::Thrift::Struct.generate_accessors self
|
222
|
+
end
|
223
|
+
|
224
|
+
class Database
|
225
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
226
|
+
NAME = 1
|
227
|
+
DESCRIPTION = 2
|
228
|
+
LOCATIONURI = 3
|
229
|
+
PARAMETERS = 4
|
230
|
+
PRIVILEGES = 5
|
231
|
+
|
232
|
+
FIELDS = {
|
233
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
234
|
+
DESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'description'},
|
235
|
+
LOCATIONURI => {:type => ::Thrift::Types::STRING, :name => 'locationUri'},
|
236
|
+
PARAMETERS => {:type => ::Thrift::Types::MAP, :name => 'parameters', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
|
237
|
+
PRIVILEGES => {:type => ::Thrift::Types::STRUCT, :name => 'privileges', :class => ::PrincipalPrivilegeSet, :optional => true}
|
238
|
+
}
|
239
|
+
|
240
|
+
def struct_fields; FIELDS; end
|
241
|
+
|
242
|
+
def validate
|
243
|
+
end
|
244
|
+
|
245
|
+
::Thrift::Struct.generate_accessors self
|
246
|
+
end
|
247
|
+
|
248
|
+
class SerDeInfo
|
249
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
250
|
+
NAME = 1
|
251
|
+
SERIALIZATIONLIB = 2
|
252
|
+
PARAMETERS = 3
|
253
|
+
|
254
|
+
FIELDS = {
|
255
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
256
|
+
SERIALIZATIONLIB => {:type => ::Thrift::Types::STRING, :name => 'serializationLib'},
|
257
|
+
PARAMETERS => {:type => ::Thrift::Types::MAP, :name => 'parameters', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}}
|
258
|
+
}
|
259
|
+
|
260
|
+
def struct_fields; FIELDS; end
|
261
|
+
|
262
|
+
def validate
|
263
|
+
end
|
264
|
+
|
265
|
+
::Thrift::Struct.generate_accessors self
|
266
|
+
end
|
267
|
+
|
268
|
+
class Order
|
269
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
270
|
+
COL = 1
|
271
|
+
ORDER = 2
|
272
|
+
|
273
|
+
FIELDS = {
|
274
|
+
COL => {:type => ::Thrift::Types::STRING, :name => 'col'},
|
275
|
+
ORDER => {:type => ::Thrift::Types::I32, :name => 'order'}
|
276
|
+
}
|
277
|
+
|
278
|
+
def struct_fields; FIELDS; end
|
279
|
+
|
280
|
+
def validate
|
281
|
+
end
|
282
|
+
|
283
|
+
::Thrift::Struct.generate_accessors self
|
284
|
+
end
|
285
|
+
|
286
|
+
class StorageDescriptor
|
287
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
288
|
+
COLS = 1
|
289
|
+
LOCATION = 2
|
290
|
+
INPUTFORMAT = 3
|
291
|
+
OUTPUTFORMAT = 4
|
292
|
+
COMPRESSED = 5
|
293
|
+
NUMBUCKETS = 6
|
294
|
+
SERDEINFO = 7
|
295
|
+
BUCKETCOLS = 8
|
296
|
+
SORTCOLS = 9
|
297
|
+
PARAMETERS = 10
|
298
|
+
|
299
|
+
FIELDS = {
|
300
|
+
COLS => {:type => ::Thrift::Types::LIST, :name => 'cols', :element => {:type => ::Thrift::Types::STRUCT, :class => ::FieldSchema}},
|
301
|
+
LOCATION => {:type => ::Thrift::Types::STRING, :name => 'location'},
|
302
|
+
INPUTFORMAT => {:type => ::Thrift::Types::STRING, :name => 'inputFormat'},
|
303
|
+
OUTPUTFORMAT => {:type => ::Thrift::Types::STRING, :name => 'outputFormat'},
|
304
|
+
COMPRESSED => {:type => ::Thrift::Types::BOOL, :name => 'compressed'},
|
305
|
+
NUMBUCKETS => {:type => ::Thrift::Types::I32, :name => 'numBuckets'},
|
306
|
+
SERDEINFO => {:type => ::Thrift::Types::STRUCT, :name => 'serdeInfo', :class => ::SerDeInfo},
|
307
|
+
BUCKETCOLS => {:type => ::Thrift::Types::LIST, :name => 'bucketCols', :element => {:type => ::Thrift::Types::STRING}},
|
308
|
+
SORTCOLS => {:type => ::Thrift::Types::LIST, :name => 'sortCols', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Order}},
|
309
|
+
PARAMETERS => {:type => ::Thrift::Types::MAP, :name => 'parameters', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}}
|
310
|
+
}
|
311
|
+
|
312
|
+
def struct_fields; FIELDS; end
|
313
|
+
|
314
|
+
def validate
|
315
|
+
end
|
316
|
+
|
317
|
+
::Thrift::Struct.generate_accessors self
|
318
|
+
end
|
319
|
+
|
320
|
+
class Table
|
321
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
322
|
+
TABLENAME = 1
|
323
|
+
DBNAME = 2
|
324
|
+
OWNER = 3
|
325
|
+
CREATETIME = 4
|
326
|
+
LASTACCESSTIME = 5
|
327
|
+
RETENTION = 6
|
328
|
+
SD = 7
|
329
|
+
PARTITIONKEYS = 8
|
330
|
+
PARAMETERS = 9
|
331
|
+
VIEWORIGINALTEXT = 10
|
332
|
+
VIEWEXPANDEDTEXT = 11
|
333
|
+
TABLETYPE = 12
|
334
|
+
PRIVILEGES = 13
|
335
|
+
|
336
|
+
FIELDS = {
|
337
|
+
TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName'},
|
338
|
+
DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'},
|
339
|
+
OWNER => {:type => ::Thrift::Types::STRING, :name => 'owner'},
|
340
|
+
CREATETIME => {:type => ::Thrift::Types::I32, :name => 'createTime'},
|
341
|
+
LASTACCESSTIME => {:type => ::Thrift::Types::I32, :name => 'lastAccessTime'},
|
342
|
+
RETENTION => {:type => ::Thrift::Types::I32, :name => 'retention'},
|
343
|
+
SD => {:type => ::Thrift::Types::STRUCT, :name => 'sd', :class => ::StorageDescriptor},
|
344
|
+
PARTITIONKEYS => {:type => ::Thrift::Types::LIST, :name => 'partitionKeys', :element => {:type => ::Thrift::Types::STRUCT, :class => ::FieldSchema}},
|
345
|
+
PARAMETERS => {:type => ::Thrift::Types::MAP, :name => 'parameters', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
|
346
|
+
VIEWORIGINALTEXT => {:type => ::Thrift::Types::STRING, :name => 'viewOriginalText'},
|
347
|
+
VIEWEXPANDEDTEXT => {:type => ::Thrift::Types::STRING, :name => 'viewExpandedText'},
|
348
|
+
TABLETYPE => {:type => ::Thrift::Types::STRING, :name => 'tableType'},
|
349
|
+
PRIVILEGES => {:type => ::Thrift::Types::STRUCT, :name => 'privileges', :class => ::PrincipalPrivilegeSet, :optional => true}
|
350
|
+
}
|
351
|
+
|
352
|
+
def struct_fields; FIELDS; end
|
353
|
+
|
354
|
+
def validate
|
355
|
+
end
|
356
|
+
|
357
|
+
::Thrift::Struct.generate_accessors self
|
358
|
+
end
|
359
|
+
|
360
|
+
class Partition
|
361
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
362
|
+
VALUES = 1
|
363
|
+
DBNAME = 2
|
364
|
+
TABLENAME = 3
|
365
|
+
CREATETIME = 4
|
366
|
+
LASTACCESSTIME = 5
|
367
|
+
SD = 6
|
368
|
+
PARAMETERS = 7
|
369
|
+
PRIVILEGES = 8
|
370
|
+
|
371
|
+
FIELDS = {
|
372
|
+
VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::STRING}},
|
373
|
+
DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'},
|
374
|
+
TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName'},
|
375
|
+
CREATETIME => {:type => ::Thrift::Types::I32, :name => 'createTime'},
|
376
|
+
LASTACCESSTIME => {:type => ::Thrift::Types::I32, :name => 'lastAccessTime'},
|
377
|
+
SD => {:type => ::Thrift::Types::STRUCT, :name => 'sd', :class => ::StorageDescriptor},
|
378
|
+
PARAMETERS => {:type => ::Thrift::Types::MAP, :name => 'parameters', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
|
379
|
+
PRIVILEGES => {:type => ::Thrift::Types::STRUCT, :name => 'privileges', :class => ::PrincipalPrivilegeSet, :optional => true}
|
380
|
+
}
|
381
|
+
|
382
|
+
def struct_fields; FIELDS; end
|
383
|
+
|
384
|
+
def validate
|
385
|
+
end
|
386
|
+
|
387
|
+
::Thrift::Struct.generate_accessors self
|
388
|
+
end
|
389
|
+
|
390
|
+
class Index
|
391
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
392
|
+
INDEXNAME = 1
|
393
|
+
INDEXHANDLERCLASS = 2
|
394
|
+
DBNAME = 3
|
395
|
+
ORIGTABLENAME = 4
|
396
|
+
CREATETIME = 5
|
397
|
+
LASTACCESSTIME = 6
|
398
|
+
INDEXTABLENAME = 7
|
399
|
+
SD = 8
|
400
|
+
PARAMETERS = 9
|
401
|
+
DEFERREDREBUILD = 10
|
402
|
+
|
403
|
+
FIELDS = {
|
404
|
+
INDEXNAME => {:type => ::Thrift::Types::STRING, :name => 'indexName'},
|
405
|
+
INDEXHANDLERCLASS => {:type => ::Thrift::Types::STRING, :name => 'indexHandlerClass'},
|
406
|
+
DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'},
|
407
|
+
ORIGTABLENAME => {:type => ::Thrift::Types::STRING, :name => 'origTableName'},
|
408
|
+
CREATETIME => {:type => ::Thrift::Types::I32, :name => 'createTime'},
|
409
|
+
LASTACCESSTIME => {:type => ::Thrift::Types::I32, :name => 'lastAccessTime'},
|
410
|
+
INDEXTABLENAME => {:type => ::Thrift::Types::STRING, :name => 'indexTableName'},
|
411
|
+
SD => {:type => ::Thrift::Types::STRUCT, :name => 'sd', :class => ::StorageDescriptor},
|
412
|
+
PARAMETERS => {:type => ::Thrift::Types::MAP, :name => 'parameters', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
|
413
|
+
DEFERREDREBUILD => {:type => ::Thrift::Types::BOOL, :name => 'deferredRebuild'}
|
414
|
+
}
|
415
|
+
|
416
|
+
def struct_fields; FIELDS; end
|
417
|
+
|
418
|
+
def validate
|
419
|
+
end
|
420
|
+
|
421
|
+
::Thrift::Struct.generate_accessors self
|
422
|
+
end
|
423
|
+
|
424
|
+
class Schema
|
425
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
426
|
+
FIELDSCHEMAS = 1
|
427
|
+
PROPERTIES = 2
|
428
|
+
|
429
|
+
FIELDS = {
|
430
|
+
FIELDSCHEMAS => {:type => ::Thrift::Types::LIST, :name => 'fieldSchemas', :element => {:type => ::Thrift::Types::STRUCT, :class => ::FieldSchema}},
|
431
|
+
PROPERTIES => {:type => ::Thrift::Types::MAP, :name => 'properties', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}}
|
432
|
+
}
|
433
|
+
|
434
|
+
def struct_fields; FIELDS; end
|
435
|
+
|
436
|
+
def validate
|
437
|
+
end
|
438
|
+
|
439
|
+
::Thrift::Struct.generate_accessors self
|
440
|
+
end
|
441
|
+
|
442
|
+
class MetaException < ::Thrift::Exception
|
443
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
444
|
+
def initialize(message=nil)
|
445
|
+
super()
|
446
|
+
self.message = message
|
447
|
+
end
|
448
|
+
|
449
|
+
MESSAGE = 1
|
450
|
+
|
451
|
+
FIELDS = {
|
452
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
453
|
+
}
|
454
|
+
|
455
|
+
def struct_fields; FIELDS; end
|
456
|
+
|
457
|
+
def validate
|
458
|
+
end
|
459
|
+
|
460
|
+
::Thrift::Struct.generate_accessors self
|
461
|
+
end
|
462
|
+
|
463
|
+
class UnknownTableException < ::Thrift::Exception
|
464
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
465
|
+
def initialize(message=nil)
|
466
|
+
super()
|
467
|
+
self.message = message
|
468
|
+
end
|
469
|
+
|
470
|
+
MESSAGE = 1
|
471
|
+
|
472
|
+
FIELDS = {
|
473
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
474
|
+
}
|
475
|
+
|
476
|
+
def struct_fields; FIELDS; end
|
477
|
+
|
478
|
+
def validate
|
479
|
+
end
|
480
|
+
|
481
|
+
::Thrift::Struct.generate_accessors self
|
482
|
+
end
|
483
|
+
|
484
|
+
class UnknownDBException < ::Thrift::Exception
|
485
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
486
|
+
def initialize(message=nil)
|
487
|
+
super()
|
488
|
+
self.message = message
|
489
|
+
end
|
490
|
+
|
491
|
+
MESSAGE = 1
|
492
|
+
|
493
|
+
FIELDS = {
|
494
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
495
|
+
}
|
496
|
+
|
497
|
+
def struct_fields; FIELDS; end
|
498
|
+
|
499
|
+
def validate
|
500
|
+
end
|
501
|
+
|
502
|
+
::Thrift::Struct.generate_accessors self
|
503
|
+
end
|
504
|
+
|
505
|
+
class AlreadyExistsException < ::Thrift::Exception
|
506
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
507
|
+
def initialize(message=nil)
|
508
|
+
super()
|
509
|
+
self.message = message
|
510
|
+
end
|
511
|
+
|
512
|
+
MESSAGE = 1
|
513
|
+
|
514
|
+
FIELDS = {
|
515
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
516
|
+
}
|
517
|
+
|
518
|
+
def struct_fields; FIELDS; end
|
519
|
+
|
520
|
+
def validate
|
521
|
+
end
|
522
|
+
|
523
|
+
::Thrift::Struct.generate_accessors self
|
524
|
+
end
|
525
|
+
|
526
|
+
class InvalidObjectException < ::Thrift::Exception
|
527
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
528
|
+
def initialize(message=nil)
|
529
|
+
super()
|
530
|
+
self.message = message
|
531
|
+
end
|
532
|
+
|
533
|
+
MESSAGE = 1
|
534
|
+
|
535
|
+
FIELDS = {
|
536
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
537
|
+
}
|
538
|
+
|
539
|
+
def struct_fields; FIELDS; end
|
540
|
+
|
541
|
+
def validate
|
542
|
+
end
|
543
|
+
|
544
|
+
::Thrift::Struct.generate_accessors self
|
545
|
+
end
|
546
|
+
|
547
|
+
class NoSuchObjectException < ::Thrift::Exception
|
548
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
549
|
+
def initialize(message=nil)
|
550
|
+
super()
|
551
|
+
self.message = message
|
552
|
+
end
|
553
|
+
|
554
|
+
MESSAGE = 1
|
555
|
+
|
556
|
+
FIELDS = {
|
557
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
558
|
+
}
|
559
|
+
|
560
|
+
def struct_fields; FIELDS; end
|
561
|
+
|
562
|
+
def validate
|
563
|
+
end
|
564
|
+
|
565
|
+
::Thrift::Struct.generate_accessors self
|
566
|
+
end
|
567
|
+
|
568
|
+
class IndexAlreadyExistsException < ::Thrift::Exception
|
569
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
570
|
+
def initialize(message=nil)
|
571
|
+
super()
|
572
|
+
self.message = message
|
573
|
+
end
|
574
|
+
|
575
|
+
MESSAGE = 1
|
576
|
+
|
577
|
+
FIELDS = {
|
578
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
579
|
+
}
|
580
|
+
|
581
|
+
def struct_fields; FIELDS; end
|
582
|
+
|
583
|
+
def validate
|
584
|
+
end
|
585
|
+
|
586
|
+
::Thrift::Struct.generate_accessors self
|
587
|
+
end
|
588
|
+
|
589
|
+
class InvalidOperationException < ::Thrift::Exception
|
590
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
591
|
+
def initialize(message=nil)
|
592
|
+
super()
|
593
|
+
self.message = message
|
594
|
+
end
|
595
|
+
|
596
|
+
MESSAGE = 1
|
597
|
+
|
598
|
+
FIELDS = {
|
599
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
600
|
+
}
|
601
|
+
|
602
|
+
def struct_fields; FIELDS; end
|
603
|
+
|
604
|
+
def validate
|
605
|
+
end
|
606
|
+
|
607
|
+
::Thrift::Struct.generate_accessors self
|
608
|
+
end
|
609
|
+
|
610
|
+
class ConfigValSecurityException < ::Thrift::Exception
|
611
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
612
|
+
def initialize(message=nil)
|
613
|
+
super()
|
614
|
+
self.message = message
|
615
|
+
end
|
616
|
+
|
617
|
+
MESSAGE = 1
|
618
|
+
|
619
|
+
FIELDS = {
|
620
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
621
|
+
}
|
622
|
+
|
623
|
+
def struct_fields; FIELDS; end
|
624
|
+
|
625
|
+
def validate
|
626
|
+
end
|
627
|
+
|
628
|
+
::Thrift::Struct.generate_accessors self
|
629
|
+
end
|
630
|
+
|