hexspace 0.2.2 → 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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +5 -11
- data/lib/hexspace/client.rb +2 -3
- data/lib/hexspace/result.rb +5 -3
- data/lib/hexspace/tcli_service.rb +525 -317
- data/lib/hexspace/tcli_service_constants.rb +49 -47
- data/lib/hexspace/tcli_service_types.rb +785 -517
- data/lib/hexspace/version.rb +1 -1
- metadata +6 -6
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
#
|
|
2
|
-
# Autogenerated by Thrift Compiler (0.
|
|
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
|
-
|
|
21
|
-
|
|
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
|
-
|
|
48
|
-
|
|
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
|
-
|
|
86
|
-
|
|
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
|
-
|
|
138
|
-
|
|
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
|
-
|
|
331
|
-
|
|
352
|
+
I32VALUE_FIELD_ID = 1
|
|
353
|
+
STRINGVALUE_FIELD_ID = 2
|
|
332
354
|
|
|
333
355
|
FIELDS = {
|
|
334
|
-
|
|
335
|
-
|
|
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(
|
|
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
|
-
|
|
371
|
+
|
|
372
|
+
QUALIFIERS_FIELD_ID = 1
|
|
350
373
|
|
|
351
374
|
FIELDS = {
|
|
352
|
-
|
|
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::
|
|
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
|
-
|
|
367
|
-
|
|
389
|
+
|
|
390
|
+
TYPE_FIELD_ID = 1
|
|
391
|
+
TYPEQUALIFIERS_FIELD_ID = 2
|
|
368
392
|
|
|
369
393
|
FIELDS = {
|
|
370
|
-
|
|
371
|
-
|
|
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::
|
|
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::
|
|
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
|
-
|
|
412
|
+
|
|
413
|
+
OBJECTTYPEPTR_FIELD_ID = 1
|
|
389
414
|
|
|
390
415
|
FIELDS = {
|
|
391
|
-
|
|
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::
|
|
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
|
-
|
|
406
|
-
|
|
430
|
+
|
|
431
|
+
KEYTYPEPTR_FIELD_ID = 1
|
|
432
|
+
VALUETYPEPTR_FIELD_ID = 2
|
|
407
433
|
|
|
408
434
|
FIELDS = {
|
|
409
|
-
|
|
410
|
-
|
|
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::
|
|
417
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::
|
|
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
|
-
|
|
451
|
+
|
|
452
|
+
NAMETOTYPEPTR_FIELD_ID = 1
|
|
426
453
|
|
|
427
454
|
FIELDS = {
|
|
428
|
-
|
|
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::
|
|
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
|
-
|
|
469
|
+
|
|
470
|
+
NAMETOTYPEPTR_FIELD_ID = 1
|
|
443
471
|
|
|
444
472
|
FIELDS = {
|
|
445
|
-
|
|
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::
|
|
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
|
-
|
|
487
|
+
|
|
488
|
+
TYPECLASSNAME_FIELD_ID = 1
|
|
460
489
|
|
|
461
490
|
FIELDS = {
|
|
462
|
-
|
|
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::
|
|
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
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
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
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
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(
|
|
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
|
-
|
|
559
|
+
|
|
560
|
+
TYPES_FIELD_ID = 1
|
|
530
561
|
|
|
531
562
|
FIELDS = {
|
|
532
|
-
|
|
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::
|
|
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
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
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
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
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::
|
|
562
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::
|
|
563
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::
|
|
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
|
-
|
|
603
|
+
|
|
604
|
+
COLUMNS_FIELD_ID = 1
|
|
572
605
|
|
|
573
606
|
FIELDS = {
|
|
574
|
-
|
|
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::
|
|
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
|
-
|
|
621
|
+
|
|
622
|
+
VALUE_FIELD_ID = 1
|
|
589
623
|
|
|
590
624
|
FIELDS = {
|
|
591
|
-
|
|
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
|
-
|
|
638
|
+
|
|
639
|
+
VALUE_FIELD_ID = 1
|
|
605
640
|
|
|
606
641
|
FIELDS = {
|
|
607
|
-
|
|
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
|
-
|
|
655
|
+
|
|
656
|
+
VALUE_FIELD_ID = 1
|
|
621
657
|
|
|
622
658
|
FIELDS = {
|
|
623
|
-
|
|
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
|
-
|
|
672
|
+
|
|
673
|
+
VALUE_FIELD_ID = 1
|
|
637
674
|
|
|
638
675
|
FIELDS = {
|
|
639
|
-
|
|
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
|
-
|
|
689
|
+
|
|
690
|
+
VALUE_FIELD_ID = 1
|
|
653
691
|
|
|
654
692
|
FIELDS = {
|
|
655
|
-
|
|
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
|
-
|
|
706
|
+
|
|
707
|
+
VALUE_FIELD_ID = 1
|
|
669
708
|
|
|
670
709
|
FIELDS = {
|
|
671
|
-
|
|
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
|
-
|
|
723
|
+
|
|
724
|
+
VALUE_FIELD_ID = 1
|
|
685
725
|
|
|
686
726
|
FIELDS = {
|
|
687
|
-
|
|
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
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
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
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
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(
|
|
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
|
-
|
|
800
|
+
|
|
801
|
+
COLVALS_FIELD_ID = 1
|
|
760
802
|
|
|
761
803
|
FIELDS = {
|
|
762
|
-
|
|
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::
|
|
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
|
-
|
|
777
|
-
|
|
818
|
+
|
|
819
|
+
VALUES_FIELD_ID = 1
|
|
820
|
+
NULLS_FIELD_ID = 2
|
|
778
821
|
|
|
779
822
|
FIELDS = {
|
|
780
|
-
|
|
781
|
-
|
|
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::
|
|
788
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::
|
|
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
|
-
|
|
797
|
-
|
|
839
|
+
|
|
840
|
+
VALUES_FIELD_ID = 1
|
|
841
|
+
NULLS_FIELD_ID = 2
|
|
798
842
|
|
|
799
843
|
FIELDS = {
|
|
800
|
-
|
|
801
|
-
|
|
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::
|
|
808
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::
|
|
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
|
-
|
|
817
|
-
|
|
860
|
+
|
|
861
|
+
VALUES_FIELD_ID = 1
|
|
862
|
+
NULLS_FIELD_ID = 2
|
|
818
863
|
|
|
819
864
|
FIELDS = {
|
|
820
|
-
|
|
821
|
-
|
|
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::
|
|
828
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::
|
|
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
|
-
|
|
837
|
-
|
|
881
|
+
|
|
882
|
+
VALUES_FIELD_ID = 1
|
|
883
|
+
NULLS_FIELD_ID = 2
|
|
838
884
|
|
|
839
885
|
FIELDS = {
|
|
840
|
-
|
|
841
|
-
|
|
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::
|
|
848
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::
|
|
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
|
-
|
|
857
|
-
|
|
902
|
+
|
|
903
|
+
VALUES_FIELD_ID = 1
|
|
904
|
+
NULLS_FIELD_ID = 2
|
|
858
905
|
|
|
859
906
|
FIELDS = {
|
|
860
|
-
|
|
861
|
-
|
|
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::
|
|
868
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::
|
|
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
|
-
|
|
877
|
-
|
|
923
|
+
|
|
924
|
+
VALUES_FIELD_ID = 1
|
|
925
|
+
NULLS_FIELD_ID = 2
|
|
878
926
|
|
|
879
927
|
FIELDS = {
|
|
880
|
-
|
|
881
|
-
|
|
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::
|
|
888
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::
|
|
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
|
-
|
|
897
|
-
|
|
944
|
+
|
|
945
|
+
VALUES_FIELD_ID = 1
|
|
946
|
+
NULLS_FIELD_ID = 2
|
|
898
947
|
|
|
899
948
|
FIELDS = {
|
|
900
|
-
|
|
901
|
-
|
|
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::
|
|
908
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::
|
|
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
|
-
|
|
917
|
-
|
|
965
|
+
|
|
966
|
+
VALUES_FIELD_ID = 1
|
|
967
|
+
NULLS_FIELD_ID = 2
|
|
918
968
|
|
|
919
969
|
FIELDS = {
|
|
920
|
-
|
|
921
|
-
|
|
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::
|
|
928
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::
|
|
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
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
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
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
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(
|
|
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
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
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
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
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::
|
|
1019
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::
|
|
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
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
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
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
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::
|
|
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::
|
|
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
|
-
|
|
1056
|
-
|
|
1108
|
+
|
|
1109
|
+
GUID_FIELD_ID = 1
|
|
1110
|
+
SECRET_FIELD_ID = 2
|
|
1057
1111
|
|
|
1058
1112
|
FIELDS = {
|
|
1059
|
-
|
|
1060
|
-
|
|
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::
|
|
1067
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::
|
|
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
|
-
|
|
1129
|
+
|
|
1130
|
+
SESSIONID_FIELD_ID = 1
|
|
1076
1131
|
|
|
1077
1132
|
FIELDS = {
|
|
1078
|
-
|
|
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::
|
|
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
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
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
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
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::
|
|
1108
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::
|
|
1109
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::
|
|
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::
|
|
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
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
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
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
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::
|
|
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::
|
|
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
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
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
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
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::
|
|
1162
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::
|
|
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::
|
|
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
|
-
|
|
1269
|
+
|
|
1270
|
+
SESSIONHANDLE_FIELD_ID = 1
|
|
1174
1271
|
|
|
1175
1272
|
FIELDS = {
|
|
1176
|
-
|
|
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::
|
|
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
|
-
|
|
1287
|
+
|
|
1288
|
+
STATUS_FIELD_ID = 1
|
|
1191
1289
|
|
|
1192
1290
|
FIELDS = {
|
|
1193
|
-
|
|
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::
|
|
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
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
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
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
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(
|
|
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
|
-
|
|
1261
|
-
|
|
1359
|
+
|
|
1360
|
+
SESSIONHANDLE_FIELD_ID = 1
|
|
1361
|
+
INFOTYPE_FIELD_ID = 2
|
|
1262
1362
|
|
|
1263
1363
|
FIELDS = {
|
|
1264
|
-
|
|
1265
|
-
|
|
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::
|
|
1272
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::
|
|
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::
|
|
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
|
-
|
|
1284
|
-
|
|
1383
|
+
|
|
1384
|
+
STATUS_FIELD_ID = 1
|
|
1385
|
+
INFOVALUE_FIELD_ID = 2
|
|
1285
1386
|
|
|
1286
1387
|
FIELDS = {
|
|
1287
|
-
|
|
1288
|
-
|
|
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::
|
|
1295
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::
|
|
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
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
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
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
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::
|
|
1321
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::
|
|
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
|
-
|
|
1330
|
-
|
|
1431
|
+
|
|
1432
|
+
STATUS_FIELD_ID = 1
|
|
1433
|
+
OPERATIONHANDLE_FIELD_ID = 2
|
|
1331
1434
|
|
|
1332
1435
|
FIELDS = {
|
|
1333
|
-
|
|
1334
|
-
|
|
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::
|
|
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
|
-
|
|
1451
|
+
|
|
1452
|
+
SESSIONHANDLE_FIELD_ID = 1
|
|
1349
1453
|
|
|
1350
1454
|
FIELDS = {
|
|
1351
|
-
|
|
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::
|
|
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
|
-
|
|
1366
|
-
|
|
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
|
-
|
|
1370
|
-
|
|
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::
|
|
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
|
-
|
|
1582
|
+
|
|
1583
|
+
SESSIONHANDLE_FIELD_ID = 1
|
|
1385
1584
|
|
|
1386
1585
|
FIELDS = {
|
|
1387
|
-
|
|
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::
|
|
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
|
-
|
|
1402
|
-
|
|
1600
|
+
|
|
1601
|
+
STATUS_FIELD_ID = 1
|
|
1602
|
+
OPERATIONHANDLE_FIELD_ID = 2
|
|
1403
1603
|
|
|
1404
1604
|
FIELDS = {
|
|
1405
|
-
|
|
1406
|
-
|
|
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::
|
|
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
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1620
|
+
|
|
1621
|
+
SESSIONHANDLE_FIELD_ID = 1
|
|
1622
|
+
CATALOGNAME_FIELD_ID = 2
|
|
1623
|
+
SCHEMANAME_FIELD_ID = 3
|
|
1423
1624
|
|
|
1424
1625
|
FIELDS = {
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
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::
|
|
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
|
-
|
|
1442
|
-
|
|
1642
|
+
|
|
1643
|
+
STATUS_FIELD_ID = 1
|
|
1644
|
+
OPERATIONHANDLE_FIELD_ID = 2
|
|
1443
1645
|
|
|
1444
1646
|
FIELDS = {
|
|
1445
|
-
|
|
1446
|
-
|
|
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::
|
|
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
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
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
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
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::
|
|
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
|
-
|
|
1486
|
-
|
|
1688
|
+
|
|
1689
|
+
STATUS_FIELD_ID = 1
|
|
1690
|
+
OPERATIONHANDLE_FIELD_ID = 2
|
|
1487
1691
|
|
|
1488
1692
|
FIELDS = {
|
|
1489
|
-
|
|
1490
|
-
|
|
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::
|
|
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
|
-
|
|
1708
|
+
|
|
1709
|
+
SESSIONHANDLE_FIELD_ID = 1
|
|
1505
1710
|
|
|
1506
1711
|
FIELDS = {
|
|
1507
|
-
|
|
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::
|
|
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
|
-
|
|
1522
|
-
|
|
1726
|
+
|
|
1727
|
+
STATUS_FIELD_ID = 1
|
|
1728
|
+
OPERATIONHANDLE_FIELD_ID = 2
|
|
1523
1729
|
|
|
1524
1730
|
FIELDS = {
|
|
1525
|
-
|
|
1526
|
-
|
|
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::
|
|
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
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
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
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
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::
|
|
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
|
-
|
|
1566
|
-
|
|
1772
|
+
|
|
1773
|
+
STATUS_FIELD_ID = 1
|
|
1774
|
+
OPERATIONHANDLE_FIELD_ID = 2
|
|
1567
1775
|
|
|
1568
1776
|
FIELDS = {
|
|
1569
|
-
|
|
1570
|
-
|
|
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::
|
|
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
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
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
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
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::
|
|
1600
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::
|
|
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
|
-
|
|
1609
|
-
|
|
1817
|
+
|
|
1818
|
+
STATUS_FIELD_ID = 1
|
|
1819
|
+
OPERATIONHANDLE_FIELD_ID = 2
|
|
1610
1820
|
|
|
1611
1821
|
FIELDS = {
|
|
1612
|
-
|
|
1613
|
-
|
|
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::
|
|
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
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
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
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
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::
|
|
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
|
-
|
|
1651
|
-
|
|
1861
|
+
|
|
1862
|
+
STATUS_FIELD_ID = 1
|
|
1863
|
+
OPERATIONHANDLE_FIELD_ID = 2
|
|
1652
1864
|
|
|
1653
1865
|
FIELDS = {
|
|
1654
|
-
|
|
1655
|
-
|
|
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::
|
|
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
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
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
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
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::
|
|
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
|
-
|
|
1699
|
-
|
|
1911
|
+
|
|
1912
|
+
STATUS_FIELD_ID = 1
|
|
1913
|
+
OPERATIONHANDLE_FIELD_ID = 2
|
|
1700
1914
|
|
|
1701
1915
|
FIELDS = {
|
|
1702
|
-
|
|
1703
|
-
|
|
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::
|
|
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
|
-
|
|
1718
|
-
|
|
1931
|
+
|
|
1932
|
+
OPERATIONHANDLE_FIELD_ID = 1
|
|
1933
|
+
GETPROGRESSUPDATE_FIELD_ID = 2
|
|
1719
1934
|
|
|
1720
1935
|
FIELDS = {
|
|
1721
|
-
|
|
1722
|
-
|
|
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::
|
|
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
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
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
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
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::
|
|
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::
|
|
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
|
-
|
|
1992
|
+
|
|
1993
|
+
OPERATIONHANDLE_FIELD_ID = 1
|
|
1775
1994
|
|
|
1776
1995
|
FIELDS = {
|
|
1777
|
-
|
|
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::
|
|
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
|
-
|
|
2010
|
+
|
|
2011
|
+
STATUS_FIELD_ID = 1
|
|
1792
2012
|
|
|
1793
2013
|
FIELDS = {
|
|
1794
|
-
|
|
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::
|
|
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
|
-
|
|
2028
|
+
|
|
2029
|
+
OPERATIONHANDLE_FIELD_ID = 1
|
|
1809
2030
|
|
|
1810
2031
|
FIELDS = {
|
|
1811
|
-
|
|
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::
|
|
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
|
-
|
|
2046
|
+
|
|
2047
|
+
STATUS_FIELD_ID = 1
|
|
1826
2048
|
|
|
1827
2049
|
FIELDS = {
|
|
1828
|
-
|
|
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::
|
|
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
|
-
|
|
2064
|
+
|
|
2065
|
+
OPERATIONHANDLE_FIELD_ID = 1
|
|
1843
2066
|
|
|
1844
2067
|
FIELDS = {
|
|
1845
|
-
|
|
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::
|
|
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
|
-
|
|
1860
|
-
|
|
2082
|
+
|
|
2083
|
+
STATUS_FIELD_ID = 1
|
|
2084
|
+
SCHEMA_FIELD_ID = 2
|
|
1861
2085
|
|
|
1862
2086
|
FIELDS = {
|
|
1863
|
-
|
|
1864
|
-
|
|
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::
|
|
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
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
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
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
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::
|
|
1894
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::
|
|
1895
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::
|
|
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::
|
|
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
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
2131
|
+
|
|
2132
|
+
STATUS_FIELD_ID = 1
|
|
2133
|
+
HASMOREROWS_FIELD_ID = 2
|
|
2134
|
+
RESULTS_FIELD_ID = 3
|
|
1909
2135
|
|
|
1910
2136
|
FIELDS = {
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
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::
|
|
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
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
2153
|
+
|
|
2154
|
+
SESSIONHANDLE_FIELD_ID = 1
|
|
2155
|
+
OWNER_FIELD_ID = 2
|
|
2156
|
+
RENEWER_FIELD_ID = 3
|
|
1930
2157
|
|
|
1931
2158
|
FIELDS = {
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
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::
|
|
1941
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::
|
|
1942
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::
|
|
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
|
-
|
|
1951
|
-
|
|
2177
|
+
|
|
2178
|
+
STATUS_FIELD_ID = 1
|
|
2179
|
+
DELEGATIONTOKEN_FIELD_ID = 2
|
|
1952
2180
|
|
|
1953
2181
|
FIELDS = {
|
|
1954
|
-
|
|
1955
|
-
|
|
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::
|
|
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
|
-
|
|
1970
|
-
|
|
2197
|
+
|
|
2198
|
+
SESSIONHANDLE_FIELD_ID = 1
|
|
2199
|
+
DELEGATIONTOKEN_FIELD_ID = 2
|
|
1971
2200
|
|
|
1972
2201
|
FIELDS = {
|
|
1973
|
-
|
|
1974
|
-
|
|
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::
|
|
1981
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::
|
|
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
|
-
|
|
2218
|
+
|
|
2219
|
+
STATUS_FIELD_ID = 1
|
|
1990
2220
|
|
|
1991
2221
|
FIELDS = {
|
|
1992
|
-
|
|
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::
|
|
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
|
-
|
|
2007
|
-
|
|
2236
|
+
|
|
2237
|
+
SESSIONHANDLE_FIELD_ID = 1
|
|
2238
|
+
DELEGATIONTOKEN_FIELD_ID = 2
|
|
2008
2239
|
|
|
2009
2240
|
FIELDS = {
|
|
2010
|
-
|
|
2011
|
-
|
|
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::
|
|
2018
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::
|
|
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
|
-
|
|
2257
|
+
|
|
2258
|
+
STATUS_FIELD_ID = 1
|
|
2027
2259
|
|
|
2028
2260
|
FIELDS = {
|
|
2029
|
-
|
|
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::
|
|
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
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
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
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
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::
|
|
2063
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::
|
|
2064
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::
|
|
2065
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::
|
|
2066
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::
|
|
2067
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::
|
|
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::
|
|
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
|