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
|
|
15
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
59
|
|
8
|
2
|
|
|
2
|
|
20
|
use warnings; |
|
2
|
|
|
|
|
9
|
|
|
2
|
|
|
|
|
50
|
|
9
|
2
|
|
|
2
|
|
9
|
use Thrift; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
46
|
|
10
|
2
|
|
|
2
|
|
13
|
use Thrift::API::HiveClient2::Compat; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
123
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TProtocolVersion; |
13
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TProtocolVersion::VERSION = '0.024'; |
14
|
|
|
|
|
|
|
{ |
15
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TProtocolVersion::DIST = 'Thrift-API-HiveClient2'; |
16
|
|
|
|
|
|
|
} |
17
|
2
|
|
|
2
|
|
13
|
use constant HIVE_CLI_SERVICE_PROTOCOL_V1 => 0; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
186
|
|
18
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TType; |
19
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TType::VERSION = '0.024'; |
20
|
|
|
|
|
|
|
{ |
21
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TType::DIST = 'Thrift-API-HiveClient2'; |
22
|
|
|
|
|
|
|
} |
23
|
2
|
|
|
2
|
|
14
|
use constant BOOLEAN_TYPE => 0; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
102
|
|
24
|
2
|
|
|
2
|
|
12
|
use constant TINYINT_TYPE => 1; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
113
|
|
25
|
2
|
|
|
2
|
|
14
|
use constant SMALLINT_TYPE => 2; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
105
|
|
26
|
2
|
|
|
2
|
|
11
|
use constant INT_TYPE => 3; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
80
|
|
27
|
2
|
|
|
2
|
|
11
|
use constant BIGINT_TYPE => 4; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
121
|
|
28
|
2
|
|
|
2
|
|
14
|
use constant FLOAT_TYPE => 5; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
100
|
|
29
|
2
|
|
|
2
|
|
12
|
use constant DOUBLE_TYPE => 6; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
93
|
|
30
|
2
|
|
|
2
|
|
13
|
use constant STRING_TYPE => 7; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
102
|
|
31
|
2
|
|
|
2
|
|
19
|
use constant TIMESTAMP_TYPE => 8; |
|
2
|
|
|
|
|
10
|
|
|
2
|
|
|
|
|
119
|
|
32
|
2
|
|
|
2
|
|
12
|
use constant BINARY_TYPE => 9; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
102
|
|
33
|
2
|
|
|
2
|
|
14
|
use constant ARRAY_TYPE => 10; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
107
|
|
34
|
2
|
|
|
2
|
|
13
|
use constant MAP_TYPE => 11; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
83
|
|
35
|
2
|
|
|
2
|
|
10
|
use constant STRUCT_TYPE => 12; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
99
|
|
36
|
2
|
|
|
2
|
|
13
|
use constant UNION_TYPE => 13; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
88
|
|
37
|
2
|
|
|
2
|
|
11
|
use constant USER_DEFINED_TYPE => 14; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
173
|
|
38
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TStatusCode; |
39
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TStatusCode::VERSION = '0.024'; |
40
|
|
|
|
|
|
|
{ |
41
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TStatusCode::DIST = 'Thrift-API-HiveClient2'; |
42
|
|
|
|
|
|
|
} |
43
|
2
|
|
|
2
|
|
12
|
use constant SUCCESS_STATUS => 0; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
107
|
|
44
|
2
|
|
|
2
|
|
12
|
use constant SUCCESS_WITH_INFO_STATUS => 1; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
101
|
|
45
|
2
|
|
|
2
|
|
14
|
use constant STILL_EXECUTING_STATUS => 2; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
93
|
|
46
|
2
|
|
|
2
|
|
12
|
use constant ERROR_STATUS => 3; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
105
|
|
47
|
2
|
|
|
2
|
|
12
|
use constant INVALID_HANDLE_STATUS => 4; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
160
|
|
48
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TOperationState; |
49
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TOperationState::VERSION = '0.024'; |
50
|
|
|
|
|
|
|
{ |
51
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TOperationState::DIST = 'Thrift-API-HiveClient2'; |
52
|
|
|
|
|
|
|
} |
53
|
2
|
|
|
2
|
|
15
|
use constant INITIALIZED_STATE => 0; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
90
|
|
54
|
2
|
|
|
2
|
|
11
|
use constant RUNNING_STATE => 1; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
106
|
|
55
|
2
|
|
|
2
|
|
12
|
use constant FINISHED_STATE => 2; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
101
|
|
56
|
2
|
|
|
2
|
|
12
|
use constant CANCELED_STATE => 3; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
89
|
|
57
|
2
|
|
|
2
|
|
12
|
use constant CLOSED_STATE => 4; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
102
|
|
58
|
2
|
|
|
2
|
|
12
|
use constant ERROR_STATE => 5; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
123
|
|
59
|
2
|
|
|
2
|
|
19
|
use constant UKNOWN_STATE => 6; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
221
|
|
60
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TOperationType; |
61
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TOperationType::VERSION = '0.024'; |
62
|
|
|
|
|
|
|
{ |
63
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TOperationType::DIST = 'Thrift-API-HiveClient2'; |
64
|
|
|
|
|
|
|
} |
65
|
2
|
|
|
2
|
|
15
|
use constant EXECUTE_STATEMENT => 0; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
120
|
|
66
|
2
|
|
|
2
|
|
13
|
use constant GET_TYPE_INFO => 1; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
101
|
|
67
|
2
|
|
|
2
|
|
19
|
use constant GET_CATALOGS => 2; |
|
2
|
|
|
|
|
25
|
|
|
2
|
|
|
|
|
104
|
|
68
|
2
|
|
|
2
|
|
13
|
use constant GET_SCHEMAS => 3; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
92
|
|
69
|
2
|
|
|
2
|
|
11
|
use constant GET_TABLES => 4; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
78
|
|
70
|
2
|
|
|
2
|
|
11
|
use constant GET_TABLE_TYPES => 5; |
|
2
|
|
|
|
|
10
|
|
|
2
|
|
|
|
|
103
|
|
71
|
2
|
|
|
2
|
|
12
|
use constant GET_COLUMNS => 6; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
112
|
|
72
|
2
|
|
|
2
|
|
13
|
use constant GET_FUNCTIONS => 7; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
114
|
|
73
|
2
|
|
|
2
|
|
12
|
use constant UNKNOWN => 8; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
170
|
|
74
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetInfoType; |
75
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetInfoType::VERSION = '0.024'; |
76
|
|
|
|
|
|
|
{ |
77
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetInfoType::DIST = 'Thrift-API-HiveClient2'; |
78
|
|
|
|
|
|
|
} |
79
|
2
|
|
|
2
|
|
13
|
use constant CLI_MAX_DRIVER_CONNECTIONS => 0; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
121
|
|
80
|
2
|
|
|
2
|
|
13
|
use constant CLI_MAX_CONCURRENT_ACTIVITIES => 1; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
96
|
|
81
|
2
|
|
|
2
|
|
12
|
use constant CLI_DATA_SOURCE_NAME => 2; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
124
|
|
82
|
2
|
|
|
2
|
|
31
|
use constant CLI_FETCH_DIRECTION => 8; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
95
|
|
83
|
2
|
|
|
2
|
|
20
|
use constant CLI_SERVER_NAME => 13; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
117
|
|
84
|
2
|
|
|
2
|
|
11
|
use constant CLI_SEARCH_PATTERN_ESCAPE => 14; |
|
2
|
|
|
|
|
12
|
|
|
2
|
|
|
|
|
87
|
|
85
|
2
|
|
|
2
|
|
10
|
use constant CLI_DBMS_NAME => 17; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
95
|
|
86
|
2
|
|
|
2
|
|
12
|
use constant CLI_DBMS_VER => 18; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
111
|
|
87
|
2
|
|
|
2
|
|
12
|
use constant CLI_ACCESSIBLE_TABLES => 19; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
109
|
|
88
|
2
|
|
|
2
|
|
15
|
use constant CLI_ACCESSIBLE_PROCEDURES => 20; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
86
|
|
89
|
2
|
|
|
2
|
|
11
|
use constant CLI_CURSOR_COMMIT_BEHAVIOR => 23; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
91
|
|
90
|
2
|
|
|
2
|
|
11
|
use constant CLI_DATA_SOURCE_READ_ONLY => 25; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
100
|
|
91
|
2
|
|
|
2
|
|
13
|
use constant CLI_DEFAULT_TXN_ISOLATION => 26; |
|
2
|
|
|
|
|
11
|
|
|
2
|
|
|
|
|
95
|
|
92
|
2
|
|
|
2
|
|
12
|
use constant CLI_IDENTIFIER_CASE => 28; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
89
|
|
93
|
2
|
|
|
2
|
|
12
|
use constant CLI_IDENTIFIER_QUOTE_CHAR => 29; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
96
|
|
94
|
2
|
|
|
2
|
|
12
|
use constant CLI_MAX_COLUMN_NAME_LEN => 30; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
80
|
|
95
|
2
|
|
|
2
|
|
10
|
use constant CLI_MAX_CURSOR_NAME_LEN => 31; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
105
|
|
96
|
2
|
|
|
2
|
|
12
|
use constant CLI_MAX_SCHEMA_NAME_LEN => 32; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
88
|
|
97
|
2
|
|
|
2
|
|
12
|
use constant CLI_MAX_CATALOG_NAME_LEN => 34; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
94
|
|
98
|
2
|
|
|
2
|
|
12
|
use constant CLI_MAX_TABLE_NAME_LEN => 35; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
94
|
|
99
|
2
|
|
|
2
|
|
14
|
use constant CLI_SCROLL_CONCURRENCY => 43; |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
92
|
|
100
|
2
|
|
|
2
|
|
12
|
use constant CLI_TXN_CAPABLE => 46; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
89
|
|
101
|
2
|
|
|
2
|
|
11
|
use constant CLI_USER_NAME => 47; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
128
|
|
102
|
2
|
|
|
2
|
|
13
|
use constant CLI_TXN_ISOLATION_OPTION => 72; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
85
|
|
103
|
2
|
|
|
2
|
|
12
|
use constant CLI_INTEGRITY => 73; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
109
|
|
104
|
2
|
|
|
2
|
|
12
|
use constant CLI_GETDATA_EXTENSIONS => 81; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
86
|
|
105
|
2
|
|
|
2
|
|
12
|
use constant CLI_NULL_COLLATION => 85; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
131
|
|
106
|
2
|
|
|
2
|
|
13
|
use constant CLI_ALTER_TABLE => 86; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
99
|
|
107
|
2
|
|
|
2
|
|
13
|
use constant CLI_ORDER_BY_COLUMNS_IN_SELECT => 90; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
98
|
|
108
|
2
|
|
|
2
|
|
11
|
use constant CLI_SPECIAL_CHARACTERS => 94; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
99
|
|
109
|
2
|
|
|
2
|
|
13
|
use constant CLI_MAX_COLUMNS_IN_GROUP_BY => 97; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
97
|
|
110
|
2
|
|
|
2
|
|
12
|
use constant CLI_MAX_COLUMNS_IN_INDEX => 98; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
97
|
|
111
|
2
|
|
|
2
|
|
11
|
use constant CLI_MAX_COLUMNS_IN_ORDER_BY => 99; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
105
|
|
112
|
2
|
|
|
2
|
|
13
|
use constant CLI_MAX_COLUMNS_IN_SELECT => 100; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
92
|
|
113
|
2
|
|
|
2
|
|
11
|
use constant CLI_MAX_COLUMNS_IN_TABLE => 101; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
91
|
|
114
|
2
|
|
|
2
|
|
11
|
use constant CLI_MAX_INDEX_SIZE => 102; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
94
|
|
115
|
2
|
|
|
2
|
|
14
|
use constant CLI_MAX_ROW_SIZE => 104; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
89
|
|
116
|
2
|
|
|
2
|
|
11
|
use constant CLI_MAX_STATEMENT_LEN => 105; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
97
|
|
117
|
2
|
|
|
2
|
|
13
|
use constant CLI_MAX_TABLES_IN_SELECT => 106; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
116
|
|
118
|
2
|
|
|
2
|
|
13
|
use constant CLI_MAX_USER_NAME_LEN => 107; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
83
|
|
119
|
2
|
|
|
2
|
|
10
|
use constant CLI_OJ_CAPABILITIES => 115; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
99
|
|
120
|
2
|
|
|
2
|
|
12
|
use constant CLI_XOPEN_CLI_YEAR => 10000; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
79
|
|
121
|
2
|
|
|
2
|
|
11
|
use constant CLI_CURSOR_SENSITIVITY => 10001; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
100
|
|
122
|
2
|
|
|
2
|
|
12
|
use constant CLI_DESCRIBE_PARAMETER => 10002; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
93
|
|
123
|
2
|
|
|
2
|
|
13
|
use constant CLI_CATALOG_NAME => 10003; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
100
|
|
124
|
2
|
|
|
2
|
|
13
|
use constant CLI_COLLATION_SEQ => 10004; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
117
|
|
125
|
2
|
|
|
2
|
|
12
|
use constant CLI_MAX_IDENTIFIER_LEN => 10005; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
159
|
|
126
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TFetchOrientation; |
127
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TFetchOrientation::VERSION = '0.024'; |
128
|
|
|
|
|
|
|
{ |
129
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TFetchOrientation::DIST = 'Thrift-API-HiveClient2'; |
130
|
|
|
|
|
|
|
} |
131
|
2
|
|
|
2
|
|
13
|
use constant FETCH_NEXT => 0; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
86
|
|
132
|
2
|
|
|
2
|
|
10
|
use constant FETCH_PRIOR => 1; |
|
2
|
|
|
|
|
10
|
|
|
2
|
|
|
|
|
100
|
|
133
|
2
|
|
|
2
|
|
14
|
use constant FETCH_RELATIVE => 2; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
95
|
|
134
|
2
|
|
|
2
|
|
12
|
use constant FETCH_ABSOLUTE => 3; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
80
|
|
135
|
2
|
|
|
2
|
|
10
|
use constant FETCH_FIRST => 4; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
110
|
|
136
|
2
|
|
|
2
|
|
13
|
use constant FETCH_LAST => 5; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
154
|
|
137
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TPrimitiveTypeEntry; |
138
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TPrimitiveTypeEntry::VERSION = '0.024'; |
139
|
|
|
|
|
|
|
{ |
140
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TPrimitiveTypeEntry::DIST = 'Thrift-API-HiveClient2'; |
141
|
|
|
|
|
|
|
} |
142
|
2
|
|
|
2
|
|
14
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
1100
|
|
143
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TPrimitiveTypeEntry->mk_accessors( qw( type ) ); |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
sub new { |
146
|
0
|
|
|
0
|
|
|
my $classname = shift; |
147
|
0
|
|
|
|
|
|
my $self = {}; |
148
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
149
|
0
|
|
|
|
|
|
$self->{type} = undef; |
150
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
151
|
0
|
0
|
|
|
|
|
if (defined $vals->{type}) { |
152
|
0
|
|
|
|
|
|
$self->{type} = $vals->{type}; |
153
|
|
|
|
|
|
|
} |
154
|
|
|
|
|
|
|
} |
155
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
156
|
|
|
|
|
|
|
} |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
sub getName { |
159
|
0
|
|
|
0
|
|
|
return 'TPrimitiveTypeEntry'; |
160
|
|
|
|
|
|
|
} |
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
sub read { |
163
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
164
|
0
|
|
|
|
|
|
my $xfer = 0; |
165
|
0
|
|
|
|
|
|
my $fname; |
166
|
0
|
|
|
|
|
|
my $ftype = 0; |
167
|
0
|
|
|
|
|
|
my $fid = 0; |
168
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
169
|
0
|
|
|
|
|
|
while (1) |
170
|
|
|
|
|
|
|
{ |
171
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
172
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
173
|
0
|
|
|
|
|
|
last; |
174
|
|
|
|
|
|
|
} |
175
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
176
|
|
|
|
|
|
|
{ |
177
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
178
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{type}); |
179
|
|
|
|
|
|
|
} else { |
180
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
181
|
|
|
|
|
|
|
} |
182
|
0
|
|
|
|
|
|
last; }; |
183
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
184
|
|
|
|
|
|
|
} |
185
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
186
|
|
|
|
|
|
|
} |
187
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
188
|
0
|
|
|
|
|
|
return $xfer; |
189
|
|
|
|
|
|
|
} |
190
|
|
|
|
|
|
|
|
191
|
|
|
|
|
|
|
sub write { |
192
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
193
|
0
|
|
|
|
|
|
my $xfer = 0; |
194
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TPrimitiveTypeEntry'); |
195
|
0
|
0
|
|
|
|
|
if (defined $self->{type}) { |
196
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('type', TType::I32, 1); |
197
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{type}); |
198
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
199
|
|
|
|
|
|
|
} |
200
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
201
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
202
|
0
|
|
|
|
|
|
return $xfer; |
203
|
|
|
|
|
|
|
} |
204
|
|
|
|
|
|
|
|
205
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TArrayTypeEntry; |
206
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TArrayTypeEntry::VERSION = '0.024'; |
207
|
|
|
|
|
|
|
{ |
208
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TArrayTypeEntry::DIST = 'Thrift-API-HiveClient2'; |
209
|
|
|
|
|
|
|
} |
210
|
2
|
|
|
2
|
|
4539
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
13
|
|
|
2
|
|
|
|
|
1040
|
|
211
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TArrayTypeEntry->mk_accessors( qw( objectTypePtr ) ); |
212
|
|
|
|
|
|
|
|
213
|
|
|
|
|
|
|
sub new { |
214
|
0
|
|
|
0
|
|
|
my $classname = shift; |
215
|
0
|
|
|
|
|
|
my $self = {}; |
216
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
217
|
0
|
|
|
|
|
|
$self->{objectTypePtr} = undef; |
218
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
219
|
0
|
0
|
|
|
|
|
if (defined $vals->{objectTypePtr}) { |
220
|
0
|
|
|
|
|
|
$self->{objectTypePtr} = $vals->{objectTypePtr}; |
221
|
|
|
|
|
|
|
} |
222
|
|
|
|
|
|
|
} |
223
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
224
|
|
|
|
|
|
|
} |
225
|
|
|
|
|
|
|
|
226
|
|
|
|
|
|
|
sub getName { |
227
|
0
|
|
|
0
|
|
|
return 'TArrayTypeEntry'; |
228
|
|
|
|
|
|
|
} |
229
|
|
|
|
|
|
|
|
230
|
|
|
|
|
|
|
sub read { |
231
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
232
|
0
|
|
|
|
|
|
my $xfer = 0; |
233
|
0
|
|
|
|
|
|
my $fname; |
234
|
0
|
|
|
|
|
|
my $ftype = 0; |
235
|
0
|
|
|
|
|
|
my $fid = 0; |
236
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
237
|
0
|
|
|
|
|
|
while (1) |
238
|
|
|
|
|
|
|
{ |
239
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
240
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
241
|
0
|
|
|
|
|
|
last; |
242
|
|
|
|
|
|
|
} |
243
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
244
|
|
|
|
|
|
|
{ |
245
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
246
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{objectTypePtr}); |
247
|
|
|
|
|
|
|
} else { |
248
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
249
|
|
|
|
|
|
|
} |
250
|
0
|
|
|
|
|
|
last; }; |
251
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
252
|
|
|
|
|
|
|
} |
253
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
254
|
|
|
|
|
|
|
} |
255
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
256
|
0
|
|
|
|
|
|
return $xfer; |
257
|
|
|
|
|
|
|
} |
258
|
|
|
|
|
|
|
|
259
|
|
|
|
|
|
|
sub write { |
260
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
261
|
0
|
|
|
|
|
|
my $xfer = 0; |
262
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TArrayTypeEntry'); |
263
|
0
|
0
|
|
|
|
|
if (defined $self->{objectTypePtr}) { |
264
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('objectTypePtr', TType::I32, 1); |
265
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{objectTypePtr}); |
266
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
267
|
|
|
|
|
|
|
} |
268
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
269
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
270
|
0
|
|
|
|
|
|
return $xfer; |
271
|
|
|
|
|
|
|
} |
272
|
|
|
|
|
|
|
|
273
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TMapTypeEntry; |
274
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TMapTypeEntry::VERSION = '0.024'; |
275
|
|
|
|
|
|
|
{ |
276
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TMapTypeEntry::DIST = 'Thrift-API-HiveClient2'; |
277
|
|
|
|
|
|
|
} |
278
|
2
|
|
|
2
|
|
18
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
1215
|
|
279
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TMapTypeEntry->mk_accessors( qw( keyTypePtr valueTypePtr ) ); |
280
|
|
|
|
|
|
|
|
281
|
|
|
|
|
|
|
sub new { |
282
|
0
|
|
|
0
|
|
|
my $classname = shift; |
283
|
0
|
|
|
|
|
|
my $self = {}; |
284
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
285
|
0
|
|
|
|
|
|
$self->{keyTypePtr} = undef; |
286
|
0
|
|
|
|
|
|
$self->{valueTypePtr} = undef; |
287
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
288
|
0
|
0
|
|
|
|
|
if (defined $vals->{keyTypePtr}) { |
289
|
0
|
|
|
|
|
|
$self->{keyTypePtr} = $vals->{keyTypePtr}; |
290
|
|
|
|
|
|
|
} |
291
|
0
|
0
|
|
|
|
|
if (defined $vals->{valueTypePtr}) { |
292
|
0
|
|
|
|
|
|
$self->{valueTypePtr} = $vals->{valueTypePtr}; |
293
|
|
|
|
|
|
|
} |
294
|
|
|
|
|
|
|
} |
295
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
296
|
|
|
|
|
|
|
} |
297
|
|
|
|
|
|
|
|
298
|
|
|
|
|
|
|
sub getName { |
299
|
0
|
|
|
0
|
|
|
return 'TMapTypeEntry'; |
300
|
|
|
|
|
|
|
} |
301
|
|
|
|
|
|
|
|
302
|
|
|
|
|
|
|
sub read { |
303
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
304
|
0
|
|
|
|
|
|
my $xfer = 0; |
305
|
0
|
|
|
|
|
|
my $fname; |
306
|
0
|
|
|
|
|
|
my $ftype = 0; |
307
|
0
|
|
|
|
|
|
my $fid = 0; |
308
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
309
|
0
|
|
|
|
|
|
while (1) |
310
|
|
|
|
|
|
|
{ |
311
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
312
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
313
|
0
|
|
|
|
|
|
last; |
314
|
|
|
|
|
|
|
} |
315
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
316
|
|
|
|
|
|
|
{ |
317
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
318
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{keyTypePtr}); |
319
|
|
|
|
|
|
|
} else { |
320
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
321
|
|
|
|
|
|
|
} |
322
|
0
|
|
|
|
|
|
last; }; |
323
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
324
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{valueTypePtr}); |
325
|
|
|
|
|
|
|
} else { |
326
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
327
|
|
|
|
|
|
|
} |
328
|
0
|
|
|
|
|
|
last; }; |
329
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
330
|
|
|
|
|
|
|
} |
331
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
332
|
|
|
|
|
|
|
} |
333
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
334
|
0
|
|
|
|
|
|
return $xfer; |
335
|
|
|
|
|
|
|
} |
336
|
|
|
|
|
|
|
|
337
|
|
|
|
|
|
|
sub write { |
338
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
339
|
0
|
|
|
|
|
|
my $xfer = 0; |
340
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TMapTypeEntry'); |
341
|
0
|
0
|
|
|
|
|
if (defined $self->{keyTypePtr}) { |
342
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('keyTypePtr', TType::I32, 1); |
343
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{keyTypePtr}); |
344
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
345
|
|
|
|
|
|
|
} |
346
|
0
|
0
|
|
|
|
|
if (defined $self->{valueTypePtr}) { |
347
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('valueTypePtr', TType::I32, 2); |
348
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{valueTypePtr}); |
349
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
350
|
|
|
|
|
|
|
} |
351
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
352
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
353
|
0
|
|
|
|
|
|
return $xfer; |
354
|
|
|
|
|
|
|
} |
355
|
|
|
|
|
|
|
|
356
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TStructTypeEntry; |
357
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TStructTypeEntry::VERSION = '0.024'; |
358
|
|
|
|
|
|
|
{ |
359
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TStructTypeEntry::DIST = 'Thrift-API-HiveClient2'; |
360
|
|
|
|
|
|
|
} |
361
|
2
|
|
|
2
|
|
16
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
1365
|
|
362
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TStructTypeEntry->mk_accessors( qw( nameToTypePtr ) ); |
363
|
|
|
|
|
|
|
|
364
|
|
|
|
|
|
|
sub new { |
365
|
0
|
|
|
0
|
|
|
my $classname = shift; |
366
|
0
|
|
|
|
|
|
my $self = {}; |
367
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
368
|
0
|
|
|
|
|
|
$self->{nameToTypePtr} = undef; |
369
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
370
|
0
|
0
|
|
|
|
|
if (defined $vals->{nameToTypePtr}) { |
371
|
0
|
|
|
|
|
|
$self->{nameToTypePtr} = $vals->{nameToTypePtr}; |
372
|
|
|
|
|
|
|
} |
373
|
|
|
|
|
|
|
} |
374
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
375
|
|
|
|
|
|
|
} |
376
|
|
|
|
|
|
|
|
377
|
|
|
|
|
|
|
sub getName { |
378
|
0
|
|
|
0
|
|
|
return 'TStructTypeEntry'; |
379
|
|
|
|
|
|
|
} |
380
|
|
|
|
|
|
|
|
381
|
|
|
|
|
|
|
sub read { |
382
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
383
|
0
|
|
|
|
|
|
my $xfer = 0; |
384
|
0
|
|
|
|
|
|
my $fname; |
385
|
0
|
|
|
|
|
|
my $ftype = 0; |
386
|
0
|
|
|
|
|
|
my $fid = 0; |
387
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
388
|
0
|
|
|
|
|
|
while (1) |
389
|
|
|
|
|
|
|
{ |
390
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
391
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
392
|
0
|
|
|
|
|
|
last; |
393
|
|
|
|
|
|
|
} |
394
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
395
|
|
|
|
|
|
|
{ |
396
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::MAP) { |
|
0
|
0
|
|
|
|
|
|
397
|
|
|
|
|
|
|
{ |
398
|
0
|
|
|
|
|
|
my $_size0 = 0; |
|
0
|
|
|
|
|
|
|
399
|
0
|
|
|
|
|
|
$self->{nameToTypePtr} = {}; |
400
|
0
|
|
|
|
|
|
my $_ktype1 = 0; |
401
|
0
|
|
|
|
|
|
my $_vtype2 = 0; |
402
|
0
|
|
|
|
|
|
$xfer += $input->readMapBegin(\$_ktype1, \$_vtype2, \$_size0); |
403
|
0
|
|
|
|
|
|
for (my $_i4 = 0; $_i4 < $_size0; ++$_i4) |
404
|
|
|
|
|
|
|
{ |
405
|
0
|
|
|
|
|
|
my $key5 = ''; |
406
|
0
|
|
|
|
|
|
my $val6 = 0; |
407
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$key5); |
408
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$val6); |
409
|
0
|
|
|
|
|
|
$self->{nameToTypePtr}->{$key5} = $val6; |
410
|
|
|
|
|
|
|
} |
411
|
0
|
|
|
|
|
|
$xfer += $input->readMapEnd(); |
412
|
|
|
|
|
|
|
} |
413
|
|
|
|
|
|
|
} else { |
414
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
415
|
|
|
|
|
|
|
} |
416
|
0
|
|
|
|
|
|
last; }; |
417
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
418
|
|
|
|
|
|
|
} |
419
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
420
|
|
|
|
|
|
|
} |
421
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
422
|
0
|
|
|
|
|
|
return $xfer; |
423
|
|
|
|
|
|
|
} |
424
|
|
|
|
|
|
|
|
425
|
|
|
|
|
|
|
sub write { |
426
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
427
|
0
|
|
|
|
|
|
my $xfer = 0; |
428
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TStructTypeEntry'); |
429
|
0
|
0
|
|
|
|
|
if (defined $self->{nameToTypePtr}) { |
430
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('nameToTypePtr', TType::MAP, 1); |
431
|
|
|
|
|
|
|
{ |
432
|
0
|
|
|
|
|
|
$xfer += $output->writeMapBegin(TType::STRING, TType::I32, scalar(keys %{$self->{nameToTypePtr}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
433
|
|
|
|
|
|
|
{ |
434
|
0
|
|
|
|
|
|
while( my ($kiter7,$viter8) = each %{$self->{nameToTypePtr}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
435
|
|
|
|
|
|
|
{ |
436
|
0
|
|
|
|
|
|
$xfer += $output->writeString($kiter7); |
437
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($viter8); |
438
|
|
|
|
|
|
|
} |
439
|
|
|
|
|
|
|
} |
440
|
0
|
|
|
|
|
|
$xfer += $output->writeMapEnd(); |
441
|
|
|
|
|
|
|
} |
442
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
443
|
|
|
|
|
|
|
} |
444
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
445
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
446
|
0
|
|
|
|
|
|
return $xfer; |
447
|
|
|
|
|
|
|
} |
448
|
|
|
|
|
|
|
|
449
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TUnionTypeEntry; |
450
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TUnionTypeEntry::VERSION = '0.024'; |
451
|
|
|
|
|
|
|
{ |
452
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TUnionTypeEntry::DIST = 'Thrift-API-HiveClient2'; |
453
|
|
|
|
|
|
|
} |
454
|
2
|
|
|
2
|
|
16
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
1315
|
|
455
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TUnionTypeEntry->mk_accessors( qw( nameToTypePtr ) ); |
456
|
|
|
|
|
|
|
|
457
|
|
|
|
|
|
|
sub new { |
458
|
0
|
|
|
0
|
|
|
my $classname = shift; |
459
|
0
|
|
|
|
|
|
my $self = {}; |
460
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
461
|
0
|
|
|
|
|
|
$self->{nameToTypePtr} = undef; |
462
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
463
|
0
|
0
|
|
|
|
|
if (defined $vals->{nameToTypePtr}) { |
464
|
0
|
|
|
|
|
|
$self->{nameToTypePtr} = $vals->{nameToTypePtr}; |
465
|
|
|
|
|
|
|
} |
466
|
|
|
|
|
|
|
} |
467
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
468
|
|
|
|
|
|
|
} |
469
|
|
|
|
|
|
|
|
470
|
|
|
|
|
|
|
sub getName { |
471
|
0
|
|
|
0
|
|
|
return 'TUnionTypeEntry'; |
472
|
|
|
|
|
|
|
} |
473
|
|
|
|
|
|
|
|
474
|
|
|
|
|
|
|
sub read { |
475
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
476
|
0
|
|
|
|
|
|
my $xfer = 0; |
477
|
0
|
|
|
|
|
|
my $fname; |
478
|
0
|
|
|
|
|
|
my $ftype = 0; |
479
|
0
|
|
|
|
|
|
my $fid = 0; |
480
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
481
|
0
|
|
|
|
|
|
while (1) |
482
|
|
|
|
|
|
|
{ |
483
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
484
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
485
|
0
|
|
|
|
|
|
last; |
486
|
|
|
|
|
|
|
} |
487
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
488
|
|
|
|
|
|
|
{ |
489
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::MAP) { |
|
0
|
0
|
|
|
|
|
|
490
|
|
|
|
|
|
|
{ |
491
|
0
|
|
|
|
|
|
my $_size9 = 0; |
|
0
|
|
|
|
|
|
|
492
|
0
|
|
|
|
|
|
$self->{nameToTypePtr} = {}; |
493
|
0
|
|
|
|
|
|
my $_ktype10 = 0; |
494
|
0
|
|
|
|
|
|
my $_vtype11 = 0; |
495
|
0
|
|
|
|
|
|
$xfer += $input->readMapBegin(\$_ktype10, \$_vtype11, \$_size9); |
496
|
0
|
|
|
|
|
|
for (my $_i13 = 0; $_i13 < $_size9; ++$_i13) |
497
|
|
|
|
|
|
|
{ |
498
|
0
|
|
|
|
|
|
my $key14 = ''; |
499
|
0
|
|
|
|
|
|
my $val15 = 0; |
500
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$key14); |
501
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$val15); |
502
|
0
|
|
|
|
|
|
$self->{nameToTypePtr}->{$key14} = $val15; |
503
|
|
|
|
|
|
|
} |
504
|
0
|
|
|
|
|
|
$xfer += $input->readMapEnd(); |
505
|
|
|
|
|
|
|
} |
506
|
|
|
|
|
|
|
} else { |
507
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
508
|
|
|
|
|
|
|
} |
509
|
0
|
|
|
|
|
|
last; }; |
510
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
511
|
|
|
|
|
|
|
} |
512
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
513
|
|
|
|
|
|
|
} |
514
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
515
|
0
|
|
|
|
|
|
return $xfer; |
516
|
|
|
|
|
|
|
} |
517
|
|
|
|
|
|
|
|
518
|
|
|
|
|
|
|
sub write { |
519
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
520
|
0
|
|
|
|
|
|
my $xfer = 0; |
521
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TUnionTypeEntry'); |
522
|
0
|
0
|
|
|
|
|
if (defined $self->{nameToTypePtr}) { |
523
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('nameToTypePtr', TType::MAP, 1); |
524
|
|
|
|
|
|
|
{ |
525
|
0
|
|
|
|
|
|
$xfer += $output->writeMapBegin(TType::STRING, TType::I32, scalar(keys %{$self->{nameToTypePtr}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
526
|
|
|
|
|
|
|
{ |
527
|
0
|
|
|
|
|
|
while( my ($kiter16,$viter17) = each %{$self->{nameToTypePtr}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
528
|
|
|
|
|
|
|
{ |
529
|
0
|
|
|
|
|
|
$xfer += $output->writeString($kiter16); |
530
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($viter17); |
531
|
|
|
|
|
|
|
} |
532
|
|
|
|
|
|
|
} |
533
|
0
|
|
|
|
|
|
$xfer += $output->writeMapEnd(); |
534
|
|
|
|
|
|
|
} |
535
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
536
|
|
|
|
|
|
|
} |
537
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
538
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
539
|
0
|
|
|
|
|
|
return $xfer; |
540
|
|
|
|
|
|
|
} |
541
|
|
|
|
|
|
|
|
542
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TUserDefinedTypeEntry; |
543
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TUserDefinedTypeEntry::VERSION = '0.024'; |
544
|
|
|
|
|
|
|
{ |
545
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TUserDefinedTypeEntry::DIST = 'Thrift-API-HiveClient2'; |
546
|
|
|
|
|
|
|
} |
547
|
2
|
|
|
2
|
|
17
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
985
|
|
548
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TUserDefinedTypeEntry->mk_accessors( qw( typeClassName ) ); |
549
|
|
|
|
|
|
|
|
550
|
|
|
|
|
|
|
sub new { |
551
|
0
|
|
|
0
|
|
|
my $classname = shift; |
552
|
0
|
|
|
|
|
|
my $self = {}; |
553
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
554
|
0
|
|
|
|
|
|
$self->{typeClassName} = undef; |
555
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
556
|
0
|
0
|
|
|
|
|
if (defined $vals->{typeClassName}) { |
557
|
0
|
|
|
|
|
|
$self->{typeClassName} = $vals->{typeClassName}; |
558
|
|
|
|
|
|
|
} |
559
|
|
|
|
|
|
|
} |
560
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
561
|
|
|
|
|
|
|
} |
562
|
|
|
|
|
|
|
|
563
|
|
|
|
|
|
|
sub getName { |
564
|
0
|
|
|
0
|
|
|
return 'TUserDefinedTypeEntry'; |
565
|
|
|
|
|
|
|
} |
566
|
|
|
|
|
|
|
|
567
|
|
|
|
|
|
|
sub read { |
568
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
569
|
0
|
|
|
|
|
|
my $xfer = 0; |
570
|
0
|
|
|
|
|
|
my $fname; |
571
|
0
|
|
|
|
|
|
my $ftype = 0; |
572
|
0
|
|
|
|
|
|
my $fid = 0; |
573
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
574
|
0
|
|
|
|
|
|
while (1) |
575
|
|
|
|
|
|
|
{ |
576
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
577
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
578
|
0
|
|
|
|
|
|
last; |
579
|
|
|
|
|
|
|
} |
580
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
581
|
|
|
|
|
|
|
{ |
582
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
583
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{typeClassName}); |
584
|
|
|
|
|
|
|
} else { |
585
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
586
|
|
|
|
|
|
|
} |
587
|
0
|
|
|
|
|
|
last; }; |
588
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
589
|
|
|
|
|
|
|
} |
590
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
591
|
|
|
|
|
|
|
} |
592
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
593
|
0
|
|
|
|
|
|
return $xfer; |
594
|
|
|
|
|
|
|
} |
595
|
|
|
|
|
|
|
|
596
|
|
|
|
|
|
|
sub write { |
597
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
598
|
0
|
|
|
|
|
|
my $xfer = 0; |
599
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TUserDefinedTypeEntry'); |
600
|
0
|
0
|
|
|
|
|
if (defined $self->{typeClassName}) { |
601
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('typeClassName', TType::STRING, 1); |
602
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{typeClassName}); |
603
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
604
|
|
|
|
|
|
|
} |
605
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
606
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
607
|
0
|
|
|
|
|
|
return $xfer; |
608
|
|
|
|
|
|
|
} |
609
|
|
|
|
|
|
|
|
610
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TTypeEntry; |
611
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TTypeEntry::VERSION = '0.024'; |
612
|
|
|
|
|
|
|
{ |
613
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TTypeEntry::DIST = 'Thrift-API-HiveClient2'; |
614
|
|
|
|
|
|
|
} |
615
|
2
|
|
|
2
|
|
16
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
2107
|
|
616
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TTypeEntry->mk_accessors( qw( primitiveEntry arrayEntry mapEntry structEntry unionEntry userDefinedTypeEntry ) ); |
617
|
|
|
|
|
|
|
|
618
|
|
|
|
|
|
|
sub new { |
619
|
0
|
|
|
0
|
|
|
my $classname = shift; |
620
|
0
|
|
|
|
|
|
my $self = {}; |
621
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
622
|
0
|
|
|
|
|
|
$self->{primitiveEntry} = undef; |
623
|
0
|
|
|
|
|
|
$self->{arrayEntry} = undef; |
624
|
0
|
|
|
|
|
|
$self->{mapEntry} = undef; |
625
|
0
|
|
|
|
|
|
$self->{structEntry} = undef; |
626
|
0
|
|
|
|
|
|
$self->{unionEntry} = undef; |
627
|
0
|
|
|
|
|
|
$self->{userDefinedTypeEntry} = undef; |
628
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
629
|
0
|
0
|
|
|
|
|
if (defined $vals->{primitiveEntry}) { |
630
|
0
|
|
|
|
|
|
$self->{primitiveEntry} = $vals->{primitiveEntry}; |
631
|
|
|
|
|
|
|
} |
632
|
0
|
0
|
|
|
|
|
if (defined $vals->{arrayEntry}) { |
633
|
0
|
|
|
|
|
|
$self->{arrayEntry} = $vals->{arrayEntry}; |
634
|
|
|
|
|
|
|
} |
635
|
0
|
0
|
|
|
|
|
if (defined $vals->{mapEntry}) { |
636
|
0
|
|
|
|
|
|
$self->{mapEntry} = $vals->{mapEntry}; |
637
|
|
|
|
|
|
|
} |
638
|
0
|
0
|
|
|
|
|
if (defined $vals->{structEntry}) { |
639
|
0
|
|
|
|
|
|
$self->{structEntry} = $vals->{structEntry}; |
640
|
|
|
|
|
|
|
} |
641
|
0
|
0
|
|
|
|
|
if (defined $vals->{unionEntry}) { |
642
|
0
|
|
|
|
|
|
$self->{unionEntry} = $vals->{unionEntry}; |
643
|
|
|
|
|
|
|
} |
644
|
0
|
0
|
|
|
|
|
if (defined $vals->{userDefinedTypeEntry}) { |
645
|
0
|
|
|
|
|
|
$self->{userDefinedTypeEntry} = $vals->{userDefinedTypeEntry}; |
646
|
|
|
|
|
|
|
} |
647
|
|
|
|
|
|
|
} |
648
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
649
|
|
|
|
|
|
|
} |
650
|
|
|
|
|
|
|
|
651
|
|
|
|
|
|
|
sub getName { |
652
|
0
|
|
|
0
|
|
|
return 'TTypeEntry'; |
653
|
|
|
|
|
|
|
} |
654
|
|
|
|
|
|
|
|
655
|
|
|
|
|
|
|
sub read { |
656
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
657
|
0
|
|
|
|
|
|
my $xfer = 0; |
658
|
0
|
|
|
|
|
|
my $fname; |
659
|
0
|
|
|
|
|
|
my $ftype = 0; |
660
|
0
|
|
|
|
|
|
my $fid = 0; |
661
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
662
|
0
|
|
|
|
|
|
while (1) |
663
|
|
|
|
|
|
|
{ |
664
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
665
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
666
|
0
|
|
|
|
|
|
last; |
667
|
|
|
|
|
|
|
} |
668
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
669
|
|
|
|
|
|
|
{ |
670
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
671
|
0
|
|
|
|
|
|
$self->{primitiveEntry} = new Thrift::API::HiveClient2::TPrimitiveTypeEntry(); |
672
|
0
|
|
|
|
|
|
$xfer += $self->{primitiveEntry}->read($input); |
673
|
|
|
|
|
|
|
} else { |
674
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
675
|
|
|
|
|
|
|
} |
676
|
0
|
|
|
|
|
|
last; }; |
677
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
678
|
0
|
|
|
|
|
|
$self->{arrayEntry} = new Thrift::API::HiveClient2::TArrayTypeEntry(); |
679
|
0
|
|
|
|
|
|
$xfer += $self->{arrayEntry}->read($input); |
680
|
|
|
|
|
|
|
} else { |
681
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
682
|
|
|
|
|
|
|
} |
683
|
0
|
|
|
|
|
|
last; }; |
684
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
685
|
0
|
|
|
|
|
|
$self->{mapEntry} = new Thrift::API::HiveClient2::TMapTypeEntry(); |
686
|
0
|
|
|
|
|
|
$xfer += $self->{mapEntry}->read($input); |
687
|
|
|
|
|
|
|
} else { |
688
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
689
|
|
|
|
|
|
|
} |
690
|
0
|
|
|
|
|
|
last; }; |
691
|
0
|
0
|
|
|
|
|
/^4$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
692
|
0
|
|
|
|
|
|
$self->{structEntry} = new Thrift::API::HiveClient2::TStructTypeEntry(); |
693
|
0
|
|
|
|
|
|
$xfer += $self->{structEntry}->read($input); |
694
|
|
|
|
|
|
|
} else { |
695
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
696
|
|
|
|
|
|
|
} |
697
|
0
|
|
|
|
|
|
last; }; |
698
|
0
|
0
|
|
|
|
|
/^5$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
699
|
0
|
|
|
|
|
|
$self->{unionEntry} = new Thrift::API::HiveClient2::TUnionTypeEntry(); |
700
|
0
|
|
|
|
|
|
$xfer += $self->{unionEntry}->read($input); |
701
|
|
|
|
|
|
|
} else { |
702
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
703
|
|
|
|
|
|
|
} |
704
|
0
|
|
|
|
|
|
last; }; |
705
|
0
|
0
|
|
|
|
|
/^6$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
706
|
0
|
|
|
|
|
|
$self->{userDefinedTypeEntry} = new Thrift::API::HiveClient2::TUserDefinedTypeEntry(); |
707
|
0
|
|
|
|
|
|
$xfer += $self->{userDefinedTypeEntry}->read($input); |
708
|
|
|
|
|
|
|
} else { |
709
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
710
|
|
|
|
|
|
|
} |
711
|
0
|
|
|
|
|
|
last; }; |
712
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
713
|
|
|
|
|
|
|
} |
714
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
715
|
|
|
|
|
|
|
} |
716
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
717
|
0
|
|
|
|
|
|
return $xfer; |
718
|
|
|
|
|
|
|
} |
719
|
|
|
|
|
|
|
|
720
|
|
|
|
|
|
|
sub write { |
721
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
722
|
0
|
|
|
|
|
|
my $xfer = 0; |
723
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TTypeEntry'); |
724
|
0
|
0
|
|
|
|
|
if (defined $self->{primitiveEntry}) { |
725
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('primitiveEntry', TType::STRUCT, 1); |
726
|
0
|
|
|
|
|
|
$xfer += $self->{primitiveEntry}->write($output); |
727
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
728
|
|
|
|
|
|
|
} |
729
|
0
|
0
|
|
|
|
|
if (defined $self->{arrayEntry}) { |
730
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('arrayEntry', TType::STRUCT, 2); |
731
|
0
|
|
|
|
|
|
$xfer += $self->{arrayEntry}->write($output); |
732
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
733
|
|
|
|
|
|
|
} |
734
|
0
|
0
|
|
|
|
|
if (defined $self->{mapEntry}) { |
735
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('mapEntry', TType::STRUCT, 3); |
736
|
0
|
|
|
|
|
|
$xfer += $self->{mapEntry}->write($output); |
737
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
738
|
|
|
|
|
|
|
} |
739
|
0
|
0
|
|
|
|
|
if (defined $self->{structEntry}) { |
740
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('structEntry', TType::STRUCT, 4); |
741
|
0
|
|
|
|
|
|
$xfer += $self->{structEntry}->write($output); |
742
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
743
|
|
|
|
|
|
|
} |
744
|
0
|
0
|
|
|
|
|
if (defined $self->{unionEntry}) { |
745
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('unionEntry', TType::STRUCT, 5); |
746
|
0
|
|
|
|
|
|
$xfer += $self->{unionEntry}->write($output); |
747
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
748
|
|
|
|
|
|
|
} |
749
|
0
|
0
|
|
|
|
|
if (defined $self->{userDefinedTypeEntry}) { |
750
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('userDefinedTypeEntry', TType::STRUCT, 6); |
751
|
0
|
|
|
|
|
|
$xfer += $self->{userDefinedTypeEntry}->write($output); |
752
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
753
|
|
|
|
|
|
|
} |
754
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
755
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
756
|
0
|
|
|
|
|
|
return $xfer; |
757
|
|
|
|
|
|
|
} |
758
|
|
|
|
|
|
|
|
759
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TTypeDesc; |
760
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TTypeDesc::VERSION = '0.024'; |
761
|
|
|
|
|
|
|
{ |
762
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TTypeDesc::DIST = 'Thrift-API-HiveClient2'; |
763
|
|
|
|
|
|
|
} |
764
|
2
|
|
|
2
|
|
16
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1312
|
|
765
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TTypeDesc->mk_accessors( qw( types ) ); |
766
|
|
|
|
|
|
|
|
767
|
|
|
|
|
|
|
sub new { |
768
|
0
|
|
|
0
|
|
|
my $classname = shift; |
769
|
0
|
|
|
|
|
|
my $self = {}; |
770
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
771
|
0
|
|
|
|
|
|
$self->{types} = undef; |
772
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
773
|
0
|
0
|
|
|
|
|
if (defined $vals->{types}) { |
774
|
0
|
|
|
|
|
|
$self->{types} = $vals->{types}; |
775
|
|
|
|
|
|
|
} |
776
|
|
|
|
|
|
|
} |
777
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
778
|
|
|
|
|
|
|
} |
779
|
|
|
|
|
|
|
|
780
|
|
|
|
|
|
|
sub getName { |
781
|
0
|
|
|
0
|
|
|
return 'TTypeDesc'; |
782
|
|
|
|
|
|
|
} |
783
|
|
|
|
|
|
|
|
784
|
|
|
|
|
|
|
sub read { |
785
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
786
|
0
|
|
|
|
|
|
my $xfer = 0; |
787
|
0
|
|
|
|
|
|
my $fname; |
788
|
0
|
|
|
|
|
|
my $ftype = 0; |
789
|
0
|
|
|
|
|
|
my $fid = 0; |
790
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
791
|
0
|
|
|
|
|
|
while (1) |
792
|
|
|
|
|
|
|
{ |
793
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
794
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
795
|
0
|
|
|
|
|
|
last; |
796
|
|
|
|
|
|
|
} |
797
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
798
|
|
|
|
|
|
|
{ |
799
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::LIST) { |
|
0
|
0
|
|
|
|
|
|
800
|
|
|
|
|
|
|
{ |
801
|
0
|
|
|
|
|
|
my $_size18 = 0; |
|
0
|
|
|
|
|
|
|
802
|
0
|
|
|
|
|
|
$self->{types} = []; |
803
|
0
|
|
|
|
|
|
my $_etype21 = 0; |
804
|
0
|
|
|
|
|
|
$xfer += $input->readListBegin(\$_etype21, \$_size18); |
805
|
0
|
|
|
|
|
|
for (my $_i22 = 0; $_i22 < $_size18; ++$_i22) |
806
|
|
|
|
|
|
|
{ |
807
|
0
|
|
|
|
|
|
my $elem23 = undef; |
808
|
0
|
|
|
|
|
|
$elem23 = new Thrift::API::HiveClient2::TTypeEntry(); |
809
|
0
|
|
|
|
|
|
$xfer += $elem23->read($input); |
810
|
0
|
|
|
|
|
|
push(@{$self->{types}},$elem23); |
|
0
|
|
|
|
|
|
|
811
|
|
|
|
|
|
|
} |
812
|
0
|
|
|
|
|
|
$xfer += $input->readListEnd(); |
813
|
|
|
|
|
|
|
} |
814
|
|
|
|
|
|
|
} else { |
815
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
816
|
|
|
|
|
|
|
} |
817
|
0
|
|
|
|
|
|
last; }; |
818
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
819
|
|
|
|
|
|
|
} |
820
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
821
|
|
|
|
|
|
|
} |
822
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
823
|
0
|
|
|
|
|
|
return $xfer; |
824
|
|
|
|
|
|
|
} |
825
|
|
|
|
|
|
|
|
826
|
|
|
|
|
|
|
sub write { |
827
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
828
|
0
|
|
|
|
|
|
my $xfer = 0; |
829
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TTypeDesc'); |
830
|
0
|
0
|
|
|
|
|
if (defined $self->{types}) { |
831
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('types', TType::LIST, 1); |
832
|
|
|
|
|
|
|
{ |
833
|
0
|
|
|
|
|
|
$xfer += $output->writeListBegin(TType::STRUCT, scalar(@{$self->{types}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
834
|
|
|
|
|
|
|
{ |
835
|
0
|
|
|
|
|
|
foreach my $iter24 (@{$self->{types}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
836
|
|
|
|
|
|
|
{ |
837
|
0
|
|
|
|
|
|
$xfer += ${iter24}->write($output); |
838
|
|
|
|
|
|
|
} |
839
|
|
|
|
|
|
|
} |
840
|
0
|
|
|
|
|
|
$xfer += $output->writeListEnd(); |
841
|
|
|
|
|
|
|
} |
842
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
843
|
|
|
|
|
|
|
} |
844
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
845
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
846
|
0
|
|
|
|
|
|
return $xfer; |
847
|
|
|
|
|
|
|
} |
848
|
|
|
|
|
|
|
|
849
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TColumnDesc; |
850
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TColumnDesc::VERSION = '0.024'; |
851
|
|
|
|
|
|
|
{ |
852
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TColumnDesc::DIST = 'Thrift-API-HiveClient2'; |
853
|
|
|
|
|
|
|
} |
854
|
2
|
|
|
2
|
|
17
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1618
|
|
855
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TColumnDesc->mk_accessors( qw( columnName typeDesc position comment ) ); |
856
|
|
|
|
|
|
|
|
857
|
|
|
|
|
|
|
sub new { |
858
|
0
|
|
|
0
|
|
|
my $classname = shift; |
859
|
0
|
|
|
|
|
|
my $self = {}; |
860
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
861
|
0
|
|
|
|
|
|
$self->{columnName} = undef; |
862
|
0
|
|
|
|
|
|
$self->{typeDesc} = undef; |
863
|
0
|
|
|
|
|
|
$self->{position} = undef; |
864
|
0
|
|
|
|
|
|
$self->{comment} = undef; |
865
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
866
|
0
|
0
|
|
|
|
|
if (defined $vals->{columnName}) { |
867
|
0
|
|
|
|
|
|
$self->{columnName} = $vals->{columnName}; |
868
|
|
|
|
|
|
|
} |
869
|
0
|
0
|
|
|
|
|
if (defined $vals->{typeDesc}) { |
870
|
0
|
|
|
|
|
|
$self->{typeDesc} = $vals->{typeDesc}; |
871
|
|
|
|
|
|
|
} |
872
|
0
|
0
|
|
|
|
|
if (defined $vals->{position}) { |
873
|
0
|
|
|
|
|
|
$self->{position} = $vals->{position}; |
874
|
|
|
|
|
|
|
} |
875
|
0
|
0
|
|
|
|
|
if (defined $vals->{comment}) { |
876
|
0
|
|
|
|
|
|
$self->{comment} = $vals->{comment}; |
877
|
|
|
|
|
|
|
} |
878
|
|
|
|
|
|
|
} |
879
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
880
|
|
|
|
|
|
|
} |
881
|
|
|
|
|
|
|
|
882
|
|
|
|
|
|
|
sub getName { |
883
|
0
|
|
|
0
|
|
|
return 'TColumnDesc'; |
884
|
|
|
|
|
|
|
} |
885
|
|
|
|
|
|
|
|
886
|
|
|
|
|
|
|
sub read { |
887
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
888
|
0
|
|
|
|
|
|
my $xfer = 0; |
889
|
0
|
|
|
|
|
|
my $fname; |
890
|
0
|
|
|
|
|
|
my $ftype = 0; |
891
|
0
|
|
|
|
|
|
my $fid = 0; |
892
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
893
|
0
|
|
|
|
|
|
while (1) |
894
|
|
|
|
|
|
|
{ |
895
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
896
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
897
|
0
|
|
|
|
|
|
last; |
898
|
|
|
|
|
|
|
} |
899
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
900
|
|
|
|
|
|
|
{ |
901
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
902
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{columnName}); |
903
|
|
|
|
|
|
|
} else { |
904
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
905
|
|
|
|
|
|
|
} |
906
|
0
|
|
|
|
|
|
last; }; |
907
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
908
|
0
|
|
|
|
|
|
$self->{typeDesc} = new Thrift::API::HiveClient2::TTypeDesc(); |
909
|
0
|
|
|
|
|
|
$xfer += $self->{typeDesc}->read($input); |
910
|
|
|
|
|
|
|
} else { |
911
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
912
|
|
|
|
|
|
|
} |
913
|
0
|
|
|
|
|
|
last; }; |
914
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
915
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{position}); |
916
|
|
|
|
|
|
|
} else { |
917
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
918
|
|
|
|
|
|
|
} |
919
|
0
|
|
|
|
|
|
last; }; |
920
|
0
|
0
|
|
|
|
|
/^4$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
921
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{comment}); |
922
|
|
|
|
|
|
|
} else { |
923
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
924
|
|
|
|
|
|
|
} |
925
|
0
|
|
|
|
|
|
last; }; |
926
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
927
|
|
|
|
|
|
|
} |
928
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
929
|
|
|
|
|
|
|
} |
930
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
931
|
0
|
|
|
|
|
|
return $xfer; |
932
|
|
|
|
|
|
|
} |
933
|
|
|
|
|
|
|
|
934
|
|
|
|
|
|
|
sub write { |
935
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
936
|
0
|
|
|
|
|
|
my $xfer = 0; |
937
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TColumnDesc'); |
938
|
0
|
0
|
|
|
|
|
if (defined $self->{columnName}) { |
939
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('columnName', TType::STRING, 1); |
940
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{columnName}); |
941
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
942
|
|
|
|
|
|
|
} |
943
|
0
|
0
|
|
|
|
|
if (defined $self->{typeDesc}) { |
944
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('typeDesc', TType::STRUCT, 2); |
945
|
0
|
|
|
|
|
|
$xfer += $self->{typeDesc}->write($output); |
946
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
947
|
|
|
|
|
|
|
} |
948
|
0
|
0
|
|
|
|
|
if (defined $self->{position}) { |
949
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('position', TType::I32, 3); |
950
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{position}); |
951
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
952
|
|
|
|
|
|
|
} |
953
|
0
|
0
|
|
|
|
|
if (defined $self->{comment}) { |
954
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('comment', TType::STRING, 4); |
955
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{comment}); |
956
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
957
|
|
|
|
|
|
|
} |
958
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
959
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
960
|
0
|
|
|
|
|
|
return $xfer; |
961
|
|
|
|
|
|
|
} |
962
|
|
|
|
|
|
|
|
963
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TTableSchema; |
964
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TTableSchema::VERSION = '0.024'; |
965
|
|
|
|
|
|
|
{ |
966
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TTableSchema::DIST = 'Thrift-API-HiveClient2'; |
967
|
|
|
|
|
|
|
} |
968
|
2
|
|
|
2
|
|
15
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
27
|
|
|
2
|
|
|
|
|
1256
|
|
969
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TTableSchema->mk_accessors( qw( columns ) ); |
970
|
|
|
|
|
|
|
|
971
|
|
|
|
|
|
|
sub new { |
972
|
0
|
|
|
0
|
|
|
my $classname = shift; |
973
|
0
|
|
|
|
|
|
my $self = {}; |
974
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
975
|
0
|
|
|
|
|
|
$self->{columns} = undef; |
976
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
977
|
0
|
0
|
|
|
|
|
if (defined $vals->{columns}) { |
978
|
0
|
|
|
|
|
|
$self->{columns} = $vals->{columns}; |
979
|
|
|
|
|
|
|
} |
980
|
|
|
|
|
|
|
} |
981
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
982
|
|
|
|
|
|
|
} |
983
|
|
|
|
|
|
|
|
984
|
|
|
|
|
|
|
sub getName { |
985
|
0
|
|
|
0
|
|
|
return 'TTableSchema'; |
986
|
|
|
|
|
|
|
} |
987
|
|
|
|
|
|
|
|
988
|
|
|
|
|
|
|
sub read { |
989
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
990
|
0
|
|
|
|
|
|
my $xfer = 0; |
991
|
0
|
|
|
|
|
|
my $fname; |
992
|
0
|
|
|
|
|
|
my $ftype = 0; |
993
|
0
|
|
|
|
|
|
my $fid = 0; |
994
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
995
|
0
|
|
|
|
|
|
while (1) |
996
|
|
|
|
|
|
|
{ |
997
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
998
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
999
|
0
|
|
|
|
|
|
last; |
1000
|
|
|
|
|
|
|
} |
1001
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
1002
|
|
|
|
|
|
|
{ |
1003
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::LIST) { |
|
0
|
0
|
|
|
|
|
|
1004
|
|
|
|
|
|
|
{ |
1005
|
0
|
|
|
|
|
|
my $_size25 = 0; |
|
0
|
|
|
|
|
|
|
1006
|
0
|
|
|
|
|
|
$self->{columns} = []; |
1007
|
0
|
|
|
|
|
|
my $_etype28 = 0; |
1008
|
0
|
|
|
|
|
|
$xfer += $input->readListBegin(\$_etype28, \$_size25); |
1009
|
0
|
|
|
|
|
|
for (my $_i29 = 0; $_i29 < $_size25; ++$_i29) |
1010
|
|
|
|
|
|
|
{ |
1011
|
0
|
|
|
|
|
|
my $elem30 = undef; |
1012
|
0
|
|
|
|
|
|
$elem30 = new Thrift::API::HiveClient2::TColumnDesc(); |
1013
|
0
|
|
|
|
|
|
$xfer += $elem30->read($input); |
1014
|
0
|
|
|
|
|
|
push(@{$self->{columns}},$elem30); |
|
0
|
|
|
|
|
|
|
1015
|
|
|
|
|
|
|
} |
1016
|
0
|
|
|
|
|
|
$xfer += $input->readListEnd(); |
1017
|
|
|
|
|
|
|
} |
1018
|
|
|
|
|
|
|
} else { |
1019
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1020
|
|
|
|
|
|
|
} |
1021
|
0
|
|
|
|
|
|
last; }; |
1022
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1023
|
|
|
|
|
|
|
} |
1024
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
1025
|
|
|
|
|
|
|
} |
1026
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
1027
|
0
|
|
|
|
|
|
return $xfer; |
1028
|
|
|
|
|
|
|
} |
1029
|
|
|
|
|
|
|
|
1030
|
|
|
|
|
|
|
sub write { |
1031
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
1032
|
0
|
|
|
|
|
|
my $xfer = 0; |
1033
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TTableSchema'); |
1034
|
0
|
0
|
|
|
|
|
if (defined $self->{columns}) { |
1035
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('columns', TType::LIST, 1); |
1036
|
|
|
|
|
|
|
{ |
1037
|
0
|
|
|
|
|
|
$xfer += $output->writeListBegin(TType::STRUCT, scalar(@{$self->{columns}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1038
|
|
|
|
|
|
|
{ |
1039
|
0
|
|
|
|
|
|
foreach my $iter31 (@{$self->{columns}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1040
|
|
|
|
|
|
|
{ |
1041
|
0
|
|
|
|
|
|
$xfer += ${iter31}->write($output); |
1042
|
|
|
|
|
|
|
} |
1043
|
|
|
|
|
|
|
} |
1044
|
0
|
|
|
|
|
|
$xfer += $output->writeListEnd(); |
1045
|
|
|
|
|
|
|
} |
1046
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1047
|
|
|
|
|
|
|
} |
1048
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
1049
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
1050
|
0
|
|
|
|
|
|
return $xfer; |
1051
|
|
|
|
|
|
|
} |
1052
|
|
|
|
|
|
|
|
1053
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TBoolValue; |
1054
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TBoolValue::VERSION = '0.024'; |
1055
|
|
|
|
|
|
|
{ |
1056
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TBoolValue::DIST = 'Thrift-API-HiveClient2'; |
1057
|
|
|
|
|
|
|
} |
1058
|
2
|
|
|
2
|
|
16
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
12
|
|
|
2
|
|
|
|
|
1034
|
|
1059
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TBoolValue->mk_accessors( qw( value ) ); |
1060
|
|
|
|
|
|
|
|
1061
|
|
|
|
|
|
|
sub new { |
1062
|
0
|
|
|
0
|
|
|
my $classname = shift; |
1063
|
0
|
|
|
|
|
|
my $self = {}; |
1064
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
1065
|
0
|
|
|
|
|
|
$self->{value} = undef; |
1066
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
1067
|
0
|
0
|
|
|
|
|
if (defined $vals->{value}) { |
1068
|
0
|
|
|
|
|
|
$self->{value} = $vals->{value}; |
1069
|
|
|
|
|
|
|
} |
1070
|
|
|
|
|
|
|
} |
1071
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
1072
|
|
|
|
|
|
|
} |
1073
|
|
|
|
|
|
|
|
1074
|
|
|
|
|
|
|
sub getName { |
1075
|
0
|
|
|
0
|
|
|
return 'TBoolValue'; |
1076
|
|
|
|
|
|
|
} |
1077
|
|
|
|
|
|
|
|
1078
|
|
|
|
|
|
|
sub read { |
1079
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
1080
|
0
|
|
|
|
|
|
my $xfer = 0; |
1081
|
0
|
|
|
|
|
|
my $fname; |
1082
|
0
|
|
|
|
|
|
my $ftype = 0; |
1083
|
0
|
|
|
|
|
|
my $fid = 0; |
1084
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
1085
|
0
|
|
|
|
|
|
while (1) |
1086
|
|
|
|
|
|
|
{ |
1087
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
1088
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
1089
|
0
|
|
|
|
|
|
last; |
1090
|
|
|
|
|
|
|
} |
1091
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
1092
|
|
|
|
|
|
|
{ |
1093
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::BOOL) { |
|
0
|
0
|
|
|
|
|
|
1094
|
0
|
|
|
|
|
|
$xfer += $input->readBool(\$self->{value}); |
1095
|
|
|
|
|
|
|
} else { |
1096
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1097
|
|
|
|
|
|
|
} |
1098
|
0
|
|
|
|
|
|
last; }; |
1099
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1100
|
|
|
|
|
|
|
} |
1101
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
1102
|
|
|
|
|
|
|
} |
1103
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
1104
|
0
|
|
|
|
|
|
return $xfer; |
1105
|
|
|
|
|
|
|
} |
1106
|
|
|
|
|
|
|
|
1107
|
|
|
|
|
|
|
sub write { |
1108
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
1109
|
0
|
|
|
|
|
|
my $xfer = 0; |
1110
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TBoolValue'); |
1111
|
0
|
0
|
|
|
|
|
if (defined $self->{value}) { |
1112
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('value', TType::BOOL, 1); |
1113
|
0
|
|
|
|
|
|
$xfer += $output->writeBool($self->{value}); |
1114
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1115
|
|
|
|
|
|
|
} |
1116
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
1117
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
1118
|
0
|
|
|
|
|
|
return $xfer; |
1119
|
|
|
|
|
|
|
} |
1120
|
|
|
|
|
|
|
|
1121
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TByteValue; |
1122
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TByteValue::VERSION = '0.024'; |
1123
|
|
|
|
|
|
|
{ |
1124
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TByteValue::DIST = 'Thrift-API-HiveClient2'; |
1125
|
|
|
|
|
|
|
} |
1126
|
2
|
|
|
2
|
|
23
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
13
|
|
|
2
|
|
|
|
|
1008
|
|
1127
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TByteValue->mk_accessors( qw( value ) ); |
1128
|
|
|
|
|
|
|
|
1129
|
|
|
|
|
|
|
sub new { |
1130
|
0
|
|
|
0
|
|
|
my $classname = shift; |
1131
|
0
|
|
|
|
|
|
my $self = {}; |
1132
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
1133
|
0
|
|
|
|
|
|
$self->{value} = undef; |
1134
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
1135
|
0
|
0
|
|
|
|
|
if (defined $vals->{value}) { |
1136
|
0
|
|
|
|
|
|
$self->{value} = $vals->{value}; |
1137
|
|
|
|
|
|
|
} |
1138
|
|
|
|
|
|
|
} |
1139
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
1140
|
|
|
|
|
|
|
} |
1141
|
|
|
|
|
|
|
|
1142
|
|
|
|
|
|
|
sub getName { |
1143
|
0
|
|
|
0
|
|
|
return 'TByteValue'; |
1144
|
|
|
|
|
|
|
} |
1145
|
|
|
|
|
|
|
|
1146
|
|
|
|
|
|
|
sub read { |
1147
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
1148
|
0
|
|
|
|
|
|
my $xfer = 0; |
1149
|
0
|
|
|
|
|
|
my $fname; |
1150
|
0
|
|
|
|
|
|
my $ftype = 0; |
1151
|
0
|
|
|
|
|
|
my $fid = 0; |
1152
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
1153
|
0
|
|
|
|
|
|
while (1) |
1154
|
|
|
|
|
|
|
{ |
1155
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
1156
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
1157
|
0
|
|
|
|
|
|
last; |
1158
|
|
|
|
|
|
|
} |
1159
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
1160
|
|
|
|
|
|
|
{ |
1161
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::BYTE) { |
|
0
|
0
|
|
|
|
|
|
1162
|
0
|
|
|
|
|
|
$xfer += $input->readByte(\$self->{value}); |
1163
|
|
|
|
|
|
|
} else { |
1164
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1165
|
|
|
|
|
|
|
} |
1166
|
0
|
|
|
|
|
|
last; }; |
1167
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1168
|
|
|
|
|
|
|
} |
1169
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
1170
|
|
|
|
|
|
|
} |
1171
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
1172
|
0
|
|
|
|
|
|
return $xfer; |
1173
|
|
|
|
|
|
|
} |
1174
|
|
|
|
|
|
|
|
1175
|
|
|
|
|
|
|
sub write { |
1176
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
1177
|
0
|
|
|
|
|
|
my $xfer = 0; |
1178
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TByteValue'); |
1179
|
0
|
0
|
|
|
|
|
if (defined $self->{value}) { |
1180
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('value', TType::BYTE, 1); |
1181
|
0
|
|
|
|
|
|
$xfer += $output->writeByte($self->{value}); |
1182
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1183
|
|
|
|
|
|
|
} |
1184
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
1185
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
1186
|
0
|
|
|
|
|
|
return $xfer; |
1187
|
|
|
|
|
|
|
} |
1188
|
|
|
|
|
|
|
|
1189
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TI16Value; |
1190
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TI16Value::VERSION = '0.024'; |
1191
|
|
|
|
|
|
|
{ |
1192
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TI16Value::DIST = 'Thrift-API-HiveClient2'; |
1193
|
|
|
|
|
|
|
} |
1194
|
2
|
|
|
2
|
|
17
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1019
|
|
1195
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TI16Value->mk_accessors( qw( value ) ); |
1196
|
|
|
|
|
|
|
|
1197
|
|
|
|
|
|
|
sub new { |
1198
|
0
|
|
|
0
|
|
|
my $classname = shift; |
1199
|
0
|
|
|
|
|
|
my $self = {}; |
1200
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
1201
|
0
|
|
|
|
|
|
$self->{value} = undef; |
1202
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
1203
|
0
|
0
|
|
|
|
|
if (defined $vals->{value}) { |
1204
|
0
|
|
|
|
|
|
$self->{value} = $vals->{value}; |
1205
|
|
|
|
|
|
|
} |
1206
|
|
|
|
|
|
|
} |
1207
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
1208
|
|
|
|
|
|
|
} |
1209
|
|
|
|
|
|
|
|
1210
|
|
|
|
|
|
|
sub getName { |
1211
|
0
|
|
|
0
|
|
|
return 'TI16Value'; |
1212
|
|
|
|
|
|
|
} |
1213
|
|
|
|
|
|
|
|
1214
|
|
|
|
|
|
|
sub read { |
1215
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
1216
|
0
|
|
|
|
|
|
my $xfer = 0; |
1217
|
0
|
|
|
|
|
|
my $fname; |
1218
|
0
|
|
|
|
|
|
my $ftype = 0; |
1219
|
0
|
|
|
|
|
|
my $fid = 0; |
1220
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
1221
|
0
|
|
|
|
|
|
while (1) |
1222
|
|
|
|
|
|
|
{ |
1223
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
1224
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
1225
|
0
|
|
|
|
|
|
last; |
1226
|
|
|
|
|
|
|
} |
1227
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
1228
|
|
|
|
|
|
|
{ |
1229
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::I16) { |
|
0
|
0
|
|
|
|
|
|
1230
|
0
|
|
|
|
|
|
$xfer += $input->readI16(\$self->{value}); |
1231
|
|
|
|
|
|
|
} else { |
1232
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1233
|
|
|
|
|
|
|
} |
1234
|
0
|
|
|
|
|
|
last; }; |
1235
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1236
|
|
|
|
|
|
|
} |
1237
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
1238
|
|
|
|
|
|
|
} |
1239
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
1240
|
0
|
|
|
|
|
|
return $xfer; |
1241
|
|
|
|
|
|
|
} |
1242
|
|
|
|
|
|
|
|
1243
|
|
|
|
|
|
|
sub write { |
1244
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
1245
|
0
|
|
|
|
|
|
my $xfer = 0; |
1246
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TI16Value'); |
1247
|
0
|
0
|
|
|
|
|
if (defined $self->{value}) { |
1248
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('value', TType::I16, 1); |
1249
|
0
|
|
|
|
|
|
$xfer += $output->writeI16($self->{value}); |
1250
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1251
|
|
|
|
|
|
|
} |
1252
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
1253
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
1254
|
0
|
|
|
|
|
|
return $xfer; |
1255
|
|
|
|
|
|
|
} |
1256
|
|
|
|
|
|
|
|
1257
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TI32Value; |
1258
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TI32Value::VERSION = '0.024'; |
1259
|
|
|
|
|
|
|
{ |
1260
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TI32Value::DIST = 'Thrift-API-HiveClient2'; |
1261
|
|
|
|
|
|
|
} |
1262
|
2
|
|
|
2
|
|
16
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
977
|
|
1263
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TI32Value->mk_accessors( qw( value ) ); |
1264
|
|
|
|
|
|
|
|
1265
|
|
|
|
|
|
|
sub new { |
1266
|
0
|
|
|
0
|
|
|
my $classname = shift; |
1267
|
0
|
|
|
|
|
|
my $self = {}; |
1268
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
1269
|
0
|
|
|
|
|
|
$self->{value} = undef; |
1270
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
1271
|
0
|
0
|
|
|
|
|
if (defined $vals->{value}) { |
1272
|
0
|
|
|
|
|
|
$self->{value} = $vals->{value}; |
1273
|
|
|
|
|
|
|
} |
1274
|
|
|
|
|
|
|
} |
1275
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
1276
|
|
|
|
|
|
|
} |
1277
|
|
|
|
|
|
|
|
1278
|
|
|
|
|
|
|
sub getName { |
1279
|
0
|
|
|
0
|
|
|
return 'TI32Value'; |
1280
|
|
|
|
|
|
|
} |
1281
|
|
|
|
|
|
|
|
1282
|
|
|
|
|
|
|
sub read { |
1283
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
1284
|
0
|
|
|
|
|
|
my $xfer = 0; |
1285
|
0
|
|
|
|
|
|
my $fname; |
1286
|
0
|
|
|
|
|
|
my $ftype = 0; |
1287
|
0
|
|
|
|
|
|
my $fid = 0; |
1288
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
1289
|
0
|
|
|
|
|
|
while (1) |
1290
|
|
|
|
|
|
|
{ |
1291
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
1292
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
1293
|
0
|
|
|
|
|
|
last; |
1294
|
|
|
|
|
|
|
} |
1295
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
1296
|
|
|
|
|
|
|
{ |
1297
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
1298
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{value}); |
1299
|
|
|
|
|
|
|
} else { |
1300
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1301
|
|
|
|
|
|
|
} |
1302
|
0
|
|
|
|
|
|
last; }; |
1303
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1304
|
|
|
|
|
|
|
} |
1305
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
1306
|
|
|
|
|
|
|
} |
1307
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
1308
|
0
|
|
|
|
|
|
return $xfer; |
1309
|
|
|
|
|
|
|
} |
1310
|
|
|
|
|
|
|
|
1311
|
|
|
|
|
|
|
sub write { |
1312
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
1313
|
0
|
|
|
|
|
|
my $xfer = 0; |
1314
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TI32Value'); |
1315
|
0
|
0
|
|
|
|
|
if (defined $self->{value}) { |
1316
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('value', TType::I32, 1); |
1317
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{value}); |
1318
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1319
|
|
|
|
|
|
|
} |
1320
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
1321
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
1322
|
0
|
|
|
|
|
|
return $xfer; |
1323
|
|
|
|
|
|
|
} |
1324
|
|
|
|
|
|
|
|
1325
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TI64Value; |
1326
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TI64Value::VERSION = '0.024'; |
1327
|
|
|
|
|
|
|
{ |
1328
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TI64Value::DIST = 'Thrift-API-HiveClient2'; |
1329
|
|
|
|
|
|
|
} |
1330
|
2
|
|
|
2
|
|
16
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
951
|
|
1331
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TI64Value->mk_accessors( qw( value ) ); |
1332
|
|
|
|
|
|
|
|
1333
|
|
|
|
|
|
|
sub new { |
1334
|
0
|
|
|
0
|
|
|
my $classname = shift; |
1335
|
0
|
|
|
|
|
|
my $self = {}; |
1336
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
1337
|
0
|
|
|
|
|
|
$self->{value} = undef; |
1338
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
1339
|
0
|
0
|
|
|
|
|
if (defined $vals->{value}) { |
1340
|
0
|
|
|
|
|
|
$self->{value} = $vals->{value}; |
1341
|
|
|
|
|
|
|
} |
1342
|
|
|
|
|
|
|
} |
1343
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
1344
|
|
|
|
|
|
|
} |
1345
|
|
|
|
|
|
|
|
1346
|
|
|
|
|
|
|
sub getName { |
1347
|
0
|
|
|
0
|
|
|
return 'TI64Value'; |
1348
|
|
|
|
|
|
|
} |
1349
|
|
|
|
|
|
|
|
1350
|
|
|
|
|
|
|
sub read { |
1351
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
1352
|
0
|
|
|
|
|
|
my $xfer = 0; |
1353
|
0
|
|
|
|
|
|
my $fname; |
1354
|
0
|
|
|
|
|
|
my $ftype = 0; |
1355
|
0
|
|
|
|
|
|
my $fid = 0; |
1356
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
1357
|
0
|
|
|
|
|
|
while (1) |
1358
|
|
|
|
|
|
|
{ |
1359
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
1360
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
1361
|
0
|
|
|
|
|
|
last; |
1362
|
|
|
|
|
|
|
} |
1363
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
1364
|
|
|
|
|
|
|
{ |
1365
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::I64) { |
|
0
|
0
|
|
|
|
|
|
1366
|
0
|
|
|
|
|
|
$xfer += $input->readI64(\$self->{value}); |
1367
|
|
|
|
|
|
|
} else { |
1368
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1369
|
|
|
|
|
|
|
} |
1370
|
0
|
|
|
|
|
|
last; }; |
1371
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1372
|
|
|
|
|
|
|
} |
1373
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
1374
|
|
|
|
|
|
|
} |
1375
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
1376
|
0
|
|
|
|
|
|
return $xfer; |
1377
|
|
|
|
|
|
|
} |
1378
|
|
|
|
|
|
|
|
1379
|
|
|
|
|
|
|
sub write { |
1380
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
1381
|
0
|
|
|
|
|
|
my $xfer = 0; |
1382
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TI64Value'); |
1383
|
0
|
0
|
|
|
|
|
if (defined $self->{value}) { |
1384
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('value', TType::I64, 1); |
1385
|
0
|
|
|
|
|
|
$xfer += $output->writeI64($self->{value}); |
1386
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1387
|
|
|
|
|
|
|
} |
1388
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
1389
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
1390
|
0
|
|
|
|
|
|
return $xfer; |
1391
|
|
|
|
|
|
|
} |
1392
|
|
|
|
|
|
|
|
1393
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TDoubleValue; |
1394
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TDoubleValue::VERSION = '0.024'; |
1395
|
|
|
|
|
|
|
{ |
1396
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TDoubleValue::DIST = 'Thrift-API-HiveClient2'; |
1397
|
|
|
|
|
|
|
} |
1398
|
2
|
|
|
2
|
|
15
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
13
|
|
|
2
|
|
|
|
|
996
|
|
1399
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TDoubleValue->mk_accessors( qw( value ) ); |
1400
|
|
|
|
|
|
|
|
1401
|
|
|
|
|
|
|
sub new { |
1402
|
0
|
|
|
0
|
|
|
my $classname = shift; |
1403
|
0
|
|
|
|
|
|
my $self = {}; |
1404
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
1405
|
0
|
|
|
|
|
|
$self->{value} = undef; |
1406
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
1407
|
0
|
0
|
|
|
|
|
if (defined $vals->{value}) { |
1408
|
0
|
|
|
|
|
|
$self->{value} = $vals->{value}; |
1409
|
|
|
|
|
|
|
} |
1410
|
|
|
|
|
|
|
} |
1411
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
1412
|
|
|
|
|
|
|
} |
1413
|
|
|
|
|
|
|
|
1414
|
|
|
|
|
|
|
sub getName { |
1415
|
0
|
|
|
0
|
|
|
return 'TDoubleValue'; |
1416
|
|
|
|
|
|
|
} |
1417
|
|
|
|
|
|
|
|
1418
|
|
|
|
|
|
|
sub read { |
1419
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
1420
|
0
|
|
|
|
|
|
my $xfer = 0; |
1421
|
0
|
|
|
|
|
|
my $fname; |
1422
|
0
|
|
|
|
|
|
my $ftype = 0; |
1423
|
0
|
|
|
|
|
|
my $fid = 0; |
1424
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
1425
|
0
|
|
|
|
|
|
while (1) |
1426
|
|
|
|
|
|
|
{ |
1427
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
1428
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
1429
|
0
|
|
|
|
|
|
last; |
1430
|
|
|
|
|
|
|
} |
1431
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
1432
|
|
|
|
|
|
|
{ |
1433
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::DOUBLE) { |
|
0
|
0
|
|
|
|
|
|
1434
|
0
|
|
|
|
|
|
$xfer += $input->readDouble(\$self->{value}); |
1435
|
|
|
|
|
|
|
} else { |
1436
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1437
|
|
|
|
|
|
|
} |
1438
|
0
|
|
|
|
|
|
last; }; |
1439
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1440
|
|
|
|
|
|
|
} |
1441
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
1442
|
|
|
|
|
|
|
} |
1443
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
1444
|
0
|
|
|
|
|
|
return $xfer; |
1445
|
|
|
|
|
|
|
} |
1446
|
|
|
|
|
|
|
|
1447
|
|
|
|
|
|
|
sub write { |
1448
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
1449
|
0
|
|
|
|
|
|
my $xfer = 0; |
1450
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TDoubleValue'); |
1451
|
0
|
0
|
|
|
|
|
if (defined $self->{value}) { |
1452
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('value', TType::DOUBLE, 1); |
1453
|
0
|
|
|
|
|
|
$xfer += $output->writeDouble($self->{value}); |
1454
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1455
|
|
|
|
|
|
|
} |
1456
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
1457
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
1458
|
0
|
|
|
|
|
|
return $xfer; |
1459
|
|
|
|
|
|
|
} |
1460
|
|
|
|
|
|
|
|
1461
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TStringValue; |
1462
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TStringValue::VERSION = '0.024'; |
1463
|
|
|
|
|
|
|
{ |
1464
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TStringValue::DIST = 'Thrift-API-HiveClient2'; |
1465
|
|
|
|
|
|
|
} |
1466
|
2
|
|
|
2
|
|
15
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
1025
|
|
1467
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TStringValue->mk_accessors( qw( value ) ); |
1468
|
|
|
|
|
|
|
|
1469
|
|
|
|
|
|
|
sub new { |
1470
|
0
|
|
|
0
|
|
|
my $classname = shift; |
1471
|
0
|
|
|
|
|
|
my $self = {}; |
1472
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
1473
|
0
|
|
|
|
|
|
$self->{value} = undef; |
1474
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
1475
|
0
|
0
|
|
|
|
|
if (defined $vals->{value}) { |
1476
|
0
|
|
|
|
|
|
$self->{value} = $vals->{value}; |
1477
|
|
|
|
|
|
|
} |
1478
|
|
|
|
|
|
|
} |
1479
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
1480
|
|
|
|
|
|
|
} |
1481
|
|
|
|
|
|
|
|
1482
|
|
|
|
|
|
|
sub getName { |
1483
|
0
|
|
|
0
|
|
|
return 'TStringValue'; |
1484
|
|
|
|
|
|
|
} |
1485
|
|
|
|
|
|
|
|
1486
|
|
|
|
|
|
|
sub read { |
1487
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
1488
|
0
|
|
|
|
|
|
my $xfer = 0; |
1489
|
0
|
|
|
|
|
|
my $fname; |
1490
|
0
|
|
|
|
|
|
my $ftype = 0; |
1491
|
0
|
|
|
|
|
|
my $fid = 0; |
1492
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
1493
|
0
|
|
|
|
|
|
while (1) |
1494
|
|
|
|
|
|
|
{ |
1495
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
1496
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
1497
|
0
|
|
|
|
|
|
last; |
1498
|
|
|
|
|
|
|
} |
1499
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
1500
|
|
|
|
|
|
|
{ |
1501
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
1502
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{value}); |
1503
|
|
|
|
|
|
|
} else { |
1504
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1505
|
|
|
|
|
|
|
} |
1506
|
0
|
|
|
|
|
|
last; }; |
1507
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1508
|
|
|
|
|
|
|
} |
1509
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
1510
|
|
|
|
|
|
|
} |
1511
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
1512
|
0
|
|
|
|
|
|
return $xfer; |
1513
|
|
|
|
|
|
|
} |
1514
|
|
|
|
|
|
|
|
1515
|
|
|
|
|
|
|
sub write { |
1516
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
1517
|
0
|
|
|
|
|
|
my $xfer = 0; |
1518
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TStringValue'); |
1519
|
0
|
0
|
|
|
|
|
if (defined $self->{value}) { |
1520
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('value', TType::STRING, 1); |
1521
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{value}); |
1522
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1523
|
|
|
|
|
|
|
} |
1524
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
1525
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
1526
|
0
|
|
|
|
|
|
return $xfer; |
1527
|
|
|
|
|
|
|
} |
1528
|
|
|
|
|
|
|
|
1529
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TColumn; |
1530
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TColumn::VERSION = '0.024'; |
1531
|
|
|
|
|
|
|
{ |
1532
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TColumn::DIST = 'Thrift-API-HiveClient2'; |
1533
|
|
|
|
|
|
|
} |
1534
|
2
|
|
|
2
|
|
16
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
3783
|
|
1535
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TColumn->mk_accessors( qw( boolColumn byteColumn i16Column i32Column i64Column doubleColumn stringColumn ) ); |
1536
|
|
|
|
|
|
|
|
1537
|
|
|
|
|
|
|
sub new { |
1538
|
0
|
|
|
0
|
|
|
my $classname = shift; |
1539
|
0
|
|
|
|
|
|
my $self = {}; |
1540
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
1541
|
0
|
|
|
|
|
|
$self->{boolColumn} = undef; |
1542
|
0
|
|
|
|
|
|
$self->{byteColumn} = undef; |
1543
|
0
|
|
|
|
|
|
$self->{i16Column} = undef; |
1544
|
0
|
|
|
|
|
|
$self->{i32Column} = undef; |
1545
|
0
|
|
|
|
|
|
$self->{i64Column} = undef; |
1546
|
0
|
|
|
|
|
|
$self->{doubleColumn} = undef; |
1547
|
0
|
|
|
|
|
|
$self->{stringColumn} = undef; |
1548
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
1549
|
0
|
0
|
|
|
|
|
if (defined $vals->{boolColumn}) { |
1550
|
0
|
|
|
|
|
|
$self->{boolColumn} = $vals->{boolColumn}; |
1551
|
|
|
|
|
|
|
} |
1552
|
0
|
0
|
|
|
|
|
if (defined $vals->{byteColumn}) { |
1553
|
0
|
|
|
|
|
|
$self->{byteColumn} = $vals->{byteColumn}; |
1554
|
|
|
|
|
|
|
} |
1555
|
0
|
0
|
|
|
|
|
if (defined $vals->{i16Column}) { |
1556
|
0
|
|
|
|
|
|
$self->{i16Column} = $vals->{i16Column}; |
1557
|
|
|
|
|
|
|
} |
1558
|
0
|
0
|
|
|
|
|
if (defined $vals->{i32Column}) { |
1559
|
0
|
|
|
|
|
|
$self->{i32Column} = $vals->{i32Column}; |
1560
|
|
|
|
|
|
|
} |
1561
|
0
|
0
|
|
|
|
|
if (defined $vals->{i64Column}) { |
1562
|
0
|
|
|
|
|
|
$self->{i64Column} = $vals->{i64Column}; |
1563
|
|
|
|
|
|
|
} |
1564
|
0
|
0
|
|
|
|
|
if (defined $vals->{doubleColumn}) { |
1565
|
0
|
|
|
|
|
|
$self->{doubleColumn} = $vals->{doubleColumn}; |
1566
|
|
|
|
|
|
|
} |
1567
|
0
|
0
|
|
|
|
|
if (defined $vals->{stringColumn}) { |
1568
|
0
|
|
|
|
|
|
$self->{stringColumn} = $vals->{stringColumn}; |
1569
|
|
|
|
|
|
|
} |
1570
|
|
|
|
|
|
|
} |
1571
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
1572
|
|
|
|
|
|
|
} |
1573
|
|
|
|
|
|
|
|
1574
|
|
|
|
|
|
|
sub getName { |
1575
|
0
|
|
|
0
|
|
|
return 'TColumn'; |
1576
|
|
|
|
|
|
|
} |
1577
|
|
|
|
|
|
|
|
1578
|
|
|
|
|
|
|
sub read { |
1579
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
1580
|
0
|
|
|
|
|
|
my $xfer = 0; |
1581
|
0
|
|
|
|
|
|
my $fname; |
1582
|
0
|
|
|
|
|
|
my $ftype = 0; |
1583
|
0
|
|
|
|
|
|
my $fid = 0; |
1584
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
1585
|
0
|
|
|
|
|
|
while (1) |
1586
|
|
|
|
|
|
|
{ |
1587
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
1588
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
1589
|
0
|
|
|
|
|
|
last; |
1590
|
|
|
|
|
|
|
} |
1591
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
1592
|
|
|
|
|
|
|
{ |
1593
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::LIST) { |
|
0
|
0
|
|
|
|
|
|
1594
|
|
|
|
|
|
|
{ |
1595
|
0
|
|
|
|
|
|
my $_size32 = 0; |
|
0
|
|
|
|
|
|
|
1596
|
0
|
|
|
|
|
|
$self->{boolColumn} = []; |
1597
|
0
|
|
|
|
|
|
my $_etype35 = 0; |
1598
|
0
|
|
|
|
|
|
$xfer += $input->readListBegin(\$_etype35, \$_size32); |
1599
|
0
|
|
|
|
|
|
for (my $_i36 = 0; $_i36 < $_size32; ++$_i36) |
1600
|
|
|
|
|
|
|
{ |
1601
|
0
|
|
|
|
|
|
my $elem37 = undef; |
1602
|
0
|
|
|
|
|
|
$elem37 = new Thrift::API::HiveClient2::TBoolValue(); |
1603
|
0
|
|
|
|
|
|
$xfer += $elem37->read($input); |
1604
|
0
|
|
|
|
|
|
push(@{$self->{boolColumn}},$elem37); |
|
0
|
|
|
|
|
|
|
1605
|
|
|
|
|
|
|
} |
1606
|
0
|
|
|
|
|
|
$xfer += $input->readListEnd(); |
1607
|
|
|
|
|
|
|
} |
1608
|
|
|
|
|
|
|
} else { |
1609
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1610
|
|
|
|
|
|
|
} |
1611
|
0
|
|
|
|
|
|
last; }; |
1612
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::LIST) { |
|
0
|
0
|
|
|
|
|
|
1613
|
|
|
|
|
|
|
{ |
1614
|
0
|
|
|
|
|
|
my $_size38 = 0; |
|
0
|
|
|
|
|
|
|
1615
|
0
|
|
|
|
|
|
$self->{byteColumn} = []; |
1616
|
0
|
|
|
|
|
|
my $_etype41 = 0; |
1617
|
0
|
|
|
|
|
|
$xfer += $input->readListBegin(\$_etype41, \$_size38); |
1618
|
0
|
|
|
|
|
|
for (my $_i42 = 0; $_i42 < $_size38; ++$_i42) |
1619
|
|
|
|
|
|
|
{ |
1620
|
0
|
|
|
|
|
|
my $elem43 = undef; |
1621
|
0
|
|
|
|
|
|
$elem43 = new Thrift::API::HiveClient2::TByteValue(); |
1622
|
0
|
|
|
|
|
|
$xfer += $elem43->read($input); |
1623
|
0
|
|
|
|
|
|
push(@{$self->{byteColumn}},$elem43); |
|
0
|
|
|
|
|
|
|
1624
|
|
|
|
|
|
|
} |
1625
|
0
|
|
|
|
|
|
$xfer += $input->readListEnd(); |
1626
|
|
|
|
|
|
|
} |
1627
|
|
|
|
|
|
|
} else { |
1628
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1629
|
|
|
|
|
|
|
} |
1630
|
0
|
|
|
|
|
|
last; }; |
1631
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::LIST) { |
|
0
|
0
|
|
|
|
|
|
1632
|
|
|
|
|
|
|
{ |
1633
|
0
|
|
|
|
|
|
my $_size44 = 0; |
|
0
|
|
|
|
|
|
|
1634
|
0
|
|
|
|
|
|
$self->{i16Column} = []; |
1635
|
0
|
|
|
|
|
|
my $_etype47 = 0; |
1636
|
0
|
|
|
|
|
|
$xfer += $input->readListBegin(\$_etype47, \$_size44); |
1637
|
0
|
|
|
|
|
|
for (my $_i48 = 0; $_i48 < $_size44; ++$_i48) |
1638
|
|
|
|
|
|
|
{ |
1639
|
0
|
|
|
|
|
|
my $elem49 = undef; |
1640
|
0
|
|
|
|
|
|
$elem49 = new Thrift::API::HiveClient2::TI16Value(); |
1641
|
0
|
|
|
|
|
|
$xfer += $elem49->read($input); |
1642
|
0
|
|
|
|
|
|
push(@{$self->{i16Column}},$elem49); |
|
0
|
|
|
|
|
|
|
1643
|
|
|
|
|
|
|
} |
1644
|
0
|
|
|
|
|
|
$xfer += $input->readListEnd(); |
1645
|
|
|
|
|
|
|
} |
1646
|
|
|
|
|
|
|
} else { |
1647
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1648
|
|
|
|
|
|
|
} |
1649
|
0
|
|
|
|
|
|
last; }; |
1650
|
0
|
0
|
|
|
|
|
/^4$/ && do{ if ($ftype == TType::LIST) { |
|
0
|
0
|
|
|
|
|
|
1651
|
|
|
|
|
|
|
{ |
1652
|
0
|
|
|
|
|
|
my $_size50 = 0; |
|
0
|
|
|
|
|
|
|
1653
|
0
|
|
|
|
|
|
$self->{i32Column} = []; |
1654
|
0
|
|
|
|
|
|
my $_etype53 = 0; |
1655
|
0
|
|
|
|
|
|
$xfer += $input->readListBegin(\$_etype53, \$_size50); |
1656
|
0
|
|
|
|
|
|
for (my $_i54 = 0; $_i54 < $_size50; ++$_i54) |
1657
|
|
|
|
|
|
|
{ |
1658
|
0
|
|
|
|
|
|
my $elem55 = undef; |
1659
|
0
|
|
|
|
|
|
$elem55 = new Thrift::API::HiveClient2::TI32Value(); |
1660
|
0
|
|
|
|
|
|
$xfer += $elem55->read($input); |
1661
|
0
|
|
|
|
|
|
push(@{$self->{i32Column}},$elem55); |
|
0
|
|
|
|
|
|
|
1662
|
|
|
|
|
|
|
} |
1663
|
0
|
|
|
|
|
|
$xfer += $input->readListEnd(); |
1664
|
|
|
|
|
|
|
} |
1665
|
|
|
|
|
|
|
} else { |
1666
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1667
|
|
|
|
|
|
|
} |
1668
|
0
|
|
|
|
|
|
last; }; |
1669
|
0
|
0
|
|
|
|
|
/^5$/ && do{ if ($ftype == TType::LIST) { |
|
0
|
0
|
|
|
|
|
|
1670
|
|
|
|
|
|
|
{ |
1671
|
0
|
|
|
|
|
|
my $_size56 = 0; |
|
0
|
|
|
|
|
|
|
1672
|
0
|
|
|
|
|
|
$self->{i64Column} = []; |
1673
|
0
|
|
|
|
|
|
my $_etype59 = 0; |
1674
|
0
|
|
|
|
|
|
$xfer += $input->readListBegin(\$_etype59, \$_size56); |
1675
|
0
|
|
|
|
|
|
for (my $_i60 = 0; $_i60 < $_size56; ++$_i60) |
1676
|
|
|
|
|
|
|
{ |
1677
|
0
|
|
|
|
|
|
my $elem61 = undef; |
1678
|
0
|
|
|
|
|
|
$elem61 = new Thrift::API::HiveClient2::TI64Value(); |
1679
|
0
|
|
|
|
|
|
$xfer += $elem61->read($input); |
1680
|
0
|
|
|
|
|
|
push(@{$self->{i64Column}},$elem61); |
|
0
|
|
|
|
|
|
|
1681
|
|
|
|
|
|
|
} |
1682
|
0
|
|
|
|
|
|
$xfer += $input->readListEnd(); |
1683
|
|
|
|
|
|
|
} |
1684
|
|
|
|
|
|
|
} else { |
1685
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1686
|
|
|
|
|
|
|
} |
1687
|
0
|
|
|
|
|
|
last; }; |
1688
|
0
|
0
|
|
|
|
|
/^6$/ && do{ if ($ftype == TType::LIST) { |
|
0
|
0
|
|
|
|
|
|
1689
|
|
|
|
|
|
|
{ |
1690
|
0
|
|
|
|
|
|
my $_size62 = 0; |
|
0
|
|
|
|
|
|
|
1691
|
0
|
|
|
|
|
|
$self->{doubleColumn} = []; |
1692
|
0
|
|
|
|
|
|
my $_etype65 = 0; |
1693
|
0
|
|
|
|
|
|
$xfer += $input->readListBegin(\$_etype65, \$_size62); |
1694
|
0
|
|
|
|
|
|
for (my $_i66 = 0; $_i66 < $_size62; ++$_i66) |
1695
|
|
|
|
|
|
|
{ |
1696
|
0
|
|
|
|
|
|
my $elem67 = undef; |
1697
|
0
|
|
|
|
|
|
$elem67 = new Thrift::API::HiveClient2::TDoubleValue(); |
1698
|
0
|
|
|
|
|
|
$xfer += $elem67->read($input); |
1699
|
0
|
|
|
|
|
|
push(@{$self->{doubleColumn}},$elem67); |
|
0
|
|
|
|
|
|
|
1700
|
|
|
|
|
|
|
} |
1701
|
0
|
|
|
|
|
|
$xfer += $input->readListEnd(); |
1702
|
|
|
|
|
|
|
} |
1703
|
|
|
|
|
|
|
} else { |
1704
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1705
|
|
|
|
|
|
|
} |
1706
|
0
|
|
|
|
|
|
last; }; |
1707
|
0
|
0
|
|
|
|
|
/^7$/ && do{ if ($ftype == TType::LIST) { |
|
0
|
0
|
|
|
|
|
|
1708
|
|
|
|
|
|
|
{ |
1709
|
0
|
|
|
|
|
|
my $_size68 = 0; |
|
0
|
|
|
|
|
|
|
1710
|
0
|
|
|
|
|
|
$self->{stringColumn} = []; |
1711
|
0
|
|
|
|
|
|
my $_etype71 = 0; |
1712
|
0
|
|
|
|
|
|
$xfer += $input->readListBegin(\$_etype71, \$_size68); |
1713
|
0
|
|
|
|
|
|
for (my $_i72 = 0; $_i72 < $_size68; ++$_i72) |
1714
|
|
|
|
|
|
|
{ |
1715
|
0
|
|
|
|
|
|
my $elem73 = undef; |
1716
|
0
|
|
|
|
|
|
$elem73 = new Thrift::API::HiveClient2::TStringValue(); |
1717
|
0
|
|
|
|
|
|
$xfer += $elem73->read($input); |
1718
|
0
|
|
|
|
|
|
push(@{$self->{stringColumn}},$elem73); |
|
0
|
|
|
|
|
|
|
1719
|
|
|
|
|
|
|
} |
1720
|
0
|
|
|
|
|
|
$xfer += $input->readListEnd(); |
1721
|
|
|
|
|
|
|
} |
1722
|
|
|
|
|
|
|
} else { |
1723
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1724
|
|
|
|
|
|
|
} |
1725
|
0
|
|
|
|
|
|
last; }; |
1726
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1727
|
|
|
|
|
|
|
} |
1728
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
1729
|
|
|
|
|
|
|
} |
1730
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
1731
|
0
|
|
|
|
|
|
return $xfer; |
1732
|
|
|
|
|
|
|
} |
1733
|
|
|
|
|
|
|
|
1734
|
|
|
|
|
|
|
sub write { |
1735
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
1736
|
0
|
|
|
|
|
|
my $xfer = 0; |
1737
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TColumn'); |
1738
|
0
|
0
|
|
|
|
|
if (defined $self->{boolColumn}) { |
1739
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('boolColumn', TType::LIST, 1); |
1740
|
|
|
|
|
|
|
{ |
1741
|
0
|
|
|
|
|
|
$xfer += $output->writeListBegin(TType::STRUCT, scalar(@{$self->{boolColumn}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1742
|
|
|
|
|
|
|
{ |
1743
|
0
|
|
|
|
|
|
foreach my $iter74 (@{$self->{boolColumn}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1744
|
|
|
|
|
|
|
{ |
1745
|
0
|
|
|
|
|
|
$xfer += ${iter74}->write($output); |
1746
|
|
|
|
|
|
|
} |
1747
|
|
|
|
|
|
|
} |
1748
|
0
|
|
|
|
|
|
$xfer += $output->writeListEnd(); |
1749
|
|
|
|
|
|
|
} |
1750
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1751
|
|
|
|
|
|
|
} |
1752
|
0
|
0
|
|
|
|
|
if (defined $self->{byteColumn}) { |
1753
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('byteColumn', TType::LIST, 2); |
1754
|
|
|
|
|
|
|
{ |
1755
|
0
|
|
|
|
|
|
$xfer += $output->writeListBegin(TType::STRUCT, scalar(@{$self->{byteColumn}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1756
|
|
|
|
|
|
|
{ |
1757
|
0
|
|
|
|
|
|
foreach my $iter75 (@{$self->{byteColumn}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1758
|
|
|
|
|
|
|
{ |
1759
|
0
|
|
|
|
|
|
$xfer += ${iter75}->write($output); |
1760
|
|
|
|
|
|
|
} |
1761
|
|
|
|
|
|
|
} |
1762
|
0
|
|
|
|
|
|
$xfer += $output->writeListEnd(); |
1763
|
|
|
|
|
|
|
} |
1764
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1765
|
|
|
|
|
|
|
} |
1766
|
0
|
0
|
|
|
|
|
if (defined $self->{i16Column}) { |
1767
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('i16Column', TType::LIST, 3); |
1768
|
|
|
|
|
|
|
{ |
1769
|
0
|
|
|
|
|
|
$xfer += $output->writeListBegin(TType::STRUCT, scalar(@{$self->{i16Column}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1770
|
|
|
|
|
|
|
{ |
1771
|
0
|
|
|
|
|
|
foreach my $iter76 (@{$self->{i16Column}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1772
|
|
|
|
|
|
|
{ |
1773
|
0
|
|
|
|
|
|
$xfer += ${iter76}->write($output); |
1774
|
|
|
|
|
|
|
} |
1775
|
|
|
|
|
|
|
} |
1776
|
0
|
|
|
|
|
|
$xfer += $output->writeListEnd(); |
1777
|
|
|
|
|
|
|
} |
1778
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1779
|
|
|
|
|
|
|
} |
1780
|
0
|
0
|
|
|
|
|
if (defined $self->{i32Column}) { |
1781
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('i32Column', TType::LIST, 4); |
1782
|
|
|
|
|
|
|
{ |
1783
|
0
|
|
|
|
|
|
$xfer += $output->writeListBegin(TType::STRUCT, scalar(@{$self->{i32Column}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1784
|
|
|
|
|
|
|
{ |
1785
|
0
|
|
|
|
|
|
foreach my $iter77 (@{$self->{i32Column}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1786
|
|
|
|
|
|
|
{ |
1787
|
0
|
|
|
|
|
|
$xfer += ${iter77}->write($output); |
1788
|
|
|
|
|
|
|
} |
1789
|
|
|
|
|
|
|
} |
1790
|
0
|
|
|
|
|
|
$xfer += $output->writeListEnd(); |
1791
|
|
|
|
|
|
|
} |
1792
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1793
|
|
|
|
|
|
|
} |
1794
|
0
|
0
|
|
|
|
|
if (defined $self->{i64Column}) { |
1795
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('i64Column', TType::LIST, 5); |
1796
|
|
|
|
|
|
|
{ |
1797
|
0
|
|
|
|
|
|
$xfer += $output->writeListBegin(TType::STRUCT, scalar(@{$self->{i64Column}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1798
|
|
|
|
|
|
|
{ |
1799
|
0
|
|
|
|
|
|
foreach my $iter78 (@{$self->{i64Column}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1800
|
|
|
|
|
|
|
{ |
1801
|
0
|
|
|
|
|
|
$xfer += ${iter78}->write($output); |
1802
|
|
|
|
|
|
|
} |
1803
|
|
|
|
|
|
|
} |
1804
|
0
|
|
|
|
|
|
$xfer += $output->writeListEnd(); |
1805
|
|
|
|
|
|
|
} |
1806
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1807
|
|
|
|
|
|
|
} |
1808
|
0
|
0
|
|
|
|
|
if (defined $self->{doubleColumn}) { |
1809
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('doubleColumn', TType::LIST, 6); |
1810
|
|
|
|
|
|
|
{ |
1811
|
0
|
|
|
|
|
|
$xfer += $output->writeListBegin(TType::STRUCT, scalar(@{$self->{doubleColumn}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1812
|
|
|
|
|
|
|
{ |
1813
|
0
|
|
|
|
|
|
foreach my $iter79 (@{$self->{doubleColumn}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1814
|
|
|
|
|
|
|
{ |
1815
|
0
|
|
|
|
|
|
$xfer += ${iter79}->write($output); |
1816
|
|
|
|
|
|
|
} |
1817
|
|
|
|
|
|
|
} |
1818
|
0
|
|
|
|
|
|
$xfer += $output->writeListEnd(); |
1819
|
|
|
|
|
|
|
} |
1820
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1821
|
|
|
|
|
|
|
} |
1822
|
0
|
0
|
|
|
|
|
if (defined $self->{stringColumn}) { |
1823
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('stringColumn', TType::LIST, 7); |
1824
|
|
|
|
|
|
|
{ |
1825
|
0
|
|
|
|
|
|
$xfer += $output->writeListBegin(TType::STRUCT, scalar(@{$self->{stringColumn}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1826
|
|
|
|
|
|
|
{ |
1827
|
0
|
|
|
|
|
|
foreach my $iter80 (@{$self->{stringColumn}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
1828
|
|
|
|
|
|
|
{ |
1829
|
0
|
|
|
|
|
|
$xfer += ${iter80}->write($output); |
1830
|
|
|
|
|
|
|
} |
1831
|
|
|
|
|
|
|
} |
1832
|
0
|
|
|
|
|
|
$xfer += $output->writeListEnd(); |
1833
|
|
|
|
|
|
|
} |
1834
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1835
|
|
|
|
|
|
|
} |
1836
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
1837
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
1838
|
0
|
|
|
|
|
|
return $xfer; |
1839
|
|
|
|
|
|
|
} |
1840
|
|
|
|
|
|
|
|
1841
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TColumnValue; |
1842
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TColumnValue::VERSION = '0.024'; |
1843
|
|
|
|
|
|
|
{ |
1844
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TColumnValue::DIST = 'Thrift-API-HiveClient2'; |
1845
|
|
|
|
|
|
|
} |
1846
|
2
|
|
|
2
|
|
29
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
2299
|
|
1847
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TColumnValue->mk_accessors( qw( boolVal byteVal i16Val i32Val i64Val doubleVal stringVal ) ); |
1848
|
|
|
|
|
|
|
|
1849
|
|
|
|
|
|
|
sub new { |
1850
|
0
|
|
|
0
|
|
|
my $classname = shift; |
1851
|
0
|
|
|
|
|
|
my $self = {}; |
1852
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
1853
|
0
|
|
|
|
|
|
$self->{boolVal} = undef; |
1854
|
0
|
|
|
|
|
|
$self->{byteVal} = undef; |
1855
|
0
|
|
|
|
|
|
$self->{i16Val} = undef; |
1856
|
0
|
|
|
|
|
|
$self->{i32Val} = undef; |
1857
|
0
|
|
|
|
|
|
$self->{i64Val} = undef; |
1858
|
0
|
|
|
|
|
|
$self->{doubleVal} = undef; |
1859
|
0
|
|
|
|
|
|
$self->{stringVal} = undef; |
1860
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
1861
|
0
|
0
|
|
|
|
|
if (defined $vals->{boolVal}) { |
1862
|
0
|
|
|
|
|
|
$self->{boolVal} = $vals->{boolVal}; |
1863
|
|
|
|
|
|
|
} |
1864
|
0
|
0
|
|
|
|
|
if (defined $vals->{byteVal}) { |
1865
|
0
|
|
|
|
|
|
$self->{byteVal} = $vals->{byteVal}; |
1866
|
|
|
|
|
|
|
} |
1867
|
0
|
0
|
|
|
|
|
if (defined $vals->{i16Val}) { |
1868
|
0
|
|
|
|
|
|
$self->{i16Val} = $vals->{i16Val}; |
1869
|
|
|
|
|
|
|
} |
1870
|
0
|
0
|
|
|
|
|
if (defined $vals->{i32Val}) { |
1871
|
0
|
|
|
|
|
|
$self->{i32Val} = $vals->{i32Val}; |
1872
|
|
|
|
|
|
|
} |
1873
|
0
|
0
|
|
|
|
|
if (defined $vals->{i64Val}) { |
1874
|
0
|
|
|
|
|
|
$self->{i64Val} = $vals->{i64Val}; |
1875
|
|
|
|
|
|
|
} |
1876
|
0
|
0
|
|
|
|
|
if (defined $vals->{doubleVal}) { |
1877
|
0
|
|
|
|
|
|
$self->{doubleVal} = $vals->{doubleVal}; |
1878
|
|
|
|
|
|
|
} |
1879
|
0
|
0
|
|
|
|
|
if (defined $vals->{stringVal}) { |
1880
|
0
|
|
|
|
|
|
$self->{stringVal} = $vals->{stringVal}; |
1881
|
|
|
|
|
|
|
} |
1882
|
|
|
|
|
|
|
} |
1883
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
1884
|
|
|
|
|
|
|
} |
1885
|
|
|
|
|
|
|
|
1886
|
|
|
|
|
|
|
sub getName { |
1887
|
0
|
|
|
0
|
|
|
return 'TColumnValue'; |
1888
|
|
|
|
|
|
|
} |
1889
|
|
|
|
|
|
|
|
1890
|
|
|
|
|
|
|
sub read { |
1891
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
1892
|
0
|
|
|
|
|
|
my $xfer = 0; |
1893
|
0
|
|
|
|
|
|
my $fname; |
1894
|
0
|
|
|
|
|
|
my $ftype = 0; |
1895
|
0
|
|
|
|
|
|
my $fid = 0; |
1896
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
1897
|
0
|
|
|
|
|
|
while (1) |
1898
|
|
|
|
|
|
|
{ |
1899
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
1900
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
1901
|
0
|
|
|
|
|
|
last; |
1902
|
|
|
|
|
|
|
} |
1903
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
1904
|
|
|
|
|
|
|
{ |
1905
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
1906
|
0
|
|
|
|
|
|
$self->{boolVal} = new Thrift::API::HiveClient2::TBoolValue(); |
1907
|
0
|
|
|
|
|
|
$xfer += $self->{boolVal}->read($input); |
1908
|
|
|
|
|
|
|
} else { |
1909
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1910
|
|
|
|
|
|
|
} |
1911
|
0
|
|
|
|
|
|
last; }; |
1912
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
1913
|
0
|
|
|
|
|
|
$self->{byteVal} = new Thrift::API::HiveClient2::TByteValue(); |
1914
|
0
|
|
|
|
|
|
$xfer += $self->{byteVal}->read($input); |
1915
|
|
|
|
|
|
|
} else { |
1916
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1917
|
|
|
|
|
|
|
} |
1918
|
0
|
|
|
|
|
|
last; }; |
1919
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
1920
|
0
|
|
|
|
|
|
$self->{i16Val} = new Thrift::API::HiveClient2::TI16Value(); |
1921
|
0
|
|
|
|
|
|
$xfer += $self->{i16Val}->read($input); |
1922
|
|
|
|
|
|
|
} else { |
1923
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1924
|
|
|
|
|
|
|
} |
1925
|
0
|
|
|
|
|
|
last; }; |
1926
|
0
|
0
|
|
|
|
|
/^4$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
1927
|
0
|
|
|
|
|
|
$self->{i32Val} = new Thrift::API::HiveClient2::TI32Value(); |
1928
|
0
|
|
|
|
|
|
$xfer += $self->{i32Val}->read($input); |
1929
|
|
|
|
|
|
|
} else { |
1930
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1931
|
|
|
|
|
|
|
} |
1932
|
0
|
|
|
|
|
|
last; }; |
1933
|
0
|
0
|
|
|
|
|
/^5$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
1934
|
0
|
|
|
|
|
|
$self->{i64Val} = new Thrift::API::HiveClient2::TI64Value(); |
1935
|
0
|
|
|
|
|
|
$xfer += $self->{i64Val}->read($input); |
1936
|
|
|
|
|
|
|
} else { |
1937
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1938
|
|
|
|
|
|
|
} |
1939
|
0
|
|
|
|
|
|
last; }; |
1940
|
0
|
0
|
|
|
|
|
/^6$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
1941
|
0
|
|
|
|
|
|
$self->{doubleVal} = new Thrift::API::HiveClient2::TDoubleValue(); |
1942
|
0
|
|
|
|
|
|
$xfer += $self->{doubleVal}->read($input); |
1943
|
|
|
|
|
|
|
} else { |
1944
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1945
|
|
|
|
|
|
|
} |
1946
|
0
|
|
|
|
|
|
last; }; |
1947
|
0
|
0
|
|
|
|
|
/^7$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
1948
|
0
|
|
|
|
|
|
$self->{stringVal} = new Thrift::API::HiveClient2::TStringValue(); |
1949
|
0
|
|
|
|
|
|
$xfer += $self->{stringVal}->read($input); |
1950
|
|
|
|
|
|
|
} else { |
1951
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1952
|
|
|
|
|
|
|
} |
1953
|
0
|
|
|
|
|
|
last; }; |
1954
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
1955
|
|
|
|
|
|
|
} |
1956
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
1957
|
|
|
|
|
|
|
} |
1958
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
1959
|
0
|
|
|
|
|
|
return $xfer; |
1960
|
|
|
|
|
|
|
} |
1961
|
|
|
|
|
|
|
|
1962
|
|
|
|
|
|
|
sub write { |
1963
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
1964
|
0
|
|
|
|
|
|
my $xfer = 0; |
1965
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TColumnValue'); |
1966
|
0
|
0
|
|
|
|
|
if (defined $self->{boolVal}) { |
1967
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('boolVal', TType::STRUCT, 1); |
1968
|
0
|
|
|
|
|
|
$xfer += $self->{boolVal}->write($output); |
1969
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1970
|
|
|
|
|
|
|
} |
1971
|
0
|
0
|
|
|
|
|
if (defined $self->{byteVal}) { |
1972
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('byteVal', TType::STRUCT, 2); |
1973
|
0
|
|
|
|
|
|
$xfer += $self->{byteVal}->write($output); |
1974
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1975
|
|
|
|
|
|
|
} |
1976
|
0
|
0
|
|
|
|
|
if (defined $self->{i16Val}) { |
1977
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('i16Val', TType::STRUCT, 3); |
1978
|
0
|
|
|
|
|
|
$xfer += $self->{i16Val}->write($output); |
1979
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1980
|
|
|
|
|
|
|
} |
1981
|
0
|
0
|
|
|
|
|
if (defined $self->{i32Val}) { |
1982
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('i32Val', TType::STRUCT, 4); |
1983
|
0
|
|
|
|
|
|
$xfer += $self->{i32Val}->write($output); |
1984
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1985
|
|
|
|
|
|
|
} |
1986
|
0
|
0
|
|
|
|
|
if (defined $self->{i64Val}) { |
1987
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('i64Val', TType::STRUCT, 5); |
1988
|
0
|
|
|
|
|
|
$xfer += $self->{i64Val}->write($output); |
1989
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1990
|
|
|
|
|
|
|
} |
1991
|
0
|
0
|
|
|
|
|
if (defined $self->{doubleVal}) { |
1992
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('doubleVal', TType::STRUCT, 6); |
1993
|
0
|
|
|
|
|
|
$xfer += $self->{doubleVal}->write($output); |
1994
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
1995
|
|
|
|
|
|
|
} |
1996
|
0
|
0
|
|
|
|
|
if (defined $self->{stringVal}) { |
1997
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('stringVal', TType::STRUCT, 7); |
1998
|
0
|
|
|
|
|
|
$xfer += $self->{stringVal}->write($output); |
1999
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2000
|
|
|
|
|
|
|
} |
2001
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
2002
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
2003
|
0
|
|
|
|
|
|
return $xfer; |
2004
|
|
|
|
|
|
|
} |
2005
|
|
|
|
|
|
|
|
2006
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TRow; |
2007
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TRow::VERSION = '0.024'; |
2008
|
|
|
|
|
|
|
{ |
2009
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TRow::DIST = 'Thrift-API-HiveClient2'; |
2010
|
|
|
|
|
|
|
} |
2011
|
2
|
|
|
2
|
|
17
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1338
|
|
2012
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TRow->mk_accessors( qw( colVals ) ); |
2013
|
|
|
|
|
|
|
|
2014
|
|
|
|
|
|
|
sub new { |
2015
|
0
|
|
|
0
|
|
|
my $classname = shift; |
2016
|
0
|
|
|
|
|
|
my $self = {}; |
2017
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
2018
|
0
|
|
|
|
|
|
$self->{colVals} = undef; |
2019
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
2020
|
0
|
0
|
|
|
|
|
if (defined $vals->{colVals}) { |
2021
|
0
|
|
|
|
|
|
$self->{colVals} = $vals->{colVals}; |
2022
|
|
|
|
|
|
|
} |
2023
|
|
|
|
|
|
|
} |
2024
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
2025
|
|
|
|
|
|
|
} |
2026
|
|
|
|
|
|
|
|
2027
|
|
|
|
|
|
|
sub getName { |
2028
|
0
|
|
|
0
|
|
|
return 'TRow'; |
2029
|
|
|
|
|
|
|
} |
2030
|
|
|
|
|
|
|
|
2031
|
|
|
|
|
|
|
sub read { |
2032
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
2033
|
0
|
|
|
|
|
|
my $xfer = 0; |
2034
|
0
|
|
|
|
|
|
my $fname; |
2035
|
0
|
|
|
|
|
|
my $ftype = 0; |
2036
|
0
|
|
|
|
|
|
my $fid = 0; |
2037
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
2038
|
0
|
|
|
|
|
|
while (1) |
2039
|
|
|
|
|
|
|
{ |
2040
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
2041
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
2042
|
0
|
|
|
|
|
|
last; |
2043
|
|
|
|
|
|
|
} |
2044
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
2045
|
|
|
|
|
|
|
{ |
2046
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::LIST) { |
|
0
|
0
|
|
|
|
|
|
2047
|
|
|
|
|
|
|
{ |
2048
|
0
|
|
|
|
|
|
my $_size81 = 0; |
|
0
|
|
|
|
|
|
|
2049
|
0
|
|
|
|
|
|
$self->{colVals} = []; |
2050
|
0
|
|
|
|
|
|
my $_etype84 = 0; |
2051
|
0
|
|
|
|
|
|
$xfer += $input->readListBegin(\$_etype84, \$_size81); |
2052
|
0
|
|
|
|
|
|
for (my $_i85 = 0; $_i85 < $_size81; ++$_i85) |
2053
|
|
|
|
|
|
|
{ |
2054
|
0
|
|
|
|
|
|
my $elem86 = undef; |
2055
|
0
|
|
|
|
|
|
$elem86 = new Thrift::API::HiveClient2::TColumnValue(); |
2056
|
0
|
|
|
|
|
|
$xfer += $elem86->read($input); |
2057
|
0
|
|
|
|
|
|
push(@{$self->{colVals}},$elem86); |
|
0
|
|
|
|
|
|
|
2058
|
|
|
|
|
|
|
} |
2059
|
0
|
|
|
|
|
|
$xfer += $input->readListEnd(); |
2060
|
|
|
|
|
|
|
} |
2061
|
|
|
|
|
|
|
} else { |
2062
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2063
|
|
|
|
|
|
|
} |
2064
|
0
|
|
|
|
|
|
last; }; |
2065
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2066
|
|
|
|
|
|
|
} |
2067
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
2068
|
|
|
|
|
|
|
} |
2069
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
2070
|
0
|
|
|
|
|
|
return $xfer; |
2071
|
|
|
|
|
|
|
} |
2072
|
|
|
|
|
|
|
|
2073
|
|
|
|
|
|
|
sub write { |
2074
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
2075
|
0
|
|
|
|
|
|
my $xfer = 0; |
2076
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TRow'); |
2077
|
0
|
0
|
|
|
|
|
if (defined $self->{colVals}) { |
2078
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('colVals', TType::LIST, 1); |
2079
|
|
|
|
|
|
|
{ |
2080
|
0
|
|
|
|
|
|
$xfer += $output->writeListBegin(TType::STRUCT, scalar(@{$self->{colVals}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
2081
|
|
|
|
|
|
|
{ |
2082
|
0
|
|
|
|
|
|
foreach my $iter87 (@{$self->{colVals}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
2083
|
|
|
|
|
|
|
{ |
2084
|
0
|
|
|
|
|
|
$xfer += ${iter87}->write($output); |
2085
|
|
|
|
|
|
|
} |
2086
|
|
|
|
|
|
|
} |
2087
|
0
|
|
|
|
|
|
$xfer += $output->writeListEnd(); |
2088
|
|
|
|
|
|
|
} |
2089
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2090
|
|
|
|
|
|
|
} |
2091
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
2092
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
2093
|
0
|
|
|
|
|
|
return $xfer; |
2094
|
|
|
|
|
|
|
} |
2095
|
|
|
|
|
|
|
|
2096
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TRowSet; |
2097
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TRowSet::VERSION = '0.024'; |
2098
|
|
|
|
|
|
|
{ |
2099
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TRowSet::DIST = 'Thrift-API-HiveClient2'; |
2100
|
|
|
|
|
|
|
} |
2101
|
2
|
|
|
2
|
|
17
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1972
|
|
2102
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TRowSet->mk_accessors( qw( startRowOffset rows columns ) ); |
2103
|
|
|
|
|
|
|
|
2104
|
|
|
|
|
|
|
sub new { |
2105
|
0
|
|
|
0
|
|
|
my $classname = shift; |
2106
|
0
|
|
|
|
|
|
my $self = {}; |
2107
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
2108
|
0
|
|
|
|
|
|
$self->{startRowOffset} = undef; |
2109
|
0
|
|
|
|
|
|
$self->{rows} = undef; |
2110
|
0
|
|
|
|
|
|
$self->{columns} = undef; |
2111
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
2112
|
0
|
0
|
|
|
|
|
if (defined $vals->{startRowOffset}) { |
2113
|
0
|
|
|
|
|
|
$self->{startRowOffset} = $vals->{startRowOffset}; |
2114
|
|
|
|
|
|
|
} |
2115
|
0
|
0
|
|
|
|
|
if (defined $vals->{rows}) { |
2116
|
0
|
|
|
|
|
|
$self->{rows} = $vals->{rows}; |
2117
|
|
|
|
|
|
|
} |
2118
|
0
|
0
|
|
|
|
|
if (defined $vals->{columns}) { |
2119
|
0
|
|
|
|
|
|
$self->{columns} = $vals->{columns}; |
2120
|
|
|
|
|
|
|
} |
2121
|
|
|
|
|
|
|
} |
2122
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
2123
|
|
|
|
|
|
|
} |
2124
|
|
|
|
|
|
|
|
2125
|
|
|
|
|
|
|
sub getName { |
2126
|
0
|
|
|
0
|
|
|
return 'TRowSet'; |
2127
|
|
|
|
|
|
|
} |
2128
|
|
|
|
|
|
|
|
2129
|
|
|
|
|
|
|
sub read { |
2130
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
2131
|
0
|
|
|
|
|
|
my $xfer = 0; |
2132
|
0
|
|
|
|
|
|
my $fname; |
2133
|
0
|
|
|
|
|
|
my $ftype = 0; |
2134
|
0
|
|
|
|
|
|
my $fid = 0; |
2135
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
2136
|
0
|
|
|
|
|
|
while (1) |
2137
|
|
|
|
|
|
|
{ |
2138
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
2139
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
2140
|
0
|
|
|
|
|
|
last; |
2141
|
|
|
|
|
|
|
} |
2142
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
2143
|
|
|
|
|
|
|
{ |
2144
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::I64) { |
|
0
|
0
|
|
|
|
|
|
2145
|
0
|
|
|
|
|
|
$xfer += $input->readI64(\$self->{startRowOffset}); |
2146
|
|
|
|
|
|
|
} else { |
2147
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2148
|
|
|
|
|
|
|
} |
2149
|
0
|
|
|
|
|
|
last; }; |
2150
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::LIST) { |
|
0
|
0
|
|
|
|
|
|
2151
|
|
|
|
|
|
|
{ |
2152
|
0
|
|
|
|
|
|
my $_size88 = 0; |
|
0
|
|
|
|
|
|
|
2153
|
0
|
|
|
|
|
|
$self->{rows} = []; |
2154
|
0
|
|
|
|
|
|
my $_etype91 = 0; |
2155
|
0
|
|
|
|
|
|
$xfer += $input->readListBegin(\$_etype91, \$_size88); |
2156
|
0
|
|
|
|
|
|
for (my $_i92 = 0; $_i92 < $_size88; ++$_i92) |
2157
|
|
|
|
|
|
|
{ |
2158
|
0
|
|
|
|
|
|
my $elem93 = undef; |
2159
|
0
|
|
|
|
|
|
$elem93 = new Thrift::API::HiveClient2::TRow(); |
2160
|
0
|
|
|
|
|
|
$xfer += $elem93->read($input); |
2161
|
0
|
|
|
|
|
|
push(@{$self->{rows}},$elem93); |
|
0
|
|
|
|
|
|
|
2162
|
|
|
|
|
|
|
} |
2163
|
0
|
|
|
|
|
|
$xfer += $input->readListEnd(); |
2164
|
|
|
|
|
|
|
} |
2165
|
|
|
|
|
|
|
} else { |
2166
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2167
|
|
|
|
|
|
|
} |
2168
|
0
|
|
|
|
|
|
last; }; |
2169
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::LIST) { |
|
0
|
0
|
|
|
|
|
|
2170
|
|
|
|
|
|
|
{ |
2171
|
0
|
|
|
|
|
|
my $_size94 = 0; |
|
0
|
|
|
|
|
|
|
2172
|
0
|
|
|
|
|
|
$self->{columns} = []; |
2173
|
0
|
|
|
|
|
|
my $_etype97 = 0; |
2174
|
0
|
|
|
|
|
|
$xfer += $input->readListBegin(\$_etype97, \$_size94); |
2175
|
0
|
|
|
|
|
|
for (my $_i98 = 0; $_i98 < $_size94; ++$_i98) |
2176
|
|
|
|
|
|
|
{ |
2177
|
0
|
|
|
|
|
|
my $elem99 = undef; |
2178
|
0
|
|
|
|
|
|
$elem99 = new Thrift::API::HiveClient2::TColumn(); |
2179
|
0
|
|
|
|
|
|
$xfer += $elem99->read($input); |
2180
|
0
|
|
|
|
|
|
push(@{$self->{columns}},$elem99); |
|
0
|
|
|
|
|
|
|
2181
|
|
|
|
|
|
|
} |
2182
|
0
|
|
|
|
|
|
$xfer += $input->readListEnd(); |
2183
|
|
|
|
|
|
|
} |
2184
|
|
|
|
|
|
|
} else { |
2185
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2186
|
|
|
|
|
|
|
} |
2187
|
0
|
|
|
|
|
|
last; }; |
2188
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2189
|
|
|
|
|
|
|
} |
2190
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
2191
|
|
|
|
|
|
|
} |
2192
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
2193
|
0
|
|
|
|
|
|
return $xfer; |
2194
|
|
|
|
|
|
|
} |
2195
|
|
|
|
|
|
|
|
2196
|
|
|
|
|
|
|
sub write { |
2197
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
2198
|
0
|
|
|
|
|
|
my $xfer = 0; |
2199
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TRowSet'); |
2200
|
0
|
0
|
|
|
|
|
if (defined $self->{startRowOffset}) { |
2201
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('startRowOffset', TType::I64, 1); |
2202
|
0
|
|
|
|
|
|
$xfer += $output->writeI64($self->{startRowOffset}); |
2203
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2204
|
|
|
|
|
|
|
} |
2205
|
0
|
0
|
|
|
|
|
if (defined $self->{rows}) { |
2206
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('rows', TType::LIST, 2); |
2207
|
|
|
|
|
|
|
{ |
2208
|
0
|
|
|
|
|
|
$xfer += $output->writeListBegin(TType::STRUCT, scalar(@{$self->{rows}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
2209
|
|
|
|
|
|
|
{ |
2210
|
0
|
|
|
|
|
|
foreach my $iter100 (@{$self->{rows}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
2211
|
|
|
|
|
|
|
{ |
2212
|
0
|
|
|
|
|
|
$xfer += ${iter100}->write($output); |
2213
|
|
|
|
|
|
|
} |
2214
|
|
|
|
|
|
|
} |
2215
|
0
|
|
|
|
|
|
$xfer += $output->writeListEnd(); |
2216
|
|
|
|
|
|
|
} |
2217
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2218
|
|
|
|
|
|
|
} |
2219
|
0
|
0
|
|
|
|
|
if (defined $self->{columns}) { |
2220
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('columns', TType::LIST, 3); |
2221
|
|
|
|
|
|
|
{ |
2222
|
0
|
|
|
|
|
|
$xfer += $output->writeListBegin(TType::STRUCT, scalar(@{$self->{columns}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
2223
|
|
|
|
|
|
|
{ |
2224
|
0
|
|
|
|
|
|
foreach my $iter101 (@{$self->{columns}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
2225
|
|
|
|
|
|
|
{ |
2226
|
0
|
|
|
|
|
|
$xfer += ${iter101}->write($output); |
2227
|
|
|
|
|
|
|
} |
2228
|
|
|
|
|
|
|
} |
2229
|
0
|
|
|
|
|
|
$xfer += $output->writeListEnd(); |
2230
|
|
|
|
|
|
|
} |
2231
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2232
|
|
|
|
|
|
|
} |
2233
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
2234
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
2235
|
0
|
|
|
|
|
|
return $xfer; |
2236
|
|
|
|
|
|
|
} |
2237
|
|
|
|
|
|
|
|
2238
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TStatus; |
2239
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TStatus::VERSION = '0.024'; |
2240
|
|
|
|
|
|
|
{ |
2241
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TStatus::DIST = 'Thrift-API-HiveClient2'; |
2242
|
|
|
|
|
|
|
} |
2243
|
2
|
|
|
2
|
|
18
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
2068
|
|
2244
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TStatus->mk_accessors( qw( statusCode infoMessages sqlState errorCode errorMessage ) ); |
2245
|
|
|
|
|
|
|
|
2246
|
|
|
|
|
|
|
sub new { |
2247
|
0
|
|
|
0
|
|
|
my $classname = shift; |
2248
|
0
|
|
|
|
|
|
my $self = {}; |
2249
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
2250
|
0
|
|
|
|
|
|
$self->{statusCode} = undef; |
2251
|
0
|
|
|
|
|
|
$self->{infoMessages} = undef; |
2252
|
0
|
|
|
|
|
|
$self->{sqlState} = undef; |
2253
|
0
|
|
|
|
|
|
$self->{errorCode} = undef; |
2254
|
0
|
|
|
|
|
|
$self->{errorMessage} = undef; |
2255
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
2256
|
0
|
0
|
|
|
|
|
if (defined $vals->{statusCode}) { |
2257
|
0
|
|
|
|
|
|
$self->{statusCode} = $vals->{statusCode}; |
2258
|
|
|
|
|
|
|
} |
2259
|
0
|
0
|
|
|
|
|
if (defined $vals->{infoMessages}) { |
2260
|
0
|
|
|
|
|
|
$self->{infoMessages} = $vals->{infoMessages}; |
2261
|
|
|
|
|
|
|
} |
2262
|
0
|
0
|
|
|
|
|
if (defined $vals->{sqlState}) { |
2263
|
0
|
|
|
|
|
|
$self->{sqlState} = $vals->{sqlState}; |
2264
|
|
|
|
|
|
|
} |
2265
|
0
|
0
|
|
|
|
|
if (defined $vals->{errorCode}) { |
2266
|
0
|
|
|
|
|
|
$self->{errorCode} = $vals->{errorCode}; |
2267
|
|
|
|
|
|
|
} |
2268
|
0
|
0
|
|
|
|
|
if (defined $vals->{errorMessage}) { |
2269
|
0
|
|
|
|
|
|
$self->{errorMessage} = $vals->{errorMessage}; |
2270
|
|
|
|
|
|
|
} |
2271
|
|
|
|
|
|
|
} |
2272
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
2273
|
|
|
|
|
|
|
} |
2274
|
|
|
|
|
|
|
|
2275
|
|
|
|
|
|
|
sub getName { |
2276
|
0
|
|
|
0
|
|
|
return 'TStatus'; |
2277
|
|
|
|
|
|
|
} |
2278
|
|
|
|
|
|
|
|
2279
|
|
|
|
|
|
|
sub read { |
2280
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
2281
|
0
|
|
|
|
|
|
my $xfer = 0; |
2282
|
0
|
|
|
|
|
|
my $fname; |
2283
|
0
|
|
|
|
|
|
my $ftype = 0; |
2284
|
0
|
|
|
|
|
|
my $fid = 0; |
2285
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
2286
|
0
|
|
|
|
|
|
while (1) |
2287
|
|
|
|
|
|
|
{ |
2288
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
2289
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
2290
|
0
|
|
|
|
|
|
last; |
2291
|
|
|
|
|
|
|
} |
2292
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
2293
|
|
|
|
|
|
|
{ |
2294
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
2295
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{statusCode}); |
2296
|
|
|
|
|
|
|
} else { |
2297
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2298
|
|
|
|
|
|
|
} |
2299
|
0
|
|
|
|
|
|
last; }; |
2300
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::LIST) { |
|
0
|
0
|
|
|
|
|
|
2301
|
|
|
|
|
|
|
{ |
2302
|
0
|
|
|
|
|
|
my $_size102 = 0; |
|
0
|
|
|
|
|
|
|
2303
|
0
|
|
|
|
|
|
$self->{infoMessages} = []; |
2304
|
0
|
|
|
|
|
|
my $_etype105 = 0; |
2305
|
0
|
|
|
|
|
|
$xfer += $input->readListBegin(\$_etype105, \$_size102); |
2306
|
0
|
|
|
|
|
|
for (my $_i106 = 0; $_i106 < $_size102; ++$_i106) |
2307
|
|
|
|
|
|
|
{ |
2308
|
0
|
|
|
|
|
|
my $elem107 = undef; |
2309
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$elem107); |
2310
|
0
|
|
|
|
|
|
push(@{$self->{infoMessages}},$elem107); |
|
0
|
|
|
|
|
|
|
2311
|
|
|
|
|
|
|
} |
2312
|
0
|
|
|
|
|
|
$xfer += $input->readListEnd(); |
2313
|
|
|
|
|
|
|
} |
2314
|
|
|
|
|
|
|
} else { |
2315
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2316
|
|
|
|
|
|
|
} |
2317
|
0
|
|
|
|
|
|
last; }; |
2318
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
2319
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{sqlState}); |
2320
|
|
|
|
|
|
|
} else { |
2321
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2322
|
|
|
|
|
|
|
} |
2323
|
0
|
|
|
|
|
|
last; }; |
2324
|
0
|
0
|
|
|
|
|
/^4$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
2325
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{errorCode}); |
2326
|
|
|
|
|
|
|
} else { |
2327
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2328
|
|
|
|
|
|
|
} |
2329
|
0
|
|
|
|
|
|
last; }; |
2330
|
0
|
0
|
|
|
|
|
/^5$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
2331
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{errorMessage}); |
2332
|
|
|
|
|
|
|
} else { |
2333
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2334
|
|
|
|
|
|
|
} |
2335
|
0
|
|
|
|
|
|
last; }; |
2336
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2337
|
|
|
|
|
|
|
} |
2338
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
2339
|
|
|
|
|
|
|
} |
2340
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
2341
|
0
|
|
|
|
|
|
return $xfer; |
2342
|
|
|
|
|
|
|
} |
2343
|
|
|
|
|
|
|
|
2344
|
|
|
|
|
|
|
sub write { |
2345
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
2346
|
0
|
|
|
|
|
|
my $xfer = 0; |
2347
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TStatus'); |
2348
|
0
|
0
|
|
|
|
|
if (defined $self->{statusCode}) { |
2349
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('statusCode', TType::I32, 1); |
2350
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{statusCode}); |
2351
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2352
|
|
|
|
|
|
|
} |
2353
|
0
|
0
|
|
|
|
|
if (defined $self->{infoMessages}) { |
2354
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('infoMessages', TType::LIST, 2); |
2355
|
|
|
|
|
|
|
{ |
2356
|
0
|
|
|
|
|
|
$xfer += $output->writeListBegin(TType::STRING, scalar(@{$self->{infoMessages}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
2357
|
|
|
|
|
|
|
{ |
2358
|
0
|
|
|
|
|
|
foreach my $iter108 (@{$self->{infoMessages}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
2359
|
|
|
|
|
|
|
{ |
2360
|
0
|
|
|
|
|
|
$xfer += $output->writeString($iter108); |
2361
|
|
|
|
|
|
|
} |
2362
|
|
|
|
|
|
|
} |
2363
|
0
|
|
|
|
|
|
$xfer += $output->writeListEnd(); |
2364
|
|
|
|
|
|
|
} |
2365
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2366
|
|
|
|
|
|
|
} |
2367
|
0
|
0
|
|
|
|
|
if (defined $self->{sqlState}) { |
2368
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('sqlState', TType::STRING, 3); |
2369
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{sqlState}); |
2370
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2371
|
|
|
|
|
|
|
} |
2372
|
0
|
0
|
|
|
|
|
if (defined $self->{errorCode}) { |
2373
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('errorCode', TType::I32, 4); |
2374
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{errorCode}); |
2375
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2376
|
|
|
|
|
|
|
} |
2377
|
0
|
0
|
|
|
|
|
if (defined $self->{errorMessage}) { |
2378
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('errorMessage', TType::STRING, 5); |
2379
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{errorMessage}); |
2380
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2381
|
|
|
|
|
|
|
} |
2382
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
2383
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
2384
|
0
|
|
|
|
|
|
return $xfer; |
2385
|
|
|
|
|
|
|
} |
2386
|
|
|
|
|
|
|
|
2387
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::THandleIdentifier; |
2388
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::THandleIdentifier::VERSION = '0.024'; |
2389
|
|
|
|
|
|
|
{ |
2390
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::THandleIdentifier::DIST = 'Thrift-API-HiveClient2'; |
2391
|
|
|
|
|
|
|
} |
2392
|
2
|
|
|
2
|
|
18
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
1202
|
|
2393
|
|
|
|
|
|
|
Thrift::API::HiveClient2::THandleIdentifier->mk_accessors( qw( guid secret ) ); |
2394
|
|
|
|
|
|
|
|
2395
|
|
|
|
|
|
|
sub new { |
2396
|
0
|
|
|
0
|
|
|
my $classname = shift; |
2397
|
0
|
|
|
|
|
|
my $self = {}; |
2398
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
2399
|
0
|
|
|
|
|
|
$self->{guid} = undef; |
2400
|
0
|
|
|
|
|
|
$self->{secret} = undef; |
2401
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
2402
|
0
|
0
|
|
|
|
|
if (defined $vals->{guid}) { |
2403
|
0
|
|
|
|
|
|
$self->{guid} = $vals->{guid}; |
2404
|
|
|
|
|
|
|
} |
2405
|
0
|
0
|
|
|
|
|
if (defined $vals->{secret}) { |
2406
|
0
|
|
|
|
|
|
$self->{secret} = $vals->{secret}; |
2407
|
|
|
|
|
|
|
} |
2408
|
|
|
|
|
|
|
} |
2409
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
2410
|
|
|
|
|
|
|
} |
2411
|
|
|
|
|
|
|
|
2412
|
|
|
|
|
|
|
sub getName { |
2413
|
0
|
|
|
0
|
|
|
return 'THandleIdentifier'; |
2414
|
|
|
|
|
|
|
} |
2415
|
|
|
|
|
|
|
|
2416
|
|
|
|
|
|
|
sub read { |
2417
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
2418
|
0
|
|
|
|
|
|
my $xfer = 0; |
2419
|
0
|
|
|
|
|
|
my $fname; |
2420
|
0
|
|
|
|
|
|
my $ftype = 0; |
2421
|
0
|
|
|
|
|
|
my $fid = 0; |
2422
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
2423
|
0
|
|
|
|
|
|
while (1) |
2424
|
|
|
|
|
|
|
{ |
2425
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
2426
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
2427
|
0
|
|
|
|
|
|
last; |
2428
|
|
|
|
|
|
|
} |
2429
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
2430
|
|
|
|
|
|
|
{ |
2431
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
2432
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{guid}); |
2433
|
|
|
|
|
|
|
} else { |
2434
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2435
|
|
|
|
|
|
|
} |
2436
|
0
|
|
|
|
|
|
last; }; |
2437
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
2438
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{secret}); |
2439
|
|
|
|
|
|
|
} else { |
2440
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2441
|
|
|
|
|
|
|
} |
2442
|
0
|
|
|
|
|
|
last; }; |
2443
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2444
|
|
|
|
|
|
|
} |
2445
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
2446
|
|
|
|
|
|
|
} |
2447
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
2448
|
0
|
|
|
|
|
|
return $xfer; |
2449
|
|
|
|
|
|
|
} |
2450
|
|
|
|
|
|
|
|
2451
|
|
|
|
|
|
|
sub write { |
2452
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
2453
|
0
|
|
|
|
|
|
my $xfer = 0; |
2454
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('THandleIdentifier'); |
2455
|
0
|
0
|
|
|
|
|
if (defined $self->{guid}) { |
2456
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('guid', TType::STRING, 1); |
2457
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{guid}); |
2458
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2459
|
|
|
|
|
|
|
} |
2460
|
0
|
0
|
|
|
|
|
if (defined $self->{secret}) { |
2461
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('secret', TType::STRING, 2); |
2462
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{secret}); |
2463
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2464
|
|
|
|
|
|
|
} |
2465
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
2466
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
2467
|
0
|
|
|
|
|
|
return $xfer; |
2468
|
|
|
|
|
|
|
} |
2469
|
|
|
|
|
|
|
|
2470
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TSessionHandle; |
2471
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TSessionHandle::VERSION = '0.024'; |
2472
|
|
|
|
|
|
|
{ |
2473
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TSessionHandle::DIST = 'Thrift-API-HiveClient2'; |
2474
|
|
|
|
|
|
|
} |
2475
|
2
|
|
|
2
|
|
18
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
993
|
|
2476
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TSessionHandle->mk_accessors( qw( sessionId ) ); |
2477
|
|
|
|
|
|
|
|
2478
|
|
|
|
|
|
|
sub new { |
2479
|
0
|
|
|
0
|
|
|
my $classname = shift; |
2480
|
0
|
|
|
|
|
|
my $self = {}; |
2481
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
2482
|
0
|
|
|
|
|
|
$self->{sessionId} = undef; |
2483
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
2484
|
0
|
0
|
|
|
|
|
if (defined $vals->{sessionId}) { |
2485
|
0
|
|
|
|
|
|
$self->{sessionId} = $vals->{sessionId}; |
2486
|
|
|
|
|
|
|
} |
2487
|
|
|
|
|
|
|
} |
2488
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
2489
|
|
|
|
|
|
|
} |
2490
|
|
|
|
|
|
|
|
2491
|
|
|
|
|
|
|
sub getName { |
2492
|
0
|
|
|
0
|
|
|
return 'TSessionHandle'; |
2493
|
|
|
|
|
|
|
} |
2494
|
|
|
|
|
|
|
|
2495
|
|
|
|
|
|
|
sub read { |
2496
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
2497
|
0
|
|
|
|
|
|
my $xfer = 0; |
2498
|
0
|
|
|
|
|
|
my $fname; |
2499
|
0
|
|
|
|
|
|
my $ftype = 0; |
2500
|
0
|
|
|
|
|
|
my $fid = 0; |
2501
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
2502
|
0
|
|
|
|
|
|
while (1) |
2503
|
|
|
|
|
|
|
{ |
2504
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
2505
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
2506
|
0
|
|
|
|
|
|
last; |
2507
|
|
|
|
|
|
|
} |
2508
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
2509
|
|
|
|
|
|
|
{ |
2510
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
2511
|
0
|
|
|
|
|
|
$self->{sessionId} = new Thrift::API::HiveClient2::THandleIdentifier(); |
2512
|
0
|
|
|
|
|
|
$xfer += $self->{sessionId}->read($input); |
2513
|
|
|
|
|
|
|
} else { |
2514
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2515
|
|
|
|
|
|
|
} |
2516
|
0
|
|
|
|
|
|
last; }; |
2517
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2518
|
|
|
|
|
|
|
} |
2519
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
2520
|
|
|
|
|
|
|
} |
2521
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
2522
|
0
|
|
|
|
|
|
return $xfer; |
2523
|
|
|
|
|
|
|
} |
2524
|
|
|
|
|
|
|
|
2525
|
|
|
|
|
|
|
sub write { |
2526
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
2527
|
0
|
|
|
|
|
|
my $xfer = 0; |
2528
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TSessionHandle'); |
2529
|
0
|
0
|
|
|
|
|
if (defined $self->{sessionId}) { |
2530
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('sessionId', TType::STRUCT, 1); |
2531
|
0
|
|
|
|
|
|
$xfer += $self->{sessionId}->write($output); |
2532
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2533
|
|
|
|
|
|
|
} |
2534
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
2535
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
2536
|
0
|
|
|
|
|
|
return $xfer; |
2537
|
|
|
|
|
|
|
} |
2538
|
|
|
|
|
|
|
|
2539
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TOperationHandle; |
2540
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TOperationHandle::VERSION = '0.024'; |
2541
|
|
|
|
|
|
|
{ |
2542
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TOperationHandle::DIST = 'Thrift-API-HiveClient2'; |
2543
|
|
|
|
|
|
|
} |
2544
|
2
|
|
|
2
|
|
17
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
12
|
|
|
2
|
|
|
|
|
1604
|
|
2545
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TOperationHandle->mk_accessors( qw( operationId operationType hasResultSet modifiedRowCount ) ); |
2546
|
|
|
|
|
|
|
|
2547
|
|
|
|
|
|
|
sub new { |
2548
|
0
|
|
|
0
|
|
|
my $classname = shift; |
2549
|
0
|
|
|
|
|
|
my $self = {}; |
2550
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
2551
|
0
|
|
|
|
|
|
$self->{operationId} = undef; |
2552
|
0
|
|
|
|
|
|
$self->{operationType} = undef; |
2553
|
0
|
|
|
|
|
|
$self->{hasResultSet} = undef; |
2554
|
0
|
|
|
|
|
|
$self->{modifiedRowCount} = undef; |
2555
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
2556
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationId}) { |
2557
|
0
|
|
|
|
|
|
$self->{operationId} = $vals->{operationId}; |
2558
|
|
|
|
|
|
|
} |
2559
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationType}) { |
2560
|
0
|
|
|
|
|
|
$self->{operationType} = $vals->{operationType}; |
2561
|
|
|
|
|
|
|
} |
2562
|
0
|
0
|
|
|
|
|
if (defined $vals->{hasResultSet}) { |
2563
|
0
|
|
|
|
|
|
$self->{hasResultSet} = $vals->{hasResultSet}; |
2564
|
|
|
|
|
|
|
} |
2565
|
0
|
0
|
|
|
|
|
if (defined $vals->{modifiedRowCount}) { |
2566
|
0
|
|
|
|
|
|
$self->{modifiedRowCount} = $vals->{modifiedRowCount}; |
2567
|
|
|
|
|
|
|
} |
2568
|
|
|
|
|
|
|
} |
2569
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
2570
|
|
|
|
|
|
|
} |
2571
|
|
|
|
|
|
|
|
2572
|
|
|
|
|
|
|
sub getName { |
2573
|
0
|
|
|
0
|
|
|
return 'TOperationHandle'; |
2574
|
|
|
|
|
|
|
} |
2575
|
|
|
|
|
|
|
|
2576
|
|
|
|
|
|
|
sub read { |
2577
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
2578
|
0
|
|
|
|
|
|
my $xfer = 0; |
2579
|
0
|
|
|
|
|
|
my $fname; |
2580
|
0
|
|
|
|
|
|
my $ftype = 0; |
2581
|
0
|
|
|
|
|
|
my $fid = 0; |
2582
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
2583
|
0
|
|
|
|
|
|
while (1) |
2584
|
|
|
|
|
|
|
{ |
2585
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
2586
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
2587
|
0
|
|
|
|
|
|
last; |
2588
|
|
|
|
|
|
|
} |
2589
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
2590
|
|
|
|
|
|
|
{ |
2591
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
2592
|
0
|
|
|
|
|
|
$self->{operationId} = new Thrift::API::HiveClient2::THandleIdentifier(); |
2593
|
0
|
|
|
|
|
|
$xfer += $self->{operationId}->read($input); |
2594
|
|
|
|
|
|
|
} else { |
2595
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2596
|
|
|
|
|
|
|
} |
2597
|
0
|
|
|
|
|
|
last; }; |
2598
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
2599
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{operationType}); |
2600
|
|
|
|
|
|
|
} else { |
2601
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2602
|
|
|
|
|
|
|
} |
2603
|
0
|
|
|
|
|
|
last; }; |
2604
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::BOOL) { |
|
0
|
0
|
|
|
|
|
|
2605
|
0
|
|
|
|
|
|
$xfer += $input->readBool(\$self->{hasResultSet}); |
2606
|
|
|
|
|
|
|
} else { |
2607
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2608
|
|
|
|
|
|
|
} |
2609
|
0
|
|
|
|
|
|
last; }; |
2610
|
0
|
0
|
|
|
|
|
/^4$/ && do{ if ($ftype == TType::DOUBLE) { |
|
0
|
0
|
|
|
|
|
|
2611
|
0
|
|
|
|
|
|
$xfer += $input->readDouble(\$self->{modifiedRowCount}); |
2612
|
|
|
|
|
|
|
} else { |
2613
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2614
|
|
|
|
|
|
|
} |
2615
|
0
|
|
|
|
|
|
last; }; |
2616
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2617
|
|
|
|
|
|
|
} |
2618
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
2619
|
|
|
|
|
|
|
} |
2620
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
2621
|
0
|
|
|
|
|
|
return $xfer; |
2622
|
|
|
|
|
|
|
} |
2623
|
|
|
|
|
|
|
|
2624
|
|
|
|
|
|
|
sub write { |
2625
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
2626
|
0
|
|
|
|
|
|
my $xfer = 0; |
2627
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TOperationHandle'); |
2628
|
0
|
0
|
|
|
|
|
if (defined $self->{operationId}) { |
2629
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationId', TType::STRUCT, 1); |
2630
|
0
|
|
|
|
|
|
$xfer += $self->{operationId}->write($output); |
2631
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2632
|
|
|
|
|
|
|
} |
2633
|
0
|
0
|
|
|
|
|
if (defined $self->{operationType}) { |
2634
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationType', TType::I32, 2); |
2635
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{operationType}); |
2636
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2637
|
|
|
|
|
|
|
} |
2638
|
0
|
0
|
|
|
|
|
if (defined $self->{hasResultSet}) { |
2639
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('hasResultSet', TType::BOOL, 3); |
2640
|
0
|
|
|
|
|
|
$xfer += $output->writeBool($self->{hasResultSet}); |
2641
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2642
|
|
|
|
|
|
|
} |
2643
|
0
|
0
|
|
|
|
|
if (defined $self->{modifiedRowCount}) { |
2644
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('modifiedRowCount', TType::DOUBLE, 4); |
2645
|
0
|
|
|
|
|
|
$xfer += $output->writeDouble($self->{modifiedRowCount}); |
2646
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2647
|
|
|
|
|
|
|
} |
2648
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
2649
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
2650
|
0
|
|
|
|
|
|
return $xfer; |
2651
|
|
|
|
|
|
|
} |
2652
|
|
|
|
|
|
|
|
2653
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TOpenSessionReq; |
2654
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TOpenSessionReq::VERSION = '0.024'; |
2655
|
|
|
|
|
|
|
{ |
2656
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TOpenSessionReq::DIST = 'Thrift-API-HiveClient2'; |
2657
|
|
|
|
|
|
|
} |
2658
|
2
|
|
|
2
|
|
17
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1953
|
|
2659
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TOpenSessionReq->mk_accessors( qw( client_protocol username password configuration ) ); |
2660
|
|
|
|
|
|
|
|
2661
|
|
|
|
|
|
|
sub new { |
2662
|
0
|
|
|
0
|
|
|
my $classname = shift; |
2663
|
0
|
|
|
|
|
|
my $self = {}; |
2664
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
2665
|
0
|
|
|
|
|
|
$self->{client_protocol} = 0; |
2666
|
0
|
|
|
|
|
|
$self->{username} = undef; |
2667
|
0
|
|
|
|
|
|
$self->{password} = undef; |
2668
|
0
|
|
|
|
|
|
$self->{configuration} = undef; |
2669
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
2670
|
0
|
0
|
|
|
|
|
if (defined $vals->{client_protocol}) { |
2671
|
0
|
|
|
|
|
|
$self->{client_protocol} = $vals->{client_protocol}; |
2672
|
|
|
|
|
|
|
} |
2673
|
0
|
0
|
|
|
|
|
if (defined $vals->{username}) { |
2674
|
0
|
|
|
|
|
|
$self->{username} = $vals->{username}; |
2675
|
|
|
|
|
|
|
} |
2676
|
0
|
0
|
|
|
|
|
if (defined $vals->{password}) { |
2677
|
0
|
|
|
|
|
|
$self->{password} = $vals->{password}; |
2678
|
|
|
|
|
|
|
} |
2679
|
0
|
0
|
|
|
|
|
if (defined $vals->{configuration}) { |
2680
|
0
|
|
|
|
|
|
$self->{configuration} = $vals->{configuration}; |
2681
|
|
|
|
|
|
|
} |
2682
|
|
|
|
|
|
|
} |
2683
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
2684
|
|
|
|
|
|
|
} |
2685
|
|
|
|
|
|
|
|
2686
|
|
|
|
|
|
|
sub getName { |
2687
|
0
|
|
|
0
|
|
|
return 'TOpenSessionReq'; |
2688
|
|
|
|
|
|
|
} |
2689
|
|
|
|
|
|
|
|
2690
|
|
|
|
|
|
|
sub read { |
2691
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
2692
|
0
|
|
|
|
|
|
my $xfer = 0; |
2693
|
0
|
|
|
|
|
|
my $fname; |
2694
|
0
|
|
|
|
|
|
my $ftype = 0; |
2695
|
0
|
|
|
|
|
|
my $fid = 0; |
2696
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
2697
|
0
|
|
|
|
|
|
while (1) |
2698
|
|
|
|
|
|
|
{ |
2699
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
2700
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
2701
|
0
|
|
|
|
|
|
last; |
2702
|
|
|
|
|
|
|
} |
2703
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
2704
|
|
|
|
|
|
|
{ |
2705
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
2706
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{client_protocol}); |
2707
|
|
|
|
|
|
|
} else { |
2708
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2709
|
|
|
|
|
|
|
} |
2710
|
0
|
|
|
|
|
|
last; }; |
2711
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
2712
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{username}); |
2713
|
|
|
|
|
|
|
} else { |
2714
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2715
|
|
|
|
|
|
|
} |
2716
|
0
|
|
|
|
|
|
last; }; |
2717
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
2718
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{password}); |
2719
|
|
|
|
|
|
|
} else { |
2720
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2721
|
|
|
|
|
|
|
} |
2722
|
0
|
|
|
|
|
|
last; }; |
2723
|
0
|
0
|
|
|
|
|
/^4$/ && do{ if ($ftype == TType::MAP) { |
|
0
|
0
|
|
|
|
|
|
2724
|
|
|
|
|
|
|
{ |
2725
|
0
|
|
|
|
|
|
my $_size109 = 0; |
|
0
|
|
|
|
|
|
|
2726
|
0
|
|
|
|
|
|
$self->{configuration} = {}; |
2727
|
0
|
|
|
|
|
|
my $_ktype110 = 0; |
2728
|
0
|
|
|
|
|
|
my $_vtype111 = 0; |
2729
|
0
|
|
|
|
|
|
$xfer += $input->readMapBegin(\$_ktype110, \$_vtype111, \$_size109); |
2730
|
0
|
|
|
|
|
|
for (my $_i113 = 0; $_i113 < $_size109; ++$_i113) |
2731
|
|
|
|
|
|
|
{ |
2732
|
0
|
|
|
|
|
|
my $key114 = ''; |
2733
|
0
|
|
|
|
|
|
my $val115 = ''; |
2734
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$key114); |
2735
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$val115); |
2736
|
0
|
|
|
|
|
|
$self->{configuration}->{$key114} = $val115; |
2737
|
|
|
|
|
|
|
} |
2738
|
0
|
|
|
|
|
|
$xfer += $input->readMapEnd(); |
2739
|
|
|
|
|
|
|
} |
2740
|
|
|
|
|
|
|
} else { |
2741
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2742
|
|
|
|
|
|
|
} |
2743
|
0
|
|
|
|
|
|
last; }; |
2744
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2745
|
|
|
|
|
|
|
} |
2746
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
2747
|
|
|
|
|
|
|
} |
2748
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
2749
|
0
|
|
|
|
|
|
return $xfer; |
2750
|
|
|
|
|
|
|
} |
2751
|
|
|
|
|
|
|
|
2752
|
|
|
|
|
|
|
sub write { |
2753
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
2754
|
0
|
|
|
|
|
|
my $xfer = 0; |
2755
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TOpenSessionReq'); |
2756
|
0
|
0
|
|
|
|
|
if (defined $self->{client_protocol}) { |
2757
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('client_protocol', TType::I32, 1); |
2758
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{client_protocol}); |
2759
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2760
|
|
|
|
|
|
|
} |
2761
|
0
|
0
|
|
|
|
|
if (defined $self->{username}) { |
2762
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('username', TType::STRING, 2); |
2763
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{username}); |
2764
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2765
|
|
|
|
|
|
|
} |
2766
|
0
|
0
|
|
|
|
|
if (defined $self->{password}) { |
2767
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('password', TType::STRING, 3); |
2768
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{password}); |
2769
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2770
|
|
|
|
|
|
|
} |
2771
|
0
|
0
|
|
|
|
|
if (defined $self->{configuration}) { |
2772
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('configuration', TType::MAP, 4); |
2773
|
|
|
|
|
|
|
{ |
2774
|
0
|
|
|
|
|
|
$xfer += $output->writeMapBegin(TType::STRING, TType::STRING, scalar(keys %{$self->{configuration}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
2775
|
|
|
|
|
|
|
{ |
2776
|
0
|
|
|
|
|
|
while( my ($kiter116,$viter117) = each %{$self->{configuration}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
2777
|
|
|
|
|
|
|
{ |
2778
|
0
|
|
|
|
|
|
$xfer += $output->writeString($kiter116); |
2779
|
0
|
|
|
|
|
|
$xfer += $output->writeString($viter117); |
2780
|
|
|
|
|
|
|
} |
2781
|
|
|
|
|
|
|
} |
2782
|
0
|
|
|
|
|
|
$xfer += $output->writeMapEnd(); |
2783
|
|
|
|
|
|
|
} |
2784
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2785
|
|
|
|
|
|
|
} |
2786
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
2787
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
2788
|
0
|
|
|
|
|
|
return $xfer; |
2789
|
|
|
|
|
|
|
} |
2790
|
|
|
|
|
|
|
|
2791
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TOpenSessionResp; |
2792
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TOpenSessionResp::VERSION = '0.024'; |
2793
|
|
|
|
|
|
|
{ |
2794
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TOpenSessionResp::DIST = 'Thrift-API-HiveClient2'; |
2795
|
|
|
|
|
|
|
} |
2796
|
2
|
|
|
2
|
|
51
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
13
|
|
|
2
|
|
|
|
|
1991
|
|
2797
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TOpenSessionResp->mk_accessors( qw( status serverProtocolVersion sessionHandle configuration ) ); |
2798
|
|
|
|
|
|
|
|
2799
|
|
|
|
|
|
|
sub new { |
2800
|
0
|
|
|
0
|
|
|
my $classname = shift; |
2801
|
0
|
|
|
|
|
|
my $self = {}; |
2802
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
2803
|
0
|
|
|
|
|
|
$self->{status} = undef; |
2804
|
0
|
|
|
|
|
|
$self->{serverProtocolVersion} = 0; |
2805
|
0
|
|
|
|
|
|
$self->{sessionHandle} = undef; |
2806
|
0
|
|
|
|
|
|
$self->{configuration} = undef; |
2807
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
2808
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
2809
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
2810
|
|
|
|
|
|
|
} |
2811
|
0
|
0
|
|
|
|
|
if (defined $vals->{serverProtocolVersion}) { |
2812
|
0
|
|
|
|
|
|
$self->{serverProtocolVersion} = $vals->{serverProtocolVersion}; |
2813
|
|
|
|
|
|
|
} |
2814
|
0
|
0
|
|
|
|
|
if (defined $vals->{sessionHandle}) { |
2815
|
0
|
|
|
|
|
|
$self->{sessionHandle} = $vals->{sessionHandle}; |
2816
|
|
|
|
|
|
|
} |
2817
|
0
|
0
|
|
|
|
|
if (defined $vals->{configuration}) { |
2818
|
0
|
|
|
|
|
|
$self->{configuration} = $vals->{configuration}; |
2819
|
|
|
|
|
|
|
} |
2820
|
|
|
|
|
|
|
} |
2821
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
2822
|
|
|
|
|
|
|
} |
2823
|
|
|
|
|
|
|
|
2824
|
|
|
|
|
|
|
sub getName { |
2825
|
0
|
|
|
0
|
|
|
return 'TOpenSessionResp'; |
2826
|
|
|
|
|
|
|
} |
2827
|
|
|
|
|
|
|
|
2828
|
|
|
|
|
|
|
sub read { |
2829
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
2830
|
0
|
|
|
|
|
|
my $xfer = 0; |
2831
|
0
|
|
|
|
|
|
my $fname; |
2832
|
0
|
|
|
|
|
|
my $ftype = 0; |
2833
|
0
|
|
|
|
|
|
my $fid = 0; |
2834
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
2835
|
0
|
|
|
|
|
|
while (1) |
2836
|
|
|
|
|
|
|
{ |
2837
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
2838
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
2839
|
0
|
|
|
|
|
|
last; |
2840
|
|
|
|
|
|
|
} |
2841
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
2842
|
|
|
|
|
|
|
{ |
2843
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
2844
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
2845
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
2846
|
|
|
|
|
|
|
} else { |
2847
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2848
|
|
|
|
|
|
|
} |
2849
|
0
|
|
|
|
|
|
last; }; |
2850
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
2851
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{serverProtocolVersion}); |
2852
|
|
|
|
|
|
|
} else { |
2853
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2854
|
|
|
|
|
|
|
} |
2855
|
0
|
|
|
|
|
|
last; }; |
2856
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
2857
|
0
|
|
|
|
|
|
$self->{sessionHandle} = new Thrift::API::HiveClient2::TSessionHandle(); |
2858
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->read($input); |
2859
|
|
|
|
|
|
|
} else { |
2860
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2861
|
|
|
|
|
|
|
} |
2862
|
0
|
|
|
|
|
|
last; }; |
2863
|
0
|
0
|
|
|
|
|
/^4$/ && do{ if ($ftype == TType::MAP) { |
|
0
|
0
|
|
|
|
|
|
2864
|
|
|
|
|
|
|
{ |
2865
|
0
|
|
|
|
|
|
my $_size118 = 0; |
|
0
|
|
|
|
|
|
|
2866
|
0
|
|
|
|
|
|
$self->{configuration} = {}; |
2867
|
0
|
|
|
|
|
|
my $_ktype119 = 0; |
2868
|
0
|
|
|
|
|
|
my $_vtype120 = 0; |
2869
|
0
|
|
|
|
|
|
$xfer += $input->readMapBegin(\$_ktype119, \$_vtype120, \$_size118); |
2870
|
0
|
|
|
|
|
|
for (my $_i122 = 0; $_i122 < $_size118; ++$_i122) |
2871
|
|
|
|
|
|
|
{ |
2872
|
0
|
|
|
|
|
|
my $key123 = ''; |
2873
|
0
|
|
|
|
|
|
my $val124 = ''; |
2874
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$key123); |
2875
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$val124); |
2876
|
0
|
|
|
|
|
|
$self->{configuration}->{$key123} = $val124; |
2877
|
|
|
|
|
|
|
} |
2878
|
0
|
|
|
|
|
|
$xfer += $input->readMapEnd(); |
2879
|
|
|
|
|
|
|
} |
2880
|
|
|
|
|
|
|
} else { |
2881
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2882
|
|
|
|
|
|
|
} |
2883
|
0
|
|
|
|
|
|
last; }; |
2884
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2885
|
|
|
|
|
|
|
} |
2886
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
2887
|
|
|
|
|
|
|
} |
2888
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
2889
|
0
|
|
|
|
|
|
return $xfer; |
2890
|
|
|
|
|
|
|
} |
2891
|
|
|
|
|
|
|
|
2892
|
|
|
|
|
|
|
sub write { |
2893
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
2894
|
0
|
|
|
|
|
|
my $xfer = 0; |
2895
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TOpenSessionResp'); |
2896
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
2897
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
2898
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
2899
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2900
|
|
|
|
|
|
|
} |
2901
|
0
|
0
|
|
|
|
|
if (defined $self->{serverProtocolVersion}) { |
2902
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('serverProtocolVersion', TType::I32, 2); |
2903
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{serverProtocolVersion}); |
2904
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2905
|
|
|
|
|
|
|
} |
2906
|
0
|
0
|
|
|
|
|
if (defined $self->{sessionHandle}) { |
2907
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('sessionHandle', TType::STRUCT, 3); |
2908
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->write($output); |
2909
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2910
|
|
|
|
|
|
|
} |
2911
|
0
|
0
|
|
|
|
|
if (defined $self->{configuration}) { |
2912
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('configuration', TType::MAP, 4); |
2913
|
|
|
|
|
|
|
{ |
2914
|
0
|
|
|
|
|
|
$xfer += $output->writeMapBegin(TType::STRING, TType::STRING, scalar(keys %{$self->{configuration}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
2915
|
|
|
|
|
|
|
{ |
2916
|
0
|
|
|
|
|
|
while( my ($kiter125,$viter126) = each %{$self->{configuration}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
2917
|
|
|
|
|
|
|
{ |
2918
|
0
|
|
|
|
|
|
$xfer += $output->writeString($kiter125); |
2919
|
0
|
|
|
|
|
|
$xfer += $output->writeString($viter126); |
2920
|
|
|
|
|
|
|
} |
2921
|
|
|
|
|
|
|
} |
2922
|
0
|
|
|
|
|
|
$xfer += $output->writeMapEnd(); |
2923
|
|
|
|
|
|
|
} |
2924
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2925
|
|
|
|
|
|
|
} |
2926
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
2927
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
2928
|
0
|
|
|
|
|
|
return $xfer; |
2929
|
|
|
|
|
|
|
} |
2930
|
|
|
|
|
|
|
|
2931
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TCloseSessionReq; |
2932
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TCloseSessionReq::VERSION = '0.024'; |
2933
|
|
|
|
|
|
|
{ |
2934
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TCloseSessionReq::DIST = 'Thrift-API-HiveClient2'; |
2935
|
|
|
|
|
|
|
} |
2936
|
2
|
|
|
2
|
|
18
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
1032
|
|
2937
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TCloseSessionReq->mk_accessors( qw( sessionHandle ) ); |
2938
|
|
|
|
|
|
|
|
2939
|
|
|
|
|
|
|
sub new { |
2940
|
0
|
|
|
0
|
|
|
my $classname = shift; |
2941
|
0
|
|
|
|
|
|
my $self = {}; |
2942
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
2943
|
0
|
|
|
|
|
|
$self->{sessionHandle} = undef; |
2944
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
2945
|
0
|
0
|
|
|
|
|
if (defined $vals->{sessionHandle}) { |
2946
|
0
|
|
|
|
|
|
$self->{sessionHandle} = $vals->{sessionHandle}; |
2947
|
|
|
|
|
|
|
} |
2948
|
|
|
|
|
|
|
} |
2949
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
2950
|
|
|
|
|
|
|
} |
2951
|
|
|
|
|
|
|
|
2952
|
|
|
|
|
|
|
sub getName { |
2953
|
0
|
|
|
0
|
|
|
return 'TCloseSessionReq'; |
2954
|
|
|
|
|
|
|
} |
2955
|
|
|
|
|
|
|
|
2956
|
|
|
|
|
|
|
sub read { |
2957
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
2958
|
0
|
|
|
|
|
|
my $xfer = 0; |
2959
|
0
|
|
|
|
|
|
my $fname; |
2960
|
0
|
|
|
|
|
|
my $ftype = 0; |
2961
|
0
|
|
|
|
|
|
my $fid = 0; |
2962
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
2963
|
0
|
|
|
|
|
|
while (1) |
2964
|
|
|
|
|
|
|
{ |
2965
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
2966
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
2967
|
0
|
|
|
|
|
|
last; |
2968
|
|
|
|
|
|
|
} |
2969
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
2970
|
|
|
|
|
|
|
{ |
2971
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
2972
|
0
|
|
|
|
|
|
$self->{sessionHandle} = new Thrift::API::HiveClient2::TSessionHandle(); |
2973
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->read($input); |
2974
|
|
|
|
|
|
|
} else { |
2975
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2976
|
|
|
|
|
|
|
} |
2977
|
0
|
|
|
|
|
|
last; }; |
2978
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
2979
|
|
|
|
|
|
|
} |
2980
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
2981
|
|
|
|
|
|
|
} |
2982
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
2983
|
0
|
|
|
|
|
|
return $xfer; |
2984
|
|
|
|
|
|
|
} |
2985
|
|
|
|
|
|
|
|
2986
|
|
|
|
|
|
|
sub write { |
2987
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
2988
|
0
|
|
|
|
|
|
my $xfer = 0; |
2989
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TCloseSessionReq'); |
2990
|
0
|
0
|
|
|
|
|
if (defined $self->{sessionHandle}) { |
2991
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('sessionHandle', TType::STRUCT, 1); |
2992
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->write($output); |
2993
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
2994
|
|
|
|
|
|
|
} |
2995
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
2996
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
2997
|
0
|
|
|
|
|
|
return $xfer; |
2998
|
|
|
|
|
|
|
} |
2999
|
|
|
|
|
|
|
|
3000
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TCloseSessionResp; |
3001
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TCloseSessionResp::VERSION = '0.024'; |
3002
|
|
|
|
|
|
|
{ |
3003
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TCloseSessionResp::DIST = 'Thrift-API-HiveClient2'; |
3004
|
|
|
|
|
|
|
} |
3005
|
2
|
|
|
2
|
|
17
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
973
|
|
3006
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TCloseSessionResp->mk_accessors( qw( status ) ); |
3007
|
|
|
|
|
|
|
|
3008
|
|
|
|
|
|
|
sub new { |
3009
|
0
|
|
|
0
|
|
|
my $classname = shift; |
3010
|
0
|
|
|
|
|
|
my $self = {}; |
3011
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
3012
|
0
|
|
|
|
|
|
$self->{status} = undef; |
3013
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
3014
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
3015
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
3016
|
|
|
|
|
|
|
} |
3017
|
|
|
|
|
|
|
} |
3018
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
3019
|
|
|
|
|
|
|
} |
3020
|
|
|
|
|
|
|
|
3021
|
|
|
|
|
|
|
sub getName { |
3022
|
0
|
|
|
0
|
|
|
return 'TCloseSessionResp'; |
3023
|
|
|
|
|
|
|
} |
3024
|
|
|
|
|
|
|
|
3025
|
|
|
|
|
|
|
sub read { |
3026
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
3027
|
0
|
|
|
|
|
|
my $xfer = 0; |
3028
|
0
|
|
|
|
|
|
my $fname; |
3029
|
0
|
|
|
|
|
|
my $ftype = 0; |
3030
|
0
|
|
|
|
|
|
my $fid = 0; |
3031
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
3032
|
0
|
|
|
|
|
|
while (1) |
3033
|
|
|
|
|
|
|
{ |
3034
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
3035
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
3036
|
0
|
|
|
|
|
|
last; |
3037
|
|
|
|
|
|
|
} |
3038
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
3039
|
|
|
|
|
|
|
{ |
3040
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
3041
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
3042
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
3043
|
|
|
|
|
|
|
} else { |
3044
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3045
|
|
|
|
|
|
|
} |
3046
|
0
|
|
|
|
|
|
last; }; |
3047
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3048
|
|
|
|
|
|
|
} |
3049
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
3050
|
|
|
|
|
|
|
} |
3051
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
3052
|
0
|
|
|
|
|
|
return $xfer; |
3053
|
|
|
|
|
|
|
} |
3054
|
|
|
|
|
|
|
|
3055
|
|
|
|
|
|
|
sub write { |
3056
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
3057
|
0
|
|
|
|
|
|
my $xfer = 0; |
3058
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TCloseSessionResp'); |
3059
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
3060
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
3061
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
3062
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3063
|
|
|
|
|
|
|
} |
3064
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
3065
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
3066
|
0
|
|
|
|
|
|
return $xfer; |
3067
|
|
|
|
|
|
|
} |
3068
|
|
|
|
|
|
|
|
3069
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetInfoValue; |
3070
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetInfoValue::VERSION = '0.024'; |
3071
|
|
|
|
|
|
|
{ |
3072
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetInfoValue::DIST = 'Thrift-API-HiveClient2'; |
3073
|
|
|
|
|
|
|
} |
3074
|
2
|
|
|
2
|
|
16
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
13
|
|
|
2
|
|
|
|
|
2005
|
|
3075
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetInfoValue->mk_accessors( qw( stringValue smallIntValue integerBitmask integerFlag binaryValue lenValue ) ); |
3076
|
|
|
|
|
|
|
|
3077
|
|
|
|
|
|
|
sub new { |
3078
|
0
|
|
|
0
|
|
|
my $classname = shift; |
3079
|
0
|
|
|
|
|
|
my $self = {}; |
3080
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
3081
|
0
|
|
|
|
|
|
$self->{stringValue} = undef; |
3082
|
0
|
|
|
|
|
|
$self->{smallIntValue} = undef; |
3083
|
0
|
|
|
|
|
|
$self->{integerBitmask} = undef; |
3084
|
0
|
|
|
|
|
|
$self->{integerFlag} = undef; |
3085
|
0
|
|
|
|
|
|
$self->{binaryValue} = undef; |
3086
|
0
|
|
|
|
|
|
$self->{lenValue} = undef; |
3087
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
3088
|
0
|
0
|
|
|
|
|
if (defined $vals->{stringValue}) { |
3089
|
0
|
|
|
|
|
|
$self->{stringValue} = $vals->{stringValue}; |
3090
|
|
|
|
|
|
|
} |
3091
|
0
|
0
|
|
|
|
|
if (defined $vals->{smallIntValue}) { |
3092
|
0
|
|
|
|
|
|
$self->{smallIntValue} = $vals->{smallIntValue}; |
3093
|
|
|
|
|
|
|
} |
3094
|
0
|
0
|
|
|
|
|
if (defined $vals->{integerBitmask}) { |
3095
|
0
|
|
|
|
|
|
$self->{integerBitmask} = $vals->{integerBitmask}; |
3096
|
|
|
|
|
|
|
} |
3097
|
0
|
0
|
|
|
|
|
if (defined $vals->{integerFlag}) { |
3098
|
0
|
|
|
|
|
|
$self->{integerFlag} = $vals->{integerFlag}; |
3099
|
|
|
|
|
|
|
} |
3100
|
0
|
0
|
|
|
|
|
if (defined $vals->{binaryValue}) { |
3101
|
0
|
|
|
|
|
|
$self->{binaryValue} = $vals->{binaryValue}; |
3102
|
|
|
|
|
|
|
} |
3103
|
0
|
0
|
|
|
|
|
if (defined $vals->{lenValue}) { |
3104
|
0
|
|
|
|
|
|
$self->{lenValue} = $vals->{lenValue}; |
3105
|
|
|
|
|
|
|
} |
3106
|
|
|
|
|
|
|
} |
3107
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
3108
|
|
|
|
|
|
|
} |
3109
|
|
|
|
|
|
|
|
3110
|
|
|
|
|
|
|
sub getName { |
3111
|
0
|
|
|
0
|
|
|
return 'TGetInfoValue'; |
3112
|
|
|
|
|
|
|
} |
3113
|
|
|
|
|
|
|
|
3114
|
|
|
|
|
|
|
sub read { |
3115
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
3116
|
0
|
|
|
|
|
|
my $xfer = 0; |
3117
|
0
|
|
|
|
|
|
my $fname; |
3118
|
0
|
|
|
|
|
|
my $ftype = 0; |
3119
|
0
|
|
|
|
|
|
my $fid = 0; |
3120
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
3121
|
0
|
|
|
|
|
|
while (1) |
3122
|
|
|
|
|
|
|
{ |
3123
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
3124
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
3125
|
0
|
|
|
|
|
|
last; |
3126
|
|
|
|
|
|
|
} |
3127
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
3128
|
|
|
|
|
|
|
{ |
3129
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
3130
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{stringValue}); |
3131
|
|
|
|
|
|
|
} else { |
3132
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3133
|
|
|
|
|
|
|
} |
3134
|
0
|
|
|
|
|
|
last; }; |
3135
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::I16) { |
|
0
|
0
|
|
|
|
|
|
3136
|
0
|
|
|
|
|
|
$xfer += $input->readI16(\$self->{smallIntValue}); |
3137
|
|
|
|
|
|
|
} else { |
3138
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3139
|
|
|
|
|
|
|
} |
3140
|
0
|
|
|
|
|
|
last; }; |
3141
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
3142
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{integerBitmask}); |
3143
|
|
|
|
|
|
|
} else { |
3144
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3145
|
|
|
|
|
|
|
} |
3146
|
0
|
|
|
|
|
|
last; }; |
3147
|
0
|
0
|
|
|
|
|
/^4$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
3148
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{integerFlag}); |
3149
|
|
|
|
|
|
|
} else { |
3150
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3151
|
|
|
|
|
|
|
} |
3152
|
0
|
|
|
|
|
|
last; }; |
3153
|
0
|
0
|
|
|
|
|
/^5$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
3154
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{binaryValue}); |
3155
|
|
|
|
|
|
|
} else { |
3156
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3157
|
|
|
|
|
|
|
} |
3158
|
0
|
|
|
|
|
|
last; }; |
3159
|
0
|
0
|
|
|
|
|
/^6$/ && do{ if ($ftype == TType::I64) { |
|
0
|
0
|
|
|
|
|
|
3160
|
0
|
|
|
|
|
|
$xfer += $input->readI64(\$self->{lenValue}); |
3161
|
|
|
|
|
|
|
} else { |
3162
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3163
|
|
|
|
|
|
|
} |
3164
|
0
|
|
|
|
|
|
last; }; |
3165
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3166
|
|
|
|
|
|
|
} |
3167
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
3168
|
|
|
|
|
|
|
} |
3169
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
3170
|
0
|
|
|
|
|
|
return $xfer; |
3171
|
|
|
|
|
|
|
} |
3172
|
|
|
|
|
|
|
|
3173
|
|
|
|
|
|
|
sub write { |
3174
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
3175
|
0
|
|
|
|
|
|
my $xfer = 0; |
3176
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetInfoValue'); |
3177
|
0
|
0
|
|
|
|
|
if (defined $self->{stringValue}) { |
3178
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('stringValue', TType::STRING, 1); |
3179
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{stringValue}); |
3180
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3181
|
|
|
|
|
|
|
} |
3182
|
0
|
0
|
|
|
|
|
if (defined $self->{smallIntValue}) { |
3183
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('smallIntValue', TType::I16, 2); |
3184
|
0
|
|
|
|
|
|
$xfer += $output->writeI16($self->{smallIntValue}); |
3185
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3186
|
|
|
|
|
|
|
} |
3187
|
0
|
0
|
|
|
|
|
if (defined $self->{integerBitmask}) { |
3188
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('integerBitmask', TType::I32, 3); |
3189
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{integerBitmask}); |
3190
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3191
|
|
|
|
|
|
|
} |
3192
|
0
|
0
|
|
|
|
|
if (defined $self->{integerFlag}) { |
3193
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('integerFlag', TType::I32, 4); |
3194
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{integerFlag}); |
3195
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3196
|
|
|
|
|
|
|
} |
3197
|
0
|
0
|
|
|
|
|
if (defined $self->{binaryValue}) { |
3198
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('binaryValue', TType::I32, 5); |
3199
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{binaryValue}); |
3200
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3201
|
|
|
|
|
|
|
} |
3202
|
0
|
0
|
|
|
|
|
if (defined $self->{lenValue}) { |
3203
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('lenValue', TType::I64, 6); |
3204
|
0
|
|
|
|
|
|
$xfer += $output->writeI64($self->{lenValue}); |
3205
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3206
|
|
|
|
|
|
|
} |
3207
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
3208
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
3209
|
0
|
|
|
|
|
|
return $xfer; |
3210
|
|
|
|
|
|
|
} |
3211
|
|
|
|
|
|
|
|
3212
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetInfoReq; |
3213
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetInfoReq::VERSION = '0.024'; |
3214
|
|
|
|
|
|
|
{ |
3215
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetInfoReq::DIST = 'Thrift-API-HiveClient2'; |
3216
|
|
|
|
|
|
|
} |
3217
|
2
|
|
|
2
|
|
18
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
1234
|
|
3218
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetInfoReq->mk_accessors( qw( sessionHandle infoType ) ); |
3219
|
|
|
|
|
|
|
|
3220
|
|
|
|
|
|
|
sub new { |
3221
|
0
|
|
|
0
|
|
|
my $classname = shift; |
3222
|
0
|
|
|
|
|
|
my $self = {}; |
3223
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
3224
|
0
|
|
|
|
|
|
$self->{sessionHandle} = undef; |
3225
|
0
|
|
|
|
|
|
$self->{infoType} = undef; |
3226
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
3227
|
0
|
0
|
|
|
|
|
if (defined $vals->{sessionHandle}) { |
3228
|
0
|
|
|
|
|
|
$self->{sessionHandle} = $vals->{sessionHandle}; |
3229
|
|
|
|
|
|
|
} |
3230
|
0
|
0
|
|
|
|
|
if (defined $vals->{infoType}) { |
3231
|
0
|
|
|
|
|
|
$self->{infoType} = $vals->{infoType}; |
3232
|
|
|
|
|
|
|
} |
3233
|
|
|
|
|
|
|
} |
3234
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
3235
|
|
|
|
|
|
|
} |
3236
|
|
|
|
|
|
|
|
3237
|
|
|
|
|
|
|
sub getName { |
3238
|
0
|
|
|
0
|
|
|
return 'TGetInfoReq'; |
3239
|
|
|
|
|
|
|
} |
3240
|
|
|
|
|
|
|
|
3241
|
|
|
|
|
|
|
sub read { |
3242
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
3243
|
0
|
|
|
|
|
|
my $xfer = 0; |
3244
|
0
|
|
|
|
|
|
my $fname; |
3245
|
0
|
|
|
|
|
|
my $ftype = 0; |
3246
|
0
|
|
|
|
|
|
my $fid = 0; |
3247
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
3248
|
0
|
|
|
|
|
|
while (1) |
3249
|
|
|
|
|
|
|
{ |
3250
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
3251
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
3252
|
0
|
|
|
|
|
|
last; |
3253
|
|
|
|
|
|
|
} |
3254
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
3255
|
|
|
|
|
|
|
{ |
3256
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
3257
|
0
|
|
|
|
|
|
$self->{sessionHandle} = new Thrift::API::HiveClient2::TSessionHandle(); |
3258
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->read($input); |
3259
|
|
|
|
|
|
|
} else { |
3260
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3261
|
|
|
|
|
|
|
} |
3262
|
0
|
|
|
|
|
|
last; }; |
3263
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
3264
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{infoType}); |
3265
|
|
|
|
|
|
|
} else { |
3266
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3267
|
|
|
|
|
|
|
} |
3268
|
0
|
|
|
|
|
|
last; }; |
3269
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3270
|
|
|
|
|
|
|
} |
3271
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
3272
|
|
|
|
|
|
|
} |
3273
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
3274
|
0
|
|
|
|
|
|
return $xfer; |
3275
|
|
|
|
|
|
|
} |
3276
|
|
|
|
|
|
|
|
3277
|
|
|
|
|
|
|
sub write { |
3278
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
3279
|
0
|
|
|
|
|
|
my $xfer = 0; |
3280
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetInfoReq'); |
3281
|
0
|
0
|
|
|
|
|
if (defined $self->{sessionHandle}) { |
3282
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('sessionHandle', TType::STRUCT, 1); |
3283
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->write($output); |
3284
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3285
|
|
|
|
|
|
|
} |
3286
|
0
|
0
|
|
|
|
|
if (defined $self->{infoType}) { |
3287
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('infoType', TType::I32, 2); |
3288
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{infoType}); |
3289
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3290
|
|
|
|
|
|
|
} |
3291
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
3292
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
3293
|
0
|
|
|
|
|
|
return $xfer; |
3294
|
|
|
|
|
|
|
} |
3295
|
|
|
|
|
|
|
|
3296
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetInfoResp; |
3297
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetInfoResp::VERSION = '0.024'; |
3298
|
|
|
|
|
|
|
{ |
3299
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetInfoResp::DIST = 'Thrift-API-HiveClient2'; |
3300
|
|
|
|
|
|
|
} |
3301
|
2
|
|
|
2
|
|
18
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
1200
|
|
3302
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetInfoResp->mk_accessors( qw( status infoValue ) ); |
3303
|
|
|
|
|
|
|
|
3304
|
|
|
|
|
|
|
sub new { |
3305
|
0
|
|
|
0
|
|
|
my $classname = shift; |
3306
|
0
|
|
|
|
|
|
my $self = {}; |
3307
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
3308
|
0
|
|
|
|
|
|
$self->{status} = undef; |
3309
|
0
|
|
|
|
|
|
$self->{infoValue} = undef; |
3310
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
3311
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
3312
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
3313
|
|
|
|
|
|
|
} |
3314
|
0
|
0
|
|
|
|
|
if (defined $vals->{infoValue}) { |
3315
|
0
|
|
|
|
|
|
$self->{infoValue} = $vals->{infoValue}; |
3316
|
|
|
|
|
|
|
} |
3317
|
|
|
|
|
|
|
} |
3318
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
3319
|
|
|
|
|
|
|
} |
3320
|
|
|
|
|
|
|
|
3321
|
|
|
|
|
|
|
sub getName { |
3322
|
0
|
|
|
0
|
|
|
return 'TGetInfoResp'; |
3323
|
|
|
|
|
|
|
} |
3324
|
|
|
|
|
|
|
|
3325
|
|
|
|
|
|
|
sub read { |
3326
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
3327
|
0
|
|
|
|
|
|
my $xfer = 0; |
3328
|
0
|
|
|
|
|
|
my $fname; |
3329
|
0
|
|
|
|
|
|
my $ftype = 0; |
3330
|
0
|
|
|
|
|
|
my $fid = 0; |
3331
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
3332
|
0
|
|
|
|
|
|
while (1) |
3333
|
|
|
|
|
|
|
{ |
3334
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
3335
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
3336
|
0
|
|
|
|
|
|
last; |
3337
|
|
|
|
|
|
|
} |
3338
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
3339
|
|
|
|
|
|
|
{ |
3340
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
3341
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
3342
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
3343
|
|
|
|
|
|
|
} else { |
3344
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3345
|
|
|
|
|
|
|
} |
3346
|
0
|
|
|
|
|
|
last; }; |
3347
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
3348
|
0
|
|
|
|
|
|
$self->{infoValue} = new Thrift::API::HiveClient2::TGetInfoValue(); |
3349
|
0
|
|
|
|
|
|
$xfer += $self->{infoValue}->read($input); |
3350
|
|
|
|
|
|
|
} else { |
3351
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3352
|
|
|
|
|
|
|
} |
3353
|
0
|
|
|
|
|
|
last; }; |
3354
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3355
|
|
|
|
|
|
|
} |
3356
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
3357
|
|
|
|
|
|
|
} |
3358
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
3359
|
0
|
|
|
|
|
|
return $xfer; |
3360
|
|
|
|
|
|
|
} |
3361
|
|
|
|
|
|
|
|
3362
|
|
|
|
|
|
|
sub write { |
3363
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
3364
|
0
|
|
|
|
|
|
my $xfer = 0; |
3365
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetInfoResp'); |
3366
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
3367
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
3368
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
3369
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3370
|
|
|
|
|
|
|
} |
3371
|
0
|
0
|
|
|
|
|
if (defined $self->{infoValue}) { |
3372
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('infoValue', TType::STRUCT, 2); |
3373
|
0
|
|
|
|
|
|
$xfer += $self->{infoValue}->write($output); |
3374
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3375
|
|
|
|
|
|
|
} |
3376
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
3377
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
3378
|
0
|
|
|
|
|
|
return $xfer; |
3379
|
|
|
|
|
|
|
} |
3380
|
|
|
|
|
|
|
|
3381
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TExecuteStatementReq; |
3382
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TExecuteStatementReq::VERSION = '0.024'; |
3383
|
|
|
|
|
|
|
{ |
3384
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TExecuteStatementReq::DIST = 'Thrift-API-HiveClient2'; |
3385
|
|
|
|
|
|
|
} |
3386
|
2
|
|
|
2
|
|
18
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1763
|
|
3387
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TExecuteStatementReq->mk_accessors( qw( sessionHandle statement confOverlay ) ); |
3388
|
|
|
|
|
|
|
|
3389
|
|
|
|
|
|
|
sub new { |
3390
|
0
|
|
|
0
|
|
|
my $classname = shift; |
3391
|
0
|
|
|
|
|
|
my $self = {}; |
3392
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
3393
|
0
|
|
|
|
|
|
$self->{sessionHandle} = undef; |
3394
|
0
|
|
|
|
|
|
$self->{statement} = undef; |
3395
|
0
|
|
|
|
|
|
$self->{confOverlay} = undef; |
3396
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
3397
|
0
|
0
|
|
|
|
|
if (defined $vals->{sessionHandle}) { |
3398
|
0
|
|
|
|
|
|
$self->{sessionHandle} = $vals->{sessionHandle}; |
3399
|
|
|
|
|
|
|
} |
3400
|
0
|
0
|
|
|
|
|
if (defined $vals->{statement}) { |
3401
|
0
|
|
|
|
|
|
$self->{statement} = $vals->{statement}; |
3402
|
|
|
|
|
|
|
} |
3403
|
0
|
0
|
|
|
|
|
if (defined $vals->{confOverlay}) { |
3404
|
0
|
|
|
|
|
|
$self->{confOverlay} = $vals->{confOverlay}; |
3405
|
|
|
|
|
|
|
} |
3406
|
|
|
|
|
|
|
} |
3407
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
3408
|
|
|
|
|
|
|
} |
3409
|
|
|
|
|
|
|
|
3410
|
|
|
|
|
|
|
sub getName { |
3411
|
0
|
|
|
0
|
|
|
return 'TExecuteStatementReq'; |
3412
|
|
|
|
|
|
|
} |
3413
|
|
|
|
|
|
|
|
3414
|
|
|
|
|
|
|
sub read { |
3415
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
3416
|
0
|
|
|
|
|
|
my $xfer = 0; |
3417
|
0
|
|
|
|
|
|
my $fname; |
3418
|
0
|
|
|
|
|
|
my $ftype = 0; |
3419
|
0
|
|
|
|
|
|
my $fid = 0; |
3420
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
3421
|
0
|
|
|
|
|
|
while (1) |
3422
|
|
|
|
|
|
|
{ |
3423
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
3424
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
3425
|
0
|
|
|
|
|
|
last; |
3426
|
|
|
|
|
|
|
} |
3427
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
3428
|
|
|
|
|
|
|
{ |
3429
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
3430
|
0
|
|
|
|
|
|
$self->{sessionHandle} = new Thrift::API::HiveClient2::TSessionHandle(); |
3431
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->read($input); |
3432
|
|
|
|
|
|
|
} else { |
3433
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3434
|
|
|
|
|
|
|
} |
3435
|
0
|
|
|
|
|
|
last; }; |
3436
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
3437
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{statement}); |
3438
|
|
|
|
|
|
|
} else { |
3439
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3440
|
|
|
|
|
|
|
} |
3441
|
0
|
|
|
|
|
|
last; }; |
3442
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::MAP) { |
|
0
|
0
|
|
|
|
|
|
3443
|
|
|
|
|
|
|
{ |
3444
|
0
|
|
|
|
|
|
my $_size127 = 0; |
|
0
|
|
|
|
|
|
|
3445
|
0
|
|
|
|
|
|
$self->{confOverlay} = {}; |
3446
|
0
|
|
|
|
|
|
my $_ktype128 = 0; |
3447
|
0
|
|
|
|
|
|
my $_vtype129 = 0; |
3448
|
0
|
|
|
|
|
|
$xfer += $input->readMapBegin(\$_ktype128, \$_vtype129, \$_size127); |
3449
|
0
|
|
|
|
|
|
for (my $_i131 = 0; $_i131 < $_size127; ++$_i131) |
3450
|
|
|
|
|
|
|
{ |
3451
|
0
|
|
|
|
|
|
my $key132 = ''; |
3452
|
0
|
|
|
|
|
|
my $val133 = ''; |
3453
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$key132); |
3454
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$val133); |
3455
|
0
|
|
|
|
|
|
$self->{confOverlay}->{$key132} = $val133; |
3456
|
|
|
|
|
|
|
} |
3457
|
0
|
|
|
|
|
|
$xfer += $input->readMapEnd(); |
3458
|
|
|
|
|
|
|
} |
3459
|
|
|
|
|
|
|
} else { |
3460
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3461
|
|
|
|
|
|
|
} |
3462
|
0
|
|
|
|
|
|
last; }; |
3463
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3464
|
|
|
|
|
|
|
} |
3465
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
3466
|
|
|
|
|
|
|
} |
3467
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
3468
|
0
|
|
|
|
|
|
return $xfer; |
3469
|
|
|
|
|
|
|
} |
3470
|
|
|
|
|
|
|
|
3471
|
|
|
|
|
|
|
sub write { |
3472
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
3473
|
0
|
|
|
|
|
|
my $xfer = 0; |
3474
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TExecuteStatementReq'); |
3475
|
0
|
0
|
|
|
|
|
if (defined $self->{sessionHandle}) { |
3476
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('sessionHandle', TType::STRUCT, 1); |
3477
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->write($output); |
3478
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3479
|
|
|
|
|
|
|
} |
3480
|
0
|
0
|
|
|
|
|
if (defined $self->{statement}) { |
3481
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('statement', TType::STRING, 2); |
3482
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{statement}); |
3483
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3484
|
|
|
|
|
|
|
} |
3485
|
0
|
0
|
|
|
|
|
if (defined $self->{confOverlay}) { |
3486
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('confOverlay', TType::MAP, 3); |
3487
|
|
|
|
|
|
|
{ |
3488
|
0
|
|
|
|
|
|
$xfer += $output->writeMapBegin(TType::STRING, TType::STRING, scalar(keys %{$self->{confOverlay}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
3489
|
|
|
|
|
|
|
{ |
3490
|
0
|
|
|
|
|
|
while( my ($kiter134,$viter135) = each %{$self->{confOverlay}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
3491
|
|
|
|
|
|
|
{ |
3492
|
0
|
|
|
|
|
|
$xfer += $output->writeString($kiter134); |
3493
|
0
|
|
|
|
|
|
$xfer += $output->writeString($viter135); |
3494
|
|
|
|
|
|
|
} |
3495
|
|
|
|
|
|
|
} |
3496
|
0
|
|
|
|
|
|
$xfer += $output->writeMapEnd(); |
3497
|
|
|
|
|
|
|
} |
3498
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3499
|
|
|
|
|
|
|
} |
3500
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
3501
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
3502
|
0
|
|
|
|
|
|
return $xfer; |
3503
|
|
|
|
|
|
|
} |
3504
|
|
|
|
|
|
|
|
3505
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TExecuteStatementResp; |
3506
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TExecuteStatementResp::VERSION = '0.024'; |
3507
|
|
|
|
|
|
|
{ |
3508
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TExecuteStatementResp::DIST = 'Thrift-API-HiveClient2'; |
3509
|
|
|
|
|
|
|
} |
3510
|
2
|
|
|
2
|
|
16
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1209
|
|
3511
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TExecuteStatementResp->mk_accessors( qw( status operationHandle ) ); |
3512
|
|
|
|
|
|
|
|
3513
|
|
|
|
|
|
|
sub new { |
3514
|
0
|
|
|
0
|
|
|
my $classname = shift; |
3515
|
0
|
|
|
|
|
|
my $self = {}; |
3516
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
3517
|
0
|
|
|
|
|
|
$self->{status} = undef; |
3518
|
0
|
|
|
|
|
|
$self->{operationHandle} = undef; |
3519
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
3520
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
3521
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
3522
|
|
|
|
|
|
|
} |
3523
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationHandle}) { |
3524
|
0
|
|
|
|
|
|
$self->{operationHandle} = $vals->{operationHandle}; |
3525
|
|
|
|
|
|
|
} |
3526
|
|
|
|
|
|
|
} |
3527
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
3528
|
|
|
|
|
|
|
} |
3529
|
|
|
|
|
|
|
|
3530
|
|
|
|
|
|
|
sub getName { |
3531
|
0
|
|
|
0
|
|
|
return 'TExecuteStatementResp'; |
3532
|
|
|
|
|
|
|
} |
3533
|
|
|
|
|
|
|
|
3534
|
|
|
|
|
|
|
sub read { |
3535
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
3536
|
0
|
|
|
|
|
|
my $xfer = 0; |
3537
|
0
|
|
|
|
|
|
my $fname; |
3538
|
0
|
|
|
|
|
|
my $ftype = 0; |
3539
|
0
|
|
|
|
|
|
my $fid = 0; |
3540
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
3541
|
0
|
|
|
|
|
|
while (1) |
3542
|
|
|
|
|
|
|
{ |
3543
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
3544
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
3545
|
0
|
|
|
|
|
|
last; |
3546
|
|
|
|
|
|
|
} |
3547
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
3548
|
|
|
|
|
|
|
{ |
3549
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
3550
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
3551
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
3552
|
|
|
|
|
|
|
} else { |
3553
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3554
|
|
|
|
|
|
|
} |
3555
|
0
|
|
|
|
|
|
last; }; |
3556
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
3557
|
0
|
|
|
|
|
|
$self->{operationHandle} = new Thrift::API::HiveClient2::TOperationHandle(); |
3558
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->read($input); |
3559
|
|
|
|
|
|
|
} else { |
3560
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3561
|
|
|
|
|
|
|
} |
3562
|
0
|
|
|
|
|
|
last; }; |
3563
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3564
|
|
|
|
|
|
|
} |
3565
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
3566
|
|
|
|
|
|
|
} |
3567
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
3568
|
0
|
|
|
|
|
|
return $xfer; |
3569
|
|
|
|
|
|
|
} |
3570
|
|
|
|
|
|
|
|
3571
|
|
|
|
|
|
|
sub write { |
3572
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
3573
|
0
|
|
|
|
|
|
my $xfer = 0; |
3574
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TExecuteStatementResp'); |
3575
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
3576
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
3577
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
3578
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3579
|
|
|
|
|
|
|
} |
3580
|
0
|
0
|
|
|
|
|
if (defined $self->{operationHandle}) { |
3581
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationHandle', TType::STRUCT, 2); |
3582
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->write($output); |
3583
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3584
|
|
|
|
|
|
|
} |
3585
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
3586
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
3587
|
0
|
|
|
|
|
|
return $xfer; |
3588
|
|
|
|
|
|
|
} |
3589
|
|
|
|
|
|
|
|
3590
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetTypeInfoReq; |
3591
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetTypeInfoReq::VERSION = '0.024'; |
3592
|
|
|
|
|
|
|
{ |
3593
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetTypeInfoReq::DIST = 'Thrift-API-HiveClient2'; |
3594
|
|
|
|
|
|
|
} |
3595
|
2
|
|
|
2
|
|
16
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
1009
|
|
3596
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetTypeInfoReq->mk_accessors( qw( sessionHandle ) ); |
3597
|
|
|
|
|
|
|
|
3598
|
|
|
|
|
|
|
sub new { |
3599
|
0
|
|
|
0
|
|
|
my $classname = shift; |
3600
|
0
|
|
|
|
|
|
my $self = {}; |
3601
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
3602
|
0
|
|
|
|
|
|
$self->{sessionHandle} = undef; |
3603
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
3604
|
0
|
0
|
|
|
|
|
if (defined $vals->{sessionHandle}) { |
3605
|
0
|
|
|
|
|
|
$self->{sessionHandle} = $vals->{sessionHandle}; |
3606
|
|
|
|
|
|
|
} |
3607
|
|
|
|
|
|
|
} |
3608
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
3609
|
|
|
|
|
|
|
} |
3610
|
|
|
|
|
|
|
|
3611
|
|
|
|
|
|
|
sub getName { |
3612
|
0
|
|
|
0
|
|
|
return 'TGetTypeInfoReq'; |
3613
|
|
|
|
|
|
|
} |
3614
|
|
|
|
|
|
|
|
3615
|
|
|
|
|
|
|
sub read { |
3616
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
3617
|
0
|
|
|
|
|
|
my $xfer = 0; |
3618
|
0
|
|
|
|
|
|
my $fname; |
3619
|
0
|
|
|
|
|
|
my $ftype = 0; |
3620
|
0
|
|
|
|
|
|
my $fid = 0; |
3621
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
3622
|
0
|
|
|
|
|
|
while (1) |
3623
|
|
|
|
|
|
|
{ |
3624
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
3625
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
3626
|
0
|
|
|
|
|
|
last; |
3627
|
|
|
|
|
|
|
} |
3628
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
3629
|
|
|
|
|
|
|
{ |
3630
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
3631
|
0
|
|
|
|
|
|
$self->{sessionHandle} = new Thrift::API::HiveClient2::TSessionHandle(); |
3632
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->read($input); |
3633
|
|
|
|
|
|
|
} else { |
3634
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3635
|
|
|
|
|
|
|
} |
3636
|
0
|
|
|
|
|
|
last; }; |
3637
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3638
|
|
|
|
|
|
|
} |
3639
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
3640
|
|
|
|
|
|
|
} |
3641
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
3642
|
0
|
|
|
|
|
|
return $xfer; |
3643
|
|
|
|
|
|
|
} |
3644
|
|
|
|
|
|
|
|
3645
|
|
|
|
|
|
|
sub write { |
3646
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
3647
|
0
|
|
|
|
|
|
my $xfer = 0; |
3648
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetTypeInfoReq'); |
3649
|
0
|
0
|
|
|
|
|
if (defined $self->{sessionHandle}) { |
3650
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('sessionHandle', TType::STRUCT, 1); |
3651
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->write($output); |
3652
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3653
|
|
|
|
|
|
|
} |
3654
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
3655
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
3656
|
0
|
|
|
|
|
|
return $xfer; |
3657
|
|
|
|
|
|
|
} |
3658
|
|
|
|
|
|
|
|
3659
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetTypeInfoResp; |
3660
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetTypeInfoResp::VERSION = '0.024'; |
3661
|
|
|
|
|
|
|
{ |
3662
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetTypeInfoResp::DIST = 'Thrift-API-HiveClient2'; |
3663
|
|
|
|
|
|
|
} |
3664
|
2
|
|
|
2
|
|
75
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
37
|
|
|
2
|
|
|
|
|
1189
|
|
3665
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetTypeInfoResp->mk_accessors( qw( status operationHandle ) ); |
3666
|
|
|
|
|
|
|
|
3667
|
|
|
|
|
|
|
sub new { |
3668
|
0
|
|
|
0
|
|
|
my $classname = shift; |
3669
|
0
|
|
|
|
|
|
my $self = {}; |
3670
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
3671
|
0
|
|
|
|
|
|
$self->{status} = undef; |
3672
|
0
|
|
|
|
|
|
$self->{operationHandle} = undef; |
3673
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
3674
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
3675
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
3676
|
|
|
|
|
|
|
} |
3677
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationHandle}) { |
3678
|
0
|
|
|
|
|
|
$self->{operationHandle} = $vals->{operationHandle}; |
3679
|
|
|
|
|
|
|
} |
3680
|
|
|
|
|
|
|
} |
3681
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
3682
|
|
|
|
|
|
|
} |
3683
|
|
|
|
|
|
|
|
3684
|
|
|
|
|
|
|
sub getName { |
3685
|
0
|
|
|
0
|
|
|
return 'TGetTypeInfoResp'; |
3686
|
|
|
|
|
|
|
} |
3687
|
|
|
|
|
|
|
|
3688
|
|
|
|
|
|
|
sub read { |
3689
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
3690
|
0
|
|
|
|
|
|
my $xfer = 0; |
3691
|
0
|
|
|
|
|
|
my $fname; |
3692
|
0
|
|
|
|
|
|
my $ftype = 0; |
3693
|
0
|
|
|
|
|
|
my $fid = 0; |
3694
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
3695
|
0
|
|
|
|
|
|
while (1) |
3696
|
|
|
|
|
|
|
{ |
3697
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
3698
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
3699
|
0
|
|
|
|
|
|
last; |
3700
|
|
|
|
|
|
|
} |
3701
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
3702
|
|
|
|
|
|
|
{ |
3703
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
3704
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
3705
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
3706
|
|
|
|
|
|
|
} else { |
3707
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3708
|
|
|
|
|
|
|
} |
3709
|
0
|
|
|
|
|
|
last; }; |
3710
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
3711
|
0
|
|
|
|
|
|
$self->{operationHandle} = new Thrift::API::HiveClient2::TOperationHandle(); |
3712
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->read($input); |
3713
|
|
|
|
|
|
|
} else { |
3714
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3715
|
|
|
|
|
|
|
} |
3716
|
0
|
|
|
|
|
|
last; }; |
3717
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3718
|
|
|
|
|
|
|
} |
3719
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
3720
|
|
|
|
|
|
|
} |
3721
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
3722
|
0
|
|
|
|
|
|
return $xfer; |
3723
|
|
|
|
|
|
|
} |
3724
|
|
|
|
|
|
|
|
3725
|
|
|
|
|
|
|
sub write { |
3726
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
3727
|
0
|
|
|
|
|
|
my $xfer = 0; |
3728
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetTypeInfoResp'); |
3729
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
3730
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
3731
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
3732
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3733
|
|
|
|
|
|
|
} |
3734
|
0
|
0
|
|
|
|
|
if (defined $self->{operationHandle}) { |
3735
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationHandle', TType::STRUCT, 2); |
3736
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->write($output); |
3737
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3738
|
|
|
|
|
|
|
} |
3739
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
3740
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
3741
|
0
|
|
|
|
|
|
return $xfer; |
3742
|
|
|
|
|
|
|
} |
3743
|
|
|
|
|
|
|
|
3744
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetCatalogsReq; |
3745
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetCatalogsReq::VERSION = '0.024'; |
3746
|
|
|
|
|
|
|
{ |
3747
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetCatalogsReq::DIST = 'Thrift-API-HiveClient2'; |
3748
|
|
|
|
|
|
|
} |
3749
|
2
|
|
|
2
|
|
17
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
1072
|
|
3750
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetCatalogsReq->mk_accessors( qw( sessionHandle ) ); |
3751
|
|
|
|
|
|
|
|
3752
|
|
|
|
|
|
|
sub new { |
3753
|
0
|
|
|
0
|
|
|
my $classname = shift; |
3754
|
0
|
|
|
|
|
|
my $self = {}; |
3755
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
3756
|
0
|
|
|
|
|
|
$self->{sessionHandle} = undef; |
3757
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
3758
|
0
|
0
|
|
|
|
|
if (defined $vals->{sessionHandle}) { |
3759
|
0
|
|
|
|
|
|
$self->{sessionHandle} = $vals->{sessionHandle}; |
3760
|
|
|
|
|
|
|
} |
3761
|
|
|
|
|
|
|
} |
3762
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
3763
|
|
|
|
|
|
|
} |
3764
|
|
|
|
|
|
|
|
3765
|
|
|
|
|
|
|
sub getName { |
3766
|
0
|
|
|
0
|
|
|
return 'TGetCatalogsReq'; |
3767
|
|
|
|
|
|
|
} |
3768
|
|
|
|
|
|
|
|
3769
|
|
|
|
|
|
|
sub read { |
3770
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
3771
|
0
|
|
|
|
|
|
my $xfer = 0; |
3772
|
0
|
|
|
|
|
|
my $fname; |
3773
|
0
|
|
|
|
|
|
my $ftype = 0; |
3774
|
0
|
|
|
|
|
|
my $fid = 0; |
3775
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
3776
|
0
|
|
|
|
|
|
while (1) |
3777
|
|
|
|
|
|
|
{ |
3778
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
3779
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
3780
|
0
|
|
|
|
|
|
last; |
3781
|
|
|
|
|
|
|
} |
3782
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
3783
|
|
|
|
|
|
|
{ |
3784
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
3785
|
0
|
|
|
|
|
|
$self->{sessionHandle} = new Thrift::API::HiveClient2::TSessionHandle(); |
3786
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->read($input); |
3787
|
|
|
|
|
|
|
} else { |
3788
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3789
|
|
|
|
|
|
|
} |
3790
|
0
|
|
|
|
|
|
last; }; |
3791
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3792
|
|
|
|
|
|
|
} |
3793
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
3794
|
|
|
|
|
|
|
} |
3795
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
3796
|
0
|
|
|
|
|
|
return $xfer; |
3797
|
|
|
|
|
|
|
} |
3798
|
|
|
|
|
|
|
|
3799
|
|
|
|
|
|
|
sub write { |
3800
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
3801
|
0
|
|
|
|
|
|
my $xfer = 0; |
3802
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetCatalogsReq'); |
3803
|
0
|
0
|
|
|
|
|
if (defined $self->{sessionHandle}) { |
3804
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('sessionHandle', TType::STRUCT, 1); |
3805
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->write($output); |
3806
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3807
|
|
|
|
|
|
|
} |
3808
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
3809
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
3810
|
0
|
|
|
|
|
|
return $xfer; |
3811
|
|
|
|
|
|
|
} |
3812
|
|
|
|
|
|
|
|
3813
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetCatalogsResp; |
3814
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetCatalogsResp::VERSION = '0.024'; |
3815
|
|
|
|
|
|
|
{ |
3816
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetCatalogsResp::DIST = 'Thrift-API-HiveClient2'; |
3817
|
|
|
|
|
|
|
} |
3818
|
2
|
|
|
2
|
|
16
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1191
|
|
3819
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetCatalogsResp->mk_accessors( qw( status operationHandle ) ); |
3820
|
|
|
|
|
|
|
|
3821
|
|
|
|
|
|
|
sub new { |
3822
|
0
|
|
|
0
|
|
|
my $classname = shift; |
3823
|
0
|
|
|
|
|
|
my $self = {}; |
3824
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
3825
|
0
|
|
|
|
|
|
$self->{status} = undef; |
3826
|
0
|
|
|
|
|
|
$self->{operationHandle} = undef; |
3827
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
3828
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
3829
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
3830
|
|
|
|
|
|
|
} |
3831
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationHandle}) { |
3832
|
0
|
|
|
|
|
|
$self->{operationHandle} = $vals->{operationHandle}; |
3833
|
|
|
|
|
|
|
} |
3834
|
|
|
|
|
|
|
} |
3835
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
3836
|
|
|
|
|
|
|
} |
3837
|
|
|
|
|
|
|
|
3838
|
|
|
|
|
|
|
sub getName { |
3839
|
0
|
|
|
0
|
|
|
return 'TGetCatalogsResp'; |
3840
|
|
|
|
|
|
|
} |
3841
|
|
|
|
|
|
|
|
3842
|
|
|
|
|
|
|
sub read { |
3843
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
3844
|
0
|
|
|
|
|
|
my $xfer = 0; |
3845
|
0
|
|
|
|
|
|
my $fname; |
3846
|
0
|
|
|
|
|
|
my $ftype = 0; |
3847
|
0
|
|
|
|
|
|
my $fid = 0; |
3848
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
3849
|
0
|
|
|
|
|
|
while (1) |
3850
|
|
|
|
|
|
|
{ |
3851
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
3852
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
3853
|
0
|
|
|
|
|
|
last; |
3854
|
|
|
|
|
|
|
} |
3855
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
3856
|
|
|
|
|
|
|
{ |
3857
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
3858
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
3859
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
3860
|
|
|
|
|
|
|
} else { |
3861
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3862
|
|
|
|
|
|
|
} |
3863
|
0
|
|
|
|
|
|
last; }; |
3864
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
3865
|
0
|
|
|
|
|
|
$self->{operationHandle} = new Thrift::API::HiveClient2::TOperationHandle(); |
3866
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->read($input); |
3867
|
|
|
|
|
|
|
} else { |
3868
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3869
|
|
|
|
|
|
|
} |
3870
|
0
|
|
|
|
|
|
last; }; |
3871
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3872
|
|
|
|
|
|
|
} |
3873
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
3874
|
|
|
|
|
|
|
} |
3875
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
3876
|
0
|
|
|
|
|
|
return $xfer; |
3877
|
|
|
|
|
|
|
} |
3878
|
|
|
|
|
|
|
|
3879
|
|
|
|
|
|
|
sub write { |
3880
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
3881
|
0
|
|
|
|
|
|
my $xfer = 0; |
3882
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetCatalogsResp'); |
3883
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
3884
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
3885
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
3886
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3887
|
|
|
|
|
|
|
} |
3888
|
0
|
0
|
|
|
|
|
if (defined $self->{operationHandle}) { |
3889
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationHandle', TType::STRUCT, 2); |
3890
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->write($output); |
3891
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3892
|
|
|
|
|
|
|
} |
3893
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
3894
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
3895
|
0
|
|
|
|
|
|
return $xfer; |
3896
|
|
|
|
|
|
|
} |
3897
|
|
|
|
|
|
|
|
3898
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetSchemasReq; |
3899
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetSchemasReq::VERSION = '0.024'; |
3900
|
|
|
|
|
|
|
{ |
3901
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetSchemasReq::DIST = 'Thrift-API-HiveClient2'; |
3902
|
|
|
|
|
|
|
} |
3903
|
2
|
|
|
2
|
|
16
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
1449
|
|
3904
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetSchemasReq->mk_accessors( qw( sessionHandle catalogName schemaName ) ); |
3905
|
|
|
|
|
|
|
|
3906
|
|
|
|
|
|
|
sub new { |
3907
|
0
|
|
|
0
|
|
|
my $classname = shift; |
3908
|
0
|
|
|
|
|
|
my $self = {}; |
3909
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
3910
|
0
|
|
|
|
|
|
$self->{sessionHandle} = undef; |
3911
|
0
|
|
|
|
|
|
$self->{catalogName} = undef; |
3912
|
0
|
|
|
|
|
|
$self->{schemaName} = undef; |
3913
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
3914
|
0
|
0
|
|
|
|
|
if (defined $vals->{sessionHandle}) { |
3915
|
0
|
|
|
|
|
|
$self->{sessionHandle} = $vals->{sessionHandle}; |
3916
|
|
|
|
|
|
|
} |
3917
|
0
|
0
|
|
|
|
|
if (defined $vals->{catalogName}) { |
3918
|
0
|
|
|
|
|
|
$self->{catalogName} = $vals->{catalogName}; |
3919
|
|
|
|
|
|
|
} |
3920
|
0
|
0
|
|
|
|
|
if (defined $vals->{schemaName}) { |
3921
|
0
|
|
|
|
|
|
$self->{schemaName} = $vals->{schemaName}; |
3922
|
|
|
|
|
|
|
} |
3923
|
|
|
|
|
|
|
} |
3924
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
3925
|
|
|
|
|
|
|
} |
3926
|
|
|
|
|
|
|
|
3927
|
|
|
|
|
|
|
sub getName { |
3928
|
0
|
|
|
0
|
|
|
return 'TGetSchemasReq'; |
3929
|
|
|
|
|
|
|
} |
3930
|
|
|
|
|
|
|
|
3931
|
|
|
|
|
|
|
sub read { |
3932
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
3933
|
0
|
|
|
|
|
|
my $xfer = 0; |
3934
|
0
|
|
|
|
|
|
my $fname; |
3935
|
0
|
|
|
|
|
|
my $ftype = 0; |
3936
|
0
|
|
|
|
|
|
my $fid = 0; |
3937
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
3938
|
0
|
|
|
|
|
|
while (1) |
3939
|
|
|
|
|
|
|
{ |
3940
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
3941
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
3942
|
0
|
|
|
|
|
|
last; |
3943
|
|
|
|
|
|
|
} |
3944
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
3945
|
|
|
|
|
|
|
{ |
3946
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
3947
|
0
|
|
|
|
|
|
$self->{sessionHandle} = new Thrift::API::HiveClient2::TSessionHandle(); |
3948
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->read($input); |
3949
|
|
|
|
|
|
|
} else { |
3950
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3951
|
|
|
|
|
|
|
} |
3952
|
0
|
|
|
|
|
|
last; }; |
3953
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
3954
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{catalogName}); |
3955
|
|
|
|
|
|
|
} else { |
3956
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3957
|
|
|
|
|
|
|
} |
3958
|
0
|
|
|
|
|
|
last; }; |
3959
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
3960
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{schemaName}); |
3961
|
|
|
|
|
|
|
} else { |
3962
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3963
|
|
|
|
|
|
|
} |
3964
|
0
|
|
|
|
|
|
last; }; |
3965
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
3966
|
|
|
|
|
|
|
} |
3967
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
3968
|
|
|
|
|
|
|
} |
3969
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
3970
|
0
|
|
|
|
|
|
return $xfer; |
3971
|
|
|
|
|
|
|
} |
3972
|
|
|
|
|
|
|
|
3973
|
|
|
|
|
|
|
sub write { |
3974
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
3975
|
0
|
|
|
|
|
|
my $xfer = 0; |
3976
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetSchemasReq'); |
3977
|
0
|
0
|
|
|
|
|
if (defined $self->{sessionHandle}) { |
3978
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('sessionHandle', TType::STRUCT, 1); |
3979
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->write($output); |
3980
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3981
|
|
|
|
|
|
|
} |
3982
|
0
|
0
|
|
|
|
|
if (defined $self->{catalogName}) { |
3983
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('catalogName', TType::STRING, 2); |
3984
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{catalogName}); |
3985
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3986
|
|
|
|
|
|
|
} |
3987
|
0
|
0
|
|
|
|
|
if (defined $self->{schemaName}) { |
3988
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('schemaName', TType::STRING, 3); |
3989
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{schemaName}); |
3990
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
3991
|
|
|
|
|
|
|
} |
3992
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
3993
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
3994
|
0
|
|
|
|
|
|
return $xfer; |
3995
|
|
|
|
|
|
|
} |
3996
|
|
|
|
|
|
|
|
3997
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetSchemasResp; |
3998
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetSchemasResp::VERSION = '0.024'; |
3999
|
|
|
|
|
|
|
{ |
4000
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetSchemasResp::DIST = 'Thrift-API-HiveClient2'; |
4001
|
|
|
|
|
|
|
} |
4002
|
2
|
|
|
2
|
|
16
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1244
|
|
4003
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetSchemasResp->mk_accessors( qw( status operationHandle ) ); |
4004
|
|
|
|
|
|
|
|
4005
|
|
|
|
|
|
|
sub new { |
4006
|
0
|
|
|
0
|
|
|
my $classname = shift; |
4007
|
0
|
|
|
|
|
|
my $self = {}; |
4008
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
4009
|
0
|
|
|
|
|
|
$self->{status} = undef; |
4010
|
0
|
|
|
|
|
|
$self->{operationHandle} = undef; |
4011
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
4012
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
4013
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
4014
|
|
|
|
|
|
|
} |
4015
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationHandle}) { |
4016
|
0
|
|
|
|
|
|
$self->{operationHandle} = $vals->{operationHandle}; |
4017
|
|
|
|
|
|
|
} |
4018
|
|
|
|
|
|
|
} |
4019
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
4020
|
|
|
|
|
|
|
} |
4021
|
|
|
|
|
|
|
|
4022
|
|
|
|
|
|
|
sub getName { |
4023
|
0
|
|
|
0
|
|
|
return 'TGetSchemasResp'; |
4024
|
|
|
|
|
|
|
} |
4025
|
|
|
|
|
|
|
|
4026
|
|
|
|
|
|
|
sub read { |
4027
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
4028
|
0
|
|
|
|
|
|
my $xfer = 0; |
4029
|
0
|
|
|
|
|
|
my $fname; |
4030
|
0
|
|
|
|
|
|
my $ftype = 0; |
4031
|
0
|
|
|
|
|
|
my $fid = 0; |
4032
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
4033
|
0
|
|
|
|
|
|
while (1) |
4034
|
|
|
|
|
|
|
{ |
4035
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
4036
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
4037
|
0
|
|
|
|
|
|
last; |
4038
|
|
|
|
|
|
|
} |
4039
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
4040
|
|
|
|
|
|
|
{ |
4041
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4042
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
4043
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
4044
|
|
|
|
|
|
|
} else { |
4045
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4046
|
|
|
|
|
|
|
} |
4047
|
0
|
|
|
|
|
|
last; }; |
4048
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4049
|
0
|
|
|
|
|
|
$self->{operationHandle} = new Thrift::API::HiveClient2::TOperationHandle(); |
4050
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->read($input); |
4051
|
|
|
|
|
|
|
} else { |
4052
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4053
|
|
|
|
|
|
|
} |
4054
|
0
|
|
|
|
|
|
last; }; |
4055
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4056
|
|
|
|
|
|
|
} |
4057
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
4058
|
|
|
|
|
|
|
} |
4059
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
4060
|
0
|
|
|
|
|
|
return $xfer; |
4061
|
|
|
|
|
|
|
} |
4062
|
|
|
|
|
|
|
|
4063
|
|
|
|
|
|
|
sub write { |
4064
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
4065
|
0
|
|
|
|
|
|
my $xfer = 0; |
4066
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetSchemasResp'); |
4067
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
4068
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
4069
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
4070
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4071
|
|
|
|
|
|
|
} |
4072
|
0
|
0
|
|
|
|
|
if (defined $self->{operationHandle}) { |
4073
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationHandle', TType::STRUCT, 2); |
4074
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->write($output); |
4075
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4076
|
|
|
|
|
|
|
} |
4077
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
4078
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
4079
|
0
|
|
|
|
|
|
return $xfer; |
4080
|
|
|
|
|
|
|
} |
4081
|
|
|
|
|
|
|
|
4082
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetTablesReq; |
4083
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetTablesReq::VERSION = '0.024'; |
4084
|
|
|
|
|
|
|
{ |
4085
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetTablesReq::DIST = 'Thrift-API-HiveClient2'; |
4086
|
|
|
|
|
|
|
} |
4087
|
2
|
|
|
2
|
|
15
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
2016
|
|
4088
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetTablesReq->mk_accessors( qw( sessionHandle catalogName schemaName tableName tableTypes ) ); |
4089
|
|
|
|
|
|
|
|
4090
|
|
|
|
|
|
|
sub new { |
4091
|
0
|
|
|
0
|
|
|
my $classname = shift; |
4092
|
0
|
|
|
|
|
|
my $self = {}; |
4093
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
4094
|
0
|
|
|
|
|
|
$self->{sessionHandle} = undef; |
4095
|
0
|
|
|
|
|
|
$self->{catalogName} = undef; |
4096
|
0
|
|
|
|
|
|
$self->{schemaName} = undef; |
4097
|
0
|
|
|
|
|
|
$self->{tableName} = undef; |
4098
|
0
|
|
|
|
|
|
$self->{tableTypes} = undef; |
4099
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
4100
|
0
|
0
|
|
|
|
|
if (defined $vals->{sessionHandle}) { |
4101
|
0
|
|
|
|
|
|
$self->{sessionHandle} = $vals->{sessionHandle}; |
4102
|
|
|
|
|
|
|
} |
4103
|
0
|
0
|
|
|
|
|
if (defined $vals->{catalogName}) { |
4104
|
0
|
|
|
|
|
|
$self->{catalogName} = $vals->{catalogName}; |
4105
|
|
|
|
|
|
|
} |
4106
|
0
|
0
|
|
|
|
|
if (defined $vals->{schemaName}) { |
4107
|
0
|
|
|
|
|
|
$self->{schemaName} = $vals->{schemaName}; |
4108
|
|
|
|
|
|
|
} |
4109
|
0
|
0
|
|
|
|
|
if (defined $vals->{tableName}) { |
4110
|
0
|
|
|
|
|
|
$self->{tableName} = $vals->{tableName}; |
4111
|
|
|
|
|
|
|
} |
4112
|
0
|
0
|
|
|
|
|
if (defined $vals->{tableTypes}) { |
4113
|
0
|
|
|
|
|
|
$self->{tableTypes} = $vals->{tableTypes}; |
4114
|
|
|
|
|
|
|
} |
4115
|
|
|
|
|
|
|
} |
4116
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
4117
|
|
|
|
|
|
|
} |
4118
|
|
|
|
|
|
|
|
4119
|
|
|
|
|
|
|
sub getName { |
4120
|
0
|
|
|
0
|
|
|
return 'TGetTablesReq'; |
4121
|
|
|
|
|
|
|
} |
4122
|
|
|
|
|
|
|
|
4123
|
|
|
|
|
|
|
sub read { |
4124
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
4125
|
0
|
|
|
|
|
|
my $xfer = 0; |
4126
|
0
|
|
|
|
|
|
my $fname; |
4127
|
0
|
|
|
|
|
|
my $ftype = 0; |
4128
|
0
|
|
|
|
|
|
my $fid = 0; |
4129
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
4130
|
0
|
|
|
|
|
|
while (1) |
4131
|
|
|
|
|
|
|
{ |
4132
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
4133
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
4134
|
0
|
|
|
|
|
|
last; |
4135
|
|
|
|
|
|
|
} |
4136
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
4137
|
|
|
|
|
|
|
{ |
4138
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4139
|
0
|
|
|
|
|
|
$self->{sessionHandle} = new Thrift::API::HiveClient2::TSessionHandle(); |
4140
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->read($input); |
4141
|
|
|
|
|
|
|
} else { |
4142
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4143
|
|
|
|
|
|
|
} |
4144
|
0
|
|
|
|
|
|
last; }; |
4145
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
4146
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{catalogName}); |
4147
|
|
|
|
|
|
|
} else { |
4148
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4149
|
|
|
|
|
|
|
} |
4150
|
0
|
|
|
|
|
|
last; }; |
4151
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
4152
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{schemaName}); |
4153
|
|
|
|
|
|
|
} else { |
4154
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4155
|
|
|
|
|
|
|
} |
4156
|
0
|
|
|
|
|
|
last; }; |
4157
|
0
|
0
|
|
|
|
|
/^4$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
4158
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{tableName}); |
4159
|
|
|
|
|
|
|
} else { |
4160
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4161
|
|
|
|
|
|
|
} |
4162
|
0
|
|
|
|
|
|
last; }; |
4163
|
0
|
0
|
|
|
|
|
/^5$/ && do{ if ($ftype == TType::LIST) { |
|
0
|
0
|
|
|
|
|
|
4164
|
|
|
|
|
|
|
{ |
4165
|
0
|
|
|
|
|
|
my $_size136 = 0; |
|
0
|
|
|
|
|
|
|
4166
|
0
|
|
|
|
|
|
$self->{tableTypes} = []; |
4167
|
0
|
|
|
|
|
|
my $_etype139 = 0; |
4168
|
0
|
|
|
|
|
|
$xfer += $input->readListBegin(\$_etype139, \$_size136); |
4169
|
0
|
|
|
|
|
|
for (my $_i140 = 0; $_i140 < $_size136; ++$_i140) |
4170
|
|
|
|
|
|
|
{ |
4171
|
0
|
|
|
|
|
|
my $elem141 = undef; |
4172
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$elem141); |
4173
|
0
|
|
|
|
|
|
push(@{$self->{tableTypes}},$elem141); |
|
0
|
|
|
|
|
|
|
4174
|
|
|
|
|
|
|
} |
4175
|
0
|
|
|
|
|
|
$xfer += $input->readListEnd(); |
4176
|
|
|
|
|
|
|
} |
4177
|
|
|
|
|
|
|
} else { |
4178
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4179
|
|
|
|
|
|
|
} |
4180
|
0
|
|
|
|
|
|
last; }; |
4181
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4182
|
|
|
|
|
|
|
} |
4183
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
4184
|
|
|
|
|
|
|
} |
4185
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
4186
|
0
|
|
|
|
|
|
return $xfer; |
4187
|
|
|
|
|
|
|
} |
4188
|
|
|
|
|
|
|
|
4189
|
|
|
|
|
|
|
sub write { |
4190
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
4191
|
0
|
|
|
|
|
|
my $xfer = 0; |
4192
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetTablesReq'); |
4193
|
0
|
0
|
|
|
|
|
if (defined $self->{sessionHandle}) { |
4194
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('sessionHandle', TType::STRUCT, 1); |
4195
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->write($output); |
4196
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4197
|
|
|
|
|
|
|
} |
4198
|
0
|
0
|
|
|
|
|
if (defined $self->{catalogName}) { |
4199
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('catalogName', TType::STRING, 2); |
4200
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{catalogName}); |
4201
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4202
|
|
|
|
|
|
|
} |
4203
|
0
|
0
|
|
|
|
|
if (defined $self->{schemaName}) { |
4204
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('schemaName', TType::STRING, 3); |
4205
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{schemaName}); |
4206
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4207
|
|
|
|
|
|
|
} |
4208
|
0
|
0
|
|
|
|
|
if (defined $self->{tableName}) { |
4209
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('tableName', TType::STRING, 4); |
4210
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{tableName}); |
4211
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4212
|
|
|
|
|
|
|
} |
4213
|
0
|
0
|
|
|
|
|
if (defined $self->{tableTypes}) { |
4214
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('tableTypes', TType::LIST, 5); |
4215
|
|
|
|
|
|
|
{ |
4216
|
0
|
|
|
|
|
|
$xfer += $output->writeListBegin(TType::STRING, scalar(@{$self->{tableTypes}})); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
4217
|
|
|
|
|
|
|
{ |
4218
|
0
|
|
|
|
|
|
foreach my $iter142 (@{$self->{tableTypes}}) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
4219
|
|
|
|
|
|
|
{ |
4220
|
0
|
|
|
|
|
|
$xfer += $output->writeString($iter142); |
4221
|
|
|
|
|
|
|
} |
4222
|
|
|
|
|
|
|
} |
4223
|
0
|
|
|
|
|
|
$xfer += $output->writeListEnd(); |
4224
|
|
|
|
|
|
|
} |
4225
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4226
|
|
|
|
|
|
|
} |
4227
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
4228
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
4229
|
0
|
|
|
|
|
|
return $xfer; |
4230
|
|
|
|
|
|
|
} |
4231
|
|
|
|
|
|
|
|
4232
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetTablesResp; |
4233
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetTablesResp::VERSION = '0.024'; |
4234
|
|
|
|
|
|
|
{ |
4235
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetTablesResp::DIST = 'Thrift-API-HiveClient2'; |
4236
|
|
|
|
|
|
|
} |
4237
|
2
|
|
|
2
|
|
16
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1205
|
|
4238
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetTablesResp->mk_accessors( qw( status operationHandle ) ); |
4239
|
|
|
|
|
|
|
|
4240
|
|
|
|
|
|
|
sub new { |
4241
|
0
|
|
|
0
|
|
|
my $classname = shift; |
4242
|
0
|
|
|
|
|
|
my $self = {}; |
4243
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
4244
|
0
|
|
|
|
|
|
$self->{status} = undef; |
4245
|
0
|
|
|
|
|
|
$self->{operationHandle} = undef; |
4246
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
4247
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
4248
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
4249
|
|
|
|
|
|
|
} |
4250
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationHandle}) { |
4251
|
0
|
|
|
|
|
|
$self->{operationHandle} = $vals->{operationHandle}; |
4252
|
|
|
|
|
|
|
} |
4253
|
|
|
|
|
|
|
} |
4254
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
4255
|
|
|
|
|
|
|
} |
4256
|
|
|
|
|
|
|
|
4257
|
|
|
|
|
|
|
sub getName { |
4258
|
0
|
|
|
0
|
|
|
return 'TGetTablesResp'; |
4259
|
|
|
|
|
|
|
} |
4260
|
|
|
|
|
|
|
|
4261
|
|
|
|
|
|
|
sub read { |
4262
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
4263
|
0
|
|
|
|
|
|
my $xfer = 0; |
4264
|
0
|
|
|
|
|
|
my $fname; |
4265
|
0
|
|
|
|
|
|
my $ftype = 0; |
4266
|
0
|
|
|
|
|
|
my $fid = 0; |
4267
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
4268
|
0
|
|
|
|
|
|
while (1) |
4269
|
|
|
|
|
|
|
{ |
4270
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
4271
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
4272
|
0
|
|
|
|
|
|
last; |
4273
|
|
|
|
|
|
|
} |
4274
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
4275
|
|
|
|
|
|
|
{ |
4276
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4277
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
4278
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
4279
|
|
|
|
|
|
|
} else { |
4280
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4281
|
|
|
|
|
|
|
} |
4282
|
0
|
|
|
|
|
|
last; }; |
4283
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4284
|
0
|
|
|
|
|
|
$self->{operationHandle} = new Thrift::API::HiveClient2::TOperationHandle(); |
4285
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->read($input); |
4286
|
|
|
|
|
|
|
} else { |
4287
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4288
|
|
|
|
|
|
|
} |
4289
|
0
|
|
|
|
|
|
last; }; |
4290
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4291
|
|
|
|
|
|
|
} |
4292
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
4293
|
|
|
|
|
|
|
} |
4294
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
4295
|
0
|
|
|
|
|
|
return $xfer; |
4296
|
|
|
|
|
|
|
} |
4297
|
|
|
|
|
|
|
|
4298
|
|
|
|
|
|
|
sub write { |
4299
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
4300
|
0
|
|
|
|
|
|
my $xfer = 0; |
4301
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetTablesResp'); |
4302
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
4303
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
4304
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
4305
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4306
|
|
|
|
|
|
|
} |
4307
|
0
|
0
|
|
|
|
|
if (defined $self->{operationHandle}) { |
4308
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationHandle', TType::STRUCT, 2); |
4309
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->write($output); |
4310
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4311
|
|
|
|
|
|
|
} |
4312
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
4313
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
4314
|
0
|
|
|
|
|
|
return $xfer; |
4315
|
|
|
|
|
|
|
} |
4316
|
|
|
|
|
|
|
|
4317
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetTableTypesReq; |
4318
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetTableTypesReq::VERSION = '0.024'; |
4319
|
|
|
|
|
|
|
{ |
4320
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetTableTypesReq::DIST = 'Thrift-API-HiveClient2'; |
4321
|
|
|
|
|
|
|
} |
4322
|
2
|
|
|
2
|
|
26
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1059
|
|
4323
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetTableTypesReq->mk_accessors( qw( sessionHandle ) ); |
4324
|
|
|
|
|
|
|
|
4325
|
|
|
|
|
|
|
sub new { |
4326
|
0
|
|
|
0
|
|
|
my $classname = shift; |
4327
|
0
|
|
|
|
|
|
my $self = {}; |
4328
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
4329
|
0
|
|
|
|
|
|
$self->{sessionHandle} = undef; |
4330
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
4331
|
0
|
0
|
|
|
|
|
if (defined $vals->{sessionHandle}) { |
4332
|
0
|
|
|
|
|
|
$self->{sessionHandle} = $vals->{sessionHandle}; |
4333
|
|
|
|
|
|
|
} |
4334
|
|
|
|
|
|
|
} |
4335
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
4336
|
|
|
|
|
|
|
} |
4337
|
|
|
|
|
|
|
|
4338
|
|
|
|
|
|
|
sub getName { |
4339
|
0
|
|
|
0
|
|
|
return 'TGetTableTypesReq'; |
4340
|
|
|
|
|
|
|
} |
4341
|
|
|
|
|
|
|
|
4342
|
|
|
|
|
|
|
sub read { |
4343
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
4344
|
0
|
|
|
|
|
|
my $xfer = 0; |
4345
|
0
|
|
|
|
|
|
my $fname; |
4346
|
0
|
|
|
|
|
|
my $ftype = 0; |
4347
|
0
|
|
|
|
|
|
my $fid = 0; |
4348
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
4349
|
0
|
|
|
|
|
|
while (1) |
4350
|
|
|
|
|
|
|
{ |
4351
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
4352
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
4353
|
0
|
|
|
|
|
|
last; |
4354
|
|
|
|
|
|
|
} |
4355
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
4356
|
|
|
|
|
|
|
{ |
4357
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4358
|
0
|
|
|
|
|
|
$self->{sessionHandle} = new Thrift::API::HiveClient2::TSessionHandle(); |
4359
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->read($input); |
4360
|
|
|
|
|
|
|
} else { |
4361
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4362
|
|
|
|
|
|
|
} |
4363
|
0
|
|
|
|
|
|
last; }; |
4364
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4365
|
|
|
|
|
|
|
} |
4366
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
4367
|
|
|
|
|
|
|
} |
4368
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
4369
|
0
|
|
|
|
|
|
return $xfer; |
4370
|
|
|
|
|
|
|
} |
4371
|
|
|
|
|
|
|
|
4372
|
|
|
|
|
|
|
sub write { |
4373
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
4374
|
0
|
|
|
|
|
|
my $xfer = 0; |
4375
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetTableTypesReq'); |
4376
|
0
|
0
|
|
|
|
|
if (defined $self->{sessionHandle}) { |
4377
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('sessionHandle', TType::STRUCT, 1); |
4378
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->write($output); |
4379
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4380
|
|
|
|
|
|
|
} |
4381
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
4382
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
4383
|
0
|
|
|
|
|
|
return $xfer; |
4384
|
|
|
|
|
|
|
} |
4385
|
|
|
|
|
|
|
|
4386
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetTableTypesResp; |
4387
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetTableTypesResp::VERSION = '0.024'; |
4388
|
|
|
|
|
|
|
{ |
4389
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetTableTypesResp::DIST = 'Thrift-API-HiveClient2'; |
4390
|
|
|
|
|
|
|
} |
4391
|
2
|
|
|
2
|
|
17
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1186
|
|
4392
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetTableTypesResp->mk_accessors( qw( status operationHandle ) ); |
4393
|
|
|
|
|
|
|
|
4394
|
|
|
|
|
|
|
sub new { |
4395
|
0
|
|
|
0
|
|
|
my $classname = shift; |
4396
|
0
|
|
|
|
|
|
my $self = {}; |
4397
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
4398
|
0
|
|
|
|
|
|
$self->{status} = undef; |
4399
|
0
|
|
|
|
|
|
$self->{operationHandle} = undef; |
4400
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
4401
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
4402
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
4403
|
|
|
|
|
|
|
} |
4404
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationHandle}) { |
4405
|
0
|
|
|
|
|
|
$self->{operationHandle} = $vals->{operationHandle}; |
4406
|
|
|
|
|
|
|
} |
4407
|
|
|
|
|
|
|
} |
4408
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
4409
|
|
|
|
|
|
|
} |
4410
|
|
|
|
|
|
|
|
4411
|
|
|
|
|
|
|
sub getName { |
4412
|
0
|
|
|
0
|
|
|
return 'TGetTableTypesResp'; |
4413
|
|
|
|
|
|
|
} |
4414
|
|
|
|
|
|
|
|
4415
|
|
|
|
|
|
|
sub read { |
4416
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
4417
|
0
|
|
|
|
|
|
my $xfer = 0; |
4418
|
0
|
|
|
|
|
|
my $fname; |
4419
|
0
|
|
|
|
|
|
my $ftype = 0; |
4420
|
0
|
|
|
|
|
|
my $fid = 0; |
4421
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
4422
|
0
|
|
|
|
|
|
while (1) |
4423
|
|
|
|
|
|
|
{ |
4424
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
4425
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
4426
|
0
|
|
|
|
|
|
last; |
4427
|
|
|
|
|
|
|
} |
4428
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
4429
|
|
|
|
|
|
|
{ |
4430
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4431
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
4432
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
4433
|
|
|
|
|
|
|
} else { |
4434
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4435
|
|
|
|
|
|
|
} |
4436
|
0
|
|
|
|
|
|
last; }; |
4437
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4438
|
0
|
|
|
|
|
|
$self->{operationHandle} = new Thrift::API::HiveClient2::TOperationHandle(); |
4439
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->read($input); |
4440
|
|
|
|
|
|
|
} else { |
4441
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4442
|
|
|
|
|
|
|
} |
4443
|
0
|
|
|
|
|
|
last; }; |
4444
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4445
|
|
|
|
|
|
|
} |
4446
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
4447
|
|
|
|
|
|
|
} |
4448
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
4449
|
0
|
|
|
|
|
|
return $xfer; |
4450
|
|
|
|
|
|
|
} |
4451
|
|
|
|
|
|
|
|
4452
|
|
|
|
|
|
|
sub write { |
4453
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
4454
|
0
|
|
|
|
|
|
my $xfer = 0; |
4455
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetTableTypesResp'); |
4456
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
4457
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
4458
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
4459
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4460
|
|
|
|
|
|
|
} |
4461
|
0
|
0
|
|
|
|
|
if (defined $self->{operationHandle}) { |
4462
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationHandle', TType::STRUCT, 2); |
4463
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->write($output); |
4464
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4465
|
|
|
|
|
|
|
} |
4466
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
4467
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
4468
|
0
|
|
|
|
|
|
return $xfer; |
4469
|
|
|
|
|
|
|
} |
4470
|
|
|
|
|
|
|
|
4471
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetColumnsReq; |
4472
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetColumnsReq::VERSION = '0.024'; |
4473
|
|
|
|
|
|
|
{ |
4474
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetColumnsReq::DIST = 'Thrift-API-HiveClient2'; |
4475
|
|
|
|
|
|
|
} |
4476
|
2
|
|
|
2
|
|
16
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1783
|
|
4477
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetColumnsReq->mk_accessors( qw( sessionHandle catalogName schemaName tableName columnName ) ); |
4478
|
|
|
|
|
|
|
|
4479
|
|
|
|
|
|
|
sub new { |
4480
|
0
|
|
|
0
|
|
|
my $classname = shift; |
4481
|
0
|
|
|
|
|
|
my $self = {}; |
4482
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
4483
|
0
|
|
|
|
|
|
$self->{sessionHandle} = undef; |
4484
|
0
|
|
|
|
|
|
$self->{catalogName} = undef; |
4485
|
0
|
|
|
|
|
|
$self->{schemaName} = undef; |
4486
|
0
|
|
|
|
|
|
$self->{tableName} = undef; |
4487
|
0
|
|
|
|
|
|
$self->{columnName} = undef; |
4488
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
4489
|
0
|
0
|
|
|
|
|
if (defined $vals->{sessionHandle}) { |
4490
|
0
|
|
|
|
|
|
$self->{sessionHandle} = $vals->{sessionHandle}; |
4491
|
|
|
|
|
|
|
} |
4492
|
0
|
0
|
|
|
|
|
if (defined $vals->{catalogName}) { |
4493
|
0
|
|
|
|
|
|
$self->{catalogName} = $vals->{catalogName}; |
4494
|
|
|
|
|
|
|
} |
4495
|
0
|
0
|
|
|
|
|
if (defined $vals->{schemaName}) { |
4496
|
0
|
|
|
|
|
|
$self->{schemaName} = $vals->{schemaName}; |
4497
|
|
|
|
|
|
|
} |
4498
|
0
|
0
|
|
|
|
|
if (defined $vals->{tableName}) { |
4499
|
0
|
|
|
|
|
|
$self->{tableName} = $vals->{tableName}; |
4500
|
|
|
|
|
|
|
} |
4501
|
0
|
0
|
|
|
|
|
if (defined $vals->{columnName}) { |
4502
|
0
|
|
|
|
|
|
$self->{columnName} = $vals->{columnName}; |
4503
|
|
|
|
|
|
|
} |
4504
|
|
|
|
|
|
|
} |
4505
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
4506
|
|
|
|
|
|
|
} |
4507
|
|
|
|
|
|
|
|
4508
|
|
|
|
|
|
|
sub getName { |
4509
|
0
|
|
|
0
|
|
|
return 'TGetColumnsReq'; |
4510
|
|
|
|
|
|
|
} |
4511
|
|
|
|
|
|
|
|
4512
|
|
|
|
|
|
|
sub read { |
4513
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
4514
|
0
|
|
|
|
|
|
my $xfer = 0; |
4515
|
0
|
|
|
|
|
|
my $fname; |
4516
|
0
|
|
|
|
|
|
my $ftype = 0; |
4517
|
0
|
|
|
|
|
|
my $fid = 0; |
4518
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
4519
|
0
|
|
|
|
|
|
while (1) |
4520
|
|
|
|
|
|
|
{ |
4521
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
4522
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
4523
|
0
|
|
|
|
|
|
last; |
4524
|
|
|
|
|
|
|
} |
4525
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
4526
|
|
|
|
|
|
|
{ |
4527
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4528
|
0
|
|
|
|
|
|
$self->{sessionHandle} = new Thrift::API::HiveClient2::TSessionHandle(); |
4529
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->read($input); |
4530
|
|
|
|
|
|
|
} else { |
4531
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4532
|
|
|
|
|
|
|
} |
4533
|
0
|
|
|
|
|
|
last; }; |
4534
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
4535
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{catalogName}); |
4536
|
|
|
|
|
|
|
} else { |
4537
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4538
|
|
|
|
|
|
|
} |
4539
|
0
|
|
|
|
|
|
last; }; |
4540
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
4541
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{schemaName}); |
4542
|
|
|
|
|
|
|
} else { |
4543
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4544
|
|
|
|
|
|
|
} |
4545
|
0
|
|
|
|
|
|
last; }; |
4546
|
0
|
0
|
|
|
|
|
/^4$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
4547
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{tableName}); |
4548
|
|
|
|
|
|
|
} else { |
4549
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4550
|
|
|
|
|
|
|
} |
4551
|
0
|
|
|
|
|
|
last; }; |
4552
|
0
|
0
|
|
|
|
|
/^5$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
4553
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{columnName}); |
4554
|
|
|
|
|
|
|
} else { |
4555
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4556
|
|
|
|
|
|
|
} |
4557
|
0
|
|
|
|
|
|
last; }; |
4558
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4559
|
|
|
|
|
|
|
} |
4560
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
4561
|
|
|
|
|
|
|
} |
4562
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
4563
|
0
|
|
|
|
|
|
return $xfer; |
4564
|
|
|
|
|
|
|
} |
4565
|
|
|
|
|
|
|
|
4566
|
|
|
|
|
|
|
sub write { |
4567
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
4568
|
0
|
|
|
|
|
|
my $xfer = 0; |
4569
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetColumnsReq'); |
4570
|
0
|
0
|
|
|
|
|
if (defined $self->{sessionHandle}) { |
4571
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('sessionHandle', TType::STRUCT, 1); |
4572
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->write($output); |
4573
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4574
|
|
|
|
|
|
|
} |
4575
|
0
|
0
|
|
|
|
|
if (defined $self->{catalogName}) { |
4576
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('catalogName', TType::STRING, 2); |
4577
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{catalogName}); |
4578
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4579
|
|
|
|
|
|
|
} |
4580
|
0
|
0
|
|
|
|
|
if (defined $self->{schemaName}) { |
4581
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('schemaName', TType::STRING, 3); |
4582
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{schemaName}); |
4583
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4584
|
|
|
|
|
|
|
} |
4585
|
0
|
0
|
|
|
|
|
if (defined $self->{tableName}) { |
4586
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('tableName', TType::STRING, 4); |
4587
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{tableName}); |
4588
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4589
|
|
|
|
|
|
|
} |
4590
|
0
|
0
|
|
|
|
|
if (defined $self->{columnName}) { |
4591
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('columnName', TType::STRING, 5); |
4592
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{columnName}); |
4593
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4594
|
|
|
|
|
|
|
} |
4595
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
4596
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
4597
|
0
|
|
|
|
|
|
return $xfer; |
4598
|
|
|
|
|
|
|
} |
4599
|
|
|
|
|
|
|
|
4600
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetColumnsResp; |
4601
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetColumnsResp::VERSION = '0.024'; |
4602
|
|
|
|
|
|
|
{ |
4603
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetColumnsResp::DIST = 'Thrift-API-HiveClient2'; |
4604
|
|
|
|
|
|
|
} |
4605
|
2
|
|
|
2
|
|
15
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
1563
|
|
4606
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetColumnsResp->mk_accessors( qw( status operationHandle ) ); |
4607
|
|
|
|
|
|
|
|
4608
|
|
|
|
|
|
|
sub new { |
4609
|
0
|
|
|
0
|
|
|
my $classname = shift; |
4610
|
0
|
|
|
|
|
|
my $self = {}; |
4611
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
4612
|
0
|
|
|
|
|
|
$self->{status} = undef; |
4613
|
0
|
|
|
|
|
|
$self->{operationHandle} = undef; |
4614
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
4615
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
4616
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
4617
|
|
|
|
|
|
|
} |
4618
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationHandle}) { |
4619
|
0
|
|
|
|
|
|
$self->{operationHandle} = $vals->{operationHandle}; |
4620
|
|
|
|
|
|
|
} |
4621
|
|
|
|
|
|
|
} |
4622
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
4623
|
|
|
|
|
|
|
} |
4624
|
|
|
|
|
|
|
|
4625
|
|
|
|
|
|
|
sub getName { |
4626
|
0
|
|
|
0
|
|
|
return 'TGetColumnsResp'; |
4627
|
|
|
|
|
|
|
} |
4628
|
|
|
|
|
|
|
|
4629
|
|
|
|
|
|
|
sub read { |
4630
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
4631
|
0
|
|
|
|
|
|
my $xfer = 0; |
4632
|
0
|
|
|
|
|
|
my $fname; |
4633
|
0
|
|
|
|
|
|
my $ftype = 0; |
4634
|
0
|
|
|
|
|
|
my $fid = 0; |
4635
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
4636
|
0
|
|
|
|
|
|
while (1) |
4637
|
|
|
|
|
|
|
{ |
4638
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
4639
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
4640
|
0
|
|
|
|
|
|
last; |
4641
|
|
|
|
|
|
|
} |
4642
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
4643
|
|
|
|
|
|
|
{ |
4644
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4645
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
4646
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
4647
|
|
|
|
|
|
|
} else { |
4648
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4649
|
|
|
|
|
|
|
} |
4650
|
0
|
|
|
|
|
|
last; }; |
4651
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4652
|
0
|
|
|
|
|
|
$self->{operationHandle} = new Thrift::API::HiveClient2::TOperationHandle(); |
4653
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->read($input); |
4654
|
|
|
|
|
|
|
} else { |
4655
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4656
|
|
|
|
|
|
|
} |
4657
|
0
|
|
|
|
|
|
last; }; |
4658
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4659
|
|
|
|
|
|
|
} |
4660
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
4661
|
|
|
|
|
|
|
} |
4662
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
4663
|
0
|
|
|
|
|
|
return $xfer; |
4664
|
|
|
|
|
|
|
} |
4665
|
|
|
|
|
|
|
|
4666
|
|
|
|
|
|
|
sub write { |
4667
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
4668
|
0
|
|
|
|
|
|
my $xfer = 0; |
4669
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetColumnsResp'); |
4670
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
4671
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
4672
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
4673
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4674
|
|
|
|
|
|
|
} |
4675
|
0
|
0
|
|
|
|
|
if (defined $self->{operationHandle}) { |
4676
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationHandle', TType::STRUCT, 2); |
4677
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->write($output); |
4678
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4679
|
|
|
|
|
|
|
} |
4680
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
4681
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
4682
|
0
|
|
|
|
|
|
return $xfer; |
4683
|
|
|
|
|
|
|
} |
4684
|
|
|
|
|
|
|
|
4685
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetFunctionsReq; |
4686
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetFunctionsReq::VERSION = '0.024'; |
4687
|
|
|
|
|
|
|
{ |
4688
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetFunctionsReq::DIST = 'Thrift-API-HiveClient2'; |
4689
|
|
|
|
|
|
|
} |
4690
|
2
|
|
|
2
|
|
17
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
1592
|
|
4691
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetFunctionsReq->mk_accessors( qw( sessionHandle catalogName schemaName functionName ) ); |
4692
|
|
|
|
|
|
|
|
4693
|
|
|
|
|
|
|
sub new { |
4694
|
0
|
|
|
0
|
|
|
my $classname = shift; |
4695
|
0
|
|
|
|
|
|
my $self = {}; |
4696
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
4697
|
0
|
|
|
|
|
|
$self->{sessionHandle} = undef; |
4698
|
0
|
|
|
|
|
|
$self->{catalogName} = undef; |
4699
|
0
|
|
|
|
|
|
$self->{schemaName} = undef; |
4700
|
0
|
|
|
|
|
|
$self->{functionName} = undef; |
4701
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
4702
|
0
|
0
|
|
|
|
|
if (defined $vals->{sessionHandle}) { |
4703
|
0
|
|
|
|
|
|
$self->{sessionHandle} = $vals->{sessionHandle}; |
4704
|
|
|
|
|
|
|
} |
4705
|
0
|
0
|
|
|
|
|
if (defined $vals->{catalogName}) { |
4706
|
0
|
|
|
|
|
|
$self->{catalogName} = $vals->{catalogName}; |
4707
|
|
|
|
|
|
|
} |
4708
|
0
|
0
|
|
|
|
|
if (defined $vals->{schemaName}) { |
4709
|
0
|
|
|
|
|
|
$self->{schemaName} = $vals->{schemaName}; |
4710
|
|
|
|
|
|
|
} |
4711
|
0
|
0
|
|
|
|
|
if (defined $vals->{functionName}) { |
4712
|
0
|
|
|
|
|
|
$self->{functionName} = $vals->{functionName}; |
4713
|
|
|
|
|
|
|
} |
4714
|
|
|
|
|
|
|
} |
4715
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
4716
|
|
|
|
|
|
|
} |
4717
|
|
|
|
|
|
|
|
4718
|
|
|
|
|
|
|
sub getName { |
4719
|
0
|
|
|
0
|
|
|
return 'TGetFunctionsReq'; |
4720
|
|
|
|
|
|
|
} |
4721
|
|
|
|
|
|
|
|
4722
|
|
|
|
|
|
|
sub read { |
4723
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
4724
|
0
|
|
|
|
|
|
my $xfer = 0; |
4725
|
0
|
|
|
|
|
|
my $fname; |
4726
|
0
|
|
|
|
|
|
my $ftype = 0; |
4727
|
0
|
|
|
|
|
|
my $fid = 0; |
4728
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
4729
|
0
|
|
|
|
|
|
while (1) |
4730
|
|
|
|
|
|
|
{ |
4731
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
4732
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
4733
|
0
|
|
|
|
|
|
last; |
4734
|
|
|
|
|
|
|
} |
4735
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
4736
|
|
|
|
|
|
|
{ |
4737
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4738
|
0
|
|
|
|
|
|
$self->{sessionHandle} = new Thrift::API::HiveClient2::TSessionHandle(); |
4739
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->read($input); |
4740
|
|
|
|
|
|
|
} else { |
4741
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4742
|
|
|
|
|
|
|
} |
4743
|
0
|
|
|
|
|
|
last; }; |
4744
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
4745
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{catalogName}); |
4746
|
|
|
|
|
|
|
} else { |
4747
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4748
|
|
|
|
|
|
|
} |
4749
|
0
|
|
|
|
|
|
last; }; |
4750
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
4751
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{schemaName}); |
4752
|
|
|
|
|
|
|
} else { |
4753
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4754
|
|
|
|
|
|
|
} |
4755
|
0
|
|
|
|
|
|
last; }; |
4756
|
0
|
0
|
|
|
|
|
/^4$/ && do{ if ($ftype == TType::STRING) { |
|
0
|
0
|
|
|
|
|
|
4757
|
0
|
|
|
|
|
|
$xfer += $input->readString(\$self->{functionName}); |
4758
|
|
|
|
|
|
|
} else { |
4759
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4760
|
|
|
|
|
|
|
} |
4761
|
0
|
|
|
|
|
|
last; }; |
4762
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4763
|
|
|
|
|
|
|
} |
4764
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
4765
|
|
|
|
|
|
|
} |
4766
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
4767
|
0
|
|
|
|
|
|
return $xfer; |
4768
|
|
|
|
|
|
|
} |
4769
|
|
|
|
|
|
|
|
4770
|
|
|
|
|
|
|
sub write { |
4771
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
4772
|
0
|
|
|
|
|
|
my $xfer = 0; |
4773
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetFunctionsReq'); |
4774
|
0
|
0
|
|
|
|
|
if (defined $self->{sessionHandle}) { |
4775
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('sessionHandle', TType::STRUCT, 1); |
4776
|
0
|
|
|
|
|
|
$xfer += $self->{sessionHandle}->write($output); |
4777
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4778
|
|
|
|
|
|
|
} |
4779
|
0
|
0
|
|
|
|
|
if (defined $self->{catalogName}) { |
4780
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('catalogName', TType::STRING, 2); |
4781
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{catalogName}); |
4782
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4783
|
|
|
|
|
|
|
} |
4784
|
0
|
0
|
|
|
|
|
if (defined $self->{schemaName}) { |
4785
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('schemaName', TType::STRING, 3); |
4786
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{schemaName}); |
4787
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4788
|
|
|
|
|
|
|
} |
4789
|
0
|
0
|
|
|
|
|
if (defined $self->{functionName}) { |
4790
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('functionName', TType::STRING, 4); |
4791
|
0
|
|
|
|
|
|
$xfer += $output->writeString($self->{functionName}); |
4792
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4793
|
|
|
|
|
|
|
} |
4794
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
4795
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
4796
|
0
|
|
|
|
|
|
return $xfer; |
4797
|
|
|
|
|
|
|
} |
4798
|
|
|
|
|
|
|
|
4799
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetFunctionsResp; |
4800
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetFunctionsResp::VERSION = '0.024'; |
4801
|
|
|
|
|
|
|
{ |
4802
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetFunctionsResp::DIST = 'Thrift-API-HiveClient2'; |
4803
|
|
|
|
|
|
|
} |
4804
|
2
|
|
|
2
|
|
17
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1247
|
|
4805
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetFunctionsResp->mk_accessors( qw( status operationHandle ) ); |
4806
|
|
|
|
|
|
|
|
4807
|
|
|
|
|
|
|
sub new { |
4808
|
0
|
|
|
0
|
|
|
my $classname = shift; |
4809
|
0
|
|
|
|
|
|
my $self = {}; |
4810
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
4811
|
0
|
|
|
|
|
|
$self->{status} = undef; |
4812
|
0
|
|
|
|
|
|
$self->{operationHandle} = undef; |
4813
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
4814
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
4815
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
4816
|
|
|
|
|
|
|
} |
4817
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationHandle}) { |
4818
|
0
|
|
|
|
|
|
$self->{operationHandle} = $vals->{operationHandle}; |
4819
|
|
|
|
|
|
|
} |
4820
|
|
|
|
|
|
|
} |
4821
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
4822
|
|
|
|
|
|
|
} |
4823
|
|
|
|
|
|
|
|
4824
|
|
|
|
|
|
|
sub getName { |
4825
|
0
|
|
|
0
|
|
|
return 'TGetFunctionsResp'; |
4826
|
|
|
|
|
|
|
} |
4827
|
|
|
|
|
|
|
|
4828
|
|
|
|
|
|
|
sub read { |
4829
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
4830
|
0
|
|
|
|
|
|
my $xfer = 0; |
4831
|
0
|
|
|
|
|
|
my $fname; |
4832
|
0
|
|
|
|
|
|
my $ftype = 0; |
4833
|
0
|
|
|
|
|
|
my $fid = 0; |
4834
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
4835
|
0
|
|
|
|
|
|
while (1) |
4836
|
|
|
|
|
|
|
{ |
4837
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
4838
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
4839
|
0
|
|
|
|
|
|
last; |
4840
|
|
|
|
|
|
|
} |
4841
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
4842
|
|
|
|
|
|
|
{ |
4843
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4844
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
4845
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
4846
|
|
|
|
|
|
|
} else { |
4847
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4848
|
|
|
|
|
|
|
} |
4849
|
0
|
|
|
|
|
|
last; }; |
4850
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4851
|
0
|
|
|
|
|
|
$self->{operationHandle} = new Thrift::API::HiveClient2::TOperationHandle(); |
4852
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->read($input); |
4853
|
|
|
|
|
|
|
} else { |
4854
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4855
|
|
|
|
|
|
|
} |
4856
|
0
|
|
|
|
|
|
last; }; |
4857
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4858
|
|
|
|
|
|
|
} |
4859
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
4860
|
|
|
|
|
|
|
} |
4861
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
4862
|
0
|
|
|
|
|
|
return $xfer; |
4863
|
|
|
|
|
|
|
} |
4864
|
|
|
|
|
|
|
|
4865
|
|
|
|
|
|
|
sub write { |
4866
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
4867
|
0
|
|
|
|
|
|
my $xfer = 0; |
4868
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetFunctionsResp'); |
4869
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
4870
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
4871
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
4872
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4873
|
|
|
|
|
|
|
} |
4874
|
0
|
0
|
|
|
|
|
if (defined $self->{operationHandle}) { |
4875
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationHandle', TType::STRUCT, 2); |
4876
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->write($output); |
4877
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4878
|
|
|
|
|
|
|
} |
4879
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
4880
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
4881
|
0
|
|
|
|
|
|
return $xfer; |
4882
|
|
|
|
|
|
|
} |
4883
|
|
|
|
|
|
|
|
4884
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetOperationStatusReq; |
4885
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetOperationStatusReq::VERSION = '0.024'; |
4886
|
|
|
|
|
|
|
{ |
4887
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetOperationStatusReq::DIST = 'Thrift-API-HiveClient2'; |
4888
|
|
|
|
|
|
|
} |
4889
|
2
|
|
|
2
|
|
16
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
1002
|
|
4890
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetOperationStatusReq->mk_accessors( qw( operationHandle ) ); |
4891
|
|
|
|
|
|
|
|
4892
|
|
|
|
|
|
|
sub new { |
4893
|
0
|
|
|
0
|
|
|
my $classname = shift; |
4894
|
0
|
|
|
|
|
|
my $self = {}; |
4895
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
4896
|
0
|
|
|
|
|
|
$self->{operationHandle} = undef; |
4897
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
4898
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationHandle}) { |
4899
|
0
|
|
|
|
|
|
$self->{operationHandle} = $vals->{operationHandle}; |
4900
|
|
|
|
|
|
|
} |
4901
|
|
|
|
|
|
|
} |
4902
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
4903
|
|
|
|
|
|
|
} |
4904
|
|
|
|
|
|
|
|
4905
|
|
|
|
|
|
|
sub getName { |
4906
|
0
|
|
|
0
|
|
|
return 'TGetOperationStatusReq'; |
4907
|
|
|
|
|
|
|
} |
4908
|
|
|
|
|
|
|
|
4909
|
|
|
|
|
|
|
sub read { |
4910
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
4911
|
0
|
|
|
|
|
|
my $xfer = 0; |
4912
|
0
|
|
|
|
|
|
my $fname; |
4913
|
0
|
|
|
|
|
|
my $ftype = 0; |
4914
|
0
|
|
|
|
|
|
my $fid = 0; |
4915
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
4916
|
0
|
|
|
|
|
|
while (1) |
4917
|
|
|
|
|
|
|
{ |
4918
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
4919
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
4920
|
0
|
|
|
|
|
|
last; |
4921
|
|
|
|
|
|
|
} |
4922
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
4923
|
|
|
|
|
|
|
{ |
4924
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4925
|
0
|
|
|
|
|
|
$self->{operationHandle} = new Thrift::API::HiveClient2::TOperationHandle(); |
4926
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->read($input); |
4927
|
|
|
|
|
|
|
} else { |
4928
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4929
|
|
|
|
|
|
|
} |
4930
|
0
|
|
|
|
|
|
last; }; |
4931
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
4932
|
|
|
|
|
|
|
} |
4933
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
4934
|
|
|
|
|
|
|
} |
4935
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
4936
|
0
|
|
|
|
|
|
return $xfer; |
4937
|
|
|
|
|
|
|
} |
4938
|
|
|
|
|
|
|
|
4939
|
|
|
|
|
|
|
sub write { |
4940
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
4941
|
0
|
|
|
|
|
|
my $xfer = 0; |
4942
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetOperationStatusReq'); |
4943
|
0
|
0
|
|
|
|
|
if (defined $self->{operationHandle}) { |
4944
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationHandle', TType::STRUCT, 1); |
4945
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->write($output); |
4946
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
4947
|
|
|
|
|
|
|
} |
4948
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
4949
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
4950
|
0
|
|
|
|
|
|
return $xfer; |
4951
|
|
|
|
|
|
|
} |
4952
|
|
|
|
|
|
|
|
4953
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetOperationStatusResp; |
4954
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetOperationStatusResp::VERSION = '0.024'; |
4955
|
|
|
|
|
|
|
{ |
4956
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetOperationStatusResp::DIST = 'Thrift-API-HiveClient2'; |
4957
|
|
|
|
|
|
|
} |
4958
|
2
|
|
|
2
|
|
16
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1303
|
|
4959
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetOperationStatusResp->mk_accessors( qw( status operationState ) ); |
4960
|
|
|
|
|
|
|
|
4961
|
|
|
|
|
|
|
sub new { |
4962
|
0
|
|
|
0
|
|
|
my $classname = shift; |
4963
|
0
|
|
|
|
|
|
my $self = {}; |
4964
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
4965
|
0
|
|
|
|
|
|
$self->{status} = undef; |
4966
|
0
|
|
|
|
|
|
$self->{operationState} = undef; |
4967
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
4968
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
4969
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
4970
|
|
|
|
|
|
|
} |
4971
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationState}) { |
4972
|
0
|
|
|
|
|
|
$self->{operationState} = $vals->{operationState}; |
4973
|
|
|
|
|
|
|
} |
4974
|
|
|
|
|
|
|
} |
4975
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
4976
|
|
|
|
|
|
|
} |
4977
|
|
|
|
|
|
|
|
4978
|
|
|
|
|
|
|
sub getName { |
4979
|
0
|
|
|
0
|
|
|
return 'TGetOperationStatusResp'; |
4980
|
|
|
|
|
|
|
} |
4981
|
|
|
|
|
|
|
|
4982
|
|
|
|
|
|
|
sub read { |
4983
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
4984
|
0
|
|
|
|
|
|
my $xfer = 0; |
4985
|
0
|
|
|
|
|
|
my $fname; |
4986
|
0
|
|
|
|
|
|
my $ftype = 0; |
4987
|
0
|
|
|
|
|
|
my $fid = 0; |
4988
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
4989
|
0
|
|
|
|
|
|
while (1) |
4990
|
|
|
|
|
|
|
{ |
4991
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
4992
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
4993
|
0
|
|
|
|
|
|
last; |
4994
|
|
|
|
|
|
|
} |
4995
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
4996
|
|
|
|
|
|
|
{ |
4997
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
4998
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
4999
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
5000
|
|
|
|
|
|
|
} else { |
5001
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5002
|
|
|
|
|
|
|
} |
5003
|
0
|
|
|
|
|
|
last; }; |
5004
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
5005
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{operationState}); |
5006
|
|
|
|
|
|
|
} else { |
5007
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5008
|
|
|
|
|
|
|
} |
5009
|
0
|
|
|
|
|
|
last; }; |
5010
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5011
|
|
|
|
|
|
|
} |
5012
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
5013
|
|
|
|
|
|
|
} |
5014
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
5015
|
0
|
|
|
|
|
|
return $xfer; |
5016
|
|
|
|
|
|
|
} |
5017
|
|
|
|
|
|
|
|
5018
|
|
|
|
|
|
|
sub write { |
5019
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
5020
|
0
|
|
|
|
|
|
my $xfer = 0; |
5021
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetOperationStatusResp'); |
5022
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
5023
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
5024
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
5025
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
5026
|
|
|
|
|
|
|
} |
5027
|
0
|
0
|
|
|
|
|
if (defined $self->{operationState}) { |
5028
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationState', TType::I32, 2); |
5029
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{operationState}); |
5030
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
5031
|
|
|
|
|
|
|
} |
5032
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
5033
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
5034
|
0
|
|
|
|
|
|
return $xfer; |
5035
|
|
|
|
|
|
|
} |
5036
|
|
|
|
|
|
|
|
5037
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TCancelOperationReq; |
5038
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TCancelOperationReq::VERSION = '0.024'; |
5039
|
|
|
|
|
|
|
{ |
5040
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TCancelOperationReq::DIST = 'Thrift-API-HiveClient2'; |
5041
|
|
|
|
|
|
|
} |
5042
|
2
|
|
|
2
|
|
17
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
987
|
|
5043
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TCancelOperationReq->mk_accessors( qw( operationHandle ) ); |
5044
|
|
|
|
|
|
|
|
5045
|
|
|
|
|
|
|
sub new { |
5046
|
0
|
|
|
0
|
|
|
my $classname = shift; |
5047
|
0
|
|
|
|
|
|
my $self = {}; |
5048
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
5049
|
0
|
|
|
|
|
|
$self->{operationHandle} = undef; |
5050
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
5051
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationHandle}) { |
5052
|
0
|
|
|
|
|
|
$self->{operationHandle} = $vals->{operationHandle}; |
5053
|
|
|
|
|
|
|
} |
5054
|
|
|
|
|
|
|
} |
5055
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
5056
|
|
|
|
|
|
|
} |
5057
|
|
|
|
|
|
|
|
5058
|
|
|
|
|
|
|
sub getName { |
5059
|
0
|
|
|
0
|
|
|
return 'TCancelOperationReq'; |
5060
|
|
|
|
|
|
|
} |
5061
|
|
|
|
|
|
|
|
5062
|
|
|
|
|
|
|
sub read { |
5063
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
5064
|
0
|
|
|
|
|
|
my $xfer = 0; |
5065
|
0
|
|
|
|
|
|
my $fname; |
5066
|
0
|
|
|
|
|
|
my $ftype = 0; |
5067
|
0
|
|
|
|
|
|
my $fid = 0; |
5068
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
5069
|
0
|
|
|
|
|
|
while (1) |
5070
|
|
|
|
|
|
|
{ |
5071
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
5072
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
5073
|
0
|
|
|
|
|
|
last; |
5074
|
|
|
|
|
|
|
} |
5075
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
5076
|
|
|
|
|
|
|
{ |
5077
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
5078
|
0
|
|
|
|
|
|
$self->{operationHandle} = new Thrift::API::HiveClient2::TOperationHandle(); |
5079
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->read($input); |
5080
|
|
|
|
|
|
|
} else { |
5081
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5082
|
|
|
|
|
|
|
} |
5083
|
0
|
|
|
|
|
|
last; }; |
5084
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5085
|
|
|
|
|
|
|
} |
5086
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
5087
|
|
|
|
|
|
|
} |
5088
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
5089
|
0
|
|
|
|
|
|
return $xfer; |
5090
|
|
|
|
|
|
|
} |
5091
|
|
|
|
|
|
|
|
5092
|
|
|
|
|
|
|
sub write { |
5093
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
5094
|
0
|
|
|
|
|
|
my $xfer = 0; |
5095
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TCancelOperationReq'); |
5096
|
0
|
0
|
|
|
|
|
if (defined $self->{operationHandle}) { |
5097
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationHandle', TType::STRUCT, 1); |
5098
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->write($output); |
5099
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
5100
|
|
|
|
|
|
|
} |
5101
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
5102
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
5103
|
0
|
|
|
|
|
|
return $xfer; |
5104
|
|
|
|
|
|
|
} |
5105
|
|
|
|
|
|
|
|
5106
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TCancelOperationResp; |
5107
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TCancelOperationResp::VERSION = '0.024'; |
5108
|
|
|
|
|
|
|
{ |
5109
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TCancelOperationResp::DIST = 'Thrift-API-HiveClient2'; |
5110
|
|
|
|
|
|
|
} |
5111
|
2
|
|
|
2
|
|
17
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
981
|
|
5112
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TCancelOperationResp->mk_accessors( qw( status ) ); |
5113
|
|
|
|
|
|
|
|
5114
|
|
|
|
|
|
|
sub new { |
5115
|
0
|
|
|
0
|
|
|
my $classname = shift; |
5116
|
0
|
|
|
|
|
|
my $self = {}; |
5117
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
5118
|
0
|
|
|
|
|
|
$self->{status} = undef; |
5119
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
5120
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
5121
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
5122
|
|
|
|
|
|
|
} |
5123
|
|
|
|
|
|
|
} |
5124
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
5125
|
|
|
|
|
|
|
} |
5126
|
|
|
|
|
|
|
|
5127
|
|
|
|
|
|
|
sub getName { |
5128
|
0
|
|
|
0
|
|
|
return 'TCancelOperationResp'; |
5129
|
|
|
|
|
|
|
} |
5130
|
|
|
|
|
|
|
|
5131
|
|
|
|
|
|
|
sub read { |
5132
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
5133
|
0
|
|
|
|
|
|
my $xfer = 0; |
5134
|
0
|
|
|
|
|
|
my $fname; |
5135
|
0
|
|
|
|
|
|
my $ftype = 0; |
5136
|
0
|
|
|
|
|
|
my $fid = 0; |
5137
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
5138
|
0
|
|
|
|
|
|
while (1) |
5139
|
|
|
|
|
|
|
{ |
5140
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
5141
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
5142
|
0
|
|
|
|
|
|
last; |
5143
|
|
|
|
|
|
|
} |
5144
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
5145
|
|
|
|
|
|
|
{ |
5146
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
5147
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
5148
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
5149
|
|
|
|
|
|
|
} else { |
5150
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5151
|
|
|
|
|
|
|
} |
5152
|
0
|
|
|
|
|
|
last; }; |
5153
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5154
|
|
|
|
|
|
|
} |
5155
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
5156
|
|
|
|
|
|
|
} |
5157
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
5158
|
0
|
|
|
|
|
|
return $xfer; |
5159
|
|
|
|
|
|
|
} |
5160
|
|
|
|
|
|
|
|
5161
|
|
|
|
|
|
|
sub write { |
5162
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
5163
|
0
|
|
|
|
|
|
my $xfer = 0; |
5164
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TCancelOperationResp'); |
5165
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
5166
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
5167
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
5168
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
5169
|
|
|
|
|
|
|
} |
5170
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
5171
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
5172
|
0
|
|
|
|
|
|
return $xfer; |
5173
|
|
|
|
|
|
|
} |
5174
|
|
|
|
|
|
|
|
5175
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TCloseOperationReq; |
5176
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TCloseOperationReq::VERSION = '0.024'; |
5177
|
|
|
|
|
|
|
{ |
5178
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TCloseOperationReq::DIST = 'Thrift-API-HiveClient2'; |
5179
|
|
|
|
|
|
|
} |
5180
|
2
|
|
|
2
|
|
16
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
11
|
|
|
2
|
|
|
|
|
982
|
|
5181
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TCloseOperationReq->mk_accessors( qw( operationHandle ) ); |
5182
|
|
|
|
|
|
|
|
5183
|
|
|
|
|
|
|
sub new { |
5184
|
0
|
|
|
0
|
|
|
my $classname = shift; |
5185
|
0
|
|
|
|
|
|
my $self = {}; |
5186
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
5187
|
0
|
|
|
|
|
|
$self->{operationHandle} = undef; |
5188
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
5189
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationHandle}) { |
5190
|
0
|
|
|
|
|
|
$self->{operationHandle} = $vals->{operationHandle}; |
5191
|
|
|
|
|
|
|
} |
5192
|
|
|
|
|
|
|
} |
5193
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
5194
|
|
|
|
|
|
|
} |
5195
|
|
|
|
|
|
|
|
5196
|
|
|
|
|
|
|
sub getName { |
5197
|
0
|
|
|
0
|
|
|
return 'TCloseOperationReq'; |
5198
|
|
|
|
|
|
|
} |
5199
|
|
|
|
|
|
|
|
5200
|
|
|
|
|
|
|
sub read { |
5201
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
5202
|
0
|
|
|
|
|
|
my $xfer = 0; |
5203
|
0
|
|
|
|
|
|
my $fname; |
5204
|
0
|
|
|
|
|
|
my $ftype = 0; |
5205
|
0
|
|
|
|
|
|
my $fid = 0; |
5206
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
5207
|
0
|
|
|
|
|
|
while (1) |
5208
|
|
|
|
|
|
|
{ |
5209
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
5210
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
5211
|
0
|
|
|
|
|
|
last; |
5212
|
|
|
|
|
|
|
} |
5213
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
5214
|
|
|
|
|
|
|
{ |
5215
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
5216
|
0
|
|
|
|
|
|
$self->{operationHandle} = new Thrift::API::HiveClient2::TOperationHandle(); |
5217
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->read($input); |
5218
|
|
|
|
|
|
|
} else { |
5219
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5220
|
|
|
|
|
|
|
} |
5221
|
0
|
|
|
|
|
|
last; }; |
5222
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5223
|
|
|
|
|
|
|
} |
5224
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
5225
|
|
|
|
|
|
|
} |
5226
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
5227
|
0
|
|
|
|
|
|
return $xfer; |
5228
|
|
|
|
|
|
|
} |
5229
|
|
|
|
|
|
|
|
5230
|
|
|
|
|
|
|
sub write { |
5231
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
5232
|
0
|
|
|
|
|
|
my $xfer = 0; |
5233
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TCloseOperationReq'); |
5234
|
0
|
0
|
|
|
|
|
if (defined $self->{operationHandle}) { |
5235
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationHandle', TType::STRUCT, 1); |
5236
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->write($output); |
5237
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
5238
|
|
|
|
|
|
|
} |
5239
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
5240
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
5241
|
0
|
|
|
|
|
|
return $xfer; |
5242
|
|
|
|
|
|
|
} |
5243
|
|
|
|
|
|
|
|
5244
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TCloseOperationResp; |
5245
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TCloseOperationResp::VERSION = '0.024'; |
5246
|
|
|
|
|
|
|
{ |
5247
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TCloseOperationResp::DIST = 'Thrift-API-HiveClient2'; |
5248
|
|
|
|
|
|
|
} |
5249
|
2
|
|
|
2
|
|
17
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1004
|
|
5250
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TCloseOperationResp->mk_accessors( qw( status ) ); |
5251
|
|
|
|
|
|
|
|
5252
|
|
|
|
|
|
|
sub new { |
5253
|
0
|
|
|
0
|
|
|
my $classname = shift; |
5254
|
0
|
|
|
|
|
|
my $self = {}; |
5255
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
5256
|
0
|
|
|
|
|
|
$self->{status} = undef; |
5257
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
5258
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
5259
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
5260
|
|
|
|
|
|
|
} |
5261
|
|
|
|
|
|
|
} |
5262
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
5263
|
|
|
|
|
|
|
} |
5264
|
|
|
|
|
|
|
|
5265
|
|
|
|
|
|
|
sub getName { |
5266
|
0
|
|
|
0
|
|
|
return 'TCloseOperationResp'; |
5267
|
|
|
|
|
|
|
} |
5268
|
|
|
|
|
|
|
|
5269
|
|
|
|
|
|
|
sub read { |
5270
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
5271
|
0
|
|
|
|
|
|
my $xfer = 0; |
5272
|
0
|
|
|
|
|
|
my $fname; |
5273
|
0
|
|
|
|
|
|
my $ftype = 0; |
5274
|
0
|
|
|
|
|
|
my $fid = 0; |
5275
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
5276
|
0
|
|
|
|
|
|
while (1) |
5277
|
|
|
|
|
|
|
{ |
5278
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
5279
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
5280
|
0
|
|
|
|
|
|
last; |
5281
|
|
|
|
|
|
|
} |
5282
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
5283
|
|
|
|
|
|
|
{ |
5284
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
5285
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
5286
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
5287
|
|
|
|
|
|
|
} else { |
5288
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5289
|
|
|
|
|
|
|
} |
5290
|
0
|
|
|
|
|
|
last; }; |
5291
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5292
|
|
|
|
|
|
|
} |
5293
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
5294
|
|
|
|
|
|
|
} |
5295
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
5296
|
0
|
|
|
|
|
|
return $xfer; |
5297
|
|
|
|
|
|
|
} |
5298
|
|
|
|
|
|
|
|
5299
|
|
|
|
|
|
|
sub write { |
5300
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
5301
|
0
|
|
|
|
|
|
my $xfer = 0; |
5302
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TCloseOperationResp'); |
5303
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
5304
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
5305
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
5306
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
5307
|
|
|
|
|
|
|
} |
5308
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
5309
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
5310
|
0
|
|
|
|
|
|
return $xfer; |
5311
|
|
|
|
|
|
|
} |
5312
|
|
|
|
|
|
|
|
5313
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetResultSetMetadataReq; |
5314
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetResultSetMetadataReq::VERSION = '0.024'; |
5315
|
|
|
|
|
|
|
{ |
5316
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetResultSetMetadataReq::DIST = 'Thrift-API-HiveClient2'; |
5317
|
|
|
|
|
|
|
} |
5318
|
2
|
|
|
2
|
|
17
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1033
|
|
5319
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetResultSetMetadataReq->mk_accessors( qw( operationHandle ) ); |
5320
|
|
|
|
|
|
|
|
5321
|
|
|
|
|
|
|
sub new { |
5322
|
0
|
|
|
0
|
|
|
my $classname = shift; |
5323
|
0
|
|
|
|
|
|
my $self = {}; |
5324
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
5325
|
0
|
|
|
|
|
|
$self->{operationHandle} = undef; |
5326
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
5327
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationHandle}) { |
5328
|
0
|
|
|
|
|
|
$self->{operationHandle} = $vals->{operationHandle}; |
5329
|
|
|
|
|
|
|
} |
5330
|
|
|
|
|
|
|
} |
5331
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
5332
|
|
|
|
|
|
|
} |
5333
|
|
|
|
|
|
|
|
5334
|
|
|
|
|
|
|
sub getName { |
5335
|
0
|
|
|
0
|
|
|
return 'TGetResultSetMetadataReq'; |
5336
|
|
|
|
|
|
|
} |
5337
|
|
|
|
|
|
|
|
5338
|
|
|
|
|
|
|
sub read { |
5339
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
5340
|
0
|
|
|
|
|
|
my $xfer = 0; |
5341
|
0
|
|
|
|
|
|
my $fname; |
5342
|
0
|
|
|
|
|
|
my $ftype = 0; |
5343
|
0
|
|
|
|
|
|
my $fid = 0; |
5344
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
5345
|
0
|
|
|
|
|
|
while (1) |
5346
|
|
|
|
|
|
|
{ |
5347
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
5348
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
5349
|
0
|
|
|
|
|
|
last; |
5350
|
|
|
|
|
|
|
} |
5351
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
5352
|
|
|
|
|
|
|
{ |
5353
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
5354
|
0
|
|
|
|
|
|
$self->{operationHandle} = new Thrift::API::HiveClient2::TOperationHandle(); |
5355
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->read($input); |
5356
|
|
|
|
|
|
|
} else { |
5357
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5358
|
|
|
|
|
|
|
} |
5359
|
0
|
|
|
|
|
|
last; }; |
5360
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5361
|
|
|
|
|
|
|
} |
5362
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
5363
|
|
|
|
|
|
|
} |
5364
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
5365
|
0
|
|
|
|
|
|
return $xfer; |
5366
|
|
|
|
|
|
|
} |
5367
|
|
|
|
|
|
|
|
5368
|
|
|
|
|
|
|
sub write { |
5369
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
5370
|
0
|
|
|
|
|
|
my $xfer = 0; |
5371
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetResultSetMetadataReq'); |
5372
|
0
|
0
|
|
|
|
|
if (defined $self->{operationHandle}) { |
5373
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationHandle', TType::STRUCT, 1); |
5374
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->write($output); |
5375
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
5376
|
|
|
|
|
|
|
} |
5377
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
5378
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
5379
|
0
|
|
|
|
|
|
return $xfer; |
5380
|
|
|
|
|
|
|
} |
5381
|
|
|
|
|
|
|
|
5382
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TGetResultSetMetadataResp; |
5383
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetResultSetMetadataResp::VERSION = '0.024'; |
5384
|
|
|
|
|
|
|
{ |
5385
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TGetResultSetMetadataResp::DIST = 'Thrift-API-HiveClient2'; |
5386
|
|
|
|
|
|
|
} |
5387
|
2
|
|
|
2
|
|
15
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1252
|
|
5388
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TGetResultSetMetadataResp->mk_accessors( qw( status schema ) ); |
5389
|
|
|
|
|
|
|
|
5390
|
|
|
|
|
|
|
sub new { |
5391
|
0
|
|
|
0
|
|
|
my $classname = shift; |
5392
|
0
|
|
|
|
|
|
my $self = {}; |
5393
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
5394
|
0
|
|
|
|
|
|
$self->{status} = undef; |
5395
|
0
|
|
|
|
|
|
$self->{schema} = undef; |
5396
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
5397
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
5398
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
5399
|
|
|
|
|
|
|
} |
5400
|
0
|
0
|
|
|
|
|
if (defined $vals->{schema}) { |
5401
|
0
|
|
|
|
|
|
$self->{schema} = $vals->{schema}; |
5402
|
|
|
|
|
|
|
} |
5403
|
|
|
|
|
|
|
} |
5404
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
5405
|
|
|
|
|
|
|
} |
5406
|
|
|
|
|
|
|
|
5407
|
|
|
|
|
|
|
sub getName { |
5408
|
0
|
|
|
0
|
|
|
return 'TGetResultSetMetadataResp'; |
5409
|
|
|
|
|
|
|
} |
5410
|
|
|
|
|
|
|
|
5411
|
|
|
|
|
|
|
sub read { |
5412
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
5413
|
0
|
|
|
|
|
|
my $xfer = 0; |
5414
|
0
|
|
|
|
|
|
my $fname; |
5415
|
0
|
|
|
|
|
|
my $ftype = 0; |
5416
|
0
|
|
|
|
|
|
my $fid = 0; |
5417
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
5418
|
0
|
|
|
|
|
|
while (1) |
5419
|
|
|
|
|
|
|
{ |
5420
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
5421
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
5422
|
0
|
|
|
|
|
|
last; |
5423
|
|
|
|
|
|
|
} |
5424
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
5425
|
|
|
|
|
|
|
{ |
5426
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
5427
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
5428
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
5429
|
|
|
|
|
|
|
} else { |
5430
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5431
|
|
|
|
|
|
|
} |
5432
|
0
|
|
|
|
|
|
last; }; |
5433
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
5434
|
0
|
|
|
|
|
|
$self->{schema} = new Thrift::API::HiveClient2::TTableSchema(); |
5435
|
0
|
|
|
|
|
|
$xfer += $self->{schema}->read($input); |
5436
|
|
|
|
|
|
|
} else { |
5437
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5438
|
|
|
|
|
|
|
} |
5439
|
0
|
|
|
|
|
|
last; }; |
5440
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5441
|
|
|
|
|
|
|
} |
5442
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
5443
|
|
|
|
|
|
|
} |
5444
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
5445
|
0
|
|
|
|
|
|
return $xfer; |
5446
|
|
|
|
|
|
|
} |
5447
|
|
|
|
|
|
|
|
5448
|
|
|
|
|
|
|
sub write { |
5449
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
5450
|
0
|
|
|
|
|
|
my $xfer = 0; |
5451
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TGetResultSetMetadataResp'); |
5452
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
5453
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
5454
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
5455
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
5456
|
|
|
|
|
|
|
} |
5457
|
0
|
0
|
|
|
|
|
if (defined $self->{schema}) { |
5458
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('schema', TType::STRUCT, 2); |
5459
|
0
|
|
|
|
|
|
$xfer += $self->{schema}->write($output); |
5460
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
5461
|
|
|
|
|
|
|
} |
5462
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
5463
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
5464
|
0
|
|
|
|
|
|
return $xfer; |
5465
|
|
|
|
|
|
|
} |
5466
|
|
|
|
|
|
|
|
5467
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TFetchResultsReq; |
5468
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TFetchResultsReq::VERSION = '0.024'; |
5469
|
|
|
|
|
|
|
{ |
5470
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TFetchResultsReq::DIST = 'Thrift-API-HiveClient2'; |
5471
|
|
|
|
|
|
|
} |
5472
|
2
|
|
|
2
|
|
16
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1496
|
|
5473
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TFetchResultsReq->mk_accessors( qw( operationHandle orientation maxRows ) ); |
5474
|
|
|
|
|
|
|
|
5475
|
|
|
|
|
|
|
sub new { |
5476
|
0
|
|
|
0
|
|
|
my $classname = shift; |
5477
|
0
|
|
|
|
|
|
my $self = {}; |
5478
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
5479
|
0
|
|
|
|
|
|
$self->{operationHandle} = undef; |
5480
|
0
|
|
|
|
|
|
$self->{orientation} = 0; |
5481
|
0
|
|
|
|
|
|
$self->{maxRows} = undef; |
5482
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
5483
|
0
|
0
|
|
|
|
|
if (defined $vals->{operationHandle}) { |
5484
|
0
|
|
|
|
|
|
$self->{operationHandle} = $vals->{operationHandle}; |
5485
|
|
|
|
|
|
|
} |
5486
|
0
|
0
|
|
|
|
|
if (defined $vals->{orientation}) { |
5487
|
0
|
|
|
|
|
|
$self->{orientation} = $vals->{orientation}; |
5488
|
|
|
|
|
|
|
} |
5489
|
0
|
0
|
|
|
|
|
if (defined $vals->{maxRows}) { |
5490
|
0
|
|
|
|
|
|
$self->{maxRows} = $vals->{maxRows}; |
5491
|
|
|
|
|
|
|
} |
5492
|
|
|
|
|
|
|
} |
5493
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
5494
|
|
|
|
|
|
|
} |
5495
|
|
|
|
|
|
|
|
5496
|
|
|
|
|
|
|
sub getName { |
5497
|
0
|
|
|
0
|
|
|
return 'TFetchResultsReq'; |
5498
|
|
|
|
|
|
|
} |
5499
|
|
|
|
|
|
|
|
5500
|
|
|
|
|
|
|
sub read { |
5501
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
5502
|
0
|
|
|
|
|
|
my $xfer = 0; |
5503
|
0
|
|
|
|
|
|
my $fname; |
5504
|
0
|
|
|
|
|
|
my $ftype = 0; |
5505
|
0
|
|
|
|
|
|
my $fid = 0; |
5506
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
5507
|
0
|
|
|
|
|
|
while (1) |
5508
|
|
|
|
|
|
|
{ |
5509
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
5510
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
5511
|
0
|
|
|
|
|
|
last; |
5512
|
|
|
|
|
|
|
} |
5513
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
5514
|
|
|
|
|
|
|
{ |
5515
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
5516
|
0
|
|
|
|
|
|
$self->{operationHandle} = new Thrift::API::HiveClient2::TOperationHandle(); |
5517
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->read($input); |
5518
|
|
|
|
|
|
|
} else { |
5519
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5520
|
|
|
|
|
|
|
} |
5521
|
0
|
|
|
|
|
|
last; }; |
5522
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::I32) { |
|
0
|
0
|
|
|
|
|
|
5523
|
0
|
|
|
|
|
|
$xfer += $input->readI32(\$self->{orientation}); |
5524
|
|
|
|
|
|
|
} else { |
5525
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5526
|
|
|
|
|
|
|
} |
5527
|
0
|
|
|
|
|
|
last; }; |
5528
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::I64) { |
|
0
|
0
|
|
|
|
|
|
5529
|
0
|
|
|
|
|
|
$xfer += $input->readI64(\$self->{maxRows}); |
5530
|
|
|
|
|
|
|
} else { |
5531
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5532
|
|
|
|
|
|
|
} |
5533
|
0
|
|
|
|
|
|
last; }; |
5534
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5535
|
|
|
|
|
|
|
} |
5536
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
5537
|
|
|
|
|
|
|
} |
5538
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
5539
|
0
|
|
|
|
|
|
return $xfer; |
5540
|
|
|
|
|
|
|
} |
5541
|
|
|
|
|
|
|
|
5542
|
|
|
|
|
|
|
sub write { |
5543
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
5544
|
0
|
|
|
|
|
|
my $xfer = 0; |
5545
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TFetchResultsReq'); |
5546
|
0
|
0
|
|
|
|
|
if (defined $self->{operationHandle}) { |
5547
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('operationHandle', TType::STRUCT, 1); |
5548
|
0
|
|
|
|
|
|
$xfer += $self->{operationHandle}->write($output); |
5549
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
5550
|
|
|
|
|
|
|
} |
5551
|
0
|
0
|
|
|
|
|
if (defined $self->{orientation}) { |
5552
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('orientation', TType::I32, 2); |
5553
|
0
|
|
|
|
|
|
$xfer += $output->writeI32($self->{orientation}); |
5554
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
5555
|
|
|
|
|
|
|
} |
5556
|
0
|
0
|
|
|
|
|
if (defined $self->{maxRows}) { |
5557
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('maxRows', TType::I64, 3); |
5558
|
0
|
|
|
|
|
|
$xfer += $output->writeI64($self->{maxRows}); |
5559
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
5560
|
|
|
|
|
|
|
} |
5561
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
5562
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
5563
|
0
|
|
|
|
|
|
return $xfer; |
5564
|
|
|
|
|
|
|
} |
5565
|
|
|
|
|
|
|
|
5566
|
|
|
|
|
|
|
package Thrift::API::HiveClient2::TFetchResultsResp; |
5567
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TFetchResultsResp::VERSION = '0.024'; |
5568
|
|
|
|
|
|
|
{ |
5569
|
|
|
|
|
|
|
$Thrift::API::HiveClient2::TFetchResultsResp::DIST = 'Thrift-API-HiveClient2'; |
5570
|
|
|
|
|
|
|
} |
5571
|
2
|
|
|
2
|
|
16
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
1629
|
|
5572
|
|
|
|
|
|
|
Thrift::API::HiveClient2::TFetchResultsResp->mk_accessors( qw( status hasMoreRows results ) ); |
5573
|
|
|
|
|
|
|
|
5574
|
|
|
|
|
|
|
sub new { |
5575
|
0
|
|
|
0
|
|
|
my $classname = shift; |
5576
|
0
|
|
|
|
|
|
my $self = {}; |
5577
|
0
|
|
0
|
|
|
|
my $vals = shift || {}; |
5578
|
0
|
|
|
|
|
|
$self->{status} = undef; |
5579
|
0
|
|
|
|
|
|
$self->{hasMoreRows} = undef; |
5580
|
0
|
|
|
|
|
|
$self->{results} = undef; |
5581
|
0
|
0
|
|
|
|
|
if (UNIVERSAL::isa($vals,'HASH')) { |
5582
|
0
|
0
|
|
|
|
|
if (defined $vals->{status}) { |
5583
|
0
|
|
|
|
|
|
$self->{status} = $vals->{status}; |
5584
|
|
|
|
|
|
|
} |
5585
|
0
|
0
|
|
|
|
|
if (defined $vals->{hasMoreRows}) { |
5586
|
0
|
|
|
|
|
|
$self->{hasMoreRows} = $vals->{hasMoreRows}; |
5587
|
|
|
|
|
|
|
} |
5588
|
0
|
0
|
|
|
|
|
if (defined $vals->{results}) { |
5589
|
0
|
|
|
|
|
|
$self->{results} = $vals->{results}; |
5590
|
|
|
|
|
|
|
} |
5591
|
|
|
|
|
|
|
} |
5592
|
0
|
|
|
|
|
|
return bless ($self, $classname); |
5593
|
|
|
|
|
|
|
} |
5594
|
|
|
|
|
|
|
|
5595
|
|
|
|
|
|
|
sub getName { |
5596
|
0
|
|
|
0
|
|
|
return 'TFetchResultsResp'; |
5597
|
|
|
|
|
|
|
} |
5598
|
|
|
|
|
|
|
|
5599
|
|
|
|
|
|
|
sub read { |
5600
|
0
|
|
|
0
|
|
|
my ($self, $input) = @_; |
5601
|
0
|
|
|
|
|
|
my $xfer = 0; |
5602
|
0
|
|
|
|
|
|
my $fname; |
5603
|
0
|
|
|
|
|
|
my $ftype = 0; |
5604
|
0
|
|
|
|
|
|
my $fid = 0; |
5605
|
0
|
|
|
|
|
|
$xfer += $input->readStructBegin(\$fname); |
5606
|
0
|
|
|
|
|
|
while (1) |
5607
|
|
|
|
|
|
|
{ |
5608
|
0
|
|
|
|
|
|
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); |
5609
|
0
|
0
|
|
|
|
|
if ($ftype == TType::STOP) { |
5610
|
0
|
|
|
|
|
|
last; |
5611
|
|
|
|
|
|
|
} |
5612
|
0
|
|
|
|
|
|
SWITCH: for($fid) |
5613
|
|
|
|
|
|
|
{ |
5614
|
0
|
0
|
|
|
|
|
/^1$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
5615
|
0
|
|
|
|
|
|
$self->{status} = new Thrift::API::HiveClient2::TStatus(); |
5616
|
0
|
|
|
|
|
|
$xfer += $self->{status}->read($input); |
5617
|
|
|
|
|
|
|
} else { |
5618
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5619
|
|
|
|
|
|
|
} |
5620
|
0
|
|
|
|
|
|
last; }; |
5621
|
0
|
0
|
|
|
|
|
/^2$/ && do{ if ($ftype == TType::BOOL) { |
|
0
|
0
|
|
|
|
|
|
5622
|
0
|
|
|
|
|
|
$xfer += $input->readBool(\$self->{hasMoreRows}); |
5623
|
|
|
|
|
|
|
} else { |
5624
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5625
|
|
|
|
|
|
|
} |
5626
|
0
|
|
|
|
|
|
last; }; |
5627
|
0
|
0
|
|
|
|
|
/^3$/ && do{ if ($ftype == TType::STRUCT) { |
|
0
|
0
|
|
|
|
|
|
5628
|
0
|
|
|
|
|
|
$self->{results} = new Thrift::API::HiveClient2::TRowSet(); |
5629
|
0
|
|
|
|
|
|
$xfer += $self->{results}->read($input); |
5630
|
|
|
|
|
|
|
} else { |
5631
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5632
|
|
|
|
|
|
|
} |
5633
|
0
|
|
|
|
|
|
last; }; |
5634
|
0
|
|
|
|
|
|
$xfer += $input->skip($ftype); |
5635
|
|
|
|
|
|
|
} |
5636
|
0
|
|
|
|
|
|
$xfer += $input->readFieldEnd(); |
5637
|
|
|
|
|
|
|
} |
5638
|
0
|
|
|
|
|
|
$xfer += $input->readStructEnd(); |
5639
|
0
|
|
|
|
|
|
return $xfer; |
5640
|
|
|
|
|
|
|
} |
5641
|
|
|
|
|
|
|
|
5642
|
|
|
|
|
|
|
sub write { |
5643
|
0
|
|
|
0
|
|
|
my ($self, $output) = @_; |
5644
|
0
|
|
|
|
|
|
my $xfer = 0; |
5645
|
0
|
|
|
|
|
|
$xfer += $output->writeStructBegin('TFetchResultsResp'); |
5646
|
0
|
0
|
|
|
|
|
if (defined $self->{status}) { |
5647
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('status', TType::STRUCT, 1); |
5648
|
0
|
|
|
|
|
|
$xfer += $self->{status}->write($output); |
5649
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
5650
|
|
|
|
|
|
|
} |
5651
|
0
|
0
|
|
|
|
|
if (defined $self->{hasMoreRows}) { |
5652
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('hasMoreRows', TType::BOOL, 2); |
5653
|
0
|
|
|
|
|
|
$xfer += $output->writeBool($self->{hasMoreRows}); |
5654
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
5655
|
|
|
|
|
|
|
} |
5656
|
0
|
0
|
|
|
|
|
if (defined $self->{results}) { |
5657
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldBegin('results', TType::STRUCT, 3); |
5658
|
0
|
|
|
|
|
|
$xfer += $self->{results}->write($output); |
5659
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldEnd(); |
5660
|
|
|
|
|
|
|
} |
5661
|
0
|
|
|
|
|
|
$xfer += $output->writeFieldStop(); |
5662
|
0
|
|
|
|
|
|
$xfer += $output->writeStructEnd(); |
5663
|
0
|
|
|
|
|
|
return $xfer; |
5664
|
|
|
|
|
|
|
} |
5665
|
|
|
|
|
|
|
|
5666
|
|
|
|
|
|
|
1; |
5667
|
|
|
|
|
|
|
|
5668
|
|
|
|
|
|
|
__END__ |