hexspace 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,72 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.13.0)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+
8
+ module Hexspace
9
+ PRIMITIVE_TYPES = Set.new([
10
+ 0,
11
+ 1,
12
+ 2,
13
+ 3,
14
+ 4,
15
+ 5,
16
+ 6,
17
+ 7,
18
+ 8,
19
+ 9,
20
+ 15,
21
+ 16,
22
+ 17,
23
+ 18,
24
+ 19,
25
+ 20,
26
+ 21,
27
+ ])
28
+
29
+ COMPLEX_TYPES = Set.new([
30
+ 10,
31
+ 11,
32
+ 12,
33
+ 13,
34
+ 14,
35
+ ])
36
+
37
+ COLLECTION_TYPES = Set.new([
38
+ 10,
39
+ 11,
40
+ ])
41
+
42
+ TYPE_NAMES = {
43
+ 10 => %q"ARRAY",
44
+ 4 => %q"BIGINT",
45
+ 9 => %q"BINARY",
46
+ 0 => %q"BOOLEAN",
47
+ 19 => %q"CHAR",
48
+ 17 => %q"DATE",
49
+ 15 => %q"DECIMAL",
50
+ 6 => %q"DOUBLE",
51
+ 5 => %q"FLOAT",
52
+ 21 => %q"INTERVAL_DAY_TIME",
53
+ 20 => %q"INTERVAL_YEAR_MONTH",
54
+ 3 => %q"INT",
55
+ 11 => %q"MAP",
56
+ 16 => %q"NULL",
57
+ 2 => %q"SMALLINT",
58
+ 7 => %q"STRING",
59
+ 12 => %q"STRUCT",
60
+ 8 => %q"TIMESTAMP",
61
+ 1 => %q"TINYINT",
62
+ 13 => %q"UNIONTYPE",
63
+ 18 => %q"VARCHAR",
64
+ }
65
+
66
+ CHARACTER_MAXIMUM_LENGTH = %q"characterMaximumLength"
67
+
68
+ PRECISION = %q"precision"
69
+
70
+ SCALE = %q"scale"
71
+
72
+ end
@@ -0,0 +1,2076 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.13.0)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+
8
+ module Hexspace
9
+ module TProtocolVersion
10
+ HIVE_CLI_SERVICE_PROTOCOL_V1 = 0
11
+ HIVE_CLI_SERVICE_PROTOCOL_V2 = 1
12
+ HIVE_CLI_SERVICE_PROTOCOL_V3 = 2
13
+ HIVE_CLI_SERVICE_PROTOCOL_V4 = 3
14
+ HIVE_CLI_SERVICE_PROTOCOL_V5 = 4
15
+ HIVE_CLI_SERVICE_PROTOCOL_V6 = 5
16
+ HIVE_CLI_SERVICE_PROTOCOL_V7 = 6
17
+ HIVE_CLI_SERVICE_PROTOCOL_V8 = 7
18
+ HIVE_CLI_SERVICE_PROTOCOL_V9 = 8
19
+ HIVE_CLI_SERVICE_PROTOCOL_V10 = 9
20
+ VALUE_MAP = {0 => "HIVE_CLI_SERVICE_PROTOCOL_V1", 1 => "HIVE_CLI_SERVICE_PROTOCOL_V2", 2 => "HIVE_CLI_SERVICE_PROTOCOL_V3", 3 => "HIVE_CLI_SERVICE_PROTOCOL_V4", 4 => "HIVE_CLI_SERVICE_PROTOCOL_V5", 5 => "HIVE_CLI_SERVICE_PROTOCOL_V6", 6 => "HIVE_CLI_SERVICE_PROTOCOL_V7", 7 => "HIVE_CLI_SERVICE_PROTOCOL_V8", 8 => "HIVE_CLI_SERVICE_PROTOCOL_V9", 9 => "HIVE_CLI_SERVICE_PROTOCOL_V10"}
21
+ VALID_VALUES = Set.new([HIVE_CLI_SERVICE_PROTOCOL_V1, HIVE_CLI_SERVICE_PROTOCOL_V2, HIVE_CLI_SERVICE_PROTOCOL_V3, HIVE_CLI_SERVICE_PROTOCOL_V4, HIVE_CLI_SERVICE_PROTOCOL_V5, HIVE_CLI_SERVICE_PROTOCOL_V6, HIVE_CLI_SERVICE_PROTOCOL_V7, HIVE_CLI_SERVICE_PROTOCOL_V8, HIVE_CLI_SERVICE_PROTOCOL_V9, HIVE_CLI_SERVICE_PROTOCOL_V10]).freeze
22
+ end
23
+
24
+ module TTypeId
25
+ BOOLEAN_TYPE = 0
26
+ TINYINT_TYPE = 1
27
+ SMALLINT_TYPE = 2
28
+ INT_TYPE = 3
29
+ BIGINT_TYPE = 4
30
+ FLOAT_TYPE = 5
31
+ DOUBLE_TYPE = 6
32
+ STRING_TYPE = 7
33
+ TIMESTAMP_TYPE = 8
34
+ BINARY_TYPE = 9
35
+ ARRAY_TYPE = 10
36
+ MAP_TYPE = 11
37
+ STRUCT_TYPE = 12
38
+ UNION_TYPE = 13
39
+ USER_DEFINED_TYPE = 14
40
+ DECIMAL_TYPE = 15
41
+ NULL_TYPE = 16
42
+ DATE_TYPE = 17
43
+ VARCHAR_TYPE = 18
44
+ CHAR_TYPE = 19
45
+ INTERVAL_YEAR_MONTH_TYPE = 20
46
+ INTERVAL_DAY_TIME_TYPE = 21
47
+ VALUE_MAP = {0 => "BOOLEAN_TYPE", 1 => "TINYINT_TYPE", 2 => "SMALLINT_TYPE", 3 => "INT_TYPE", 4 => "BIGINT_TYPE", 5 => "FLOAT_TYPE", 6 => "DOUBLE_TYPE", 7 => "STRING_TYPE", 8 => "TIMESTAMP_TYPE", 9 => "BINARY_TYPE", 10 => "ARRAY_TYPE", 11 => "MAP_TYPE", 12 => "STRUCT_TYPE", 13 => "UNION_TYPE", 14 => "USER_DEFINED_TYPE", 15 => "DECIMAL_TYPE", 16 => "NULL_TYPE", 17 => "DATE_TYPE", 18 => "VARCHAR_TYPE", 19 => "CHAR_TYPE", 20 => "INTERVAL_YEAR_MONTH_TYPE", 21 => "INTERVAL_DAY_TIME_TYPE"}
48
+ VALID_VALUES = Set.new([BOOLEAN_TYPE, TINYINT_TYPE, SMALLINT_TYPE, INT_TYPE, BIGINT_TYPE, FLOAT_TYPE, DOUBLE_TYPE, STRING_TYPE, TIMESTAMP_TYPE, BINARY_TYPE, ARRAY_TYPE, MAP_TYPE, STRUCT_TYPE, UNION_TYPE, USER_DEFINED_TYPE, DECIMAL_TYPE, NULL_TYPE, DATE_TYPE, VARCHAR_TYPE, CHAR_TYPE, INTERVAL_YEAR_MONTH_TYPE, INTERVAL_DAY_TIME_TYPE]).freeze
49
+ end
50
+
51
+ module TStatusCode
52
+ SUCCESS_STATUS = 0
53
+ SUCCESS_WITH_INFO_STATUS = 1
54
+ STILL_EXECUTING_STATUS = 2
55
+ ERROR_STATUS = 3
56
+ INVALID_HANDLE_STATUS = 4
57
+ VALUE_MAP = {0 => "SUCCESS_STATUS", 1 => "SUCCESS_WITH_INFO_STATUS", 2 => "STILL_EXECUTING_STATUS", 3 => "ERROR_STATUS", 4 => "INVALID_HANDLE_STATUS"}
58
+ VALID_VALUES = Set.new([SUCCESS_STATUS, SUCCESS_WITH_INFO_STATUS, STILL_EXECUTING_STATUS, ERROR_STATUS, INVALID_HANDLE_STATUS]).freeze
59
+ end
60
+
61
+ module TOperationState
62
+ INITIALIZED_STATE = 0
63
+ RUNNING_STATE = 1
64
+ FINISHED_STATE = 2
65
+ CANCELED_STATE = 3
66
+ CLOSED_STATE = 4
67
+ ERROR_STATE = 5
68
+ UKNOWN_STATE = 6
69
+ PENDING_STATE = 7
70
+ TIMEDOUT_STATE = 8
71
+ VALUE_MAP = {0 => "INITIALIZED_STATE", 1 => "RUNNING_STATE", 2 => "FINISHED_STATE", 3 => "CANCELED_STATE", 4 => "CLOSED_STATE", 5 => "ERROR_STATE", 6 => "UKNOWN_STATE", 7 => "PENDING_STATE", 8 => "TIMEDOUT_STATE"}
72
+ VALID_VALUES = Set.new([INITIALIZED_STATE, RUNNING_STATE, FINISHED_STATE, CANCELED_STATE, CLOSED_STATE, ERROR_STATE, UKNOWN_STATE, PENDING_STATE, TIMEDOUT_STATE]).freeze
73
+ end
74
+
75
+ module TOperationType
76
+ EXECUTE_STATEMENT = 0
77
+ GET_TYPE_INFO = 1
78
+ GET_CATALOGS = 2
79
+ GET_SCHEMAS = 3
80
+ GET_TABLES = 4
81
+ GET_TABLE_TYPES = 5
82
+ GET_COLUMNS = 6
83
+ GET_FUNCTIONS = 7
84
+ UNKNOWN = 8
85
+ VALUE_MAP = {0 => "EXECUTE_STATEMENT", 1 => "GET_TYPE_INFO", 2 => "GET_CATALOGS", 3 => "GET_SCHEMAS", 4 => "GET_TABLES", 5 => "GET_TABLE_TYPES", 6 => "GET_COLUMNS", 7 => "GET_FUNCTIONS", 8 => "UNKNOWN"}
86
+ VALID_VALUES = Set.new([EXECUTE_STATEMENT, GET_TYPE_INFO, GET_CATALOGS, GET_SCHEMAS, GET_TABLES, GET_TABLE_TYPES, GET_COLUMNS, GET_FUNCTIONS, UNKNOWN]).freeze
87
+ end
88
+
89
+ module TGetInfoType
90
+ CLI_MAX_DRIVER_CONNECTIONS = 0
91
+ CLI_MAX_CONCURRENT_ACTIVITIES = 1
92
+ CLI_DATA_SOURCE_NAME = 2
93
+ CLI_FETCH_DIRECTION = 8
94
+ CLI_SERVER_NAME = 13
95
+ CLI_SEARCH_PATTERN_ESCAPE = 14
96
+ CLI_DBMS_NAME = 17
97
+ CLI_DBMS_VER = 18
98
+ CLI_ACCESSIBLE_TABLES = 19
99
+ CLI_ACCESSIBLE_PROCEDURES = 20
100
+ CLI_CURSOR_COMMIT_BEHAVIOR = 23
101
+ CLI_DATA_SOURCE_READ_ONLY = 25
102
+ CLI_DEFAULT_TXN_ISOLATION = 26
103
+ CLI_IDENTIFIER_CASE = 28
104
+ CLI_IDENTIFIER_QUOTE_CHAR = 29
105
+ CLI_MAX_COLUMN_NAME_LEN = 30
106
+ CLI_MAX_CURSOR_NAME_LEN = 31
107
+ CLI_MAX_SCHEMA_NAME_LEN = 32
108
+ CLI_MAX_CATALOG_NAME_LEN = 34
109
+ CLI_MAX_TABLE_NAME_LEN = 35
110
+ CLI_SCROLL_CONCURRENCY = 43
111
+ CLI_TXN_CAPABLE = 46
112
+ CLI_USER_NAME = 47
113
+ CLI_TXN_ISOLATION_OPTION = 72
114
+ CLI_INTEGRITY = 73
115
+ CLI_GETDATA_EXTENSIONS = 81
116
+ CLI_NULL_COLLATION = 85
117
+ CLI_ALTER_TABLE = 86
118
+ CLI_ORDER_BY_COLUMNS_IN_SELECT = 90
119
+ CLI_SPECIAL_CHARACTERS = 94
120
+ CLI_MAX_COLUMNS_IN_GROUP_BY = 97
121
+ CLI_MAX_COLUMNS_IN_INDEX = 98
122
+ CLI_MAX_COLUMNS_IN_ORDER_BY = 99
123
+ CLI_MAX_COLUMNS_IN_SELECT = 100
124
+ CLI_MAX_COLUMNS_IN_TABLE = 101
125
+ CLI_MAX_INDEX_SIZE = 102
126
+ CLI_MAX_ROW_SIZE = 104
127
+ CLI_MAX_STATEMENT_LEN = 105
128
+ CLI_MAX_TABLES_IN_SELECT = 106
129
+ CLI_MAX_USER_NAME_LEN = 107
130
+ CLI_OJ_CAPABILITIES = 115
131
+ CLI_XOPEN_CLI_YEAR = 10000
132
+ CLI_CURSOR_SENSITIVITY = 10001
133
+ CLI_DESCRIBE_PARAMETER = 10002
134
+ CLI_CATALOG_NAME = 10003
135
+ CLI_COLLATION_SEQ = 10004
136
+ CLI_MAX_IDENTIFIER_LEN = 10005
137
+ VALUE_MAP = {0 => "CLI_MAX_DRIVER_CONNECTIONS", 1 => "CLI_MAX_CONCURRENT_ACTIVITIES", 2 => "CLI_DATA_SOURCE_NAME", 8 => "CLI_FETCH_DIRECTION", 13 => "CLI_SERVER_NAME", 14 => "CLI_SEARCH_PATTERN_ESCAPE", 17 => "CLI_DBMS_NAME", 18 => "CLI_DBMS_VER", 19 => "CLI_ACCESSIBLE_TABLES", 20 => "CLI_ACCESSIBLE_PROCEDURES", 23 => "CLI_CURSOR_COMMIT_BEHAVIOR", 25 => "CLI_DATA_SOURCE_READ_ONLY", 26 => "CLI_DEFAULT_TXN_ISOLATION", 28 => "CLI_IDENTIFIER_CASE", 29 => "CLI_IDENTIFIER_QUOTE_CHAR", 30 => "CLI_MAX_COLUMN_NAME_LEN", 31 => "CLI_MAX_CURSOR_NAME_LEN", 32 => "CLI_MAX_SCHEMA_NAME_LEN", 34 => "CLI_MAX_CATALOG_NAME_LEN", 35 => "CLI_MAX_TABLE_NAME_LEN", 43 => "CLI_SCROLL_CONCURRENCY", 46 => "CLI_TXN_CAPABLE", 47 => "CLI_USER_NAME", 72 => "CLI_TXN_ISOLATION_OPTION", 73 => "CLI_INTEGRITY", 81 => "CLI_GETDATA_EXTENSIONS", 85 => "CLI_NULL_COLLATION", 86 => "CLI_ALTER_TABLE", 90 => "CLI_ORDER_BY_COLUMNS_IN_SELECT", 94 => "CLI_SPECIAL_CHARACTERS", 97 => "CLI_MAX_COLUMNS_IN_GROUP_BY", 98 => "CLI_MAX_COLUMNS_IN_INDEX", 99 => "CLI_MAX_COLUMNS_IN_ORDER_BY", 100 => "CLI_MAX_COLUMNS_IN_SELECT", 101 => "CLI_MAX_COLUMNS_IN_TABLE", 102 => "CLI_MAX_INDEX_SIZE", 104 => "CLI_MAX_ROW_SIZE", 105 => "CLI_MAX_STATEMENT_LEN", 106 => "CLI_MAX_TABLES_IN_SELECT", 107 => "CLI_MAX_USER_NAME_LEN", 115 => "CLI_OJ_CAPABILITIES", 10000 => "CLI_XOPEN_CLI_YEAR", 10001 => "CLI_CURSOR_SENSITIVITY", 10002 => "CLI_DESCRIBE_PARAMETER", 10003 => "CLI_CATALOG_NAME", 10004 => "CLI_COLLATION_SEQ", 10005 => "CLI_MAX_IDENTIFIER_LEN"}
138
+ VALID_VALUES = Set.new([CLI_MAX_DRIVER_CONNECTIONS, CLI_MAX_CONCURRENT_ACTIVITIES, CLI_DATA_SOURCE_NAME, CLI_FETCH_DIRECTION, CLI_SERVER_NAME, CLI_SEARCH_PATTERN_ESCAPE, CLI_DBMS_NAME, CLI_DBMS_VER, CLI_ACCESSIBLE_TABLES, CLI_ACCESSIBLE_PROCEDURES, CLI_CURSOR_COMMIT_BEHAVIOR, CLI_DATA_SOURCE_READ_ONLY, CLI_DEFAULT_TXN_ISOLATION, CLI_IDENTIFIER_CASE, CLI_IDENTIFIER_QUOTE_CHAR, CLI_MAX_COLUMN_NAME_LEN, CLI_MAX_CURSOR_NAME_LEN, CLI_MAX_SCHEMA_NAME_LEN, CLI_MAX_CATALOG_NAME_LEN, CLI_MAX_TABLE_NAME_LEN, CLI_SCROLL_CONCURRENCY, CLI_TXN_CAPABLE, CLI_USER_NAME, CLI_TXN_ISOLATION_OPTION, CLI_INTEGRITY, CLI_GETDATA_EXTENSIONS, CLI_NULL_COLLATION, CLI_ALTER_TABLE, CLI_ORDER_BY_COLUMNS_IN_SELECT, CLI_SPECIAL_CHARACTERS, CLI_MAX_COLUMNS_IN_GROUP_BY, CLI_MAX_COLUMNS_IN_INDEX, CLI_MAX_COLUMNS_IN_ORDER_BY, CLI_MAX_COLUMNS_IN_SELECT, CLI_MAX_COLUMNS_IN_TABLE, CLI_MAX_INDEX_SIZE, CLI_MAX_ROW_SIZE, CLI_MAX_STATEMENT_LEN, CLI_MAX_TABLES_IN_SELECT, CLI_MAX_USER_NAME_LEN, CLI_OJ_CAPABILITIES, CLI_XOPEN_CLI_YEAR, CLI_CURSOR_SENSITIVITY, CLI_DESCRIBE_PARAMETER, CLI_CATALOG_NAME, CLI_COLLATION_SEQ, CLI_MAX_IDENTIFIER_LEN]).freeze
139
+ end
140
+
141
+ module TFetchOrientation
142
+ FETCH_NEXT = 0
143
+ FETCH_PRIOR = 1
144
+ FETCH_RELATIVE = 2
145
+ FETCH_ABSOLUTE = 3
146
+ FETCH_FIRST = 4
147
+ FETCH_LAST = 5
148
+ VALUE_MAP = {0 => "FETCH_NEXT", 1 => "FETCH_PRIOR", 2 => "FETCH_RELATIVE", 3 => "FETCH_ABSOLUTE", 4 => "FETCH_FIRST", 5 => "FETCH_LAST"}
149
+ VALID_VALUES = Set.new([FETCH_NEXT, FETCH_PRIOR, FETCH_RELATIVE, FETCH_ABSOLUTE, FETCH_FIRST, FETCH_LAST]).freeze
150
+ end
151
+
152
+ module TJobExecutionStatus
153
+ IN_PROGRESS = 0
154
+ COMPLETE = 1
155
+ NOT_AVAILABLE = 2
156
+ VALUE_MAP = {0 => "IN_PROGRESS", 1 => "COMPLETE", 2 => "NOT_AVAILABLE"}
157
+ VALID_VALUES = Set.new([IN_PROGRESS, COMPLETE, NOT_AVAILABLE]).freeze
158
+ end
159
+
160
+ class TTypeQualifierValue < ::Thrift::Union; end
161
+
162
+ class TTypeQualifiers; end
163
+
164
+ class TPrimitiveTypeEntry; end
165
+
166
+ class TArrayTypeEntry; end
167
+
168
+ class TMapTypeEntry; end
169
+
170
+ class TStructTypeEntry; end
171
+
172
+ class TUnionTypeEntry; end
173
+
174
+ class TUserDefinedTypeEntry; end
175
+
176
+ class TTypeEntry < ::Thrift::Union; end
177
+
178
+ class TTypeDesc; end
179
+
180
+ class TColumnDesc; end
181
+
182
+ class TTableSchema; end
183
+
184
+ class TBoolValue; end
185
+
186
+ class TByteValue; end
187
+
188
+ class TI16Value; end
189
+
190
+ class TI32Value; end
191
+
192
+ class TI64Value; end
193
+
194
+ class TDoubleValue; end
195
+
196
+ class TStringValue; end
197
+
198
+ class TColumnValue < ::Thrift::Union; end
199
+
200
+ class TRow; end
201
+
202
+ class TBoolColumn; end
203
+
204
+ class TByteColumn; end
205
+
206
+ class TI16Column; end
207
+
208
+ class TI32Column; end
209
+
210
+ class TI64Column; end
211
+
212
+ class TDoubleColumn; end
213
+
214
+ class TStringColumn; end
215
+
216
+ class TBinaryColumn; end
217
+
218
+ class TColumn < ::Thrift::Union; end
219
+
220
+ class TRowSet; end
221
+
222
+ class TStatus; end
223
+
224
+ class THandleIdentifier; end
225
+
226
+ class TSessionHandle; end
227
+
228
+ class TOperationHandle; end
229
+
230
+ class TOpenSessionReq; end
231
+
232
+ class TOpenSessionResp; end
233
+
234
+ class TCloseSessionReq; end
235
+
236
+ class TCloseSessionResp; end
237
+
238
+ class TGetInfoValue < ::Thrift::Union; end
239
+
240
+ class TGetInfoReq; end
241
+
242
+ class TGetInfoResp; end
243
+
244
+ class TExecuteStatementReq; end
245
+
246
+ class TExecuteStatementResp; end
247
+
248
+ class TGetTypeInfoReq; end
249
+
250
+ class TGetTypeInfoResp; end
251
+
252
+ class TGetCatalogsReq; end
253
+
254
+ class TGetCatalogsResp; end
255
+
256
+ class TGetSchemasReq; end
257
+
258
+ class TGetSchemasResp; end
259
+
260
+ class TGetTablesReq; end
261
+
262
+ class TGetTablesResp; end
263
+
264
+ class TGetTableTypesReq; end
265
+
266
+ class TGetTableTypesResp; end
267
+
268
+ class TGetColumnsReq; end
269
+
270
+ class TGetColumnsResp; end
271
+
272
+ class TGetFunctionsReq; end
273
+
274
+ class TGetFunctionsResp; end
275
+
276
+ class TGetPrimaryKeysReq; end
277
+
278
+ class TGetPrimaryKeysResp; end
279
+
280
+ class TGetCrossReferenceReq; end
281
+
282
+ class TGetCrossReferenceResp; end
283
+
284
+ class TGetOperationStatusReq; end
285
+
286
+ class TGetOperationStatusResp; end
287
+
288
+ class TCancelOperationReq; end
289
+
290
+ class TCancelOperationResp; end
291
+
292
+ class TCloseOperationReq; end
293
+
294
+ class TCloseOperationResp; end
295
+
296
+ class TGetResultSetMetadataReq; end
297
+
298
+ class TGetResultSetMetadataResp; end
299
+
300
+ class TFetchResultsReq; end
301
+
302
+ class TFetchResultsResp; end
303
+
304
+ class TGetDelegationTokenReq; end
305
+
306
+ class TGetDelegationTokenResp; end
307
+
308
+ class TCancelDelegationTokenReq; end
309
+
310
+ class TCancelDelegationTokenResp; end
311
+
312
+ class TRenewDelegationTokenReq; end
313
+
314
+ class TRenewDelegationTokenResp; end
315
+
316
+ class TProgressUpdateResp; end
317
+
318
+ class TTypeQualifierValue < ::Thrift::Union
319
+ include ::Thrift::Struct_Union
320
+ class << self
321
+ def i32Value(val)
322
+ TTypeQualifierValue.new(:i32Value, val)
323
+ end
324
+
325
+ def stringValue(val)
326
+ TTypeQualifierValue.new(:stringValue, val)
327
+ end
328
+ end
329
+
330
+ I32VALUE = 1
331
+ STRINGVALUE = 2
332
+
333
+ FIELDS = {
334
+ I32VALUE => {:type => ::Thrift::Types::I32, :name => 'i32Value', :optional => true},
335
+ STRINGVALUE => {:type => ::Thrift::Types::STRING, :name => 'stringValue', :optional => true}
336
+ }
337
+
338
+ def struct_fields; FIELDS; end
339
+
340
+ def validate
341
+ raise(StandardError, 'Union fields are not set.') if get_set_field.nil? || get_value.nil?
342
+ end
343
+
344
+ ::Thrift::Union.generate_accessors self
345
+ end
346
+
347
+ class TTypeQualifiers
348
+ include ::Thrift::Struct, ::Thrift::Struct_Union
349
+ QUALIFIERS = 1
350
+
351
+ FIELDS = {
352
+ QUALIFIERS => {:type => ::Thrift::Types::MAP, :name => 'qualifiers', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Hexspace::TTypeQualifierValue}}
353
+ }
354
+
355
+ def struct_fields; FIELDS; end
356
+
357
+ def validate
358
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field qualifiers is unset!') unless @qualifiers
359
+ end
360
+
361
+ ::Thrift::Struct.generate_accessors self
362
+ end
363
+
364
+ class TPrimitiveTypeEntry
365
+ include ::Thrift::Struct, ::Thrift::Struct_Union
366
+ TYPE = 1
367
+ TYPEQUALIFIERS = 2
368
+
369
+ FIELDS = {
370
+ TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :enum_class => ::Hexspace::TTypeId},
371
+ TYPEQUALIFIERS => {:type => ::Thrift::Types::STRUCT, :name => 'typeQualifiers', :class => ::Hexspace::TTypeQualifiers, :optional => true}
372
+ }
373
+
374
+ def struct_fields; FIELDS; end
375
+
376
+ def validate
377
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field type is unset!') unless @type
378
+ unless @type.nil? || ::Hexspace::TTypeId::VALID_VALUES.include?(@type)
379
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!')
380
+ end
381
+ end
382
+
383
+ ::Thrift::Struct.generate_accessors self
384
+ end
385
+
386
+ class TArrayTypeEntry
387
+ include ::Thrift::Struct, ::Thrift::Struct_Union
388
+ OBJECTTYPEPTR = 1
389
+
390
+ FIELDS = {
391
+ OBJECTTYPEPTR => {:type => ::Thrift::Types::I32, :name => 'objectTypePtr'}
392
+ }
393
+
394
+ def struct_fields; FIELDS; end
395
+
396
+ def validate
397
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field objectTypePtr is unset!') unless @objectTypePtr
398
+ end
399
+
400
+ ::Thrift::Struct.generate_accessors self
401
+ end
402
+
403
+ class TMapTypeEntry
404
+ include ::Thrift::Struct, ::Thrift::Struct_Union
405
+ KEYTYPEPTR = 1
406
+ VALUETYPEPTR = 2
407
+
408
+ FIELDS = {
409
+ KEYTYPEPTR => {:type => ::Thrift::Types::I32, :name => 'keyTypePtr'},
410
+ VALUETYPEPTR => {:type => ::Thrift::Types::I32, :name => 'valueTypePtr'}
411
+ }
412
+
413
+ def struct_fields; FIELDS; end
414
+
415
+ def validate
416
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keyTypePtr is unset!') unless @keyTypePtr
417
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field valueTypePtr is unset!') unless @valueTypePtr
418
+ end
419
+
420
+ ::Thrift::Struct.generate_accessors self
421
+ end
422
+
423
+ class TStructTypeEntry
424
+ include ::Thrift::Struct, ::Thrift::Struct_Union
425
+ NAMETOTYPEPTR = 1
426
+
427
+ FIELDS = {
428
+ NAMETOTYPEPTR => {:type => ::Thrift::Types::MAP, :name => 'nameToTypePtr', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::I32}}
429
+ }
430
+
431
+ def struct_fields; FIELDS; end
432
+
433
+ def validate
434
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field nameToTypePtr is unset!') unless @nameToTypePtr
435
+ end
436
+
437
+ ::Thrift::Struct.generate_accessors self
438
+ end
439
+
440
+ class TUnionTypeEntry
441
+ include ::Thrift::Struct, ::Thrift::Struct_Union
442
+ NAMETOTYPEPTR = 1
443
+
444
+ FIELDS = {
445
+ NAMETOTYPEPTR => {:type => ::Thrift::Types::MAP, :name => 'nameToTypePtr', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::I32}}
446
+ }
447
+
448
+ def struct_fields; FIELDS; end
449
+
450
+ def validate
451
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field nameToTypePtr is unset!') unless @nameToTypePtr
452
+ end
453
+
454
+ ::Thrift::Struct.generate_accessors self
455
+ end
456
+
457
+ class TUserDefinedTypeEntry
458
+ include ::Thrift::Struct, ::Thrift::Struct_Union
459
+ TYPECLASSNAME = 1
460
+
461
+ FIELDS = {
462
+ TYPECLASSNAME => {:type => ::Thrift::Types::STRING, :name => 'typeClassName'}
463
+ }
464
+
465
+ def struct_fields; FIELDS; end
466
+
467
+ def validate
468
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field typeClassName is unset!') unless @typeClassName
469
+ end
470
+
471
+ ::Thrift::Struct.generate_accessors self
472
+ end
473
+
474
+ class TTypeEntry < ::Thrift::Union
475
+ include ::Thrift::Struct_Union
476
+ class << self
477
+ def primitiveEntry(val)
478
+ TTypeEntry.new(:primitiveEntry, val)
479
+ end
480
+
481
+ def arrayEntry(val)
482
+ TTypeEntry.new(:arrayEntry, val)
483
+ end
484
+
485
+ def mapEntry(val)
486
+ TTypeEntry.new(:mapEntry, val)
487
+ end
488
+
489
+ def structEntry(val)
490
+ TTypeEntry.new(:structEntry, val)
491
+ end
492
+
493
+ def unionEntry(val)
494
+ TTypeEntry.new(:unionEntry, val)
495
+ end
496
+
497
+ def userDefinedTypeEntry(val)
498
+ TTypeEntry.new(:userDefinedTypeEntry, val)
499
+ end
500
+ end
501
+
502
+ PRIMITIVEENTRY = 1
503
+ ARRAYENTRY = 2
504
+ MAPENTRY = 3
505
+ STRUCTENTRY = 4
506
+ UNIONENTRY = 5
507
+ USERDEFINEDTYPEENTRY = 6
508
+
509
+ FIELDS = {
510
+ PRIMITIVEENTRY => {:type => ::Thrift::Types::STRUCT, :name => 'primitiveEntry', :class => ::Hexspace::TPrimitiveTypeEntry, :optional => true},
511
+ ARRAYENTRY => {:type => ::Thrift::Types::STRUCT, :name => 'arrayEntry', :class => ::Hexspace::TArrayTypeEntry, :optional => true},
512
+ MAPENTRY => {:type => ::Thrift::Types::STRUCT, :name => 'mapEntry', :class => ::Hexspace::TMapTypeEntry, :optional => true},
513
+ STRUCTENTRY => {:type => ::Thrift::Types::STRUCT, :name => 'structEntry', :class => ::Hexspace::TStructTypeEntry, :optional => true},
514
+ UNIONENTRY => {:type => ::Thrift::Types::STRUCT, :name => 'unionEntry', :class => ::Hexspace::TUnionTypeEntry, :optional => true},
515
+ USERDEFINEDTYPEENTRY => {:type => ::Thrift::Types::STRUCT, :name => 'userDefinedTypeEntry', :class => ::Hexspace::TUserDefinedTypeEntry, :optional => true}
516
+ }
517
+
518
+ def struct_fields; FIELDS; end
519
+
520
+ def validate
521
+ raise(StandardError, 'Union fields are not set.') if get_set_field.nil? || get_value.nil?
522
+ end
523
+
524
+ ::Thrift::Union.generate_accessors self
525
+ end
526
+
527
+ class TTypeDesc
528
+ include ::Thrift::Struct, ::Thrift::Struct_Union
529
+ TYPES = 1
530
+
531
+ FIELDS = {
532
+ TYPES => {:type => ::Thrift::Types::LIST, :name => 'types', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Hexspace::TTypeEntry}}
533
+ }
534
+
535
+ def struct_fields; FIELDS; end
536
+
537
+ def validate
538
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field types is unset!') unless @types
539
+ end
540
+
541
+ ::Thrift::Struct.generate_accessors self
542
+ end
543
+
544
+ class TColumnDesc
545
+ include ::Thrift::Struct, ::Thrift::Struct_Union
546
+ COLUMNNAME = 1
547
+ TYPEDESC = 2
548
+ POSITION = 3
549
+ COMMENT = 4
550
+
551
+ FIELDS = {
552
+ COLUMNNAME => {:type => ::Thrift::Types::STRING, :name => 'columnName'},
553
+ TYPEDESC => {:type => ::Thrift::Types::STRUCT, :name => 'typeDesc', :class => ::Hexspace::TTypeDesc},
554
+ POSITION => {:type => ::Thrift::Types::I32, :name => 'position'},
555
+ COMMENT => {:type => ::Thrift::Types::STRING, :name => 'comment', :optional => true}
556
+ }
557
+
558
+ def struct_fields; FIELDS; end
559
+
560
+ def validate
561
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field columnName is unset!') unless @columnName
562
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field typeDesc is unset!') unless @typeDesc
563
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field position is unset!') unless @position
564
+ end
565
+
566
+ ::Thrift::Struct.generate_accessors self
567
+ end
568
+
569
+ class TTableSchema
570
+ include ::Thrift::Struct, ::Thrift::Struct_Union
571
+ COLUMNS = 1
572
+
573
+ FIELDS = {
574
+ COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Hexspace::TColumnDesc}}
575
+ }
576
+
577
+ def struct_fields; FIELDS; end
578
+
579
+ def validate
580
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field columns is unset!') unless @columns
581
+ end
582
+
583
+ ::Thrift::Struct.generate_accessors self
584
+ end
585
+
586
+ class TBoolValue
587
+ include ::Thrift::Struct, ::Thrift::Struct_Union
588
+ VALUE = 1
589
+
590
+ FIELDS = {
591
+ VALUE => {:type => ::Thrift::Types::BOOL, :name => 'value', :optional => true}
592
+ }
593
+
594
+ def struct_fields; FIELDS; end
595
+
596
+ def validate
597
+ end
598
+
599
+ ::Thrift::Struct.generate_accessors self
600
+ end
601
+
602
+ class TByteValue
603
+ include ::Thrift::Struct, ::Thrift::Struct_Union
604
+ VALUE = 1
605
+
606
+ FIELDS = {
607
+ VALUE => {:type => ::Thrift::Types::BYTE, :name => 'value', :optional => true}
608
+ }
609
+
610
+ def struct_fields; FIELDS; end
611
+
612
+ def validate
613
+ end
614
+
615
+ ::Thrift::Struct.generate_accessors self
616
+ end
617
+
618
+ class TI16Value
619
+ include ::Thrift::Struct, ::Thrift::Struct_Union
620
+ VALUE = 1
621
+
622
+ FIELDS = {
623
+ VALUE => {:type => ::Thrift::Types::I16, :name => 'value', :optional => true}
624
+ }
625
+
626
+ def struct_fields; FIELDS; end
627
+
628
+ def validate
629
+ end
630
+
631
+ ::Thrift::Struct.generate_accessors self
632
+ end
633
+
634
+ class TI32Value
635
+ include ::Thrift::Struct, ::Thrift::Struct_Union
636
+ VALUE = 1
637
+
638
+ FIELDS = {
639
+ VALUE => {:type => ::Thrift::Types::I32, :name => 'value', :optional => true}
640
+ }
641
+
642
+ def struct_fields; FIELDS; end
643
+
644
+ def validate
645
+ end
646
+
647
+ ::Thrift::Struct.generate_accessors self
648
+ end
649
+
650
+ class TI64Value
651
+ include ::Thrift::Struct, ::Thrift::Struct_Union
652
+ VALUE = 1
653
+
654
+ FIELDS = {
655
+ VALUE => {:type => ::Thrift::Types::I64, :name => 'value', :optional => true}
656
+ }
657
+
658
+ def struct_fields; FIELDS; end
659
+
660
+ def validate
661
+ end
662
+
663
+ ::Thrift::Struct.generate_accessors self
664
+ end
665
+
666
+ class TDoubleValue
667
+ include ::Thrift::Struct, ::Thrift::Struct_Union
668
+ VALUE = 1
669
+
670
+ FIELDS = {
671
+ VALUE => {:type => ::Thrift::Types::DOUBLE, :name => 'value', :optional => true}
672
+ }
673
+
674
+ def struct_fields; FIELDS; end
675
+
676
+ def validate
677
+ end
678
+
679
+ ::Thrift::Struct.generate_accessors self
680
+ end
681
+
682
+ class TStringValue
683
+ include ::Thrift::Struct, ::Thrift::Struct_Union
684
+ VALUE = 1
685
+
686
+ FIELDS = {
687
+ VALUE => {:type => ::Thrift::Types::STRING, :name => 'value', :optional => true}
688
+ }
689
+
690
+ def struct_fields; FIELDS; end
691
+
692
+ def validate
693
+ end
694
+
695
+ ::Thrift::Struct.generate_accessors self
696
+ end
697
+
698
+ class TColumnValue < ::Thrift::Union
699
+ include ::Thrift::Struct_Union
700
+ class << self
701
+ def boolVal(val)
702
+ TColumnValue.new(:boolVal, val)
703
+ end
704
+
705
+ def byteVal(val)
706
+ TColumnValue.new(:byteVal, val)
707
+ end
708
+
709
+ def i16Val(val)
710
+ TColumnValue.new(:i16Val, val)
711
+ end
712
+
713
+ def i32Val(val)
714
+ TColumnValue.new(:i32Val, val)
715
+ end
716
+
717
+ def i64Val(val)
718
+ TColumnValue.new(:i64Val, val)
719
+ end
720
+
721
+ def doubleVal(val)
722
+ TColumnValue.new(:doubleVal, val)
723
+ end
724
+
725
+ def stringVal(val)
726
+ TColumnValue.new(:stringVal, val)
727
+ end
728
+ end
729
+
730
+ BOOLVAL = 1
731
+ BYTEVAL = 2
732
+ I16VAL = 3
733
+ I32VAL = 4
734
+ I64VAL = 5
735
+ DOUBLEVAL = 6
736
+ STRINGVAL = 7
737
+
738
+ FIELDS = {
739
+ BOOLVAL => {:type => ::Thrift::Types::STRUCT, :name => 'boolVal', :class => ::Hexspace::TBoolValue, :optional => true},
740
+ BYTEVAL => {:type => ::Thrift::Types::STRUCT, :name => 'byteVal', :class => ::Hexspace::TByteValue, :optional => true},
741
+ I16VAL => {:type => ::Thrift::Types::STRUCT, :name => 'i16Val', :class => ::Hexspace::TI16Value, :optional => true},
742
+ I32VAL => {:type => ::Thrift::Types::STRUCT, :name => 'i32Val', :class => ::Hexspace::TI32Value, :optional => true},
743
+ I64VAL => {:type => ::Thrift::Types::STRUCT, :name => 'i64Val', :class => ::Hexspace::TI64Value, :optional => true},
744
+ DOUBLEVAL => {:type => ::Thrift::Types::STRUCT, :name => 'doubleVal', :class => ::Hexspace::TDoubleValue, :optional => true},
745
+ STRINGVAL => {:type => ::Thrift::Types::STRUCT, :name => 'stringVal', :class => ::Hexspace::TStringValue, :optional => true}
746
+ }
747
+
748
+ def struct_fields; FIELDS; end
749
+
750
+ def validate
751
+ raise(StandardError, 'Union fields are not set.') if get_set_field.nil? || get_value.nil?
752
+ end
753
+
754
+ ::Thrift::Union.generate_accessors self
755
+ end
756
+
757
+ class TRow
758
+ include ::Thrift::Struct, ::Thrift::Struct_Union
759
+ COLVALS = 1
760
+
761
+ FIELDS = {
762
+ COLVALS => {:type => ::Thrift::Types::LIST, :name => 'colVals', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Hexspace::TColumnValue}}
763
+ }
764
+
765
+ def struct_fields; FIELDS; end
766
+
767
+ def validate
768
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field colVals is unset!') unless @colVals
769
+ end
770
+
771
+ ::Thrift::Struct.generate_accessors self
772
+ end
773
+
774
+ class TBoolColumn
775
+ include ::Thrift::Struct, ::Thrift::Struct_Union
776
+ VALUES = 1
777
+ NULLS = 2
778
+
779
+ FIELDS = {
780
+ VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::BOOL}},
781
+ NULLS => {:type => ::Thrift::Types::STRING, :name => 'nulls', :binary => true}
782
+ }
783
+
784
+ def struct_fields; FIELDS; end
785
+
786
+ def validate
787
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field values is unset!') unless @values
788
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field nulls is unset!') unless @nulls
789
+ end
790
+
791
+ ::Thrift::Struct.generate_accessors self
792
+ end
793
+
794
+ class TByteColumn
795
+ include ::Thrift::Struct, ::Thrift::Struct_Union
796
+ VALUES = 1
797
+ NULLS = 2
798
+
799
+ FIELDS = {
800
+ VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::BYTE}},
801
+ NULLS => {:type => ::Thrift::Types::STRING, :name => 'nulls', :binary => true}
802
+ }
803
+
804
+ def struct_fields; FIELDS; end
805
+
806
+ def validate
807
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field values is unset!') unless @values
808
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field nulls is unset!') unless @nulls
809
+ end
810
+
811
+ ::Thrift::Struct.generate_accessors self
812
+ end
813
+
814
+ class TI16Column
815
+ include ::Thrift::Struct, ::Thrift::Struct_Union
816
+ VALUES = 1
817
+ NULLS = 2
818
+
819
+ FIELDS = {
820
+ VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::I16}},
821
+ NULLS => {:type => ::Thrift::Types::STRING, :name => 'nulls', :binary => true}
822
+ }
823
+
824
+ def struct_fields; FIELDS; end
825
+
826
+ def validate
827
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field values is unset!') unless @values
828
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field nulls is unset!') unless @nulls
829
+ end
830
+
831
+ ::Thrift::Struct.generate_accessors self
832
+ end
833
+
834
+ class TI32Column
835
+ include ::Thrift::Struct, ::Thrift::Struct_Union
836
+ VALUES = 1
837
+ NULLS = 2
838
+
839
+ FIELDS = {
840
+ VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::I32}},
841
+ NULLS => {:type => ::Thrift::Types::STRING, :name => 'nulls', :binary => true}
842
+ }
843
+
844
+ def struct_fields; FIELDS; end
845
+
846
+ def validate
847
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field values is unset!') unless @values
848
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field nulls is unset!') unless @nulls
849
+ end
850
+
851
+ ::Thrift::Struct.generate_accessors self
852
+ end
853
+
854
+ class TI64Column
855
+ include ::Thrift::Struct, ::Thrift::Struct_Union
856
+ VALUES = 1
857
+ NULLS = 2
858
+
859
+ FIELDS = {
860
+ VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::I64}},
861
+ NULLS => {:type => ::Thrift::Types::STRING, :name => 'nulls', :binary => true}
862
+ }
863
+
864
+ def struct_fields; FIELDS; end
865
+
866
+ def validate
867
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field values is unset!') unless @values
868
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field nulls is unset!') unless @nulls
869
+ end
870
+
871
+ ::Thrift::Struct.generate_accessors self
872
+ end
873
+
874
+ class TDoubleColumn
875
+ include ::Thrift::Struct, ::Thrift::Struct_Union
876
+ VALUES = 1
877
+ NULLS = 2
878
+
879
+ FIELDS = {
880
+ VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::DOUBLE}},
881
+ NULLS => {:type => ::Thrift::Types::STRING, :name => 'nulls', :binary => true}
882
+ }
883
+
884
+ def struct_fields; FIELDS; end
885
+
886
+ def validate
887
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field values is unset!') unless @values
888
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field nulls is unset!') unless @nulls
889
+ end
890
+
891
+ ::Thrift::Struct.generate_accessors self
892
+ end
893
+
894
+ class TStringColumn
895
+ include ::Thrift::Struct, ::Thrift::Struct_Union
896
+ VALUES = 1
897
+ NULLS = 2
898
+
899
+ FIELDS = {
900
+ VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::STRING}},
901
+ NULLS => {:type => ::Thrift::Types::STRING, :name => 'nulls', :binary => true}
902
+ }
903
+
904
+ def struct_fields; FIELDS; end
905
+
906
+ def validate
907
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field values is unset!') unless @values
908
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field nulls is unset!') unless @nulls
909
+ end
910
+
911
+ ::Thrift::Struct.generate_accessors self
912
+ end
913
+
914
+ class TBinaryColumn
915
+ include ::Thrift::Struct, ::Thrift::Struct_Union
916
+ VALUES = 1
917
+ NULLS = 2
918
+
919
+ FIELDS = {
920
+ VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
921
+ NULLS => {:type => ::Thrift::Types::STRING, :name => 'nulls', :binary => true}
922
+ }
923
+
924
+ def struct_fields; FIELDS; end
925
+
926
+ def validate
927
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field values is unset!') unless @values
928
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field nulls is unset!') unless @nulls
929
+ end
930
+
931
+ ::Thrift::Struct.generate_accessors self
932
+ end
933
+
934
+ class TColumn < ::Thrift::Union
935
+ include ::Thrift::Struct_Union
936
+ class << self
937
+ def boolVal(val)
938
+ TColumn.new(:boolVal, val)
939
+ end
940
+
941
+ def byteVal(val)
942
+ TColumn.new(:byteVal, val)
943
+ end
944
+
945
+ def i16Val(val)
946
+ TColumn.new(:i16Val, val)
947
+ end
948
+
949
+ def i32Val(val)
950
+ TColumn.new(:i32Val, val)
951
+ end
952
+
953
+ def i64Val(val)
954
+ TColumn.new(:i64Val, val)
955
+ end
956
+
957
+ def doubleVal(val)
958
+ TColumn.new(:doubleVal, val)
959
+ end
960
+
961
+ def stringVal(val)
962
+ TColumn.new(:stringVal, val)
963
+ end
964
+
965
+ def binaryVal(val)
966
+ TColumn.new(:binaryVal, val)
967
+ end
968
+ end
969
+
970
+ BOOLVAL = 1
971
+ BYTEVAL = 2
972
+ I16VAL = 3
973
+ I32VAL = 4
974
+ I64VAL = 5
975
+ DOUBLEVAL = 6
976
+ STRINGVAL = 7
977
+ BINARYVAL = 8
978
+
979
+ FIELDS = {
980
+ BOOLVAL => {:type => ::Thrift::Types::STRUCT, :name => 'boolVal', :class => ::Hexspace::TBoolColumn, :optional => true},
981
+ BYTEVAL => {:type => ::Thrift::Types::STRUCT, :name => 'byteVal', :class => ::Hexspace::TByteColumn, :optional => true},
982
+ I16VAL => {:type => ::Thrift::Types::STRUCT, :name => 'i16Val', :class => ::Hexspace::TI16Column, :optional => true},
983
+ I32VAL => {:type => ::Thrift::Types::STRUCT, :name => 'i32Val', :class => ::Hexspace::TI32Column, :optional => true},
984
+ I64VAL => {:type => ::Thrift::Types::STRUCT, :name => 'i64Val', :class => ::Hexspace::TI64Column, :optional => true},
985
+ DOUBLEVAL => {:type => ::Thrift::Types::STRUCT, :name => 'doubleVal', :class => ::Hexspace::TDoubleColumn, :optional => true},
986
+ STRINGVAL => {:type => ::Thrift::Types::STRUCT, :name => 'stringVal', :class => ::Hexspace::TStringColumn, :optional => true},
987
+ BINARYVAL => {:type => ::Thrift::Types::STRUCT, :name => 'binaryVal', :class => ::Hexspace::TBinaryColumn, :optional => true}
988
+ }
989
+
990
+ def struct_fields; FIELDS; end
991
+
992
+ def validate
993
+ raise(StandardError, 'Union fields are not set.') if get_set_field.nil? || get_value.nil?
994
+ end
995
+
996
+ ::Thrift::Union.generate_accessors self
997
+ end
998
+
999
+ class TRowSet
1000
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1001
+ STARTROWOFFSET = 1
1002
+ ROWS = 2
1003
+ COLUMNS = 3
1004
+ BINARYCOLUMNS = 4
1005
+ COLUMNCOUNT = 5
1006
+
1007
+ FIELDS = {
1008
+ STARTROWOFFSET => {:type => ::Thrift::Types::I64, :name => 'startRowOffset'},
1009
+ ROWS => {:type => ::Thrift::Types::LIST, :name => 'rows', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Hexspace::TRow}},
1010
+ COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Hexspace::TColumn}, :optional => true},
1011
+ BINARYCOLUMNS => {:type => ::Thrift::Types::STRING, :name => 'binaryColumns', :binary => true, :optional => true},
1012
+ COLUMNCOUNT => {:type => ::Thrift::Types::I32, :name => 'columnCount', :optional => true}
1013
+ }
1014
+
1015
+ def struct_fields; FIELDS; end
1016
+
1017
+ def validate
1018
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field startRowOffset is unset!') unless @startRowOffset
1019
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field rows is unset!') unless @rows
1020
+ end
1021
+
1022
+ ::Thrift::Struct.generate_accessors self
1023
+ end
1024
+
1025
+ class TStatus
1026
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1027
+ STATUSCODE = 1
1028
+ INFOMESSAGES = 2
1029
+ SQLSTATE = 3
1030
+ ERRORCODE = 4
1031
+ ERRORMESSAGE = 5
1032
+
1033
+ FIELDS = {
1034
+ STATUSCODE => {:type => ::Thrift::Types::I32, :name => 'statusCode', :enum_class => ::Hexspace::TStatusCode},
1035
+ INFOMESSAGES => {:type => ::Thrift::Types::LIST, :name => 'infoMessages', :element => {:type => ::Thrift::Types::STRING}, :optional => true},
1036
+ SQLSTATE => {:type => ::Thrift::Types::STRING, :name => 'sqlState', :optional => true},
1037
+ ERRORCODE => {:type => ::Thrift::Types::I32, :name => 'errorCode', :optional => true},
1038
+ ERRORMESSAGE => {:type => ::Thrift::Types::STRING, :name => 'errorMessage', :optional => true}
1039
+ }
1040
+
1041
+ def struct_fields; FIELDS; end
1042
+
1043
+ def validate
1044
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field statusCode is unset!') unless @statusCode
1045
+ unless @statusCode.nil? || ::Hexspace::TStatusCode::VALID_VALUES.include?(@statusCode)
1046
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field statusCode!')
1047
+ end
1048
+ end
1049
+
1050
+ ::Thrift::Struct.generate_accessors self
1051
+ end
1052
+
1053
+ class THandleIdentifier
1054
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1055
+ GUID = 1
1056
+ SECRET = 2
1057
+
1058
+ FIELDS = {
1059
+ GUID => {:type => ::Thrift::Types::STRING, :name => 'guid', :binary => true},
1060
+ SECRET => {:type => ::Thrift::Types::STRING, :name => 'secret', :binary => true}
1061
+ }
1062
+
1063
+ def struct_fields; FIELDS; end
1064
+
1065
+ def validate
1066
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field guid is unset!') unless @guid
1067
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field secret is unset!') unless @secret
1068
+ end
1069
+
1070
+ ::Thrift::Struct.generate_accessors self
1071
+ end
1072
+
1073
+ class TSessionHandle
1074
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1075
+ SESSIONID = 1
1076
+
1077
+ FIELDS = {
1078
+ SESSIONID => {:type => ::Thrift::Types::STRUCT, :name => 'sessionId', :class => ::Hexspace::THandleIdentifier}
1079
+ }
1080
+
1081
+ def struct_fields; FIELDS; end
1082
+
1083
+ def validate
1084
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionId is unset!') unless @sessionId
1085
+ end
1086
+
1087
+ ::Thrift::Struct.generate_accessors self
1088
+ end
1089
+
1090
+ class TOperationHandle
1091
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1092
+ OPERATIONID = 1
1093
+ OPERATIONTYPE = 2
1094
+ HASRESULTSET = 3
1095
+ MODIFIEDROWCOUNT = 4
1096
+
1097
+ FIELDS = {
1098
+ OPERATIONID => {:type => ::Thrift::Types::STRUCT, :name => 'operationId', :class => ::Hexspace::THandleIdentifier},
1099
+ OPERATIONTYPE => {:type => ::Thrift::Types::I32, :name => 'operationType', :enum_class => ::Hexspace::TOperationType},
1100
+ HASRESULTSET => {:type => ::Thrift::Types::BOOL, :name => 'hasResultSet'},
1101
+ MODIFIEDROWCOUNT => {:type => ::Thrift::Types::DOUBLE, :name => 'modifiedRowCount', :optional => true}
1102
+ }
1103
+
1104
+ def struct_fields; FIELDS; end
1105
+
1106
+ def validate
1107
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field operationId is unset!') unless @operationId
1108
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field operationType is unset!') unless @operationType
1109
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field hasResultSet is unset!') if @hasResultSet.nil?
1110
+ unless @operationType.nil? || ::Hexspace::TOperationType::VALID_VALUES.include?(@operationType)
1111
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field operationType!')
1112
+ end
1113
+ end
1114
+
1115
+ ::Thrift::Struct.generate_accessors self
1116
+ end
1117
+
1118
+ class TOpenSessionReq
1119
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1120
+ CLIENT_PROTOCOL = 1
1121
+ USERNAME = 2
1122
+ PASSWORD = 3
1123
+ CONFIGURATION = 4
1124
+
1125
+ FIELDS = {
1126
+ CLIENT_PROTOCOL => {:type => ::Thrift::Types::I32, :name => 'client_protocol', :default => 9, :enum_class => ::Hexspace::TProtocolVersion},
1127
+ USERNAME => {:type => ::Thrift::Types::STRING, :name => 'username', :optional => true},
1128
+ PASSWORD => {:type => ::Thrift::Types::STRING, :name => 'password', :optional => true},
1129
+ CONFIGURATION => {:type => ::Thrift::Types::MAP, :name => 'configuration', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}, :optional => true}
1130
+ }
1131
+
1132
+ def struct_fields; FIELDS; end
1133
+
1134
+ def validate
1135
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field client_protocol is unset!') unless @client_protocol
1136
+ unless @client_protocol.nil? || ::Hexspace::TProtocolVersion::VALID_VALUES.include?(@client_protocol)
1137
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field client_protocol!')
1138
+ end
1139
+ end
1140
+
1141
+ ::Thrift::Struct.generate_accessors self
1142
+ end
1143
+
1144
+ class TOpenSessionResp
1145
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1146
+ STATUS = 1
1147
+ SERVERPROTOCOLVERSION = 2
1148
+ SESSIONHANDLE = 3
1149
+ CONFIGURATION = 4
1150
+
1151
+ FIELDS = {
1152
+ STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hexspace::TStatus},
1153
+ SERVERPROTOCOLVERSION => {:type => ::Thrift::Types::I32, :name => 'serverProtocolVersion', :default => 9, :enum_class => ::Hexspace::TProtocolVersion},
1154
+ SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hexspace::TSessionHandle, :optional => true},
1155
+ CONFIGURATION => {:type => ::Thrift::Types::MAP, :name => 'configuration', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}, :optional => true}
1156
+ }
1157
+
1158
+ def struct_fields; FIELDS; end
1159
+
1160
+ def validate
1161
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1162
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field serverProtocolVersion is unset!') unless @serverProtocolVersion
1163
+ unless @serverProtocolVersion.nil? || ::Hexspace::TProtocolVersion::VALID_VALUES.include?(@serverProtocolVersion)
1164
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field serverProtocolVersion!')
1165
+ end
1166
+ end
1167
+
1168
+ ::Thrift::Struct.generate_accessors self
1169
+ end
1170
+
1171
+ class TCloseSessionReq
1172
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1173
+ SESSIONHANDLE = 1
1174
+
1175
+ FIELDS = {
1176
+ SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hexspace::TSessionHandle}
1177
+ }
1178
+
1179
+ def struct_fields; FIELDS; end
1180
+
1181
+ def validate
1182
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle
1183
+ end
1184
+
1185
+ ::Thrift::Struct.generate_accessors self
1186
+ end
1187
+
1188
+ class TCloseSessionResp
1189
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1190
+ STATUS = 1
1191
+
1192
+ FIELDS = {
1193
+ STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hexspace::TStatus}
1194
+ }
1195
+
1196
+ def struct_fields; FIELDS; end
1197
+
1198
+ def validate
1199
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1200
+ end
1201
+
1202
+ ::Thrift::Struct.generate_accessors self
1203
+ end
1204
+
1205
+ class TGetInfoValue < ::Thrift::Union
1206
+ include ::Thrift::Struct_Union
1207
+ class << self
1208
+ def stringValue(val)
1209
+ TGetInfoValue.new(:stringValue, val)
1210
+ end
1211
+
1212
+ def smallIntValue(val)
1213
+ TGetInfoValue.new(:smallIntValue, val)
1214
+ end
1215
+
1216
+ def integerBitmask(val)
1217
+ TGetInfoValue.new(:integerBitmask, val)
1218
+ end
1219
+
1220
+ def integerFlag(val)
1221
+ TGetInfoValue.new(:integerFlag, val)
1222
+ end
1223
+
1224
+ def binaryValue(val)
1225
+ TGetInfoValue.new(:binaryValue, val)
1226
+ end
1227
+
1228
+ def lenValue(val)
1229
+ TGetInfoValue.new(:lenValue, val)
1230
+ end
1231
+ end
1232
+
1233
+ STRINGVALUE = 1
1234
+ SMALLINTVALUE = 2
1235
+ INTEGERBITMASK = 3
1236
+ INTEGERFLAG = 4
1237
+ BINARYVALUE = 5
1238
+ LENVALUE = 6
1239
+
1240
+ FIELDS = {
1241
+ STRINGVALUE => {:type => ::Thrift::Types::STRING, :name => 'stringValue', :optional => true},
1242
+ SMALLINTVALUE => {:type => ::Thrift::Types::I16, :name => 'smallIntValue', :optional => true},
1243
+ INTEGERBITMASK => {:type => ::Thrift::Types::I32, :name => 'integerBitmask', :optional => true},
1244
+ INTEGERFLAG => {:type => ::Thrift::Types::I32, :name => 'integerFlag', :optional => true},
1245
+ BINARYVALUE => {:type => ::Thrift::Types::I32, :name => 'binaryValue', :optional => true},
1246
+ LENVALUE => {:type => ::Thrift::Types::I64, :name => 'lenValue', :optional => true}
1247
+ }
1248
+
1249
+ def struct_fields; FIELDS; end
1250
+
1251
+ def validate
1252
+ raise(StandardError, 'Union fields are not set.') if get_set_field.nil? || get_value.nil?
1253
+ end
1254
+
1255
+ ::Thrift::Union.generate_accessors self
1256
+ end
1257
+
1258
+ class TGetInfoReq
1259
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1260
+ SESSIONHANDLE = 1
1261
+ INFOTYPE = 2
1262
+
1263
+ FIELDS = {
1264
+ SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hexspace::TSessionHandle},
1265
+ INFOTYPE => {:type => ::Thrift::Types::I32, :name => 'infoType', :enum_class => ::Hexspace::TGetInfoType}
1266
+ }
1267
+
1268
+ def struct_fields; FIELDS; end
1269
+
1270
+ def validate
1271
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle
1272
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field infoType is unset!') unless @infoType
1273
+ unless @infoType.nil? || ::Hexspace::TGetInfoType::VALID_VALUES.include?(@infoType)
1274
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field infoType!')
1275
+ end
1276
+ end
1277
+
1278
+ ::Thrift::Struct.generate_accessors self
1279
+ end
1280
+
1281
+ class TGetInfoResp
1282
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1283
+ STATUS = 1
1284
+ INFOVALUE = 2
1285
+
1286
+ FIELDS = {
1287
+ STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hexspace::TStatus},
1288
+ INFOVALUE => {:type => ::Thrift::Types::STRUCT, :name => 'infoValue', :class => ::Hexspace::TGetInfoValue}
1289
+ }
1290
+
1291
+ def struct_fields; FIELDS; end
1292
+
1293
+ def validate
1294
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1295
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field infoValue is unset!') unless @infoValue
1296
+ end
1297
+
1298
+ ::Thrift::Struct.generate_accessors self
1299
+ end
1300
+
1301
+ class TExecuteStatementReq
1302
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1303
+ SESSIONHANDLE = 1
1304
+ STATEMENT = 2
1305
+ CONFOVERLAY = 3
1306
+ RUNASYNC = 4
1307
+ QUERYTIMEOUT = 5
1308
+
1309
+ FIELDS = {
1310
+ SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hexspace::TSessionHandle},
1311
+ STATEMENT => {:type => ::Thrift::Types::STRING, :name => 'statement'},
1312
+ CONFOVERLAY => {:type => ::Thrift::Types::MAP, :name => 'confOverlay', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}, :optional => true},
1313
+ RUNASYNC => {:type => ::Thrift::Types::BOOL, :name => 'runAsync', :default => false, :optional => true},
1314
+ QUERYTIMEOUT => {:type => ::Thrift::Types::I64, :name => 'queryTimeout', :default => 0, :optional => true}
1315
+ }
1316
+
1317
+ def struct_fields; FIELDS; end
1318
+
1319
+ def validate
1320
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle
1321
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field statement is unset!') unless @statement
1322
+ end
1323
+
1324
+ ::Thrift::Struct.generate_accessors self
1325
+ end
1326
+
1327
+ class TExecuteStatementResp
1328
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1329
+ STATUS = 1
1330
+ OPERATIONHANDLE = 2
1331
+
1332
+ FIELDS = {
1333
+ STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hexspace::TStatus},
1334
+ OPERATIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'operationHandle', :class => ::Hexspace::TOperationHandle, :optional => true}
1335
+ }
1336
+
1337
+ def struct_fields; FIELDS; end
1338
+
1339
+ def validate
1340
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1341
+ end
1342
+
1343
+ ::Thrift::Struct.generate_accessors self
1344
+ end
1345
+
1346
+ class TGetTypeInfoReq
1347
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1348
+ SESSIONHANDLE = 1
1349
+
1350
+ FIELDS = {
1351
+ SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hexspace::TSessionHandle}
1352
+ }
1353
+
1354
+ def struct_fields; FIELDS; end
1355
+
1356
+ def validate
1357
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle
1358
+ end
1359
+
1360
+ ::Thrift::Struct.generate_accessors self
1361
+ end
1362
+
1363
+ class TGetTypeInfoResp
1364
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1365
+ STATUS = 1
1366
+ OPERATIONHANDLE = 2
1367
+
1368
+ FIELDS = {
1369
+ STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hexspace::TStatus},
1370
+ OPERATIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'operationHandle', :class => ::Hexspace::TOperationHandle, :optional => true}
1371
+ }
1372
+
1373
+ def struct_fields; FIELDS; end
1374
+
1375
+ def validate
1376
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1377
+ end
1378
+
1379
+ ::Thrift::Struct.generate_accessors self
1380
+ end
1381
+
1382
+ class TGetCatalogsReq
1383
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1384
+ SESSIONHANDLE = 1
1385
+
1386
+ FIELDS = {
1387
+ SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hexspace::TSessionHandle}
1388
+ }
1389
+
1390
+ def struct_fields; FIELDS; end
1391
+
1392
+ def validate
1393
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle
1394
+ end
1395
+
1396
+ ::Thrift::Struct.generate_accessors self
1397
+ end
1398
+
1399
+ class TGetCatalogsResp
1400
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1401
+ STATUS = 1
1402
+ OPERATIONHANDLE = 2
1403
+
1404
+ FIELDS = {
1405
+ STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hexspace::TStatus},
1406
+ OPERATIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'operationHandle', :class => ::Hexspace::TOperationHandle, :optional => true}
1407
+ }
1408
+
1409
+ def struct_fields; FIELDS; end
1410
+
1411
+ def validate
1412
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1413
+ end
1414
+
1415
+ ::Thrift::Struct.generate_accessors self
1416
+ end
1417
+
1418
+ class TGetSchemasReq
1419
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1420
+ SESSIONHANDLE = 1
1421
+ CATALOGNAME = 2
1422
+ SCHEMANAME = 3
1423
+
1424
+ FIELDS = {
1425
+ SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hexspace::TSessionHandle},
1426
+ CATALOGNAME => {:type => ::Thrift::Types::STRING, :name => 'catalogName', :optional => true},
1427
+ SCHEMANAME => {:type => ::Thrift::Types::STRING, :name => 'schemaName', :optional => true}
1428
+ }
1429
+
1430
+ def struct_fields; FIELDS; end
1431
+
1432
+ def validate
1433
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle
1434
+ end
1435
+
1436
+ ::Thrift::Struct.generate_accessors self
1437
+ end
1438
+
1439
+ class TGetSchemasResp
1440
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1441
+ STATUS = 1
1442
+ OPERATIONHANDLE = 2
1443
+
1444
+ FIELDS = {
1445
+ STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hexspace::TStatus},
1446
+ OPERATIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'operationHandle', :class => ::Hexspace::TOperationHandle, :optional => true}
1447
+ }
1448
+
1449
+ def struct_fields; FIELDS; end
1450
+
1451
+ def validate
1452
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1453
+ end
1454
+
1455
+ ::Thrift::Struct.generate_accessors self
1456
+ end
1457
+
1458
+ class TGetTablesReq
1459
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1460
+ SESSIONHANDLE = 1
1461
+ CATALOGNAME = 2
1462
+ SCHEMANAME = 3
1463
+ TABLENAME = 4
1464
+ TABLETYPES = 5
1465
+
1466
+ FIELDS = {
1467
+ SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hexspace::TSessionHandle},
1468
+ CATALOGNAME => {:type => ::Thrift::Types::STRING, :name => 'catalogName', :optional => true},
1469
+ SCHEMANAME => {:type => ::Thrift::Types::STRING, :name => 'schemaName', :optional => true},
1470
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :optional => true},
1471
+ TABLETYPES => {:type => ::Thrift::Types::LIST, :name => 'tableTypes', :element => {:type => ::Thrift::Types::STRING}, :optional => true}
1472
+ }
1473
+
1474
+ def struct_fields; FIELDS; end
1475
+
1476
+ def validate
1477
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle
1478
+ end
1479
+
1480
+ ::Thrift::Struct.generate_accessors self
1481
+ end
1482
+
1483
+ class TGetTablesResp
1484
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1485
+ STATUS = 1
1486
+ OPERATIONHANDLE = 2
1487
+
1488
+ FIELDS = {
1489
+ STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hexspace::TStatus},
1490
+ OPERATIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'operationHandle', :class => ::Hexspace::TOperationHandle, :optional => true}
1491
+ }
1492
+
1493
+ def struct_fields; FIELDS; end
1494
+
1495
+ def validate
1496
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1497
+ end
1498
+
1499
+ ::Thrift::Struct.generate_accessors self
1500
+ end
1501
+
1502
+ class TGetTableTypesReq
1503
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1504
+ SESSIONHANDLE = 1
1505
+
1506
+ FIELDS = {
1507
+ SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hexspace::TSessionHandle}
1508
+ }
1509
+
1510
+ def struct_fields; FIELDS; end
1511
+
1512
+ def validate
1513
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle
1514
+ end
1515
+
1516
+ ::Thrift::Struct.generate_accessors self
1517
+ end
1518
+
1519
+ class TGetTableTypesResp
1520
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1521
+ STATUS = 1
1522
+ OPERATIONHANDLE = 2
1523
+
1524
+ FIELDS = {
1525
+ STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hexspace::TStatus},
1526
+ OPERATIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'operationHandle', :class => ::Hexspace::TOperationHandle, :optional => true}
1527
+ }
1528
+
1529
+ def struct_fields; FIELDS; end
1530
+
1531
+ def validate
1532
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1533
+ end
1534
+
1535
+ ::Thrift::Struct.generate_accessors self
1536
+ end
1537
+
1538
+ class TGetColumnsReq
1539
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1540
+ SESSIONHANDLE = 1
1541
+ CATALOGNAME = 2
1542
+ SCHEMANAME = 3
1543
+ TABLENAME = 4
1544
+ COLUMNNAME = 5
1545
+
1546
+ FIELDS = {
1547
+ SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hexspace::TSessionHandle},
1548
+ CATALOGNAME => {:type => ::Thrift::Types::STRING, :name => 'catalogName', :optional => true},
1549
+ SCHEMANAME => {:type => ::Thrift::Types::STRING, :name => 'schemaName', :optional => true},
1550
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :optional => true},
1551
+ COLUMNNAME => {:type => ::Thrift::Types::STRING, :name => 'columnName', :optional => true}
1552
+ }
1553
+
1554
+ def struct_fields; FIELDS; end
1555
+
1556
+ def validate
1557
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle
1558
+ end
1559
+
1560
+ ::Thrift::Struct.generate_accessors self
1561
+ end
1562
+
1563
+ class TGetColumnsResp
1564
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1565
+ STATUS = 1
1566
+ OPERATIONHANDLE = 2
1567
+
1568
+ FIELDS = {
1569
+ STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hexspace::TStatus},
1570
+ OPERATIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'operationHandle', :class => ::Hexspace::TOperationHandle, :optional => true}
1571
+ }
1572
+
1573
+ def struct_fields; FIELDS; end
1574
+
1575
+ def validate
1576
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1577
+ end
1578
+
1579
+ ::Thrift::Struct.generate_accessors self
1580
+ end
1581
+
1582
+ class TGetFunctionsReq
1583
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1584
+ SESSIONHANDLE = 1
1585
+ CATALOGNAME = 2
1586
+ SCHEMANAME = 3
1587
+ FUNCTIONNAME = 4
1588
+
1589
+ FIELDS = {
1590
+ SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hexspace::TSessionHandle},
1591
+ CATALOGNAME => {:type => ::Thrift::Types::STRING, :name => 'catalogName', :optional => true},
1592
+ SCHEMANAME => {:type => ::Thrift::Types::STRING, :name => 'schemaName', :optional => true},
1593
+ FUNCTIONNAME => {:type => ::Thrift::Types::STRING, :name => 'functionName'}
1594
+ }
1595
+
1596
+ def struct_fields; FIELDS; end
1597
+
1598
+ def validate
1599
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle
1600
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field functionName is unset!') unless @functionName
1601
+ end
1602
+
1603
+ ::Thrift::Struct.generate_accessors self
1604
+ end
1605
+
1606
+ class TGetFunctionsResp
1607
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1608
+ STATUS = 1
1609
+ OPERATIONHANDLE = 2
1610
+
1611
+ FIELDS = {
1612
+ STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hexspace::TStatus},
1613
+ OPERATIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'operationHandle', :class => ::Hexspace::TOperationHandle, :optional => true}
1614
+ }
1615
+
1616
+ def struct_fields; FIELDS; end
1617
+
1618
+ def validate
1619
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1620
+ end
1621
+
1622
+ ::Thrift::Struct.generate_accessors self
1623
+ end
1624
+
1625
+ class TGetPrimaryKeysReq
1626
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1627
+ SESSIONHANDLE = 1
1628
+ CATALOGNAME = 2
1629
+ SCHEMANAME = 3
1630
+ TABLENAME = 4
1631
+
1632
+ FIELDS = {
1633
+ SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hexspace::TSessionHandle},
1634
+ CATALOGNAME => {:type => ::Thrift::Types::STRING, :name => 'catalogName', :optional => true},
1635
+ SCHEMANAME => {:type => ::Thrift::Types::STRING, :name => 'schemaName', :optional => true},
1636
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :optional => true}
1637
+ }
1638
+
1639
+ def struct_fields; FIELDS; end
1640
+
1641
+ def validate
1642
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle
1643
+ end
1644
+
1645
+ ::Thrift::Struct.generate_accessors self
1646
+ end
1647
+
1648
+ class TGetPrimaryKeysResp
1649
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1650
+ STATUS = 1
1651
+ OPERATIONHANDLE = 2
1652
+
1653
+ FIELDS = {
1654
+ STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hexspace::TStatus},
1655
+ OPERATIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'operationHandle', :class => ::Hexspace::TOperationHandle, :optional => true}
1656
+ }
1657
+
1658
+ def struct_fields; FIELDS; end
1659
+
1660
+ def validate
1661
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1662
+ end
1663
+
1664
+ ::Thrift::Struct.generate_accessors self
1665
+ end
1666
+
1667
+ class TGetCrossReferenceReq
1668
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1669
+ SESSIONHANDLE = 1
1670
+ PARENTCATALOGNAME = 2
1671
+ PARENTSCHEMANAME = 3
1672
+ PARENTTABLENAME = 4
1673
+ FOREIGNCATALOGNAME = 5
1674
+ FOREIGNSCHEMANAME = 6
1675
+ FOREIGNTABLENAME = 7
1676
+
1677
+ FIELDS = {
1678
+ SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hexspace::TSessionHandle},
1679
+ PARENTCATALOGNAME => {:type => ::Thrift::Types::STRING, :name => 'parentCatalogName', :optional => true},
1680
+ PARENTSCHEMANAME => {:type => ::Thrift::Types::STRING, :name => 'parentSchemaName', :optional => true},
1681
+ PARENTTABLENAME => {:type => ::Thrift::Types::STRING, :name => 'parentTableName', :optional => true},
1682
+ FOREIGNCATALOGNAME => {:type => ::Thrift::Types::STRING, :name => 'foreignCatalogName', :optional => true},
1683
+ FOREIGNSCHEMANAME => {:type => ::Thrift::Types::STRING, :name => 'foreignSchemaName', :optional => true},
1684
+ FOREIGNTABLENAME => {:type => ::Thrift::Types::STRING, :name => 'foreignTableName', :optional => true}
1685
+ }
1686
+
1687
+ def struct_fields; FIELDS; end
1688
+
1689
+ def validate
1690
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle
1691
+ end
1692
+
1693
+ ::Thrift::Struct.generate_accessors self
1694
+ end
1695
+
1696
+ class TGetCrossReferenceResp
1697
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1698
+ STATUS = 1
1699
+ OPERATIONHANDLE = 2
1700
+
1701
+ FIELDS = {
1702
+ STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hexspace::TStatus},
1703
+ OPERATIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'operationHandle', :class => ::Hexspace::TOperationHandle, :optional => true}
1704
+ }
1705
+
1706
+ def struct_fields; FIELDS; end
1707
+
1708
+ def validate
1709
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1710
+ end
1711
+
1712
+ ::Thrift::Struct.generate_accessors self
1713
+ end
1714
+
1715
+ class TGetOperationStatusReq
1716
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1717
+ OPERATIONHANDLE = 1
1718
+ GETPROGRESSUPDATE = 2
1719
+
1720
+ FIELDS = {
1721
+ OPERATIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'operationHandle', :class => ::Hexspace::TOperationHandle},
1722
+ GETPROGRESSUPDATE => {:type => ::Thrift::Types::BOOL, :name => 'getProgressUpdate', :optional => true}
1723
+ }
1724
+
1725
+ def struct_fields; FIELDS; end
1726
+
1727
+ def validate
1728
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field operationHandle is unset!') unless @operationHandle
1729
+ end
1730
+
1731
+ ::Thrift::Struct.generate_accessors self
1732
+ end
1733
+
1734
+ class TGetOperationStatusResp
1735
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1736
+ STATUS = 1
1737
+ OPERATIONSTATE = 2
1738
+ SQLSTATE = 3
1739
+ ERRORCODE = 4
1740
+ ERRORMESSAGE = 5
1741
+ TASKSTATUS = 6
1742
+ OPERATIONSTARTED = 7
1743
+ OPERATIONCOMPLETED = 8
1744
+ HASRESULTSET = 9
1745
+ PROGRESSUPDATERESPONSE = 10
1746
+
1747
+ FIELDS = {
1748
+ STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hexspace::TStatus},
1749
+ OPERATIONSTATE => {:type => ::Thrift::Types::I32, :name => 'operationState', :optional => true, :enum_class => ::Hexspace::TOperationState},
1750
+ SQLSTATE => {:type => ::Thrift::Types::STRING, :name => 'sqlState', :optional => true},
1751
+ ERRORCODE => {:type => ::Thrift::Types::I32, :name => 'errorCode', :optional => true},
1752
+ ERRORMESSAGE => {:type => ::Thrift::Types::STRING, :name => 'errorMessage', :optional => true},
1753
+ TASKSTATUS => {:type => ::Thrift::Types::STRING, :name => 'taskStatus', :optional => true},
1754
+ OPERATIONSTARTED => {:type => ::Thrift::Types::I64, :name => 'operationStarted', :optional => true},
1755
+ OPERATIONCOMPLETED => {:type => ::Thrift::Types::I64, :name => 'operationCompleted', :optional => true},
1756
+ HASRESULTSET => {:type => ::Thrift::Types::BOOL, :name => 'hasResultSet', :optional => true},
1757
+ PROGRESSUPDATERESPONSE => {:type => ::Thrift::Types::STRUCT, :name => 'progressUpdateResponse', :class => ::Hexspace::TProgressUpdateResp, :optional => true}
1758
+ }
1759
+
1760
+ def struct_fields; FIELDS; end
1761
+
1762
+ def validate
1763
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1764
+ unless @operationState.nil? || ::Hexspace::TOperationState::VALID_VALUES.include?(@operationState)
1765
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field operationState!')
1766
+ end
1767
+ end
1768
+
1769
+ ::Thrift::Struct.generate_accessors self
1770
+ end
1771
+
1772
+ class TCancelOperationReq
1773
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1774
+ OPERATIONHANDLE = 1
1775
+
1776
+ FIELDS = {
1777
+ OPERATIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'operationHandle', :class => ::Hexspace::TOperationHandle}
1778
+ }
1779
+
1780
+ def struct_fields; FIELDS; end
1781
+
1782
+ def validate
1783
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field operationHandle is unset!') unless @operationHandle
1784
+ end
1785
+
1786
+ ::Thrift::Struct.generate_accessors self
1787
+ end
1788
+
1789
+ class TCancelOperationResp
1790
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1791
+ STATUS = 1
1792
+
1793
+ FIELDS = {
1794
+ STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hexspace::TStatus}
1795
+ }
1796
+
1797
+ def struct_fields; FIELDS; end
1798
+
1799
+ def validate
1800
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1801
+ end
1802
+
1803
+ ::Thrift::Struct.generate_accessors self
1804
+ end
1805
+
1806
+ class TCloseOperationReq
1807
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1808
+ OPERATIONHANDLE = 1
1809
+
1810
+ FIELDS = {
1811
+ OPERATIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'operationHandle', :class => ::Hexspace::TOperationHandle}
1812
+ }
1813
+
1814
+ def struct_fields; FIELDS; end
1815
+
1816
+ def validate
1817
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field operationHandle is unset!') unless @operationHandle
1818
+ end
1819
+
1820
+ ::Thrift::Struct.generate_accessors self
1821
+ end
1822
+
1823
+ class TCloseOperationResp
1824
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1825
+ STATUS = 1
1826
+
1827
+ FIELDS = {
1828
+ STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hexspace::TStatus}
1829
+ }
1830
+
1831
+ def struct_fields; FIELDS; end
1832
+
1833
+ def validate
1834
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1835
+ end
1836
+
1837
+ ::Thrift::Struct.generate_accessors self
1838
+ end
1839
+
1840
+ class TGetResultSetMetadataReq
1841
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1842
+ OPERATIONHANDLE = 1
1843
+
1844
+ FIELDS = {
1845
+ OPERATIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'operationHandle', :class => ::Hexspace::TOperationHandle}
1846
+ }
1847
+
1848
+ def struct_fields; FIELDS; end
1849
+
1850
+ def validate
1851
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field operationHandle is unset!') unless @operationHandle
1852
+ end
1853
+
1854
+ ::Thrift::Struct.generate_accessors self
1855
+ end
1856
+
1857
+ class TGetResultSetMetadataResp
1858
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1859
+ STATUS = 1
1860
+ SCHEMA = 2
1861
+
1862
+ FIELDS = {
1863
+ STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hexspace::TStatus},
1864
+ SCHEMA => {:type => ::Thrift::Types::STRUCT, :name => 'schema', :class => ::Hexspace::TTableSchema, :optional => true}
1865
+ }
1866
+
1867
+ def struct_fields; FIELDS; end
1868
+
1869
+ def validate
1870
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1871
+ end
1872
+
1873
+ ::Thrift::Struct.generate_accessors self
1874
+ end
1875
+
1876
+ class TFetchResultsReq
1877
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1878
+ OPERATIONHANDLE = 1
1879
+ ORIENTATION = 2
1880
+ MAXROWS = 3
1881
+ FETCHTYPE = 4
1882
+
1883
+ FIELDS = {
1884
+ OPERATIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'operationHandle', :class => ::Hexspace::TOperationHandle},
1885
+ ORIENTATION => {:type => ::Thrift::Types::I32, :name => 'orientation', :default => 0, :enum_class => ::Hexspace::TFetchOrientation},
1886
+ MAXROWS => {:type => ::Thrift::Types::I64, :name => 'maxRows'},
1887
+ FETCHTYPE => {:type => ::Thrift::Types::I16, :name => 'fetchType', :default => 0, :optional => true}
1888
+ }
1889
+
1890
+ def struct_fields; FIELDS; end
1891
+
1892
+ def validate
1893
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field operationHandle is unset!') unless @operationHandle
1894
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field orientation is unset!') unless @orientation
1895
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field maxRows is unset!') unless @maxRows
1896
+ unless @orientation.nil? || ::Hexspace::TFetchOrientation::VALID_VALUES.include?(@orientation)
1897
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field orientation!')
1898
+ end
1899
+ end
1900
+
1901
+ ::Thrift::Struct.generate_accessors self
1902
+ end
1903
+
1904
+ class TFetchResultsResp
1905
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1906
+ STATUS = 1
1907
+ HASMOREROWS = 2
1908
+ RESULTS = 3
1909
+
1910
+ FIELDS = {
1911
+ STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hexspace::TStatus},
1912
+ HASMOREROWS => {:type => ::Thrift::Types::BOOL, :name => 'hasMoreRows', :optional => true},
1913
+ RESULTS => {:type => ::Thrift::Types::STRUCT, :name => 'results', :class => ::Hexspace::TRowSet, :optional => true}
1914
+ }
1915
+
1916
+ def struct_fields; FIELDS; end
1917
+
1918
+ def validate
1919
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1920
+ end
1921
+
1922
+ ::Thrift::Struct.generate_accessors self
1923
+ end
1924
+
1925
+ class TGetDelegationTokenReq
1926
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1927
+ SESSIONHANDLE = 1
1928
+ OWNER = 2
1929
+ RENEWER = 3
1930
+
1931
+ FIELDS = {
1932
+ SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hexspace::TSessionHandle},
1933
+ OWNER => {:type => ::Thrift::Types::STRING, :name => 'owner'},
1934
+ RENEWER => {:type => ::Thrift::Types::STRING, :name => 'renewer'}
1935
+ }
1936
+
1937
+ def struct_fields; FIELDS; end
1938
+
1939
+ def validate
1940
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle
1941
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field owner is unset!') unless @owner
1942
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field renewer is unset!') unless @renewer
1943
+ end
1944
+
1945
+ ::Thrift::Struct.generate_accessors self
1946
+ end
1947
+
1948
+ class TGetDelegationTokenResp
1949
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1950
+ STATUS = 1
1951
+ DELEGATIONTOKEN = 2
1952
+
1953
+ FIELDS = {
1954
+ STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hexspace::TStatus},
1955
+ DELEGATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'delegationToken', :optional => true}
1956
+ }
1957
+
1958
+ def struct_fields; FIELDS; end
1959
+
1960
+ def validate
1961
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1962
+ end
1963
+
1964
+ ::Thrift::Struct.generate_accessors self
1965
+ end
1966
+
1967
+ class TCancelDelegationTokenReq
1968
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1969
+ SESSIONHANDLE = 1
1970
+ DELEGATIONTOKEN = 2
1971
+
1972
+ FIELDS = {
1973
+ SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hexspace::TSessionHandle},
1974
+ DELEGATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'delegationToken'}
1975
+ }
1976
+
1977
+ def struct_fields; FIELDS; end
1978
+
1979
+ def validate
1980
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle
1981
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field delegationToken is unset!') unless @delegationToken
1982
+ end
1983
+
1984
+ ::Thrift::Struct.generate_accessors self
1985
+ end
1986
+
1987
+ class TCancelDelegationTokenResp
1988
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1989
+ STATUS = 1
1990
+
1991
+ FIELDS = {
1992
+ STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hexspace::TStatus}
1993
+ }
1994
+
1995
+ def struct_fields; FIELDS; end
1996
+
1997
+ def validate
1998
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1999
+ end
2000
+
2001
+ ::Thrift::Struct.generate_accessors self
2002
+ end
2003
+
2004
+ class TRenewDelegationTokenReq
2005
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2006
+ SESSIONHANDLE = 1
2007
+ DELEGATIONTOKEN = 2
2008
+
2009
+ FIELDS = {
2010
+ SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hexspace::TSessionHandle},
2011
+ DELEGATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'delegationToken'}
2012
+ }
2013
+
2014
+ def struct_fields; FIELDS; end
2015
+
2016
+ def validate
2017
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle
2018
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field delegationToken is unset!') unless @delegationToken
2019
+ end
2020
+
2021
+ ::Thrift::Struct.generate_accessors self
2022
+ end
2023
+
2024
+ class TRenewDelegationTokenResp
2025
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2026
+ STATUS = 1
2027
+
2028
+ FIELDS = {
2029
+ STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hexspace::TStatus}
2030
+ }
2031
+
2032
+ def struct_fields; FIELDS; end
2033
+
2034
+ def validate
2035
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
2036
+ end
2037
+
2038
+ ::Thrift::Struct.generate_accessors self
2039
+ end
2040
+
2041
+ class TProgressUpdateResp
2042
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2043
+ HEADERNAMES = 1
2044
+ ROWS = 2
2045
+ PROGRESSEDPERCENTAGE = 3
2046
+ STATUS = 4
2047
+ FOOTERSUMMARY = 5
2048
+ STARTTIME = 6
2049
+
2050
+ FIELDS = {
2051
+ HEADERNAMES => {:type => ::Thrift::Types::LIST, :name => 'headerNames', :element => {:type => ::Thrift::Types::STRING}},
2052
+ ROWS => {:type => ::Thrift::Types::LIST, :name => 'rows', :element => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRING}}},
2053
+ PROGRESSEDPERCENTAGE => {:type => ::Thrift::Types::DOUBLE, :name => 'progressedPercentage'},
2054
+ STATUS => {:type => ::Thrift::Types::I32, :name => 'status', :enum_class => ::Hexspace::TJobExecutionStatus},
2055
+ FOOTERSUMMARY => {:type => ::Thrift::Types::STRING, :name => 'footerSummary'},
2056
+ STARTTIME => {:type => ::Thrift::Types::I64, :name => 'startTime'}
2057
+ }
2058
+
2059
+ def struct_fields; FIELDS; end
2060
+
2061
+ def validate
2062
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field headerNames is unset!') unless @headerNames
2063
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field rows is unset!') unless @rows
2064
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field progressedPercentage is unset!') unless @progressedPercentage
2065
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
2066
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field footerSummary is unset!') unless @footerSummary
2067
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field startTime is unset!') unless @startTime
2068
+ unless @status.nil? || ::Hexspace::TJobExecutionStatus::VALID_VALUES.include?(@status)
2069
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field status!')
2070
+ end
2071
+ end
2072
+
2073
+ ::Thrift::Struct.generate_accessors self
2074
+ end
2075
+
2076
+ end