line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# Autogenerated by Thrift Compiler (0.9.0) |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING |
5
|
|
|
|
|
|
|
# |
6
|
|
|
|
|
|
|
require 5.6.0; |
7
|
2
|
|
|
2
|
|
11
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
50
|
|
8
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
46
|
|
9
|
2
|
|
|
2
|
|
10
|
use Thrift; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
124
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TProtocolVersion; |
12
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TProtocolVersion::VERSION = '0.021'; |
13
|
|
|
|
|
|
|
{ |
14
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TProtocolVersion::DIST = 'Thrift-API-HiveClient2'; |
15
|
|
|
|
|
|
|
} |
16
|
2
|
|
|
2
|
|
10
|
use constant HIVE_CLI_SERVICE_PROTOCOL_V1 => 0; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
175
|
|
17
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TType; |
18
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TType::VERSION = '0.021'; |
19
|
|
|
|
|
|
|
{ |
20
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TType::DIST = 'Thrift-API-HiveClient2'; |
21
|
|
|
|
|
|
|
} |
22
|
2
|
|
|
2
|
|
10
|
use constant BOOLEAN_TYPE => 0; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
91
|
|
23
|
2
|
|
|
2
|
|
11
|
use constant TINYINT_TYPE => 1; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
98
|
|
24
|
2
|
|
|
2
|
|
9
|
use constant SMALLINT_TYPE => 2; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
87
|
|
25
|
2
|
|
|
2
|
|
10
|
use constant INT_TYPE => 3; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
86
|
|
26
|
2
|
|
|
2
|
|
11
|
use constant BIGINT_TYPE => 4; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
96
|
|
27
|
2
|
|
|
2
|
|
10
|
use constant FLOAT_TYPE => 5; |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
85
|
|
28
|
2
|
|
|
2
|
|
10
|
use constant DOUBLE_TYPE => 6; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
107
|
|
29
|
2
|
|
|
2
|
|
10
|
use constant STRING_TYPE => 7; |
|
2
|
|
|
|
|
12
|
|
|
2
|
|
|
|
|
82
|
|
30
|
2
|
|
|
2
|
|
11
|
use constant TIMESTAMP_TYPE => 8; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
84
|
|
31
|
2
|
|
|
2
|
|
10
|
use constant BINARY_TYPE => 9; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
102
|
|
32
|
2
|
|
|
2
|
|
10
|
use constant ARRAY_TYPE => 10; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
81
|
|
33
|
2
|
|
|
2
|
|
10
|
use constant MAP_TYPE => 11; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
81
|
|
34
|
2
|
|
|
2
|
|
9
|
use constant STRUCT_TYPE => 12; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
83
|
|
35
|
2
|
|
|
2
|
|
16
|
use constant UNION_TYPE => 13; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
114
|
|
36
|
2
|
|
|
2
|
|
10
|
use constant USER_DEFINED_TYPE => 14; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
228
|
|
37
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TStatusCode; |
38
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TStatusCode::VERSION = '0.021'; |
39
|
|
|
|
|
|
|
{ |
40
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TStatusCode::DIST = 'Thrift-API-HiveClient2'; |
41
|
|
|
|
|
|
|
} |
42
|
2
|
|
|
2
|
|
11
|
use constant SUCCESS_STATUS => 0; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
124
|
|
43
|
2
|
|
|
2
|
|
11
|
use constant SUCCESS_WITH_INFO_STATUS => 1; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
85
|
|
44
|
2
|
|
|
2
|
|
10
|
use constant STILL_EXECUTING_STATUS => 2; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
83
|
|
45
|
2
|
|
|
2
|
|
11
|
use constant ERROR_STATUS => 3; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
86
|
|
46
|
2
|
|
|
2
|
|
10
|
use constant INVALID_HANDLE_STATUS => 4; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
148
|
|
47
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TOperationState; |
48
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TOperationState::VERSION = '0.021'; |
49
|
|
|
|
|
|
|
{ |
50
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TOperationState::DIST = 'Thrift-API-HiveClient2'; |
51
|
|
|
|
|
|
|
} |
52
|
2
|
|
|
2
|
|
15
|
use constant INITIALIZED_STATE => 0; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
92
|
|
53
|
2
|
|
|
2
|
|
11
|
use constant RUNNING_STATE => 1; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
88
|
|
54
|
2
|
|
|
2
|
|
18
|
use constant FINISHED_STATE => 2; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
77
|
|
55
|
2
|
|
|
2
|
|
10
|
use constant CANCELED_STATE => 3; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
91
|
|
56
|
2
|
|
|
2
|
|
8
|
use constant CLOSED_STATE => 4; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
82
|
|
57
|
2
|
|
|
2
|
|
10
|
use constant ERROR_STATE => 5; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
88
|
|
58
|
2
|
|
|
2
|
|
10
|
use constant UKNOWN_STATE => 6; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
159
|
|
59
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TOperationType; |
60
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TOperationType::VERSION = '0.021'; |
61
|
|
|
|
|
|
|
{ |
62
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TOperationType::DIST = 'Thrift-API-HiveClient2'; |
63
|
|
|
|
|
|
|
} |
64
|
2
|
|
|
2
|
|
10
|
use constant EXECUTE_STATEMENT => 0; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
88
|
|
65
|
2
|
|
|
2
|
|
9
|
use constant GET_TYPE_INFO => 1; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
83
|
|
66
|
2
|
|
|
2
|
|
10
|
use constant GET_CATALOGS => 2; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
93
|
|
67
|
2
|
|
|
2
|
|
10
|
use constant GET_SCHEMAS => 3; |
|
2
|
|
|
|
|
9
|
|
|
2
|
|
|
|
|
77
|
|
68
|
2
|
|
|
2
|
|
10
|
use constant GET_TABLES => 4; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
92
|
|
69
|
2
|
|
|
2
|
|
10
|
use constant GET_TABLE_TYPES => 5; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
82
|
|
70
|
2
|
|
|
2
|
|
10
|
use constant GET_COLUMNS => 6; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
80
|
|
71
|
2
|
|
|
2
|
|
10
|
use constant GET_FUNCTIONS => 7; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
84
|
|
72
|
2
|
|
|
2
|
|
9
|
use constant UNKNOWN => 8; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
147
|
|
73
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetInfoType; |
74
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetInfoType::VERSION = '0.021'; |
75
|
|
|
|
|
|
|
{ |
76
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetInfoType::DIST = 'Thrift-API-HiveClient2'; |
77
|
|
|
|
|
|
|
} |
78
|
2
|
|
|
2
|
|
10
|
use constant CLI_MAX_DRIVER_CONNECTIONS => 0; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
99
|
|
79
|
2
|
|
|
2
|
|
10
|
use constant CLI_MAX_CONCURRENT_ACTIVITIES => 1; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
89
|
|
80
|
2
|
|
|
2
|
|
10
|
use constant CLI_DATA_SOURCE_NAME => 2; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
83
|
|
81
|
2
|
|
|
2
|
|
10
|
use constant CLI_FETCH_DIRECTION => 8; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
86
|
|
82
|
2
|
|
|
2
|
|
10
|
use constant CLI_SERVER_NAME => 13; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
86
|
|
83
|
2
|
|
|
2
|
|
10
|
use constant CLI_SEARCH_PATTERN_ESCAPE => 14; |
|
2
|
|
|
|
|
9
|
|
|
2
|
|
|
|
|
84
|
|
84
|
2
|
|
|
2
|
|
10
|
use constant CLI_DBMS_NAME => 17; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
89
|
|
85
|
2
|
|
|
2
|
|
9
|
use constant CLI_DBMS_VER => 18; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
84
|
|
86
|
2
|
|
|
2
|
|
10
|
use constant CLI_ACCESSIBLE_TABLES => 19; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
86
|
|
87
|
2
|
|
|
2
|
|
10
|
use constant CLI_ACCESSIBLE_PROCEDURES => 20; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
90
|
|
88
|
2
|
|
|
2
|
|
10
|
use constant CLI_CURSOR_COMMIT_BEHAVIOR => 23; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
77
|
|
89
|
2
|
|
|
2
|
|
10
|
use constant CLI_DATA_SOURCE_READ_ONLY => 25; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
90
|
|
90
|
2
|
|
|
2
|
|
10
|
use constant CLI_DEFAULT_TXN_ISOLATION => 26; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
103
|
|
91
|
2
|
|
|
2
|
|
9
|
use constant CLI_IDENTIFIER_CASE => 28; |
|
2
|
|
|
|
|
32
|
|
|
2
|
|
|
|
|
79
|
|
92
|
2
|
|
|
2
|
|
10
|
use constant CLI_IDENTIFIER_QUOTE_CHAR => 29; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
90
|
|
93
|
2
|
|
|
2
|
|
14
|
use constant CLI_MAX_COLUMN_NAME_LEN => 30; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
90
|
|
94
|
2
|
|
|
2
|
|
9
|
use constant CLI_MAX_CURSOR_NAME_LEN => 31; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
95
|
|
95
|
2
|
|
|
2
|
|
10
|
use constant CLI_MAX_SCHEMA_NAME_LEN => 32; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
87
|
|
96
|
2
|
|
|
2
|
|
11
|
use constant CLI_MAX_CATALOG_NAME_LEN => 34; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
78
|
|
97
|
2
|
|
|
2
|
|
10
|
use constant CLI_MAX_TABLE_NAME_LEN => 35; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
85
|
|
98
|
2
|
|
|
2
|
|
10
|
use constant CLI_SCROLL_CONCURRENCY => 43; |
|
2
|
|
|
|
|
31
|
|
|
2
|
|
|
|
|
79
|
|
99
|
2
|
|
|
2
|
|
10
|
use constant CLI_TXN_CAPABLE => 46; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
93
|
|
100
|
2
|
|
|
2
|
|
10
|
use constant CLI_USER_NAME => 47; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
87
|
|
101
|
2
|
|
|
2
|
|
13
|
use constant CLI_TXN_ISOLATION_OPTION => 72; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
89
|
|
102
|
2
|
|
|
2
|
|
15
|
use constant CLI_INTEGRITY => 73; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
90
|
|
103
|
2
|
|
|
2
|
|
14
|
use constant CLI_GETDATA_EXTENSIONS => 81; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
75
|
|
104
|
2
|
|
|
2
|
|
10
|
use constant CLI_NULL_COLLATION => 85; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
83
|
|
105
|
2
|
|
|
2
|
|
10
|
use constant CLI_ALTER_TABLE => 86; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
83
|
|
106
|
2
|
|
|
2
|
|
11
|
use constant CLI_ORDER_BY_COLUMNS_IN_SELECT => 90; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
82
|
|
107
|
2
|
|
|
2
|
|
10
|
use constant CLI_SPECIAL_CHARACTERS => 94; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
84
|
|
108
|
2
|
|
|
2
|
|
10
|
use constant CLI_MAX_COLUMNS_IN_GROUP_BY => 97; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
82
|
|
109
|
2
|
|
|
2
|
|
14
|
use constant CLI_MAX_COLUMNS_IN_INDEX => 98; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
90
|
|
110
|
2
|
|
|
2
|
|
10
|
use constant CLI_MAX_COLUMNS_IN_ORDER_BY => 99; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
84
|
|
111
|
2
|
|
|
2
|
|
16
|
use constant CLI_MAX_COLUMNS_IN_SELECT => 100; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
77
|
|
112
|
2
|
|
|
2
|
|
10
|
use constant CLI_MAX_COLUMNS_IN_TABLE => 101; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
95
|
|
113
|
2
|
|
|
2
|
|
9
|
use constant CLI_MAX_INDEX_SIZE => 102; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
75
|
|
114
|
2
|
|
|
2
|
|
11
|
use constant CLI_MAX_ROW_SIZE => 104; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
85
|
|
115
|
2
|
|
|
2
|
|
8
|
use constant CLI_MAX_STATEMENT_LEN => 105; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
84
|
|
116
|
2
|
|
|
2
|
|
10
|
use constant CLI_MAX_TABLES_IN_SELECT => 106; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
75
|
|
117
|
2
|
|
|
2
|
|
10
|
use constant CLI_MAX_USER_NAME_LEN => 107; |
|
2
|
|
|
|
|
9
|
|
|
2
|
|
|
|
|
84
|
|
118
|
2
|
|
|
2
|
|
11
|
use constant CLI_OJ_CAPABILITIES => 115; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
79
|
|
119
|
2
|
|
|
2
|
|
15
|
use constant CLI_XOPEN_CLI_YEAR => 10000; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
93
|
|
120
|
2
|
|
|
2
|
|
10
|
use constant CLI_CURSOR_SENSITIVITY => 10001; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
92
|
|
121
|
2
|
|
|
2
|
|
10
|
use constant CLI_DESCRIBE_PARAMETER => 10002; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
78
|
|
122
|
2
|
|
|
2
|
|
10
|
use constant CLI_CATALOG_NAME => 10003; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
90
|
|
123
|
2
|
|
|
2
|
|
10
|
use constant CLI_COLLATION_SEQ => 10004; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
85
|
|
124
|
2
|
|
|
2
|
|
10
|
use constant CLI_MAX_IDENTIFIER_LEN => 10005; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
147
|
|
125
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TFetchOrientation; |
126
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TFetchOrientation::VERSION = '0.021'; |
127
|
|
|
|
|
|
|
{ |
128
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TFetchOrientation::DIST = 'Thrift-API-HiveClient2'; |
129
|
|
|
|
|
|
|
} |
130
|
2
|
|
|
2
|
|
10
|
use constant FETCH_NEXT => 0; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
89
|
|
131
|
2
|
|
|
2
|
|
10
|
use constant FETCH_PRIOR => 1; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
92
|
|
132
|
2
|
|
|
2
|
|
10
|
use constant FETCH_RELATIVE => 2; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
87
|
|
133
|
2
|
|
|
2
|
|
9
|
use constant FETCH_ABSOLUTE => 3; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
80
|
|
134
|
2
|
|
|
2
|
|
10
|
use constant FETCH_FIRST => 4; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
94
|
|
135
|
2
|
|
|
2
|
|
9
|
use constant FETCH_LAST => 5; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
165
|
|
136
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TPrimitiveTypeEntry; |
137
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TPrimitiveTypeEntry::VERSION = '0.021'; |
138
|
|
|
|
|
|
|
{ |
139
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TPrimitiveTypeEntry::DIST = 'Thrift-API-HiveClient2'; |
140
|
|
|
|
|
|
|
} |
141
|
2
|
|
|
2
|
|
11
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
2325
|
|
142
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TPrimitiveTypeEntry->mk_accessors( qw( type ) ); |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
sub new { |
145
|
0
|
|
|
0
|
|
|
my $classname = shift; |
146
|
0
|
|
|
|
|
|
my $self = {}; |
147
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
148
|
0
|
|
|
|
|
|
$self->{type} = undef; |
149
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
150
|
0
|
0
|
|
|
|
|
if (defined $vals->{type}) { |
151
|
0
|
|
|
|
|
|
$self->{type} = $vals->{type}; |
152
|
|
|
|
|
|
|
} |
153
|
|
|
|
|
|
|
} |
154
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
155
|
|
|
|
|
|
|
} |
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
sub getName { |
158
|
0
|
|
|
0
|
|
|
return 'TPrimitiveTypeEntry'; |
159
|
|
|
|
|
|
|
} |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
sub read { |
162
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
163
|
0
|
|
|
|
|
|
my $xfer = 0; |
164
|
0
|
|
|
|
|
|
my $fname; |
165
|
0
|
|
|
|
|
|
my $ftype = 0; |
166
|
0
|
|
|
|
|
|
my $fid = 0; |
167
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
168
|
0
|
|
|
|
|
|
while (1) |
169
|
|
|
|
|
|
|
{ |
170
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
171
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
172
|
0
|
|
|
|
|
|
last; |
173
|
|
|
|
|
|
|
} |
174
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
175
|
|
|
|
|
|
|
{ |
176
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
177
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{type}); |
178
|
|
|
|
|
|
|
} else { |
179
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
180
|
|
|
|
|
|
|
} |
181
|
0
|
|
|
|
|
|
last; }; |
182
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
183
|
|
|
|
|
|
|
} |
184
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
185
|
|
|
|
|
|
|
} |
186
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
187
|
0
|
|
|
|
|
|
return $xfer; |
188
|
|
|
|
|
|
|
} |
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
sub write { |
191
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
192
|
0
|
|
|
|
|
|
my $xfer = 0; |
193
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TPrimitiveTypeEntry'); |
194
|
0
|
0
|
|
|
|
|
if (defined $self->{type}) { |
195
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('type', TType::I32, 1); |
196
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{type}); |
197
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
198
|
|
|
|
|
|
|
} |
199
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
200
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
201
|
0
|
|
|
|
|
|
return $xfer; |
202
|
|
|
|
|
|
|
} |
203
|
|
|
|
|
|
|
|
204
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TArrayTypeEntry; |
205
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TArrayTypeEntry::VERSION = '0.021'; |
206
|
|
|
|
|
|
|
{ |
207
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TArrayTypeEntry::DIST = 'Thrift-API-HiveClient2'; |
208
|
|
|
|
|
|
|
} |
209
|
2
|
|
|
2
|
|
5050
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
1048
|
|
210
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TArrayTypeEntry->mk_accessors( qw( objectTypePtr ) ); |
211
|
|
|
|
|
|
|
|
212
|
|
|
|
|
|
|
sub new { |
213
|
0
|
|
|
0
|
|
|
my $classname = shift; |
214
|
0
|
|
|
|
|
|
my $self = {}; |
215
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
216
|
0
|
|
|
|
|
|
$self->{objectTypePtr} = undef; |
217
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
218
|
0
|
0
|
|
|
|
|
if (defined $vals->{objectTypePtr}) { |
219
|
0
|
|
|
|
|
|
$self->{objectTypePtr} = $vals->{objectTypePtr}; |
220
|
|
|
|
|
|
|
} |
221
|
|
|
|
|
|
|
} |
222
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
223
|
|
|
|
|
|
|
} |
224
|
|
|
|
|
|
|
|
225
|
|
|
|
|
|
|
sub getName { |
226
|
0
|
|
|
0
|
|
|
return 'TArrayTypeEntry'; |
227
|
|
|
|
|
|
|
} |
228
|
|
|
|
|
|
|
|
229
|
|
|
|
|
|
|
sub read { |
230
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
231
|
0
|
|
|
|
|
|
my $xfer = 0; |
232
|
0
|
|
|
|
|
|
my $fname; |
233
|
0
|
|
|
|
|
|
my $ftype = 0; |
234
|
0
|
|
|
|
|
|
my $fid = 0; |
235
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
236
|
0
|
|
|
|
|
|
while (1) |
237
|
|
|
|
|
|
|
{ |
238
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
239
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
240
|
0
|
|
|
|
|
|
last; |
241
|
|
|
|
|
|
|
} |
242
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
243
|
|
|
|
|
|
|
{ |
244
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
245
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{objectTypePtr}); |
246
|
|
|
|
|
|
|
} else { |
247
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
248
|
|
|
|
|
|
|
} |
249
|
0
|
|
|
|
|
|
last; }; |
250
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
251
|
|
|
|
|
|
|
} |
252
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
253
|
|
|
|
|
|
|
} |
254
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
255
|
0
|
|
|
|
|
|
return $xfer; |
256
|
|
|
|
|
|
|
} |
257
|
|
|
|
|
|
|
|
258
|
|
|
|
|
|
|
sub write { |
259
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
260
|
0
|
|
|
|
|
|
my $xfer = 0; |
261
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TArrayTypeEntry'); |
262
|
0
|
0
|
|
|
|
|
if (defined $self->{objectTypePtr}) { |
263
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('objectTypePtr', TType::I32, 1); |
264
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{objectTypePtr}); |
265
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
266
|
|
|
|
|
|
|
} |
267
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
268
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
269
|
0
|
|
|
|
|
|
return $xfer; |
270
|
|
|
|
|
|
|
} |
271
|
|
|
|
|
|
|
|
272
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TMapTypeEntry; |
273
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TMapTypeEntry::VERSION = '0.021'; |
274
|
|
|
|
|
|
|
{ |
275
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TMapTypeEntry::DIST = 'Thrift-API-HiveClient2'; |
276
|
|
|
|
|
|
|
} |
277
|
2
|
|
|
2
|
|
11
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1255
|
|
278
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TMapTypeEntry->mk_accessors( qw( keyTypePtr valueTypePtr ) ); |
279
|
|
|
|
|
|
|
|
280
|
|
|
|
|
|
|
sub new { |
281
|
0
|
|
|
0
|
|
|
my $classname = shift; |
282
|
0
|
|
|
|
|
|
my $self = {}; |
283
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
284
|
0
|
|
|
|
|
|
$self->{keyTypePtr} = undef; |
285
|
0
|
|
|
|
|
|
$self->{valueTypePtr} = undef; |
286
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
287
|
0
|
0
|
|
|
|
|
if (defined $vals->{keyTypePtr}) { |
288
|
0
|
|
|
|
|
|
$self->{keyTypePtr} = $vals->{keyTypePtr}; |
289
|
|
|
|
|
|
|
} |
290
|
0
|
0
|
|
|
|
|
if (defined $vals->{valueTypePtr}) { |
291
|
0
|
|
|
|
|
|
$self->{valueTypePtr} = $vals->{valueTypePtr}; |
292
|
|
|
|
|
|
|
} |
293
|
|
|
|
|
|
|
} |
294
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
295
|
|
|
|
|
|
|
} |
296
|
|
|
|
|
|
|
|
297
|
|
|
|
|
|
|
sub getName { |
298
|
0
|
|
|
0
|
|
|
return 'TMapTypeEntry'; |
299
|
|
|
|
|
|
|
} |
300
|
|
|
|
|
|
|
|
301
|
|
|
|
|
|
|
sub read { |
302
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
303
|
0
|
|
|
|
|
|
my $xfer = 0; |
304
|
0
|
|
|
|
|
|
my $fname; |
305
|
0
|
|
|
|
|
|
my $ftype = 0; |
306
|
0
|
|
|
|
|
|
my $fid = 0; |
307
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
308
|
0
|
|
|
|
|
|
while (1) |
309
|
|
|
|
|
|
|
{ |
310
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
311
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
312
|
0
|
|
|
|
|
|
last; |
313
|
|
|
|
|
|
|
} |
314
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
315
|
|
|
|
|
|
|
{ |
316
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
317
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{keyTypePtr}); |
318
|
|
|
|
|
|
|
} else { |
319
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
320
|
|
|
|
|
|
|
} |
321
|
0
|
|
|
|
|
|
last; }; |
322
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
323
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{valueTypePtr}); |
324
|
|
|
|
|
|
|
} else { |
325
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
326
|
|
|
|
|
|
|
} |
327
|
0
|
|
|
|
|
|
last; }; |
328
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
329
|
|
|
|
|
|
|
} |
330
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
331
|
|
|
|
|
|
|
} |
332
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
333
|
0
|
|
|
|
|
|
return $xfer; |
334
|
|
|
|
|
|
|
} |
335
|
|
|
|
|
|
|
|
336
|
|
|
|
|
|
|
sub write { |
337
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
338
|
0
|
|
|
|
|
|
my $xfer = 0; |
339
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TMapTypeEntry'); |
340
|
0
|
0
|
|
|
|
|
if (defined $self->{keyTypePtr}) { |
341
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('keyTypePtr', TType::I32, 1); |
342
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{keyTypePtr}); |
343
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
344
|
|
|
|
|
|
|
} |
345
|
0
|
0
|
|
|
|
|
if (defined $self->{valueTypePtr}) { |
346
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('valueTypePtr', TType::I32, 2); |
347
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{valueTypePtr}); |
348
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
349
|
|
|
|
|
|
|
} |
350
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
351
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
352
|
0
|
|
|
|
|
|
return $xfer; |
353
|
|
|
|
|
|
|
} |
354
|
|
|
|
|
|
|
|
355
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TStructTypeEntry; |
356
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TStructTypeEntry::VERSION = '0.021'; |
357
|
|
|
|
|
|
|
{ |
358
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TStructTypeEntry::DIST = 'Thrift-API-HiveClient2'; |
359
|
|
|
|
|
|
|
} |
360
|
2
|
|
|
2
|
|
12
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
1310
|
|
361
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TStructTypeEntry->mk_accessors( qw( nameToTypePtr ) ); |
362
|
|
|
|
|
|
|
|
363
|
|
|
|
|
|
|
sub new { |
364
|
0
|
|
|
0
|
|
|
my $classname = shift; |
365
|
0
|
|
|
|
|
|
my $self = {}; |
366
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
367
|
0
|
|
|
|
|
|
$self->{nameToTypePtr} = undef; |
368
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
369
|
0
|
0
|
|
|
|
|
if (defined $vals->{nameToTypePtr}) { |
370
|
0
|
|
|
|
|
|
$self->{nameToTypePtr} = $vals->{nameToTypePtr}; |
371
|
|
|
|
|
|
|
} |
372
|
|
|
|
|
|
|
} |
373
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
374
|
|
|
|
|
|
|
} |
375
|
|
|
|
|
|
|
|
376
|
|
|
|
|
|
|
sub getName { |
377
|
0
|
|
|
0
|
|
|
return 'TStructTypeEntry'; |
378
|
|
|
|
|
|
|
} |
379
|
|
|
|
|
|
|
|
380
|
|
|
|
|
|
|
sub read { |
381
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
382
|
0
|
|
|
|
|
|
my $xfer = 0; |
383
|
0
|
|
|
|
|
|
my $fname; |
384
|
0
|
|
|
|
|
|
my $ftype = 0; |
385
|
0
|
|
|
|
|
|
my $fid = 0; |
386
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
387
|
0
|
|
|
|
|
|
while (1) |
388
|
|
|
|
|
|
|
{ |
389
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
390
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
391
|
0
|
|
|
|
|
|
last; |
392
|
|
|
|
|
|
|
} |
393
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
394
|
|
|
|
|
|
|
{ |
395
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::MAP) { |
|
0
|
0
|
|
|
|
|
|
396
|
|
|
|
|
|
|
{ |
397
|
0
|
|
|
|
|
|
my $_size0 = 0; |
|
0
|
|
|
|
|
|
|
398
|
0
|
|
|
|
|
|
$self->{nameToTypePtr} = {}; |
399
|
0
|
|
|
|
|
|
my $_ktype1 = 0; |
400
|
0
|
|
|
|
|
|
my $_vtype2 = 0; |
401
|
0
|
|
|
|
|
|
$xfer += $input->readMapBegin(\$_ktype1, \$_vtype2, \$_size0); |
402
|
0
|
|
|
|
|
|
for (my $_i4 = 0; $_i4 < $_size0; ++$_i4) |
403
|
|
|
|
|
|
|
{ |
404
|
0
|
|
|
|
|
|
my $key5 = ''; |
405
|
0
|
|
|
|
|
|
my $val6 = 0; |
406
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$key5); |
407
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$val6); |
408
|
0
|
|
|
|
|
|
$self->{nameToTypePtr}->{$key5} = $val6; |
409
|
|
|
|
|
|
|
} |
410
|
0
|
|
|
|
|
|
$xfer += $input->readMapEnd(); |
411
|
|
|
|
|
|
|
} |
412
|
|
|
|
|
|
|
} else { |
413
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
414
|
|
|
|
|
|
|
} |
415
|
0
|
|
|
|
|
|
last; }; |
416
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
417
|
|
|
|
|
|
|
} |
418
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
419
|
|
|
|
|
|
|
} |
420
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
421
|
0
|
|
|
|
|
|
return $xfer; |
422
|
|
|
|
|
|
|
} |
423
|
|
|
|
|
|
|
|
424
|
|
|
|
|
|
|
sub write { |
425
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
426
|
0
|
|
|
|
|
|
my $xfer = 0; |
427
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TStructTypeEntry'); |
428
|
0
|
0
|
|
|
|
|
if (defined $self->{nameToTypePtr}) { |
429
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('nameToTypePtr', TType::MAP, 1); |
430
|
|
|
|
|
|
|
{ |
431
|
0
|
|
|
|
|
|
$xfer += $output->writeMapBegin(TType::STRING, TType::I32, scalar(keys %{$self->{nameToTypePtr}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
432
|
|
|
|
|
|
|
{ |
433
|
0
|
|
|
|
|
|
while( my ($kiter7,$viter8) = each %{$self->{nameToTypePtr}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
434
|
|
|
|
|
|
|
{ |
435
|
0
|
|
|
|
|
|
$xfer += $output->writeString($kiter7); |
436
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($viter8); |
437
|
|
|
|
|
|
|
} |
438
|
|
|
|
|
|
|
} |
439
|
0
|
|
|
|
|
|
$xfer += $output->writeMapEnd(); |
440
|
|
|
|
|
|
|
} |
441
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
442
|
|
|
|
|
|
|
} |
443
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
444
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
445
|
0
|
|
|
|
|
|
return $xfer; |
446
|
|
|
|
|
|
|
} |
447
|
|
|
|
|
|
|
|
448
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TUnionTypeEntry; |
449
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TUnionTypeEntry::VERSION = '0.021'; |
450
|
|
|
|
|
|
|
{ |
451
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TUnionTypeEntry::DIST = 'Thrift-API-HiveClient2'; |
452
|
|
|
|
|
|
|
} |
453
|
2
|
|
|
2
|
|
11
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
1353
|
|
454
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TUnionTypeEntry->mk_accessors( qw( nameToTypePtr ) ); |
455
|
|
|
|
|
|
|
|
456
|
|
|
|
|
|
|
sub new { |
457
|
0
|
|
|
0
|
|
|
my $classname = shift; |
458
|
0
|
|
|
|
|
|
my $self = {}; |
459
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
460
|
0
|
|
|
|
|
|
$self->{nameToTypePtr} = undef; |
461
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
462
|
0
|
0
|
|
|
|
|
if (defined $vals->{nameToTypePtr}) { |
463
|
0
|
|
|
|
|
|
$self->{nameToTypePtr} = $vals->{nameToTypePtr}; |
464
|
|
|
|
|
|
|
} |
465
|
|
|
|
|
|
|
} |
466
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
467
|
|
|
|
|
|
|
} |
468
|
|
|
|
|
|
|
|
469
|
|
|
|
|
|
|
sub getName { |
470
|
0
|
|
|
0
|
|
|
return 'TUnionTypeEntry'; |
471
|
|
|
|
|
|
|
} |
472
|
|
|
|
|
|
|
|
473
|
|
|
|
|
|
|
sub read { |
474
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
475
|
0
|
|
|
|
|
|
my $xfer = 0; |
476
|
0
|
|
|
|
|
|
my $fname; |
477
|
0
|
|
|
|
|
|
my $ftype = 0; |
478
|
0
|
|
|
|
|
|
my $fid = 0; |
479
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
480
|
0
|
|
|
|
|
|
while (1) |
481
|
|
|
|
|
|
|
{ |
482
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
483
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
484
|
0
|
|
|
|
|
|
last; |
485
|
|
|
|
|
|
|
} |
486
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
487
|
|
|
|
|
|
|
{ |
488
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::MAP) { |
|
0
|
0
|
|
|
|
|
|
489
|
|
|
|
|
|
|
{ |
490
|
0
|
|
|
|
|
|
my $_size9 = 0; |
|
0
|
|
|
|
|
|
|
491
|
0
|
|
|
|
|
|
$self->{nameToTypePtr} = {}; |
492
|
0
|
|
|
|
|
|
my $_ktype10 = 0; |
493
|
0
|
|
|
|
|
|
my $_vtype11 = 0; |
494
|
0
|
|
|
|
|
|
$xfer += $input->readMapBegin(\$_ktype10, \$_vtype11, \$_size9); |
495
|
0
|
|
|
|
|
|
for (my $_i13 = 0; $_i13 < $_size9; ++$_i13) |
496
|
|
|
|
|
|
|
{ |
497
|
0
|
|
|
|
|
|
my $key14 = ''; |
498
|
0
|
|
|
|
|
|
my $val15 = 0; |
499
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$key14); |
500
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$val15); |
501
|
0
|
|
|
|
|
|
$self->{nameToTypePtr}->{$key14} = $val15; |
502
|
|
|
|
|
|
|
} |
503
|
0
|
|
|
|
|
|
$xfer += $input->readMapEnd(); |
504
|
|
|
|
|
|
|
} |
505
|
|
|
|
|
|
|
} else { |
506
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
507
|
|
|
|
|
|
|
} |
508
|
0
|
|
|
|
|
|
last; }; |
509
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
510
|
|
|
|
|
|
|
} |
511
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
512
|
|
|
|
|
|
|
} |
513
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
514
|
0
|
|
|
|
|
|
return $xfer; |
515
|
|
|
|
|
|
|
} |
516
|
|
|
|
|
|
|
|
517
|
|
|
|
|
|
|
sub write { |
518
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
519
|
0
|
|
|
|
|
|
my $xfer = 0; |
520
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TUnionTypeEntry'); |
521
|
0
|
0
|
|
|
|
|
if (defined $self->{nameToTypePtr}) { |
522
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('nameToTypePtr', TType::MAP, 1); |
523
|
|
|
|
|
|
|
{ |
524
|
0
|
|
|
|
|
|
$xfer += $output->writeMapBegin(TType::STRING, TType::I32, scalar(keys %{$self->{nameToTypePtr}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
525
|
|
|
|
|
|
|
{ |
526
|
0
|
|
|
|
|
|
while( my ($kiter16,$viter17) = each %{$self->{nameToTypePtr}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
527
|
|
|
|
|
|
|
{ |
528
|
0
|
|
|
|
|
|
$xfer += $output->writeString($kiter16); |
529
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($viter17); |
530
|
|
|
|
|
|
|
} |
531
|
|
|
|
|
|
|
} |
532
|
0
|
|
|
|
|
|
$xfer += $output->writeMapEnd(); |
533
|
|
|
|
|
|
|
} |
534
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
535
|
|
|
|
|
|
|
} |
536
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
537
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
538
|
0
|
|
|
|
|
|
return $xfer; |
539
|
|
|
|
|
|
|
} |
540
|
|
|
|
|
|
|
|
541
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TUserDefinedTypeEntry; |
542
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TUserDefinedTypeEntry::VERSION = '0.021'; |
543
|
|
|
|
|
|
|
{ |
544
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TUserDefinedTypeEntry::DIST = 'Thrift-API-HiveClient2'; |
545
|
|
|
|
|
|
|
} |
546
|
2
|
|
|
2
|
|
12
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
995
|
|
547
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TUserDefinedTypeEntry->mk_accessors( qw( typeClassName ) ); |
548
|
|
|
|
|
|
|
|
549
|
|
|
|
|
|
|
sub new { |
550
|
0
|
|
|
0
|
|
|
my $classname = shift; |
551
|
0
|
|
|
|
|
|
my $self = {}; |
552
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
553
|
0
|
|
|
|
|
|
$self->{typeClassName} = undef; |
554
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
555
|
0
|
0
|
|
|
|
|
if (defined $vals->{typeClassName}) { |
556
|
0
|
|
|
|
|
|
$self->{typeClassName} = $vals->{typeClassName}; |
557
|
|
|
|
|
|
|
} |
558
|
|
|
|
|
|
|
} |
559
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
560
|
|
|
|
|
|
|
} |
561
|
|
|
|
|
|
|
|
562
|
|
|
|
|
|
|
sub getName { |
563
|
0
|
|
|
0
|
|
|
return 'TUserDefinedTypeEntry'; |
564
|
|
|
|
|
|
|
} |
565
|
|
|
|
|
|
|
|
566
|
|
|
|
|
|
|
sub read { |
567
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
568
|
0
|
|
|
|
|
|
my $xfer = 0; |
569
|
0
|
|
|
|
|
|
my $fname; |
570
|
0
|
|
|
|
|
|
my $ftype = 0; |
571
|
0
|
|
|
|
|
|
my $fid = 0; |
572
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
573
|
0
|
|
|
|
|
|
while (1) |
574
|
|
|
|
|
|
|
{ |
575
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
576
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
577
|
0
|
|
|
|
|
|
last; |
578
|
|
|
|
|
|
|
} |
579
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
580
|
|
|
|
|
|
|
{ |
581
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
582
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{typeClassName}); |
583
|
|
|
|
|
|
|
} else { |
584
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
585
|
|
|
|
|
|
|
} |
586
|
0
|
|
|
|
|
|
last; }; |
587
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
588
|
|
|
|
|
|
|
} |
589
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
590
|
|
|
|
|
|
|
} |
591
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
592
|
0
|
|
|
|
|
|
return $xfer; |
593
|
|
|
|
|
|
|
} |
594
|
|
|
|
|
|
|
|
595
|
|
|
|
|
|
|
sub write { |
596
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
597
|
0
|
|
|
|
|
|
my $xfer = 0; |
598
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TUserDefinedTypeEntry'); |
599
|
0
|
0
|
|
|
|
|
if (defined $self->{typeClassName}) { |
600
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('typeClassName', TType::STRING, 1); |
601
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{typeClassName}); |
602
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
603
|
|
|
|
|
|
|
} |
604
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
605
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
606
|
0
|
|
|
|
|
|
return $xfer; |
607
|
|
|
|
|
|
|
} |
608
|
|
|
|
|
|
|
|
609
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TTypeEntry; |
610
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TTypeEntry::VERSION = '0.021'; |
611
|
|
|
|
|
|
|
{ |
612
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TTypeEntry::DIST = 'Thrift-API-HiveClient2'; |
613
|
|
|
|
|
|
|
} |
614
|
2
|
|
|
2
|
|
17
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
2240
|
|
615
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TTypeEntry->mk_accessors( qw( primitiveEntry arrayEntry mapEntry structEntry unionEntry userDefinedTypeEntry ) ); |
616
|
|
|
|
|
|
|
|
617
|
|
|
|
|
|
|
sub new { |
618
|
0
|
|
|
0
|
|
|
my $classname = shift; |
619
|
0
|
|
|
|
|
|
my $self = {}; |
620
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
621
|
0
|
|
|
|
|
|
$self->{primitiveEntry} = undef; |
622
|
0
|
|
|
|
|
|
$self->{arrayEntry} = undef; |
623
|
0
|
|
|
|
|
|
$self->{mapEntry} = undef; |
624
|
0
|
|
|
|
|
|
$self->{structEntry} = undef; |
625
|
0
|
|
|
|
|
|
$self->{unionEntry} = undef; |
626
|
0
|
|
|
|
|
|
$self->{userDefinedTypeEntry} = undef; |
627
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
628
|
0
|
0
|
|
|
|
|
if (defined $vals->{primitiveEntry}) { |
629
|
0
|
|
|
|
|
|
$self->{primitiveEntry} = $vals->{primitiveEntry}; |
630
|
|
|
|
|
|
|
} |
631
|
0
|
0
|
|
|
|
|
if (defined $vals->{arrayEntry}) { |
632
|
0
|
|
|
|
|
|
$self->{arrayEntry} = $vals->{arrayEntry}; |
633
|
|
|
|
|
|
|
} |
634
|
0
|
0
|
|
|
|
|
if (defined $vals->{mapEntry}) { |
635
|
0
|
|
|
|
|
|
$self->{mapEntry} = $vals->{mapEntry}; |
636
|
|
|
|
|
|
|
} |
637
|
0
|
0
|
|
|
|
|
if (defined $vals->{structEntry}) { |
638
|
0
|
|
|
|
|
|
$self->{structEntry} = $vals->{structEntry}; |
639
|
|
|
|
|
|
|
} |
640
|
0
|
0
|
|
|
|
|
if (defined $vals->{unionEntry}) { |
641
|
0
|
|
|
|
|
|
$self->{unionEntry} = $vals->{unionEntry}; |
642
|
|
|
|
|
|
|
} |
643
|
0
|
0
|
|
|
|
|
if (defined $vals->{userDefinedTypeEntry}) { |
644
|
0
|
|
|
|
|
|
$self->{userDefinedTypeEntry} = $vals->{userDefinedTypeEntry}; |
645
|
|
|
|
|
|
|
} |
646
|
|
|
|
|
|
|
} |
647
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
648
|
|
|
|
|
|
|
} |
649
|
|
|
|
|
|
|
|
650
|
|
|
|
|
|
|
sub getName { |
651
|
0
|
|
|
0
|
|
|
return 'TTypeEntry'; |
652
|
|
|
|
|
|
|
} |
653
|
|
|
|
|
|
|
|
654
|
|
|
|
|
|
|
sub read { |
655
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
656
|
0
|
|
|
|
|
|
my $xfer = 0; |
657
|
0
|
|
|
|
|
|
my $fname; |
658
|
0
|
|
|
|
|
|
my $ftype = 0; |
659
|
0
|
|
|
|
|
|
my $fid = 0; |
660
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
661
|
0
|
|
|
|
|
|
while (1) |
662
|
|
|
|
|
|
|
{ |
663
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
664
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
665
|
0
|
|
|
|
|
|
last; |
666
|
|
|
|
|
|
|
} |
667
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
668
|
|
|
|
|
|
|
{ |
669
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
670
|
0
|
|
|
|
|
|
$self->{primitiveEntry} = new Thrift::API::HiveClient2::TPrimitiveTypeEntry(); |
671
|
0
|
|
|
|
|
|
$xfer += $self->{primitiveEntry}->read($input); |
672
|
|
|
|
|
|
|
} else { |
673
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
674
|
|
|
|
|
|
|
} |
675
|
0
|
|
|
|
|
|
last; }; |
676
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
677
|
0
|
|
|
|
|
|
$self->{arrayEntry} = new Thrift::API::HiveClient2::TArrayTypeEntry(); |
678
|
0
|
|
|
|
|
|
$xfer += $self->{arrayEntry}->read($input); |
679
|
|
|
|
|
|
|
} else { |
680
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
681
|
|
|
|
|
|
|
} |
682
|
0
|
|
|
|
|
|
last; }; |
683
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
684
|
0
|
|
|
|
|
|
$self->{mapEntry} = new Thrift::API::HiveClient2::TMapTypeEntry(); |
685
|
0
|
|
|
|
|
|
$xfer += $self->{mapEntry}->read($input); |
686
|
|
|
|
|
|
|
} else { |
687
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
688
|
|
|
|
|
|
|
} |
689
|
0
|
|
|
|
|
|
last; }; |
690
|
0
|
0
|
|
|
|
|
/^4$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
691
|
0
|
|
|
|
|
|
$self->{structEntry} = new Thrift::API::HiveClient2::TStructTypeEntry(); |
692
|
0
|
|
|
|
|
|
$xfer += $self->{structEntry}->read($input); |
693
|
|
|
|
|
|
|
} else { |
694
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
695
|
|
|
|
|
|
|
} |
696
|
0
|
|
|
|
|
|
last; }; |
697
|
0
|
0
|
|
|
|
|
/^5$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
698
|
0
|
|
|
|
|
|
$self->{unionEntry} = new Thrift::API::HiveClient2::TUnionTypeEntry(); |
699
|
0
|
|
|
|
|
|
$xfer += $self->{unionEntry}->read($input); |
700
|
|
|
|
|
|
|
} else { |
701
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
702
|
|
|
|
|
|
|
} |
703
|
0
|
|
|
|
|
|
last; }; |
704
|
0
|
0
|
|
|
|
|
/^6$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
705
|
0
|
|
|
|
|
|
$self->{userDefinedTypeEntry} = new Thrift::API::HiveClient2::TUserDefinedTypeEntry(); |
706
|
0
|
|
|
|
|
|
$xfer += $self->{userDefinedTypeEntry}->read($input); |
707
|
|
|
|
|
|
|
} else { |
708
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
709
|
|
|
|
|
|
|
} |
710
|
0
|
|
|
|
|
|
last; }; |
711
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
712
|
|
|
|
|
|
|
} |
713
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
714
|
|
|
|
|
|
|
} |
715
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
716
|
0
|
|
|
|
|
|
return $xfer; |
717
|
|
|
|
|
|
|
} |
718
|
|
|
|
|
|
|
|
719
|
|
|
|
|
|
|
sub write { |
720
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
721
|
0
|
|
|
|
|
|
my $xfer = 0; |
722
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TTypeEntry'); |
723
|
0
|
0
|
|
|
|
|
if (defined $self->{primitiveEntry}) { |
724
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('primitiveEntry', TType::STRUCT, 1); |
725
|
0
|
|
|
|
|
|
$xfer += $self->{primitiveEntry}->write($output); |
726
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
727
|
|
|
|
|
|
|
} |
728
|
0
|
0
|
|
|
|
|
if (defined $self->{arrayEntry}) { |
729
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('arrayEntry', TType::STRUCT, 2); |
730
|
0
|
|
|
|
|
|
$xfer += $self->{arrayEntry}->write($output); |
731
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
732
|
|
|
|
|
|
|
} |
733
|
0
|
0
|
|
|
|
|
if (defined $self->{mapEntry}) { |
734
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('mapEntry', TType::STRUCT, 3); |
735
|
0
|
|
|
|
|
|
$xfer += $self->{mapEntry}->write($output); |
736
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
737
|
|
|
|
|
|
|
} |
738
|
0
|
0
|
|
|
|
|
if (defined $self->{structEntry}) { |
739
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('structEntry', TType::STRUCT, 4); |
740
|
0
|
|
|
|
|
|
$xfer += $self->{structEntry}->write($output); |
741
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
742
|
|
|
|
|
|
|
} |
743
|
0
|
0
|
|
|
|
|
if (defined $self->{unionEntry}) { |
744
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('unionEntry', TType::STRUCT, 5); |
745
|
0
|
|
|
|
|
|
$xfer += $self->{unionEntry}->write($output); |
746
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
747
|
|
|
|
|
|
|
} |
748
|
0
|
0
|
|
|
|
|
if (defined $self->{userDefinedTypeEntry}) { |
749
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('userDefinedTypeEntry', TType::STRUCT, 6); |
750
|
0
|
|
|
|
|
|
$xfer += $self->{userDefinedTypeEntry}->write($output); |
751
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
752
|
|
|
|
|
|
|
} |
753
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
754
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
755
|
0
|
|
|
|
|
|
return $xfer; |
756
|
|
|
|
|
|
|
} |
757
|
|
|
|
|
|
|
|
758
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TTypeDesc; |
759
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TTypeDesc::VERSION = '0.021'; |
760
|
|
|
|
|
|
|
{ |
761
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TTypeDesc::DIST = 'Thrift-API-HiveClient2'; |
762
|
|
|
|
|
|
|
} |
763
|
2
|
|
|
2
|
|
13
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1381
|
|
764
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TTypeDesc->mk_accessors( qw( types ) ); |
765
|
|
|
|
|
|
|
|
766
|
|
|
|
|
|
|
sub new { |
767
|
0
|
|
|
0
|
|
|
my $classname = shift; |
768
|
0
|
|
|
|
|
|
my $self = {}; |
769
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
770
|
0
|
|
|
|
|
|
$self->{types} = undef; |
771
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
772
|
0
|
0
|
|
|
|
|
if (defined $vals->{types}) { |
773
|
0
|
|
|
|
|
|
$self->{types} = $vals->{types}; |
774
|
|
|
|
|
|
|
} |
775
|
|
|
|
|
|
|
} |
776
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
777
|
|
|
|
|
|
|
} |
778
|
|
|
|
|
|
|
|
779
|
|
|
|
|
|
|
sub getName { |
780
|
0
|
|
|
0
|
|
|
return 'TTypeDesc'; |
781
|
|
|
|
|
|
|
} |
782
|
|
|
|
|
|
|
|
783
|
|
|
|
|
|
|
sub read { |
784
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
785
|
0
|
|
|
|
|
|
my $xfer = 0; |
786
|
0
|
|
|
|
|
|
my $fname; |
787
|
0
|
|
|
|
|
|
my $ftype = 0; |
788
|
0
|
|
|
|
|
|
my $fid = 0; |
789
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
790
|
0
|
|
|
|
|
|
while (1) |
791
|
|
|
|
|
|
|
{ |
792
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
793
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
794
|
0
|
|
|
|
|
|
last; |
795
|
|
|
|
|
|
|
} |
796
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
797
|
|
|
|
|
|
|
{ |
798
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::LIST) { |
|
0
|
0
|
|
|
|
|
|
799
|
|
|
|
|
|
|
{ |
800
|
0
|
|
|
|
|
|
my $_size18 = 0; |
|
0
|
|
|
|
|
|
|
801
|
0
|
|
|
|
|
|
$self->{types} = []; |
802
|
0
|
|
|
|
|
|
my $_etype21 = 0; |
803
|
0
|
|
|
|
|
|
$xfer += $input->readListBegin(\$_etype21, \$_size18); |
804
|
0
|
|
|
|
|
|
for (my $_i22 = 0; $_i22 < $_size18; ++$_i22) |
805
|
|
|
|
|
|
|
{ |
806
|
0
|
|
|
|
|
|
my $elem23 = undef; |
807
|
0
|
|
|
|
|
|
$elem23 = new Thrift::API::HiveClient2::TTypeEntry(); |
808
|
0
|
|
|
|
|
|
$xfer += $elem23->read($input); |
809
|
0
|
|
|
|
|
|
push(@{$self->{types}},$elem23); |
|
0
|
|
|
|
|
|
|
810
|
|
|
|
|
|
|
} |
811
|
0
|
|
|
|
|
|
$xfer += $input->readListEnd(); |
812
|
|
|
|
|
|
|
} |
813
|
|
|
|
|
|
|
} else { |
814
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
815
|
|
|
|
|
|
|
} |
816
|
0
|
|
|
|
|
|
last; }; |
817
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
818
|
|
|
|
|
|
|
} |
819
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
820
|
|
|
|
|
|
|
} |
821
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
822
|
0
|
|
|
|
|
|
return $xfer; |
823
|
|
|
|
|
|
|
} |
824
|
|
|
|
|
|
|
|
825
|
|
|
|
|
|
|
sub write { |
826
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
827
|
0
|
|
|
|
|
|
my $xfer = 0; |
828
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TTypeDesc'); |
829
|
0
|
0
|
|
|
|
|
if (defined $self->{types}) { |
830
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('types', TType::LIST, 1); |
831
|
|
|
|
|
|
|
{ |
832
|
0
|
|
|
|
|
|
$xfer += $output->writeListBegin(TType::STRUCT, scalar(@{$self->{types}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
833
|
|
|
|
|
|
|
{ |
834
|
0
|
|
|
|
|
|
foreach my $iter24 (@{$self->{types}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
835
|
|
|
|
|
|
|
{ |
836
|
0
|
|
|
|
|
|
$xfer += ${iter24}->write($output); |
837
|
|
|
|
|
|
|
} |
838
|
|
|
|
|
|
|
} |
839
|
0
|
|
|
|
|
|
$xfer += $output->writeListEnd(); |
840
|
|
|
|
|
|
|
} |
841
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
842
|
|
|
|
|
|
|
} |
843
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
844
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
845
|
0
|
|
|
|
|
|
return $xfer; |
846
|
|
|
|
|
|
|
} |
847
|
|
|
|
|
|
|
|
848
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TColumnDesc; |
849
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TColumnDesc::VERSION = '0.021'; |
850
|
|
|
|
|
|
|
{ |
851
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TColumnDesc::DIST = 'Thrift-API-HiveClient2'; |
852
|
|
|
|
|
|
|
} |
853
|
2
|
|
|
2
|
|
12
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
1721
|
|
854
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TColumnDesc->mk_accessors( qw( columnName typeDesc position comment ) ); |
855
|
|
|
|
|
|
|
|
856
|
|
|
|
|
|
|
sub new { |
857
|
0
|
|
|
0
|
|
|
my $classname = shift; |
858
|
0
|
|
|
|
|
|
my $self = {}; |
859
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
860
|
0
|
|
|
|
|
|
$self->{columnName} = undef; |
861
|
0
|
|
|
|
|
|
$self->{typeDesc} = undef; |
862
|
0
|
|
|
|
|
|
$self->{position} = undef; |
863
|
0
|
|
|
|
|
|
$self->{comment} = undef; |
864
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
865
|
0
|
0
|
|
|
|
|
if (defined $vals->{columnName}) { |
866
|
0
|
|
|
|
|
|
$self->{columnName} = $vals->{columnName}; |
867
|
|
|
|
|
|
|
} |
868
|
0
|
0
|
|
|
|
|
if (defined $vals->{typeDesc}) { |
869
|
0
|
|
|
|
|
|
$self->{typeDesc} = $vals->{typeDesc}; |
870
|
|
|
|
|
|
|
} |
871
|
0
|
0
|
|
|
|
|
if (defined $vals->{position}) { |
872
|
0
|
|
|
|
|
|
$self->{position} = $vals->{position}; |
873
|
|
|
|
|
|
|
} |
874
|
0
|
0
|
|
|
|
|
if (defined $vals->{comment}) { |
875
|
0
|
|
|
|
|
|
$self->{comment} = $vals->{comment}; |
876
|
|
|
|
|
|
|
} |
877
|
|
|
|
|
|
|
} |
878
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
879
|
|
|
|
|
|
|
} |
880
|
|
|
|
|
|
|
|
881
|
|
|
|
|
|
|
sub getName { |
882
|
0
|
|
|
0
|
|
|
return 'TColumnDesc'; |
883
|
|
|
|
|
|
|
} |
884
|
|
|
|
|
|
|
|
885
|
|
|
|
|
|
|
sub read { |
886
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
887
|
0
|
|
|
|
|
|
my $xfer = 0; |
888
|
0
|
|
|
|
|
|
my $fname; |
889
|
0
|
|
|
|
|
|
my $ftype = 0; |
890
|
0
|
|
|
|
|
|
my $fid = 0; |
891
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
892
|
0
|
|
|
|
|
|
while (1) |
893
|
|
|
|
|
|
|
{ |
894
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
895
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
896
|
0
|
|
|
|
|
|
last; |
897
|
|
|
|
|
|
|
} |
898
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
899
|
|
|
|
|
|
|
{ |
900
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
901
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{columnName}); |
902
|
|
|
|
|
|
|
} else { |
903
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
904
|
|
|
|
|
|
|
} |
905
|
0
|
|
|
|
|
|
last; }; |
906
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
907
|
0
|
|
|
|
|
|
$self->{typeDesc} = new Thrift::API::HiveClient2::TTypeDesc(); |
908
|
0
|
|
|
|
|
|
$xfer += $self->{typeDesc}->read($input); |
909
|
|
|
|
|
|
|
} else { |
910
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
911
|
|
|
|
|
|
|
} |
912
|
0
|
|
|
|
|
|
last; }; |
913
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
914
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{position}); |
915
|
|
|
|
|
|
|
} else { |
916
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
917
|
|
|
|
|
|
|
} |
918
|
0
|
|
|
|
|
|
last; }; |
919
|
0
|
0
|
|
|
|
|
/^4$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
920
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{comment}); |
921
|
|
|
|
|
|
|
} else { |
922
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
923
|
|
|
|
|
|
|
} |
924
|
0
|
|
|
|
|
|
last; }; |
925
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
926
|
|
|
|
|
|
|
} |
927
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
928
|
|
|
|
|
|
|
} |
929
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
930
|
0
|
|
|
|
|
|
return $xfer; |
931
|
|
|
|
|
|
|
} |
932
|
|
|
|
|
|
|
|
933
|
|
|
|
|
|
|
sub write { |
934
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
935
|
0
|
|
|
|
|
|
my $xfer = 0; |
936
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TColumnDesc'); |
937
|
0
|
0
|
|
|
|
|
if (defined $self->{columnName}) { |
938
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('columnName', TType::STRING, 1); |
939
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{columnName}); |
940
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
941
|
|
|
|
|
|
|
} |
942
|
0
|
0
|
|
|
|
|
if (defined $self->{typeDesc}) { |
943
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('typeDesc', TType::STRUCT, 2); |
944
|
0
|
|
|
|
|
|
$xfer += $self->{typeDesc}->write($output); |
945
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
946
|
|
|
|
|
|
|
} |
947
|
0
|
0
|
|
|
|
|
if (defined $self->{position}) { |
948
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('position', TType::I32, 3); |
949
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{position}); |
950
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
951
|
|
|
|
|
|
|
} |
952
|
0
|
0
|
|
|
|
|
if (defined $self->{comment}) { |
953
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('comment', TType::STRING, 4); |
954
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{comment}); |
955
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
956
|
|
|
|
|
|
|
} |
957
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
958
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
959
|
0
|
|
|
|
|
|
return $xfer; |
960
|
|
|
|
|
|
|
} |
961
|
|
|
|
|
|
|
|
962
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TTableSchema; |
963
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TTableSchema::VERSION = '0.021'; |
964
|
|
|
|
|
|
|
{ |
965
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TTableSchema::DIST = 'Thrift-API-HiveClient2'; |
966
|
|
|
|
|
|
|
} |
967
|
2
|
|
|
2
|
|
11
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1270
|
|
968
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TTableSchema->mk_accessors( qw( columns ) ); |
969
|
|
|
|
|
|
|
|
970
|
|
|
|
|
|
|
sub new { |
971
|
0
|
|
|
0
|
|
|
my $classname = shift; |
972
|
0
|
|
|
|
|
|
my $self = {}; |
973
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
974
|
0
|
|
|
|
|
|
$self->{columns} = undef; |
975
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
976
|
0
|
0
|
|
|
|
|
if (defined $vals->{columns}) { |
977
|
0
|
|
|
|
|
|
$self->{columns} = $vals->{columns}; |
978
|
|
|
|
|
|
|
} |
979
|
|
|
|
|
|
|
} |
980
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
981
|
|
|
|
|
|
|
} |
982
|
|
|
|
|
|
|
|
983
|
|
|
|
|
|
|
sub getName { |
984
|
0
|
|
|
0
|
|
|
return 'TTableSchema'; |
985
|
|
|
|
|
|
|
} |
986
|
|
|
|
|
|
|
|
987
|
|
|
|
|
|
|
sub read { |
988
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
989
|
0
|
|
|
|
|
|
my $xfer = 0; |
990
|
0
|
|
|
|
|
|
my $fname; |
991
|
0
|
|
|
|
|
|
my $ftype = 0; |
992
|
0
|
|
|
|
|
|
my $fid = 0; |
993
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
994
|
0
|
|
|
|
|
|
while (1) |
995
|
|
|
|
|
|
|
{ |
996
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
997
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
998
|
0
|
|
|
|
|
|
last; |
999
|
|
|
|
|
|
|
} |
1000
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
1001
|
|
|
|
|
|
|
{ |
1002
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::LIST) { |
|
0
|
0
|
|
|
|
|
|
1003
|
|
|
|
|
|
|
{ |
1004
|
0
|
|
|
|
|
|
my $_size25 = 0; |
|
0
|
|
|
|
|
|
|
1005
|
0
|
|
|
|
|
|
$self->{columns} = []; |
1006
|
0
|
|
|
|
|
|
my $_etype28 = 0; |
1007
|
0
|
|
|
|
|
|
$xfer += $input->readListBegin(\$_etype28, \$_size25); |
1008
|
0
|
|
|
|
|
|
for (my $_i29 = 0; $_i29 < $_size25; ++$_i29) |
1009
|
|
|
|
|
|
|
{ |
1010
|
0
|
|
|
|
|
|
my $elem30 = undef; |
1011
|
0
|
|
|
|
|
|
$elem30 = new Thrift::API::HiveClient2::TColumnDesc(); |
1012
|
0
|
|
|
|
|
|
$xfer += $elem30->read($input); |
1013
|
0
|
|
|
|
|
|
push(@{$self->{columns}},$elem30); |
|
0
|
|
|
|
|
|
|
1014
|
|
|
|
|
|
|
} |
1015
|
0
|
|
|
|
|
|
$xfer += $input->readListEnd(); |
1016
|
|
|
|
|
|
|
} |
1017
|
|
|
|
|
|
|
} else { |
1018
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1019
|
|
|
|
|
|
|
} |
1020
|
0
|
|
|
|
|
|
last; }; |
1021
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1022
|
|
|
|
|
|
|
} |
1023
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
1024
|
|
|
|
|
|
|
} |
1025
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
1026
|
0
|
|
|
|
|
|
return $xfer; |
1027
|
|
|
|
|
|
|
} |
1028
|
|
|
|
|
|
|
|
1029
|
|
|
|
|
|
|
sub write { |
1030
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
1031
|
0
|
|
|
|
|
|
my $xfer = 0; |
1032
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TTableSchema'); |
1033
|
0
|
0
|
|
|
|
|
if (defined $self->{columns}) { |
1034
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('columns', TType::LIST, 1); |
1035
|
|
|
|
|
|
|
{ |
1036
|
0
|
|
|
|
|
|
$xfer += $output->writeListBegin(TType::STRUCT, scalar(@{$self->{columns}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1037
|
|
|
|
|
|
|
{ |
1038
|
0
|
|
|
|
|
|
foreach my $iter31 (@{$self->{columns}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1039
|
|
|
|
|
|
|
{ |
1040
|
0
|
|
|
|
|
|
$xfer += ${iter31}->write($output); |
1041
|
|
|
|
|
|
|
} |
1042
|
|
|
|
|
|
|
} |
1043
|
0
|
|
|
|
|
|
$xfer += $output->writeListEnd(); |
1044
|
|
|
|
|
|
|
} |
1045
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1046
|
|
|
|
|
|
|
} |
1047
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
1048
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
1049
|
0
|
|
|
|
|
|
return $xfer; |
1050
|
|
|
|
|
|
|
} |
1051
|
|
|
|
|
|
|
|
1052
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TBoolValue; |
1053
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TBoolValue::VERSION = '0.021'; |
1054
|
|
|
|
|
|
|
{ |
1055
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TBoolValue::DIST = 'Thrift-API-HiveClient2'; |
1056
|
|
|
|
|
|
|
} |
1057
|
2
|
|
|
2
|
|
28
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
991
|
|
1058
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TBoolValue->mk_accessors( qw( value ) ); |
1059
|
|
|
|
|
|
|
|
1060
|
|
|
|
|
|
|
sub new { |
1061
|
0
|
|
|
0
|
|
|
my $classname = shift; |
1062
|
0
|
|
|
|
|
|
my $self = {}; |
1063
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
1064
|
0
|
|
|
|
|
|
$self->{value} = undef; |
1065
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
1066
|
0
|
0
|
|
|
|
|
if (defined $vals->{value}) { |
1067
|
0
|
|
|
|
|
|
$self->{value} = $vals->{value}; |
1068
|
|
|
|
|
|
|
} |
1069
|
|
|
|
|
|
|
} |
1070
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
1071
|
|
|
|
|
|
|
} |
1072
|
|
|
|
|
|
|
|
1073
|
|
|
|
|
|
|
sub getName { |
1074
|
0
|
|
|
0
|
|
|
return 'TBoolValue'; |
1075
|
|
|
|
|
|
|
} |
1076
|
|
|
|
|
|
|
|
1077
|
|
|
|
|
|
|
sub read { |
1078
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
1079
|
0
|
|
|
|
|
|
my $xfer = 0; |
1080
|
0
|
|
|
|
|
|
my $fname; |
1081
|
0
|
|
|
|
|
|
my $ftype = 0; |
1082
|
0
|
|
|
|
|
|
my $fid = 0; |
1083
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
1084
|
0
|
|
|
|
|
|
while (1) |
1085
|
|
|
|
|
|
|
{ |
1086
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
1087
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
1088
|
0
|
|
|
|
|
|
last; |
1089
|
|
|
|
|
|
|
} |
1090
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
1091
|
|
|
|
|
|
|
{ |
1092
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::BOOL) { |
|
0
|
0
|
|
|
|
|
|
1093
|
0
|
|
|
|
|
|
$xfer += $input->readBool(\$self->{value}); |
1094
|
|
|
|
|
|
|
} else { |
1095
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1096
|
|
|
|
|
|
|
} |
1097
|
0
|
|
|
|
|
|
last; }; |
1098
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1099
|
|
|
|
|
|
|
} |
1100
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
1101
|
|
|
|
|
|
|
} |
1102
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
1103
|
0
|
|
|
|
|
|
return $xfer; |
1104
|
|
|
|
|
|
|
} |
1105
|
|
|
|
|
|
|
|
1106
|
|
|
|
|
|
|
sub write { |
1107
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
1108
|
0
|
|
|
|
|
|
my $xfer = 0; |
1109
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TBoolValue'); |
1110
|
0
|
0
|
|
|
|
|
if (defined $self->{value}) { |
1111
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('value', TType::BOOL, 1); |
1112
|
0
|
|
|
|
|
|
$xfer += $output->writeBool($self->{value}); |
1113
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1114
|
|
|
|
|
|
|
} |
1115
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
1116
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
1117
|
0
|
|
|
|
|
|
return $xfer; |
1118
|
|
|
|
|
|
|
} |
1119
|
|
|
|
|
|
|
|
1120
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TByteValue; |
1121
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TByteValue::VERSION = '0.021'; |
1122
|
|
|
|
|
|
|
{ |
1123
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TByteValue::DIST = 'Thrift-API-HiveClient2'; |
1124
|
|
|
|
|
|
|
} |
1125
|
2
|
|
|
2
|
|
11
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1007
|
|
1126
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TByteValue->mk_accessors( qw( value ) ); |
1127
|
|
|
|
|
|
|
|
1128
|
|
|
|
|
|
|
sub new { |
1129
|
0
|
|
|
0
|
|
|
my $classname = shift; |
1130
|
0
|
|
|
|
|
|
my $self = {}; |
1131
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
1132
|
0
|
|
|
|
|
|
$self->{value} = undef; |
1133
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
1134
|
0
|
0
|
|
|
|
|
if (defined $vals->{value}) { |
1135
|
0
|
|
|
|
|
|
$self->{value} = $vals->{value}; |
1136
|
|
|
|
|
|
|
} |
1137
|
|
|
|
|
|
|
} |
1138
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
1139
|
|
|
|
|
|
|
} |
1140
|
|
|
|
|
|
|
|
1141
|
|
|
|
|
|
|
sub getName { |
1142
|
0
|
|
|
0
|
|
|
return 'TByteValue'; |
1143
|
|
|
|
|
|
|
} |
1144
|
|
|
|
|
|
|
|
1145
|
|
|
|
|
|
|
sub read { |
1146
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
1147
|
0
|
|
|
|
|
|
my $xfer = 0; |
1148
|
0
|
|
|
|
|
|
my $fname; |
1149
|
0
|
|
|
|
|
|
my $ftype = 0; |
1150
|
0
|
|
|
|
|
|
my $fid = 0; |
1151
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
1152
|
0
|
|
|
|
|
|
while (1) |
1153
|
|
|
|
|
|
|
{ |
1154
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
1155
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
1156
|
0
|
|
|
|
|
|
last; |
1157
|
|
|
|
|
|
|
} |
1158
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
1159
|
|
|
|
|
|
|
{ |
1160
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::BYTE) { |
|
0
|
0
|
|
|
|
|
|
1161
|
0
|
|
|
|
|
|
$xfer += $input->readByte(\$self->{value}); |
1162
|
|
|
|
|
|
|
} else { |
1163
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1164
|
|
|
|
|
|
|
} |
1165
|
0
|
|
|
|
|
|
last; }; |
1166
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1167
|
|
|
|
|
|
|
} |
1168
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
1169
|
|
|
|
|
|
|
} |
1170
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
1171
|
0
|
|
|
|
|
|
return $xfer; |
1172
|
|
|
|
|
|
|
} |
1173
|
|
|
|
|
|
|
|
1174
|
|
|
|
|
|
|
sub write { |
1175
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
1176
|
0
|
|
|
|
|
|
my $xfer = 0; |
1177
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TByteValue'); |
1178
|
0
|
0
|
|
|
|
|
if (defined $self->{value}) { |
1179
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('value', TType::BYTE, 1); |
1180
|
0
|
|
|
|
|
|
$xfer += $output->writeByte($self->{value}); |
1181
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1182
|
|
|
|
|
|
|
} |
1183
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
1184
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
1185
|
0
|
|
|
|
|
|
return $xfer; |
1186
|
|
|
|
|
|
|
} |
1187
|
|
|
|
|
|
|
|
1188
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TI16Value; |
1189
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TI16Value::VERSION = '0.021'; |
1190
|
|
|
|
|
|
|
{ |
1191
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TI16Value::DIST = 'Thrift-API-HiveClient2'; |
1192
|
|
|
|
|
|
|
} |
1193
|
2
|
|
|
2
|
|
12
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
958
|
|
1194
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TI16Value->mk_accessors( qw( value ) ); |
1195
|
|
|
|
|
|
|
|
1196
|
|
|
|
|
|
|
sub new { |
1197
|
0
|
|
|
0
|
|
|
my $classname = shift; |
1198
|
0
|
|
|
|
|
|
my $self = {}; |
1199
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
1200
|
0
|
|
|
|
|
|
$self->{value} = undef; |
1201
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
1202
|
0
|
0
|
|
|
|
|
if (defined $vals->{value}) { |
1203
|
0
|
|
|
|
|
|
$self->{value} = $vals->{value}; |
1204
|
|
|
|
|
|
|
} |
1205
|
|
|
|
|
|
|
} |
1206
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
1207
|
|
|
|
|
|
|
} |
1208
|
|
|
|
|
|
|
|
1209
|
|
|
|
|
|
|
sub getName { |
1210
|
0
|
|
|
0
|
|
|
return 'TI16Value'; |
1211
|
|
|
|
|
|
|
} |
1212
|
|
|
|
|
|
|
|
1213
|
|
|
|
|
|
|
sub read { |
1214
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
1215
|
0
|
|
|
|
|
|
my $xfer = 0; |
1216
|
0
|
|
|
|
|
|
my $fname; |
1217
|
0
|
|
|
|
|
|
my $ftype = 0; |
1218
|
0
|
|
|
|
|
|
my $fid = 0; |
1219
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
1220
|
0
|
|
|
|
|
|
while (1) |
1221
|
|
|
|
|
|
|
{ |
1222
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
1223
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
1224
|
0
|
|
|
|
|
|
last; |
1225
|
|
|
|
|
|
|
} |
1226
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
1227
|
|
|
|
|
|
|
{ |
1228
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::I16) { |
|
0
|
0
|
|
|
|
|
|
1229
|
0
|
|
|
|
|
|
$xfer += $input->readI16(\$self->{value}); |
1230
|
|
|
|
|
|
|
} else { |
1231
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1232
|
|
|
|
|
|
|
} |
1233
|
0
|
|
|
|
|
|
last; }; |
1234
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1235
|
|
|
|
|
|
|
} |
1236
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
1237
|
|
|
|
|
|
|
} |
1238
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
1239
|
0
|
|
|
|
|
|
return $xfer; |
1240
|
|
|
|
|
|
|
} |
1241
|
|
|
|
|
|
|
|
1242
|
|
|
|
|
|
|
sub write { |
1243
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
1244
|
0
|
|
|
|
|
|
my $xfer = 0; |
1245
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TI16Value'); |
1246
|
0
|
0
|
|
|
|
|
if (defined $self->{value}) { |
1247
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('value', TType::I16, 1); |
1248
|
0
|
|
|
|
|
|
$xfer += $output->writeI16($self->{value}); |
1249
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1250
|
|
|
|
|
|
|
} |
1251
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
1252
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
1253
|
0
|
|
|
|
|
|
return $xfer; |
1254
|
|
|
|
|
|
|
} |
1255
|
|
|
|
|
|
|
|
1256
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TI32Value; |
1257
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TI32Value::VERSION = '0.021'; |
1258
|
|
|
|
|
|
|
{ |
1259
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TI32Value::DIST = 'Thrift-API-HiveClient2'; |
1260
|
|
|
|
|
|
|
} |
1261
|
2
|
|
|
2
|
|
17
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
1015
|
|
1262
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TI32Value->mk_accessors( qw( value ) ); |
1263
|
|
|
|
|
|
|
|
1264
|
|
|
|
|
|
|
sub new { |
1265
|
0
|
|
|
0
|
|
|
my $classname = shift; |
1266
|
0
|
|
|
|
|
|
my $self = {}; |
1267
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
1268
|
0
|
|
|
|
|
|
$self->{value} = undef; |
1269
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
1270
|
0
|
0
|
|
|
|
|
if (defined $vals->{value}) { |
1271
|
0
|
|
|
|
|
|
$self->{value} = $vals->{value}; |
1272
|
|
|
|
|
|
|
} |
1273
|
|
|
|
|
|
|
} |
1274
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
1275
|
|
|
|
|
|
|
} |
1276
|
|
|
|
|
|
|
|
1277
|
|
|
|
|
|
|
sub getName { |
1278
|
0
|
|
|
0
|
|
|
return 'TI32Value'; |
1279
|
|
|
|
|
|
|
} |
1280
|
|
|
|
|
|
|
|
1281
|
|
|
|
|
|
|
sub read { |
1282
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
1283
|
0
|
|
|
|
|
|
my $xfer = 0; |
1284
|
0
|
|
|
|
|
|
my $fname; |
1285
|
0
|
|
|
|
|
|
my $ftype = 0; |
1286
|
0
|
|
|
|
|
|
my $fid = 0; |
1287
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
1288
|
0
|
|
|
|
|
|
while (1) |
1289
|
|
|
|
|
|
|
{ |
1290
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
1291
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
1292
|
0
|
|
|
|
|
|
last; |
1293
|
|
|
|
|
|
|
} |
1294
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
1295
|
|
|
|
|
|
|
{ |
1296
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
1297
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{value}); |
1298
|
|
|
|
|
|
|
} else { |
1299
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1300
|
|
|
|
|
|
|
} |
1301
|
0
|
|
|
|
|
|
last; }; |
1302
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1303
|
|
|
|
|
|
|
} |
1304
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
1305
|
|
|
|
|
|
|
} |
1306
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
1307
|
0
|
|
|
|
|
|
return $xfer; |
1308
|
|
|
|
|
|
|
} |
1309
|
|
|
|
|
|
|
|
1310
|
|
|
|
|
|
|
sub write { |
1311
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
1312
|
0
|
|
|
|
|
|
my $xfer = 0; |
1313
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TI32Value'); |
1314
|
0
|
0
|
|
|
|
|
if (defined $self->{value}) { |
1315
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('value', TType::I32, 1); |
1316
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{value}); |
1317
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1318
|
|
|
|
|
|
|
} |
1319
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
1320
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
1321
|
0
|
|
|
|
|
|
return $xfer; |
1322
|
|
|
|
|
|
|
} |
1323
|
|
|
|
|
|
|
|
1324
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TI64Value; |
1325
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TI64Value::VERSION = '0.021'; |
1326
|
|
|
|
|
|
|
{ |
1327
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TI64Value::DIST = 'Thrift-API-HiveClient2'; |
1328
|
|
|
|
|
|
|
} |
1329
|
2
|
|
|
2
|
|
11
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1125
|
|
1330
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TI64Value->mk_accessors( qw( value ) ); |
1331
|
|
|
|
|
|
|
|
1332
|
|
|
|
|
|
|
sub new { |
1333
|
0
|
|
|
0
|
|
|
my $classname = shift; |
1334
|
0
|
|
|
|
|
|
my $self = {}; |
1335
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
1336
|
0
|
|
|
|
|
|
$self->{value} = undef; |
1337
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
1338
|
0
|
0
|
|
|
|
|
if (defined $vals->{value}) { |
1339
|
0
|
|
|
|
|
|
$self->{value} = $vals->{value}; |
1340
|
|
|
|
|
|
|
} |
1341
|
|
|
|
|
|
|
} |
1342
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
1343
|
|
|
|
|
|
|
} |
1344
|
|
|
|
|
|
|
|
1345
|
|
|
|
|
|
|
sub getName { |
1346
|
0
|
|
|
0
|
|
|
return 'TI64Value'; |
1347
|
|
|
|
|
|
|
} |
1348
|
|
|
|
|
|
|
|
1349
|
|
|
|
|
|
|
sub read { |
1350
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
1351
|
0
|
|
|
|
|
|
my $xfer = 0; |
1352
|
0
|
|
|
|
|
|
my $fname; |
1353
|
0
|
|
|
|
|
|
my $ftype = 0; |
1354
|
0
|
|
|
|
|
|
my $fid = 0; |
1355
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
1356
|
0
|
|
|
|
|
|
while (1) |
1357
|
|
|
|
|
|
|
{ |
1358
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
1359
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
1360
|
0
|
|
|
|
|
|
last; |
1361
|
|
|
|
|
|
|
} |
1362
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
1363
|
|
|
|
|
|
|
{ |
1364
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::I64) { |
|
0
|
0
|
|
|
|
|
|
1365
|
0
|
|
|
|
|
|
$xfer += $input->readI64(\$self->{value}); |
1366
|
|
|
|
|
|
|
} else { |
1367
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1368
|
|
|
|
|
|
|
} |
1369
|
0
|
|
|
|
|
|
last; }; |
1370
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1371
|
|
|
|
|
|
|
} |
1372
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
1373
|
|
|
|
|
|
|
} |
1374
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
1375
|
0
|
|
|
|
|
|
return $xfer; |
1376
|
|
|
|
|
|
|
} |
1377
|
|
|
|
|
|
|
|
1378
|
|
|
|
|
|
|
sub write { |
1379
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
1380
|
0
|
|
|
|
|
|
my $xfer = 0; |
1381
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TI64Value'); |
1382
|
0
|
0
|
|
|
|
|
if (defined $self->{value}) { |
1383
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('value', TType::I64, 1); |
1384
|
0
|
|
|
|
|
|
$xfer += $output->writeI64($self->{value}); |
1385
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1386
|
|
|
|
|
|
|
} |
1387
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
1388
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
1389
|
0
|
|
|
|
|
|
return $xfer; |
1390
|
|
|
|
|
|
|
} |
1391
|
|
|
|
|
|
|
|
1392
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TDoubleValue; |
1393
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TDoubleValue::VERSION = '0.021'; |
1394
|
|
|
|
|
|
|
{ |
1395
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TDoubleValue::DIST = 'Thrift-API-HiveClient2'; |
1396
|
|
|
|
|
|
|
} |
1397
|
2
|
|
|
2
|
|
13
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1017
|
|
1398
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TDoubleValue->mk_accessors( qw( value ) ); |
1399
|
|
|
|
|
|
|
|
1400
|
|
|
|
|
|
|
sub new { |
1401
|
0
|
|
|
0
|
|
|
my $classname = shift; |
1402
|
0
|
|
|
|
|
|
my $self = {}; |
1403
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
1404
|
0
|
|
|
|
|
|
$self->{value} = undef; |
1405
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
1406
|
0
|
0
|
|
|
|
|
if (defined $vals->{value}) { |
1407
|
0
|
|
|
|
|
|
$self->{value} = $vals->{value}; |
1408
|
|
|
|
|
|
|
} |
1409
|
|
|
|
|
|
|
} |
1410
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
1411
|
|
|
|
|
|
|
} |
1412
|
|
|
|
|
|
|
|
1413
|
|
|
|
|
|
|
sub getName { |
1414
|
0
|
|
|
0
|
|
|
return 'TDoubleValue'; |
1415
|
|
|
|
|
|
|
} |
1416
|
|
|
|
|
|
|
|
1417
|
|
|
|
|
|
|
sub read { |
1418
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
1419
|
0
|
|
|
|
|
|
my $xfer = 0; |
1420
|
0
|
|
|
|
|
|
my $fname; |
1421
|
0
|
|
|
|
|
|
my $ftype = 0; |
1422
|
0
|
|
|
|
|
|
my $fid = 0; |
1423
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
1424
|
0
|
|
|
|
|
|
while (1) |
1425
|
|
|
|
|
|
|
{ |
1426
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
1427
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
1428
|
0
|
|
|
|
|
|
last; |
1429
|
|
|
|
|
|
|
} |
1430
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
1431
|
|
|
|
|
|
|
{ |
1432
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::DOUBLE) { |
|
0
|
0
|
|
|
|
|
|
1433
|
0
|
|
|
|
|
|
$xfer += $input->readDouble(\$self->{value}); |
1434
|
|
|
|
|
|
|
} else { |
1435
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1436
|
|
|
|
|
|
|
} |
1437
|
0
|
|
|
|
|
|
last; }; |
1438
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1439
|
|
|
|
|
|
|
} |
1440
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
1441
|
|
|
|
|
|
|
} |
1442
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
1443
|
0
|
|
|
|
|
|
return $xfer; |
1444
|
|
|
|
|
|
|
} |
1445
|
|
|
|
|
|
|
|
1446
|
|
|
|
|
|
|
sub write { |
1447
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
1448
|
0
|
|
|
|
|
|
my $xfer = 0; |
1449
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TDoubleValue'); |
1450
|
0
|
0
|
|
|
|
|
if (defined $self->{value}) { |
1451
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('value', TType::DOUBLE, 1); |
1452
|
0
|
|
|
|
|
|
$xfer += $output->writeDouble($self->{value}); |
1453
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1454
|
|
|
|
|
|
|
} |
1455
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
1456
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
1457
|
0
|
|
|
|
|
|
return $xfer; |
1458
|
|
|
|
|
|
|
} |
1459
|
|
|
|
|
|
|
|
1460
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TStringValue; |
1461
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TStringValue::VERSION = '0.021'; |
1462
|
|
|
|
|
|
|
{ |
1463
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TStringValue::DIST = 'Thrift-API-HiveClient2'; |
1464
|
|
|
|
|
|
|
} |
1465
|
2
|
|
|
2
|
|
12
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
977
|
|
1466
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TStringValue->mk_accessors( qw( value ) ); |
1467
|
|
|
|
|
|
|
|
1468
|
|
|
|
|
|
|
sub new { |
1469
|
0
|
|
|
0
|
|
|
my $classname = shift; |
1470
|
0
|
|
|
|
|
|
my $self = {}; |
1471
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
1472
|
0
|
|
|
|
|
|
$self->{value} = undef; |
1473
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
1474
|
0
|
0
|
|
|
|
|
if (defined $vals->{value}) { |
1475
|
0
|
|
|
|
|
|
$self->{value} = $vals->{value}; |
1476
|
|
|
|
|
|
|
} |
1477
|
|
|
|
|
|
|
} |
1478
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
1479
|
|
|
|
|
|
|
} |
1480
|
|
|
|
|
|
|
|
1481
|
|
|
|
|
|
|
sub getName { |
1482
|
0
|
|
|
0
|
|
|
return 'TStringValue'; |
1483
|
|
|
|
|
|
|
} |
1484
|
|
|
|
|
|
|
|
1485
|
|
|
|
|
|
|
sub read { |
1486
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
1487
|
0
|
|
|
|
|
|
my $xfer = 0; |
1488
|
0
|
|
|
|
|
|
my $fname; |
1489
|
0
|
|
|
|
|
|
my $ftype = 0; |
1490
|
0
|
|
|
|
|
|
my $fid = 0; |
1491
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
1492
|
0
|
|
|
|
|
|
while (1) |
1493
|
|
|
|
|
|
|
{ |
1494
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
1495
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
1496
|
0
|
|
|
|
|
|
last; |
1497
|
|
|
|
|
|
|
} |
1498
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
1499
|
|
|
|
|
|
|
{ |
1500
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
1501
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{value}); |
1502
|
|
|
|
|
|
|
} else { |
1503
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1504
|
|
|
|
|
|
|
} |
1505
|
0
|
|
|
|
|
|
last; }; |
1506
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1507
|
|
|
|
|
|
|
} |
1508
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
1509
|
|
|
|
|
|
|
} |
1510
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
1511
|
0
|
|
|
|
|
|
return $xfer; |
1512
|
|
|
|
|
|
|
} |
1513
|
|
|
|
|
|
|
|
1514
|
|
|
|
|
|
|
sub write { |
1515
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
1516
|
0
|
|
|
|
|
|
my $xfer = 0; |
1517
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TStringValue'); |
1518
|
0
|
0
|
|
|
|
|
if (defined $self->{value}) { |
1519
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('value', TType::STRING, 1); |
1520
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{value}); |
1521
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1522
|
|
|
|
|
|
|
} |
1523
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
1524
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
1525
|
0
|
|
|
|
|
|
return $xfer; |
1526
|
|
|
|
|
|
|
} |
1527
|
|
|
|
|
|
|
|
1528
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TColumn; |
1529
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TColumn::VERSION = '0.021'; |
1530
|
|
|
|
|
|
|
{ |
1531
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TColumn::DIST = 'Thrift-API-HiveClient2'; |
1532
|
|
|
|
|
|
|
} |
1533
|
2
|
|
|
2
|
|
11
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
4194
|
|
1534
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TColumn->mk_accessors( qw( boolColumn byteColumn i16Column i32Column i64Column doubleColumn stringColumn ) ); |
1535
|
|
|
|
|
|
|
|
1536
|
|
|
|
|
|
|
sub new { |
1537
|
0
|
|
|
0
|
|
|
my $classname = shift; |
1538
|
0
|
|
|
|
|
|
my $self = {}; |
1539
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
1540
|
0
|
|
|
|
|
|
$self->{boolColumn} = undef; |
1541
|
0
|
|
|
|
|
|
$self->{byteColumn} = undef; |
1542
|
0
|
|
|
|
|
|
$self->{i16Column} = undef; |
1543
|
0
|
|
|
|
|
|
$self->{i32Column} = undef; |
1544
|
0
|
|
|
|
|
|
$self->{i64Column} = undef; |
1545
|
0
|
|
|
|
|
|
$self->{doubleColumn} = undef; |
1546
|
0
|
|
|
|
|
|
$self->{stringColumn} = undef; |
1547
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
1548
|
0
|
0
|
|
|
|
|
if (defined $vals->{boolColumn}) { |
1549
|
0
|
|
|
|
|
|
$self->{boolColumn} = $vals->{boolColumn}; |
1550
|
|
|
|
|
|
|
} |
1551
|
0
|
0
|
|
|
|
|
if (defined $vals->{byteColumn}) { |
1552
|
0
|
|
|
|
|
|
$self->{byteColumn} = $vals->{byteColumn}; |
1553
|
|
|
|
|
|
|
} |
1554
|
0
|
0
|
|
|
|
|
if (defined $vals->{i16Column}) { |
1555
|
0
|
|
|
|
|
|
$self->{i16Column} = $vals->{i16Column}; |
1556
|
|
|
|
|
|
|
} |
1557
|
0
|
0
|
|
|
|
|
if (defined $vals->{i32Column}) { |
1558
|
0
|
|
|
|
|
|
$self->{i32Column} = $vals->{i32Column}; |
1559
|
|
|
|
|
|
|
} |
1560
|
0
|
0
|
|
|
|
|
if (defined $vals->{i64Column}) { |
1561
|
0
|
|
|
|
|
|
$self->{i64Column} = $vals->{i64Column}; |
1562
|
|
|
|
|
|
|
} |
1563
|
0
|
0
|
|
|
|
|
if (defined $vals->{doubleColumn}) { |
1564
|
0
|
|
|
|
|
|
$self->{doubleColumn} = $vals->{doubleColumn}; |
1565
|
|
|
|
|
|
|
} |
1566
|
0
|
0
|
|
|
|
|
if (defined $vals->{stringColumn}) { |
1567
|
0
|
|
|
|
|
|
$self->{stringColumn} = $vals->{stringColumn}; |
1568
|
|
|
|
|
|
|
} |
1569
|
|
|
|
|
|
|
} |
1570
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
1571
|
|
|
|
|
|
|
} |
1572
|
|
|
|
|
|
|
|
1573
|
|
|
|
|
|
|
sub getName { |
1574
|
0
|
|
|
0
|
|
|
return 'TColumn'; |
1575
|
|
|
|
|
|
|
} |
1576
|
|
|
|
|
|
|
|
1577
|
|
|
|
|
|
|
sub read { |
1578
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
1579
|
0
|
|
|
|
|
|
my $xfer = 0; |
1580
|
0
|
|
|
|
|
|
my $fname; |
1581
|
0
|
|
|
|
|
|
my $ftype = 0; |
1582
|
0
|
|
|
|
|
|
my $fid = 0; |
1583
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
1584
|
0
|
|
|
|
|
|
while (1) |
1585
|
|
|
|
|
|
|
{ |
1586
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
1587
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
1588
|
0
|
|
|
|
|
|
last; |
1589
|
|
|
|
|
|
|
} |
1590
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
1591
|
|
|
|
|
|
|
{ |
1592
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::LIST) { |
|
0
|
0
|
|
|
|
|
|
1593
|
|
|
|
|
|
|
{ |
1594
|
0
|
|
|
|
|
|
my $_size32 = 0; |
|
0
|
|
|
|
|
|
|
1595
|
0
|
|
|
|
|
|
$self->{boolColumn} = []; |
1596
|
0
|
|
|
|
|
|
my $_etype35 = 0; |
1597
|
0
|
|
|
|
|
|
$xfer += $input->readListBegin(\$_etype35, \$_size32); |
1598
|
0
|
|
|
|
|
|
for (my $_i36 = 0; $_i36 < $_size32; ++$_i36) |
1599
|
|
|
|
|
|
|
{ |
1600
|
0
|
|
|
|
|
|
my $elem37 = undef; |
1601
|
0
|
|
|
|
|
|
$elem37 = new Thrift::API::HiveClient2::TBoolValue(); |
1602
|
0
|
|
|
|
|
|
$xfer += $elem37->read($input); |
1603
|
0
|
|
|
|
|
|
push(@{$self->{boolColumn}},$elem37); |
|
0
|
|
|
|
|
|
|
1604
|
|
|
|
|
|
|
} |
1605
|
0
|
|
|
|
|
|
$xfer += $input->readListEnd(); |
1606
|
|
|
|
|
|
|
} |
1607
|
|
|
|
|
|
|
} else { |
1608
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1609
|
|
|
|
|
|
|
} |
1610
|
0
|
|
|
|
|
|
last; }; |
1611
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::LIST) { |
|
0
|
0
|
|
|
|
|
|
1612
|
|
|
|
|
|
|
{ |
1613
|
0
|
|
|
|
|
|
my $_size38 = 0; |
|
0
|
|
|
|
|
|
|
1614
|
0
|
|
|
|
|
|
$self->{byteColumn} = []; |
1615
|
0
|
|
|
|
|
|
my $_etype41 = 0; |
1616
|
0
|
|
|
|
|
|
$xfer += $input->readListBegin(\$_etype41, \$_size38); |
1617
|
0
|
|
|
|
|
|
for (my $_i42 = 0; $_i42 < $_size38; ++$_i42) |
1618
|
|
|
|
|
|
|
{ |
1619
|
0
|
|
|
|
|
|
my $elem43 = undef; |
1620
|
0
|
|
|
|
|
|
$elem43 = new Thrift::API::HiveClient2::TByteValue(); |
1621
|
0
|
|
|
|
|
|
$xfer += $elem43->read($input); |
1622
|
0
|
|
|
|
|
|
push(@{$self->{byteColumn}},$elem43); |
|
0
|
|
|
|
|
|
|
1623
|
|
|
|
|
|
|
} |
1624
|
0
|
|
|
|
|
|
$xfer += $input->readListEnd(); |
1625
|
|
|
|
|
|
|
} |
1626
|
|
|
|
|
|
|
} else { |
1627
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1628
|
|
|
|
|
|
|
} |
1629
|
0
|
|
|
|
|
|
last; }; |
1630
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::LIST) { |
|
0
|
0
|
|
|
|
|
|
1631
|
|
|
|
|
|
|
{ |
1632
|
0
|
|
|
|
|
|
my $_size44 = 0; |
|
0
|
|
|
|
|
|
|
1633
|
0
|
|
|
|
|
|
$self->{i16Column} = []; |
1634
|
0
|
|
|
|
|
|
my $_etype47 = 0; |
1635
|
0
|
|
|
|
|
|
$xfer += $input->readListBegin(\$_etype47, \$_size44); |
1636
|
0
|
|
|
|
|
|
for (my $_i48 = 0; $_i48 < $_size44; ++$_i48) |
1637
|
|
|
|
|
|
|
{ |
1638
|
0
|
|
|
|
|
|
my $elem49 = undef; |
1639
|
0
|
|
|
|
|
|
$elem49 = new Thrift::API::HiveClient2::TI16Value(); |
1640
|
0
|
|
|
|
|
|
$xfer += $elem49->read($input); |
1641
|
0
|
|
|
|
|
|
push(@{$self->{i16Column}},$elem49); |
|
0
|
|
|
|
|
|
|
1642
|
|
|
|
|
|
|
} |
1643
|
0
|
|
|
|
|
|
$xfer += $input->readListEnd(); |
1644
|
|
|
|
|
|
|
} |
1645
|
|
|
|
|
|
|
} else { |
1646
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1647
|
|
|
|
|
|
|
} |
1648
|
0
|
|
|
|
|
|
last; }; |
1649
|
0
|
0
|
|
|
|
|
/^4$/ && do{ if ($ftype == TType::LIST) { |
|
0
|
0
|
|
|
|
|
|
1650
|
|
|
|
|
|
|
{ |
1651
|
0
|
|
|
|
|
|
my $_size50 = 0; |
|
0
|
|
|
|
|
|
|
1652
|
0
|
|
|
|
|
|
$self->{i32Column} = []; |
1653
|
0
|
|
|
|
|
|
my $_etype53 = 0; |
1654
|
0
|
|
|
|
|
|
$xfer += $input->readListBegin(\$_etype53, \$_size50); |
1655
|
0
|
|
|
|
|
|
for (my $_i54 = 0; $_i54 < $_size50; ++$_i54) |
1656
|
|
|
|
|
|
|
{ |
1657
|
0
|
|
|
|
|
|
my $elem55 = undef; |
1658
|
0
|
|
|
|
|
|
$elem55 = new Thrift::API::HiveClient2::TI32Value(); |
1659
|
0
|
|
|
|
|
|
$xfer += $elem55->read($input); |
1660
|
0
|
|
|
|
|
|
push(@{$self->{i32Column}},$elem55); |
|
0
|
|
|
|
|
|
|
1661
|
|
|
|
|
|
|
} |
1662
|
0
|
|
|
|
|
|
$xfer += $input->readListEnd(); |
1663
|
|
|
|
|
|
|
} |
1664
|
|
|
|
|
|
|
} else { |
1665
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1666
|
|
|
|
|
|
|
} |
1667
|
0
|
|
|
|
|
|
last; }; |
1668
|
0
|
0
|
|
|
|
|
/^5$/ && do{ if ($ftype == TType::LIST) { |
|
0
|
0
|
|
|
|
|
|
1669
|
|
|
|
|
|
|
{ |
1670
|
0
|
|
|
|
|
|
my $_size56 = 0; |
|
0
|
|
|
|
|
|
|
1671
|
0
|
|
|
|
|
|
$self->{i64Column} = []; |
1672
|
0
|
|
|
|
|
|
my $_etype59 = 0; |
1673
|
0
|
|
|
|
|
|
$xfer += $input->readListBegin(\$_etype59, \$_size56); |
1674
|
0
|
|
|
|
|
|
for (my $_i60 = 0; $_i60 < $_size56; ++$_i60) |
1675
|
|
|
|
|
|
|
{ |
1676
|
0
|
|
|
|
|
|
my $elem61 = undef; |
1677
|
0
|
|
|
|
|
|
$elem61 = new Thrift::API::HiveClient2::TI64Value(); |
1678
|
0
|
|
|
|
|
|
$xfer += $elem61->read($input); |
1679
|
0
|
|
|
|
|
|
push(@{$self->{i64Column}},$elem61); |
|
0
|
|
|
|
|
|
|
1680
|
|
|
|
|
|
|
} |
1681
|
0
|
|
|
|
|
|
$xfer += $input->readListEnd(); |
1682
|
|
|
|
|
|
|
} |
1683
|
|
|
|
|
|
|
} else { |
1684
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1685
|
|
|
|
|
|
|
} |
1686
|
0
|
|
|
|
|
|
last; }; |
1687
|
0
|
0
|
|
|
|
|
/^6$/ && do{ if ($ftype == TType::LIST) { |
|
0
|
0
|
|
|
|
|
|
1688
|
|
|
|
|
|
|
{ |
1689
|
0
|
|
|
|
|
|
my $_size62 = 0; |
|
0
|
|
|
|
|
|
|
1690
|
0
|
|
|
|
|
|
$self->{doubleColumn} = []; |
1691
|
0
|
|
|
|
|
|
my $_etype65 = 0; |
1692
|
0
|
|
|
|
|
|
$xfer += $input->readListBegin(\$_etype65, \$_size62); |
1693
|
0
|
|
|
|
|
|
for (my $_i66 = 0; $_i66 < $_size62; ++$_i66) |
1694
|
|
|
|
|
|
|
{ |
1695
|
0
|
|
|
|
|
|
my $elem67 = undef; |
1696
|
0
|
|
|
|
|
|
$elem67 = new Thrift::API::HiveClient2::TDoubleValue(); |
1697
|
0
|
|
|
|
|
|
$xfer += $elem67->read($input); |
1698
|
0
|
|
|
|
|
|
push(@{$self->{doubleColumn}},$elem67); |
|
0
|
|
|
|
|
|
|
1699
|
|
|
|
|
|
|
} |
1700
|
0
|
|
|
|
|
|
$xfer += $input->readListEnd(); |
1701
|
|
|
|
|
|
|
} |
1702
|
|
|
|
|
|
|
} else { |
1703
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1704
|
|
|
|
|
|
|
} |
1705
|
0
|
|
|
|
|
|
last; }; |
1706
|
0
|
0
|
|
|
|
|
/^7$/ && do{ if ($ftype == TType::LIST) { |
|
0
|
0
|
|
|
|
|
|
1707
|
|
|
|
|
|
|
{ |
1708
|
0
|
|
|
|
|
|
my $_size68 = 0; |
|
0
|
|
|
|
|
|
|
1709
|
0
|
|
|
|
|
|
$self->{stringColumn} = []; |
1710
|
0
|
|
|
|
|
|
my $_etype71 = 0; |
1711
|
0
|
|
|
|
|
|
$xfer += $input->readListBegin(\$_etype71, \$_size68); |
1712
|
0
|
|
|
|
|
|
for (my $_i72 = 0; $_i72 < $_size68; ++$_i72) |
1713
|
|
|
|
|
|
|
{ |
1714
|
0
|
|
|
|
|
|
my $elem73 = undef; |
1715
|
0
|
|
|
|
|
|
$elem73 = new Thrift::API::HiveClient2::TStringValue(); |
1716
|
0
|
|
|
|
|
|
$xfer += $elem73->read($input); |
1717
|
0
|
|
|
|
|
|
push(@{$self->{stringColumn}},$elem73); |
|
0
|
|
|
|
|
|
|
1718
|
|
|
|
|
|
|
} |
1719
|
0
|
|
|
|
|
|
$xfer += $input->readListEnd(); |
1720
|
|
|
|
|
|
|
} |
1721
|
|
|
|
|
|
|
} else { |
1722
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1723
|
|
|
|
|
|
|
} |
1724
|
0
|
|
|
|
|
|
last; }; |
1725
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1726
|
|
|
|
|
|
|
} |
1727
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
1728
|
|
|
|
|
|
|
} |
1729
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
1730
|
0
|
|
|
|
|
|
return $xfer; |
1731
|
|
|
|
|
|
|
} |
1732
|
|
|
|
|
|
|
|
1733
|
|
|
|
|
|
|
sub write { |
1734
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
1735
|
0
|
|
|
|
|
|
my $xfer = 0; |
1736
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TColumn'); |
1737
|
0
|
0
|
|
|
|
|
if (defined $self->{boolColumn}) { |
1738
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('boolColumn', TType::LIST, 1); |
1739
|
|
|
|
|
|
|
{ |
1740
|
0
|
|
|
|
|
|
$xfer += $output->writeListBegin(TType::STRUCT, scalar(@{$self->{boolColumn}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1741
|
|
|
|
|
|
|
{ |
1742
|
0
|
|
|
|
|
|
foreach my $iter74 (@{$self->{boolColumn}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1743
|
|
|
|
|
|
|
{ |
1744
|
0
|
|
|
|
|
|
$xfer += ${iter74}->write($output); |
1745
|
|
|
|
|
|
|
} |
1746
|
|
|
|
|
|
|
} |
1747
|
0
|
|
|
|
|
|
$xfer += $output->writeListEnd(); |
1748
|
|
|
|
|
|
|
} |
1749
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1750
|
|
|
|
|
|
|
} |
1751
|
0
|
0
|
|
|
|
|
if (defined $self->{byteColumn}) { |
1752
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('byteColumn', TType::LIST, 2); |
1753
|
|
|
|
|
|
|
{ |
1754
|
0
|
|
|
|
|
|
$xfer += $output->writeListBegin(TType::STRUCT, scalar(@{$self->{byteColumn}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1755
|
|
|
|
|
|
|
{ |
1756
|
0
|
|
|
|
|
|
foreach my $iter75 (@{$self->{byteColumn}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1757
|
|
|
|
|
|
|
{ |
1758
|
0
|
|
|
|
|
|
$xfer += ${iter75}->write($output); |
1759
|
|
|
|
|
|
|
} |
1760
|
|
|
|
|
|
|
} |
1761
|
0
|
|
|
|
|
|
$xfer += $output->writeListEnd(); |
1762
|
|
|
|
|
|
|
} |
1763
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1764
|
|
|
|
|
|
|
} |
1765
|
0
|
0
|
|
|
|
|
if (defined $self->{i16Column}) { |
1766
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('i16Column', TType::LIST, 3); |
1767
|
|
|
|
|
|
|
{ |
1768
|
0
|
|
|
|
|
|
$xfer += $output->writeListBegin(TType::STRUCT, scalar(@{$self->{i16Column}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1769
|
|
|
|
|
|
|
{ |
1770
|
0
|
|
|
|
|
|
foreach my $iter76 (@{$self->{i16Column}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1771
|
|
|
|
|
|
|
{ |
1772
|
0
|
|
|
|
|
|
$xfer += ${iter76}->write($output); |
1773
|
|
|
|
|
|
|
} |
1774
|
|
|
|
|
|
|
} |
1775
|
0
|
|
|
|
|
|
$xfer += $output->writeListEnd(); |
1776
|
|
|
|
|
|
|
} |
1777
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1778
|
|
|
|
|
|
|
} |
1779
|
0
|
0
|
|
|
|
|
if (defined $self->{i32Column}) { |
1780
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('i32Column', TType::LIST, 4); |
1781
|
|
|
|
|
|
|
{ |
1782
|
0
|
|
|
|
|
|
$xfer += $output->writeListBegin(TType::STRUCT, scalar(@{$self->{i32Column}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1783
|
|
|
|
|
|
|
{ |
1784
|
0
|
|
|
|
|
|
foreach my $iter77 (@{$self->{i32Column}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1785
|
|
|
|
|
|
|
{ |
1786
|
0
|
|
|
|
|
|
$xfer += ${iter77}->write($output); |
1787
|
|
|
|
|
|
|
} |
1788
|
|
|
|
|
|
|
} |
1789
|
0
|
|
|
|
|
|
$xfer += $output->writeListEnd(); |
1790
|
|
|
|
|
|
|
} |
1791
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1792
|
|
|
|
|
|
|
} |
1793
|
0
|
0
|
|
|
|
|
if (defined $self->{i64Column}) { |
1794
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('i64Column', TType::LIST, 5); |
1795
|
|
|
|
|
|
|
{ |
1796
|
0
|
|
|
|
|
|
$xfer += $output->writeListBegin(TType::STRUCT, scalar(@{$self->{i64Column}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1797
|
|
|
|
|
|
|
{ |
1798
|
0
|
|
|
|
|
|
foreach my $iter78 (@{$self->{i64Column}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1799
|
|
|
|
|
|
|
{ |
1800
|
0
|
|
|
|
|
|
$xfer += ${iter78}->write($output); |
1801
|
|
|
|
|
|
|
} |
1802
|
|
|
|
|
|
|
} |
1803
|
0
|
|
|
|
|
|
$xfer += $output->writeListEnd(); |
1804
|
|
|
|
|
|
|
} |
1805
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1806
|
|
|
|
|
|
|
} |
1807
|
0
|
0
|
|
|
|
|
if (defined $self->{doubleColumn}) { |
1808
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('doubleColumn', TType::LIST, 6); |
1809
|
|
|
|
|
|
|
{ |
1810
|
0
|
|
|
|
|
|
$xfer += $output->writeListBegin(TType::STRUCT, scalar(@{$self->{doubleColumn}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1811
|
|
|
|
|
|
|
{ |
1812
|
0
|
|
|
|
|
|
foreach my $iter79 (@{$self->{doubleColumn}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1813
|
|
|
|
|
|
|
{ |
1814
|
0
|
|
|
|
|
|
$xfer += ${iter79}->write($output); |
1815
|
|
|
|
|
|
|
} |
1816
|
|
|
|
|
|
|
} |
1817
|
0
|
|
|
|
|
|
$xfer += $output->writeListEnd(); |
1818
|
|
|
|
|
|
|
} |
1819
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1820
|
|
|
|
|
|
|
} |
1821
|
0
|
0
|
|
|
|
|
if (defined $self->{stringColumn}) { |
1822
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('stringColumn', TType::LIST, 7); |
1823
|
|
|
|
|
|
|
{ |
1824
|
0
|
|
|
|
|
|
$xfer += $output->writeListBegin(TType::STRUCT, scalar(@{$self->{stringColumn}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1825
|
|
|
|
|
|
|
{ |
1826
|
0
|
|
|
|
|
|
foreach my $iter80 (@{$self->{stringColumn}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1827
|
|
|
|
|
|
|
{ |
1828
|
0
|
|
|
|
|
|
$xfer += ${iter80}->write($output); |
1829
|
|
|
|
|
|
|
} |
1830
|
|
|
|
|
|
|
} |
1831
|
0
|
|
|
|
|
|
$xfer += $output->writeListEnd(); |
1832
|
|
|
|
|
|
|
} |
1833
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1834
|
|
|
|
|
|
|
} |
1835
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
1836
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
1837
|
0
|
|
|
|
|
|
return $xfer; |
1838
|
|
|
|
|
|
|
} |
1839
|
|
|
|
|
|
|
|
1840
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TColumnValue; |
1841
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TColumnValue::VERSION = '0.021'; |
1842
|
|
|
|
|
|
|
{ |
1843
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TColumnValue::DIST = 'Thrift-API-HiveClient2'; |
1844
|
|
|
|
|
|
|
} |
1845
|
2
|
|
|
2
|
|
12
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
2461
|
|
1846
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TColumnValue->mk_accessors( qw( boolVal byteVal i16Val i32Val i64Val doubleVal stringVal ) ); |
1847
|
|
|
|
|
|
|
|
1848
|
|
|
|
|
|
|
sub new { |
1849
|
0
|
|
|
0
|
|
|
my $classname = shift; |
1850
|
0
|
|
|
|
|
|
my $self = {}; |
1851
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
1852
|
0
|
|
|
|
|
|
$self->{boolVal} = undef; |
1853
|
0
|
|
|
|
|
|
$self->{byteVal} = undef; |
1854
|
0
|
|
|
|
|
|
$self->{i16Val} = undef; |
1855
|
0
|
|
|
|
|
|
$self->{i32Val} = undef; |
1856
|
0
|
|
|
|
|
|
$self->{i64Val} = undef; |
1857
|
0
|
|
|
|
|
|
$self->{doubleVal} = undef; |
1858
|
0
|
|
|
|
|
|
$self->{stringVal} = undef; |
1859
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
1860
|
0
|
0
|
|
|
|
|
if (defined $vals->{boolVal}) { |
1861
|
0
|
|
|
|
|
|
$self->{boolVal} = $vals->{boolVal}; |
1862
|
|
|
|
|
|
|
} |
1863
|
0
|
0
|
|
|
|
|
if (defined $vals->{byteVal}) { |
1864
|
0
|
|
|
|
|
|
$self->{byteVal} = $vals->{byteVal}; |
1865
|
|
|
|
|
|
|
} |
1866
|
0
|
0
|
|
|
|
|
if (defined $vals->{i16Val}) { |
1867
|
0
|
|
|
|
|
|
$self->{i16Val} = $vals->{i16Val}; |
1868
|
|
|
|
|
|
|
} |
1869
|
0
|
0
|
|
|
|
|
if (defined $vals->{i32Val}) { |
1870
|
0
|
|
|
|
|
|
$self->{i32Val} = $vals->{i32Val}; |
1871
|
|
|
|
|
|
|
} |
1872
|
0
|
0
|
|
|
|
|
if (defined $vals->{i64Val}) { |
1873
|
0
|
|
|
|
|
|
$self->{i64Val} = $vals->{i64Val}; |
1874
|
|
|
|
|
|
|
} |
1875
|
0
|
0
|
|
|
|
|
if (defined $vals->{doubleVal}) { |
1876
|
0
|
|
|
|
|
|
$self->{doubleVal} = $vals->{doubleVal}; |
1877
|
|
|
|
|
|
|
} |
1878
|
0
|
0
|
|
|
|
|
if (defined $vals->{stringVal}) { |
1879
|
0
|
|
|
|
|
|
$self->{stringVal} = $vals->{stringVal}; |
1880
|
|
|
|
|
|
|
} |
1881
|
|
|
|
|
|
|
} |
1882
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
1883
|
|
|
|
|
|
|
} |
1884
|
|
|
|
|
|
|
|
1885
|
|
|
|
|
|
|
sub getName { |
1886
|
0
|
|
|
0
|
|
|
return 'TColumnValue'; |
1887
|
|
|
|
|
|
|
} |
1888
|
|
|
|
|
|
|
|
1889
|
|
|
|
|
|
|
sub read { |
1890
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
1891
|
0
|
|
|
|
|
|
my $xfer = 0; |
1892
|
0
|
|
|
|
|
|
my $fname; |
1893
|
0
|
|
|
|
|
|
my $ftype = 0; |
1894
|
0
|
|
|
|
|
|
my $fid = 0; |
1895
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
1896
|
0
|
|
|
|
|
|
while (1) |
1897
|
|
|
|
|
|
|
{ |
1898
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
1899
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
1900
|
0
|
|
|
|
|
|
last; |
1901
|
|
|
|
|
|
|
} |
1902
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
1903
|
|
|
|
|
|
|
{ |
1904
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
1905
|
0
|
|
|
|
|
|
$self->{boolVal} = new Thrift::API::HiveClient2::TBoolValue(); |
1906
|
0
|
|
|
|
|
|
$xfer += $self->{boolVal}->read($input); |
1907
|
|
|
|
|
|
|
} else { |
1908
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1909
|
|
|
|
|
|
|
} |
1910
|
0
|
|
|
|
|
|
last; }; |
1911
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
1912
|
0
|
|
|
|
|
|
$self->{byteVal} = new Thrift::API::HiveClient2::TByteValue(); |
1913
|
0
|
|
|
|
|
|
$xfer += $self->{byteVal}->read($input); |
1914
|
|
|
|
|
|
|
} else { |
1915
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1916
|
|
|
|
|
|
|
} |
1917
|
0
|
|
|
|
|
|
last; }; |
1918
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
1919
|
0
|
|
|
|
|
|
$self->{i16Val} = new Thrift::API::HiveClient2::TI16Value(); |
1920
|
0
|
|
|
|
|
|
$xfer += $self->{i16Val}->read($input); |
1921
|
|
|
|
|
|
|
} else { |
1922
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1923
|
|
|
|
|
|
|
} |
1924
|
0
|
|
|
|
|
|
last; }; |
1925
|
0
|
0
|
|
|
|
|
/^4$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
1926
|
0
|
|
|
|
|
|
$self->{i32Val} = new Thrift::API::HiveClient2::TI32Value(); |
1927
|
0
|
|
|
|
|
|
$xfer += $self->{i32Val}->read($input); |
1928
|
|
|
|
|
|
|
} else { |
1929
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1930
|
|
|
|
|
|
|
} |
1931
|
0
|
|
|
|
|
|
last; }; |
1932
|
0
|
0
|
|
|
|
|
/^5$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
1933
|
0
|
|
|
|
|
|
$self->{i64Val} = new Thrift::API::HiveClient2::TI64Value(); |
1934
|
0
|
|
|
|
|
|
$xfer += $self->{i64Val}->read($input); |
1935
|
|
|
|
|
|
|
} else { |
1936
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1937
|
|
|
|
|
|
|
} |
1938
|
0
|
|
|
|
|
|
last; }; |
1939
|
0
|
0
|
|
|
|
|
/^6$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
1940
|
0
|
|
|
|
|
|
$self->{doubleVal} = new Thrift::API::HiveClient2::TDoubleValue(); |
1941
|
0
|
|
|
|
|
|
$xfer += $self->{doubleVal}->read($input); |
1942
|
|
|
|
|
|
|
} else { |
1943
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1944
|
|
|
|
|
|
|
} |
1945
|
0
|
|
|
|
|
|
last; }; |
1946
|
0
|
0
|
|
|
|
|
/^7$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
1947
|
0
|
|
|
|
|
|
$self->{stringVal} = new Thrift::API::HiveClient2::TStringValue(); |
1948
|
0
|
|
|
|
|
|
$xfer += $self->{stringVal}->read($input); |
1949
|
|
|
|
|
|
|
} else { |
1950
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1951
|
|
|
|
|
|
|
} |
1952
|
0
|
|
|
|
|
|
last; }; |
1953
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1954
|
|
|
|
|
|
|
} |
1955
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
1956
|
|
|
|
|
|
|
} |
1957
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
1958
|
0
|
|
|
|
|
|
return $xfer; |
1959
|
|
|
|
|
|
|
} |
1960
|
|
|
|
|
|
|
|
1961
|
|
|
|
|
|
|
sub write { |
1962
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
1963
|
0
|
|
|
|
|
|
my $xfer = 0; |
1964
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TColumnValue'); |
1965
|
0
|
0
|
|
|
|
|
if (defined $self->{boolVal}) { |
1966
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('boolVal', TType::STRUCT, 1); |
1967
|
0
|
|
|
|
|
|
$xfer += $self->{boolVal}->write($output); |
1968
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1969
|
|
|
|
|
|
|
} |
1970
|
0
|
0
|
|
|
|
|
if (defined $self->{byteVal}) { |
1971
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('byteVal', TType::STRUCT, 2); |
1972
|
0
|
|
|
|
|
|
$xfer += $self->{byteVal}->write($output); |
1973
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1974
|
|
|
|
|
|
|
} |
1975
|
0
|
0
|
|
|
|
|
if (defined $self->{i16Val}) { |
1976
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('i16Val', TType::STRUCT, 3); |
1977
|
0
|
|
|
|
|
|
$xfer += $self->{i16Val}->write($output); |
1978
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1979
|
|
|
|
|
|
|
} |
1980
|
0
|
0
|
|
|
|
|
if (defined $self->{i32Val}) { |
1981
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('i32Val', TType::STRUCT, 4); |
1982
|
0
|
|
|
|
|
|
$xfer += $self->{i32Val}->write($output); |
1983
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1984
|
|
|
|
|
|
|
} |
1985
|
0
|
0
|
|
|
|
|
if (defined $self->{i64Val}) { |
1986
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('i64Val', TType::STRUCT, 5); |
1987
|
0
|
|
|
|
|
|
$xfer += $self->{i64Val}->write($output); |
1988
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1989
|
|
|
|
|
|
|
} |
1990
|
0
|
0
|
|
|
|
|
if (defined $self->{doubleVal}) { |
1991
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('doubleVal', TType::STRUCT, 6); |
1992
|
0
|
|
|
|
|
|
$xfer += $self->{doubleVal}->write($output); |
1993
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1994
|
|
|
|
|
|
|
} |
1995
|
0
|
0
|
|
|
|
|
if (defined $self->{stringVal}) { |
1996
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('stringVal', TType::STRUCT, 7); |
1997
|
0
|
|
|
|
|
|
$xfer += $self->{stringVal}->write($output); |
1998
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1999
|
|
|
|
|
|
|
} |
2000
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
2001
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
2002
|
0
|
|
|
|
|
|
return $xfer; |
2003
|
|
|
|
|
|
|
} |
2004
|
|
|
|
|
|
|
|
2005
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TRow; |
2006
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TRow::VERSION = '0.021'; |
2007
|
|
|
|
|
|
|
{ |
2008
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TRow::DIST = 'Thrift-API-HiveClient2'; |
2009
|
|
|
|
|
|
|
} |
2010
|
2
|
|
|
2
|
|
11
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1286
|
|
2011
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TRow->mk_accessors( qw( colVals ) ); |
2012
|
|
|
|
|
|
|
|
2013
|
|
|
|
|
|
|
sub new { |
2014
|
0
|
|
|
0
|
|
|
my $classname = shift; |
2015
|
0
|
|
|
|
|
|
my $self = {}; |
2016
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
2017
|
0
|
|
|
|
|
|
$self->{colVals} = undef; |
2018
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
2019
|
0
|
0
|
|
|
|
|
if (defined $vals->{colVals}) { |
2020
|
0
|
|
|
|
|
|
$self->{colVals} = $vals->{colVals}; |
2021
|
|
|
|
|
|
|
} |
2022
|
|
|
|
|
|
|
} |
2023
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
2024
|
|
|
|
|
|
|
} |
2025
|
|
|
|
|
|
|
|
2026
|
|
|
|
|
|
|
sub getName { |
2027
|
0
|
|
|
0
|
|
|
return 'TRow'; |
2028
|
|
|
|
|
|
|
} |
2029
|
|
|
|
|
|
|
|
2030
|
|
|
|
|
|
|
sub read { |
2031
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
2032
|
0
|
|
|
|
|
|
my $xfer = 0; |
2033
|
0
|
|
|
|
|
|
my $fname; |
2034
|
0
|
|
|
|
|
|
my $ftype = 0; |
2035
|
0
|
|
|
|
|
|
my $fid = 0; |
2036
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
2037
|
0
|
|
|
|
|
|
while (1) |
2038
|
|
|
|
|
|
|
{ |
2039
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
2040
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
2041
|
0
|
|
|
|
|
|
last; |
2042
|
|
|
|
|
|
|
} |
2043
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
2044
|
|
|
|
|
|
|
{ |
2045
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::LIST) { |
|
0
|
0
|
|
|
|
|
|
2046
|
|
|
|
|
|
|
{ |
2047
|
0
|
|
|
|
|
|
my $_size81 = 0; |
|
0
|
|
|
|
|
|
|
2048
|
0
|
|
|
|
|
|
$self->{colVals} = []; |
2049
|
0
|
|
|
|
|
|
my $_etype84 = 0; |
2050
|
0
|
|
|
|
|
|
$xfer += $input->readListBegin(\$_etype84, \$_size81); |
2051
|
0
|
|
|
|
|
|
for (my $_i85 = 0; $_i85 < $_size81; ++$_i85) |
2052
|
|
|
|
|
|
|
{ |
2053
|
0
|
|
|
|
|
|
my $elem86 = undef; |
2054
|
0
|
|
|
|
|
|
$elem86 = new Thrift::API::HiveClient2::TColumnValue(); |
2055
|
0
|
|
|
|
|
|
$xfer += $elem86->read($input); |
2056
|
0
|
|
|
|
|
|
push(@{$self->{colVals}},$elem86); |
|
0
|
|
|
|
|
|
|
2057
|
|
|
|
|
|
|
} |
2058
|
0
|
|
|
|
|
|
$xfer += $input->readListEnd(); |
2059
|
|
|
|
|
|
|
} |
2060
|
|
|
|
|
|
|
} else { |
2061
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2062
|
|
|
|
|
|
|
} |
2063
|
0
|
|
|
|
|
|
last; }; |
2064
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2065
|
|
|
|
|
|
|
} |
2066
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
2067
|
|
|
|
|
|
|
} |
2068
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
2069
|
0
|
|
|
|
|
|
return $xfer; |
2070
|
|
|
|
|
|
|
} |
2071
|
|
|
|
|
|
|
|
2072
|
|
|
|
|
|
|
sub write { |
2073
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
2074
|
0
|
|
|
|
|
|
my $xfer = 0; |
2075
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TRow'); |
2076
|
0
|
0
|
|
|
|
|
if (defined $self->{colVals}) { |
2077
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('colVals', TType::LIST, 1); |
2078
|
|
|
|
|
|
|
{ |
2079
|
0
|
|
|
|
|
|
$xfer += $output->writeListBegin(TType::STRUCT, scalar(@{$self->{colVals}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
2080
|
|
|
|
|
|
|
{ |
2081
|
0
|
|
|
|
|
|
foreach my $iter87 (@{$self->{colVals}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
2082
|
|
|
|
|
|
|
{ |
2083
|
0
|
|
|
|
|
|
$xfer += ${iter87}->write($output); |
2084
|
|
|
|
|
|
|
} |
2085
|
|
|
|
|
|
|
} |
2086
|
0
|
|
|
|
|
|
$xfer += $output->writeListEnd(); |
2087
|
|
|
|
|
|
|
} |
2088
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2089
|
|
|
|
|
|
|
} |
2090
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
2091
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
2092
|
0
|
|
|
|
|
|
return $xfer; |
2093
|
|
|
|
|
|
|
} |
2094
|
|
|
|
|
|
|
|
2095
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TRowSet; |
2096
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TRowSet::VERSION = '0.021'; |
2097
|
|
|
|
|
|
|
{ |
2098
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TRowSet::DIST = 'Thrift-API-HiveClient2'; |
2099
|
|
|
|
|
|
|
} |
2100
|
2
|
|
|
2
|
|
13
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
2068
|
|
2101
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TRowSet->mk_accessors( qw( startRowOffset rows columns ) ); |
2102
|
|
|
|
|
|
|
|
2103
|
|
|
|
|
|
|
sub new { |
2104
|
0
|
|
|
0
|
|
|
my $classname = shift; |
2105
|
0
|
|
|
|
|
|
my $self = {}; |
2106
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
2107
|
0
|
|
|
|
|
|
$self->{startRowOffset} = undef; |
2108
|
0
|
|
|
|
|
|
$self->{rows} = undef; |
2109
|
0
|
|
|
|
|
|
$self->{columns} = undef; |
2110
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
2111
|
0
|
0
|
|
|
|
|
if (defined $vals->{startRowOffset}) { |
2112
|
0
|
|
|
|
|
|
$self->{startRowOffset} = $vals->{startRowOffset}; |
2113
|
|
|
|
|
|
|
} |
2114
|
0
|
0
|
|
|
|
|
if (defined $vals->{rows}) { |
2115
|
0
|
|
|
|
|
|
$self->{rows} = $vals->{rows}; |
2116
|
|
|
|
|
|
|
} |
2117
|
0
|
0
|
|
|
|
|
if (defined $vals->{columns}) { |
2118
|
0
|
|
|
|
|
|
$self->{columns} = $vals->{columns}; |
2119
|
|
|
|
|
|
|
} |
2120
|
|
|
|
|
|
|
} |
2121
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
2122
|
|
|
|
|
|
|
} |
2123
|
|
|
|
|
|
|
|
2124
|
|
|
|
|
|
|
sub getName { |
2125
|
0
|
|
|
0
|
|
|
return 'TRowSet'; |
2126
|
|
|
|
|
|
|
} |
2127
|
|
|
|
|
|
|
|
2128
|
|
|
|
|
|
|
sub read { |
2129
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
2130
|
0
|
|
|
|
|
|
my $xfer = 0; |
2131
|
0
|
|
|
|
|
|
my $fname; |
2132
|
0
|
|
|
|
|
|
my $ftype = 0; |
2133
|
0
|
|
|
|
|
|
my $fid = 0; |
2134
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
2135
|
0
|
|
|
|
|
|
while (1) |
2136
|
|
|
|
|
|
|
{ |
2137
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
2138
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
2139
|
0
|
|
|
|
|
|
last; |
2140
|
|
|
|
|
|
|
} |
2141
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
2142
|
|
|
|
|
|
|
{ |
2143
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::I64) { |
|
0
|
0
|
|
|
|
|
|
2144
|
0
|
|
|
|
|
|
$xfer += $input->readI64(\$self->{startRowOffset}); |
2145
|
|
|
|
|
|
|
} else { |
2146
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2147
|
|
|
|
|
|
|
} |
2148
|
0
|
|
|
|
|
|
last; }; |
2149
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::LIST) { |
|
0
|
0
|
|
|
|
|
|
2150
|
|
|
|
|
|
|
{ |
2151
|
0
|
|
|
|
|
|
my $_size88 = 0; |
|
0
|
|
|
|
|
|
|
2152
|
0
|
|
|
|
|
|
$self->{rows} = []; |
2153
|
0
|
|
|
|
|
|
my $_etype91 = 0; |
2154
|
0
|
|
|
|
|
|
$xfer += $input->readListBegin(\$_etype91, \$_size88); |
2155
|
0
|
|
|
|
|
|
for (my $_i92 = 0; $_i92 < $_size88; ++$_i92) |
2156
|
|
|
|
|
|
|
{ |
2157
|
0
|
|
|
|
|
|
my $elem93 = undef; |
2158
|
0
|
|
|
|
|
|
$elem93 = new Thrift::API::HiveClient2::TRow(); |
2159
|
0
|
|
|
|
|
|
$xfer += $elem93->read($input); |
2160
|
0
|
|
|
|
|
|
push(@{$self->{rows}},$elem93); |
|
0
|
|
|
|
|
|
|
2161
|
|
|
|
|
|
|
} |
2162
|
0
|
|
|
|
|
|
$xfer += $input->readListEnd(); |
2163
|
|
|
|
|
|
|
} |
2164
|
|
|
|
|
|
|
} else { |
2165
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2166
|
|
|
|
|
|
|
} |
2167
|
0
|
|
|
|
|
|
last; }; |
2168
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::LIST) { |
|
0
|
0
|
|
|
|
|
|
2169
|
|
|
|
|
|
|
{ |
2170
|
0
|
|
|
|
|
|
my $_size94 = 0; |
|
0
|
|
|
|
|
|
|
2171
|
0
|
|
|
|
|
|
$self->{columns} = []; |
2172
|
0
|
|
|
|
|
|
my $_etype97 = 0; |
2173
|
0
|
|
|
|
|
|
$xfer += $input->readListBegin(\$_etype97, \$_size94); |
2174
|
0
|
|
|
|
|
|
for (my $_i98 = 0; $_i98 < $_size94; ++$_i98) |
2175
|
|
|
|
|
|
|
{ |
2176
|
0
|
|
|
|
|
|
my $elem99 = undef; |
2177
|
0
|
|
|
|
|
|
$elem99 = new Thrift::API::HiveClient2::TColumn(); |
2178
|
0
|
|
|
|
|
|
$xfer += $elem99->read($input); |
2179
|
0
|
|
|
|
|
|
push(@{$self->{columns}},$elem99); |
|
0
|
|
|
|
|
|
|
2180
|
|
|
|
|
|
|
} |
2181
|
0
|
|
|
|
|
|
$xfer += $input->readListEnd(); |
2182
|
|
|
|
|
|
|
} |
2183
|
|
|
|
|
|
|
} else { |
2184
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2185
|
|
|
|
|
|
|
} |
2186
|
0
|
|
|
|
|
|
last; }; |
2187
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2188
|
|
|
|
|
|
|
} |
2189
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
2190
|
|
|
|
|
|
|
} |
2191
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
2192
|
0
|
|
|
|
|
|
return $xfer; |
2193
|
|
|
|
|
|
|
} |
2194
|
|
|
|
|
|
|
|
2195
|
|
|
|
|
|
|
sub write { |
2196
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
2197
|
0
|
|
|
|
|
|
my $xfer = 0; |
2198
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TRowSet'); |
2199
|
0
|
0
|
|
|
|
|
if (defined $self->{startRowOffset}) { |
2200
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('startRowOffset', TType::I64, 1); |
2201
|
0
|
|
|
|
|
|
$xfer += $output->writeI64($self->{startRowOffset}); |
2202
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2203
|
|
|
|
|
|
|
} |
2204
|
0
|
0
|
|
|
|
|
if (defined $self->{rows}) { |
2205
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('rows', TType::LIST, 2); |
2206
|
|
|
|
|
|
|
{ |
2207
|
0
|
|
|
|
|
|
$xfer += $output->writeListBegin(TType::STRUCT, scalar(@{$self->{rows}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
2208
|
|
|
|
|
|
|
{ |
2209
|
0
|
|
|
|
|
|
foreach my $iter100 (@{$self->{rows}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
2210
|
|
|
|
|
|
|
{ |
2211
|
0
|
|
|
|
|
|
$xfer += ${iter100}->write($output); |
2212
|
|
|
|
|
|
|
} |
2213
|
|
|
|
|
|
|
} |
2214
|
0
|
|
|
|
|
|
$xfer += $output->writeListEnd(); |
2215
|
|
|
|
|
|
|
} |
2216
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2217
|
|
|
|
|
|
|
} |
2218
|
0
|
0
|
|
|
|
|
if (defined $self->{columns}) { |
2219
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('columns', TType::LIST, 3); |
2220
|
|
|
|
|
|
|
{ |
2221
|
0
|
|
|
|
|
|
$xfer += $output->writeListBegin(TType::STRUCT, scalar(@{$self->{columns}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
2222
|
|
|
|
|
|
|
{ |
2223
|
0
|
|
|
|
|
|
foreach my $iter101 (@{$self->{columns}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
2224
|
|
|
|
|
|
|
{ |
2225
|
0
|
|
|
|
|
|
$xfer += ${iter101}->write($output); |
2226
|
|
|
|
|
|
|
} |
2227
|
|
|
|
|
|
|
} |
2228
|
0
|
|
|
|
|
|
$xfer += $output->writeListEnd(); |
2229
|
|
|
|
|
|
|
} |
2230
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2231
|
|
|
|
|
|
|
} |
2232
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
2233
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
2234
|
0
|
|
|
|
|
|
return $xfer; |
2235
|
|
|
|
|
|
|
} |
2236
|
|
|
|
|
|
|
|
2237
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TStatus; |
2238
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TStatus::VERSION = '0.021'; |
2239
|
|
|
|
|
|
|
{ |
2240
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TStatus::DIST = 'Thrift-API-HiveClient2'; |
2241
|
|
|
|
|
|
|
} |
2242
|
2
|
|
|
2
|
|
12
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
2155
|
|
2243
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TStatus->mk_accessors( qw( statusCode infoMessages sqlState errorCode errorMessage ) ); |
2244
|
|
|
|
|
|
|
|
2245
|
|
|
|
|
|
|
sub new { |
2246
|
0
|
|
|
0
|
|
|
my $classname = shift; |
2247
|
0
|
|
|
|
|
|
my $self = {}; |
2248
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
2249
|
0
|
|
|
|
|
|
$self->{statusCode} = undef; |
2250
|
0
|
|
|
|
|
|
$self->{infoMessages} = undef; |
2251
|
0
|
|
|
|
|
|
$self->{sqlState} = undef; |
2252
|
0
|
|
|
|
|
|
$self->{errorCode} = undef; |
2253
|
0
|
|
|
|
|
|
$self->{errorMessage} = undef; |
2254
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
2255
|
0
|
0
|
|
|
|
|
if (defined $vals->{statusCode}) { |
2256
|
0
|
|
|
|
|
|
$self->{statusCode} = $vals->{statusCode}; |
2257
|
|
|
|
|
|
|
} |
2258
|
0
|
0
|
|
|
|
|
if (defined $vals->{infoMessages}) { |
2259
|
0
|
|
|
|
|
|
$self->{infoMessages} = $vals->{infoMessages}; |
2260
|
|
|
|
|
|
|
} |
2261
|
0
|
0
|
|
|
|
|
if (defined $vals->{sqlState}) { |
2262
|
0
|
|
|
|
|
|
$self->{sqlState} = $vals->{sqlState}; |
2263
|
|
|
|
|
|
|
} |
2264
|
0
|
0
|
|
|
|
|
if (defined $vals->{errorCode}) { |
2265
|
0
|
|
|
|
|
|
$self->{errorCode} = $vals->{errorCode}; |
2266
|
|
|
|
|
|
|
} |
2267
|
0
|
0
|
|
|
|
|
if (defined $vals->{errorMessage}) { |
2268
|
0
|
|
|
|
|
|
$self->{errorMessage} = $vals->{errorMessage}; |
2269
|
|
|
|
|
|
|
} |
2270
|
|
|
|
|
|
|
} |
2271
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
2272
|
|
|
|
|
|
|
} |
2273
|
|
|
|
|
|
|
|
2274
|
|
|
|
|
|
|
sub getName { |
2275
|
0
|
|
|
0
|
|
|
return 'TStatus'; |
2276
|
|
|
|
|
|
|
} |
2277
|
|
|
|
|
|
|
|
2278
|
|
|
|
|
|
|
sub read { |
2279
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
2280
|
0
|
|
|
|
|
|
my $xfer = 0; |
2281
|
0
|
|
|
|
|
|
my $fname; |
2282
|
0
|
|
|
|
|
|
my $ftype = 0; |
2283
|
0
|
|
|
|
|
|
my $fid = 0; |
2284
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
2285
|
0
|
|
|
|
|
|
while (1) |
2286
|
|
|
|
|
|
|
{ |
2287
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
2288
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
2289
|
0
|
|
|
|
|
|
last; |
2290
|
|
|
|
|
|
|
} |
2291
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
2292
|
|
|
|
|
|
|
{ |
2293
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
2294
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{statusCode}); |
2295
|
|
|
|
|
|
|
} else { |
2296
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2297
|
|
|
|
|
|
|
} |
2298
|
0
|
|
|
|
|
|
last; }; |
2299
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::LIST) { |
|
0
|
0
|
|
|
|
|
|
2300
|
|
|
|
|
|
|
{ |
2301
|
0
|
|
|
|
|
|
my $_size102 = 0; |
|
0
|
|
|
|
|
|
|
2302
|
0
|
|
|
|
|
|
$self->{infoMessages} = []; |
2303
|
0
|
|
|
|
|
|
my $_etype105 = 0; |
2304
|
0
|
|
|
|
|
|
$xfer += $input->readListBegin(\$_etype105, \$_size102); |
2305
|
0
|
|
|
|
|
|
for (my $_i106 = 0; $_i106 < $_size102; ++$_i106) |
2306
|
|
|
|
|
|
|
{ |
2307
|
0
|
|
|
|
|
|
my $elem107 = undef; |
2308
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$elem107); |
2309
|
0
|
|
|
|
|
|
push(@{$self->{infoMessages}},$elem107); |
|
0
|
|
|
|
|
|
|
2310
|
|
|
|
|
|
|
} |
2311
|
0
|
|
|
|
|
|
$xfer += $input->readListEnd(); |
2312
|
|
|
|
|
|
|
} |
2313
|
|
|
|
|
|
|
} else { |
2314
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2315
|
|
|
|
|
|
|
} |
2316
|
0
|
|
|
|
|
|
last; }; |
2317
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
2318
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{sqlState}); |
2319
|
|
|
|
|
|
|
} else { |
2320
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2321
|
|
|
|
|
|
|
} |
2322
|
0
|
|
|
|
|
|
last; }; |
2323
|
0
|
0
|
|
|
|
|
/^4$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
2324
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{errorCode}); |
2325
|
|
|
|
|
|
|
} else { |
2326
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2327
|
|
|
|
|
|
|
} |
2328
|
0
|
|
|
|
|
|
last; }; |
2329
|
0
|
0
|
|
|
|
|
/^5$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
2330
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{errorMessage}); |
2331
|
|
|
|
|
|
|
} else { |
2332
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2333
|
|
|
|
|
|
|
} |
2334
|
0
|
|
|
|
|
|
last; }; |
2335
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2336
|
|
|
|
|
|
|
} |
2337
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
2338
|
|
|
|
|
|
|
} |
2339
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
2340
|
0
|
|
|
|
|
|
return $xfer; |
2341
|
|
|
|
|
|
|
} |
2342
|
|
|
|
|
|
|
|
2343
|
|
|
|
|
|
|
sub write { |
2344
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
2345
|
0
|
|
|
|
|
|
my $xfer = 0; |
2346
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TStatus'); |
2347
|
0
|
0
|
|
|
|
|
if (defined $self->{statusCode}) { |
2348
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('statusCode', TType::I32, 1); |
2349
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{statusCode}); |
2350
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2351
|
|
|
|
|
|
|
} |
2352
|
0
|
0
|
|
|
|
|
if (defined $self->{infoMessages}) { |
2353
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('infoMessages', TType::LIST, 2); |
2354
|
|
|
|
|
|
|
{ |
2355
|
0
|
|
|
|
|
|
$xfer += $output->writeListBegin(TType::STRING, scalar(@{$self->{infoMessages}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
2356
|
|
|
|
|
|
|
{ |
2357
|
0
|
|
|
|
|
|
foreach my $iter108 (@{$self->{infoMessages}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
2358
|
|
|
|
|
|
|
{ |
2359
|
0
|
|
|
|
|
|
$xfer += $output->writeString($iter108); |
2360
|
|
|
|
|
|
|
} |
2361
|
|
|
|
|
|
|
} |
2362
|
0
|
|
|
|
|
|
$xfer += $output->writeListEnd(); |
2363
|
|
|
|
|
|
|
} |
2364
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2365
|
|
|
|
|
|
|
} |
2366
|
0
|
0
|
|
|
|
|
if (defined $self->{sqlState}) { |
2367
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('sqlState', TType::STRING, 3); |
2368
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{sqlState}); |
2369
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2370
|
|
|
|
|
|
|
} |
2371
|
0
|
0
|
|
|
|
|
if (defined $self->{errorCode}) { |
2372
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('errorCode', TType::I32, 4); |
2373
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{errorCode}); |
2374
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2375
|
|
|
|
|
|
|
} |
2376
|
0
|
0
|
|
|
|
|
if (defined $self->{errorMessage}) { |
2377
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('errorMessage', TType::STRING, 5); |
2378
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{errorMessage}); |
2379
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2380
|
|
|
|
|
|
|
} |
2381
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
2382
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
2383
|
0
|
|
|
|
|
|
return $xfer; |
2384
|
|
|
|
|
|
|
} |
2385
|
|
|
|
|
|
|
|
2386
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::THandleIdentifier; |
2387
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::THandleIdentifier::VERSION = '0.021'; |
2388
|
|
|
|
|
|
|
{ |
2389
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::THandleIdentifier::DIST = 'Thrift-API-HiveClient2'; |
2390
|
|
|
|
|
|
|
} |
2391
|
2
|
|
|
2
|
|
14
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1218
|
|
2392
|
|
|
|
|
|
|
Thrift::API::HiveClient2::THandleIdentifier->mk_accessors( qw( guid secret ) ); |
2393
|
|
|
|
|
|
|
|
2394
|
|
|
|
|
|
|
sub new { |
2395
|
0
|
|
|
0
|
|
|
my $classname = shift; |
2396
|
0
|
|
|
|
|
|
my $self = {}; |
2397
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
2398
|
0
|
|
|
|
|
|
$self->{guid} = undef; |
2399
|
0
|
|
|
|
|
|
$self->{secret} = undef; |
2400
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
2401
|
0
|
0
|
|
|
|
|
if (defined $vals->{guid}) { |
2402
|
0
|
|
|
|
|
|
$self->{guid} = $vals->{guid}; |
2403
|
|
|
|
|
|
|
} |
2404
|
0
|
0
|
|
|
|
|
if (defined $vals->{secret}) { |
2405
|
0
|
|
|
|
|
|
$self->{secret} = $vals->{secret}; |
2406
|
|
|
|
|
|
|
} |
2407
|
|
|
|
|
|
|
} |
2408
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
2409
|
|
|
|
|
|
|
} |
2410
|
|
|
|
|
|
|
|
2411
|
|
|
|
|
|
|
sub getName { |
2412
|
0
|
|
|
0
|
|
|
return 'THandleIdentifier'; |
2413
|
|
|
|
|
|
|
} |
2414
|
|
|
|
|
|
|
|
2415
|
|
|
|
|
|
|
sub read { |
2416
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
2417
|
0
|
|
|
|
|
|
my $xfer = 0; |
2418
|
0
|
|
|
|
|
|
my $fname; |
2419
|
0
|
|
|
|
|
|
my $ftype = 0; |
2420
|
0
|
|
|
|
|
|
my $fid = 0; |
2421
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
2422
|
0
|
|
|
|
|
|
while (1) |
2423
|
|
|
|
|
|
|
{ |
2424
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
2425
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
2426
|
0
|
|
|
|
|
|
last; |
2427
|
|
|
|
|
|
|
} |
2428
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
2429
|
|
|
|
|
|
|
{ |
2430
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
2431
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{guid}); |
2432
|
|
|
|
|
|
|
} else { |
2433
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2434
|
|
|
|
|
|
|
} |
2435
|
0
|
|
|
|
|
|
last; }; |
2436
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
2437
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{secret}); |
2438
|
|
|
|
|
|
|
} else { |
2439
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2440
|
|
|
|
|
|
|
} |
2441
|
0
|
|
|
|
|
|
last; }; |
2442
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2443
|
|
|
|
|
|
|
} |
2444
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
2445
|
|
|
|
|
|
|
} |
2446
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
2447
|
0
|
|
|
|
|
|
return $xfer; |
2448
|
|
|
|
|
|
|
} |
2449
|
|
|
|
|
|
|
|
2450
|
|
|
|
|
|
|
sub write { |
2451
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
2452
|
0
|
|
|
|
|
|
my $xfer = 0; |
2453
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('THandleIdentifier'); |
2454
|
0
|
0
|
|
|
|
|
if (defined $self->{guid}) { |
2455
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('guid', TType::STRING, 1); |
2456
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{guid}); |
2457
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2458
|
|
|
|
|
|
|
} |
2459
|
0
|
0
|
|
|
|
|
if (defined $self->{secret}) { |
2460
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('secret', TType::STRING, 2); |
2461
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{secret}); |
2462
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2463
|
|
|
|
|
|
|
} |
2464
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
2465
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
2466
|
0
|
|
|
|
|
|
return $xfer; |
2467
|
|
|
|
|
|
|
} |
2468
|
|
|
|
|
|
|
|
2469
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TSessionHandle; |
2470
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TSessionHandle::VERSION = '0.021'; |
2471
|
|
|
|
|
|
|
{ |
2472
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TSessionHandle::DIST = 'Thrift-API-HiveClient2'; |
2473
|
|
|
|
|
|
|
} |
2474
|
2
|
|
|
2
|
|
19
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1055
|
|
2475
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TSessionHandle->mk_accessors( qw( sessionId ) ); |
2476
|
|
|
|
|
|
|
|
2477
|
|
|
|
|
|
|
sub new { |
2478
|
0
|
|
|
0
|
|
|
my $classname = shift; |
2479
|
0
|
|
|
|
|
|
my $self = {}; |
2480
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
2481
|
0
|
|
|
|
|
|
$self->{sessionId} = undef; |
2482
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
2483
|
0
|
0
|
|
|
|
|
if (defined $vals->{sessionId}) { |
2484
|
0
|
|
|
|
|
|
$self->{sessionId} = $vals->{sessionId}; |
2485
|
|
|
|
|
|
|
} |
2486
|
|
|
|
|
|
|
} |
2487
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
2488
|
|
|
|
|
|
|
} |
2489
|
|
|
|
|
|
|
|
2490
|
|
|
|
|
|
|
sub getName { |
2491
|
0
|
|
|
0
|
|
|
return 'TSessionHandle'; |
2492
|
|
|
|
|
|
|
} |
2493
|
|
|
|
|
|
|
|
2494
|
|
|
|
|
|
|
sub read { |
2495
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
2496
|
0
|
|
|
|
|
|
my $xfer = 0; |
2497
|
0
|
|
|
|
|
|
my $fname; |
2498
|
0
|
|
|
|
|
|
my $ftype = 0; |
2499
|
0
|
|
|
|
|
|
my $fid = 0; |
2500
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
2501
|
0
|
|
|
|
|
|
while (1) |
2502
|
|
|
|
|
|
|
{ |
2503
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
2504
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
2505
|
0
|
|
|
|
|
|
last; |
2506
|
|
|
|
|
|
|
} |
2507
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
2508
|
|
|
|
|
|
|
{ |
2509
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
2510
|
0
|
|
|
|
|
|
$self->{sessionId} = new Thrift::API::HiveClient2::THandleIdentifier(); |
2511
|
0
|
|
|
|
|
|
$xfer += $self->{sessionId}->read($input); |
2512
|
|
|
|
|
|
|
} else { |
2513
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2514
|
|
|
|
|
|
|
} |
2515
|
0
|
|
|
|
|
|
last; }; |
2516
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2517
|
|
|
|
|
|
|
} |
2518
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
2519
|
|
|
|
|
|
|
} |
2520
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
2521
|
0
|
|
|
|
|
|
return $xfer; |
2522
|
|
|
|
|
|
|
} |
2523
|
|
|
|
|
|
|
|
2524
|
|
|
|
|
|
|
sub write { |
2525
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
2526
|
0
|
|
|
|
|
|
my $xfer = 0; |
2527
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TSessionHandle'); |
2528
|
0
|
0
|
|
|
|
|
if (defined $self->{sessionId}) { |
2529
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('sessionId', TType::STRUCT, 1); |
2530
|
0
|
|
|
|
|
|
$xfer += $self->{sessionId}->write($output); |
2531
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2532
|
|
|
|
|
|
|
} |
2533
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
2534
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
2535
|
0
|
|
|
|
|
|
return $xfer; |
2536
|
|
|
|
|
|
|
} |
2537
|
|
|
|
|
|
|
|
2538
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TOperationHandle; |
2539
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TOperationHandle::VERSION = '0.021'; |
2540
|
|
|
|
|
|
|
{ |
2541
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TOperationHandle::DIST = 'Thrift-API-HiveClient2'; |
2542
|
|
|
|
|
|
|
} |
2543
|
2
|
|
|
2
|
|
11
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1670
|
|
2544
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TOperationHandle->mk_accessors( qw( operationId operationType hasResultSet modifiedRowCount ) ); |
2545
|
|
|
|
|
|
|
|
2546
|
|
|
|
|
|
|
sub new { |
2547
|
0
|
|
|
0
|
|
|
my $classname = shift; |
2548
|
0
|
|
|
|
|
|
my $self = {}; |
2549
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
2550
|
0
|
|
|
|
|
|
$self->{operationId} = undef; |
2551
|
0
|
|
|
|
|
|
$self->{operationType} = undef; |
2552
|
0
|
|
|
|
|
|
$self->{hasResultSet} = undef; |
2553
|
0
|
|
|
|
|
|
$self->{modifiedRowCount} = undef; |
2554
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
2555
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationId}) { |
2556
|
0
|
|
|
|
|
|
$self->{operationId} = $vals->{operationId}; |
2557
|
|
|
|
|
|
|
} |
2558
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationType}) { |
2559
|
0
|
|
|
|
|
|
$self->{operationType} = $vals->{operationType}; |
2560
|
|
|
|
|
|
|
} |
2561
|
0
|
0
|
|
|
|
|
if (defined $vals->{hasResultSet}) { |
2562
|
0
|
|
|
|
|
|
$self->{hasResultSet} = $vals->{hasResultSet}; |
2563
|
|
|
|
|
|
|
} |
2564
|
0
|
0
|
|
|
|
|
if (defined $vals->{modifiedRowCount}) { |
2565
|
0
|
|
|
|
|
|
$self->{modifiedRowCount} = $vals->{modifiedRowCount}; |
2566
|
|
|
|
|
|
|
} |
2567
|
|
|
|
|
|
|
} |
2568
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
2569
|
|
|
|
|
|
|
} |
2570
|
|
|
|
|
|
|
|
2571
|
|
|
|
|
|
|
sub getName { |
2572
|
0
|
|
|
0
|
|
|
return 'TOperationHandle'; |
2573
|
|
|
|
|
|
|
} |
2574
|
|
|
|
|
|
|
|
2575
|
|
|
|
|
|
|
sub read { |
2576
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
2577
|
0
|
|
|
|
|
|
my $xfer = 0; |
2578
|
0
|
|
|
|
|
|
my $fname; |
2579
|
0
|
|
|
|
|
|
my $ftype = 0; |
2580
|
0
|
|
|
|
|
|
my $fid = 0; |
2581
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
2582
|
0
|
|
|
|
|
|
while (1) |
2583
|
|
|
|
|
|
|
{ |
2584
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
2585
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
2586
|
0
|
|
|
|
|
|
last; |
2587
|
|
|
|
|
|
|
} |
2588
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
2589
|
|
|
|
|
|
|
{ |
2590
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
2591
|
0
|
|
|
|
|
|
$self->{operationId} = new Thrift::API::HiveClient2::THandleIdentifier(); |
2592
|
0
|
|
|
|
|
|
$xfer += $self->{operationId}->read($input); |
2593
|
|
|
|
|
|
|
} else { |
2594
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2595
|
|
|
|
|
|
|
} |
2596
|
0
|
|
|
|
|
|
last; }; |
2597
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
2598
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{operationType}); |
2599
|
|
|
|
|
|
|
} else { |
2600
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2601
|
|
|
|
|
|
|
} |
2602
|
0
|
|
|
|
|
|
last; }; |
2603
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::BOOL) { |
|
0
|
0
|
|
|
|
|
|
2604
|
0
|
|
|
|
|
|
$xfer += $input->readBool(\$self->{hasResultSet}); |
2605
|
|
|
|
|
|
|
} else { |
2606
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2607
|
|
|
|
|
|
|
} |
2608
|
0
|
|
|
|
|
|
last; }; |
2609
|
0
|
0
|
|
|
|
|
/^4$/ && do{ if ($ftype == TType::DOUBLE) { |
|
0
|
0
|
|
|
|
|
|
2610
|
0
|
|
|
|
|
|
$xfer += $input->readDouble(\$self->{modifiedRowCount}); |
2611
|
|
|
|
|
|
|
} else { |
2612
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2613
|
|
|
|
|
|
|
} |
2614
|
0
|
|
|
|
|
|
last; }; |
2615
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2616
|
|
|
|
|
|
|
} |
2617
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
2618
|
|
|
|
|
|
|
} |
2619
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
2620
|
0
|
|
|
|
|
|
return $xfer; |
2621
|
|
|
|
|
|
|
} |
2622
|
|
|
|
|
|
|
|
2623
|
|
|
|
|
|
|
sub write { |
2624
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
2625
|
0
|
|
|
|
|
|
my $xfer = 0; |
2626
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TOperationHandle'); |
2627
|
0
|
0
|
|
|
|
|
if (defined $self->{operationId}) { |
2628
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationId', TType::STRUCT, 1); |
2629
|
0
|
|
|
|
|
|
$xfer += $self->{operationId}->write($output); |
2630
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2631
|
|
|
|
|
|
|
} |
2632
|
0
|
0
|
|
|
|
|
if (defined $self->{operationType}) { |
2633
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationType', TType::I32, 2); |
2634
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{operationType}); |
2635
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2636
|
|
|
|
|
|
|
} |
2637
|
0
|
0
|
|
|
|
|
if (defined $self->{hasResultSet}) { |
2638
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('hasResultSet', TType::BOOL, 3); |
2639
|
0
|
|
|
|
|
|
$xfer += $output->writeBool($self->{hasResultSet}); |
2640
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2641
|
|
|
|
|
|
|
} |
2642
|
0
|
0
|
|
|
|
|
if (defined $self->{modifiedRowCount}) { |
2643
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('modifiedRowCount', TType::DOUBLE, 4); |
2644
|
0
|
|
|
|
|
|
$xfer += $output->writeDouble($self->{modifiedRowCount}); |
2645
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2646
|
|
|
|
|
|
|
} |
2647
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
2648
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
2649
|
0
|
|
|
|
|
|
return $xfer; |
2650
|
|
|
|
|
|
|
} |
2651
|
|
|
|
|
|
|
|
2652
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TOpenSessionReq; |
2653
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TOpenSessionReq::VERSION = '0.021'; |
2654
|
|
|
|
|
|
|
{ |
2655
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TOpenSessionReq::DIST = 'Thrift-API-HiveClient2'; |
2656
|
|
|
|
|
|
|
} |
2657
|
2
|
|
|
2
|
|
12
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
1955
|
|
2658
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TOpenSessionReq->mk_accessors( qw( client_protocol username password configuration ) ); |
2659
|
|
|
|
|
|
|
|
2660
|
|
|
|
|
|
|
sub new { |
2661
|
0
|
|
|
0
|
|
|
my $classname = shift; |
2662
|
0
|
|
|
|
|
|
my $self = {}; |
2663
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
2664
|
0
|
|
|
|
|
|
$self->{client_protocol} = 0; |
2665
|
0
|
|
|
|
|
|
$self->{username} = undef; |
2666
|
0
|
|
|
|
|
|
$self->{password} = undef; |
2667
|
0
|
|
|
|
|
|
$self->{configuration} = undef; |
2668
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
2669
|
0
|
0
|
|
|
|
|
if (defined $vals->{client_protocol}) { |
2670
|
0
|
|
|
|
|
|
$self->{client_protocol} = $vals->{client_protocol}; |
2671
|
|
|
|
|
|
|
} |
2672
|
0
|
0
|
|
|
|
|
if (defined $vals->{username}) { |
2673
|
0
|
|
|
|
|
|
$self->{username} = $vals->{username}; |
2674
|
|
|
|
|
|
|
} |
2675
|
0
|
0
|
|
|
|
|
if (defined $vals->{password}) { |
2676
|
0
|
|
|
|
|
|
$self->{password} = $vals->{password}; |
2677
|
|
|
|
|
|
|
} |
2678
|
0
|
0
|
|
|
|
|
if (defined $vals->{configuration}) { |
2679
|
0
|
|
|
|
|
|
$self->{configuration} = $vals->{configuration}; |
2680
|
|
|
|
|
|
|
} |
2681
|
|
|
|
|
|
|
} |
2682
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
2683
|
|
|
|
|
|
|
} |
2684
|
|
|
|
|
|
|
|
2685
|
|
|
|
|
|
|
sub getName { |
2686
|
0
|
|
|
0
|
|
|
return 'TOpenSessionReq'; |
2687
|
|
|
|
|
|
|
} |
2688
|
|
|
|
|
|
|
|
2689
|
|
|
|
|
|
|
sub read { |
2690
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
2691
|
0
|
|
|
|
|
|
my $xfer = 0; |
2692
|
0
|
|
|
|
|
|
my $fname; |
2693
|
0
|
|
|
|
|
|
my $ftype = 0; |
2694
|
0
|
|
|
|
|
|
my $fid = 0; |
2695
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
2696
|
0
|
|
|
|
|
|
while (1) |
2697
|
|
|
|
|
|
|
{ |
2698
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
2699
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
2700
|
0
|
|
|
|
|
|
last; |
2701
|
|
|
|
|
|
|
} |
2702
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
2703
|
|
|
|
|
|
|
{ |
2704
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
2705
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{client_protocol}); |
2706
|
|
|
|
|
|
|
} else { |
2707
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2708
|
|
|
|
|
|
|
} |
2709
|
0
|
|
|
|
|
|
last; }; |
2710
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
2711
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{username}); |
2712
|
|
|
|
|
|
|
} else { |
2713
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2714
|
|
|
|
|
|
|
} |
2715
|
0
|
|
|
|
|
|
last; }; |
2716
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
2717
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{password}); |
2718
|
|
|
|
|
|
|
} else { |
2719
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2720
|
|
|
|
|
|
|
} |
2721
|
0
|
|
|
|
|
|
last; }; |
2722
|
0
|
0
|
|
|
|
|
/^4$/ && do{ if ($ftype == TType::MAP) { |
|
0
|
0
|
|
|
|
|
|
2723
|
|
|
|
|
|
|
{ |
2724
|
0
|
|
|
|
|
|
my $_size109 = 0; |
|
0
|
|
|
|
|
|
|
2725
|
0
|
|
|
|
|
|
$self->{configuration} = {}; |
2726
|
0
|
|
|
|
|
|
my $_ktype110 = 0; |
2727
|
0
|
|
|
|
|
|
my $_vtype111 = 0; |
2728
|
0
|
|
|
|
|
|
$xfer += $input->readMapBegin(\$_ktype110, \$_vtype111, \$_size109); |
2729
|
0
|
|
|
|
|
|
for (my $_i113 = 0; $_i113 < $_size109; ++$_i113) |
2730
|
|
|
|
|
|
|
{ |
2731
|
0
|
|
|
|
|
|
my $key114 = ''; |
2732
|
0
|
|
|
|
|
|
my $val115 = ''; |
2733
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$key114); |
2734
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$val115); |
2735
|
0
|
|
|
|
|
|
$self->{configuration}->{$key114} = $val115; |
2736
|
|
|
|
|
|
|
} |
2737
|
0
|
|
|
|
|
|
$xfer += $input->readMapEnd(); |
2738
|
|
|
|
|
|
|
} |
2739
|
|
|
|
|
|
|
} else { |
2740
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2741
|
|
|
|
|
|
|
} |
2742
|
0
|
|
|
|
|
|
last; }; |
2743
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2744
|
|
|
|
|
|
|
} |
2745
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
2746
|
|
|
|
|
|
|
} |
2747
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
2748
|
0
|
|
|
|
|
|
return $xfer; |
2749
|
|
|
|
|
|
|
} |
2750
|
|
|
|
|
|
|
|
2751
|
|
|
|
|
|
|
sub write { |
2752
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
2753
|
0
|
|
|
|
|
|
my $xfer = 0; |
2754
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TOpenSessionReq'); |
2755
|
0
|
0
|
|
|
|
|
if (defined $self->{client_protocol}) { |
2756
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('client_protocol', TType::I32, 1); |
2757
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{client_protocol}); |
2758
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2759
|
|
|
|
|
|
|
} |
2760
|
0
|
0
|
|
|
|
|
if (defined $self->{username}) { |
2761
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('username', TType::STRING, 2); |
2762
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{username}); |
2763
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2764
|
|
|
|
|
|
|
} |
2765
|
0
|
0
|
|
|
|
|
if (defined $self->{password}) { |
2766
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('password', TType::STRING, 3); |
2767
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{password}); |
2768
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2769
|
|
|
|
|
|
|
} |
2770
|
0
|
0
|
|
|
|
|
if (defined $self->{configuration}) { |
2771
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('configuration', TType::MAP, 4); |
2772
|
|
|
|
|
|
|
{ |
2773
|
0
|
|
|
|
|
|
$xfer += $output->writeMapBegin(TType::STRING, TType::STRING, scalar(keys %{$self->{configuration}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
2774
|
|
|
|
|
|
|
{ |
2775
|
0
|
|
|
|
|
|
while( my ($kiter116,$viter117) = each %{$self->{configuration}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
2776
|
|
|
|
|
|
|
{ |
2777
|
0
|
|
|
|
|
|
$xfer += $output->writeString($kiter116); |
2778
|
0
|
|
|
|
|
|
$xfer += $output->writeString($viter117); |
2779
|
|
|
|
|
|
|
} |
2780
|
|
|
|
|
|
|
} |
2781
|
0
|
|
|
|
|
|
$xfer += $output->writeMapEnd(); |
2782
|
|
|
|
|
|
|
} |
2783
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2784
|
|
|
|
|
|
|
} |
2785
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
2786
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
2787
|
0
|
|
|
|
|
|
return $xfer; |
2788
|
|
|
|
|
|
|
} |
2789
|
|
|
|
|
|
|
|
2790
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TOpenSessionResp; |
2791
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TOpenSessionResp::VERSION = '0.021'; |
2792
|
|
|
|
|
|
|
{ |
2793
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TOpenSessionResp::DIST = 'Thrift-API-HiveClient2'; |
2794
|
|
|
|
|
|
|
} |
2795
|
2
|
|
|
2
|
|
15
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
2070
|
|
2796
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TOpenSessionResp->mk_accessors( qw( status serverProtocolVersion sessionHandle configuration ) ); |
2797
|
|
|
|
|
|
|
|
2798
|
|
|
|
|
|
|
sub new { |
2799
|
0
|
|
|
0
|
|
|
my $classname = shift; |
2800
|
0
|
|
|
|
|
|
my $self = {}; |
2801
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
2802
|
0
|
|
|
|
|
|
$self->{status} = undef; |
2803
|
0
|
|
|
|
|
|
$self->{serverProtocolVersion} = 0; |
2804
|
0
|
|
|
|
|
|
$self->{sessionHandle} = undef; |
2805
|
0
|
|
|
|
|
|
$self->{configuration} = undef; |
2806
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
2807
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
2808
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
2809
|
|
|
|
|
|
|
} |
2810
|
0
|
0
|
|
|
|
|
if (defined $vals->{serverProtocolVersion}) { |
2811
|
0
|
|
|
|
|
|
$self->{serverProtocolVersion} = $vals->{serverProtocolVersion}; |
2812
|
|
|
|
|
|
|
} |
2813
|
0
|
0
|
|
|
|
|
if (defined $vals->{sessionHandle}) { |
2814
|
0
|
|
|
|
|
|
$self->{sessionHandle} = $vals->{sessionHandle}; |
2815
|
|
|
|
|
|
|
} |
2816
|
0
|
0
|
|
|
|
|
if (defined $vals->{configuration}) { |
2817
|
0
|
|
|
|
|
|
$self->{configuration} = $vals->{configuration}; |
2818
|
|
|
|
|
|
|
} |
2819
|
|
|
|
|
|
|
} |
2820
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
2821
|
|
|
|
|
|
|
} |
2822
|
|
|
|
|
|
|
|
2823
|
|
|
|
|
|
|
sub getName { |
2824
|
0
|
|
|
0
|
|
|
return 'TOpenSessionResp'; |
2825
|
|
|
|
|
|
|
} |
2826
|
|
|
|
|
|
|
|
2827
|
|
|
|
|
|
|
sub read { |
2828
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
2829
|
0
|
|
|
|
|
|
my $xfer = 0; |
2830
|
0
|
|
|
|
|
|
my $fname; |
2831
|
0
|
|
|
|
|
|
my $ftype = 0; |
2832
|
0
|
|
|
|
|
|
my $fid = 0; |
2833
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
2834
|
0
|
|
|
|
|
|
while (1) |
2835
|
|
|
|
|
|
|
{ |
2836
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
2837
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
2838
|
0
|
|
|
|
|
|
last; |
2839
|
|
|
|
|
|
|
} |
2840
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
2841
|
|
|
|
|
|
|
{ |
2842
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
2843
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
2844
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
2845
|
|
|
|
|
|
|
} else { |
2846
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2847
|
|
|
|
|
|
|
} |
2848
|
0
|
|
|
|
|
|
last; }; |
2849
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
2850
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{serverProtocolVersion}); |
2851
|
|
|
|
|
|
|
} else { |
2852
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2853
|
|
|
|
|
|
|
} |
2854
|
0
|
|
|
|
|
|
last; }; |
2855
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
2856
|
0
|
|
|
|
|
|
$self->{sessionHandle} = new Thrift::API::HiveClient2::TSessionHandle(); |
2857
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->read($input); |
2858
|
|
|
|
|
|
|
} else { |
2859
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2860
|
|
|
|
|
|
|
} |
2861
|
0
|
|
|
|
|
|
last; }; |
2862
|
0
|
0
|
|
|
|
|
/^4$/ && do{ if ($ftype == TType::MAP) { |
|
0
|
0
|
|
|
|
|
|
2863
|
|
|
|
|
|
|
{ |
2864
|
0
|
|
|
|
|
|
my $_size118 = 0; |
|
0
|
|
|
|
|
|
|
2865
|
0
|
|
|
|
|
|
$self->{configuration} = {}; |
2866
|
0
|
|
|
|
|
|
my $_ktype119 = 0; |
2867
|
0
|
|
|
|
|
|
my $_vtype120 = 0; |
2868
|
0
|
|
|
|
|
|
$xfer += $input->readMapBegin(\$_ktype119, \$_vtype120, \$_size118); |
2869
|
0
|
|
|
|
|
|
for (my $_i122 = 0; $_i122 < $_size118; ++$_i122) |
2870
|
|
|
|
|
|
|
{ |
2871
|
0
|
|
|
|
|
|
my $key123 = ''; |
2872
|
0
|
|
|
|
|
|
my $val124 = ''; |
2873
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$key123); |
2874
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$val124); |
2875
|
0
|
|
|
|
|
|
$self->{configuration}->{$key123} = $val124; |
2876
|
|
|
|
|
|
|
} |
2877
|
0
|
|
|
|
|
|
$xfer += $input->readMapEnd(); |
2878
|
|
|
|
|
|
|
} |
2879
|
|
|
|
|
|
|
} else { |
2880
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2881
|
|
|
|
|
|
|
} |
2882
|
0
|
|
|
|
|
|
last; }; |
2883
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2884
|
|
|
|
|
|
|
} |
2885
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
2886
|
|
|
|
|
|
|
} |
2887
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
2888
|
0
|
|
|
|
|
|
return $xfer; |
2889
|
|
|
|
|
|
|
} |
2890
|
|
|
|
|
|
|
|
2891
|
|
|
|
|
|
|
sub write { |
2892
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
2893
|
0
|
|
|
|
|
|
my $xfer = 0; |
2894
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TOpenSessionResp'); |
2895
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
2896
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
2897
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
2898
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2899
|
|
|
|
|
|
|
} |
2900
|
0
|
0
|
|
|
|
|
if (defined $self->{serverProtocolVersion}) { |
2901
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('serverProtocolVersion', TType::I32, 2); |
2902
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{serverProtocolVersion}); |
2903
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2904
|
|
|
|
|
|
|
} |
2905
|
0
|
0
|
|
|
|
|
if (defined $self->{sessionHandle}) { |
2906
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('sessionHandle', TType::STRUCT, 3); |
2907
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->write($output); |
2908
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2909
|
|
|
|
|
|
|
} |
2910
|
0
|
0
|
|
|
|
|
if (defined $self->{configuration}) { |
2911
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('configuration', TType::MAP, 4); |
2912
|
|
|
|
|
|
|
{ |
2913
|
0
|
|
|
|
|
|
$xfer += $output->writeMapBegin(TType::STRING, TType::STRING, scalar(keys %{$self->{configuration}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
2914
|
|
|
|
|
|
|
{ |
2915
|
0
|
|
|
|
|
|
while( my ($kiter125,$viter126) = each %{$self->{configuration}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
2916
|
|
|
|
|
|
|
{ |
2917
|
0
|
|
|
|
|
|
$xfer += $output->writeString($kiter125); |
2918
|
0
|
|
|
|
|
|
$xfer += $output->writeString($viter126); |
2919
|
|
|
|
|
|
|
} |
2920
|
|
|
|
|
|
|
} |
2921
|
0
|
|
|
|
|
|
$xfer += $output->writeMapEnd(); |
2922
|
|
|
|
|
|
|
} |
2923
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2924
|
|
|
|
|
|
|
} |
2925
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
2926
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
2927
|
0
|
|
|
|
|
|
return $xfer; |
2928
|
|
|
|
|
|
|
} |
2929
|
|
|
|
|
|
|
|
2930
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TCloseSessionReq; |
2931
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TCloseSessionReq::VERSION = '0.021'; |
2932
|
|
|
|
|
|
|
{ |
2933
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TCloseSessionReq::DIST = 'Thrift-API-HiveClient2'; |
2934
|
|
|
|
|
|
|
} |
2935
|
2
|
|
|
2
|
|
12
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
971
|
|
2936
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TCloseSessionReq->mk_accessors( qw( sessionHandle ) ); |
2937
|
|
|
|
|
|
|
|
2938
|
|
|
|
|
|
|
sub new { |
2939
|
0
|
|
|
0
|
|
|
my $classname = shift; |
2940
|
0
|
|
|
|
|
|
my $self = {}; |
2941
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
2942
|
0
|
|
|
|
|
|
$self->{sessionHandle} = undef; |
2943
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
2944
|
0
|
0
|
|
|
|
|
if (defined $vals->{sessionHandle}) { |
2945
|
0
|
|
|
|
|
|
$self->{sessionHandle} = $vals->{sessionHandle}; |
2946
|
|
|
|
|
|
|
} |
2947
|
|
|
|
|
|
|
} |
2948
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
2949
|
|
|
|
|
|
|
} |
2950
|
|
|
|
|
|
|
|
2951
|
|
|
|
|
|
|
sub getName { |
2952
|
0
|
|
|
0
|
|
|
return 'TCloseSessionReq'; |
2953
|
|
|
|
|
|
|
} |
2954
|
|
|
|
|
|
|
|
2955
|
|
|
|
|
|
|
sub read { |
2956
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
2957
|
0
|
|
|
|
|
|
my $xfer = 0; |
2958
|
0
|
|
|
|
|
|
my $fname; |
2959
|
0
|
|
|
|
|
|
my $ftype = 0; |
2960
|
0
|
|
|
|
|
|
my $fid = 0; |
2961
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
2962
|
0
|
|
|
|
|
|
while (1) |
2963
|
|
|
|
|
|
|
{ |
2964
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
2965
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
2966
|
0
|
|
|
|
|
|
last; |
2967
|
|
|
|
|
|
|
} |
2968
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
2969
|
|
|
|
|
|
|
{ |
2970
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
2971
|
0
|
|
|
|
|
|
$self->{sessionHandle} = new Thrift::API::HiveClient2::TSessionHandle(); |
2972
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->read($input); |
2973
|
|
|
|
|
|
|
} else { |
2974
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2975
|
|
|
|
|
|
|
} |
2976
|
0
|
|
|
|
|
|
last; }; |
2977
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2978
|
|
|
|
|
|
|
} |
2979
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
2980
|
|
|
|
|
|
|
} |
2981
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
2982
|
0
|
|
|
|
|
|
return $xfer; |
2983
|
|
|
|
|
|
|
} |
2984
|
|
|
|
|
|
|
|
2985
|
|
|
|
|
|
|
sub write { |
2986
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
2987
|
0
|
|
|
|
|
|
my $xfer = 0; |
2988
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TCloseSessionReq'); |
2989
|
0
|
0
|
|
|
|
|
if (defined $self->{sessionHandle}) { |
2990
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('sessionHandle', TType::STRUCT, 1); |
2991
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->write($output); |
2992
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2993
|
|
|
|
|
|
|
} |
2994
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
2995
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
2996
|
0
|
|
|
|
|
|
return $xfer; |
2997
|
|
|
|
|
|
|
} |
2998
|
|
|
|
|
|
|
|
2999
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TCloseSessionResp; |
3000
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TCloseSessionResp::VERSION = '0.021'; |
3001
|
|
|
|
|
|
|
{ |
3002
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TCloseSessionResp::DIST = 'Thrift-API-HiveClient2'; |
3003
|
|
|
|
|
|
|
} |
3004
|
2
|
|
|
2
|
|
12
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
1022
|
|
3005
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TCloseSessionResp->mk_accessors( qw( status ) ); |
3006
|
|
|
|
|
|
|
|
3007
|
|
|
|
|
|
|
sub new { |
3008
|
0
|
|
|
0
|
|
|
my $classname = shift; |
3009
|
0
|
|
|
|
|
|
my $self = {}; |
3010
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
3011
|
0
|
|
|
|
|
|
$self->{status} = undef; |
3012
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
3013
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
3014
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
3015
|
|
|
|
|
|
|
} |
3016
|
|
|
|
|
|
|
} |
3017
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
3018
|
|
|
|
|
|
|
} |
3019
|
|
|
|
|
|
|
|
3020
|
|
|
|
|
|
|
sub getName { |
3021
|
0
|
|
|
0
|
|
|
return 'TCloseSessionResp'; |
3022
|
|
|
|
|
|
|
} |
3023
|
|
|
|
|
|
|
|
3024
|
|
|
|
|
|
|
sub read { |
3025
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
3026
|
0
|
|
|
|
|
|
my $xfer = 0; |
3027
|
0
|
|
|
|
|
|
my $fname; |
3028
|
0
|
|
|
|
|
|
my $ftype = 0; |
3029
|
0
|
|
|
|
|
|
my $fid = 0; |
3030
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
3031
|
0
|
|
|
|
|
|
while (1) |
3032
|
|
|
|
|
|
|
{ |
3033
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
3034
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
3035
|
0
|
|
|
|
|
|
last; |
3036
|
|
|
|
|
|
|
} |
3037
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
3038
|
|
|
|
|
|
|
{ |
3039
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
3040
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
3041
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
3042
|
|
|
|
|
|
|
} else { |
3043
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3044
|
|
|
|
|
|
|
} |
3045
|
0
|
|
|
|
|
|
last; }; |
3046
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3047
|
|
|
|
|
|
|
} |
3048
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
3049
|
|
|
|
|
|
|
} |
3050
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
3051
|
0
|
|
|
|
|
|
return $xfer; |
3052
|
|
|
|
|
|
|
} |
3053
|
|
|
|
|
|
|
|
3054
|
|
|
|
|
|
|
sub write { |
3055
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
3056
|
0
|
|
|
|
|
|
my $xfer = 0; |
3057
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TCloseSessionResp'); |
3058
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
3059
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
3060
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
3061
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3062
|
|
|
|
|
|
|
} |
3063
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
3064
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
3065
|
0
|
|
|
|
|
|
return $xfer; |
3066
|
|
|
|
|
|
|
} |
3067
|
|
|
|
|
|
|
|
3068
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetInfoValue; |
3069
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetInfoValue::VERSION = '0.021'; |
3070
|
|
|
|
|
|
|
{ |
3071
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetInfoValue::DIST = 'Thrift-API-HiveClient2'; |
3072
|
|
|
|
|
|
|
} |
3073
|
2
|
|
|
2
|
|
12
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
2091
|
|
3074
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetInfoValue->mk_accessors( qw( stringValue smallIntValue integerBitmask integerFlag binaryValue lenValue ) ); |
3075
|
|
|
|
|
|
|
|
3076
|
|
|
|
|
|
|
sub new { |
3077
|
0
|
|
|
0
|
|
|
my $classname = shift; |
3078
|
0
|
|
|
|
|
|
my $self = {}; |
3079
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
3080
|
0
|
|
|
|
|
|
$self->{stringValue} = undef; |
3081
|
0
|
|
|
|
|
|
$self->{smallIntValue} = undef; |
3082
|
0
|
|
|
|
|
|
$self->{integerBitmask} = undef; |
3083
|
0
|
|
|
|
|
|
$self->{integerFlag} = undef; |
3084
|
0
|
|
|
|
|
|
$self->{binaryValue} = undef; |
3085
|
0
|
|
|
|
|
|
$self->{lenValue} = undef; |
3086
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
3087
|
0
|
0
|
|
|
|
|
if (defined $vals->{stringValue}) { |
3088
|
0
|
|
|
|
|
|
$self->{stringValue} = $vals->{stringValue}; |
3089
|
|
|
|
|
|
|
} |
3090
|
0
|
0
|
|
|
|
|
if (defined $vals->{smallIntValue}) { |
3091
|
0
|
|
|
|
|
|
$self->{smallIntValue} = $vals->{smallIntValue}; |
3092
|
|
|
|
|
|
|
} |
3093
|
0
|
0
|
|
|
|
|
if (defined $vals->{integerBitmask}) { |
3094
|
0
|
|
|
|
|
|
$self->{integerBitmask} = $vals->{integerBitmask}; |
3095
|
|
|
|
|
|
|
} |
3096
|
0
|
0
|
|
|
|
|
if (defined $vals->{integerFlag}) { |
3097
|
0
|
|
|
|
|
|
$self->{integerFlag} = $vals->{integerFlag}; |
3098
|
|
|
|
|
|
|
} |
3099
|
0
|
0
|
|
|
|
|
if (defined $vals->{binaryValue}) { |
3100
|
0
|
|
|
|
|
|
$self->{binaryValue} = $vals->{binaryValue}; |
3101
|
|
|
|
|
|
|
} |
3102
|
0
|
0
|
|
|
|
|
if (defined $vals->{lenValue}) { |
3103
|
0
|
|
|
|
|
|
$self->{lenValue} = $vals->{lenValue}; |
3104
|
|
|
|
|
|
|
} |
3105
|
|
|
|
|
|
|
} |
3106
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
3107
|
|
|
|
|
|
|
} |
3108
|
|
|
|
|
|
|
|
3109
|
|
|
|
|
|
|
sub getName { |
3110
|
0
|
|
|
0
|
|
|
return 'TGetInfoValue'; |
3111
|
|
|
|
|
|
|
} |
3112
|
|
|
|
|
|
|
|
3113
|
|
|
|
|
|
|
sub read { |
3114
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
3115
|
0
|
|
|
|
|
|
my $xfer = 0; |
3116
|
0
|
|
|
|
|
|
my $fname; |
3117
|
0
|
|
|
|
|
|
my $ftype = 0; |
3118
|
0
|
|
|
|
|
|
my $fid = 0; |
3119
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
3120
|
0
|
|
|
|
|
|
while (1) |
3121
|
|
|
|
|
|
|
{ |
3122
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
3123
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
3124
|
0
|
|
|
|
|
|
last; |
3125
|
|
|
|
|
|
|
} |
3126
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
3127
|
|
|
|
|
|
|
{ |
3128
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
3129
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{stringValue}); |
3130
|
|
|
|
|
|
|
} else { |
3131
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3132
|
|
|
|
|
|
|
} |
3133
|
0
|
|
|
|
|
|
last; }; |
3134
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::I16) { |
|
0
|
0
|
|
|
|
|
|
3135
|
0
|
|
|
|
|
|
$xfer += $input->readI16(\$self->{smallIntValue}); |
3136
|
|
|
|
|
|
|
} else { |
3137
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3138
|
|
|
|
|
|
|
} |
3139
|
0
|
|
|
|
|
|
last; }; |
3140
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
3141
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{integerBitmask}); |
3142
|
|
|
|
|
|
|
} else { |
3143
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3144
|
|
|
|
|
|
|
} |
3145
|
0
|
|
|
|
|
|
last; }; |
3146
|
0
|
0
|
|
|
|
|
/^4$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
3147
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{integerFlag}); |
3148
|
|
|
|
|
|
|
} else { |
3149
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3150
|
|
|
|
|
|
|
} |
3151
|
0
|
|
|
|
|
|
last; }; |
3152
|
0
|
0
|
|
|
|
|
/^5$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
3153
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{binaryValue}); |
3154
|
|
|
|
|
|
|
} else { |
3155
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3156
|
|
|
|
|
|
|
} |
3157
|
0
|
|
|
|
|
|
last; }; |
3158
|
0
|
0
|
|
|
|
|
/^6$/ && do{ if ($ftype == TType::I64) { |
|
0
|
0
|
|
|
|
|
|
3159
|
0
|
|
|
|
|
|
$xfer += $input->readI64(\$self->{lenValue}); |
3160
|
|
|
|
|
|
|
} else { |
3161
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3162
|
|
|
|
|
|
|
} |
3163
|
0
|
|
|
|
|
|
last; }; |
3164
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3165
|
|
|
|
|
|
|
} |
3166
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
3167
|
|
|
|
|
|
|
} |
3168
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
3169
|
0
|
|
|
|
|
|
return $xfer; |
3170
|
|
|
|
|
|
|
} |
3171
|
|
|
|
|
|
|
|
3172
|
|
|
|
|
|
|
sub write { |
3173
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
3174
|
0
|
|
|
|
|
|
my $xfer = 0; |
3175
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetInfoValue'); |
3176
|
0
|
0
|
|
|
|
|
if (defined $self->{stringValue}) { |
3177
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('stringValue', TType::STRING, 1); |
3178
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{stringValue}); |
3179
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3180
|
|
|
|
|
|
|
} |
3181
|
0
|
0
|
|
|
|
|
if (defined $self->{smallIntValue}) { |
3182
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('smallIntValue', TType::I16, 2); |
3183
|
0
|
|
|
|
|
|
$xfer += $output->writeI16($self->{smallIntValue}); |
3184
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3185
|
|
|
|
|
|
|
} |
3186
|
0
|
0
|
|
|
|
|
if (defined $self->{integerBitmask}) { |
3187
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('integerBitmask', TType::I32, 3); |
3188
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{integerBitmask}); |
3189
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3190
|
|
|
|
|
|
|
} |
3191
|
0
|
0
|
|
|
|
|
if (defined $self->{integerFlag}) { |
3192
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('integerFlag', TType::I32, 4); |
3193
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{integerFlag}); |
3194
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3195
|
|
|
|
|
|
|
} |
3196
|
0
|
0
|
|
|
|
|
if (defined $self->{binaryValue}) { |
3197
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('binaryValue', TType::I32, 5); |
3198
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{binaryValue}); |
3199
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3200
|
|
|
|
|
|
|
} |
3201
|
0
|
0
|
|
|
|
|
if (defined $self->{lenValue}) { |
3202
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('lenValue', TType::I64, 6); |
3203
|
0
|
|
|
|
|
|
$xfer += $output->writeI64($self->{lenValue}); |
3204
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3205
|
|
|
|
|
|
|
} |
3206
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
3207
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
3208
|
0
|
|
|
|
|
|
return $xfer; |
3209
|
|
|
|
|
|
|
} |
3210
|
|
|
|
|
|
|
|
3211
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetInfoReq; |
3212
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetInfoReq::VERSION = '0.021'; |
3213
|
|
|
|
|
|
|
{ |
3214
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetInfoReq::DIST = 'Thrift-API-HiveClient2'; |
3215
|
|
|
|
|
|
|
} |
3216
|
2
|
|
|
2
|
|
12
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1231
|
|
3217
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetInfoReq->mk_accessors( qw( sessionHandle infoType ) ); |
3218
|
|
|
|
|
|
|
|
3219
|
|
|
|
|
|
|
sub new { |
3220
|
0
|
|
|
0
|
|
|
my $classname = shift; |
3221
|
0
|
|
|
|
|
|
my $self = {}; |
3222
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
3223
|
0
|
|
|
|
|
|
$self->{sessionHandle} = undef; |
3224
|
0
|
|
|
|
|
|
$self->{infoType} = undef; |
3225
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
3226
|
0
|
0
|
|
|
|
|
if (defined $vals->{sessionHandle}) { |
3227
|
0
|
|
|
|
|
|
$self->{sessionHandle} = $vals->{sessionHandle}; |
3228
|
|
|
|
|
|
|
} |
3229
|
0
|
0
|
|
|
|
|
if (defined $vals->{infoType}) { |
3230
|
0
|
|
|
|
|
|
$self->{infoType} = $vals->{infoType}; |
3231
|
|
|
|
|
|
|
} |
3232
|
|
|
|
|
|
|
} |
3233
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
3234
|
|
|
|
|
|
|
} |
3235
|
|
|
|
|
|
|
|
3236
|
|
|
|
|
|
|
sub getName { |
3237
|
0
|
|
|
0
|
|
|
return 'TGetInfoReq'; |
3238
|
|
|
|
|
|
|
} |
3239
|
|
|
|
|
|
|
|
3240
|
|
|
|
|
|
|
sub read { |
3241
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
3242
|
0
|
|
|
|
|
|
my $xfer = 0; |
3243
|
0
|
|
|
|
|
|
my $fname; |
3244
|
0
|
|
|
|
|
|
my $ftype = 0; |
3245
|
0
|
|
|
|
|
|
my $fid = 0; |
3246
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
3247
|
0
|
|
|
|
|
|
while (1) |
3248
|
|
|
|
|
|
|
{ |
3249
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
3250
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
3251
|
0
|
|
|
|
|
|
last; |
3252
|
|
|
|
|
|
|
} |
3253
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
3254
|
|
|
|
|
|
|
{ |
3255
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
3256
|
0
|
|
|
|
|
|
$self->{sessionHandle} = new Thrift::API::HiveClient2::TSessionHandle(); |
3257
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->read($input); |
3258
|
|
|
|
|
|
|
} else { |
3259
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3260
|
|
|
|
|
|
|
} |
3261
|
0
|
|
|
|
|
|
last; }; |
3262
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
3263
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{infoType}); |
3264
|
|
|
|
|
|
|
} else { |
3265
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3266
|
|
|
|
|
|
|
} |
3267
|
0
|
|
|
|
|
|
last; }; |
3268
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3269
|
|
|
|
|
|
|
} |
3270
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
3271
|
|
|
|
|
|
|
} |
3272
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
3273
|
0
|
|
|
|
|
|
return $xfer; |
3274
|
|
|
|
|
|
|
} |
3275
|
|
|
|
|
|
|
|
3276
|
|
|
|
|
|
|
sub write { |
3277
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
3278
|
0
|
|
|
|
|
|
my $xfer = 0; |
3279
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetInfoReq'); |
3280
|
0
|
0
|
|
|
|
|
if (defined $self->{sessionHandle}) { |
3281
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('sessionHandle', TType::STRUCT, 1); |
3282
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->write($output); |
3283
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3284
|
|
|
|
|
|
|
} |
3285
|
0
|
0
|
|
|
|
|
if (defined $self->{infoType}) { |
3286
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('infoType', TType::I32, 2); |
3287
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{infoType}); |
3288
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3289
|
|
|
|
|
|
|
} |
3290
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
3291
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
3292
|
0
|
|
|
|
|
|
return $xfer; |
3293
|
|
|
|
|
|
|
} |
3294
|
|
|
|
|
|
|
|
3295
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetInfoResp; |
3296
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetInfoResp::VERSION = '0.021'; |
3297
|
|
|
|
|
|
|
{ |
3298
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetInfoResp::DIST = 'Thrift-API-HiveClient2'; |
3299
|
|
|
|
|
|
|
} |
3300
|
2
|
|
|
2
|
|
13
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
1256
|
|
3301
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetInfoResp->mk_accessors( qw( status infoValue ) ); |
3302
|
|
|
|
|
|
|
|
3303
|
|
|
|
|
|
|
sub new { |
3304
|
0
|
|
|
0
|
|
|
my $classname = shift; |
3305
|
0
|
|
|
|
|
|
my $self = {}; |
3306
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
3307
|
0
|
|
|
|
|
|
$self->{status} = undef; |
3308
|
0
|
|
|
|
|
|
$self->{infoValue} = undef; |
3309
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
3310
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
3311
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
3312
|
|
|
|
|
|
|
} |
3313
|
0
|
0
|
|
|
|
|
if (defined $vals->{infoValue}) { |
3314
|
0
|
|
|
|
|
|
$self->{infoValue} = $vals->{infoValue}; |
3315
|
|
|
|
|
|
|
} |
3316
|
|
|
|
|
|
|
} |
3317
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
3318
|
|
|
|
|
|
|
} |
3319
|
|
|
|
|
|
|
|
3320
|
|
|
|
|
|
|
sub getName { |
3321
|
0
|
|
|
0
|
|
|
return 'TGetInfoResp'; |
3322
|
|
|
|
|
|
|
} |
3323
|
|
|
|
|
|
|
|
3324
|
|
|
|
|
|
|
sub read { |
3325
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
3326
|
0
|
|
|
|
|
|
my $xfer = 0; |
3327
|
0
|
|
|
|
|
|
my $fname; |
3328
|
0
|
|
|
|
|
|
my $ftype = 0; |
3329
|
0
|
|
|
|
|
|
my $fid = 0; |
3330
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
3331
|
0
|
|
|
|
|
|
while (1) |
3332
|
|
|
|
|
|
|
{ |
3333
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
3334
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
3335
|
0
|
|
|
|
|
|
last; |
3336
|
|
|
|
|
|
|
} |
3337
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
3338
|
|
|
|
|
|
|
{ |
3339
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
3340
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
3341
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
3342
|
|
|
|
|
|
|
} else { |
3343
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3344
|
|
|
|
|
|
|
} |
3345
|
0
|
|
|
|
|
|
last; }; |
3346
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
3347
|
0
|
|
|
|
|
|
$self->{infoValue} = new Thrift::API::HiveClient2::TGetInfoValue(); |
3348
|
0
|
|
|
|
|
|
$xfer += $self->{infoValue}->read($input); |
3349
|
|
|
|
|
|
|
} else { |
3350
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3351
|
|
|
|
|
|
|
} |
3352
|
0
|
|
|
|
|
|
last; }; |
3353
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3354
|
|
|
|
|
|
|
} |
3355
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
3356
|
|
|
|
|
|
|
} |
3357
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
3358
|
0
|
|
|
|
|
|
return $xfer; |
3359
|
|
|
|
|
|
|
} |
3360
|
|
|
|
|
|
|
|
3361
|
|
|
|
|
|
|
sub write { |
3362
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
3363
|
0
|
|
|
|
|
|
my $xfer = 0; |
3364
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetInfoResp'); |
3365
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
3366
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
3367
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
3368
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3369
|
|
|
|
|
|
|
} |
3370
|
0
|
0
|
|
|
|
|
if (defined $self->{infoValue}) { |
3371
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('infoValue', TType::STRUCT, 2); |
3372
|
0
|
|
|
|
|
|
$xfer += $self->{infoValue}->write($output); |
3373
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3374
|
|
|
|
|
|
|
} |
3375
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
3376
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
3377
|
0
|
|
|
|
|
|
return $xfer; |
3378
|
|
|
|
|
|
|
} |
3379
|
|
|
|
|
|
|
|
3380
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TExecuteStatementReq; |
3381
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TExecuteStatementReq::VERSION = '0.021'; |
3382
|
|
|
|
|
|
|
{ |
3383
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TExecuteStatementReq::DIST = 'Thrift-API-HiveClient2'; |
3384
|
|
|
|
|
|
|
} |
3385
|
2
|
|
|
2
|
|
12
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1798
|
|
3386
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TExecuteStatementReq->mk_accessors( qw( sessionHandle statement confOverlay ) ); |
3387
|
|
|
|
|
|
|
|
3388
|
|
|
|
|
|
|
sub new { |
3389
|
0
|
|
|
0
|
|
|
my $classname = shift; |
3390
|
0
|
|
|
|
|
|
my $self = {}; |
3391
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
3392
|
0
|
|
|
|
|
|
$self->{sessionHandle} = undef; |
3393
|
0
|
|
|
|
|
|
$self->{statement} = undef; |
3394
|
0
|
|
|
|
|
|
$self->{confOverlay} = undef; |
3395
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
3396
|
0
|
0
|
|
|
|
|
if (defined $vals->{sessionHandle}) { |
3397
|
0
|
|
|
|
|
|
$self->{sessionHandle} = $vals->{sessionHandle}; |
3398
|
|
|
|
|
|
|
} |
3399
|
0
|
0
|
|
|
|
|
if (defined $vals->{statement}) { |
3400
|
0
|
|
|
|
|
|
$self->{statement} = $vals->{statement}; |
3401
|
|
|
|
|
|
|
} |
3402
|
0
|
0
|
|
|
|
|
if (defined $vals->{confOverlay}) { |
3403
|
0
|
|
|
|
|
|
$self->{confOverlay} = $vals->{confOverlay}; |
3404
|
|
|
|
|
|
|
} |
3405
|
|
|
|
|
|
|
} |
3406
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
3407
|
|
|
|
|
|
|
} |
3408
|
|
|
|
|
|
|
|
3409
|
|
|
|
|
|
|
sub getName { |
3410
|
0
|
|
|
0
|
|
|
return 'TExecuteStatementReq'; |
3411
|
|
|
|
|
|
|
} |
3412
|
|
|
|
|
|
|
|
3413
|
|
|
|
|
|
|
sub read { |
3414
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
3415
|
0
|
|
|
|
|
|
my $xfer = 0; |
3416
|
0
|
|
|
|
|
|
my $fname; |
3417
|
0
|
|
|
|
|
|
my $ftype = 0; |
3418
|
0
|
|
|
|
|
|
my $fid = 0; |
3419
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
3420
|
0
|
|
|
|
|
|
while (1) |
3421
|
|
|
|
|
|
|
{ |
3422
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
3423
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
3424
|
0
|
|
|
|
|
|
last; |
3425
|
|
|
|
|
|
|
} |
3426
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
3427
|
|
|
|
|
|
|
{ |
3428
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
3429
|
0
|
|
|
|
|
|
$self->{sessionHandle} = new Thrift::API::HiveClient2::TSessionHandle(); |
3430
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->read($input); |
3431
|
|
|
|
|
|
|
} else { |
3432
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3433
|
|
|
|
|
|
|
} |
3434
|
0
|
|
|
|
|
|
last; }; |
3435
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
3436
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{statement}); |
3437
|
|
|
|
|
|
|
} else { |
3438
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3439
|
|
|
|
|
|
|
} |
3440
|
0
|
|
|
|
|
|
last; }; |
3441
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::MAP) { |
|
0
|
0
|
|
|
|
|
|
3442
|
|
|
|
|
|
|
{ |
3443
|
0
|
|
|
|
|
|
my $_size127 = 0; |
|
0
|
|
|
|
|
|
|
3444
|
0
|
|
|
|
|
|
$self->{confOverlay} = {}; |
3445
|
0
|
|
|
|
|
|
my $_ktype128 = 0; |
3446
|
0
|
|
|
|
|
|
my $_vtype129 = 0; |
3447
|
0
|
|
|
|
|
|
$xfer += $input->readMapBegin(\$_ktype128, \$_vtype129, \$_size127); |
3448
|
0
|
|
|
|
|
|
for (my $_i131 = 0; $_i131 < $_size127; ++$_i131) |
3449
|
|
|
|
|
|
|
{ |
3450
|
0
|
|
|
|
|
|
my $key132 = ''; |
3451
|
0
|
|
|
|
|
|
my $val133 = ''; |
3452
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$key132); |
3453
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$val133); |
3454
|
0
|
|
|
|
|
|
$self->{confOverlay}->{$key132} = $val133; |
3455
|
|
|
|
|
|
|
} |
3456
|
0
|
|
|
|
|
|
$xfer += $input->readMapEnd(); |
3457
|
|
|
|
|
|
|
} |
3458
|
|
|
|
|
|
|
} else { |
3459
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3460
|
|
|
|
|
|
|
} |
3461
|
0
|
|
|
|
|
|
last; }; |
3462
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3463
|
|
|
|
|
|
|
} |
3464
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
3465
|
|
|
|
|
|
|
} |
3466
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
3467
|
0
|
|
|
|
|
|
return $xfer; |
3468
|
|
|
|
|
|
|
} |
3469
|
|
|
|
|
|
|
|
3470
|
|
|
|
|
|
|
sub write { |
3471
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
3472
|
0
|
|
|
|
|
|
my $xfer = 0; |
3473
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TExecuteStatementReq'); |
3474
|
0
|
0
|
|
|
|
|
if (defined $self->{sessionHandle}) { |
3475
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('sessionHandle', TType::STRUCT, 1); |
3476
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->write($output); |
3477
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3478
|
|
|
|
|
|
|
} |
3479
|
0
|
0
|
|
|
|
|
if (defined $self->{statement}) { |
3480
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('statement', TType::STRING, 2); |
3481
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{statement}); |
3482
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3483
|
|
|
|
|
|
|
} |
3484
|
0
|
0
|
|
|
|
|
if (defined $self->{confOverlay}) { |
3485
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('confOverlay', TType::MAP, 3); |
3486
|
|
|
|
|
|
|
{ |
3487
|
0
|
|
|
|
|
|
$xfer += $output->writeMapBegin(TType::STRING, TType::STRING, scalar(keys %{$self->{confOverlay}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
3488
|
|
|
|
|
|
|
{ |
3489
|
0
|
|
|
|
|
|
while( my ($kiter134,$viter135) = each %{$self->{confOverlay}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
3490
|
|
|
|
|
|
|
{ |
3491
|
0
|
|
|
|
|
|
$xfer += $output->writeString($kiter134); |
3492
|
0
|
|
|
|
|
|
$xfer += $output->writeString($viter135); |
3493
|
|
|
|
|
|
|
} |
3494
|
|
|
|
|
|
|
} |
3495
|
0
|
|
|
|
|
|
$xfer += $output->writeMapEnd(); |
3496
|
|
|
|
|
|
|
} |
3497
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3498
|
|
|
|
|
|
|
} |
3499
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
3500
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
3501
|
0
|
|
|
|
|
|
return $xfer; |
3502
|
|
|
|
|
|
|
} |
3503
|
|
|
|
|
|
|
|
3504
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TExecuteStatementResp; |
3505
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TExecuteStatementResp::VERSION = '0.021'; |
3506
|
|
|
|
|
|
|
{ |
3507
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TExecuteStatementResp::DIST = 'Thrift-API-HiveClient2'; |
3508
|
|
|
|
|
|
|
} |
3509
|
2
|
|
|
2
|
|
13
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
1316
|
|
3510
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TExecuteStatementResp->mk_accessors( qw( status operationHandle ) ); |
3511
|
|
|
|
|
|
|
|
3512
|
|
|
|
|
|
|
sub new { |
3513
|
0
|
|
|
0
|
|
|
my $classname = shift; |
3514
|
0
|
|
|
|
|
|
my $self = {}; |
3515
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
3516
|
0
|
|
|
|
|
|
$self->{status} = undef; |
3517
|
0
|
|
|
|
|
|
$self->{operationHandle} = undef; |
3518
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
3519
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
3520
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
3521
|
|
|
|
|
|
|
} |
3522
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationHandle}) { |
3523
|
0
|
|
|
|
|
|
$self->{operationHandle} = $vals->{operationHandle}; |
3524
|
|
|
|
|
|
|
} |
3525
|
|
|
|
|
|
|
} |
3526
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
3527
|
|
|
|
|
|
|
} |
3528
|
|
|
|
|
|
|
|
3529
|
|
|
|
|
|
|
sub getName { |
3530
|
0
|
|
|
0
|
|
|
return 'TExecuteStatementResp'; |
3531
|
|
|
|
|
|
|
} |
3532
|
|
|
|
|
|
|
|
3533
|
|
|
|
|
|
|
sub read { |
3534
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
3535
|
0
|
|
|
|
|
|
my $xfer = 0; |
3536
|
0
|
|
|
|
|
|
my $fname; |
3537
|
0
|
|
|
|
|
|
my $ftype = 0; |
3538
|
0
|
|
|
|
|
|
my $fid = 0; |
3539
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
3540
|
0
|
|
|
|
|
|
while (1) |
3541
|
|
|
|
|
|
|
{ |
3542
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
3543
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
3544
|
0
|
|
|
|
|
|
last; |
3545
|
|
|
|
|
|
|
} |
3546
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
3547
|
|
|
|
|
|
|
{ |
3548
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
3549
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
3550
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
3551
|
|
|
|
|
|
|
} else { |
3552
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3553
|
|
|
|
|
|
|
} |
3554
|
0
|
|
|
|
|
|
last; }; |
3555
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
3556
|
0
|
|
|
|
|
|
$self->{operationHandle} = new Thrift::API::HiveClient2::TOperationHandle(); |
3557
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->read($input); |
3558
|
|
|
|
|
|
|
} else { |
3559
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3560
|
|
|
|
|
|
|
} |
3561
|
0
|
|
|
|
|
|
last; }; |
3562
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3563
|
|
|
|
|
|
|
} |
3564
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
3565
|
|
|
|
|
|
|
} |
3566
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
3567
|
0
|
|
|
|
|
|
return $xfer; |
3568
|
|
|
|
|
|
|
} |
3569
|
|
|
|
|
|
|
|
3570
|
|
|
|
|
|
|
sub write { |
3571
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
3572
|
0
|
|
|
|
|
|
my $xfer = 0; |
3573
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TExecuteStatementResp'); |
3574
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
3575
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
3576
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
3577
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3578
|
|
|
|
|
|
|
} |
3579
|
0
|
0
|
|
|
|
|
if (defined $self->{operationHandle}) { |
3580
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationHandle', TType::STRUCT, 2); |
3581
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->write($output); |
3582
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3583
|
|
|
|
|
|
|
} |
3584
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
3585
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
3586
|
0
|
|
|
|
|
|
return $xfer; |
3587
|
|
|
|
|
|
|
} |
3588
|
|
|
|
|
|
|
|
3589
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetTypeInfoReq; |
3590
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetTypeInfoReq::VERSION = '0.021'; |
3591
|
|
|
|
|
|
|
{ |
3592
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetTypeInfoReq::DIST = 'Thrift-API-HiveClient2'; |
3593
|
|
|
|
|
|
|
} |
3594
|
2
|
|
|
2
|
|
14
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
1002
|
|
3595
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetTypeInfoReq->mk_accessors( qw( sessionHandle ) ); |
3596
|
|
|
|
|
|
|
|
3597
|
|
|
|
|
|
|
sub new { |
3598
|
0
|
|
|
0
|
|
|
my $classname = shift; |
3599
|
0
|
|
|
|
|
|
my $self = {}; |
3600
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
3601
|
0
|
|
|
|
|
|
$self->{sessionHandle} = undef; |
3602
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
3603
|
0
|
0
|
|
|
|
|
if (defined $vals->{sessionHandle}) { |
3604
|
0
|
|
|
|
|
|
$self->{sessionHandle} = $vals->{sessionHandle}; |
3605
|
|
|
|
|
|
|
} |
3606
|
|
|
|
|
|
|
} |
3607
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
3608
|
|
|
|
|
|
|
} |
3609
|
|
|
|
|
|
|
|
3610
|
|
|
|
|
|
|
sub getName { |
3611
|
0
|
|
|
0
|
|
|
return 'TGetTypeInfoReq'; |
3612
|
|
|
|
|
|
|
} |
3613
|
|
|
|
|
|
|
|
3614
|
|
|
|
|
|
|
sub read { |
3615
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
3616
|
0
|
|
|
|
|
|
my $xfer = 0; |
3617
|
0
|
|
|
|
|
|
my $fname; |
3618
|
0
|
|
|
|
|
|
my $ftype = 0; |
3619
|
0
|
|
|
|
|
|
my $fid = 0; |
3620
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
3621
|
0
|
|
|
|
|
|
while (1) |
3622
|
|
|
|
|
|
|
{ |
3623
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
3624
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
3625
|
0
|
|
|
|
|
|
last; |
3626
|
|
|
|
|
|
|
} |
3627
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
3628
|
|
|
|
|
|
|
{ |
3629
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
3630
|
0
|
|
|
|
|
|
$self->{sessionHandle} = new Thrift::API::HiveClient2::TSessionHandle(); |
3631
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->read($input); |
3632
|
|
|
|
|
|
|
} else { |
3633
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3634
|
|
|
|
|
|
|
} |
3635
|
0
|
|
|
|
|
|
last; }; |
3636
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3637
|
|
|
|
|
|
|
} |
3638
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
3639
|
|
|
|
|
|
|
} |
3640
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
3641
|
0
|
|
|
|
|
|
return $xfer; |
3642
|
|
|
|
|
|
|
} |
3643
|
|
|
|
|
|
|
|
3644
|
|
|
|
|
|
|
sub write { |
3645
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
3646
|
0
|
|
|
|
|
|
my $xfer = 0; |
3647
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetTypeInfoReq'); |
3648
|
0
|
0
|
|
|
|
|
if (defined $self->{sessionHandle}) { |
3649
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('sessionHandle', TType::STRUCT, 1); |
3650
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->write($output); |
3651
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3652
|
|
|
|
|
|
|
} |
3653
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
3654
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
3655
|
0
|
|
|
|
|
|
return $xfer; |
3656
|
|
|
|
|
|
|
} |
3657
|
|
|
|
|
|
|
|
3658
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetTypeInfoResp; |
3659
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetTypeInfoResp::VERSION = '0.021'; |
3660
|
|
|
|
|
|
|
{ |
3661
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetTypeInfoResp::DIST = 'Thrift-API-HiveClient2'; |
3662
|
|
|
|
|
|
|
} |
3663
|
2
|
|
|
2
|
|
12
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1239
|
|
3664
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetTypeInfoResp->mk_accessors( qw( status operationHandle ) ); |
3665
|
|
|
|
|
|
|
|
3666
|
|
|
|
|
|
|
sub new { |
3667
|
0
|
|
|
0
|
|
|
my $classname = shift; |
3668
|
0
|
|
|
|
|
|
my $self = {}; |
3669
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
3670
|
0
|
|
|
|
|
|
$self->{status} = undef; |
3671
|
0
|
|
|
|
|
|
$self->{operationHandle} = undef; |
3672
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
3673
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
3674
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
3675
|
|
|
|
|
|
|
} |
3676
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationHandle}) { |
3677
|
0
|
|
|
|
|
|
$self->{operationHandle} = $vals->{operationHandle}; |
3678
|
|
|
|
|
|
|
} |
3679
|
|
|
|
|
|
|
} |
3680
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
3681
|
|
|
|
|
|
|
} |
3682
|
|
|
|
|
|
|
|
3683
|
|
|
|
|
|
|
sub getName { |
3684
|
0
|
|
|
0
|
|
|
return 'TGetTypeInfoResp'; |
3685
|
|
|
|
|
|
|
} |
3686
|
|
|
|
|
|
|
|
3687
|
|
|
|
|
|
|
sub read { |
3688
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
3689
|
0
|
|
|
|
|
|
my $xfer = 0; |
3690
|
0
|
|
|
|
|
|
my $fname; |
3691
|
0
|
|
|
|
|
|
my $ftype = 0; |
3692
|
0
|
|
|
|
|
|
my $fid = 0; |
3693
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
3694
|
0
|
|
|
|
|
|
while (1) |
3695
|
|
|
|
|
|
|
{ |
3696
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
3697
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
3698
|
0
|
|
|
|
|
|
last; |
3699
|
|
|
|
|
|
|
} |
3700
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
3701
|
|
|
|
|
|
|
{ |
3702
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
3703
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
3704
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
3705
|
|
|
|
|
|
|
} else { |
3706
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3707
|
|
|
|
|
|
|
} |
3708
|
0
|
|
|
|
|
|
last; }; |
3709
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
3710
|
0
|
|
|
|
|
|
$self->{operationHandle} = new Thrift::API::HiveClient2::TOperationHandle(); |
3711
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->read($input); |
3712
|
|
|
|
|
|
|
} else { |
3713
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3714
|
|
|
|
|
|
|
} |
3715
|
0
|
|
|
|
|
|
last; }; |
3716
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3717
|
|
|
|
|
|
|
} |
3718
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
3719
|
|
|
|
|
|
|
} |
3720
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
3721
|
0
|
|
|
|
|
|
return $xfer; |
3722
|
|
|
|
|
|
|
} |
3723
|
|
|
|
|
|
|
|
3724
|
|
|
|
|
|
|
sub write { |
3725
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
3726
|
0
|
|
|
|
|
|
my $xfer = 0; |
3727
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetTypeInfoResp'); |
3728
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
3729
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
3730
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
3731
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3732
|
|
|
|
|
|
|
} |
3733
|
0
|
0
|
|
|
|
|
if (defined $self->{operationHandle}) { |
3734
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationHandle', TType::STRUCT, 2); |
3735
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->write($output); |
3736
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3737
|
|
|
|
|
|
|
} |
3738
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
3739
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
3740
|
0
|
|
|
|
|
|
return $xfer; |
3741
|
|
|
|
|
|
|
} |
3742
|
|
|
|
|
|
|
|
3743
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetCatalogsReq; |
3744
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetCatalogsReq::VERSION = '0.021'; |
3745
|
|
|
|
|
|
|
{ |
3746
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetCatalogsReq::DIST = 'Thrift-API-HiveClient2'; |
3747
|
|
|
|
|
|
|
} |
3748
|
2
|
|
|
2
|
|
11
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1016
|
|
3749
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetCatalogsReq->mk_accessors( qw( sessionHandle ) ); |
3750
|
|
|
|
|
|
|
|
3751
|
|
|
|
|
|
|
sub new { |
3752
|
0
|
|
|
0
|
|
|
my $classname = shift; |
3753
|
0
|
|
|
|
|
|
my $self = {}; |
3754
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
3755
|
0
|
|
|
|
|
|
$self->{sessionHandle} = undef; |
3756
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
3757
|
0
|
0
|
|
|
|
|
if (defined $vals->{sessionHandle}) { |
3758
|
0
|
|
|
|
|
|
$self->{sessionHandle} = $vals->{sessionHandle}; |
3759
|
|
|
|
|
|
|
} |
3760
|
|
|
|
|
|
|
} |
3761
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
3762
|
|
|
|
|
|
|
} |
3763
|
|
|
|
|
|
|
|
3764
|
|
|
|
|
|
|
sub getName { |
3765
|
0
|
|
|
0
|
|
|
return 'TGetCatalogsReq'; |
3766
|
|
|
|
|
|
|
} |
3767
|
|
|
|
|
|
|
|
3768
|
|
|
|
|
|
|
sub read { |
3769
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
3770
|
0
|
|
|
|
|
|
my $xfer = 0; |
3771
|
0
|
|
|
|
|
|
my $fname; |
3772
|
0
|
|
|
|
|
|
my $ftype = 0; |
3773
|
0
|
|
|
|
|
|
my $fid = 0; |
3774
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
3775
|
0
|
|
|
|
|
|
while (1) |
3776
|
|
|
|
|
|
|
{ |
3777
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
3778
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
3779
|
0
|
|
|
|
|
|
last; |
3780
|
|
|
|
|
|
|
} |
3781
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
3782
|
|
|
|
|
|
|
{ |
3783
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
3784
|
0
|
|
|
|
|
|
$self->{sessionHandle} = new Thrift::API::HiveClient2::TSessionHandle(); |
3785
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->read($input); |
3786
|
|
|
|
|
|
|
} else { |
3787
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3788
|
|
|
|
|
|
|
} |
3789
|
0
|
|
|
|
|
|
last; }; |
3790
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3791
|
|
|
|
|
|
|
} |
3792
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
3793
|
|
|
|
|
|
|
} |
3794
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
3795
|
0
|
|
|
|
|
|
return $xfer; |
3796
|
|
|
|
|
|
|
} |
3797
|
|
|
|
|
|
|
|
3798
|
|
|
|
|
|
|
sub write { |
3799
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
3800
|
0
|
|
|
|
|
|
my $xfer = 0; |
3801
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetCatalogsReq'); |
3802
|
0
|
0
|
|
|
|
|
if (defined $self->{sessionHandle}) { |
3803
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('sessionHandle', TType::STRUCT, 1); |
3804
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->write($output); |
3805
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3806
|
|
|
|
|
|
|
} |
3807
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
3808
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
3809
|
0
|
|
|
|
|
|
return $xfer; |
3810
|
|
|
|
|
|
|
} |
3811
|
|
|
|
|
|
|
|
3812
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetCatalogsResp; |
3813
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetCatalogsResp::VERSION = '0.021'; |
3814
|
|
|
|
|
|
|
{ |
3815
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetCatalogsResp::DIST = 'Thrift-API-HiveClient2'; |
3816
|
|
|
|
|
|
|
} |
3817
|
2
|
|
|
2
|
|
12
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1225
|
|
3818
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetCatalogsResp->mk_accessors( qw( status operationHandle ) ); |
3819
|
|
|
|
|
|
|
|
3820
|
|
|
|
|
|
|
sub new { |
3821
|
0
|
|
|
0
|
|
|
my $classname = shift; |
3822
|
0
|
|
|
|
|
|
my $self = {}; |
3823
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
3824
|
0
|
|
|
|
|
|
$self->{status} = undef; |
3825
|
0
|
|
|
|
|
|
$self->{operationHandle} = undef; |
3826
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
3827
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
3828
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
3829
|
|
|
|
|
|
|
} |
3830
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationHandle}) { |
3831
|
0
|
|
|
|
|
|
$self->{operationHandle} = $vals->{operationHandle}; |
3832
|
|
|
|
|
|
|
} |
3833
|
|
|
|
|
|
|
} |
3834
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
3835
|
|
|
|
|
|
|
} |
3836
|
|
|
|
|
|
|
|
3837
|
|
|
|
|
|
|
sub getName { |
3838
|
0
|
|
|
0
|
|
|
return 'TGetCatalogsResp'; |
3839
|
|
|
|
|
|
|
} |
3840
|
|
|
|
|
|
|
|
3841
|
|
|
|
|
|
|
sub read { |
3842
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
3843
|
0
|
|
|
|
|
|
my $xfer = 0; |
3844
|
0
|
|
|
|
|
|
my $fname; |
3845
|
0
|
|
|
|
|
|
my $ftype = 0; |
3846
|
0
|
|
|
|
|
|
my $fid = 0; |
3847
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
3848
|
0
|
|
|
|
|
|
while (1) |
3849
|
|
|
|
|
|
|
{ |
3850
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
3851
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
3852
|
0
|
|
|
|
|
|
last; |
3853
|
|
|
|
|
|
|
} |
3854
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
3855
|
|
|
|
|
|
|
{ |
3856
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
3857
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
3858
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
3859
|
|
|
|
|
|
|
} else { |
3860
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3861
|
|
|
|
|
|
|
} |
3862
|
0
|
|
|
|
|
|
last; }; |
3863
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
3864
|
0
|
|
|
|
|
|
$self->{operationHandle} = new Thrift::API::HiveClient2::TOperationHandle(); |
3865
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->read($input); |
3866
|
|
|
|
|
|
|
} else { |
3867
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3868
|
|
|
|
|
|
|
} |
3869
|
0
|
|
|
|
|
|
last; }; |
3870
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3871
|
|
|
|
|
|
|
} |
3872
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
3873
|
|
|
|
|
|
|
} |
3874
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
3875
|
0
|
|
|
|
|
|
return $xfer; |
3876
|
|
|
|
|
|
|
} |
3877
|
|
|
|
|
|
|
|
3878
|
|
|
|
|
|
|
sub write { |
3879
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
3880
|
0
|
|
|
|
|
|
my $xfer = 0; |
3881
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetCatalogsResp'); |
3882
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
3883
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
3884
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
3885
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3886
|
|
|
|
|
|
|
} |
3887
|
0
|
0
|
|
|
|
|
if (defined $self->{operationHandle}) { |
3888
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationHandle', TType::STRUCT, 2); |
3889
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->write($output); |
3890
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3891
|
|
|
|
|
|
|
} |
3892
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
3893
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
3894
|
0
|
|
|
|
|
|
return $xfer; |
3895
|
|
|
|
|
|
|
} |
3896
|
|
|
|
|
|
|
|
3897
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetSchemasReq; |
3898
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetSchemasReq::VERSION = '0.021'; |
3899
|
|
|
|
|
|
|
{ |
3900
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetSchemasReq::DIST = 'Thrift-API-HiveClient2'; |
3901
|
|
|
|
|
|
|
} |
3902
|
2
|
|
|
2
|
|
16
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1546
|
|
3903
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetSchemasReq->mk_accessors( qw( sessionHandle catalogName schemaName ) ); |
3904
|
|
|
|
|
|
|
|
3905
|
|
|
|
|
|
|
sub new { |
3906
|
0
|
|
|
0
|
|
|
my $classname = shift; |
3907
|
0
|
|
|
|
|
|
my $self = {}; |
3908
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
3909
|
0
|
|
|
|
|
|
$self->{sessionHandle} = undef; |
3910
|
0
|
|
|
|
|
|
$self->{catalogName} = undef; |
3911
|
0
|
|
|
|
|
|
$self->{schemaName} = undef; |
3912
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
3913
|
0
|
0
|
|
|
|
|
if (defined $vals->{sessionHandle}) { |
3914
|
0
|
|
|
|
|
|
$self->{sessionHandle} = $vals->{sessionHandle}; |
3915
|
|
|
|
|
|
|
} |
3916
|
0
|
0
|
|
|
|
|
if (defined $vals->{catalogName}) { |
3917
|
0
|
|
|
|
|
|
$self->{catalogName} = $vals->{catalogName}; |
3918
|
|
|
|
|
|
|
} |
3919
|
0
|
0
|
|
|
|
|
if (defined $vals->{schemaName}) { |
3920
|
0
|
|
|
|
|
|
$self->{schemaName} = $vals->{schemaName}; |
3921
|
|
|
|
|
|
|
} |
3922
|
|
|
|
|
|
|
} |
3923
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
3924
|
|
|
|
|
|
|
} |
3925
|
|
|
|
|
|
|
|
3926
|
|
|
|
|
|
|
sub getName { |
3927
|
0
|
|
|
0
|
|
|
return 'TGetSchemasReq'; |
3928
|
|
|
|
|
|
|
} |
3929
|
|
|
|
|
|
|
|
3930
|
|
|
|
|
|
|
sub read { |
3931
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
3932
|
0
|
|
|
|
|
|
my $xfer = 0; |
3933
|
0
|
|
|
|
|
|
my $fname; |
3934
|
0
|
|
|
|
|
|
my $ftype = 0; |
3935
|
0
|
|
|
|
|
|
my $fid = 0; |
3936
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
3937
|
0
|
|
|
|
|
|
while (1) |
3938
|
|
|
|
|
|
|
{ |
3939
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
3940
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
3941
|
0
|
|
|
|
|
|
last; |
3942
|
|
|
|
|
|
|
} |
3943
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
3944
|
|
|
|
|
|
|
{ |
3945
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
3946
|
0
|
|
|
|
|
|
$self->{sessionHandle} = new Thrift::API::HiveClient2::TSessionHandle(); |
3947
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->read($input); |
3948
|
|
|
|
|
|
|
} else { |
3949
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3950
|
|
|
|
|
|
|
} |
3951
|
0
|
|
|
|
|
|
last; }; |
3952
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
3953
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{catalogName}); |
3954
|
|
|
|
|
|
|
} else { |
3955
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3956
|
|
|
|
|
|
|
} |
3957
|
0
|
|
|
|
|
|
last; }; |
3958
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
3959
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{schemaName}); |
3960
|
|
|
|
|
|
|
} else { |
3961
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3962
|
|
|
|
|
|
|
} |
3963
|
0
|
|
|
|
|
|
last; }; |
3964
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3965
|
|
|
|
|
|
|
} |
3966
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
3967
|
|
|
|
|
|
|
} |
3968
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
3969
|
0
|
|
|
|
|
|
return $xfer; |
3970
|
|
|
|
|
|
|
} |
3971
|
|
|
|
|
|
|
|
3972
|
|
|
|
|
|
|
sub write { |
3973
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
3974
|
0
|
|
|
|
|
|
my $xfer = 0; |
3975
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetSchemasReq'); |
3976
|
0
|
0
|
|
|
|
|
if (defined $self->{sessionHandle}) { |
3977
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('sessionHandle', TType::STRUCT, 1); |
3978
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->write($output); |
3979
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3980
|
|
|
|
|
|
|
} |
3981
|
0
|
0
|
|
|
|
|
if (defined $self->{catalogName}) { |
3982
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('catalogName', TType::STRING, 2); |
3983
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{catalogName}); |
3984
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3985
|
|
|
|
|
|
|
} |
3986
|
0
|
0
|
|
|
|
|
if (defined $self->{schemaName}) { |
3987
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('schemaName', TType::STRING, 3); |
3988
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{schemaName}); |
3989
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3990
|
|
|
|
|
|
|
} |
3991
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
3992
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
3993
|
0
|
|
|
|
|
|
return $xfer; |
3994
|
|
|
|
|
|
|
} |
3995
|
|
|
|
|
|
|
|
3996
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetSchemasResp; |
3997
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetSchemasResp::VERSION = '0.021'; |
3998
|
|
|
|
|
|
|
{ |
3999
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetSchemasResp::DIST = 'Thrift-API-HiveClient2'; |
4000
|
|
|
|
|
|
|
} |
4001
|
2
|
|
|
2
|
|
13
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
1264
|
|
4002
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetSchemasResp->mk_accessors( qw( status operationHandle ) ); |
4003
|
|
|
|
|
|
|
|
4004
|
|
|
|
|
|
|
sub new { |
4005
|
0
|
|
|
0
|
|
|
my $classname = shift; |
4006
|
0
|
|
|
|
|
|
my $self = {}; |
4007
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
4008
|
0
|
|
|
|
|
|
$self->{status} = undef; |
4009
|
0
|
|
|
|
|
|
$self->{operationHandle} = undef; |
4010
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
4011
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
4012
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
4013
|
|
|
|
|
|
|
} |
4014
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationHandle}) { |
4015
|
0
|
|
|
|
|
|
$self->{operationHandle} = $vals->{operationHandle}; |
4016
|
|
|
|
|
|
|
} |
4017
|
|
|
|
|
|
|
} |
4018
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
4019
|
|
|
|
|
|
|
} |
4020
|
|
|
|
|
|
|
|
4021
|
|
|
|
|
|
|
sub getName { |
4022
|
0
|
|
|
0
|
|
|
return 'TGetSchemasResp'; |
4023
|
|
|
|
|
|
|
} |
4024
|
|
|
|
|
|
|
|
4025
|
|
|
|
|
|
|
sub read { |
4026
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
4027
|
0
|
|
|
|
|
|
my $xfer = 0; |
4028
|
0
|
|
|
|
|
|
my $fname; |
4029
|
0
|
|
|
|
|
|
my $ftype = 0; |
4030
|
0
|
|
|
|
|
|
my $fid = 0; |
4031
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
4032
|
0
|
|
|
|
|
|
while (1) |
4033
|
|
|
|
|
|
|
{ |
4034
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
4035
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
4036
|
0
|
|
|
|
|
|
last; |
4037
|
|
|
|
|
|
|
} |
4038
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
4039
|
|
|
|
|
|
|
{ |
4040
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4041
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
4042
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
4043
|
|
|
|
|
|
|
} else { |
4044
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4045
|
|
|
|
|
|
|
} |
4046
|
0
|
|
|
|
|
|
last; }; |
4047
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4048
|
0
|
|
|
|
|
|
$self->{operationHandle} = new Thrift::API::HiveClient2::TOperationHandle(); |
4049
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->read($input); |
4050
|
|
|
|
|
|
|
} else { |
4051
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4052
|
|
|
|
|
|
|
} |
4053
|
0
|
|
|
|
|
|
last; }; |
4054
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4055
|
|
|
|
|
|
|
} |
4056
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
4057
|
|
|
|
|
|
|
} |
4058
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
4059
|
0
|
|
|
|
|
|
return $xfer; |
4060
|
|
|
|
|
|
|
} |
4061
|
|
|
|
|
|
|
|
4062
|
|
|
|
|
|
|
sub write { |
4063
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
4064
|
0
|
|
|
|
|
|
my $xfer = 0; |
4065
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetSchemasResp'); |
4066
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
4067
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
4068
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
4069
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4070
|
|
|
|
|
|
|
} |
4071
|
0
|
0
|
|
|
|
|
if (defined $self->{operationHandle}) { |
4072
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationHandle', TType::STRUCT, 2); |
4073
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->write($output); |
4074
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4075
|
|
|
|
|
|
|
} |
4076
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
4077
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
4078
|
0
|
|
|
|
|
|
return $xfer; |
4079
|
|
|
|
|
|
|
} |
4080
|
|
|
|
|
|
|
|
4081
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetTablesReq; |
4082
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetTablesReq::VERSION = '0.021'; |
4083
|
|
|
|
|
|
|
{ |
4084
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetTablesReq::DIST = 'Thrift-API-HiveClient2'; |
4085
|
|
|
|
|
|
|
} |
4086
|
2
|
|
|
2
|
|
11
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
2169
|
|
4087
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetTablesReq->mk_accessors( qw( sessionHandle catalogName schemaName tableName tableTypes ) ); |
4088
|
|
|
|
|
|
|
|
4089
|
|
|
|
|
|
|
sub new { |
4090
|
0
|
|
|
0
|
|
|
my $classname = shift; |
4091
|
0
|
|
|
|
|
|
my $self = {}; |
4092
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
4093
|
0
|
|
|
|
|
|
$self->{sessionHandle} = undef; |
4094
|
0
|
|
|
|
|
|
$self->{catalogName} = undef; |
4095
|
0
|
|
|
|
|
|
$self->{schemaName} = undef; |
4096
|
0
|
|
|
|
|
|
$self->{tableName} = undef; |
4097
|
0
|
|
|
|
|
|
$self->{tableTypes} = undef; |
4098
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
4099
|
0
|
0
|
|
|
|
|
if (defined $vals->{sessionHandle}) { |
4100
|
0
|
|
|
|
|
|
$self->{sessionHandle} = $vals->{sessionHandle}; |
4101
|
|
|
|
|
|
|
} |
4102
|
0
|
0
|
|
|
|
|
if (defined $vals->{catalogName}) { |
4103
|
0
|
|
|
|
|
|
$self->{catalogName} = $vals->{catalogName}; |
4104
|
|
|
|
|
|
|
} |
4105
|
0
|
0
|
|
|
|
|
if (defined $vals->{schemaName}) { |
4106
|
0
|
|
|
|
|
|
$self->{schemaName} = $vals->{schemaName}; |
4107
|
|
|
|
|
|
|
} |
4108
|
0
|
0
|
|
|
|
|
if (defined $vals->{tableName}) { |
4109
|
0
|
|
|
|
|
|
$self->{tableName} = $vals->{tableName}; |
4110
|
|
|
|
|
|
|
} |
4111
|
0
|
0
|
|
|
|
|
if (defined $vals->{tableTypes}) { |
4112
|
0
|
|
|
|
|
|
$self->{tableTypes} = $vals->{tableTypes}; |
4113
|
|
|
|
|
|
|
} |
4114
|
|
|
|
|
|
|
} |
4115
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
4116
|
|
|
|
|
|
|
} |
4117
|
|
|
|
|
|
|
|
4118
|
|
|
|
|
|
|
sub getName { |
4119
|
0
|
|
|
0
|
|
|
return 'TGetTablesReq'; |
4120
|
|
|
|
|
|
|
} |
4121
|
|
|
|
|
|
|
|
4122
|
|
|
|
|
|
|
sub read { |
4123
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
4124
|
0
|
|
|
|
|
|
my $xfer = 0; |
4125
|
0
|
|
|
|
|
|
my $fname; |
4126
|
0
|
|
|
|
|
|
my $ftype = 0; |
4127
|
0
|
|
|
|
|
|
my $fid = 0; |
4128
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
4129
|
0
|
|
|
|
|
|
while (1) |
4130
|
|
|
|
|
|
|
{ |
4131
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
4132
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
4133
|
0
|
|
|
|
|
|
last; |
4134
|
|
|
|
|
|
|
} |
4135
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
4136
|
|
|
|
|
|
|
{ |
4137
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4138
|
0
|
|
|
|
|
|
$self->{sessionHandle} = new Thrift::API::HiveClient2::TSessionHandle(); |
4139
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->read($input); |
4140
|
|
|
|
|
|
|
} else { |
4141
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4142
|
|
|
|
|
|
|
} |
4143
|
0
|
|
|
|
|
|
last; }; |
4144
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
4145
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{catalogName}); |
4146
|
|
|
|
|
|
|
} else { |
4147
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4148
|
|
|
|
|
|
|
} |
4149
|
0
|
|
|
|
|
|
last; }; |
4150
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
4151
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{schemaName}); |
4152
|
|
|
|
|
|
|
} else { |
4153
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4154
|
|
|
|
|
|
|
} |
4155
|
0
|
|
|
|
|
|
last; }; |
4156
|
0
|
0
|
|
|
|
|
/^4$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
4157
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{tableName}); |
4158
|
|
|
|
|
|
|
} else { |
4159
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4160
|
|
|
|
|
|
|
} |
4161
|
0
|
|
|
|
|
|
last; }; |
4162
|
0
|
0
|
|
|
|
|
/^5$/ && do{ if ($ftype == TType::LIST) { |
|
0
|
0
|
|
|
|
|
|
4163
|
|
|
|
|
|
|
{ |
4164
|
0
|
|
|
|
|
|
my $_size136 = 0; |
|
0
|
|
|
|
|
|
|
4165
|
0
|
|
|
|
|
|
$self->{tableTypes} = []; |
4166
|
0
|
|
|
|
|
|
my $_etype139 = 0; |
4167
|
0
|
|
|
|
|
|
$xfer += $input->readListBegin(\$_etype139, \$_size136); |
4168
|
0
|
|
|
|
|
|
for (my $_i140 = 0; $_i140 < $_size136; ++$_i140) |
4169
|
|
|
|
|
|
|
{ |
4170
|
0
|
|
|
|
|
|
my $elem141 = undef; |
4171
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$elem141); |
4172
|
0
|
|
|
|
|
|
push(@{$self->{tableTypes}},$elem141); |
|
0
|
|
|
|
|
|
|
4173
|
|
|
|
|
|
|
} |
4174
|
0
|
|
|
|
|
|
$xfer += $input->readListEnd(); |
4175
|
|
|
|
|
|
|
} |
4176
|
|
|
|
|
|
|
} else { |
4177
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4178
|
|
|
|
|
|
|
} |
4179
|
0
|
|
|
|
|
|
last; }; |
4180
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4181
|
|
|
|
|
|
|
} |
4182
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
4183
|
|
|
|
|
|
|
} |
4184
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
4185
|
0
|
|
|
|
|
|
return $xfer; |
4186
|
|
|
|
|
|
|
} |
4187
|
|
|
|
|
|
|
|
4188
|
|
|
|
|
|
|
sub write { |
4189
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
4190
|
0
|
|
|
|
|
|
my $xfer = 0; |
4191
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetTablesReq'); |
4192
|
0
|
0
|
|
|
|
|
if (defined $self->{sessionHandle}) { |
4193
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('sessionHandle', TType::STRUCT, 1); |
4194
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->write($output); |
4195
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4196
|
|
|
|
|
|
|
} |
4197
|
0
|
0
|
|
|
|
|
if (defined $self->{catalogName}) { |
4198
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('catalogName', TType::STRING, 2); |
4199
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{catalogName}); |
4200
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4201
|
|
|
|
|
|
|
} |
4202
|
0
|
0
|
|
|
|
|
if (defined $self->{schemaName}) { |
4203
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('schemaName', TType::STRING, 3); |
4204
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{schemaName}); |
4205
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4206
|
|
|
|
|
|
|
} |
4207
|
0
|
0
|
|
|
|
|
if (defined $self->{tableName}) { |
4208
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('tableName', TType::STRING, 4); |
4209
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{tableName}); |
4210
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4211
|
|
|
|
|
|
|
} |
4212
|
0
|
0
|
|
|
|
|
if (defined $self->{tableTypes}) { |
4213
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('tableTypes', TType::LIST, 5); |
4214
|
|
|
|
|
|
|
{ |
4215
|
0
|
|
|
|
|
|
$xfer += $output->writeListBegin(TType::STRING, scalar(@{$self->{tableTypes}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
4216
|
|
|
|
|
|
|
{ |
4217
|
0
|
|
|
|
|
|
foreach my $iter142 (@{$self->{tableTypes}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
4218
|
|
|
|
|
|
|
{ |
4219
|
0
|
|
|
|
|
|
$xfer += $output->writeString($iter142); |
4220
|
|
|
|
|
|
|
} |
4221
|
|
|
|
|
|
|
} |
4222
|
0
|
|
|
|
|
|
$xfer += $output->writeListEnd(); |
4223
|
|
|
|
|
|
|
} |
4224
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4225
|
|
|
|
|
|
|
} |
4226
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
4227
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
4228
|
0
|
|
|
|
|
|
return $xfer; |
4229
|
|
|
|
|
|
|
} |
4230
|
|
|
|
|
|
|
|
4231
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetTablesResp; |
4232
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetTablesResp::VERSION = '0.021'; |
4233
|
|
|
|
|
|
|
{ |
4234
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetTablesResp::DIST = 'Thrift-API-HiveClient2'; |
4235
|
|
|
|
|
|
|
} |
4236
|
2
|
|
|
2
|
|
12
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1264
|
|
4237
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetTablesResp->mk_accessors( qw( status operationHandle ) ); |
4238
|
|
|
|
|
|
|
|
4239
|
|
|
|
|
|
|
sub new { |
4240
|
0
|
|
|
0
|
|
|
my $classname = shift; |
4241
|
0
|
|
|
|
|
|
my $self = {}; |
4242
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
4243
|
0
|
|
|
|
|
|
$self->{status} = undef; |
4244
|
0
|
|
|
|
|
|
$self->{operationHandle} = undef; |
4245
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
4246
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
4247
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
4248
|
|
|
|
|
|
|
} |
4249
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationHandle}) { |
4250
|
0
|
|
|
|
|
|
$self->{operationHandle} = $vals->{operationHandle}; |
4251
|
|
|
|
|
|
|
} |
4252
|
|
|
|
|
|
|
} |
4253
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
4254
|
|
|
|
|
|
|
} |
4255
|
|
|
|
|
|
|
|
4256
|
|
|
|
|
|
|
sub getName { |
4257
|
0
|
|
|
0
|
|
|
return 'TGetTablesResp'; |
4258
|
|
|
|
|
|
|
} |
4259
|
|
|
|
|
|
|
|
4260
|
|
|
|
|
|
|
sub read { |
4261
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
4262
|
0
|
|
|
|
|
|
my $xfer = 0; |
4263
|
0
|
|
|
|
|
|
my $fname; |
4264
|
0
|
|
|
|
|
|
my $ftype = 0; |
4265
|
0
|
|
|
|
|
|
my $fid = 0; |
4266
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
4267
|
0
|
|
|
|
|
|
while (1) |
4268
|
|
|
|
|
|
|
{ |
4269
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
4270
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
4271
|
0
|
|
|
|
|
|
last; |
4272
|
|
|
|
|
|
|
} |
4273
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
4274
|
|
|
|
|
|
|
{ |
4275
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4276
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
4277
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
4278
|
|
|
|
|
|
|
} else { |
4279
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4280
|
|
|
|
|
|
|
} |
4281
|
0
|
|
|
|
|
|
last; }; |
4282
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4283
|
0
|
|
|
|
|
|
$self->{operationHandle} = new Thrift::API::HiveClient2::TOperationHandle(); |
4284
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->read($input); |
4285
|
|
|
|
|
|
|
} else { |
4286
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4287
|
|
|
|
|
|
|
} |
4288
|
0
|
|
|
|
|
|
last; }; |
4289
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4290
|
|
|
|
|
|
|
} |
4291
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
4292
|
|
|
|
|
|
|
} |
4293
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
4294
|
0
|
|
|
|
|
|
return $xfer; |
4295
|
|
|
|
|
|
|
} |
4296
|
|
|
|
|
|
|
|
4297
|
|
|
|
|
|
|
sub write { |
4298
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
4299
|
0
|
|
|
|
|
|
my $xfer = 0; |
4300
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetTablesResp'); |
4301
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
4302
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
4303
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
4304
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4305
|
|
|
|
|
|
|
} |
4306
|
0
|
0
|
|
|
|
|
if (defined $self->{operationHandle}) { |
4307
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationHandle', TType::STRUCT, 2); |
4308
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->write($output); |
4309
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4310
|
|
|
|
|
|
|
} |
4311
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
4312
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
4313
|
0
|
|
|
|
|
|
return $xfer; |
4314
|
|
|
|
|
|
|
} |
4315
|
|
|
|
|
|
|
|
4316
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetTableTypesReq; |
4317
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetTableTypesReq::VERSION = '0.021'; |
4318
|
|
|
|
|
|
|
{ |
4319
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetTableTypesReq::DIST = 'Thrift-API-HiveClient2'; |
4320
|
|
|
|
|
|
|
} |
4321
|
2
|
|
|
2
|
|
13
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1003
|
|
4322
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetTableTypesReq->mk_accessors( qw( sessionHandle ) ); |
4323
|
|
|
|
|
|
|
|
4324
|
|
|
|
|
|
|
sub new { |
4325
|
0
|
|
|
0
|
|
|
my $classname = shift; |
4326
|
0
|
|
|
|
|
|
my $self = {}; |
4327
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
4328
|
0
|
|
|
|
|
|
$self->{sessionHandle} = undef; |
4329
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
4330
|
0
|
0
|
|
|
|
|
if (defined $vals->{sessionHandle}) { |
4331
|
0
|
|
|
|
|
|
$self->{sessionHandle} = $vals->{sessionHandle}; |
4332
|
|
|
|
|
|
|
} |
4333
|
|
|
|
|
|
|
} |
4334
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
4335
|
|
|
|
|
|
|
} |
4336
|
|
|
|
|
|
|
|
4337
|
|
|
|
|
|
|
sub getName { |
4338
|
0
|
|
|
0
|
|
|
return 'TGetTableTypesReq'; |
4339
|
|
|
|
|
|
|
} |
4340
|
|
|
|
|
|
|
|
4341
|
|
|
|
|
|
|
sub read { |
4342
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
4343
|
0
|
|
|
|
|
|
my $xfer = 0; |
4344
|
0
|
|
|
|
|
|
my $fname; |
4345
|
0
|
|
|
|
|
|
my $ftype = 0; |
4346
|
0
|
|
|
|
|
|
my $fid = 0; |
4347
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
4348
|
0
|
|
|
|
|
|
while (1) |
4349
|
|
|
|
|
|
|
{ |
4350
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
4351
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
4352
|
0
|
|
|
|
|
|
last; |
4353
|
|
|
|
|
|
|
} |
4354
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
4355
|
|
|
|
|
|
|
{ |
4356
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4357
|
0
|
|
|
|
|
|
$self->{sessionHandle} = new Thrift::API::HiveClient2::TSessionHandle(); |
4358
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->read($input); |
4359
|
|
|
|
|
|
|
} else { |
4360
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4361
|
|
|
|
|
|
|
} |
4362
|
0
|
|
|
|
|
|
last; }; |
4363
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4364
|
|
|
|
|
|
|
} |
4365
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
4366
|
|
|
|
|
|
|
} |
4367
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
4368
|
0
|
|
|
|
|
|
return $xfer; |
4369
|
|
|
|
|
|
|
} |
4370
|
|
|
|
|
|
|
|
4371
|
|
|
|
|
|
|
sub write { |
4372
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
4373
|
0
|
|
|
|
|
|
my $xfer = 0; |
4374
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetTableTypesReq'); |
4375
|
0
|
0
|
|
|
|
|
if (defined $self->{sessionHandle}) { |
4376
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('sessionHandle', TType::STRUCT, 1); |
4377
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->write($output); |
4378
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4379
|
|
|
|
|
|
|
} |
4380
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
4381
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
4382
|
0
|
|
|
|
|
|
return $xfer; |
4383
|
|
|
|
|
|
|
} |
4384
|
|
|
|
|
|
|
|
4385
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetTableTypesResp; |
4386
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetTableTypesResp::VERSION = '0.021'; |
4387
|
|
|
|
|
|
|
{ |
4388
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetTableTypesResp::DIST = 'Thrift-API-HiveClient2'; |
4389
|
|
|
|
|
|
|
} |
4390
|
2
|
|
|
2
|
|
13
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
1236
|
|
4391
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetTableTypesResp->mk_accessors( qw( status operationHandle ) ); |
4392
|
|
|
|
|
|
|
|
4393
|
|
|
|
|
|
|
sub new { |
4394
|
0
|
|
|
0
|
|
|
my $classname = shift; |
4395
|
0
|
|
|
|
|
|
my $self = {}; |
4396
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
4397
|
0
|
|
|
|
|
|
$self->{status} = undef; |
4398
|
0
|
|
|
|
|
|
$self->{operationHandle} = undef; |
4399
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
4400
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
4401
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
4402
|
|
|
|
|
|
|
} |
4403
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationHandle}) { |
4404
|
0
|
|
|
|
|
|
$self->{operationHandle} = $vals->{operationHandle}; |
4405
|
|
|
|
|
|
|
} |
4406
|
|
|
|
|
|
|
} |
4407
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
4408
|
|
|
|
|
|
|
} |
4409
|
|
|
|
|
|
|
|
4410
|
|
|
|
|
|
|
sub getName { |
4411
|
0
|
|
|
0
|
|
|
return 'TGetTableTypesResp'; |
4412
|
|
|
|
|
|
|
} |
4413
|
|
|
|
|
|
|
|
4414
|
|
|
|
|
|
|
sub read { |
4415
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
4416
|
0
|
|
|
|
|
|
my $xfer = 0; |
4417
|
0
|
|
|
|
|
|
my $fname; |
4418
|
0
|
|
|
|
|
|
my $ftype = 0; |
4419
|
0
|
|
|
|
|
|
my $fid = 0; |
4420
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
4421
|
0
|
|
|
|
|
|
while (1) |
4422
|
|
|
|
|
|
|
{ |
4423
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
4424
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
4425
|
0
|
|
|
|
|
|
last; |
4426
|
|
|
|
|
|
|
} |
4427
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
4428
|
|
|
|
|
|
|
{ |
4429
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4430
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
4431
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
4432
|
|
|
|
|
|
|
} else { |
4433
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4434
|
|
|
|
|
|
|
} |
4435
|
0
|
|
|
|
|
|
last; }; |
4436
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4437
|
0
|
|
|
|
|
|
$self->{operationHandle} = new Thrift::API::HiveClient2::TOperationHandle(); |
4438
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->read($input); |
4439
|
|
|
|
|
|
|
} else { |
4440
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4441
|
|
|
|
|
|
|
} |
4442
|
0
|
|
|
|
|
|
last; }; |
4443
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4444
|
|
|
|
|
|
|
} |
4445
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
4446
|
|
|
|
|
|
|
} |
4447
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
4448
|
0
|
|
|
|
|
|
return $xfer; |
4449
|
|
|
|
|
|
|
} |
4450
|
|
|
|
|
|
|
|
4451
|
|
|
|
|
|
|
sub write { |
4452
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
4453
|
0
|
|
|
|
|
|
my $xfer = 0; |
4454
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetTableTypesResp'); |
4455
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
4456
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
4457
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
4458
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4459
|
|
|
|
|
|
|
} |
4460
|
0
|
0
|
|
|
|
|
if (defined $self->{operationHandle}) { |
4461
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationHandle', TType::STRUCT, 2); |
4462
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->write($output); |
4463
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4464
|
|
|
|
|
|
|
} |
4465
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
4466
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
4467
|
0
|
|
|
|
|
|
return $xfer; |
4468
|
|
|
|
|
|
|
} |
4469
|
|
|
|
|
|
|
|
4470
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetColumnsReq; |
4471
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetColumnsReq::VERSION = '0.021'; |
4472
|
|
|
|
|
|
|
{ |
4473
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetColumnsReq::DIST = 'Thrift-API-HiveClient2'; |
4474
|
|
|
|
|
|
|
} |
4475
|
2
|
|
|
2
|
|
12
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1901
|
|
4476
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetColumnsReq->mk_accessors( qw( sessionHandle catalogName schemaName tableName columnName ) ); |
4477
|
|
|
|
|
|
|
|
4478
|
|
|
|
|
|
|
sub new { |
4479
|
0
|
|
|
0
|
|
|
my $classname = shift; |
4480
|
0
|
|
|
|
|
|
my $self = {}; |
4481
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
4482
|
0
|
|
|
|
|
|
$self->{sessionHandle} = undef; |
4483
|
0
|
|
|
|
|
|
$self->{catalogName} = undef; |
4484
|
0
|
|
|
|
|
|
$self->{schemaName} = undef; |
4485
|
0
|
|
|
|
|
|
$self->{tableName} = undef; |
4486
|
0
|
|
|
|
|
|
$self->{columnName} = undef; |
4487
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
4488
|
0
|
0
|
|
|
|
|
if (defined $vals->{sessionHandle}) { |
4489
|
0
|
|
|
|
|
|
$self->{sessionHandle} = $vals->{sessionHandle}; |
4490
|
|
|
|
|
|
|
} |
4491
|
0
|
0
|
|
|
|
|
if (defined $vals->{catalogName}) { |
4492
|
0
|
|
|
|
|
|
$self->{catalogName} = $vals->{catalogName}; |
4493
|
|
|
|
|
|
|
} |
4494
|
0
|
0
|
|
|
|
|
if (defined $vals->{schemaName}) { |
4495
|
0
|
|
|
|
|
|
$self->{schemaName} = $vals->{schemaName}; |
4496
|
|
|
|
|
|
|
} |
4497
|
0
|
0
|
|
|
|
|
if (defined $vals->{tableName}) { |
4498
|
0
|
|
|
|
|
|
$self->{tableName} = $vals->{tableName}; |
4499
|
|
|
|
|
|
|
} |
4500
|
0
|
0
|
|
|
|
|
if (defined $vals->{columnName}) { |
4501
|
0
|
|
|
|
|
|
$self->{columnName} = $vals->{columnName}; |
4502
|
|
|
|
|
|
|
} |
4503
|
|
|
|
|
|
|
} |
4504
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
4505
|
|
|
|
|
|
|
} |
4506
|
|
|
|
|
|
|
|
4507
|
|
|
|
|
|
|
sub getName { |
4508
|
0
|
|
|
0
|
|
|
return 'TGetColumnsReq'; |
4509
|
|
|
|
|
|
|
} |
4510
|
|
|
|
|
|
|
|
4511
|
|
|
|
|
|
|
sub read { |
4512
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
4513
|
0
|
|
|
|
|
|
my $xfer = 0; |
4514
|
0
|
|
|
|
|
|
my $fname; |
4515
|
0
|
|
|
|
|
|
my $ftype = 0; |
4516
|
0
|
|
|
|
|
|
my $fid = 0; |
4517
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
4518
|
0
|
|
|
|
|
|
while (1) |
4519
|
|
|
|
|
|
|
{ |
4520
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
4521
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
4522
|
0
|
|
|
|
|
|
last; |
4523
|
|
|
|
|
|
|
} |
4524
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
4525
|
|
|
|
|
|
|
{ |
4526
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4527
|
0
|
|
|
|
|
|
$self->{sessionHandle} = new Thrift::API::HiveClient2::TSessionHandle(); |
4528
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->read($input); |
4529
|
|
|
|
|
|
|
} else { |
4530
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4531
|
|
|
|
|
|
|
} |
4532
|
0
|
|
|
|
|
|
last; }; |
4533
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
4534
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{catalogName}); |
4535
|
|
|
|
|
|
|
} else { |
4536
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4537
|
|
|
|
|
|
|
} |
4538
|
0
|
|
|
|
|
|
last; }; |
4539
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
4540
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{schemaName}); |
4541
|
|
|
|
|
|
|
} else { |
4542
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4543
|
|
|
|
|
|
|
} |
4544
|
0
|
|
|
|
|
|
last; }; |
4545
|
0
|
0
|
|
|
|
|
/^4$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
4546
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{tableName}); |
4547
|
|
|
|
|
|
|
} else { |
4548
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4549
|
|
|
|
|
|
|
} |
4550
|
0
|
|
|
|
|
|
last; }; |
4551
|
0
|
0
|
|
|
|
|
/^5$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
4552
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{columnName}); |
4553
|
|
|
|
|
|
|
} else { |
4554
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4555
|
|
|
|
|
|
|
} |
4556
|
0
|
|
|
|
|
|
last; }; |
4557
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4558
|
|
|
|
|
|
|
} |
4559
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
4560
|
|
|
|
|
|
|
} |
4561
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
4562
|
0
|
|
|
|
|
|
return $xfer; |
4563
|
|
|
|
|
|
|
} |
4564
|
|
|
|
|
|
|
|
4565
|
|
|
|
|
|
|
sub write { |
4566
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
4567
|
0
|
|
|
|
|
|
my $xfer = 0; |
4568
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetColumnsReq'); |
4569
|
0
|
0
|
|
|
|
|
if (defined $self->{sessionHandle}) { |
4570
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('sessionHandle', TType::STRUCT, 1); |
4571
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->write($output); |
4572
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4573
|
|
|
|
|
|
|
} |
4574
|
0
|
0
|
|
|
|
|
if (defined $self->{catalogName}) { |
4575
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('catalogName', TType::STRING, 2); |
4576
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{catalogName}); |
4577
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4578
|
|
|
|
|
|
|
} |
4579
|
0
|
0
|
|
|
|
|
if (defined $self->{schemaName}) { |
4580
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('schemaName', TType::STRING, 3); |
4581
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{schemaName}); |
4582
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4583
|
|
|
|
|
|
|
} |
4584
|
0
|
0
|
|
|
|
|
if (defined $self->{tableName}) { |
4585
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('tableName', TType::STRING, 4); |
4586
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{tableName}); |
4587
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4588
|
|
|
|
|
|
|
} |
4589
|
0
|
0
|
|
|
|
|
if (defined $self->{columnName}) { |
4590
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('columnName', TType::STRING, 5); |
4591
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{columnName}); |
4592
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4593
|
|
|
|
|
|
|
} |
4594
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
4595
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
4596
|
0
|
|
|
|
|
|
return $xfer; |
4597
|
|
|
|
|
|
|
} |
4598
|
|
|
|
|
|
|
|
4599
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetColumnsResp; |
4600
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetColumnsResp::VERSION = '0.021'; |
4601
|
|
|
|
|
|
|
{ |
4602
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetColumnsResp::DIST = 'Thrift-API-HiveClient2'; |
4603
|
|
|
|
|
|
|
} |
4604
|
2
|
|
|
2
|
|
12
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
1450
|
|
4605
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetColumnsResp->mk_accessors( qw( status operationHandle ) ); |
4606
|
|
|
|
|
|
|
|
4607
|
|
|
|
|
|
|
sub new { |
4608
|
0
|
|
|
0
|
|
|
my $classname = shift; |
4609
|
0
|
|
|
|
|
|
my $self = {}; |
4610
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
4611
|
0
|
|
|
|
|
|
$self->{status} = undef; |
4612
|
0
|
|
|
|
|
|
$self->{operationHandle} = undef; |
4613
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
4614
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
4615
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
4616
|
|
|
|
|
|
|
} |
4617
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationHandle}) { |
4618
|
0
|
|
|
|
|
|
$self->{operationHandle} = $vals->{operationHandle}; |
4619
|
|
|
|
|
|
|
} |
4620
|
|
|
|
|
|
|
} |
4621
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
4622
|
|
|
|
|
|
|
} |
4623
|
|
|
|
|
|
|
|
4624
|
|
|
|
|
|
|
sub getName { |
4625
|
0
|
|
|
0
|
|
|
return 'TGetColumnsResp'; |
4626
|
|
|
|
|
|
|
} |
4627
|
|
|
|
|
|
|
|
4628
|
|
|
|
|
|
|
sub read { |
4629
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
4630
|
0
|
|
|
|
|
|
my $xfer = 0; |
4631
|
0
|
|
|
|
|
|
my $fname; |
4632
|
0
|
|
|
|
|
|
my $ftype = 0; |
4633
|
0
|
|
|
|
|
|
my $fid = 0; |
4634
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
4635
|
0
|
|
|
|
|
|
while (1) |
4636
|
|
|
|
|
|
|
{ |
4637
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
4638
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
4639
|
0
|
|
|
|
|
|
last; |
4640
|
|
|
|
|
|
|
} |
4641
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
4642
|
|
|
|
|
|
|
{ |
4643
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4644
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
4645
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
4646
|
|
|
|
|
|
|
} else { |
4647
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4648
|
|
|
|
|
|
|
} |
4649
|
0
|
|
|
|
|
|
last; }; |
4650
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4651
|
0
|
|
|
|
|
|
$self->{operationHandle} = new Thrift::API::HiveClient2::TOperationHandle(); |
4652
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->read($input); |
4653
|
|
|
|
|
|
|
} else { |
4654
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4655
|
|
|
|
|
|
|
} |
4656
|
0
|
|
|
|
|
|
last; }; |
4657
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4658
|
|
|
|
|
|
|
} |
4659
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
4660
|
|
|
|
|
|
|
} |
4661
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
4662
|
0
|
|
|
|
|
|
return $xfer; |
4663
|
|
|
|
|
|
|
} |
4664
|
|
|
|
|
|
|
|
4665
|
|
|
|
|
|
|
sub write { |
4666
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
4667
|
0
|
|
|
|
|
|
my $xfer = 0; |
4668
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetColumnsResp'); |
4669
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
4670
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
4671
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
4672
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4673
|
|
|
|
|
|
|
} |
4674
|
0
|
0
|
|
|
|
|
if (defined $self->{operationHandle}) { |
4675
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationHandle', TType::STRUCT, 2); |
4676
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->write($output); |
4677
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4678
|
|
|
|
|
|
|
} |
4679
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
4680
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
4681
|
0
|
|
|
|
|
|
return $xfer; |
4682
|
|
|
|
|
|
|
} |
4683
|
|
|
|
|
|
|
|
4684
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetFunctionsReq; |
4685
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetFunctionsReq::VERSION = '0.021'; |
4686
|
|
|
|
|
|
|
{ |
4687
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetFunctionsReq::DIST = 'Thrift-API-HiveClient2'; |
4688
|
|
|
|
|
|
|
} |
4689
|
2
|
|
|
2
|
|
13
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
1687
|
|
4690
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetFunctionsReq->mk_accessors( qw( sessionHandle catalogName schemaName functionName ) ); |
4691
|
|
|
|
|
|
|
|
4692
|
|
|
|
|
|
|
sub new { |
4693
|
0
|
|
|
0
|
|
|
my $classname = shift; |
4694
|
0
|
|
|
|
|
|
my $self = {}; |
4695
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
4696
|
0
|
|
|
|
|
|
$self->{sessionHandle} = undef; |
4697
|
0
|
|
|
|
|
|
$self->{catalogName} = undef; |
4698
|
0
|
|
|
|
|
|
$self->{schemaName} = undef; |
4699
|
0
|
|
|
|
|
|
$self->{functionName} = undef; |
4700
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
4701
|
0
|
0
|
|
|
|
|
if (defined $vals->{sessionHandle}) { |
4702
|
0
|
|
|
|
|
|
$self->{sessionHandle} = $vals->{sessionHandle}; |
4703
|
|
|
|
|
|
|
} |
4704
|
0
|
0
|
|
|
|
|
if (defined $vals->{catalogName}) { |
4705
|
0
|
|
|
|
|
|
$self->{catalogName} = $vals->{catalogName}; |
4706
|
|
|
|
|
|
|
} |
4707
|
0
|
0
|
|
|
|
|
if (defined $vals->{schemaName}) { |
4708
|
0
|
|
|
|
|
|
$self->{schemaName} = $vals->{schemaName}; |
4709
|
|
|
|
|
|
|
} |
4710
|
0
|
0
|
|
|
|
|
if (defined $vals->{functionName}) { |
4711
|
0
|
|
|
|
|
|
$self->{functionName} = $vals->{functionName}; |
4712
|
|
|
|
|
|
|
} |
4713
|
|
|
|
|
|
|
} |
4714
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
4715
|
|
|
|
|
|
|
} |
4716
|
|
|
|
|
|
|
|
4717
|
|
|
|
|
|
|
sub getName { |
4718
|
0
|
|
|
0
|
|
|
return 'TGetFunctionsReq'; |
4719
|
|
|
|
|
|
|
} |
4720
|
|
|
|
|
|
|
|
4721
|
|
|
|
|
|
|
sub read { |
4722
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
4723
|
0
|
|
|
|
|
|
my $xfer = 0; |
4724
|
0
|
|
|
|
|
|
my $fname; |
4725
|
0
|
|
|
|
|
|
my $ftype = 0; |
4726
|
0
|
|
|
|
|
|
my $fid = 0; |
4727
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
4728
|
0
|
|
|
|
|
|
while (1) |
4729
|
|
|
|
|
|
|
{ |
4730
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
4731
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
4732
|
0
|
|
|
|
|
|
last; |
4733
|
|
|
|
|
|
|
} |
4734
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
4735
|
|
|
|
|
|
|
{ |
4736
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4737
|
0
|
|
|
|
|
|
$self->{sessionHandle} = new Thrift::API::HiveClient2::TSessionHandle(); |
4738
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->read($input); |
4739
|
|
|
|
|
|
|
} else { |
4740
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4741
|
|
|
|
|
|
|
} |
4742
|
0
|
|
|
|
|
|
last; }; |
4743
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
4744
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{catalogName}); |
4745
|
|
|
|
|
|
|
} else { |
4746
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4747
|
|
|
|
|
|
|
} |
4748
|
0
|
|
|
|
|
|
last; }; |
4749
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
4750
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{schemaName}); |
4751
|
|
|
|
|
|
|
} else { |
4752
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4753
|
|
|
|
|
|
|
} |
4754
|
0
|
|
|
|
|
|
last; }; |
4755
|
0
|
0
|
|
|
|
|
/^4$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
4756
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{functionName}); |
4757
|
|
|
|
|
|
|
} else { |
4758
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4759
|
|
|
|
|
|
|
} |
4760
|
0
|
|
|
|
|
|
last; }; |
4761
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4762
|
|
|
|
|
|
|
} |
4763
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
4764
|
|
|
|
|
|
|
} |
4765
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
4766
|
0
|
|
|
|
|
|
return $xfer; |
4767
|
|
|
|
|
|
|
} |
4768
|
|
|
|
|
|
|
|
4769
|
|
|
|
|
|
|
sub write { |
4770
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
4771
|
0
|
|
|
|
|
|
my $xfer = 0; |
4772
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetFunctionsReq'); |
4773
|
0
|
0
|
|
|
|
|
if (defined $self->{sessionHandle}) { |
4774
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('sessionHandle', TType::STRUCT, 1); |
4775
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->write($output); |
4776
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4777
|
|
|
|
|
|
|
} |
4778
|
0
|
0
|
|
|
|
|
if (defined $self->{catalogName}) { |
4779
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('catalogName', TType::STRING, 2); |
4780
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{catalogName}); |
4781
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4782
|
|
|
|
|
|
|
} |
4783
|
0
|
0
|
|
|
|
|
if (defined $self->{schemaName}) { |
4784
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('schemaName', TType::STRING, 3); |
4785
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{schemaName}); |
4786
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4787
|
|
|
|
|
|
|
} |
4788
|
0
|
0
|
|
|
|
|
if (defined $self->{functionName}) { |
4789
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('functionName', TType::STRING, 4); |
4790
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{functionName}); |
4791
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4792
|
|
|
|
|
|
|
} |
4793
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
4794
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
4795
|
0
|
|
|
|
|
|
return $xfer; |
4796
|
|
|
|
|
|
|
} |
4797
|
|
|
|
|
|
|
|
4798
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetFunctionsResp; |
4799
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetFunctionsResp::VERSION = '0.021'; |
4800
|
|
|
|
|
|
|
{ |
4801
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetFunctionsResp::DIST = 'Thrift-API-HiveClient2'; |
4802
|
|
|
|
|
|
|
} |
4803
|
2
|
|
|
2
|
|
23
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1273
|
|
4804
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetFunctionsResp->mk_accessors( qw( status operationHandle ) ); |
4805
|
|
|
|
|
|
|
|
4806
|
|
|
|
|
|
|
sub new { |
4807
|
0
|
|
|
0
|
|
|
my $classname = shift; |
4808
|
0
|
|
|
|
|
|
my $self = {}; |
4809
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
4810
|
0
|
|
|
|
|
|
$self->{status} = undef; |
4811
|
0
|
|
|
|
|
|
$self->{operationHandle} = undef; |
4812
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
4813
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
4814
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
4815
|
|
|
|
|
|
|
} |
4816
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationHandle}) { |
4817
|
0
|
|
|
|
|
|
$self->{operationHandle} = $vals->{operationHandle}; |
4818
|
|
|
|
|
|
|
} |
4819
|
|
|
|
|
|
|
} |
4820
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
4821
|
|
|
|
|
|
|
} |
4822
|
|
|
|
|
|
|
|
4823
|
|
|
|
|
|
|
sub getName { |
4824
|
0
|
|
|
0
|
|
|
return 'TGetFunctionsResp'; |
4825
|
|
|
|
|
|
|
} |
4826
|
|
|
|
|
|
|
|
4827
|
|
|
|
|
|
|
sub read { |
4828
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
4829
|
0
|
|
|
|
|
|
my $xfer = 0; |
4830
|
0
|
|
|
|
|
|
my $fname; |
4831
|
0
|
|
|
|
|
|
my $ftype = 0; |
4832
|
0
|
|
|
|
|
|
my $fid = 0; |
4833
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
4834
|
0
|
|
|
|
|
|
while (1) |
4835
|
|
|
|
|
|
|
{ |
4836
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
4837
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
4838
|
0
|
|
|
|
|
|
last; |
4839
|
|
|
|
|
|
|
} |
4840
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
4841
|
|
|
|
|
|
|
{ |
4842
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4843
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
4844
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
4845
|
|
|
|
|
|
|
} else { |
4846
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4847
|
|
|
|
|
|
|
} |
4848
|
0
|
|
|
|
|
|
last; }; |
4849
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4850
|
0
|
|
|
|
|
|
$self->{operationHandle} = new Thrift::API::HiveClient2::TOperationHandle(); |
4851
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->read($input); |
4852
|
|
|
|
|
|
|
} else { |
4853
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4854
|
|
|
|
|
|
|
} |
4855
|
0
|
|
|
|
|
|
last; }; |
4856
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4857
|
|
|
|
|
|
|
} |
4858
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
4859
|
|
|
|
|
|
|
} |
4860
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
4861
|
0
|
|
|
|
|
|
return $xfer; |
4862
|
|
|
|
|
|
|
} |
4863
|
|
|
|
|
|
|
|
4864
|
|
|
|
|
|
|
sub write { |
4865
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
4866
|
0
|
|
|
|
|
|
my $xfer = 0; |
4867
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetFunctionsResp'); |
4868
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
4869
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
4870
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
4871
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4872
|
|
|
|
|
|
|
} |
4873
|
0
|
0
|
|
|
|
|
if (defined $self->{operationHandle}) { |
4874
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationHandle', TType::STRUCT, 2); |
4875
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->write($output); |
4876
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4877
|
|
|
|
|
|
|
} |
4878
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
4879
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
4880
|
0
|
|
|
|
|
|
return $xfer; |
4881
|
|
|
|
|
|
|
} |
4882
|
|
|
|
|
|
|
|
4883
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetOperationStatusReq; |
4884
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetOperationStatusReq::VERSION = '0.021'; |
4885
|
|
|
|
|
|
|
{ |
4886
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetOperationStatusReq::DIST = 'Thrift-API-HiveClient2'; |
4887
|
|
|
|
|
|
|
} |
4888
|
2
|
|
|
2
|
|
11
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
986
|
|
4889
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetOperationStatusReq->mk_accessors( qw( operationHandle ) ); |
4890
|
|
|
|
|
|
|
|
4891
|
|
|
|
|
|
|
sub new { |
4892
|
0
|
|
|
0
|
|
|
my $classname = shift; |
4893
|
0
|
|
|
|
|
|
my $self = {}; |
4894
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
4895
|
0
|
|
|
|
|
|
$self->{operationHandle} = undef; |
4896
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
4897
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationHandle}) { |
4898
|
0
|
|
|
|
|
|
$self->{operationHandle} = $vals->{operationHandle}; |
4899
|
|
|
|
|
|
|
} |
4900
|
|
|
|
|
|
|
} |
4901
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
4902
|
|
|
|
|
|
|
} |
4903
|
|
|
|
|
|
|
|
4904
|
|
|
|
|
|
|
sub getName { |
4905
|
0
|
|
|
0
|
|
|
return 'TGetOperationStatusReq'; |
4906
|
|
|
|
|
|
|
} |
4907
|
|
|
|
|
|
|
|
4908
|
|
|
|
|
|
|
sub read { |
4909
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
4910
|
0
|
|
|
|
|
|
my $xfer = 0; |
4911
|
0
|
|
|
|
|
|
my $fname; |
4912
|
0
|
|
|
|
|
|
my $ftype = 0; |
4913
|
0
|
|
|
|
|
|
my $fid = 0; |
4914
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
4915
|
0
|
|
|
|
|
|
while (1) |
4916
|
|
|
|
|
|
|
{ |
4917
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
4918
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
4919
|
0
|
|
|
|
|
|
last; |
4920
|
|
|
|
|
|
|
} |
4921
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
4922
|
|
|
|
|
|
|
{ |
4923
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4924
|
0
|
|
|
|
|
|
$self->{operationHandle} = new Thrift::API::HiveClient2::TOperationHandle(); |
4925
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->read($input); |
4926
|
|
|
|
|
|
|
} else { |
4927
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4928
|
|
|
|
|
|
|
} |
4929
|
0
|
|
|
|
|
|
last; }; |
4930
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4931
|
|
|
|
|
|
|
} |
4932
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
4933
|
|
|
|
|
|
|
} |
4934
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
4935
|
0
|
|
|
|
|
|
return $xfer; |
4936
|
|
|
|
|
|
|
} |
4937
|
|
|
|
|
|
|
|
4938
|
|
|
|
|
|
|
sub write { |
4939
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
4940
|
0
|
|
|
|
|
|
my $xfer = 0; |
4941
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetOperationStatusReq'); |
4942
|
0
|
0
|
|
|
|
|
if (defined $self->{operationHandle}) { |
4943
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationHandle', TType::STRUCT, 1); |
4944
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->write($output); |
4945
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4946
|
|
|
|
|
|
|
} |
4947
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
4948
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
4949
|
0
|
|
|
|
|
|
return $xfer; |
4950
|
|
|
|
|
|
|
} |
4951
|
|
|
|
|
|
|
|
4952
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetOperationStatusResp; |
4953
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetOperationStatusResp::VERSION = '0.021'; |
4954
|
|
|
|
|
|
|
{ |
4955
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetOperationStatusResp::DIST = 'Thrift-API-HiveClient2'; |
4956
|
|
|
|
|
|
|
} |
4957
|
2
|
|
|
2
|
|
10
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
10
|
|
|
2
|
|
|
|
|
1327
|
|
4958
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetOperationStatusResp->mk_accessors( qw( status operationState ) ); |
4959
|
|
|
|
|
|
|
|
4960
|
|
|
|
|
|
|
sub new { |
4961
|
0
|
|
|
0
|
|
|
my $classname = shift; |
4962
|
0
|
|
|
|
|
|
my $self = {}; |
4963
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
4964
|
0
|
|
|
|
|
|
$self->{status} = undef; |
4965
|
0
|
|
|
|
|
|
$self->{operationState} = undef; |
4966
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
4967
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
4968
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
4969
|
|
|
|
|
|
|
} |
4970
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationState}) { |
4971
|
0
|
|
|
|
|
|
$self->{operationState} = $vals->{operationState}; |
4972
|
|
|
|
|
|
|
} |
4973
|
|
|
|
|
|
|
} |
4974
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
4975
|
|
|
|
|
|
|
} |
4976
|
|
|
|
|
|
|
|
4977
|
|
|
|
|
|
|
sub getName { |
4978
|
0
|
|
|
0
|
|
|
return 'TGetOperationStatusResp'; |
4979
|
|
|
|
|
|
|
} |
4980
|
|
|
|
|
|
|
|
4981
|
|
|
|
|
|
|
sub read { |
4982
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
4983
|
0
|
|
|
|
|
|
my $xfer = 0; |
4984
|
0
|
|
|
|
|
|
my $fname; |
4985
|
0
|
|
|
|
|
|
my $ftype = 0; |
4986
|
0
|
|
|
|
|
|
my $fid = 0; |
4987
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
4988
|
0
|
|
|
|
|
|
while (1) |
4989
|
|
|
|
|
|
|
{ |
4990
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
4991
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
4992
|
0
|
|
|
|
|
|
last; |
4993
|
|
|
|
|
|
|
} |
4994
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
4995
|
|
|
|
|
|
|
{ |
4996
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4997
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
4998
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
4999
|
|
|
|
|
|
|
} else { |
5000
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5001
|
|
|
|
|
|
|
} |
5002
|
0
|
|
|
|
|
|
last; }; |
5003
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
5004
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{operationState}); |
5005
|
|
|
|
|
|
|
} else { |
5006
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5007
|
|
|
|
|
|
|
} |
5008
|
0
|
|
|
|
|
|
last; }; |
5009
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5010
|
|
|
|
|
|
|
} |
5011
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
5012
|
|
|
|
|
|
|
} |
5013
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
5014
|
0
|
|
|
|
|
|
return $xfer; |
5015
|
|
|
|
|
|
|
} |
5016
|
|
|
|
|
|
|
|
5017
|
|
|
|
|
|
|
sub write { |
5018
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
5019
|
0
|
|
|
|
|
|
my $xfer = 0; |
5020
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetOperationStatusResp'); |
5021
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
5022
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
5023
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
5024
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
5025
|
|
|
|
|
|
|
} |
5026
|
0
|
0
|
|
|
|
|
if (defined $self->{operationState}) { |
5027
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationState', TType::I32, 2); |
5028
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{operationState}); |
5029
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
5030
|
|
|
|
|
|
|
} |
5031
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
5032
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
5033
|
0
|
|
|
|
|
|
return $xfer; |
5034
|
|
|
|
|
|
|
} |
5035
|
|
|
|
|
|
|
|
5036
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TCancelOperationReq; |
5037
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TCancelOperationReq::VERSION = '0.021'; |
5038
|
|
|
|
|
|
|
{ |
5039
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TCancelOperationReq::DIST = 'Thrift-API-HiveClient2'; |
5040
|
|
|
|
|
|
|
} |
5041
|
2
|
|
|
2
|
|
11
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
993
|
|
5042
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TCancelOperationReq->mk_accessors( qw( operationHandle ) ); |
5043
|
|
|
|
|
|
|
|
5044
|
|
|
|
|
|
|
sub new { |
5045
|
0
|
|
|
0
|
|
|
my $classname = shift; |
5046
|
0
|
|
|
|
|
|
my $self = {}; |
5047
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
5048
|
0
|
|
|
|
|
|
$self->{operationHandle} = undef; |
5049
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
5050
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationHandle}) { |
5051
|
0
|
|
|
|
|
|
$self->{operationHandle} = $vals->{operationHandle}; |
5052
|
|
|
|
|
|
|
} |
5053
|
|
|
|
|
|
|
} |
5054
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
5055
|
|
|
|
|
|
|
} |
5056
|
|
|
|
|
|
|
|
5057
|
|
|
|
|
|
|
sub getName { |
5058
|
0
|
|
|
0
|
|
|
return 'TCancelOperationReq'; |
5059
|
|
|
|
|
|
|
} |
5060
|
|
|
|
|
|
|
|
5061
|
|
|
|
|
|
|
sub read { |
5062
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
5063
|
0
|
|
|
|
|
|
my $xfer = 0; |
5064
|
0
|
|
|
|
|
|
my $fname; |
5065
|
0
|
|
|
|
|
|
my $ftype = 0; |
5066
|
0
|
|
|
|
|
|
my $fid = 0; |
5067
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
5068
|
0
|
|
|
|
|
|
while (1) |
5069
|
|
|
|
|
|
|
{ |
5070
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
5071
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
5072
|
0
|
|
|
|
|
|
last; |
5073
|
|
|
|
|
|
|
} |
5074
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
5075
|
|
|
|
|
|
|
{ |
5076
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
5077
|
0
|
|
|
|
|
|
$self->{operationHandle} = new Thrift::API::HiveClient2::TOperationHandle(); |
5078
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->read($input); |
5079
|
|
|
|
|
|
|
} else { |
5080
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5081
|
|
|
|
|
|
|
} |
5082
|
0
|
|
|
|
|
|
last; }; |
5083
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5084
|
|
|
|
|
|
|
} |
5085
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
5086
|
|
|
|
|
|
|
} |
5087
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
5088
|
0
|
|
|
|
|
|
return $xfer; |
5089
|
|
|
|
|
|
|
} |
5090
|
|
|
|
|
|
|
|
5091
|
|
|
|
|
|
|
sub write { |
5092
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
5093
|
0
|
|
|
|
|
|
my $xfer = 0; |
5094
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TCancelOperationReq'); |
5095
|
0
|
0
|
|
|
|
|
if (defined $self->{operationHandle}) { |
5096
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationHandle', TType::STRUCT, 1); |
5097
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->write($output); |
5098
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
5099
|
|
|
|
|
|
|
} |
5100
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
5101
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
5102
|
0
|
|
|
|
|
|
return $xfer; |
5103
|
|
|
|
|
|
|
} |
5104
|
|
|
|
|
|
|
|
5105
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TCancelOperationResp; |
5106
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TCancelOperationResp::VERSION = '0.021'; |
5107
|
|
|
|
|
|
|
{ |
5108
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TCancelOperationResp::DIST = 'Thrift-API-HiveClient2'; |
5109
|
|
|
|
|
|
|
} |
5110
|
2
|
|
|
2
|
|
12
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
991
|
|
5111
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TCancelOperationResp->mk_accessors( qw( status ) ); |
5112
|
|
|
|
|
|
|
|
5113
|
|
|
|
|
|
|
sub new { |
5114
|
0
|
|
|
0
|
|
|
my $classname = shift; |
5115
|
0
|
|
|
|
|
|
my $self = {}; |
5116
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
5117
|
0
|
|
|
|
|
|
$self->{status} = undef; |
5118
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
5119
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
5120
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
5121
|
|
|
|
|
|
|
} |
5122
|
|
|
|
|
|
|
} |
5123
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
5124
|
|
|
|
|
|
|
} |
5125
|
|
|
|
|
|
|
|
5126
|
|
|
|
|
|
|
sub getName { |
5127
|
0
|
|
|
0
|
|
|
return 'TCancelOperationResp'; |
5128
|
|
|
|
|
|
|
} |
5129
|
|
|
|
|
|
|
|
5130
|
|
|
|
|
|
|
sub read { |
5131
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
5132
|
0
|
|
|
|
|
|
my $xfer = 0; |
5133
|
0
|
|
|
|
|
|
my $fname; |
5134
|
0
|
|
|
|
|
|
my $ftype = 0; |
5135
|
0
|
|
|
|
|
|
my $fid = 0; |
5136
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
5137
|
0
|
|
|
|
|
|
while (1) |
5138
|
|
|
|
|
|
|
{ |
5139
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
5140
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
5141
|
0
|
|
|
|
|
|
last; |
5142
|
|
|
|
|
|
|
} |
5143
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
5144
|
|
|
|
|
|
|
{ |
5145
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
5146
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
5147
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
5148
|
|
|
|
|
|
|
} else { |
5149
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5150
|
|
|
|
|
|
|
} |
5151
|
0
|
|
|
|
|
|
last; }; |
5152
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5153
|
|
|
|
|
|
|
} |
5154
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
5155
|
|
|
|
|
|
|
} |
5156
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
5157
|
0
|
|
|
|
|
|
return $xfer; |
5158
|
|
|
|
|
|
|
} |
5159
|
|
|
|
|
|
|
|
5160
|
|
|
|
|
|
|
sub write { |
5161
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
5162
|
0
|
|
|
|
|
|
my $xfer = 0; |
5163
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TCancelOperationResp'); |
5164
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
5165
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
5166
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
5167
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
5168
|
|
|
|
|
|
|
} |
5169
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
5170
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
5171
|
0
|
|
|
|
|
|
return $xfer; |
5172
|
|
|
|
|
|
|
} |
5173
|
|
|
|
|
|
|
|
5174
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TCloseOperationReq; |
5175
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TCloseOperationReq::VERSION = '0.021'; |
5176
|
|
|
|
|
|
|
{ |
5177
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TCloseOperationReq::DIST = 'Thrift-API-HiveClient2'; |
5178
|
|
|
|
|
|
|
} |
5179
|
2
|
|
|
2
|
|
12
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
1099
|
|
5180
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TCloseOperationReq->mk_accessors( qw( operationHandle ) ); |
5181
|
|
|
|
|
|
|
|
5182
|
|
|
|
|
|
|
sub new { |
5183
|
0
|
|
|
0
|
|
|
my $classname = shift; |
5184
|
0
|
|
|
|
|
|
my $self = {}; |
5185
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
5186
|
0
|
|
|
|
|
|
$self->{operationHandle} = undef; |
5187
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
5188
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationHandle}) { |
5189
|
0
|
|
|
|
|
|
$self->{operationHandle} = $vals->{operationHandle}; |
5190
|
|
|
|
|
|
|
} |
5191
|
|
|
|
|
|
|
} |
5192
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
5193
|
|
|
|
|
|
|
} |
5194
|
|
|
|
|
|
|
|
5195
|
|
|
|
|
|
|
sub getName { |
5196
|
0
|
|
|
0
|
|
|
return 'TCloseOperationReq'; |
5197
|
|
|
|
|
|
|
} |
5198
|
|
|
|
|
|
|
|
5199
|
|
|
|
|
|
|
sub read { |
5200
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
5201
|
0
|
|
|
|
|
|
my $xfer = 0; |
5202
|
0
|
|
|
|
|
|
my $fname; |
5203
|
0
|
|
|
|
|
|
my $ftype = 0; |
5204
|
0
|
|
|
|
|
|
my $fid = 0; |
5205
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
5206
|
0
|
|
|
|
|
|
while (1) |
5207
|
|
|
|
|
|
|
{ |
5208
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
5209
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
5210
|
0
|
|
|
|
|
|
last; |
5211
|
|
|
|
|
|
|
} |
5212
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
5213
|
|
|
|
|
|
|
{ |
5214
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
5215
|
0
|
|
|
|
|
|
$self->{operationHandle} = new Thrift::API::HiveClient2::TOperationHandle(); |
5216
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->read($input); |
5217
|
|
|
|
|
|
|
} else { |
5218
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5219
|
|
|
|
|
|
|
} |
5220
|
0
|
|
|
|
|
|
last; }; |
5221
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5222
|
|
|
|
|
|
|
} |
5223
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
5224
|
|
|
|
|
|
|
} |
5225
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
5226
|
0
|
|
|
|
|
|
return $xfer; |
5227
|
|
|
|
|
|
|
} |
5228
|
|
|
|
|
|
|
|
5229
|
|
|
|
|
|
|
sub write { |
5230
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
5231
|
0
|
|
|
|
|
|
my $xfer = 0; |
5232
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TCloseOperationReq'); |
5233
|
0
|
0
|
|
|
|
|
if (defined $self->{operationHandle}) { |
5234
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationHandle', TType::STRUCT, 1); |
5235
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->write($output); |
5236
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
5237
|
|
|
|
|
|
|
} |
5238
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
5239
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
5240
|
0
|
|
|
|
|
|
return $xfer; |
5241
|
|
|
|
|
|
|
} |
5242
|
|
|
|
|
|
|
|
5243
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TCloseOperationResp; |
5244
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TCloseOperationResp::VERSION = '0.021'; |
5245
|
|
|
|
|
|
|
{ |
5246
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TCloseOperationResp::DIST = 'Thrift-API-HiveClient2'; |
5247
|
|
|
|
|
|
|
} |
5248
|
2
|
|
|
2
|
|
14
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
998
|
|
5249
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TCloseOperationResp->mk_accessors( qw( status ) ); |
5250
|
|
|
|
|
|
|
|
5251
|
|
|
|
|
|
|
sub new { |
5252
|
0
|
|
|
0
|
|
|
my $classname = shift; |
5253
|
0
|
|
|
|
|
|
my $self = {}; |
5254
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
5255
|
0
|
|
|
|
|
|
$self->{status} = undef; |
5256
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
5257
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
5258
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
5259
|
|
|
|
|
|
|
} |
5260
|
|
|
|
|
|
|
} |
5261
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
5262
|
|
|
|
|
|
|
} |
5263
|
|
|
|
|
|
|
|
5264
|
|
|
|
|
|
|
sub getName { |
5265
|
0
|
|
|
0
|
|
|
return 'TCloseOperationResp'; |
5266
|
|
|
|
|
|
|
} |
5267
|
|
|
|
|
|
|
|
5268
|
|
|
|
|
|
|
sub read { |
5269
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
5270
|
0
|
|
|
|
|
|
my $xfer = 0; |
5271
|
0
|
|
|
|
|
|
my $fname; |
5272
|
0
|
|
|
|
|
|
my $ftype = 0; |
5273
|
0
|
|
|
|
|
|
my $fid = 0; |
5274
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
5275
|
0
|
|
|
|
|
|
while (1) |
5276
|
|
|
|
|
|
|
{ |
5277
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
5278
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
5279
|
0
|
|
|
|
|
|
last; |
5280
|
|
|
|
|
|
|
} |
5281
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
5282
|
|
|
|
|
|
|
{ |
5283
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
5284
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
5285
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
5286
|
|
|
|
|
|
|
} else { |
5287
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5288
|
|
|
|
|
|
|
} |
5289
|
0
|
|
|
|
|
|
last; }; |
5290
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5291
|
|
|
|
|
|
|
} |
5292
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
5293
|
|
|
|
|
|
|
} |
5294
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
5295
|
0
|
|
|
|
|
|
return $xfer; |
5296
|
|
|
|
|
|
|
} |
5297
|
|
|
|
|
|
|
|
5298
|
|
|
|
|
|
|
sub write { |
5299
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
5300
|
0
|
|
|
|
|
|
my $xfer = 0; |
5301
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TCloseOperationResp'); |
5302
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
5303
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
5304
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
5305
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
5306
|
|
|
|
|
|
|
} |
5307
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
5308
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
5309
|
0
|
|
|
|
|
|
return $xfer; |
5310
|
|
|
|
|
|
|
} |
5311
|
|
|
|
|
|
|
|
5312
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetResultSetMetadataReq; |
5313
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetResultSetMetadataReq::VERSION = '0.021'; |
5314
|
|
|
|
|
|
|
{ |
5315
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetResultSetMetadataReq::DIST = 'Thrift-API-HiveClient2'; |
5316
|
|
|
|
|
|
|
} |
5317
|
2
|
|
|
2
|
|
12
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
1020
|
|
5318
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetResultSetMetadataReq->mk_accessors( qw( operationHandle ) ); |
5319
|
|
|
|
|
|
|
|
5320
|
|
|
|
|
|
|
sub new { |
5321
|
0
|
|
|
0
|
|
|
my $classname = shift; |
5322
|
0
|
|
|
|
|
|
my $self = {}; |
5323
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
5324
|
0
|
|
|
|
|
|
$self->{operationHandle} = undef; |
5325
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
5326
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationHandle}) { |
5327
|
0
|
|
|
|
|
|
$self->{operationHandle} = $vals->{operationHandle}; |
5328
|
|
|
|
|
|
|
} |
5329
|
|
|
|
|
|
|
} |
5330
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
5331
|
|
|
|
|
|
|
} |
5332
|
|
|
|
|
|
|
|
5333
|
|
|
|
|
|
|
sub getName { |
5334
|
0
|
|
|
0
|
|
|
return 'TGetResultSetMetadataReq'; |
5335
|
|
|
|
|
|
|
} |
5336
|
|
|
|
|
|
|
|
5337
|
|
|
|
|
|
|
sub read { |
5338
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
5339
|
0
|
|
|
|
|
|
my $xfer = 0; |
5340
|
0
|
|
|
|
|
|
my $fname; |
5341
|
0
|
|
|
|
|
|
my $ftype = 0; |
5342
|
0
|
|
|
|
|
|
my $fid = 0; |
5343
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
5344
|
0
|
|
|
|
|
|
while (1) |
5345
|
|
|
|
|
|
|
{ |
5346
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
5347
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
5348
|
0
|
|
|
|
|
|
last; |
5349
|
|
|
|
|
|
|
} |
5350
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
5351
|
|
|
|
|
|
|
{ |
5352
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
5353
|
0
|
|
|
|
|
|
$self->{operationHandle} = new Thrift::API::HiveClient2::TOperationHandle(); |
5354
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->read($input); |
5355
|
|
|
|
|
|
|
} else { |
5356
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5357
|
|
|
|
|
|
|
} |
5358
|
0
|
|
|
|
|
|
last; }; |
5359
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5360
|
|
|
|
|
|
|
} |
5361
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
5362
|
|
|
|
|
|
|
} |
5363
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
5364
|
0
|
|
|
|
|
|
return $xfer; |
5365
|
|
|
|
|
|
|
} |
5366
|
|
|
|
|
|
|
|
5367
|
|
|
|
|
|
|
sub write { |
5368
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
5369
|
0
|
|
|
|
|
|
my $xfer = 0; |
5370
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetResultSetMetadataReq'); |
5371
|
0
|
0
|
|
|
|
|
if (defined $self->{operationHandle}) { |
5372
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationHandle', TType::STRUCT, 1); |
5373
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->write($output); |
5374
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
5375
|
|
|
|
|
|
|
} |
5376
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
5377
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
5378
|
0
|
|
|
|
|
|
return $xfer; |
5379
|
|
|
|
|
|
|
} |
5380
|
|
|
|
|
|
|
|
5381
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetResultSetMetadataResp; |
5382
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetResultSetMetadataResp::VERSION = '0.021'; |
5383
|
|
|
|
|
|
|
{ |
5384
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetResultSetMetadataResp::DIST = 'Thrift-API-HiveClient2'; |
5385
|
|
|
|
|
|
|
} |
5386
|
2
|
|
|
2
|
|
11
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1280
|
|
5387
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetResultSetMetadataResp->mk_accessors( qw( status schema ) ); |
5388
|
|
|
|
|
|
|
|
5389
|
|
|
|
|
|
|
sub new { |
5390
|
0
|
|
|
0
|
|
|
my $classname = shift; |
5391
|
0
|
|
|
|
|
|
my $self = {}; |
5392
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
5393
|
0
|
|
|
|
|
|
$self->{status} = undef; |
5394
|
0
|
|
|
|
|
|
$self->{schema} = undef; |
5395
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
5396
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
5397
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
5398
|
|
|
|
|
|
|
} |
5399
|
0
|
0
|
|
|
|
|
if (defined $vals->{schema}) { |
5400
|
0
|
|
|
|
|
|
$self->{schema} = $vals->{schema}; |
5401
|
|
|
|
|
|
|
} |
5402
|
|
|
|
|
|
|
} |
5403
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
5404
|
|
|
|
|
|
|
} |
5405
|
|
|
|
|
|
|
|
5406
|
|
|
|
|
|
|
sub getName { |
5407
|
0
|
|
|
0
|
|
|
return 'TGetResultSetMetadataResp'; |
5408
|
|
|
|
|
|
|
} |
5409
|
|
|
|
|
|
|
|
5410
|
|
|
|
|
|
|
sub read { |
5411
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
5412
|
0
|
|
|
|
|
|
my $xfer = 0; |
5413
|
0
|
|
|
|
|
|
my $fname; |
5414
|
0
|
|
|
|
|
|
my $ftype = 0; |
5415
|
0
|
|
|
|
|
|
my $fid = 0; |
5416
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
5417
|
0
|
|
|
|
|
|
while (1) |
5418
|
|
|
|
|
|
|
{ |
5419
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
5420
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
5421
|
0
|
|
|
|
|
|
last; |
5422
|
|
|
|
|
|
|
} |
5423
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
5424
|
|
|
|
|
|
|
{ |
5425
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
5426
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
5427
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
5428
|
|
|
|
|
|
|
} else { |
5429
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5430
|
|
|
|
|
|
|
} |
5431
|
0
|
|
|
|
|
|
last; }; |
5432
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
5433
|
0
|
|
|
|
|
|
$self->{schema} = new Thrift::API::HiveClient2::TTableSchema(); |
5434
|
0
|
|
|
|
|
|
$xfer += $self->{schema}->read($input); |
5435
|
|
|
|
|
|
|
} else { |
5436
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5437
|
|
|
|
|
|
|
} |
5438
|
0
|
|
|
|
|
|
last; }; |
5439
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5440
|
|
|
|
|
|
|
} |
5441
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
5442
|
|
|
|
|
|
|
} |
5443
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
5444
|
0
|
|
|
|
|
|
return $xfer; |
5445
|
|
|
|
|
|
|
} |
5446
|
|
|
|
|
|
|
|
5447
|
|
|
|
|
|
|
sub write { |
5448
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
5449
|
0
|
|
|
|
|
|
my $xfer = 0; |
5450
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetResultSetMetadataResp'); |
5451
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
5452
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
5453
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
5454
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
5455
|
|
|
|
|
|
|
} |
5456
|
0
|
0
|
|
|
|
|
if (defined $self->{schema}) { |
5457
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('schema', TType::STRUCT, 2); |
5458
|
0
|
|
|
|
|
|
$xfer += $self->{schema}->write($output); |
5459
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
5460
|
|
|
|
|
|
|
} |
5461
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
5462
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
5463
|
0
|
|
|
|
|
|
return $xfer; |
5464
|
|
|
|
|
|
|
} |
5465
|
|
|
|
|
|
|
|
5466
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TFetchResultsReq; |
5467
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TFetchResultsReq::VERSION = '0.021'; |
5468
|
|
|
|
|
|
|
{ |
5469
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TFetchResultsReq::DIST = 'Thrift-API-HiveClient2'; |
5470
|
|
|
|
|
|
|
} |
5471
|
2
|
|
|
2
|
|
12
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1667
|
|
5472
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TFetchResultsReq->mk_accessors( qw( operationHandle orientation maxRows ) ); |
5473
|
|
|
|
|
|
|
|
5474
|
|
|
|
|
|
|
sub new { |
5475
|
0
|
|
|
0
|
|
|
my $classname = shift; |
5476
|
0
|
|
|
|
|
|
my $self = {}; |
5477
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
5478
|
0
|
|
|
|
|
|
$self->{operationHandle} = undef; |
5479
|
0
|
|
|
|
|
|
$self->{orientation} = 0; |
5480
|
0
|
|
|
|
|
|
$self->{maxRows} = undef; |
5481
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
5482
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationHandle}) { |
5483
|
0
|
|
|
|
|
|
$self->{operationHandle} = $vals->{operationHandle}; |
5484
|
|
|
|
|
|
|
} |
5485
|
0
|
0
|
|
|
|
|
if (defined $vals->{orientation}) { |
5486
|
0
|
|
|
|
|
|
$self->{orientation} = $vals->{orientation}; |
5487
|
|
|
|
|
|
|
} |
5488
|
0
|
0
|
|
|
|
|
if (defined $vals->{maxRows}) { |
5489
|
0
|
|
|
|
|
|
$self->{maxRows} = $vals->{maxRows}; |
5490
|
|
|
|
|
|
|
} |
5491
|
|
|
|
|
|
|
} |
5492
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
5493
|
|
|
|
|
|
|
} |
5494
|
|
|
|
|
|
|
|
5495
|
|
|
|
|
|
|
sub getName { |
5496
|
0
|
|
|
0
|
|
|
return 'TFetchResultsReq'; |
5497
|
|
|
|
|
|
|
} |
5498
|
|
|
|
|
|
|
|
5499
|
|
|
|
|
|
|
sub read { |
5500
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
5501
|
0
|
|
|
|
|
|
my $xfer = 0; |
5502
|
0
|
|
|
|
|
|
my $fname; |
5503
|
0
|
|
|
|
|
|
my $ftype = 0; |
5504
|
0
|
|
|
|
|
|
my $fid = 0; |
5505
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
5506
|
0
|
|
|
|
|
|
while (1) |
5507
|
|
|
|
|
|
|
{ |
5508
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
5509
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
5510
|
0
|
|
|
|
|
|
last; |
5511
|
|
|
|
|
|
|
} |
5512
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
5513
|
|
|
|
|
|
|
{ |
5514
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
5515
|
0
|
|
|
|
|
|
$self->{operationHandle} = new Thrift::API::HiveClient2::TOperationHandle(); |
5516
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->read($input); |
5517
|
|
|
|
|
|
|
} else { |
5518
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5519
|
|
|
|
|
|
|
} |
5520
|
0
|
|
|
|
|
|
last; }; |
5521
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
5522
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{orientation}); |
5523
|
|
|
|
|
|
|
} else { |
5524
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5525
|
|
|
|
|
|
|
} |
5526
|
0
|
|
|
|
|
|
last; }; |
5527
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::I64) { |
|
0
|
0
|
|
|
|
|
|
5528
|
0
|
|
|
|
|
|
$xfer += $input->readI64(\$self->{maxRows}); |
5529
|
|
|
|
|
|
|
} else { |
5530
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5531
|
|
|
|
|
|
|
} |
5532
|
0
|
|
|
|
|
|
last; }; |
5533
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5534
|
|
|
|
|
|
|
} |
5535
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
5536
|
|
|
|
|
|
|
} |
5537
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
5538
|
0
|
|
|
|
|
|
return $xfer; |
5539
|
|
|
|
|
|
|
} |
5540
|
|
|
|
|
|
|
|
5541
|
|
|
|
|
|
|
sub write { |
5542
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
5543
|
0
|
|
|
|
|
|
my $xfer = 0; |
5544
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TFetchResultsReq'); |
5545
|
0
|
0
|
|
|
|
|
if (defined $self->{operationHandle}) { |
5546
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationHandle', TType::STRUCT, 1); |
5547
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->write($output); |
5548
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
5549
|
|
|
|
|
|
|
} |
5550
|
0
|
0
|
|
|
|
|
if (defined $self->{orientation}) { |
5551
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('orientation', TType::I32, 2); |
5552
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{orientation}); |
5553
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
5554
|
|
|
|
|
|
|
} |
5555
|
0
|
0
|
|
|
|
|
if (defined $self->{maxRows}) { |
5556
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('maxRows', TType::I64, 3); |
5557
|
0
|
|
|
|
|
|
$xfer += $output->writeI64($self->{maxRows}); |
5558
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
5559
|
|
|
|
|
|
|
} |
5560
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
5561
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
5562
|
0
|
|
|
|
|
|
return $xfer; |
5563
|
|
|
|
|
|
|
} |
5564
|
|
|
|
|
|
|
|
5565
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TFetchResultsResp; |
5566
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TFetchResultsResp::VERSION = '0.021'; |
5567
|
|
|
|
|
|
|
{ |
5568
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TFetchResultsResp::DIST = 'Thrift-API-HiveClient2'; |
5569
|
|
|
|
|
|
|
} |
5570
|
2
|
|
|
2
|
|
12
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1762
|
|
5571
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TFetchResultsResp->mk_accessors( qw( status hasMoreRows results ) ); |
5572
|
|
|
|
|
|
|
|
5573
|
|
|
|
|
|
|
sub new { |
5574
|
0
|
|
|
0
|
|
|
my $classname = shift; |
5575
|
0
|
|
|
|
|
|
my $self = {}; |
5576
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
5577
|
0
|
|
|
|
|
|
$self->{status} = undef; |
5578
|
0
|
|
|
|
|
|
$self->{hasMoreRows} = undef; |
5579
|
0
|
|
|
|
|
|
$self->{results} = undef; |
5580
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
5581
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
5582
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
5583
|
|
|
|
|
|
|
} |
5584
|
0
|
0
|
|
|
|
|
if (defined $vals->{hasMoreRows}) { |
5585
|
0
|
|
|
|
|
|
$self->{hasMoreRows} = $vals->{hasMoreRows}; |
5586
|
|
|
|
|
|
|
} |
5587
|
0
|
0
|
|
|
|
|
if (defined $vals->{results}) { |
5588
|
0
|
|
|
|
|
|
$self->{results} = $vals->{results}; |
5589
|
|
|
|
|
|
|
} |
5590
|
|
|
|
|
|
|
} |
5591
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
5592
|
|
|
|
|
|
|
} |
5593
|
|
|
|
|
|
|
|
5594
|
|
|
|
|
|
|
sub getName { |
5595
|
0
|
|
|
0
|
|
|
return 'TFetchResultsResp'; |
5596
|
|
|
|
|
|
|
} |
5597
|
|
|
|
|
|
|
|
5598
|
|
|
|
|
|
|
sub read { |
5599
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
5600
|
0
|
|
|
|
|
|
my $xfer = 0; |
5601
|
0
|
|
|
|
|
|
my $fname; |
5602
|
0
|
|
|
|
|
|
my $ftype = 0; |
5603
|
0
|
|
|
|
|
|
my $fid = 0; |
5604
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
5605
|
0
|
|
|
|
|
|
while (1) |
5606
|
|
|
|
|
|
|
{ |
5607
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
5608
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
5609
|
0
|
|
|
|
|
|
last; |
5610
|
|
|
|
|
|
|
} |
5611
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
5612
|
|
|
|
|
|
|
{ |
5613
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
5614
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
5615
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
5616
|
|
|
|
|
|
|
} else { |
5617
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5618
|
|
|
|
|
|
|
} |
5619
|
0
|
|
|
|
|
|
last; }; |
5620
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::BOOL) { |
|
0
|
0
|
|
|
|
|
|
5621
|
0
|
|
|
|
|
|
$xfer += $input->readBool(\$self->{hasMoreRows}); |
5622
|
|
|
|
|
|
|
} else { |
5623
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5624
|
|
|
|
|
|
|
} |
5625
|
0
|
|
|
|
|
|
last; }; |
5626
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
5627
|
0
|
|
|
|
|
|
$self->{results} = new Thrift::API::HiveClient2::TRowSet(); |
5628
|
0
|
|
|
|
|
|
$xfer += $self->{results}->read($input); |
5629
|
|
|
|
|
|
|
} else { |
5630
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5631
|
|
|
|
|
|
|
} |
5632
|
0
|
|
|
|
|
|
last; }; |
5633
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5634
|
|
|
|
|
|
|
} |
5635
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
5636
|
|
|
|
|
|
|
} |
5637
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
5638
|
0
|
|
|
|
|
|
return $xfer; |
5639
|
|
|
|
|
|
|
} |
5640
|
|
|
|
|
|
|
|
5641
|
|
|
|
|
|
|
sub write { |
5642
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
5643
|
0
|
|
|
|
|
|
my $xfer = 0; |
5644
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TFetchResultsResp'); |
5645
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
5646
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
5647
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
5648
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
5649
|
|
|
|
|
|
|
} |
5650
|
0
|
0
|
|
|
|
|
if (defined $self->{hasMoreRows}) { |
5651
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('hasMoreRows', TType::BOOL, 2); |
5652
|
0
|
|
|
|
|
|
$xfer += $output->writeBool($self->{hasMoreRows}); |
5653
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
5654
|
|
|
|
|
|
|
} |
5655
|
0
|
0
|
|
|
|
|
if (defined $self->{results}) { |
5656
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('results', TType::STRUCT, 3); |
5657
|
0
|
|
|
|
|
|
$xfer += $self->{results}->write($output); |
5658
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
5659
|
|
|
|
|
|
|
} |
5660
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
5661
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
5662
|
0
|
|
|
|
|
|
return $xfer; |
5663
|
|
|
|
|
|
|
} |
5664
|
|
|
|
|
|
|
|
5665
|
|
|
|
|
|
|
1; |
5666
|
|
|
|
|
|
|
|
5667
|
|
|
|
|
|
|
__END__ |