hexspace 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,6 @@
1
+ # frozen_string_literal: true
1
2
  #
2
- # Autogenerated by Thrift Compiler (0.18.1)
3
+ # Autogenerated by Thrift Compiler (0.25.0)
3
4
  #
4
5
  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
6
  #
@@ -17,8 +18,9 @@ module Hexspace
17
18
  HIVE_CLI_SERVICE_PROTOCOL_V8 = 7
18
19
  HIVE_CLI_SERVICE_PROTOCOL_V9 = 8
19
20
  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
21
+ HIVE_CLI_SERVICE_PROTOCOL_V11 = 10
22
+ 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", 10 => "HIVE_CLI_SERVICE_PROTOCOL_V11"}
23
+ 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, HIVE_CLI_SERVICE_PROTOCOL_V11]).freeze
22
24
  end
23
25
 
24
26
  module TTypeId
@@ -44,8 +46,9 @@ module Hexspace
44
46
  CHAR_TYPE = 19
45
47
  INTERVAL_YEAR_MONTH_TYPE = 20
46
48
  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
+ TIMESTAMPLOCALTZ_TYPE = 22
50
+ 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", 22 => "TIMESTAMPLOCALTZ_TYPE"}
51
+ 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, TIMESTAMPLOCALTZ_TYPE]).freeze
49
52
  end
50
53
 
51
54
  module TStatusCode
@@ -82,8 +85,9 @@ module Hexspace
82
85
  GET_COLUMNS = 6
83
86
  GET_FUNCTIONS = 7
84
87
  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
88
+ PROCEDURAL_SQL = 9
89
+ 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", 9 => "PROCEDURAL_SQL"}
90
+ VALID_VALUES = Set.new([EXECUTE_STATEMENT, GET_TYPE_INFO, GET_CATALOGS, GET_SCHEMAS, GET_TABLES, GET_TABLE_TYPES, GET_COLUMNS, GET_FUNCTIONS, UNKNOWN, PROCEDURAL_SQL]).freeze
87
91
  end
88
92
 
89
93
  module TGetInfoType
@@ -134,8 +138,9 @@ module Hexspace
134
138
  CLI_CATALOG_NAME = 10003
135
139
  CLI_COLLATION_SEQ = 10004
136
140
  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
141
+ CLI_ODBC_KEYWORDS = 10006
142
+ 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", 10006 => "CLI_ODBC_KEYWORDS"}
143
+ 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, CLI_ODBC_KEYWORDS]).freeze
139
144
  end
140
145
 
141
146
  module TFetchOrientation
@@ -231,6 +236,10 @@ module Hexspace
231
236
 
232
237
  class TOpenSessionResp; end
233
238
 
239
+ class TSetClientInfoReq; end
240
+
241
+ class TSetClientInfoResp; end
242
+
234
243
  class TCloseSessionReq; end
235
244
 
236
245
  class TCloseSessionResp; end
@@ -249,6 +258,14 @@ module Hexspace
249
258
 
250
259
  class TGetTypeInfoResp; end
251
260
 
261
+ class TUploadDataReq; end
262
+
263
+ class TUploadDataResp; end
264
+
265
+ class TDownloadDataReq; end
266
+
267
+ class TDownloadDataResp; end
268
+
252
269
  class TGetCatalogsReq; end
253
270
 
254
271
  class TGetCatalogsResp; end
@@ -315,8 +332,13 @@ module Hexspace
315
332
 
316
333
  class TProgressUpdateResp; end
317
334
 
335
+ class TGetQueryIdReq; end
336
+
337
+ class TGetQueryIdResp; end
338
+
318
339
  class TTypeQualifierValue < ::Thrift::Union
319
340
  include ::Thrift::Struct_Union
341
+
320
342
  class << self
321
343
  def i32Value(val)
322
344
  TTypeQualifierValue.new(:i32Value, val)
@@ -327,18 +349,18 @@ module Hexspace
327
349
  end
328
350
  end
329
351
 
330
- I32VALUE = 1
331
- STRINGVALUE = 2
352
+ I32VALUE_FIELD_ID = 1
353
+ STRINGVALUE_FIELD_ID = 2
332
354
 
333
355
  FIELDS = {
334
- I32VALUE => {:type => ::Thrift::Types::I32, :name => 'i32Value', :optional => true},
335
- STRINGVALUE => {:type => ::Thrift::Types::STRING, :name => 'stringValue', :optional => true}
356
+ I32VALUE_FIELD_ID => {type: ::Thrift::Types::I32, name: "i32Value", optional: true},
357
+ STRINGVALUE_FIELD_ID => {type: ::Thrift::Types::STRING, name: "stringValue", optional: true},
336
358
  }
337
359
 
338
360
  def struct_fields; FIELDS; end
339
361
 
340
362
  def validate
341
- raise(StandardError, 'Union fields are not set.') if get_set_field.nil? || get_value.nil?
363
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Union fields are not set.") if get_set_field.nil? || get_value.nil?
342
364
  end
343
365
 
344
366
  ::Thrift::Union.generate_accessors self
@@ -346,16 +368,17 @@ module Hexspace
346
368
 
347
369
  class TTypeQualifiers
348
370
  include ::Thrift::Struct, ::Thrift::Struct_Union
349
- QUALIFIERS = 1
371
+
372
+ QUALIFIERS_FIELD_ID = 1
350
373
 
351
374
  FIELDS = {
352
- QUALIFIERS => {:type => ::Thrift::Types::MAP, :name => 'qualifiers', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Hexspace::TTypeQualifierValue}}
375
+ QUALIFIERS_FIELD_ID => {type: ::Thrift::Types::MAP, name: "qualifiers", key: {type: ::Thrift::Types::STRING}, value: {type: ::Thrift::Types::STRUCT, class: ::Hexspace::TTypeQualifierValue}},
353
376
  }
354
377
 
355
378
  def struct_fields; FIELDS; end
356
379
 
357
380
  def validate
358
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field qualifiers is unset!') unless @qualifiers
381
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field qualifiers is unset!") unless @qualifiers
359
382
  end
360
383
 
361
384
  ::Thrift::Struct.generate_accessors self
@@ -363,20 +386,21 @@ module Hexspace
363
386
 
364
387
  class TPrimitiveTypeEntry
365
388
  include ::Thrift::Struct, ::Thrift::Struct_Union
366
- TYPE = 1
367
- TYPEQUALIFIERS = 2
389
+
390
+ TYPE_FIELD_ID = 1
391
+ TYPEQUALIFIERS_FIELD_ID = 2
368
392
 
369
393
  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}
394
+ TYPE_FIELD_ID => {type: ::Thrift::Types::I32, name: "type", enum_class: ::Hexspace::TTypeId},
395
+ TYPEQUALIFIERS_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "typeQualifiers", class: ::Hexspace::TTypeQualifiers, optional: true},
372
396
  }
373
397
 
374
398
  def struct_fields; FIELDS; end
375
399
 
376
400
  def validate
377
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field type is unset!') unless @type
401
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field type is unset!") unless @type
378
402
  unless @type.nil? || ::Hexspace::TTypeId::VALID_VALUES.include?(@type)
379
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!')
403
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Invalid value of field type!")
380
404
  end
381
405
  end
382
406
 
@@ -385,16 +409,17 @@ module Hexspace
385
409
 
386
410
  class TArrayTypeEntry
387
411
  include ::Thrift::Struct, ::Thrift::Struct_Union
388
- OBJECTTYPEPTR = 1
412
+
413
+ OBJECTTYPEPTR_FIELD_ID = 1
389
414
 
390
415
  FIELDS = {
391
- OBJECTTYPEPTR => {:type => ::Thrift::Types::I32, :name => 'objectTypePtr'}
416
+ OBJECTTYPEPTR_FIELD_ID => {type: ::Thrift::Types::I32, name: "objectTypePtr"},
392
417
  }
393
418
 
394
419
  def struct_fields; FIELDS; end
395
420
 
396
421
  def validate
397
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field objectTypePtr is unset!') unless @objectTypePtr
422
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field objectTypePtr is unset!") unless @objectTypePtr
398
423
  end
399
424
 
400
425
  ::Thrift::Struct.generate_accessors self
@@ -402,19 +427,20 @@ module Hexspace
402
427
 
403
428
  class TMapTypeEntry
404
429
  include ::Thrift::Struct, ::Thrift::Struct_Union
405
- KEYTYPEPTR = 1
406
- VALUETYPEPTR = 2
430
+
431
+ KEYTYPEPTR_FIELD_ID = 1
432
+ VALUETYPEPTR_FIELD_ID = 2
407
433
 
408
434
  FIELDS = {
409
- KEYTYPEPTR => {:type => ::Thrift::Types::I32, :name => 'keyTypePtr'},
410
- VALUETYPEPTR => {:type => ::Thrift::Types::I32, :name => 'valueTypePtr'}
435
+ KEYTYPEPTR_FIELD_ID => {type: ::Thrift::Types::I32, name: "keyTypePtr"},
436
+ VALUETYPEPTR_FIELD_ID => {type: ::Thrift::Types::I32, name: "valueTypePtr"},
411
437
  }
412
438
 
413
439
  def struct_fields; FIELDS; end
414
440
 
415
441
  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
442
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field keyTypePtr is unset!") unless @keyTypePtr
443
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field valueTypePtr is unset!") unless @valueTypePtr
418
444
  end
419
445
 
420
446
  ::Thrift::Struct.generate_accessors self
@@ -422,16 +448,17 @@ module Hexspace
422
448
 
423
449
  class TStructTypeEntry
424
450
  include ::Thrift::Struct, ::Thrift::Struct_Union
425
- NAMETOTYPEPTR = 1
451
+
452
+ NAMETOTYPEPTR_FIELD_ID = 1
426
453
 
427
454
  FIELDS = {
428
- NAMETOTYPEPTR => {:type => ::Thrift::Types::MAP, :name => 'nameToTypePtr', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::I32}}
455
+ NAMETOTYPEPTR_FIELD_ID => {type: ::Thrift::Types::MAP, name: "nameToTypePtr", key: {type: ::Thrift::Types::STRING}, value: {type: ::Thrift::Types::I32}},
429
456
  }
430
457
 
431
458
  def struct_fields; FIELDS; end
432
459
 
433
460
  def validate
434
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field nameToTypePtr is unset!') unless @nameToTypePtr
461
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field nameToTypePtr is unset!") unless @nameToTypePtr
435
462
  end
436
463
 
437
464
  ::Thrift::Struct.generate_accessors self
@@ -439,16 +466,17 @@ module Hexspace
439
466
 
440
467
  class TUnionTypeEntry
441
468
  include ::Thrift::Struct, ::Thrift::Struct_Union
442
- NAMETOTYPEPTR = 1
469
+
470
+ NAMETOTYPEPTR_FIELD_ID = 1
443
471
 
444
472
  FIELDS = {
445
- NAMETOTYPEPTR => {:type => ::Thrift::Types::MAP, :name => 'nameToTypePtr', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::I32}}
473
+ NAMETOTYPEPTR_FIELD_ID => {type: ::Thrift::Types::MAP, name: "nameToTypePtr", key: {type: ::Thrift::Types::STRING}, value: {type: ::Thrift::Types::I32}},
446
474
  }
447
475
 
448
476
  def struct_fields; FIELDS; end
449
477
 
450
478
  def validate
451
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field nameToTypePtr is unset!') unless @nameToTypePtr
479
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field nameToTypePtr is unset!") unless @nameToTypePtr
452
480
  end
453
481
 
454
482
  ::Thrift::Struct.generate_accessors self
@@ -456,16 +484,17 @@ module Hexspace
456
484
 
457
485
  class TUserDefinedTypeEntry
458
486
  include ::Thrift::Struct, ::Thrift::Struct_Union
459
- TYPECLASSNAME = 1
487
+
488
+ TYPECLASSNAME_FIELD_ID = 1
460
489
 
461
490
  FIELDS = {
462
- TYPECLASSNAME => {:type => ::Thrift::Types::STRING, :name => 'typeClassName'}
491
+ TYPECLASSNAME_FIELD_ID => {type: ::Thrift::Types::STRING, name: "typeClassName"},
463
492
  }
464
493
 
465
494
  def struct_fields; FIELDS; end
466
495
 
467
496
  def validate
468
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field typeClassName is unset!') unless @typeClassName
497
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field typeClassName is unset!") unless @typeClassName
469
498
  end
470
499
 
471
500
  ::Thrift::Struct.generate_accessors self
@@ -473,6 +502,7 @@ module Hexspace
473
502
 
474
503
  class TTypeEntry < ::Thrift::Union
475
504
  include ::Thrift::Struct_Union
505
+
476
506
  class << self
477
507
  def primitiveEntry(val)
478
508
  TTypeEntry.new(:primitiveEntry, val)
@@ -499,26 +529,26 @@ module Hexspace
499
529
  end
500
530
  end
501
531
 
502
- PRIMITIVEENTRY = 1
503
- ARRAYENTRY = 2
504
- MAPENTRY = 3
505
- STRUCTENTRY = 4
506
- UNIONENTRY = 5
507
- USERDEFINEDTYPEENTRY = 6
532
+ PRIMITIVEENTRY_FIELD_ID = 1
533
+ ARRAYENTRY_FIELD_ID = 2
534
+ MAPENTRY_FIELD_ID = 3
535
+ STRUCTENTRY_FIELD_ID = 4
536
+ UNIONENTRY_FIELD_ID = 5
537
+ USERDEFINEDTYPEENTRY_FIELD_ID = 6
508
538
 
509
539
  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}
540
+ PRIMITIVEENTRY_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "primitiveEntry", class: ::Hexspace::TPrimitiveTypeEntry, optional: true},
541
+ ARRAYENTRY_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "arrayEntry", class: ::Hexspace::TArrayTypeEntry, optional: true},
542
+ MAPENTRY_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "mapEntry", class: ::Hexspace::TMapTypeEntry, optional: true},
543
+ STRUCTENTRY_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "structEntry", class: ::Hexspace::TStructTypeEntry, optional: true},
544
+ UNIONENTRY_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "unionEntry", class: ::Hexspace::TUnionTypeEntry, optional: true},
545
+ USERDEFINEDTYPEENTRY_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "userDefinedTypeEntry", class: ::Hexspace::TUserDefinedTypeEntry, optional: true},
516
546
  }
517
547
 
518
548
  def struct_fields; FIELDS; end
519
549
 
520
550
  def validate
521
- raise(StandardError, 'Union fields are not set.') if get_set_field.nil? || get_value.nil?
551
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Union fields are not set.") if get_set_field.nil? || get_value.nil?
522
552
  end
523
553
 
524
554
  ::Thrift::Union.generate_accessors self
@@ -526,16 +556,17 @@ module Hexspace
526
556
 
527
557
  class TTypeDesc
528
558
  include ::Thrift::Struct, ::Thrift::Struct_Union
529
- TYPES = 1
559
+
560
+ TYPES_FIELD_ID = 1
530
561
 
531
562
  FIELDS = {
532
- TYPES => {:type => ::Thrift::Types::LIST, :name => 'types', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Hexspace::TTypeEntry}}
563
+ TYPES_FIELD_ID => {type: ::Thrift::Types::LIST, name: "types", element: {type: ::Thrift::Types::STRUCT, class: ::Hexspace::TTypeEntry}},
533
564
  }
534
565
 
535
566
  def struct_fields; FIELDS; end
536
567
 
537
568
  def validate
538
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field types is unset!') unless @types
569
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field types is unset!") unless @types
539
570
  end
540
571
 
541
572
  ::Thrift::Struct.generate_accessors self
@@ -543,24 +574,25 @@ module Hexspace
543
574
 
544
575
  class TColumnDesc
545
576
  include ::Thrift::Struct, ::Thrift::Struct_Union
546
- COLUMNNAME = 1
547
- TYPEDESC = 2
548
- POSITION = 3
549
- COMMENT = 4
577
+
578
+ COLUMNNAME_FIELD_ID = 1
579
+ TYPEDESC_FIELD_ID = 2
580
+ POSITION_FIELD_ID = 3
581
+ COMMENT_FIELD_ID = 4
550
582
 
551
583
  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}
584
+ COLUMNNAME_FIELD_ID => {type: ::Thrift::Types::STRING, name: "columnName"},
585
+ TYPEDESC_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "typeDesc", class: ::Hexspace::TTypeDesc},
586
+ POSITION_FIELD_ID => {type: ::Thrift::Types::I32, name: "position"},
587
+ COMMENT_FIELD_ID => {type: ::Thrift::Types::STRING, name: "comment", optional: true},
556
588
  }
557
589
 
558
590
  def struct_fields; FIELDS; end
559
591
 
560
592
  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
593
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field columnName is unset!") unless @columnName
594
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field typeDesc is unset!") unless @typeDesc
595
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field position is unset!") unless @position
564
596
  end
565
597
 
566
598
  ::Thrift::Struct.generate_accessors self
@@ -568,16 +600,17 @@ module Hexspace
568
600
 
569
601
  class TTableSchema
570
602
  include ::Thrift::Struct, ::Thrift::Struct_Union
571
- COLUMNS = 1
603
+
604
+ COLUMNS_FIELD_ID = 1
572
605
 
573
606
  FIELDS = {
574
- COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Hexspace::TColumnDesc}}
607
+ COLUMNS_FIELD_ID => {type: ::Thrift::Types::LIST, name: "columns", element: {type: ::Thrift::Types::STRUCT, class: ::Hexspace::TColumnDesc}},
575
608
  }
576
609
 
577
610
  def struct_fields; FIELDS; end
578
611
 
579
612
  def validate
580
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field columns is unset!') unless @columns
613
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field columns is unset!") unless @columns
581
614
  end
582
615
 
583
616
  ::Thrift::Struct.generate_accessors self
@@ -585,10 +618,11 @@ module Hexspace
585
618
 
586
619
  class TBoolValue
587
620
  include ::Thrift::Struct, ::Thrift::Struct_Union
588
- VALUE = 1
621
+
622
+ VALUE_FIELD_ID = 1
589
623
 
590
624
  FIELDS = {
591
- VALUE => {:type => ::Thrift::Types::BOOL, :name => 'value', :optional => true}
625
+ VALUE_FIELD_ID => {type: ::Thrift::Types::BOOL, name: "value", optional: true},
592
626
  }
593
627
 
594
628
  def struct_fields; FIELDS; end
@@ -601,10 +635,11 @@ module Hexspace
601
635
 
602
636
  class TByteValue
603
637
  include ::Thrift::Struct, ::Thrift::Struct_Union
604
- VALUE = 1
638
+
639
+ VALUE_FIELD_ID = 1
605
640
 
606
641
  FIELDS = {
607
- VALUE => {:type => ::Thrift::Types::BYTE, :name => 'value', :optional => true}
642
+ VALUE_FIELD_ID => {type: ::Thrift::Types::BYTE, name: "value", optional: true},
608
643
  }
609
644
 
610
645
  def struct_fields; FIELDS; end
@@ -617,10 +652,11 @@ module Hexspace
617
652
 
618
653
  class TI16Value
619
654
  include ::Thrift::Struct, ::Thrift::Struct_Union
620
- VALUE = 1
655
+
656
+ VALUE_FIELD_ID = 1
621
657
 
622
658
  FIELDS = {
623
- VALUE => {:type => ::Thrift::Types::I16, :name => 'value', :optional => true}
659
+ VALUE_FIELD_ID => {type: ::Thrift::Types::I16, name: "value", optional: true},
624
660
  }
625
661
 
626
662
  def struct_fields; FIELDS; end
@@ -633,10 +669,11 @@ module Hexspace
633
669
 
634
670
  class TI32Value
635
671
  include ::Thrift::Struct, ::Thrift::Struct_Union
636
- VALUE = 1
672
+
673
+ VALUE_FIELD_ID = 1
637
674
 
638
675
  FIELDS = {
639
- VALUE => {:type => ::Thrift::Types::I32, :name => 'value', :optional => true}
676
+ VALUE_FIELD_ID => {type: ::Thrift::Types::I32, name: "value", optional: true},
640
677
  }
641
678
 
642
679
  def struct_fields; FIELDS; end
@@ -649,10 +686,11 @@ module Hexspace
649
686
 
650
687
  class TI64Value
651
688
  include ::Thrift::Struct, ::Thrift::Struct_Union
652
- VALUE = 1
689
+
690
+ VALUE_FIELD_ID = 1
653
691
 
654
692
  FIELDS = {
655
- VALUE => {:type => ::Thrift::Types::I64, :name => 'value', :optional => true}
693
+ VALUE_FIELD_ID => {type: ::Thrift::Types::I64, name: "value", optional: true},
656
694
  }
657
695
 
658
696
  def struct_fields; FIELDS; end
@@ -665,10 +703,11 @@ module Hexspace
665
703
 
666
704
  class TDoubleValue
667
705
  include ::Thrift::Struct, ::Thrift::Struct_Union
668
- VALUE = 1
706
+
707
+ VALUE_FIELD_ID = 1
669
708
 
670
709
  FIELDS = {
671
- VALUE => {:type => ::Thrift::Types::DOUBLE, :name => 'value', :optional => true}
710
+ VALUE_FIELD_ID => {type: ::Thrift::Types::DOUBLE, name: "value", optional: true},
672
711
  }
673
712
 
674
713
  def struct_fields; FIELDS; end
@@ -681,10 +720,11 @@ module Hexspace
681
720
 
682
721
  class TStringValue
683
722
  include ::Thrift::Struct, ::Thrift::Struct_Union
684
- VALUE = 1
723
+
724
+ VALUE_FIELD_ID = 1
685
725
 
686
726
  FIELDS = {
687
- VALUE => {:type => ::Thrift::Types::STRING, :name => 'value', :optional => true}
727
+ VALUE_FIELD_ID => {type: ::Thrift::Types::STRING, name: "value", optional: true},
688
728
  }
689
729
 
690
730
  def struct_fields; FIELDS; end
@@ -697,6 +737,7 @@ module Hexspace
697
737
 
698
738
  class TColumnValue < ::Thrift::Union
699
739
  include ::Thrift::Struct_Union
740
+
700
741
  class << self
701
742
  def boolVal(val)
702
743
  TColumnValue.new(:boolVal, val)
@@ -727,28 +768,28 @@ module Hexspace
727
768
  end
728
769
  end
729
770
 
730
- BOOLVAL = 1
731
- BYTEVAL = 2
732
- I16VAL = 3
733
- I32VAL = 4
734
- I64VAL = 5
735
- DOUBLEVAL = 6
736
- STRINGVAL = 7
771
+ BOOLVAL_FIELD_ID = 1
772
+ BYTEVAL_FIELD_ID = 2
773
+ I16VAL_FIELD_ID = 3
774
+ I32VAL_FIELD_ID = 4
775
+ I64VAL_FIELD_ID = 5
776
+ DOUBLEVAL_FIELD_ID = 6
777
+ STRINGVAL_FIELD_ID = 7
737
778
 
738
779
  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}
780
+ BOOLVAL_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "boolVal", class: ::Hexspace::TBoolValue, optional: true},
781
+ BYTEVAL_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "byteVal", class: ::Hexspace::TByteValue, optional: true},
782
+ I16VAL_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "i16Val", class: ::Hexspace::TI16Value, optional: true},
783
+ I32VAL_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "i32Val", class: ::Hexspace::TI32Value, optional: true},
784
+ I64VAL_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "i64Val", class: ::Hexspace::TI64Value, optional: true},
785
+ DOUBLEVAL_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "doubleVal", class: ::Hexspace::TDoubleValue, optional: true},
786
+ STRINGVAL_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "stringVal", class: ::Hexspace::TStringValue, optional: true},
746
787
  }
747
788
 
748
789
  def struct_fields; FIELDS; end
749
790
 
750
791
  def validate
751
- raise(StandardError, 'Union fields are not set.') if get_set_field.nil? || get_value.nil?
792
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Union fields are not set.") if get_set_field.nil? || get_value.nil?
752
793
  end
753
794
 
754
795
  ::Thrift::Union.generate_accessors self
@@ -756,16 +797,17 @@ module Hexspace
756
797
 
757
798
  class TRow
758
799
  include ::Thrift::Struct, ::Thrift::Struct_Union
759
- COLVALS = 1
800
+
801
+ COLVALS_FIELD_ID = 1
760
802
 
761
803
  FIELDS = {
762
- COLVALS => {:type => ::Thrift::Types::LIST, :name => 'colVals', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Hexspace::TColumnValue}}
804
+ COLVALS_FIELD_ID => {type: ::Thrift::Types::LIST, name: "colVals", element: {type: ::Thrift::Types::STRUCT, class: ::Hexspace::TColumnValue}},
763
805
  }
764
806
 
765
807
  def struct_fields; FIELDS; end
766
808
 
767
809
  def validate
768
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field colVals is unset!') unless @colVals
810
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field colVals is unset!") unless @colVals
769
811
  end
770
812
 
771
813
  ::Thrift::Struct.generate_accessors self
@@ -773,19 +815,20 @@ module Hexspace
773
815
 
774
816
  class TBoolColumn
775
817
  include ::Thrift::Struct, ::Thrift::Struct_Union
776
- VALUES = 1
777
- NULLS = 2
818
+
819
+ VALUES_FIELD_ID = 1
820
+ NULLS_FIELD_ID = 2
778
821
 
779
822
  FIELDS = {
780
- VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::BOOL}},
781
- NULLS => {:type => ::Thrift::Types::STRING, :name => 'nulls', :binary => true}
823
+ VALUES_FIELD_ID => {type: ::Thrift::Types::LIST, name: "values", element: {type: ::Thrift::Types::BOOL}},
824
+ NULLS_FIELD_ID => {type: ::Thrift::Types::STRING, name: "nulls", binary: true},
782
825
  }
783
826
 
784
827
  def struct_fields; FIELDS; end
785
828
 
786
829
  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
830
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field values is unset!") unless @values
831
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field nulls is unset!") unless @nulls
789
832
  end
790
833
 
791
834
  ::Thrift::Struct.generate_accessors self
@@ -793,19 +836,20 @@ module Hexspace
793
836
 
794
837
  class TByteColumn
795
838
  include ::Thrift::Struct, ::Thrift::Struct_Union
796
- VALUES = 1
797
- NULLS = 2
839
+
840
+ VALUES_FIELD_ID = 1
841
+ NULLS_FIELD_ID = 2
798
842
 
799
843
  FIELDS = {
800
- VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::BYTE}},
801
- NULLS => {:type => ::Thrift::Types::STRING, :name => 'nulls', :binary => true}
844
+ VALUES_FIELD_ID => {type: ::Thrift::Types::LIST, name: "values", element: {type: ::Thrift::Types::BYTE}},
845
+ NULLS_FIELD_ID => {type: ::Thrift::Types::STRING, name: "nulls", binary: true},
802
846
  }
803
847
 
804
848
  def struct_fields; FIELDS; end
805
849
 
806
850
  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
851
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field values is unset!") unless @values
852
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field nulls is unset!") unless @nulls
809
853
  end
810
854
 
811
855
  ::Thrift::Struct.generate_accessors self
@@ -813,19 +857,20 @@ module Hexspace
813
857
 
814
858
  class TI16Column
815
859
  include ::Thrift::Struct, ::Thrift::Struct_Union
816
- VALUES = 1
817
- NULLS = 2
860
+
861
+ VALUES_FIELD_ID = 1
862
+ NULLS_FIELD_ID = 2
818
863
 
819
864
  FIELDS = {
820
- VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::I16}},
821
- NULLS => {:type => ::Thrift::Types::STRING, :name => 'nulls', :binary => true}
865
+ VALUES_FIELD_ID => {type: ::Thrift::Types::LIST, name: "values", element: {type: ::Thrift::Types::I16}},
866
+ NULLS_FIELD_ID => {type: ::Thrift::Types::STRING, name: "nulls", binary: true},
822
867
  }
823
868
 
824
869
  def struct_fields; FIELDS; end
825
870
 
826
871
  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
872
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field values is unset!") unless @values
873
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field nulls is unset!") unless @nulls
829
874
  end
830
875
 
831
876
  ::Thrift::Struct.generate_accessors self
@@ -833,19 +878,20 @@ module Hexspace
833
878
 
834
879
  class TI32Column
835
880
  include ::Thrift::Struct, ::Thrift::Struct_Union
836
- VALUES = 1
837
- NULLS = 2
881
+
882
+ VALUES_FIELD_ID = 1
883
+ NULLS_FIELD_ID = 2
838
884
 
839
885
  FIELDS = {
840
- VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::I32}},
841
- NULLS => {:type => ::Thrift::Types::STRING, :name => 'nulls', :binary => true}
886
+ VALUES_FIELD_ID => {type: ::Thrift::Types::LIST, name: "values", element: {type: ::Thrift::Types::I32}},
887
+ NULLS_FIELD_ID => {type: ::Thrift::Types::STRING, name: "nulls", binary: true},
842
888
  }
843
889
 
844
890
  def struct_fields; FIELDS; end
845
891
 
846
892
  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
893
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field values is unset!") unless @values
894
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field nulls is unset!") unless @nulls
849
895
  end
850
896
 
851
897
  ::Thrift::Struct.generate_accessors self
@@ -853,19 +899,20 @@ module Hexspace
853
899
 
854
900
  class TI64Column
855
901
  include ::Thrift::Struct, ::Thrift::Struct_Union
856
- VALUES = 1
857
- NULLS = 2
902
+
903
+ VALUES_FIELD_ID = 1
904
+ NULLS_FIELD_ID = 2
858
905
 
859
906
  FIELDS = {
860
- VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::I64}},
861
- NULLS => {:type => ::Thrift::Types::STRING, :name => 'nulls', :binary => true}
907
+ VALUES_FIELD_ID => {type: ::Thrift::Types::LIST, name: "values", element: {type: ::Thrift::Types::I64}},
908
+ NULLS_FIELD_ID => {type: ::Thrift::Types::STRING, name: "nulls", binary: true},
862
909
  }
863
910
 
864
911
  def struct_fields; FIELDS; end
865
912
 
866
913
  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
914
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field values is unset!") unless @values
915
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field nulls is unset!") unless @nulls
869
916
  end
870
917
 
871
918
  ::Thrift::Struct.generate_accessors self
@@ -873,19 +920,20 @@ module Hexspace
873
920
 
874
921
  class TDoubleColumn
875
922
  include ::Thrift::Struct, ::Thrift::Struct_Union
876
- VALUES = 1
877
- NULLS = 2
923
+
924
+ VALUES_FIELD_ID = 1
925
+ NULLS_FIELD_ID = 2
878
926
 
879
927
  FIELDS = {
880
- VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::DOUBLE}},
881
- NULLS => {:type => ::Thrift::Types::STRING, :name => 'nulls', :binary => true}
928
+ VALUES_FIELD_ID => {type: ::Thrift::Types::LIST, name: "values", element: {type: ::Thrift::Types::DOUBLE}},
929
+ NULLS_FIELD_ID => {type: ::Thrift::Types::STRING, name: "nulls", binary: true},
882
930
  }
883
931
 
884
932
  def struct_fields; FIELDS; end
885
933
 
886
934
  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
935
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field values is unset!") unless @values
936
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field nulls is unset!") unless @nulls
889
937
  end
890
938
 
891
939
  ::Thrift::Struct.generate_accessors self
@@ -893,19 +941,20 @@ module Hexspace
893
941
 
894
942
  class TStringColumn
895
943
  include ::Thrift::Struct, ::Thrift::Struct_Union
896
- VALUES = 1
897
- NULLS = 2
944
+
945
+ VALUES_FIELD_ID = 1
946
+ NULLS_FIELD_ID = 2
898
947
 
899
948
  FIELDS = {
900
- VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::STRING}},
901
- NULLS => {:type => ::Thrift::Types::STRING, :name => 'nulls', :binary => true}
949
+ VALUES_FIELD_ID => {type: ::Thrift::Types::LIST, name: "values", element: {type: ::Thrift::Types::STRING}},
950
+ NULLS_FIELD_ID => {type: ::Thrift::Types::STRING, name: "nulls", binary: true},
902
951
  }
903
952
 
904
953
  def struct_fields; FIELDS; end
905
954
 
906
955
  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
956
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field values is unset!") unless @values
957
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field nulls is unset!") unless @nulls
909
958
  end
910
959
 
911
960
  ::Thrift::Struct.generate_accessors self
@@ -913,19 +962,20 @@ module Hexspace
913
962
 
914
963
  class TBinaryColumn
915
964
  include ::Thrift::Struct, ::Thrift::Struct_Union
916
- VALUES = 1
917
- NULLS = 2
965
+
966
+ VALUES_FIELD_ID = 1
967
+ NULLS_FIELD_ID = 2
918
968
 
919
969
  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}
970
+ VALUES_FIELD_ID => {type: ::Thrift::Types::LIST, name: "values", element: {type: ::Thrift::Types::STRING, binary: true}},
971
+ NULLS_FIELD_ID => {type: ::Thrift::Types::STRING, name: "nulls", binary: true},
922
972
  }
923
973
 
924
974
  def struct_fields; FIELDS; end
925
975
 
926
976
  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
977
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field values is unset!") unless @values
978
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field nulls is unset!") unless @nulls
929
979
  end
930
980
 
931
981
  ::Thrift::Struct.generate_accessors self
@@ -933,6 +983,7 @@ module Hexspace
933
983
 
934
984
  class TColumn < ::Thrift::Union
935
985
  include ::Thrift::Struct_Union
986
+
936
987
  class << self
937
988
  def boolVal(val)
938
989
  TColumn.new(:boolVal, val)
@@ -967,30 +1018,30 @@ module Hexspace
967
1018
  end
968
1019
  end
969
1020
 
970
- BOOLVAL = 1
971
- BYTEVAL = 2
972
- I16VAL = 3
973
- I32VAL = 4
974
- I64VAL = 5
975
- DOUBLEVAL = 6
976
- STRINGVAL = 7
977
- BINARYVAL = 8
1021
+ BOOLVAL_FIELD_ID = 1
1022
+ BYTEVAL_FIELD_ID = 2
1023
+ I16VAL_FIELD_ID = 3
1024
+ I32VAL_FIELD_ID = 4
1025
+ I64VAL_FIELD_ID = 5
1026
+ DOUBLEVAL_FIELD_ID = 6
1027
+ STRINGVAL_FIELD_ID = 7
1028
+ BINARYVAL_FIELD_ID = 8
978
1029
 
979
1030
  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}
1031
+ BOOLVAL_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "boolVal", class: ::Hexspace::TBoolColumn, optional: true},
1032
+ BYTEVAL_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "byteVal", class: ::Hexspace::TByteColumn, optional: true},
1033
+ I16VAL_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "i16Val", class: ::Hexspace::TI16Column, optional: true},
1034
+ I32VAL_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "i32Val", class: ::Hexspace::TI32Column, optional: true},
1035
+ I64VAL_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "i64Val", class: ::Hexspace::TI64Column, optional: true},
1036
+ DOUBLEVAL_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "doubleVal", class: ::Hexspace::TDoubleColumn, optional: true},
1037
+ STRINGVAL_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "stringVal", class: ::Hexspace::TStringColumn, optional: true},
1038
+ BINARYVAL_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "binaryVal", class: ::Hexspace::TBinaryColumn, optional: true},
988
1039
  }
989
1040
 
990
1041
  def struct_fields; FIELDS; end
991
1042
 
992
1043
  def validate
993
- raise(StandardError, 'Union fields are not set.') if get_set_field.nil? || get_value.nil?
1044
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Union fields are not set.") if get_set_field.nil? || get_value.nil?
994
1045
  end
995
1046
 
996
1047
  ::Thrift::Union.generate_accessors self
@@ -998,25 +1049,26 @@ module Hexspace
998
1049
 
999
1050
  class TRowSet
1000
1051
  include ::Thrift::Struct, ::Thrift::Struct_Union
1001
- STARTROWOFFSET = 1
1002
- ROWS = 2
1003
- COLUMNS = 3
1004
- BINARYCOLUMNS = 4
1005
- COLUMNCOUNT = 5
1052
+
1053
+ STARTROWOFFSET_FIELD_ID = 1
1054
+ ROWS_FIELD_ID = 2
1055
+ COLUMNS_FIELD_ID = 3
1056
+ BINARYCOLUMNS_FIELD_ID = 4
1057
+ COLUMNCOUNT_FIELD_ID = 5
1006
1058
 
1007
1059
  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}
1060
+ STARTROWOFFSET_FIELD_ID => {type: ::Thrift::Types::I64, name: "startRowOffset"},
1061
+ ROWS_FIELD_ID => {type: ::Thrift::Types::LIST, name: "rows", element: {type: ::Thrift::Types::STRUCT, class: ::Hexspace::TRow}},
1062
+ COLUMNS_FIELD_ID => {type: ::Thrift::Types::LIST, name: "columns", element: {type: ::Thrift::Types::STRUCT, class: ::Hexspace::TColumn}, optional: true},
1063
+ BINARYCOLUMNS_FIELD_ID => {type: ::Thrift::Types::STRING, name: "binaryColumns", binary: true, optional: true},
1064
+ COLUMNCOUNT_FIELD_ID => {type: ::Thrift::Types::I32, name: "columnCount", optional: true},
1013
1065
  }
1014
1066
 
1015
1067
  def struct_fields; FIELDS; end
1016
1068
 
1017
1069
  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
1070
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field startRowOffset is unset!") unless @startRowOffset
1071
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field rows is unset!") unless @rows
1020
1072
  end
1021
1073
 
1022
1074
  ::Thrift::Struct.generate_accessors self
@@ -1024,26 +1076,27 @@ module Hexspace
1024
1076
 
1025
1077
  class TStatus
1026
1078
  include ::Thrift::Struct, ::Thrift::Struct_Union
1027
- STATUSCODE = 1
1028
- INFOMESSAGES = 2
1029
- SQLSTATE = 3
1030
- ERRORCODE = 4
1031
- ERRORMESSAGE = 5
1079
+
1080
+ STATUSCODE_FIELD_ID = 1
1081
+ INFOMESSAGES_FIELD_ID = 2
1082
+ SQLSTATE_FIELD_ID = 3
1083
+ ERRORCODE_FIELD_ID = 4
1084
+ ERRORMESSAGE_FIELD_ID = 5
1032
1085
 
1033
1086
  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}
1087
+ STATUSCODE_FIELD_ID => {type: ::Thrift::Types::I32, name: "statusCode", enum_class: ::Hexspace::TStatusCode},
1088
+ INFOMESSAGES_FIELD_ID => {type: ::Thrift::Types::LIST, name: "infoMessages", element: {type: ::Thrift::Types::STRING}, optional: true},
1089
+ SQLSTATE_FIELD_ID => {type: ::Thrift::Types::STRING, name: "sqlState", optional: true},
1090
+ ERRORCODE_FIELD_ID => {type: ::Thrift::Types::I32, name: "errorCode", optional: true},
1091
+ ERRORMESSAGE_FIELD_ID => {type: ::Thrift::Types::STRING, name: "errorMessage", optional: true},
1039
1092
  }
1040
1093
 
1041
1094
  def struct_fields; FIELDS; end
1042
1095
 
1043
1096
  def validate
1044
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field statusCode is unset!') unless @statusCode
1097
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field statusCode is unset!") unless @statusCode
1045
1098
  unless @statusCode.nil? || ::Hexspace::TStatusCode::VALID_VALUES.include?(@statusCode)
1046
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field statusCode!')
1099
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Invalid value of field statusCode!")
1047
1100
  end
1048
1101
  end
1049
1102
 
@@ -1052,19 +1105,20 @@ module Hexspace
1052
1105
 
1053
1106
  class THandleIdentifier
1054
1107
  include ::Thrift::Struct, ::Thrift::Struct_Union
1055
- GUID = 1
1056
- SECRET = 2
1108
+
1109
+ GUID_FIELD_ID = 1
1110
+ SECRET_FIELD_ID = 2
1057
1111
 
1058
1112
  FIELDS = {
1059
- GUID => {:type => ::Thrift::Types::STRING, :name => 'guid', :binary => true},
1060
- SECRET => {:type => ::Thrift::Types::STRING, :name => 'secret', :binary => true}
1113
+ GUID_FIELD_ID => {type: ::Thrift::Types::STRING, name: "guid", binary: true},
1114
+ SECRET_FIELD_ID => {type: ::Thrift::Types::STRING, name: "secret", binary: true},
1061
1115
  }
1062
1116
 
1063
1117
  def struct_fields; FIELDS; end
1064
1118
 
1065
1119
  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
1120
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field guid is unset!") unless @guid
1121
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field secret is unset!") unless @secret
1068
1122
  end
1069
1123
 
1070
1124
  ::Thrift::Struct.generate_accessors self
@@ -1072,16 +1126,17 @@ module Hexspace
1072
1126
 
1073
1127
  class TSessionHandle
1074
1128
  include ::Thrift::Struct, ::Thrift::Struct_Union
1075
- SESSIONID = 1
1129
+
1130
+ SESSIONID_FIELD_ID = 1
1076
1131
 
1077
1132
  FIELDS = {
1078
- SESSIONID => {:type => ::Thrift::Types::STRUCT, :name => 'sessionId', :class => ::Hexspace::THandleIdentifier}
1133
+ SESSIONID_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "sessionId", class: ::Hexspace::THandleIdentifier},
1079
1134
  }
1080
1135
 
1081
1136
  def struct_fields; FIELDS; end
1082
1137
 
1083
1138
  def validate
1084
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionId is unset!') unless @sessionId
1139
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field sessionId is unset!") unless @sessionId
1085
1140
  end
1086
1141
 
1087
1142
  ::Thrift::Struct.generate_accessors self
@@ -1089,26 +1144,27 @@ module Hexspace
1089
1144
 
1090
1145
  class TOperationHandle
1091
1146
  include ::Thrift::Struct, ::Thrift::Struct_Union
1092
- OPERATIONID = 1
1093
- OPERATIONTYPE = 2
1094
- HASRESULTSET = 3
1095
- MODIFIEDROWCOUNT = 4
1147
+
1148
+ OPERATIONID_FIELD_ID = 1
1149
+ OPERATIONTYPE_FIELD_ID = 2
1150
+ HASRESULTSET_FIELD_ID = 3
1151
+ MODIFIEDROWCOUNT_FIELD_ID = 4
1096
1152
 
1097
1153
  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}
1154
+ OPERATIONID_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "operationId", class: ::Hexspace::THandleIdentifier},
1155
+ OPERATIONTYPE_FIELD_ID => {type: ::Thrift::Types::I32, name: "operationType", enum_class: ::Hexspace::TOperationType},
1156
+ HASRESULTSET_FIELD_ID => {type: ::Thrift::Types::BOOL, name: "hasResultSet"},
1157
+ MODIFIEDROWCOUNT_FIELD_ID => {type: ::Thrift::Types::DOUBLE, name: "modifiedRowCount", optional: true},
1102
1158
  }
1103
1159
 
1104
1160
  def struct_fields; FIELDS; end
1105
1161
 
1106
1162
  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?
1163
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field operationId is unset!") unless @operationId
1164
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field operationType is unset!") unless @operationType
1165
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field hasResultSet is unset!") if @hasResultSet.nil?
1110
1166
  unless @operationType.nil? || ::Hexspace::TOperationType::VALID_VALUES.include?(@operationType)
1111
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field operationType!')
1167
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Invalid value of field operationType!")
1112
1168
  end
1113
1169
  end
1114
1170
 
@@ -1117,24 +1173,25 @@ module Hexspace
1117
1173
 
1118
1174
  class TOpenSessionReq
1119
1175
  include ::Thrift::Struct, ::Thrift::Struct_Union
1120
- CLIENT_PROTOCOL = 1
1121
- USERNAME = 2
1122
- PASSWORD = 3
1123
- CONFIGURATION = 4
1176
+
1177
+ CLIENT_PROTOCOL_FIELD_ID = 1
1178
+ USERNAME_FIELD_ID = 2
1179
+ PASSWORD_FIELD_ID = 3
1180
+ CONFIGURATION_FIELD_ID = 4
1124
1181
 
1125
1182
  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}
1183
+ CLIENT_PROTOCOL_FIELD_ID => {type: ::Thrift::Types::I32, name: "client_protocol", default: 9, enum_class: ::Hexspace::TProtocolVersion},
1184
+ USERNAME_FIELD_ID => {type: ::Thrift::Types::STRING, name: "username", optional: true},
1185
+ PASSWORD_FIELD_ID => {type: ::Thrift::Types::STRING, name: "password", optional: true},
1186
+ CONFIGURATION_FIELD_ID => {type: ::Thrift::Types::MAP, name: "configuration", key: {type: ::Thrift::Types::STRING}, value: {type: ::Thrift::Types::STRING}, optional: true},
1130
1187
  }
1131
1188
 
1132
1189
  def struct_fields; FIELDS; end
1133
1190
 
1134
1191
  def validate
1135
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field client_protocol is unset!') unless @client_protocol
1192
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field client_protocol is unset!") unless @client_protocol
1136
1193
  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!')
1194
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Invalid value of field client_protocol!")
1138
1195
  end
1139
1196
  end
1140
1197
 
@@ -1143,43 +1200,83 @@ module Hexspace
1143
1200
 
1144
1201
  class TOpenSessionResp
1145
1202
  include ::Thrift::Struct, ::Thrift::Struct_Union
1146
- STATUS = 1
1147
- SERVERPROTOCOLVERSION = 2
1148
- SESSIONHANDLE = 3
1149
- CONFIGURATION = 4
1203
+
1204
+ STATUS_FIELD_ID = 1
1205
+ SERVERPROTOCOLVERSION_FIELD_ID = 2
1206
+ SESSIONHANDLE_FIELD_ID = 3
1207
+ CONFIGURATION_FIELD_ID = 4
1150
1208
 
1151
1209
  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}
1210
+ STATUS_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "status", class: ::Hexspace::TStatus},
1211
+ SERVERPROTOCOLVERSION_FIELD_ID => {type: ::Thrift::Types::I32, name: "serverProtocolVersion", default: 9, enum_class: ::Hexspace::TProtocolVersion},
1212
+ SESSIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "sessionHandle", class: ::Hexspace::TSessionHandle, optional: true},
1213
+ CONFIGURATION_FIELD_ID => {type: ::Thrift::Types::MAP, name: "configuration", key: {type: ::Thrift::Types::STRING}, value: {type: ::Thrift::Types::STRING}, optional: true},
1156
1214
  }
1157
1215
 
1158
1216
  def struct_fields; FIELDS; end
1159
1217
 
1160
1218
  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
1219
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field status is unset!") unless @status
1220
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field serverProtocolVersion is unset!") unless @serverProtocolVersion
1163
1221
  unless @serverProtocolVersion.nil? || ::Hexspace::TProtocolVersion::VALID_VALUES.include?(@serverProtocolVersion)
1164
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field serverProtocolVersion!')
1222
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Invalid value of field serverProtocolVersion!")
1165
1223
  end
1166
1224
  end
1167
1225
 
1168
1226
  ::Thrift::Struct.generate_accessors self
1169
1227
  end
1170
1228
 
1229
+ class TSetClientInfoReq
1230
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1231
+
1232
+ SESSIONHANDLE_FIELD_ID = 1
1233
+ CONFIGURATION_FIELD_ID = 2
1234
+
1235
+ FIELDS = {
1236
+ SESSIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "sessionHandle", class: ::Hexspace::TSessionHandle},
1237
+ CONFIGURATION_FIELD_ID => {type: ::Thrift::Types::MAP, name: "configuration", key: {type: ::Thrift::Types::STRING}, value: {type: ::Thrift::Types::STRING}, optional: true},
1238
+ }
1239
+
1240
+ def struct_fields; FIELDS; end
1241
+
1242
+ def validate
1243
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field sessionHandle is unset!") unless @sessionHandle
1244
+ end
1245
+
1246
+ ::Thrift::Struct.generate_accessors self
1247
+ end
1248
+
1249
+ class TSetClientInfoResp
1250
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1251
+
1252
+ STATUS_FIELD_ID = 1
1253
+
1254
+ FIELDS = {
1255
+ STATUS_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "status", class: ::Hexspace::TStatus},
1256
+ }
1257
+
1258
+ def struct_fields; FIELDS; end
1259
+
1260
+ def validate
1261
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field status is unset!") unless @status
1262
+ end
1263
+
1264
+ ::Thrift::Struct.generate_accessors self
1265
+ end
1266
+
1171
1267
  class TCloseSessionReq
1172
1268
  include ::Thrift::Struct, ::Thrift::Struct_Union
1173
- SESSIONHANDLE = 1
1269
+
1270
+ SESSIONHANDLE_FIELD_ID = 1
1174
1271
 
1175
1272
  FIELDS = {
1176
- SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hexspace::TSessionHandle}
1273
+ SESSIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "sessionHandle", class: ::Hexspace::TSessionHandle},
1177
1274
  }
1178
1275
 
1179
1276
  def struct_fields; FIELDS; end
1180
1277
 
1181
1278
  def validate
1182
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle
1279
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field sessionHandle is unset!") unless @sessionHandle
1183
1280
  end
1184
1281
 
1185
1282
  ::Thrift::Struct.generate_accessors self
@@ -1187,16 +1284,17 @@ module Hexspace
1187
1284
 
1188
1285
  class TCloseSessionResp
1189
1286
  include ::Thrift::Struct, ::Thrift::Struct_Union
1190
- STATUS = 1
1287
+
1288
+ STATUS_FIELD_ID = 1
1191
1289
 
1192
1290
  FIELDS = {
1193
- STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hexspace::TStatus}
1291
+ STATUS_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "status", class: ::Hexspace::TStatus},
1194
1292
  }
1195
1293
 
1196
1294
  def struct_fields; FIELDS; end
1197
1295
 
1198
1296
  def validate
1199
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1297
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field status is unset!") unless @status
1200
1298
  end
1201
1299
 
1202
1300
  ::Thrift::Struct.generate_accessors self
@@ -1204,6 +1302,7 @@ module Hexspace
1204
1302
 
1205
1303
  class TGetInfoValue < ::Thrift::Union
1206
1304
  include ::Thrift::Struct_Union
1305
+
1207
1306
  class << self
1208
1307
  def stringValue(val)
1209
1308
  TGetInfoValue.new(:stringValue, val)
@@ -1230,26 +1329,26 @@ module Hexspace
1230
1329
  end
1231
1330
  end
1232
1331
 
1233
- STRINGVALUE = 1
1234
- SMALLINTVALUE = 2
1235
- INTEGERBITMASK = 3
1236
- INTEGERFLAG = 4
1237
- BINARYVALUE = 5
1238
- LENVALUE = 6
1332
+ STRINGVALUE_FIELD_ID = 1
1333
+ SMALLINTVALUE_FIELD_ID = 2
1334
+ INTEGERBITMASK_FIELD_ID = 3
1335
+ INTEGERFLAG_FIELD_ID = 4
1336
+ BINARYVALUE_FIELD_ID = 5
1337
+ LENVALUE_FIELD_ID = 6
1239
1338
 
1240
1339
  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}
1340
+ STRINGVALUE_FIELD_ID => {type: ::Thrift::Types::STRING, name: "stringValue", optional: true},
1341
+ SMALLINTVALUE_FIELD_ID => {type: ::Thrift::Types::I16, name: "smallIntValue", optional: true},
1342
+ INTEGERBITMASK_FIELD_ID => {type: ::Thrift::Types::I32, name: "integerBitmask", optional: true},
1343
+ INTEGERFLAG_FIELD_ID => {type: ::Thrift::Types::I32, name: "integerFlag", optional: true},
1344
+ BINARYVALUE_FIELD_ID => {type: ::Thrift::Types::I32, name: "binaryValue", optional: true},
1345
+ LENVALUE_FIELD_ID => {type: ::Thrift::Types::I64, name: "lenValue", optional: true},
1247
1346
  }
1248
1347
 
1249
1348
  def struct_fields; FIELDS; end
1250
1349
 
1251
1350
  def validate
1252
- raise(StandardError, 'Union fields are not set.') if get_set_field.nil? || get_value.nil?
1351
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Union fields are not set.") if get_set_field.nil? || get_value.nil?
1253
1352
  end
1254
1353
 
1255
1354
  ::Thrift::Union.generate_accessors self
@@ -1257,21 +1356,22 @@ module Hexspace
1257
1356
 
1258
1357
  class TGetInfoReq
1259
1358
  include ::Thrift::Struct, ::Thrift::Struct_Union
1260
- SESSIONHANDLE = 1
1261
- INFOTYPE = 2
1359
+
1360
+ SESSIONHANDLE_FIELD_ID = 1
1361
+ INFOTYPE_FIELD_ID = 2
1262
1362
 
1263
1363
  FIELDS = {
1264
- SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hexspace::TSessionHandle},
1265
- INFOTYPE => {:type => ::Thrift::Types::I32, :name => 'infoType', :enum_class => ::Hexspace::TGetInfoType}
1364
+ SESSIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "sessionHandle", class: ::Hexspace::TSessionHandle},
1365
+ INFOTYPE_FIELD_ID => {type: ::Thrift::Types::I32, name: "infoType", enum_class: ::Hexspace::TGetInfoType},
1266
1366
  }
1267
1367
 
1268
1368
  def struct_fields; FIELDS; end
1269
1369
 
1270
1370
  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
1371
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field sessionHandle is unset!") unless @sessionHandle
1372
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field infoType is unset!") unless @infoType
1273
1373
  unless @infoType.nil? || ::Hexspace::TGetInfoType::VALID_VALUES.include?(@infoType)
1274
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field infoType!')
1374
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Invalid value of field infoType!")
1275
1375
  end
1276
1376
  end
1277
1377
 
@@ -1280,19 +1380,20 @@ module Hexspace
1280
1380
 
1281
1381
  class TGetInfoResp
1282
1382
  include ::Thrift::Struct, ::Thrift::Struct_Union
1283
- STATUS = 1
1284
- INFOVALUE = 2
1383
+
1384
+ STATUS_FIELD_ID = 1
1385
+ INFOVALUE_FIELD_ID = 2
1285
1386
 
1286
1387
  FIELDS = {
1287
- STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hexspace::TStatus},
1288
- INFOVALUE => {:type => ::Thrift::Types::STRUCT, :name => 'infoValue', :class => ::Hexspace::TGetInfoValue}
1388
+ STATUS_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "status", class: ::Hexspace::TStatus},
1389
+ INFOVALUE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "infoValue", class: ::Hexspace::TGetInfoValue},
1289
1390
  }
1290
1391
 
1291
1392
  def struct_fields; FIELDS; end
1292
1393
 
1293
1394
  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
1395
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field status is unset!") unless @status
1396
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field infoValue is unset!") unless @infoValue
1296
1397
  end
1297
1398
 
1298
1399
  ::Thrift::Struct.generate_accessors self
@@ -1300,25 +1401,26 @@ module Hexspace
1300
1401
 
1301
1402
  class TExecuteStatementReq
1302
1403
  include ::Thrift::Struct, ::Thrift::Struct_Union
1303
- SESSIONHANDLE = 1
1304
- STATEMENT = 2
1305
- CONFOVERLAY = 3
1306
- RUNASYNC = 4
1307
- QUERYTIMEOUT = 5
1404
+
1405
+ SESSIONHANDLE_FIELD_ID = 1
1406
+ STATEMENT_FIELD_ID = 2
1407
+ CONFOVERLAY_FIELD_ID = 3
1408
+ RUNASYNC_FIELD_ID = 4
1409
+ QUERYTIMEOUT_FIELD_ID = 5
1308
1410
 
1309
1411
  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}
1412
+ SESSIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "sessionHandle", class: ::Hexspace::TSessionHandle},
1413
+ STATEMENT_FIELD_ID => {type: ::Thrift::Types::STRING, name: "statement"},
1414
+ CONFOVERLAY_FIELD_ID => {type: ::Thrift::Types::MAP, name: "confOverlay", key: {type: ::Thrift::Types::STRING}, value: {type: ::Thrift::Types::STRING}, optional: true},
1415
+ RUNASYNC_FIELD_ID => {type: ::Thrift::Types::BOOL, name: "runAsync", default: false, optional: true},
1416
+ QUERYTIMEOUT_FIELD_ID => {type: ::Thrift::Types::I64, name: "queryTimeout", default: 0, optional: true},
1315
1417
  }
1316
1418
 
1317
1419
  def struct_fields; FIELDS; end
1318
1420
 
1319
1421
  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
1422
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field sessionHandle is unset!") unless @sessionHandle
1423
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field statement is unset!") unless @statement
1322
1424
  end
1323
1425
 
1324
1426
  ::Thrift::Struct.generate_accessors self
@@ -1326,18 +1428,19 @@ module Hexspace
1326
1428
 
1327
1429
  class TExecuteStatementResp
1328
1430
  include ::Thrift::Struct, ::Thrift::Struct_Union
1329
- STATUS = 1
1330
- OPERATIONHANDLE = 2
1431
+
1432
+ STATUS_FIELD_ID = 1
1433
+ OPERATIONHANDLE_FIELD_ID = 2
1331
1434
 
1332
1435
  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}
1436
+ STATUS_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "status", class: ::Hexspace::TStatus},
1437
+ OPERATIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "operationHandle", class: ::Hexspace::TOperationHandle, optional: true},
1335
1438
  }
1336
1439
 
1337
1440
  def struct_fields; FIELDS; end
1338
1441
 
1339
1442
  def validate
1340
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1443
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field status is unset!") unless @status
1341
1444
  end
1342
1445
 
1343
1446
  ::Thrift::Struct.generate_accessors self
@@ -1345,16 +1448,17 @@ module Hexspace
1345
1448
 
1346
1449
  class TGetTypeInfoReq
1347
1450
  include ::Thrift::Struct, ::Thrift::Struct_Union
1348
- SESSIONHANDLE = 1
1451
+
1452
+ SESSIONHANDLE_FIELD_ID = 1
1349
1453
 
1350
1454
  FIELDS = {
1351
- SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hexspace::TSessionHandle}
1455
+ SESSIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "sessionHandle", class: ::Hexspace::TSessionHandle},
1352
1456
  }
1353
1457
 
1354
1458
  def struct_fields; FIELDS; end
1355
1459
 
1356
1460
  def validate
1357
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle
1461
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field sessionHandle is unset!") unless @sessionHandle
1358
1462
  end
1359
1463
 
1360
1464
  ::Thrift::Struct.generate_accessors self
@@ -1362,18 +1466,112 @@ module Hexspace
1362
1466
 
1363
1467
  class TGetTypeInfoResp
1364
1468
  include ::Thrift::Struct, ::Thrift::Struct_Union
1365
- STATUS = 1
1366
- OPERATIONHANDLE = 2
1469
+
1470
+ STATUS_FIELD_ID = 1
1471
+ OPERATIONHANDLE_FIELD_ID = 2
1472
+
1473
+ FIELDS = {
1474
+ STATUS_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "status", class: ::Hexspace::TStatus},
1475
+ OPERATIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "operationHandle", class: ::Hexspace::TOperationHandle, optional: true},
1476
+ }
1477
+
1478
+ def struct_fields; FIELDS; end
1479
+
1480
+ def validate
1481
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field status is unset!") unless @status
1482
+ end
1483
+
1484
+ ::Thrift::Struct.generate_accessors self
1485
+ end
1486
+
1487
+ class TUploadDataReq
1488
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1489
+
1490
+ SESSIONHANDLE_FIELD_ID = 1
1491
+ TABLENAME_FIELD_ID = 2
1492
+ PATH_FIELD_ID = 3
1493
+ VALUES_FIELD_ID = 4
1494
+
1495
+ FIELDS = {
1496
+ SESSIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "sessionHandle", class: ::Hexspace::TSessionHandle},
1497
+ TABLENAME_FIELD_ID => {type: ::Thrift::Types::STRING, name: "tableName", optional: true},
1498
+ PATH_FIELD_ID => {type: ::Thrift::Types::STRING, name: "path", optional: true},
1499
+ VALUES_FIELD_ID => {type: ::Thrift::Types::STRING, name: "values", binary: true},
1500
+ }
1501
+
1502
+ def struct_fields; FIELDS; end
1503
+
1504
+ def validate
1505
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field sessionHandle is unset!") unless @sessionHandle
1506
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field values is unset!") unless @values
1507
+ end
1508
+
1509
+ ::Thrift::Struct.generate_accessors self
1510
+ end
1511
+
1512
+ class TUploadDataResp
1513
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1514
+
1515
+ STATUS_FIELD_ID = 1
1516
+ OPERATIONHANDLE_FIELD_ID = 2
1517
+
1518
+ FIELDS = {
1519
+ STATUS_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "status", class: ::Hexspace::TStatus},
1520
+ OPERATIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "operationHandle", class: ::Hexspace::TOperationHandle},
1521
+ }
1522
+
1523
+ def struct_fields; FIELDS; end
1524
+
1525
+ def validate
1526
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field status is unset!") unless @status
1527
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field operationHandle is unset!") unless @operationHandle
1528
+ end
1529
+
1530
+ ::Thrift::Struct.generate_accessors self
1531
+ end
1532
+
1533
+ class TDownloadDataReq
1534
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1535
+
1536
+ SESSIONHANDLE_FIELD_ID = 1
1537
+ TABLENAME_FIELD_ID = 2
1538
+ QUERY_FIELD_ID = 3
1539
+ FORMAT_FIELD_ID = 4
1540
+ DOWNLOADOPTIONS_FIELD_ID = 5
1541
+
1542
+ FIELDS = {
1543
+ SESSIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "sessionHandle", class: ::Hexspace::TSessionHandle},
1544
+ TABLENAME_FIELD_ID => {type: ::Thrift::Types::STRING, name: "tableName", optional: true},
1545
+ QUERY_FIELD_ID => {type: ::Thrift::Types::STRING, name: "query", optional: true},
1546
+ FORMAT_FIELD_ID => {type: ::Thrift::Types::STRING, name: "format", optional: true},
1547
+ DOWNLOADOPTIONS_FIELD_ID => {type: ::Thrift::Types::MAP, name: "downloadOptions", key: {type: ::Thrift::Types::STRING}, value: {type: ::Thrift::Types::STRING}, optional: true},
1548
+ }
1549
+
1550
+ def struct_fields; FIELDS; end
1551
+
1552
+ def validate
1553
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field sessionHandle is unset!") unless @sessionHandle
1554
+ end
1555
+
1556
+ ::Thrift::Struct.generate_accessors self
1557
+ end
1558
+
1559
+ class TDownloadDataResp
1560
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1561
+
1562
+ STATUS_FIELD_ID = 1
1563
+ OPERATIONHANDLE_FIELD_ID = 2
1367
1564
 
1368
1565
  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}
1566
+ STATUS_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "status", class: ::Hexspace::TStatus},
1567
+ OPERATIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "operationHandle", class: ::Hexspace::TOperationHandle},
1371
1568
  }
1372
1569
 
1373
1570
  def struct_fields; FIELDS; end
1374
1571
 
1375
1572
  def validate
1376
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1573
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field status is unset!") unless @status
1574
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field operationHandle is unset!") unless @operationHandle
1377
1575
  end
1378
1576
 
1379
1577
  ::Thrift::Struct.generate_accessors self
@@ -1381,16 +1579,17 @@ module Hexspace
1381
1579
 
1382
1580
  class TGetCatalogsReq
1383
1581
  include ::Thrift::Struct, ::Thrift::Struct_Union
1384
- SESSIONHANDLE = 1
1582
+
1583
+ SESSIONHANDLE_FIELD_ID = 1
1385
1584
 
1386
1585
  FIELDS = {
1387
- SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hexspace::TSessionHandle}
1586
+ SESSIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "sessionHandle", class: ::Hexspace::TSessionHandle},
1388
1587
  }
1389
1588
 
1390
1589
  def struct_fields; FIELDS; end
1391
1590
 
1392
1591
  def validate
1393
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle
1592
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field sessionHandle is unset!") unless @sessionHandle
1394
1593
  end
1395
1594
 
1396
1595
  ::Thrift::Struct.generate_accessors self
@@ -1398,18 +1597,19 @@ module Hexspace
1398
1597
 
1399
1598
  class TGetCatalogsResp
1400
1599
  include ::Thrift::Struct, ::Thrift::Struct_Union
1401
- STATUS = 1
1402
- OPERATIONHANDLE = 2
1600
+
1601
+ STATUS_FIELD_ID = 1
1602
+ OPERATIONHANDLE_FIELD_ID = 2
1403
1603
 
1404
1604
  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}
1605
+ STATUS_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "status", class: ::Hexspace::TStatus},
1606
+ OPERATIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "operationHandle", class: ::Hexspace::TOperationHandle, optional: true},
1407
1607
  }
1408
1608
 
1409
1609
  def struct_fields; FIELDS; end
1410
1610
 
1411
1611
  def validate
1412
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1612
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field status is unset!") unless @status
1413
1613
  end
1414
1614
 
1415
1615
  ::Thrift::Struct.generate_accessors self
@@ -1417,20 +1617,21 @@ module Hexspace
1417
1617
 
1418
1618
  class TGetSchemasReq
1419
1619
  include ::Thrift::Struct, ::Thrift::Struct_Union
1420
- SESSIONHANDLE = 1
1421
- CATALOGNAME = 2
1422
- SCHEMANAME = 3
1620
+
1621
+ SESSIONHANDLE_FIELD_ID = 1
1622
+ CATALOGNAME_FIELD_ID = 2
1623
+ SCHEMANAME_FIELD_ID = 3
1423
1624
 
1424
1625
  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}
1626
+ SESSIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "sessionHandle", class: ::Hexspace::TSessionHandle},
1627
+ CATALOGNAME_FIELD_ID => {type: ::Thrift::Types::STRING, name: "catalogName", optional: true},
1628
+ SCHEMANAME_FIELD_ID => {type: ::Thrift::Types::STRING, name: "schemaName", optional: true},
1428
1629
  }
1429
1630
 
1430
1631
  def struct_fields; FIELDS; end
1431
1632
 
1432
1633
  def validate
1433
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle
1634
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field sessionHandle is unset!") unless @sessionHandle
1434
1635
  end
1435
1636
 
1436
1637
  ::Thrift::Struct.generate_accessors self
@@ -1438,18 +1639,19 @@ module Hexspace
1438
1639
 
1439
1640
  class TGetSchemasResp
1440
1641
  include ::Thrift::Struct, ::Thrift::Struct_Union
1441
- STATUS = 1
1442
- OPERATIONHANDLE = 2
1642
+
1643
+ STATUS_FIELD_ID = 1
1644
+ OPERATIONHANDLE_FIELD_ID = 2
1443
1645
 
1444
1646
  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}
1647
+ STATUS_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "status", class: ::Hexspace::TStatus},
1648
+ OPERATIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "operationHandle", class: ::Hexspace::TOperationHandle, optional: true},
1447
1649
  }
1448
1650
 
1449
1651
  def struct_fields; FIELDS; end
1450
1652
 
1451
1653
  def validate
1452
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1654
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field status is unset!") unless @status
1453
1655
  end
1454
1656
 
1455
1657
  ::Thrift::Struct.generate_accessors self
@@ -1457,24 +1659,25 @@ module Hexspace
1457
1659
 
1458
1660
  class TGetTablesReq
1459
1661
  include ::Thrift::Struct, ::Thrift::Struct_Union
1460
- SESSIONHANDLE = 1
1461
- CATALOGNAME = 2
1462
- SCHEMANAME = 3
1463
- TABLENAME = 4
1464
- TABLETYPES = 5
1662
+
1663
+ SESSIONHANDLE_FIELD_ID = 1
1664
+ CATALOGNAME_FIELD_ID = 2
1665
+ SCHEMANAME_FIELD_ID = 3
1666
+ TABLENAME_FIELD_ID = 4
1667
+ TABLETYPES_FIELD_ID = 5
1465
1668
 
1466
1669
  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}
1670
+ SESSIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "sessionHandle", class: ::Hexspace::TSessionHandle},
1671
+ CATALOGNAME_FIELD_ID => {type: ::Thrift::Types::STRING, name: "catalogName", optional: true},
1672
+ SCHEMANAME_FIELD_ID => {type: ::Thrift::Types::STRING, name: "schemaName", optional: true},
1673
+ TABLENAME_FIELD_ID => {type: ::Thrift::Types::STRING, name: "tableName", optional: true},
1674
+ TABLETYPES_FIELD_ID => {type: ::Thrift::Types::LIST, name: "tableTypes", element: {type: ::Thrift::Types::STRING}, optional: true},
1472
1675
  }
1473
1676
 
1474
1677
  def struct_fields; FIELDS; end
1475
1678
 
1476
1679
  def validate
1477
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle
1680
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field sessionHandle is unset!") unless @sessionHandle
1478
1681
  end
1479
1682
 
1480
1683
  ::Thrift::Struct.generate_accessors self
@@ -1482,18 +1685,19 @@ module Hexspace
1482
1685
 
1483
1686
  class TGetTablesResp
1484
1687
  include ::Thrift::Struct, ::Thrift::Struct_Union
1485
- STATUS = 1
1486
- OPERATIONHANDLE = 2
1688
+
1689
+ STATUS_FIELD_ID = 1
1690
+ OPERATIONHANDLE_FIELD_ID = 2
1487
1691
 
1488
1692
  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}
1693
+ STATUS_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "status", class: ::Hexspace::TStatus},
1694
+ OPERATIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "operationHandle", class: ::Hexspace::TOperationHandle, optional: true},
1491
1695
  }
1492
1696
 
1493
1697
  def struct_fields; FIELDS; end
1494
1698
 
1495
1699
  def validate
1496
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1700
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field status is unset!") unless @status
1497
1701
  end
1498
1702
 
1499
1703
  ::Thrift::Struct.generate_accessors self
@@ -1501,16 +1705,17 @@ module Hexspace
1501
1705
 
1502
1706
  class TGetTableTypesReq
1503
1707
  include ::Thrift::Struct, ::Thrift::Struct_Union
1504
- SESSIONHANDLE = 1
1708
+
1709
+ SESSIONHANDLE_FIELD_ID = 1
1505
1710
 
1506
1711
  FIELDS = {
1507
- SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hexspace::TSessionHandle}
1712
+ SESSIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "sessionHandle", class: ::Hexspace::TSessionHandle},
1508
1713
  }
1509
1714
 
1510
1715
  def struct_fields; FIELDS; end
1511
1716
 
1512
1717
  def validate
1513
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle
1718
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field sessionHandle is unset!") unless @sessionHandle
1514
1719
  end
1515
1720
 
1516
1721
  ::Thrift::Struct.generate_accessors self
@@ -1518,18 +1723,19 @@ module Hexspace
1518
1723
 
1519
1724
  class TGetTableTypesResp
1520
1725
  include ::Thrift::Struct, ::Thrift::Struct_Union
1521
- STATUS = 1
1522
- OPERATIONHANDLE = 2
1726
+
1727
+ STATUS_FIELD_ID = 1
1728
+ OPERATIONHANDLE_FIELD_ID = 2
1523
1729
 
1524
1730
  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}
1731
+ STATUS_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "status", class: ::Hexspace::TStatus},
1732
+ OPERATIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "operationHandle", class: ::Hexspace::TOperationHandle, optional: true},
1527
1733
  }
1528
1734
 
1529
1735
  def struct_fields; FIELDS; end
1530
1736
 
1531
1737
  def validate
1532
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1738
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field status is unset!") unless @status
1533
1739
  end
1534
1740
 
1535
1741
  ::Thrift::Struct.generate_accessors self
@@ -1537,24 +1743,25 @@ module Hexspace
1537
1743
 
1538
1744
  class TGetColumnsReq
1539
1745
  include ::Thrift::Struct, ::Thrift::Struct_Union
1540
- SESSIONHANDLE = 1
1541
- CATALOGNAME = 2
1542
- SCHEMANAME = 3
1543
- TABLENAME = 4
1544
- COLUMNNAME = 5
1746
+
1747
+ SESSIONHANDLE_FIELD_ID = 1
1748
+ CATALOGNAME_FIELD_ID = 2
1749
+ SCHEMANAME_FIELD_ID = 3
1750
+ TABLENAME_FIELD_ID = 4
1751
+ COLUMNNAME_FIELD_ID = 5
1545
1752
 
1546
1753
  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}
1754
+ SESSIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "sessionHandle", class: ::Hexspace::TSessionHandle},
1755
+ CATALOGNAME_FIELD_ID => {type: ::Thrift::Types::STRING, name: "catalogName", optional: true},
1756
+ SCHEMANAME_FIELD_ID => {type: ::Thrift::Types::STRING, name: "schemaName", optional: true},
1757
+ TABLENAME_FIELD_ID => {type: ::Thrift::Types::STRING, name: "tableName", optional: true},
1758
+ COLUMNNAME_FIELD_ID => {type: ::Thrift::Types::STRING, name: "columnName", optional: true},
1552
1759
  }
1553
1760
 
1554
1761
  def struct_fields; FIELDS; end
1555
1762
 
1556
1763
  def validate
1557
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle
1764
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field sessionHandle is unset!") unless @sessionHandle
1558
1765
  end
1559
1766
 
1560
1767
  ::Thrift::Struct.generate_accessors self
@@ -1562,18 +1769,19 @@ module Hexspace
1562
1769
 
1563
1770
  class TGetColumnsResp
1564
1771
  include ::Thrift::Struct, ::Thrift::Struct_Union
1565
- STATUS = 1
1566
- OPERATIONHANDLE = 2
1772
+
1773
+ STATUS_FIELD_ID = 1
1774
+ OPERATIONHANDLE_FIELD_ID = 2
1567
1775
 
1568
1776
  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}
1777
+ STATUS_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "status", class: ::Hexspace::TStatus},
1778
+ OPERATIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "operationHandle", class: ::Hexspace::TOperationHandle, optional: true},
1571
1779
  }
1572
1780
 
1573
1781
  def struct_fields; FIELDS; end
1574
1782
 
1575
1783
  def validate
1576
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1784
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field status is unset!") unless @status
1577
1785
  end
1578
1786
 
1579
1787
  ::Thrift::Struct.generate_accessors self
@@ -1581,23 +1789,24 @@ module Hexspace
1581
1789
 
1582
1790
  class TGetFunctionsReq
1583
1791
  include ::Thrift::Struct, ::Thrift::Struct_Union
1584
- SESSIONHANDLE = 1
1585
- CATALOGNAME = 2
1586
- SCHEMANAME = 3
1587
- FUNCTIONNAME = 4
1792
+
1793
+ SESSIONHANDLE_FIELD_ID = 1
1794
+ CATALOGNAME_FIELD_ID = 2
1795
+ SCHEMANAME_FIELD_ID = 3
1796
+ FUNCTIONNAME_FIELD_ID = 4
1588
1797
 
1589
1798
  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'}
1799
+ SESSIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "sessionHandle", class: ::Hexspace::TSessionHandle},
1800
+ CATALOGNAME_FIELD_ID => {type: ::Thrift::Types::STRING, name: "catalogName", optional: true},
1801
+ SCHEMANAME_FIELD_ID => {type: ::Thrift::Types::STRING, name: "schemaName", optional: true},
1802
+ FUNCTIONNAME_FIELD_ID => {type: ::Thrift::Types::STRING, name: "functionName"},
1594
1803
  }
1595
1804
 
1596
1805
  def struct_fields; FIELDS; end
1597
1806
 
1598
1807
  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
1808
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field sessionHandle is unset!") unless @sessionHandle
1809
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field functionName is unset!") unless @functionName
1601
1810
  end
1602
1811
 
1603
1812
  ::Thrift::Struct.generate_accessors self
@@ -1605,18 +1814,19 @@ module Hexspace
1605
1814
 
1606
1815
  class TGetFunctionsResp
1607
1816
  include ::Thrift::Struct, ::Thrift::Struct_Union
1608
- STATUS = 1
1609
- OPERATIONHANDLE = 2
1817
+
1818
+ STATUS_FIELD_ID = 1
1819
+ OPERATIONHANDLE_FIELD_ID = 2
1610
1820
 
1611
1821
  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}
1822
+ STATUS_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "status", class: ::Hexspace::TStatus},
1823
+ OPERATIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "operationHandle", class: ::Hexspace::TOperationHandle, optional: true},
1614
1824
  }
1615
1825
 
1616
1826
  def struct_fields; FIELDS; end
1617
1827
 
1618
1828
  def validate
1619
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1829
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field status is unset!") unless @status
1620
1830
  end
1621
1831
 
1622
1832
  ::Thrift::Struct.generate_accessors self
@@ -1624,22 +1834,23 @@ module Hexspace
1624
1834
 
1625
1835
  class TGetPrimaryKeysReq
1626
1836
  include ::Thrift::Struct, ::Thrift::Struct_Union
1627
- SESSIONHANDLE = 1
1628
- CATALOGNAME = 2
1629
- SCHEMANAME = 3
1630
- TABLENAME = 4
1837
+
1838
+ SESSIONHANDLE_FIELD_ID = 1
1839
+ CATALOGNAME_FIELD_ID = 2
1840
+ SCHEMANAME_FIELD_ID = 3
1841
+ TABLENAME_FIELD_ID = 4
1631
1842
 
1632
1843
  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}
1844
+ SESSIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "sessionHandle", class: ::Hexspace::TSessionHandle},
1845
+ CATALOGNAME_FIELD_ID => {type: ::Thrift::Types::STRING, name: "catalogName", optional: true},
1846
+ SCHEMANAME_FIELD_ID => {type: ::Thrift::Types::STRING, name: "schemaName", optional: true},
1847
+ TABLENAME_FIELD_ID => {type: ::Thrift::Types::STRING, name: "tableName", optional: true},
1637
1848
  }
1638
1849
 
1639
1850
  def struct_fields; FIELDS; end
1640
1851
 
1641
1852
  def validate
1642
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle
1853
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field sessionHandle is unset!") unless @sessionHandle
1643
1854
  end
1644
1855
 
1645
1856
  ::Thrift::Struct.generate_accessors self
@@ -1647,18 +1858,19 @@ module Hexspace
1647
1858
 
1648
1859
  class TGetPrimaryKeysResp
1649
1860
  include ::Thrift::Struct, ::Thrift::Struct_Union
1650
- STATUS = 1
1651
- OPERATIONHANDLE = 2
1861
+
1862
+ STATUS_FIELD_ID = 1
1863
+ OPERATIONHANDLE_FIELD_ID = 2
1652
1864
 
1653
1865
  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}
1866
+ STATUS_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "status", class: ::Hexspace::TStatus},
1867
+ OPERATIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "operationHandle", class: ::Hexspace::TOperationHandle, optional: true},
1656
1868
  }
1657
1869
 
1658
1870
  def struct_fields; FIELDS; end
1659
1871
 
1660
1872
  def validate
1661
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1873
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field status is unset!") unless @status
1662
1874
  end
1663
1875
 
1664
1876
  ::Thrift::Struct.generate_accessors self
@@ -1666,28 +1878,29 @@ module Hexspace
1666
1878
 
1667
1879
  class TGetCrossReferenceReq
1668
1880
  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
1881
+
1882
+ SESSIONHANDLE_FIELD_ID = 1
1883
+ PARENTCATALOGNAME_FIELD_ID = 2
1884
+ PARENTSCHEMANAME_FIELD_ID = 3
1885
+ PARENTTABLENAME_FIELD_ID = 4
1886
+ FOREIGNCATALOGNAME_FIELD_ID = 5
1887
+ FOREIGNSCHEMANAME_FIELD_ID = 6
1888
+ FOREIGNTABLENAME_FIELD_ID = 7
1676
1889
 
1677
1890
  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}
1891
+ SESSIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "sessionHandle", class: ::Hexspace::TSessionHandle},
1892
+ PARENTCATALOGNAME_FIELD_ID => {type: ::Thrift::Types::STRING, name: "parentCatalogName", optional: true},
1893
+ PARENTSCHEMANAME_FIELD_ID => {type: ::Thrift::Types::STRING, name: "parentSchemaName", optional: true},
1894
+ PARENTTABLENAME_FIELD_ID => {type: ::Thrift::Types::STRING, name: "parentTableName", optional: true},
1895
+ FOREIGNCATALOGNAME_FIELD_ID => {type: ::Thrift::Types::STRING, name: "foreignCatalogName", optional: true},
1896
+ FOREIGNSCHEMANAME_FIELD_ID => {type: ::Thrift::Types::STRING, name: "foreignSchemaName", optional: true},
1897
+ FOREIGNTABLENAME_FIELD_ID => {type: ::Thrift::Types::STRING, name: "foreignTableName", optional: true},
1685
1898
  }
1686
1899
 
1687
1900
  def struct_fields; FIELDS; end
1688
1901
 
1689
1902
  def validate
1690
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle
1903
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field sessionHandle is unset!") unless @sessionHandle
1691
1904
  end
1692
1905
 
1693
1906
  ::Thrift::Struct.generate_accessors self
@@ -1695,18 +1908,19 @@ module Hexspace
1695
1908
 
1696
1909
  class TGetCrossReferenceResp
1697
1910
  include ::Thrift::Struct, ::Thrift::Struct_Union
1698
- STATUS = 1
1699
- OPERATIONHANDLE = 2
1911
+
1912
+ STATUS_FIELD_ID = 1
1913
+ OPERATIONHANDLE_FIELD_ID = 2
1700
1914
 
1701
1915
  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}
1916
+ STATUS_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "status", class: ::Hexspace::TStatus},
1917
+ OPERATIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "operationHandle", class: ::Hexspace::TOperationHandle, optional: true},
1704
1918
  }
1705
1919
 
1706
1920
  def struct_fields; FIELDS; end
1707
1921
 
1708
1922
  def validate
1709
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1923
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field status is unset!") unless @status
1710
1924
  end
1711
1925
 
1712
1926
  ::Thrift::Struct.generate_accessors self
@@ -1714,18 +1928,19 @@ module Hexspace
1714
1928
 
1715
1929
  class TGetOperationStatusReq
1716
1930
  include ::Thrift::Struct, ::Thrift::Struct_Union
1717
- OPERATIONHANDLE = 1
1718
- GETPROGRESSUPDATE = 2
1931
+
1932
+ OPERATIONHANDLE_FIELD_ID = 1
1933
+ GETPROGRESSUPDATE_FIELD_ID = 2
1719
1934
 
1720
1935
  FIELDS = {
1721
- OPERATIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'operationHandle', :class => ::Hexspace::TOperationHandle},
1722
- GETPROGRESSUPDATE => {:type => ::Thrift::Types::BOOL, :name => 'getProgressUpdate', :optional => true}
1936
+ OPERATIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "operationHandle", class: ::Hexspace::TOperationHandle},
1937
+ GETPROGRESSUPDATE_FIELD_ID => {type: ::Thrift::Types::BOOL, name: "getProgressUpdate", optional: true},
1723
1938
  }
1724
1939
 
1725
1940
  def struct_fields; FIELDS; end
1726
1941
 
1727
1942
  def validate
1728
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field operationHandle is unset!') unless @operationHandle
1943
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field operationHandle is unset!") unless @operationHandle
1729
1944
  end
1730
1945
 
1731
1946
  ::Thrift::Struct.generate_accessors self
@@ -1733,36 +1948,39 @@ module Hexspace
1733
1948
 
1734
1949
  class TGetOperationStatusResp
1735
1950
  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
1951
+
1952
+ STATUS_FIELD_ID = 1
1953
+ OPERATIONSTATE_FIELD_ID = 2
1954
+ SQLSTATE_FIELD_ID = 3
1955
+ ERRORCODE_FIELD_ID = 4
1956
+ ERRORMESSAGE_FIELD_ID = 5
1957
+ TASKSTATUS_FIELD_ID = 6
1958
+ OPERATIONSTARTED_FIELD_ID = 7
1959
+ OPERATIONCOMPLETED_FIELD_ID = 8
1960
+ HASRESULTSET_FIELD_ID = 9
1961
+ PROGRESSUPDATERESPONSE_FIELD_ID = 10
1962
+ NUMMODIFIEDROWS_FIELD_ID = 11
1746
1963
 
1747
1964
  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}
1965
+ STATUS_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "status", class: ::Hexspace::TStatus},
1966
+ OPERATIONSTATE_FIELD_ID => {type: ::Thrift::Types::I32, name: "operationState", optional: true, enum_class: ::Hexspace::TOperationState},
1967
+ SQLSTATE_FIELD_ID => {type: ::Thrift::Types::STRING, name: "sqlState", optional: true},
1968
+ ERRORCODE_FIELD_ID => {type: ::Thrift::Types::I32, name: "errorCode", optional: true},
1969
+ ERRORMESSAGE_FIELD_ID => {type: ::Thrift::Types::STRING, name: "errorMessage", optional: true},
1970
+ TASKSTATUS_FIELD_ID => {type: ::Thrift::Types::STRING, name: "taskStatus", optional: true},
1971
+ OPERATIONSTARTED_FIELD_ID => {type: ::Thrift::Types::I64, name: "operationStarted", optional: true},
1972
+ OPERATIONCOMPLETED_FIELD_ID => {type: ::Thrift::Types::I64, name: "operationCompleted", optional: true},
1973
+ HASRESULTSET_FIELD_ID => {type: ::Thrift::Types::BOOL, name: "hasResultSet", optional: true},
1974
+ PROGRESSUPDATERESPONSE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "progressUpdateResponse", class: ::Hexspace::TProgressUpdateResp, optional: true},
1975
+ NUMMODIFIEDROWS_FIELD_ID => {type: ::Thrift::Types::I64, name: "numModifiedRows", optional: true},
1758
1976
  }
1759
1977
 
1760
1978
  def struct_fields; FIELDS; end
1761
1979
 
1762
1980
  def validate
1763
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
1981
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field status is unset!") unless @status
1764
1982
  unless @operationState.nil? || ::Hexspace::TOperationState::VALID_VALUES.include?(@operationState)
1765
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field operationState!')
1983
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Invalid value of field operationState!")
1766
1984
  end
1767
1985
  end
1768
1986
 
@@ -1771,16 +1989,17 @@ module Hexspace
1771
1989
 
1772
1990
  class TCancelOperationReq
1773
1991
  include ::Thrift::Struct, ::Thrift::Struct_Union
1774
- OPERATIONHANDLE = 1
1992
+
1993
+ OPERATIONHANDLE_FIELD_ID = 1
1775
1994
 
1776
1995
  FIELDS = {
1777
- OPERATIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'operationHandle', :class => ::Hexspace::TOperationHandle}
1996
+ OPERATIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "operationHandle", class: ::Hexspace::TOperationHandle},
1778
1997
  }
1779
1998
 
1780
1999
  def struct_fields; FIELDS; end
1781
2000
 
1782
2001
  def validate
1783
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field operationHandle is unset!') unless @operationHandle
2002
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field operationHandle is unset!") unless @operationHandle
1784
2003
  end
1785
2004
 
1786
2005
  ::Thrift::Struct.generate_accessors self
@@ -1788,16 +2007,17 @@ module Hexspace
1788
2007
 
1789
2008
  class TCancelOperationResp
1790
2009
  include ::Thrift::Struct, ::Thrift::Struct_Union
1791
- STATUS = 1
2010
+
2011
+ STATUS_FIELD_ID = 1
1792
2012
 
1793
2013
  FIELDS = {
1794
- STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hexspace::TStatus}
2014
+ STATUS_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "status", class: ::Hexspace::TStatus},
1795
2015
  }
1796
2016
 
1797
2017
  def struct_fields; FIELDS; end
1798
2018
 
1799
2019
  def validate
1800
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
2020
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field status is unset!") unless @status
1801
2021
  end
1802
2022
 
1803
2023
  ::Thrift::Struct.generate_accessors self
@@ -1805,16 +2025,17 @@ module Hexspace
1805
2025
 
1806
2026
  class TCloseOperationReq
1807
2027
  include ::Thrift::Struct, ::Thrift::Struct_Union
1808
- OPERATIONHANDLE = 1
2028
+
2029
+ OPERATIONHANDLE_FIELD_ID = 1
1809
2030
 
1810
2031
  FIELDS = {
1811
- OPERATIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'operationHandle', :class => ::Hexspace::TOperationHandle}
2032
+ OPERATIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "operationHandle", class: ::Hexspace::TOperationHandle},
1812
2033
  }
1813
2034
 
1814
2035
  def struct_fields; FIELDS; end
1815
2036
 
1816
2037
  def validate
1817
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field operationHandle is unset!') unless @operationHandle
2038
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field operationHandle is unset!") unless @operationHandle
1818
2039
  end
1819
2040
 
1820
2041
  ::Thrift::Struct.generate_accessors self
@@ -1822,16 +2043,17 @@ module Hexspace
1822
2043
 
1823
2044
  class TCloseOperationResp
1824
2045
  include ::Thrift::Struct, ::Thrift::Struct_Union
1825
- STATUS = 1
2046
+
2047
+ STATUS_FIELD_ID = 1
1826
2048
 
1827
2049
  FIELDS = {
1828
- STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hexspace::TStatus}
2050
+ STATUS_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "status", class: ::Hexspace::TStatus},
1829
2051
  }
1830
2052
 
1831
2053
  def struct_fields; FIELDS; end
1832
2054
 
1833
2055
  def validate
1834
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
2056
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field status is unset!") unless @status
1835
2057
  end
1836
2058
 
1837
2059
  ::Thrift::Struct.generate_accessors self
@@ -1839,16 +2061,17 @@ module Hexspace
1839
2061
 
1840
2062
  class TGetResultSetMetadataReq
1841
2063
  include ::Thrift::Struct, ::Thrift::Struct_Union
1842
- OPERATIONHANDLE = 1
2064
+
2065
+ OPERATIONHANDLE_FIELD_ID = 1
1843
2066
 
1844
2067
  FIELDS = {
1845
- OPERATIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'operationHandle', :class => ::Hexspace::TOperationHandle}
2068
+ OPERATIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "operationHandle", class: ::Hexspace::TOperationHandle},
1846
2069
  }
1847
2070
 
1848
2071
  def struct_fields; FIELDS; end
1849
2072
 
1850
2073
  def validate
1851
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field operationHandle is unset!') unless @operationHandle
2074
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field operationHandle is unset!") unless @operationHandle
1852
2075
  end
1853
2076
 
1854
2077
  ::Thrift::Struct.generate_accessors self
@@ -1856,18 +2079,19 @@ module Hexspace
1856
2079
 
1857
2080
  class TGetResultSetMetadataResp
1858
2081
  include ::Thrift::Struct, ::Thrift::Struct_Union
1859
- STATUS = 1
1860
- SCHEMA = 2
2082
+
2083
+ STATUS_FIELD_ID = 1
2084
+ SCHEMA_FIELD_ID = 2
1861
2085
 
1862
2086
  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}
2087
+ STATUS_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "status", class: ::Hexspace::TStatus},
2088
+ SCHEMA_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "schema", class: ::Hexspace::TTableSchema, optional: true},
1865
2089
  }
1866
2090
 
1867
2091
  def struct_fields; FIELDS; end
1868
2092
 
1869
2093
  def validate
1870
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
2094
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field status is unset!") unless @status
1871
2095
  end
1872
2096
 
1873
2097
  ::Thrift::Struct.generate_accessors self
@@ -1875,26 +2099,27 @@ module Hexspace
1875
2099
 
1876
2100
  class TFetchResultsReq
1877
2101
  include ::Thrift::Struct, ::Thrift::Struct_Union
1878
- OPERATIONHANDLE = 1
1879
- ORIENTATION = 2
1880
- MAXROWS = 3
1881
- FETCHTYPE = 4
2102
+
2103
+ OPERATIONHANDLE_FIELD_ID = 1
2104
+ ORIENTATION_FIELD_ID = 2
2105
+ MAXROWS_FIELD_ID = 3
2106
+ FETCHTYPE_FIELD_ID = 4
1882
2107
 
1883
2108
  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}
2109
+ OPERATIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "operationHandle", class: ::Hexspace::TOperationHandle},
2110
+ ORIENTATION_FIELD_ID => {type: ::Thrift::Types::I32, name: "orientation", default: 0, enum_class: ::Hexspace::TFetchOrientation},
2111
+ MAXROWS_FIELD_ID => {type: ::Thrift::Types::I64, name: "maxRows"},
2112
+ FETCHTYPE_FIELD_ID => {type: ::Thrift::Types::I16, name: "fetchType", default: 0, optional: true},
1888
2113
  }
1889
2114
 
1890
2115
  def struct_fields; FIELDS; end
1891
2116
 
1892
2117
  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
2118
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field operationHandle is unset!") unless @operationHandle
2119
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field orientation is unset!") unless @orientation
2120
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field maxRows is unset!") unless @maxRows
1896
2121
  unless @orientation.nil? || ::Hexspace::TFetchOrientation::VALID_VALUES.include?(@orientation)
1897
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field orientation!')
2122
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Invalid value of field orientation!")
1898
2123
  end
1899
2124
  end
1900
2125
 
@@ -1903,20 +2128,21 @@ module Hexspace
1903
2128
 
1904
2129
  class TFetchResultsResp
1905
2130
  include ::Thrift::Struct, ::Thrift::Struct_Union
1906
- STATUS = 1
1907
- HASMOREROWS = 2
1908
- RESULTS = 3
2131
+
2132
+ STATUS_FIELD_ID = 1
2133
+ HASMOREROWS_FIELD_ID = 2
2134
+ RESULTS_FIELD_ID = 3
1909
2135
 
1910
2136
  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}
2137
+ STATUS_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "status", class: ::Hexspace::TStatus},
2138
+ HASMOREROWS_FIELD_ID => {type: ::Thrift::Types::BOOL, name: "hasMoreRows", optional: true},
2139
+ RESULTS_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "results", class: ::Hexspace::TRowSet, optional: true},
1914
2140
  }
1915
2141
 
1916
2142
  def struct_fields; FIELDS; end
1917
2143
 
1918
2144
  def validate
1919
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
2145
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field status is unset!") unless @status
1920
2146
  end
1921
2147
 
1922
2148
  ::Thrift::Struct.generate_accessors self
@@ -1924,22 +2150,23 @@ module Hexspace
1924
2150
 
1925
2151
  class TGetDelegationTokenReq
1926
2152
  include ::Thrift::Struct, ::Thrift::Struct_Union
1927
- SESSIONHANDLE = 1
1928
- OWNER = 2
1929
- RENEWER = 3
2153
+
2154
+ SESSIONHANDLE_FIELD_ID = 1
2155
+ OWNER_FIELD_ID = 2
2156
+ RENEWER_FIELD_ID = 3
1930
2157
 
1931
2158
  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'}
2159
+ SESSIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "sessionHandle", class: ::Hexspace::TSessionHandle},
2160
+ OWNER_FIELD_ID => {type: ::Thrift::Types::STRING, name: "owner"},
2161
+ RENEWER_FIELD_ID => {type: ::Thrift::Types::STRING, name: "renewer"},
1935
2162
  }
1936
2163
 
1937
2164
  def struct_fields; FIELDS; end
1938
2165
 
1939
2166
  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
2167
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field sessionHandle is unset!") unless @sessionHandle
2168
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field owner is unset!") unless @owner
2169
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field renewer is unset!") unless @renewer
1943
2170
  end
1944
2171
 
1945
2172
  ::Thrift::Struct.generate_accessors self
@@ -1947,18 +2174,19 @@ module Hexspace
1947
2174
 
1948
2175
  class TGetDelegationTokenResp
1949
2176
  include ::Thrift::Struct, ::Thrift::Struct_Union
1950
- STATUS = 1
1951
- DELEGATIONTOKEN = 2
2177
+
2178
+ STATUS_FIELD_ID = 1
2179
+ DELEGATIONTOKEN_FIELD_ID = 2
1952
2180
 
1953
2181
  FIELDS = {
1954
- STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hexspace::TStatus},
1955
- DELEGATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'delegationToken', :optional => true}
2182
+ STATUS_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "status", class: ::Hexspace::TStatus},
2183
+ DELEGATIONTOKEN_FIELD_ID => {type: ::Thrift::Types::STRING, name: "delegationToken", optional: true},
1956
2184
  }
1957
2185
 
1958
2186
  def struct_fields; FIELDS; end
1959
2187
 
1960
2188
  def validate
1961
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
2189
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field status is unset!") unless @status
1962
2190
  end
1963
2191
 
1964
2192
  ::Thrift::Struct.generate_accessors self
@@ -1966,19 +2194,20 @@ module Hexspace
1966
2194
 
1967
2195
  class TCancelDelegationTokenReq
1968
2196
  include ::Thrift::Struct, ::Thrift::Struct_Union
1969
- SESSIONHANDLE = 1
1970
- DELEGATIONTOKEN = 2
2197
+
2198
+ SESSIONHANDLE_FIELD_ID = 1
2199
+ DELEGATIONTOKEN_FIELD_ID = 2
1971
2200
 
1972
2201
  FIELDS = {
1973
- SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hexspace::TSessionHandle},
1974
- DELEGATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'delegationToken'}
2202
+ SESSIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "sessionHandle", class: ::Hexspace::TSessionHandle},
2203
+ DELEGATIONTOKEN_FIELD_ID => {type: ::Thrift::Types::STRING, name: "delegationToken"},
1975
2204
  }
1976
2205
 
1977
2206
  def struct_fields; FIELDS; end
1978
2207
 
1979
2208
  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
2209
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field sessionHandle is unset!") unless @sessionHandle
2210
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field delegationToken is unset!") unless @delegationToken
1982
2211
  end
1983
2212
 
1984
2213
  ::Thrift::Struct.generate_accessors self
@@ -1986,16 +2215,17 @@ module Hexspace
1986
2215
 
1987
2216
  class TCancelDelegationTokenResp
1988
2217
  include ::Thrift::Struct, ::Thrift::Struct_Union
1989
- STATUS = 1
2218
+
2219
+ STATUS_FIELD_ID = 1
1990
2220
 
1991
2221
  FIELDS = {
1992
- STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hexspace::TStatus}
2222
+ STATUS_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "status", class: ::Hexspace::TStatus},
1993
2223
  }
1994
2224
 
1995
2225
  def struct_fields; FIELDS; end
1996
2226
 
1997
2227
  def validate
1998
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
2228
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field status is unset!") unless @status
1999
2229
  end
2000
2230
 
2001
2231
  ::Thrift::Struct.generate_accessors self
@@ -2003,19 +2233,20 @@ module Hexspace
2003
2233
 
2004
2234
  class TRenewDelegationTokenReq
2005
2235
  include ::Thrift::Struct, ::Thrift::Struct_Union
2006
- SESSIONHANDLE = 1
2007
- DELEGATIONTOKEN = 2
2236
+
2237
+ SESSIONHANDLE_FIELD_ID = 1
2238
+ DELEGATIONTOKEN_FIELD_ID = 2
2008
2239
 
2009
2240
  FIELDS = {
2010
- SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hexspace::TSessionHandle},
2011
- DELEGATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'delegationToken'}
2241
+ SESSIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "sessionHandle", class: ::Hexspace::TSessionHandle},
2242
+ DELEGATIONTOKEN_FIELD_ID => {type: ::Thrift::Types::STRING, name: "delegationToken"},
2012
2243
  }
2013
2244
 
2014
2245
  def struct_fields; FIELDS; end
2015
2246
 
2016
2247
  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
2248
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field sessionHandle is unset!") unless @sessionHandle
2249
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field delegationToken is unset!") unless @delegationToken
2019
2250
  end
2020
2251
 
2021
2252
  ::Thrift::Struct.generate_accessors self
@@ -2023,16 +2254,17 @@ module Hexspace
2023
2254
 
2024
2255
  class TRenewDelegationTokenResp
2025
2256
  include ::Thrift::Struct, ::Thrift::Struct_Union
2026
- STATUS = 1
2257
+
2258
+ STATUS_FIELD_ID = 1
2027
2259
 
2028
2260
  FIELDS = {
2029
- STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Hexspace::TStatus}
2261
+ STATUS_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "status", class: ::Hexspace::TStatus},
2030
2262
  }
2031
2263
 
2032
2264
  def struct_fields; FIELDS; end
2033
2265
 
2034
2266
  def validate
2035
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
2267
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field status is unset!") unless @status
2036
2268
  end
2037
2269
 
2038
2270
  ::Thrift::Struct.generate_accessors self
@@ -2040,37 +2272,73 @@ module Hexspace
2040
2272
 
2041
2273
  class TProgressUpdateResp
2042
2274
  include ::Thrift::Struct, ::Thrift::Struct_Union
2043
- HEADERNAMES = 1
2044
- ROWS = 2
2045
- PROGRESSEDPERCENTAGE = 3
2046
- STATUS = 4
2047
- FOOTERSUMMARY = 5
2048
- STARTTIME = 6
2275
+
2276
+ HEADERNAMES_FIELD_ID = 1
2277
+ ROWS_FIELD_ID = 2
2278
+ PROGRESSEDPERCENTAGE_FIELD_ID = 3
2279
+ STATUS_FIELD_ID = 4
2280
+ FOOTERSUMMARY_FIELD_ID = 5
2281
+ STARTTIME_FIELD_ID = 6
2049
2282
 
2050
2283
  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'}
2284
+ HEADERNAMES_FIELD_ID => {type: ::Thrift::Types::LIST, name: "headerNames", element: {type: ::Thrift::Types::STRING}},
2285
+ ROWS_FIELD_ID => {type: ::Thrift::Types::LIST, name: "rows", element: {type: ::Thrift::Types::LIST, element: {type: ::Thrift::Types::STRING}}},
2286
+ PROGRESSEDPERCENTAGE_FIELD_ID => {type: ::Thrift::Types::DOUBLE, name: "progressedPercentage"},
2287
+ STATUS_FIELD_ID => {type: ::Thrift::Types::I32, name: "status", enum_class: ::Hexspace::TJobExecutionStatus},
2288
+ FOOTERSUMMARY_FIELD_ID => {type: ::Thrift::Types::STRING, name: "footerSummary"},
2289
+ STARTTIME_FIELD_ID => {type: ::Thrift::Types::I64, name: "startTime"},
2057
2290
  }
2058
2291
 
2059
2292
  def struct_fields; FIELDS; end
2060
2293
 
2061
2294
  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
2295
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field headerNames is unset!") unless @headerNames
2296
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field rows is unset!") unless @rows
2297
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field progressedPercentage is unset!") unless @progressedPercentage
2298
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field status is unset!") unless @status
2299
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field footerSummary is unset!") unless @footerSummary
2300
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field startTime is unset!") unless @startTime
2068
2301
  unless @status.nil? || ::Hexspace::TJobExecutionStatus::VALID_VALUES.include?(@status)
2069
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field status!')
2302
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Invalid value of field status!")
2070
2303
  end
2071
2304
  end
2072
2305
 
2073
2306
  ::Thrift::Struct.generate_accessors self
2074
2307
  end
2075
2308
 
2309
+ class TGetQueryIdReq
2310
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2311
+
2312
+ OPERATIONHANDLE_FIELD_ID = 1
2313
+
2314
+ FIELDS = {
2315
+ OPERATIONHANDLE_FIELD_ID => {type: ::Thrift::Types::STRUCT, name: "operationHandle", class: ::Hexspace::TOperationHandle},
2316
+ }
2317
+
2318
+ def struct_fields; FIELDS; end
2319
+
2320
+ def validate
2321
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field operationHandle is unset!") unless @operationHandle
2322
+ end
2323
+
2324
+ ::Thrift::Struct.generate_accessors self
2325
+ end
2326
+
2327
+ class TGetQueryIdResp
2328
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2329
+
2330
+ QUERYID_FIELD_ID = 1
2331
+
2332
+ FIELDS = {
2333
+ QUERYID_FIELD_ID => {type: ::Thrift::Types::STRING, name: "queryId"},
2334
+ }
2335
+
2336
+ def struct_fields; FIELDS; end
2337
+
2338
+ def validate
2339
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::INVALID_DATA, "Required field queryId is unset!") unless @queryId
2340
+ end
2341
+
2342
+ ::Thrift::Struct.generate_accessors self
2343
+ end
2076
2344
  end