File Coverage

blib/lib/Thrift/API/HiveClient2/TCLIService.pm
Criterion Covered Total %
statement 123 2137 5.7
branch 0 484 0.0
condition 0 64 0.0
subroutine 41 269 15.2
pod n/a
total 164 2954 5.5


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   13 use strict;
  2         4  
  2         89  
8 2     2   13 use warnings;
  2         6  
  2         60  
9 2     2   22 use Thrift;
  2         5  
  2         35  
10 2     2   795 use Thrift::API::HiveClient2::Compat;
  2         5  
  2         47  
11 2     2   1618 use Thrift::API::HiveClient2::Types;
  2         8  
  2         121  
12              
13             # HELPER FUNCTIONS AND STRUCTURES
14              
15             package Thrift::API::HiveClient2::TCLIService_OpenSession_args;
16             $Thrift::API::HiveClient2::TCLIService_OpenSession_args::VERSION = '0.023';
17             {
18             $Thrift::API::HiveClient2::TCLIService_OpenSession_args::DIST = 'Thrift-API-HiveClient2';
19             }
20 2     2   12 use base qw(Class::Accessor);
  2         4  
  2         890  
21             Thrift::API::HiveClient2::TCLIService_OpenSession_args->mk_accessors( qw( req ) );
22              
23             sub new {
24 0     0     my $classname = shift;
25 0           my $self = {};
26 0   0       my $vals = shift || {};
27 0           $self->{req} = undef;
28 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
29 0 0         if (defined $vals->{req}) {
30 0           $self->{req} = $vals->{req};
31             }
32             }
33 0           return bless ($self, $classname);
34             }
35              
36             sub getName {
37 0     0     return 'TCLIService_OpenSession_args';
38             }
39              
40             sub read {
41 0     0     my ($self, $input) = @_;
42 0           my $xfer = 0;
43 0           my $fname;
44 0           my $ftype = 0;
45 0           my $fid = 0;
46 0           $xfer += $input->readStructBegin(\$fname);
47 0           while (1)
48             {
49 0           $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
50 0 0         if ($ftype == TType::STOP) {
51 0           last;
52             }
53 0           SWITCH: for($fid)
54             {
55 0 0         /^1$/ && do{ if ($ftype == TType::STRUCT) {
  0 0          
56 0           $self->{req} = new Thrift::API::HiveClient2::TOpenSessionReq();
57 0           $xfer += $self->{req}->read($input);
58             } else {
59 0           $xfer += $input->skip($ftype);
60             }
61 0           last; };
62 0           $xfer += $input->skip($ftype);
63             }
64 0           $xfer += $input->readFieldEnd();
65             }
66 0           $xfer += $input->readStructEnd();
67 0           return $xfer;
68             }
69              
70             sub write {
71 0     0     my ($self, $output) = @_;
72 0           my $xfer = 0;
73 0           $xfer += $output->writeStructBegin('TCLIService_OpenSession_args');
74 0 0         if (defined $self->{req}) {
75 0           $xfer += $output->writeFieldBegin('req', TType::STRUCT, 1);
76 0           $xfer += $self->{req}->write($output);
77 0           $xfer += $output->writeFieldEnd();
78             }
79 0           $xfer += $output->writeFieldStop();
80 0           $xfer += $output->writeStructEnd();
81 0           return $xfer;
82             }
83              
84             package Thrift::API::HiveClient2::TCLIService_OpenSession_result;
85             $Thrift::API::HiveClient2::TCLIService_OpenSession_result::VERSION = '0.023';
86             {
87             $Thrift::API::HiveClient2::TCLIService_OpenSession_result::DIST = 'Thrift-API-HiveClient2';
88             }
89 2     2   22 use base qw(Class::Accessor);
  2         11  
  2         872  
90             Thrift::API::HiveClient2::TCLIService_OpenSession_result->mk_accessors( qw( success ) );
91              
92             sub new {
93 0     0     my $classname = shift;
94 0           my $self = {};
95 0   0       my $vals = shift || {};
96 0           $self->{success} = undef;
97 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
98 0 0         if (defined $vals->{success}) {
99 0           $self->{success} = $vals->{success};
100             }
101             }
102 0           return bless ($self, $classname);
103             }
104              
105             sub getName {
106 0     0     return 'TCLIService_OpenSession_result';
107             }
108              
109             sub read {
110 0     0     my ($self, $input) = @_;
111 0           my $xfer = 0;
112 0           my $fname;
113 0           my $ftype = 0;
114 0           my $fid = 0;
115 0           $xfer += $input->readStructBegin(\$fname);
116 0           while (1)
117             {
118 0           $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
119 0 0         if ($ftype == TType::STOP) {
120 0           last;
121             }
122 0           SWITCH: for($fid)
123             {
124 0 0         /^0$/ && do{ if ($ftype == TType::STRUCT) {
  0 0          
125 0           $self->{success} = new Thrift::API::HiveClient2::TOpenSessionResp();
126 0           $xfer += $self->{success}->read($input);
127             } else {
128 0           $xfer += $input->skip($ftype);
129             }
130 0           last; };
131 0           $xfer += $input->skip($ftype);
132             }
133 0           $xfer += $input->readFieldEnd();
134             }
135 0           $xfer += $input->readStructEnd();
136 0           return $xfer;
137             }
138              
139             sub write {
140 0     0     my ($self, $output) = @_;
141 0           my $xfer = 0;
142 0           $xfer += $output->writeStructBegin('TCLIService_OpenSession_result');
143 0 0         if (defined $self->{success}) {
144 0           $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
145 0           $xfer += $self->{success}->write($output);
146 0           $xfer += $output->writeFieldEnd();
147             }
148 0           $xfer += $output->writeFieldStop();
149 0           $xfer += $output->writeStructEnd();
150 0           return $xfer;
151             }
152              
153             package Thrift::API::HiveClient2::TCLIService_CloseSession_args;
154             $Thrift::API::HiveClient2::TCLIService_CloseSession_args::VERSION = '0.023';
155             {
156             $Thrift::API::HiveClient2::TCLIService_CloseSession_args::DIST = 'Thrift-API-HiveClient2';
157             }
158 2     2   14 use base qw(Class::Accessor);
  2         4  
  2         858  
159             Thrift::API::HiveClient2::TCLIService_CloseSession_args->mk_accessors( qw( req ) );
160              
161             sub new {
162 0     0     my $classname = shift;
163 0           my $self = {};
164 0   0       my $vals = shift || {};
165 0           $self->{req} = undef;
166 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
167 0 0         if (defined $vals->{req}) {
168 0           $self->{req} = $vals->{req};
169             }
170             }
171 0           return bless ($self, $classname);
172             }
173              
174             sub getName {
175 0     0     return 'TCLIService_CloseSession_args';
176             }
177              
178             sub read {
179 0     0     my ($self, $input) = @_;
180 0           my $xfer = 0;
181 0           my $fname;
182 0           my $ftype = 0;
183 0           my $fid = 0;
184 0           $xfer += $input->readStructBegin(\$fname);
185 0           while (1)
186             {
187 0           $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
188 0 0         if ($ftype == TType::STOP) {
189 0           last;
190             }
191 0           SWITCH: for($fid)
192             {
193 0 0         /^1$/ && do{ if ($ftype == TType::STRUCT) {
  0 0          
194 0           $self->{req} = new Thrift::API::HiveClient2::TCloseSessionReq();
195 0           $xfer += $self->{req}->read($input);
196             } else {
197 0           $xfer += $input->skip($ftype);
198             }
199 0           last; };
200 0           $xfer += $input->skip($ftype);
201             }
202 0           $xfer += $input->readFieldEnd();
203             }
204 0           $xfer += $input->readStructEnd();
205 0           return $xfer;
206             }
207              
208             sub write {
209 0     0     my ($self, $output) = @_;
210 0           my $xfer = 0;
211 0           $xfer += $output->writeStructBegin('TCLIService_CloseSession_args');
212 0 0         if (defined $self->{req}) {
213 0           $xfer += $output->writeFieldBegin('req', TType::STRUCT, 1);
214 0           $xfer += $self->{req}->write($output);
215 0           $xfer += $output->writeFieldEnd();
216             }
217 0           $xfer += $output->writeFieldStop();
218 0           $xfer += $output->writeStructEnd();
219 0           return $xfer;
220             }
221              
222             package Thrift::API::HiveClient2::TCLIService_CloseSession_result;
223             $Thrift::API::HiveClient2::TCLIService_CloseSession_result::VERSION = '0.023';
224             {
225             $Thrift::API::HiveClient2::TCLIService_CloseSession_result::DIST = 'Thrift-API-HiveClient2';
226             }
227 2     2   14 use base qw(Class::Accessor);
  2         3  
  2         1006  
228             Thrift::API::HiveClient2::TCLIService_CloseSession_result->mk_accessors( qw( success ) );
229              
230             sub new {
231 0     0     my $classname = shift;
232 0           my $self = {};
233 0   0       my $vals = shift || {};
234 0           $self->{success} = undef;
235 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
236 0 0         if (defined $vals->{success}) {
237 0           $self->{success} = $vals->{success};
238             }
239             }
240 0           return bless ($self, $classname);
241             }
242              
243             sub getName {
244 0     0     return 'TCLIService_CloseSession_result';
245             }
246              
247             sub read {
248 0     0     my ($self, $input) = @_;
249 0           my $xfer = 0;
250 0           my $fname;
251 0           my $ftype = 0;
252 0           my $fid = 0;
253 0           $xfer += $input->readStructBegin(\$fname);
254 0           while (1)
255             {
256 0           $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
257 0 0         if ($ftype == TType::STOP) {
258 0           last;
259             }
260 0           SWITCH: for($fid)
261             {
262 0 0         /^0$/ && do{ if ($ftype == TType::STRUCT) {
  0 0          
263 0           $self->{success} = new Thrift::API::HiveClient2::TCloseSessionResp();
264 0           $xfer += $self->{success}->read($input);
265             } else {
266 0           $xfer += $input->skip($ftype);
267             }
268 0           last; };
269 0           $xfer += $input->skip($ftype);
270             }
271 0           $xfer += $input->readFieldEnd();
272             }
273 0           $xfer += $input->readStructEnd();
274 0           return $xfer;
275             }
276              
277             sub write {
278 0     0     my ($self, $output) = @_;
279 0           my $xfer = 0;
280 0           $xfer += $output->writeStructBegin('TCLIService_CloseSession_result');
281 0 0         if (defined $self->{success}) {
282 0           $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
283 0           $xfer += $self->{success}->write($output);
284 0           $xfer += $output->writeFieldEnd();
285             }
286 0           $xfer += $output->writeFieldStop();
287 0           $xfer += $output->writeStructEnd();
288 0           return $xfer;
289             }
290              
291             package Thrift::API::HiveClient2::TCLIService_GetInfo_args;
292             $Thrift::API::HiveClient2::TCLIService_GetInfo_args::VERSION = '0.023';
293             {
294             $Thrift::API::HiveClient2::TCLIService_GetInfo_args::DIST = 'Thrift-API-HiveClient2';
295             }
296 2     2   13 use base qw(Class::Accessor);
  2         4  
  2         905  
297             Thrift::API::HiveClient2::TCLIService_GetInfo_args->mk_accessors( qw( req ) );
298              
299             sub new {
300 0     0     my $classname = shift;
301 0           my $self = {};
302 0   0       my $vals = shift || {};
303 0           $self->{req} = undef;
304 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
305 0 0         if (defined $vals->{req}) {
306 0           $self->{req} = $vals->{req};
307             }
308             }
309 0           return bless ($self, $classname);
310             }
311              
312             sub getName {
313 0     0     return 'TCLIService_GetInfo_args';
314             }
315              
316             sub read {
317 0     0     my ($self, $input) = @_;
318 0           my $xfer = 0;
319 0           my $fname;
320 0           my $ftype = 0;
321 0           my $fid = 0;
322 0           $xfer += $input->readStructBegin(\$fname);
323 0           while (1)
324             {
325 0           $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
326 0 0         if ($ftype == TType::STOP) {
327 0           last;
328             }
329 0           SWITCH: for($fid)
330             {
331 0 0         /^1$/ && do{ if ($ftype == TType::STRUCT) {
  0 0          
332 0           $self->{req} = new Thrift::API::HiveClient2::TGetInfoReq();
333 0           $xfer += $self->{req}->read($input);
334             } else {
335 0           $xfer += $input->skip($ftype);
336             }
337 0           last; };
338 0           $xfer += $input->skip($ftype);
339             }
340 0           $xfer += $input->readFieldEnd();
341             }
342 0           $xfer += $input->readStructEnd();
343 0           return $xfer;
344             }
345              
346             sub write {
347 0     0     my ($self, $output) = @_;
348 0           my $xfer = 0;
349 0           $xfer += $output->writeStructBegin('TCLIService_GetInfo_args');
350 0 0         if (defined $self->{req}) {
351 0           $xfer += $output->writeFieldBegin('req', TType::STRUCT, 1);
352 0           $xfer += $self->{req}->write($output);
353 0           $xfer += $output->writeFieldEnd();
354             }
355 0           $xfer += $output->writeFieldStop();
356 0           $xfer += $output->writeStructEnd();
357 0           return $xfer;
358             }
359              
360             package Thrift::API::HiveClient2::TCLIService_GetInfo_result;
361             $Thrift::API::HiveClient2::TCLIService_GetInfo_result::VERSION = '0.023';
362             {
363             $Thrift::API::HiveClient2::TCLIService_GetInfo_result::DIST = 'Thrift-API-HiveClient2';
364             }
365 2     2   14 use base qw(Class::Accessor);
  2         4  
  2         856  
366             Thrift::API::HiveClient2::TCLIService_GetInfo_result->mk_accessors( qw( success ) );
367              
368             sub new {
369 0     0     my $classname = shift;
370 0           my $self = {};
371 0   0       my $vals = shift || {};
372 0           $self->{success} = undef;
373 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
374 0 0         if (defined $vals->{success}) {
375 0           $self->{success} = $vals->{success};
376             }
377             }
378 0           return bless ($self, $classname);
379             }
380              
381             sub getName {
382 0     0     return 'TCLIService_GetInfo_result';
383             }
384              
385             sub read {
386 0     0     my ($self, $input) = @_;
387 0           my $xfer = 0;
388 0           my $fname;
389 0           my $ftype = 0;
390 0           my $fid = 0;
391 0           $xfer += $input->readStructBegin(\$fname);
392 0           while (1)
393             {
394 0           $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
395 0 0         if ($ftype == TType::STOP) {
396 0           last;
397             }
398 0           SWITCH: for($fid)
399             {
400 0 0         /^0$/ && do{ if ($ftype == TType::STRUCT) {
  0 0          
401 0           $self->{success} = new Thrift::API::HiveClient2::TGetInfoResp();
402 0           $xfer += $self->{success}->read($input);
403             } else {
404 0           $xfer += $input->skip($ftype);
405             }
406 0           last; };
407 0           $xfer += $input->skip($ftype);
408             }
409 0           $xfer += $input->readFieldEnd();
410             }
411 0           $xfer += $input->readStructEnd();
412 0           return $xfer;
413             }
414              
415             sub write {
416 0     0     my ($self, $output) = @_;
417 0           my $xfer = 0;
418 0           $xfer += $output->writeStructBegin('TCLIService_GetInfo_result');
419 0 0         if (defined $self->{success}) {
420 0           $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
421 0           $xfer += $self->{success}->write($output);
422 0           $xfer += $output->writeFieldEnd();
423             }
424 0           $xfer += $output->writeFieldStop();
425 0           $xfer += $output->writeStructEnd();
426 0           return $xfer;
427             }
428              
429             package Thrift::API::HiveClient2::TCLIService_ExecuteStatement_args;
430             $Thrift::API::HiveClient2::TCLIService_ExecuteStatement_args::VERSION = '0.023';
431             {
432             $Thrift::API::HiveClient2::TCLIService_ExecuteStatement_args::DIST = 'Thrift-API-HiveClient2';
433             }
434 2     2   15 use base qw(Class::Accessor);
  2         10  
  2         822  
435             Thrift::API::HiveClient2::TCLIService_ExecuteStatement_args->mk_accessors( qw( req ) );
436              
437             sub new {
438 0     0     my $classname = shift;
439 0           my $self = {};
440 0   0       my $vals = shift || {};
441 0           $self->{req} = undef;
442 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
443 0 0         if (defined $vals->{req}) {
444 0           $self->{req} = $vals->{req};
445             }
446             }
447 0           return bless ($self, $classname);
448             }
449              
450             sub getName {
451 0     0     return 'TCLIService_ExecuteStatement_args';
452             }
453              
454             sub read {
455 0     0     my ($self, $input) = @_;
456 0           my $xfer = 0;
457 0           my $fname;
458 0           my $ftype = 0;
459 0           my $fid = 0;
460 0           $xfer += $input->readStructBegin(\$fname);
461 0           while (1)
462             {
463 0           $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
464 0 0         if ($ftype == TType::STOP) {
465 0           last;
466             }
467 0           SWITCH: for($fid)
468             {
469 0 0         /^1$/ && do{ if ($ftype == TType::STRUCT) {
  0 0          
470 0           $self->{req} = new Thrift::API::HiveClient2::TExecuteStatementReq();
471 0           $xfer += $self->{req}->read($input);
472             } else {
473 0           $xfer += $input->skip($ftype);
474             }
475 0           last; };
476 0           $xfer += $input->skip($ftype);
477             }
478 0           $xfer += $input->readFieldEnd();
479             }
480 0           $xfer += $input->readStructEnd();
481 0           return $xfer;
482             }
483              
484             sub write {
485 0     0     my ($self, $output) = @_;
486 0           my $xfer = 0;
487 0           $xfer += $output->writeStructBegin('TCLIService_ExecuteStatement_args');
488 0 0         if (defined $self->{req}) {
489 0           $xfer += $output->writeFieldBegin('req', TType::STRUCT, 1);
490 0           $xfer += $self->{req}->write($output);
491 0           $xfer += $output->writeFieldEnd();
492             }
493 0           $xfer += $output->writeFieldStop();
494 0           $xfer += $output->writeStructEnd();
495 0           return $xfer;
496             }
497              
498             package Thrift::API::HiveClient2::TCLIService_ExecuteStatement_result;
499             $Thrift::API::HiveClient2::TCLIService_ExecuteStatement_result::VERSION = '0.023';
500             {
501             $Thrift::API::HiveClient2::TCLIService_ExecuteStatement_result::DIST = 'Thrift-API-HiveClient2';
502             }
503 2     2   14 use base qw(Class::Accessor);
  2         3  
  2         924  
504             Thrift::API::HiveClient2::TCLIService_ExecuteStatement_result->mk_accessors( qw( success ) );
505              
506             sub new {
507 0     0     my $classname = shift;
508 0           my $self = {};
509 0   0       my $vals = shift || {};
510 0           $self->{success} = undef;
511 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
512 0 0         if (defined $vals->{success}) {
513 0           $self->{success} = $vals->{success};
514             }
515             }
516 0           return bless ($self, $classname);
517             }
518              
519             sub getName {
520 0     0     return 'TCLIService_ExecuteStatement_result';
521             }
522              
523             sub read {
524 0     0     my ($self, $input) = @_;
525 0           my $xfer = 0;
526 0           my $fname;
527 0           my $ftype = 0;
528 0           my $fid = 0;
529 0           $xfer += $input->readStructBegin(\$fname);
530 0           while (1)
531             {
532 0           $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
533 0 0         if ($ftype == TType::STOP) {
534 0           last;
535             }
536 0           SWITCH: for($fid)
537             {
538 0 0         /^0$/ && do{ if ($ftype == TType::STRUCT) {
  0 0          
539 0           $self->{success} = new Thrift::API::HiveClient2::TExecuteStatementResp();
540 0           $xfer += $self->{success}->read($input);
541             } else {
542 0           $xfer += $input->skip($ftype);
543             }
544 0           last; };
545 0           $xfer += $input->skip($ftype);
546             }
547 0           $xfer += $input->readFieldEnd();
548             }
549 0           $xfer += $input->readStructEnd();
550 0           return $xfer;
551             }
552              
553             sub write {
554 0     0     my ($self, $output) = @_;
555 0           my $xfer = 0;
556 0           $xfer += $output->writeStructBegin('TCLIService_ExecuteStatement_result');
557 0 0         if (defined $self->{success}) {
558 0           $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
559 0           $xfer += $self->{success}->write($output);
560 0           $xfer += $output->writeFieldEnd();
561             }
562 0           $xfer += $output->writeFieldStop();
563 0           $xfer += $output->writeStructEnd();
564 0           return $xfer;
565             }
566              
567             package Thrift::API::HiveClient2::TCLIService_GetTypeInfo_args;
568             $Thrift::API::HiveClient2::TCLIService_GetTypeInfo_args::VERSION = '0.023';
569             {
570             $Thrift::API::HiveClient2::TCLIService_GetTypeInfo_args::DIST = 'Thrift-API-HiveClient2';
571             }
572 2     2   16 use base qw(Class::Accessor);
  2         6  
  2         899  
573             Thrift::API::HiveClient2::TCLIService_GetTypeInfo_args->mk_accessors( qw( req ) );
574              
575             sub new {
576 0     0     my $classname = shift;
577 0           my $self = {};
578 0   0       my $vals = shift || {};
579 0           $self->{req} = undef;
580 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
581 0 0         if (defined $vals->{req}) {
582 0           $self->{req} = $vals->{req};
583             }
584             }
585 0           return bless ($self, $classname);
586             }
587              
588             sub getName {
589 0     0     return 'TCLIService_GetTypeInfo_args';
590             }
591              
592             sub read {
593 0     0     my ($self, $input) = @_;
594 0           my $xfer = 0;
595 0           my $fname;
596 0           my $ftype = 0;
597 0           my $fid = 0;
598 0           $xfer += $input->readStructBegin(\$fname);
599 0           while (1)
600             {
601 0           $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
602 0 0         if ($ftype == TType::STOP) {
603 0           last;
604             }
605 0           SWITCH: for($fid)
606             {
607 0 0         /^1$/ && do{ if ($ftype == TType::STRUCT) {
  0 0          
608 0           $self->{req} = new Thrift::API::HiveClient2::TGetTypeInfoReq();
609 0           $xfer += $self->{req}->read($input);
610             } else {
611 0           $xfer += $input->skip($ftype);
612             }
613 0           last; };
614 0           $xfer += $input->skip($ftype);
615             }
616 0           $xfer += $input->readFieldEnd();
617             }
618 0           $xfer += $input->readStructEnd();
619 0           return $xfer;
620             }
621              
622             sub write {
623 0     0     my ($self, $output) = @_;
624 0           my $xfer = 0;
625 0           $xfer += $output->writeStructBegin('TCLIService_GetTypeInfo_args');
626 0 0         if (defined $self->{req}) {
627 0           $xfer += $output->writeFieldBegin('req', TType::STRUCT, 1);
628 0           $xfer += $self->{req}->write($output);
629 0           $xfer += $output->writeFieldEnd();
630             }
631 0           $xfer += $output->writeFieldStop();
632 0           $xfer += $output->writeStructEnd();
633 0           return $xfer;
634             }
635              
636             package Thrift::API::HiveClient2::TCLIService_GetTypeInfo_result;
637             $Thrift::API::HiveClient2::TCLIService_GetTypeInfo_result::VERSION = '0.023';
638             {
639             $Thrift::API::HiveClient2::TCLIService_GetTypeInfo_result::DIST = 'Thrift-API-HiveClient2';
640             }
641 2     2   13 use base qw(Class::Accessor);
  2         3  
  2         808  
642             Thrift::API::HiveClient2::TCLIService_GetTypeInfo_result->mk_accessors( qw( success ) );
643              
644             sub new {
645 0     0     my $classname = shift;
646 0           my $self = {};
647 0   0       my $vals = shift || {};
648 0           $self->{success} = undef;
649 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
650 0 0         if (defined $vals->{success}) {
651 0           $self->{success} = $vals->{success};
652             }
653             }
654 0           return bless ($self, $classname);
655             }
656              
657             sub getName {
658 0     0     return 'TCLIService_GetTypeInfo_result';
659             }
660              
661             sub read {
662 0     0     my ($self, $input) = @_;
663 0           my $xfer = 0;
664 0           my $fname;
665 0           my $ftype = 0;
666 0           my $fid = 0;
667 0           $xfer += $input->readStructBegin(\$fname);
668 0           while (1)
669             {
670 0           $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
671 0 0         if ($ftype == TType::STOP) {
672 0           last;
673             }
674 0           SWITCH: for($fid)
675             {
676 0 0         /^0$/ && do{ if ($ftype == TType::STRUCT) {
  0 0          
677 0           $self->{success} = new Thrift::API::HiveClient2::TGetTypeInfoResp();
678 0           $xfer += $self->{success}->read($input);
679             } else {
680 0           $xfer += $input->skip($ftype);
681             }
682 0           last; };
683 0           $xfer += $input->skip($ftype);
684             }
685 0           $xfer += $input->readFieldEnd();
686             }
687 0           $xfer += $input->readStructEnd();
688 0           return $xfer;
689             }
690              
691             sub write {
692 0     0     my ($self, $output) = @_;
693 0           my $xfer = 0;
694 0           $xfer += $output->writeStructBegin('TCLIService_GetTypeInfo_result');
695 0 0         if (defined $self->{success}) {
696 0           $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
697 0           $xfer += $self->{success}->write($output);
698 0           $xfer += $output->writeFieldEnd();
699             }
700 0           $xfer += $output->writeFieldStop();
701 0           $xfer += $output->writeStructEnd();
702 0           return $xfer;
703             }
704              
705             package Thrift::API::HiveClient2::TCLIService_GetCatalogs_args;
706             $Thrift::API::HiveClient2::TCLIService_GetCatalogs_args::VERSION = '0.023';
707             {
708             $Thrift::API::HiveClient2::TCLIService_GetCatalogs_args::DIST = 'Thrift-API-HiveClient2';
709             }
710 2     2   14 use base qw(Class::Accessor);
  2         22  
  2         857  
711             Thrift::API::HiveClient2::TCLIService_GetCatalogs_args->mk_accessors( qw( req ) );
712              
713             sub new {
714 0     0     my $classname = shift;
715 0           my $self = {};
716 0   0       my $vals = shift || {};
717 0           $self->{req} = undef;
718 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
719 0 0         if (defined $vals->{req}) {
720 0           $self->{req} = $vals->{req};
721             }
722             }
723 0           return bless ($self, $classname);
724             }
725              
726             sub getName {
727 0     0     return 'TCLIService_GetCatalogs_args';
728             }
729              
730             sub read {
731 0     0     my ($self, $input) = @_;
732 0           my $xfer = 0;
733 0           my $fname;
734 0           my $ftype = 0;
735 0           my $fid = 0;
736 0           $xfer += $input->readStructBegin(\$fname);
737 0           while (1)
738             {
739 0           $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
740 0 0         if ($ftype == TType::STOP) {
741 0           last;
742             }
743 0           SWITCH: for($fid)
744             {
745 0 0         /^1$/ && do{ if ($ftype == TType::STRUCT) {
  0 0          
746 0           $self->{req} = new Thrift::API::HiveClient2::TGetCatalogsReq();
747 0           $xfer += $self->{req}->read($input);
748             } else {
749 0           $xfer += $input->skip($ftype);
750             }
751 0           last; };
752 0           $xfer += $input->skip($ftype);
753             }
754 0           $xfer += $input->readFieldEnd();
755             }
756 0           $xfer += $input->readStructEnd();
757 0           return $xfer;
758             }
759              
760             sub write {
761 0     0     my ($self, $output) = @_;
762 0           my $xfer = 0;
763 0           $xfer += $output->writeStructBegin('TCLIService_GetCatalogs_args');
764 0 0         if (defined $self->{req}) {
765 0           $xfer += $output->writeFieldBegin('req', TType::STRUCT, 1);
766 0           $xfer += $self->{req}->write($output);
767 0           $xfer += $output->writeFieldEnd();
768             }
769 0           $xfer += $output->writeFieldStop();
770 0           $xfer += $output->writeStructEnd();
771 0           return $xfer;
772             }
773              
774             package Thrift::API::HiveClient2::TCLIService_GetCatalogs_result;
775             $Thrift::API::HiveClient2::TCLIService_GetCatalogs_result::VERSION = '0.023';
776             {
777             $Thrift::API::HiveClient2::TCLIService_GetCatalogs_result::DIST = 'Thrift-API-HiveClient2';
778             }
779 2     2   13 use base qw(Class::Accessor);
  2         4  
  2         858  
780             Thrift::API::HiveClient2::TCLIService_GetCatalogs_result->mk_accessors( qw( success ) );
781              
782             sub new {
783 0     0     my $classname = shift;
784 0           my $self = {};
785 0   0       my $vals = shift || {};
786 0           $self->{success} = undef;
787 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
788 0 0         if (defined $vals->{success}) {
789 0           $self->{success} = $vals->{success};
790             }
791             }
792 0           return bless ($self, $classname);
793             }
794              
795             sub getName {
796 0     0     return 'TCLIService_GetCatalogs_result';
797             }
798              
799             sub read {
800 0     0     my ($self, $input) = @_;
801 0           my $xfer = 0;
802 0           my $fname;
803 0           my $ftype = 0;
804 0           my $fid = 0;
805 0           $xfer += $input->readStructBegin(\$fname);
806 0           while (1)
807             {
808 0           $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
809 0 0         if ($ftype == TType::STOP) {
810 0           last;
811             }
812 0           SWITCH: for($fid)
813             {
814 0 0         /^0$/ && do{ if ($ftype == TType::STRUCT) {
  0 0          
815 0           $self->{success} = new Thrift::API::HiveClient2::TGetCatalogsResp();
816 0           $xfer += $self->{success}->read($input);
817             } else {
818 0           $xfer += $input->skip($ftype);
819             }
820 0           last; };
821 0           $xfer += $input->skip($ftype);
822             }
823 0           $xfer += $input->readFieldEnd();
824             }
825 0           $xfer += $input->readStructEnd();
826 0           return $xfer;
827             }
828              
829             sub write {
830 0     0     my ($self, $output) = @_;
831 0           my $xfer = 0;
832 0           $xfer += $output->writeStructBegin('TCLIService_GetCatalogs_result');
833 0 0         if (defined $self->{success}) {
834 0           $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
835 0           $xfer += $self->{success}->write($output);
836 0           $xfer += $output->writeFieldEnd();
837             }
838 0           $xfer += $output->writeFieldStop();
839 0           $xfer += $output->writeStructEnd();
840 0           return $xfer;
841             }
842              
843             package Thrift::API::HiveClient2::TCLIService_GetSchemas_args;
844             $Thrift::API::HiveClient2::TCLIService_GetSchemas_args::VERSION = '0.023';
845             {
846             $Thrift::API::HiveClient2::TCLIService_GetSchemas_args::DIST = 'Thrift-API-HiveClient2';
847             }
848 2     2   13 use base qw(Class::Accessor);
  2         4  
  2         890  
849             Thrift::API::HiveClient2::TCLIService_GetSchemas_args->mk_accessors( qw( req ) );
850              
851             sub new {
852 0     0     my $classname = shift;
853 0           my $self = {};
854 0   0       my $vals = shift || {};
855 0           $self->{req} = undef;
856 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
857 0 0         if (defined $vals->{req}) {
858 0           $self->{req} = $vals->{req};
859             }
860             }
861 0           return bless ($self, $classname);
862             }
863              
864             sub getName {
865 0     0     return 'TCLIService_GetSchemas_args';
866             }
867              
868             sub read {
869 0     0     my ($self, $input) = @_;
870 0           my $xfer = 0;
871 0           my $fname;
872 0           my $ftype = 0;
873 0           my $fid = 0;
874 0           $xfer += $input->readStructBegin(\$fname);
875 0           while (1)
876             {
877 0           $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
878 0 0         if ($ftype == TType::STOP) {
879 0           last;
880             }
881 0           SWITCH: for($fid)
882             {
883 0 0         /^1$/ && do{ if ($ftype == TType::STRUCT) {
  0 0          
884 0           $self->{req} = new Thrift::API::HiveClient2::TGetSchemasReq();
885 0           $xfer += $self->{req}->read($input);
886             } else {
887 0           $xfer += $input->skip($ftype);
888             }
889 0           last; };
890 0           $xfer += $input->skip($ftype);
891             }
892 0           $xfer += $input->readFieldEnd();
893             }
894 0           $xfer += $input->readStructEnd();
895 0           return $xfer;
896             }
897              
898             sub write {
899 0     0     my ($self, $output) = @_;
900 0           my $xfer = 0;
901 0           $xfer += $output->writeStructBegin('TCLIService_GetSchemas_args');
902 0 0         if (defined $self->{req}) {
903 0           $xfer += $output->writeFieldBegin('req', TType::STRUCT, 1);
904 0           $xfer += $self->{req}->write($output);
905 0           $xfer += $output->writeFieldEnd();
906             }
907 0           $xfer += $output->writeFieldStop();
908 0           $xfer += $output->writeStructEnd();
909 0           return $xfer;
910             }
911              
912             package Thrift::API::HiveClient2::TCLIService_GetSchemas_result;
913             $Thrift::API::HiveClient2::TCLIService_GetSchemas_result::VERSION = '0.023';
914             {
915             $Thrift::API::HiveClient2::TCLIService_GetSchemas_result::DIST = 'Thrift-API-HiveClient2';
916             }
917 2     2   13 use base qw(Class::Accessor);
  2         5  
  2         852  
918             Thrift::API::HiveClient2::TCLIService_GetSchemas_result->mk_accessors( qw( success ) );
919              
920             sub new {
921 0     0     my $classname = shift;
922 0           my $self = {};
923 0   0       my $vals = shift || {};
924 0           $self->{success} = undef;
925 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
926 0 0         if (defined $vals->{success}) {
927 0           $self->{success} = $vals->{success};
928             }
929             }
930 0           return bless ($self, $classname);
931             }
932              
933             sub getName {
934 0     0     return 'TCLIService_GetSchemas_result';
935             }
936              
937             sub read {
938 0     0     my ($self, $input) = @_;
939 0           my $xfer = 0;
940 0           my $fname;
941 0           my $ftype = 0;
942 0           my $fid = 0;
943 0           $xfer += $input->readStructBegin(\$fname);
944 0           while (1)
945             {
946 0           $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
947 0 0         if ($ftype == TType::STOP) {
948 0           last;
949             }
950 0           SWITCH: for($fid)
951             {
952 0 0         /^0$/ && do{ if ($ftype == TType::STRUCT) {
  0 0          
953 0           $self->{success} = new Thrift::API::HiveClient2::TGetSchemasResp();
954 0           $xfer += $self->{success}->read($input);
955             } else {
956 0           $xfer += $input->skip($ftype);
957             }
958 0           last; };
959 0           $xfer += $input->skip($ftype);
960             }
961 0           $xfer += $input->readFieldEnd();
962             }
963 0           $xfer += $input->readStructEnd();
964 0           return $xfer;
965             }
966              
967             sub write {
968 0     0     my ($self, $output) = @_;
969 0           my $xfer = 0;
970 0           $xfer += $output->writeStructBegin('TCLIService_GetSchemas_result');
971 0 0         if (defined $self->{success}) {
972 0           $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
973 0           $xfer += $self->{success}->write($output);
974 0           $xfer += $output->writeFieldEnd();
975             }
976 0           $xfer += $output->writeFieldStop();
977 0           $xfer += $output->writeStructEnd();
978 0           return $xfer;
979             }
980              
981             package Thrift::API::HiveClient2::TCLIService_GetTables_args;
982             $Thrift::API::HiveClient2::TCLIService_GetTables_args::VERSION = '0.023';
983             {
984             $Thrift::API::HiveClient2::TCLIService_GetTables_args::DIST = 'Thrift-API-HiveClient2';
985             }
986 2     2   13 use base qw(Class::Accessor);
  2         5  
  2         837  
987             Thrift::API::HiveClient2::TCLIService_GetTables_args->mk_accessors( qw( req ) );
988              
989             sub new {
990 0     0     my $classname = shift;
991 0           my $self = {};
992 0   0       my $vals = shift || {};
993 0           $self->{req} = undef;
994 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
995 0 0         if (defined $vals->{req}) {
996 0           $self->{req} = $vals->{req};
997             }
998             }
999 0           return bless ($self, $classname);
1000             }
1001              
1002             sub getName {
1003 0     0     return 'TCLIService_GetTables_args';
1004             }
1005              
1006             sub read {
1007 0     0     my ($self, $input) = @_;
1008 0           my $xfer = 0;
1009 0           my $fname;
1010 0           my $ftype = 0;
1011 0           my $fid = 0;
1012 0           $xfer += $input->readStructBegin(\$fname);
1013 0           while (1)
1014             {
1015 0           $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
1016 0 0         if ($ftype == TType::STOP) {
1017 0           last;
1018             }
1019 0           SWITCH: for($fid)
1020             {
1021 0 0         /^1$/ && do{ if ($ftype == TType::STRUCT) {
  0 0          
1022 0           $self->{req} = new Thrift::API::HiveClient2::TGetTablesReq();
1023 0           $xfer += $self->{req}->read($input);
1024             } else {
1025 0           $xfer += $input->skip($ftype);
1026             }
1027 0           last; };
1028 0           $xfer += $input->skip($ftype);
1029             }
1030 0           $xfer += $input->readFieldEnd();
1031             }
1032 0           $xfer += $input->readStructEnd();
1033 0           return $xfer;
1034             }
1035              
1036             sub write {
1037 0     0     my ($self, $output) = @_;
1038 0           my $xfer = 0;
1039 0           $xfer += $output->writeStructBegin('TCLIService_GetTables_args');
1040 0 0         if (defined $self->{req}) {
1041 0           $xfer += $output->writeFieldBegin('req', TType::STRUCT, 1);
1042 0           $xfer += $self->{req}->write($output);
1043 0           $xfer += $output->writeFieldEnd();
1044             }
1045 0           $xfer += $output->writeFieldStop();
1046 0           $xfer += $output->writeStructEnd();
1047 0           return $xfer;
1048             }
1049              
1050             package Thrift::API::HiveClient2::TCLIService_GetTables_result;
1051             $Thrift::API::HiveClient2::TCLIService_GetTables_result::VERSION = '0.023';
1052             {
1053             $Thrift::API::HiveClient2::TCLIService_GetTables_result::DIST = 'Thrift-API-HiveClient2';
1054             }
1055 2     2   13 use base qw(Class::Accessor);
  2         5  
  2         817  
1056             Thrift::API::HiveClient2::TCLIService_GetTables_result->mk_accessors( qw( success ) );
1057              
1058             sub new {
1059 0     0     my $classname = shift;
1060 0           my $self = {};
1061 0   0       my $vals = shift || {};
1062 0           $self->{success} = undef;
1063 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
1064 0 0         if (defined $vals->{success}) {
1065 0           $self->{success} = $vals->{success};
1066             }
1067             }
1068 0           return bless ($self, $classname);
1069             }
1070              
1071             sub getName {
1072 0     0     return 'TCLIService_GetTables_result';
1073             }
1074              
1075             sub read {
1076 0     0     my ($self, $input) = @_;
1077 0           my $xfer = 0;
1078 0           my $fname;
1079 0           my $ftype = 0;
1080 0           my $fid = 0;
1081 0           $xfer += $input->readStructBegin(\$fname);
1082 0           while (1)
1083             {
1084 0           $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
1085 0 0         if ($ftype == TType::STOP) {
1086 0           last;
1087             }
1088 0           SWITCH: for($fid)
1089             {
1090 0 0         /^0$/ && do{ if ($ftype == TType::STRUCT) {
  0 0          
1091 0           $self->{success} = new Thrift::API::HiveClient2::TGetTablesResp();
1092 0           $xfer += $self->{success}->read($input);
1093             } else {
1094 0           $xfer += $input->skip($ftype);
1095             }
1096 0           last; };
1097 0           $xfer += $input->skip($ftype);
1098             }
1099 0           $xfer += $input->readFieldEnd();
1100             }
1101 0           $xfer += $input->readStructEnd();
1102 0           return $xfer;
1103             }
1104              
1105             sub write {
1106 0     0     my ($self, $output) = @_;
1107 0           my $xfer = 0;
1108 0           $xfer += $output->writeStructBegin('TCLIService_GetTables_result');
1109 0 0         if (defined $self->{success}) {
1110 0           $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
1111 0           $xfer += $self->{success}->write($output);
1112 0           $xfer += $output->writeFieldEnd();
1113             }
1114 0           $xfer += $output->writeFieldStop();
1115 0           $xfer += $output->writeStructEnd();
1116 0           return $xfer;
1117             }
1118              
1119             package Thrift::API::HiveClient2::TCLIService_GetTableTypes_args;
1120             $Thrift::API::HiveClient2::TCLIService_GetTableTypes_args::VERSION = '0.023';
1121             {
1122             $Thrift::API::HiveClient2::TCLIService_GetTableTypes_args::DIST = 'Thrift-API-HiveClient2';
1123             }
1124 2     2   14 use base qw(Class::Accessor);
  2         4  
  2         806  
1125             Thrift::API::HiveClient2::TCLIService_GetTableTypes_args->mk_accessors( qw( req ) );
1126              
1127             sub new {
1128 0     0     my $classname = shift;
1129 0           my $self = {};
1130 0   0       my $vals = shift || {};
1131 0           $self->{req} = undef;
1132 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
1133 0 0         if (defined $vals->{req}) {
1134 0           $self->{req} = $vals->{req};
1135             }
1136             }
1137 0           return bless ($self, $classname);
1138             }
1139              
1140             sub getName {
1141 0     0     return 'TCLIService_GetTableTypes_args';
1142             }
1143              
1144             sub read {
1145 0     0     my ($self, $input) = @_;
1146 0           my $xfer = 0;
1147 0           my $fname;
1148 0           my $ftype = 0;
1149 0           my $fid = 0;
1150 0           $xfer += $input->readStructBegin(\$fname);
1151 0           while (1)
1152             {
1153 0           $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
1154 0 0         if ($ftype == TType::STOP) {
1155 0           last;
1156             }
1157 0           SWITCH: for($fid)
1158             {
1159 0 0         /^1$/ && do{ if ($ftype == TType::STRUCT) {
  0 0          
1160 0           $self->{req} = new Thrift::API::HiveClient2::TGetTableTypesReq();
1161 0           $xfer += $self->{req}->read($input);
1162             } else {
1163 0           $xfer += $input->skip($ftype);
1164             }
1165 0           last; };
1166 0           $xfer += $input->skip($ftype);
1167             }
1168 0           $xfer += $input->readFieldEnd();
1169             }
1170 0           $xfer += $input->readStructEnd();
1171 0           return $xfer;
1172             }
1173              
1174             sub write {
1175 0     0     my ($self, $output) = @_;
1176 0           my $xfer = 0;
1177 0           $xfer += $output->writeStructBegin('TCLIService_GetTableTypes_args');
1178 0 0         if (defined $self->{req}) {
1179 0           $xfer += $output->writeFieldBegin('req', TType::STRUCT, 1);
1180 0           $xfer += $self->{req}->write($output);
1181 0           $xfer += $output->writeFieldEnd();
1182             }
1183 0           $xfer += $output->writeFieldStop();
1184 0           $xfer += $output->writeStructEnd();
1185 0           return $xfer;
1186             }
1187              
1188             package Thrift::API::HiveClient2::TCLIService_GetTableTypes_result;
1189             $Thrift::API::HiveClient2::TCLIService_GetTableTypes_result::VERSION = '0.023';
1190             {
1191             $Thrift::API::HiveClient2::TCLIService_GetTableTypes_result::DIST = 'Thrift-API-HiveClient2';
1192             }
1193 2     2   21 use base qw(Class::Accessor);
  2         4  
  2         891  
1194             Thrift::API::HiveClient2::TCLIService_GetTableTypes_result->mk_accessors( qw( success ) );
1195              
1196             sub new {
1197 0     0     my $classname = shift;
1198 0           my $self = {};
1199 0   0       my $vals = shift || {};
1200 0           $self->{success} = undef;
1201 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
1202 0 0         if (defined $vals->{success}) {
1203 0           $self->{success} = $vals->{success};
1204             }
1205             }
1206 0           return bless ($self, $classname);
1207             }
1208              
1209             sub getName {
1210 0     0     return 'TCLIService_GetTableTypes_result';
1211             }
1212              
1213             sub read {
1214 0     0     my ($self, $input) = @_;
1215 0           my $xfer = 0;
1216 0           my $fname;
1217 0           my $ftype = 0;
1218 0           my $fid = 0;
1219 0           $xfer += $input->readStructBegin(\$fname);
1220 0           while (1)
1221             {
1222 0           $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
1223 0 0         if ($ftype == TType::STOP) {
1224 0           last;
1225             }
1226 0           SWITCH: for($fid)
1227             {
1228 0 0         /^0$/ && do{ if ($ftype == TType::STRUCT) {
  0 0          
1229 0           $self->{success} = new Thrift::API::HiveClient2::TGetTableTypesResp();
1230 0           $xfer += $self->{success}->read($input);
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('TCLIService_GetTableTypes_result');
1247 0 0         if (defined $self->{success}) {
1248 0           $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
1249 0           $xfer += $self->{success}->write($output);
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::TCLIService_GetColumns_args;
1258             $Thrift::API::HiveClient2::TCLIService_GetColumns_args::VERSION = '0.023';
1259             {
1260             $Thrift::API::HiveClient2::TCLIService_GetColumns_args::DIST = 'Thrift-API-HiveClient2';
1261             }
1262 2     2   15 use base qw(Class::Accessor);
  2         3  
  2         827  
1263             Thrift::API::HiveClient2::TCLIService_GetColumns_args->mk_accessors( qw( req ) );
1264              
1265             sub new {
1266 0     0     my $classname = shift;
1267 0           my $self = {};
1268 0   0       my $vals = shift || {};
1269 0           $self->{req} = undef;
1270 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
1271 0 0         if (defined $vals->{req}) {
1272 0           $self->{req} = $vals->{req};
1273             }
1274             }
1275 0           return bless ($self, $classname);
1276             }
1277              
1278             sub getName {
1279 0     0     return 'TCLIService_GetColumns_args';
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::STRUCT) {
  0 0          
1298 0           $self->{req} = new Thrift::API::HiveClient2::TGetColumnsReq();
1299 0           $xfer += $self->{req}->read($input);
1300             } else {
1301 0           $xfer += $input->skip($ftype);
1302             }
1303 0           last; };
1304 0           $xfer += $input->skip($ftype);
1305             }
1306 0           $xfer += $input->readFieldEnd();
1307             }
1308 0           $xfer += $input->readStructEnd();
1309 0           return $xfer;
1310             }
1311              
1312             sub write {
1313 0     0     my ($self, $output) = @_;
1314 0           my $xfer = 0;
1315 0           $xfer += $output->writeStructBegin('TCLIService_GetColumns_args');
1316 0 0         if (defined $self->{req}) {
1317 0           $xfer += $output->writeFieldBegin('req', TType::STRUCT, 1);
1318 0           $xfer += $self->{req}->write($output);
1319 0           $xfer += $output->writeFieldEnd();
1320             }
1321 0           $xfer += $output->writeFieldStop();
1322 0           $xfer += $output->writeStructEnd();
1323 0           return $xfer;
1324             }
1325              
1326             package Thrift::API::HiveClient2::TCLIService_GetColumns_result;
1327             $Thrift::API::HiveClient2::TCLIService_GetColumns_result::VERSION = '0.023';
1328             {
1329             $Thrift::API::HiveClient2::TCLIService_GetColumns_result::DIST = 'Thrift-API-HiveClient2';
1330             }
1331 2     2   14 use base qw(Class::Accessor);
  2         4  
  2         867  
1332             Thrift::API::HiveClient2::TCLIService_GetColumns_result->mk_accessors( qw( success ) );
1333              
1334             sub new {
1335 0     0     my $classname = shift;
1336 0           my $self = {};
1337 0   0       my $vals = shift || {};
1338 0           $self->{success} = undef;
1339 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
1340 0 0         if (defined $vals->{success}) {
1341 0           $self->{success} = $vals->{success};
1342             }
1343             }
1344 0           return bless ($self, $classname);
1345             }
1346              
1347             sub getName {
1348 0     0     return 'TCLIService_GetColumns_result';
1349             }
1350              
1351             sub read {
1352 0     0     my ($self, $input) = @_;
1353 0           my $xfer = 0;
1354 0           my $fname;
1355 0           my $ftype = 0;
1356 0           my $fid = 0;
1357 0           $xfer += $input->readStructBegin(\$fname);
1358 0           while (1)
1359             {
1360 0           $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
1361 0 0         if ($ftype == TType::STOP) {
1362 0           last;
1363             }
1364 0           SWITCH: for($fid)
1365             {
1366 0 0         /^0$/ && do{ if ($ftype == TType::STRUCT) {
  0 0          
1367 0           $self->{success} = new Thrift::API::HiveClient2::TGetColumnsResp();
1368 0           $xfer += $self->{success}->read($input);
1369             } else {
1370 0           $xfer += $input->skip($ftype);
1371             }
1372 0           last; };
1373 0           $xfer += $input->skip($ftype);
1374             }
1375 0           $xfer += $input->readFieldEnd();
1376             }
1377 0           $xfer += $input->readStructEnd();
1378 0           return $xfer;
1379             }
1380              
1381             sub write {
1382 0     0     my ($self, $output) = @_;
1383 0           my $xfer = 0;
1384 0           $xfer += $output->writeStructBegin('TCLIService_GetColumns_result');
1385 0 0         if (defined $self->{success}) {
1386 0           $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
1387 0           $xfer += $self->{success}->write($output);
1388 0           $xfer += $output->writeFieldEnd();
1389             }
1390 0           $xfer += $output->writeFieldStop();
1391 0           $xfer += $output->writeStructEnd();
1392 0           return $xfer;
1393             }
1394              
1395             package Thrift::API::HiveClient2::TCLIService_GetFunctions_args;
1396             $Thrift::API::HiveClient2::TCLIService_GetFunctions_args::VERSION = '0.023';
1397             {
1398             $Thrift::API::HiveClient2::TCLIService_GetFunctions_args::DIST = 'Thrift-API-HiveClient2';
1399             }
1400 2     2   13 use base qw(Class::Accessor);
  2         4  
  2         825  
1401             Thrift::API::HiveClient2::TCLIService_GetFunctions_args->mk_accessors( qw( req ) );
1402              
1403             sub new {
1404 0     0     my $classname = shift;
1405 0           my $self = {};
1406 0   0       my $vals = shift || {};
1407 0           $self->{req} = undef;
1408 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
1409 0 0         if (defined $vals->{req}) {
1410 0           $self->{req} = $vals->{req};
1411             }
1412             }
1413 0           return bless ($self, $classname);
1414             }
1415              
1416             sub getName {
1417 0     0     return 'TCLIService_GetFunctions_args';
1418             }
1419              
1420             sub read {
1421 0     0     my ($self, $input) = @_;
1422 0           my $xfer = 0;
1423 0           my $fname;
1424 0           my $ftype = 0;
1425 0           my $fid = 0;
1426 0           $xfer += $input->readStructBegin(\$fname);
1427 0           while (1)
1428             {
1429 0           $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
1430 0 0         if ($ftype == TType::STOP) {
1431 0           last;
1432             }
1433 0           SWITCH: for($fid)
1434             {
1435 0 0         /^1$/ && do{ if ($ftype == TType::STRUCT) {
  0 0          
1436 0           $self->{req} = new Thrift::API::HiveClient2::TGetFunctionsReq();
1437 0           $xfer += $self->{req}->read($input);
1438             } else {
1439 0           $xfer += $input->skip($ftype);
1440             }
1441 0           last; };
1442 0           $xfer += $input->skip($ftype);
1443             }
1444 0           $xfer += $input->readFieldEnd();
1445             }
1446 0           $xfer += $input->readStructEnd();
1447 0           return $xfer;
1448             }
1449              
1450             sub write {
1451 0     0     my ($self, $output) = @_;
1452 0           my $xfer = 0;
1453 0           $xfer += $output->writeStructBegin('TCLIService_GetFunctions_args');
1454 0 0         if (defined $self->{req}) {
1455 0           $xfer += $output->writeFieldBegin('req', TType::STRUCT, 1);
1456 0           $xfer += $self->{req}->write($output);
1457 0           $xfer += $output->writeFieldEnd();
1458             }
1459 0           $xfer += $output->writeFieldStop();
1460 0           $xfer += $output->writeStructEnd();
1461 0           return $xfer;
1462             }
1463              
1464             package Thrift::API::HiveClient2::TCLIService_GetFunctions_result;
1465             $Thrift::API::HiveClient2::TCLIService_GetFunctions_result::VERSION = '0.023';
1466             {
1467             $Thrift::API::HiveClient2::TCLIService_GetFunctions_result::DIST = 'Thrift-API-HiveClient2';
1468             }
1469 2     2   13 use base qw(Class::Accessor);
  2         5  
  2         884  
1470             Thrift::API::HiveClient2::TCLIService_GetFunctions_result->mk_accessors( qw( success ) );
1471              
1472             sub new {
1473 0     0     my $classname = shift;
1474 0           my $self = {};
1475 0   0       my $vals = shift || {};
1476 0           $self->{success} = undef;
1477 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
1478 0 0         if (defined $vals->{success}) {
1479 0           $self->{success} = $vals->{success};
1480             }
1481             }
1482 0           return bless ($self, $classname);
1483             }
1484              
1485             sub getName {
1486 0     0     return 'TCLIService_GetFunctions_result';
1487             }
1488              
1489             sub read {
1490 0     0     my ($self, $input) = @_;
1491 0           my $xfer = 0;
1492 0           my $fname;
1493 0           my $ftype = 0;
1494 0           my $fid = 0;
1495 0           $xfer += $input->readStructBegin(\$fname);
1496 0           while (1)
1497             {
1498 0           $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
1499 0 0         if ($ftype == TType::STOP) {
1500 0           last;
1501             }
1502 0           SWITCH: for($fid)
1503             {
1504 0 0         /^0$/ && do{ if ($ftype == TType::STRUCT) {
  0 0          
1505 0           $self->{success} = new Thrift::API::HiveClient2::TGetFunctionsResp();
1506 0           $xfer += $self->{success}->read($input);
1507             } else {
1508 0           $xfer += $input->skip($ftype);
1509             }
1510 0           last; };
1511 0           $xfer += $input->skip($ftype);
1512             }
1513 0           $xfer += $input->readFieldEnd();
1514             }
1515 0           $xfer += $input->readStructEnd();
1516 0           return $xfer;
1517             }
1518              
1519             sub write {
1520 0     0     my ($self, $output) = @_;
1521 0           my $xfer = 0;
1522 0           $xfer += $output->writeStructBegin('TCLIService_GetFunctions_result');
1523 0 0         if (defined $self->{success}) {
1524 0           $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
1525 0           $xfer += $self->{success}->write($output);
1526 0           $xfer += $output->writeFieldEnd();
1527             }
1528 0           $xfer += $output->writeFieldStop();
1529 0           $xfer += $output->writeStructEnd();
1530 0           return $xfer;
1531             }
1532              
1533             package Thrift::API::HiveClient2::TCLIService_GetOperationStatus_args;
1534             $Thrift::API::HiveClient2::TCLIService_GetOperationStatus_args::VERSION = '0.023';
1535             {
1536             $Thrift::API::HiveClient2::TCLIService_GetOperationStatus_args::DIST = 'Thrift-API-HiveClient2';
1537             }
1538 2     2   16 use base qw(Class::Accessor);
  2         6  
  2         833  
1539             Thrift::API::HiveClient2::TCLIService_GetOperationStatus_args->mk_accessors( qw( req ) );
1540              
1541             sub new {
1542 0     0     my $classname = shift;
1543 0           my $self = {};
1544 0   0       my $vals = shift || {};
1545 0           $self->{req} = undef;
1546 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
1547 0 0         if (defined $vals->{req}) {
1548 0           $self->{req} = $vals->{req};
1549             }
1550             }
1551 0           return bless ($self, $classname);
1552             }
1553              
1554             sub getName {
1555 0     0     return 'TCLIService_GetOperationStatus_args';
1556             }
1557              
1558             sub read {
1559 0     0     my ($self, $input) = @_;
1560 0           my $xfer = 0;
1561 0           my $fname;
1562 0           my $ftype = 0;
1563 0           my $fid = 0;
1564 0           $xfer += $input->readStructBegin(\$fname);
1565 0           while (1)
1566             {
1567 0           $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
1568 0 0         if ($ftype == TType::STOP) {
1569 0           last;
1570             }
1571 0           SWITCH: for($fid)
1572             {
1573 0 0         /^1$/ && do{ if ($ftype == TType::STRUCT) {
  0 0          
1574 0           $self->{req} = new Thrift::API::HiveClient2::TGetOperationStatusReq();
1575 0           $xfer += $self->{req}->read($input);
1576             } else {
1577 0           $xfer += $input->skip($ftype);
1578             }
1579 0           last; };
1580 0           $xfer += $input->skip($ftype);
1581             }
1582 0           $xfer += $input->readFieldEnd();
1583             }
1584 0           $xfer += $input->readStructEnd();
1585 0           return $xfer;
1586             }
1587              
1588             sub write {
1589 0     0     my ($self, $output) = @_;
1590 0           my $xfer = 0;
1591 0           $xfer += $output->writeStructBegin('TCLIService_GetOperationStatus_args');
1592 0 0         if (defined $self->{req}) {
1593 0           $xfer += $output->writeFieldBegin('req', TType::STRUCT, 1);
1594 0           $xfer += $self->{req}->write($output);
1595 0           $xfer += $output->writeFieldEnd();
1596             }
1597 0           $xfer += $output->writeFieldStop();
1598 0           $xfer += $output->writeStructEnd();
1599 0           return $xfer;
1600             }
1601              
1602             package Thrift::API::HiveClient2::TCLIService_GetOperationStatus_result;
1603             $Thrift::API::HiveClient2::TCLIService_GetOperationStatus_result::VERSION = '0.023';
1604             {
1605             $Thrift::API::HiveClient2::TCLIService_GetOperationStatus_result::DIST = 'Thrift-API-HiveClient2';
1606             }
1607 2     2   14 use base qw(Class::Accessor);
  2         4  
  2         795  
1608             Thrift::API::HiveClient2::TCLIService_GetOperationStatus_result->mk_accessors( qw( success ) );
1609              
1610             sub new {
1611 0     0     my $classname = shift;
1612 0           my $self = {};
1613 0   0       my $vals = shift || {};
1614 0           $self->{success} = undef;
1615 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
1616 0 0         if (defined $vals->{success}) {
1617 0           $self->{success} = $vals->{success};
1618             }
1619             }
1620 0           return bless ($self, $classname);
1621             }
1622              
1623             sub getName {
1624 0     0     return 'TCLIService_GetOperationStatus_result';
1625             }
1626              
1627             sub read {
1628 0     0     my ($self, $input) = @_;
1629 0           my $xfer = 0;
1630 0           my $fname;
1631 0           my $ftype = 0;
1632 0           my $fid = 0;
1633 0           $xfer += $input->readStructBegin(\$fname);
1634 0           while (1)
1635             {
1636 0           $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
1637 0 0         if ($ftype == TType::STOP) {
1638 0           last;
1639             }
1640 0           SWITCH: for($fid)
1641             {
1642 0 0         /^0$/ && do{ if ($ftype == TType::STRUCT) {
  0 0          
1643 0           $self->{success} = new Thrift::API::HiveClient2::TGetOperationStatusResp();
1644 0           $xfer += $self->{success}->read($input);
1645             } else {
1646 0           $xfer += $input->skip($ftype);
1647             }
1648 0           last; };
1649 0           $xfer += $input->skip($ftype);
1650             }
1651 0           $xfer += $input->readFieldEnd();
1652             }
1653 0           $xfer += $input->readStructEnd();
1654 0           return $xfer;
1655             }
1656              
1657             sub write {
1658 0     0     my ($self, $output) = @_;
1659 0           my $xfer = 0;
1660 0           $xfer += $output->writeStructBegin('TCLIService_GetOperationStatus_result');
1661 0 0         if (defined $self->{success}) {
1662 0           $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
1663 0           $xfer += $self->{success}->write($output);
1664 0           $xfer += $output->writeFieldEnd();
1665             }
1666 0           $xfer += $output->writeFieldStop();
1667 0           $xfer += $output->writeStructEnd();
1668 0           return $xfer;
1669             }
1670              
1671             package Thrift::API::HiveClient2::TCLIService_CancelOperation_args;
1672             $Thrift::API::HiveClient2::TCLIService_CancelOperation_args::VERSION = '0.023';
1673             {
1674             $Thrift::API::HiveClient2::TCLIService_CancelOperation_args::DIST = 'Thrift-API-HiveClient2';
1675             }
1676 2     2   12 use base qw(Class::Accessor);
  2         10  
  2         842  
1677             Thrift::API::HiveClient2::TCLIService_CancelOperation_args->mk_accessors( qw( req ) );
1678              
1679             sub new {
1680 0     0     my $classname = shift;
1681 0           my $self = {};
1682 0   0       my $vals = shift || {};
1683 0           $self->{req} = undef;
1684 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
1685 0 0         if (defined $vals->{req}) {
1686 0           $self->{req} = $vals->{req};
1687             }
1688             }
1689 0           return bless ($self, $classname);
1690             }
1691              
1692             sub getName {
1693 0     0     return 'TCLIService_CancelOperation_args';
1694             }
1695              
1696             sub read {
1697 0     0     my ($self, $input) = @_;
1698 0           my $xfer = 0;
1699 0           my $fname;
1700 0           my $ftype = 0;
1701 0           my $fid = 0;
1702 0           $xfer += $input->readStructBegin(\$fname);
1703 0           while (1)
1704             {
1705 0           $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
1706 0 0         if ($ftype == TType::STOP) {
1707 0           last;
1708             }
1709 0           SWITCH: for($fid)
1710             {
1711 0 0         /^1$/ && do{ if ($ftype == TType::STRUCT) {
  0 0          
1712 0           $self->{req} = new Thrift::API::HiveClient2::TCancelOperationReq();
1713 0           $xfer += $self->{req}->read($input);
1714             } else {
1715 0           $xfer += $input->skip($ftype);
1716             }
1717 0           last; };
1718 0           $xfer += $input->skip($ftype);
1719             }
1720 0           $xfer += $input->readFieldEnd();
1721             }
1722 0           $xfer += $input->readStructEnd();
1723 0           return $xfer;
1724             }
1725              
1726             sub write {
1727 0     0     my ($self, $output) = @_;
1728 0           my $xfer = 0;
1729 0           $xfer += $output->writeStructBegin('TCLIService_CancelOperation_args');
1730 0 0         if (defined $self->{req}) {
1731 0           $xfer += $output->writeFieldBegin('req', TType::STRUCT, 1);
1732 0           $xfer += $self->{req}->write($output);
1733 0           $xfer += $output->writeFieldEnd();
1734             }
1735 0           $xfer += $output->writeFieldStop();
1736 0           $xfer += $output->writeStructEnd();
1737 0           return $xfer;
1738             }
1739              
1740             package Thrift::API::HiveClient2::TCLIService_CancelOperation_result;
1741             $Thrift::API::HiveClient2::TCLIService_CancelOperation_result::VERSION = '0.023';
1742             {
1743             $Thrift::API::HiveClient2::TCLIService_CancelOperation_result::DIST = 'Thrift-API-HiveClient2';
1744             }
1745 2     2   14 use base qw(Class::Accessor);
  2         4  
  2         839  
1746             Thrift::API::HiveClient2::TCLIService_CancelOperation_result->mk_accessors( qw( success ) );
1747              
1748             sub new {
1749 0     0     my $classname = shift;
1750 0           my $self = {};
1751 0   0       my $vals = shift || {};
1752 0           $self->{success} = undef;
1753 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
1754 0 0         if (defined $vals->{success}) {
1755 0           $self->{success} = $vals->{success};
1756             }
1757             }
1758 0           return bless ($self, $classname);
1759             }
1760              
1761             sub getName {
1762 0     0     return 'TCLIService_CancelOperation_result';
1763             }
1764              
1765             sub read {
1766 0     0     my ($self, $input) = @_;
1767 0           my $xfer = 0;
1768 0           my $fname;
1769 0           my $ftype = 0;
1770 0           my $fid = 0;
1771 0           $xfer += $input->readStructBegin(\$fname);
1772 0           while (1)
1773             {
1774 0           $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
1775 0 0         if ($ftype == TType::STOP) {
1776 0           last;
1777             }
1778 0           SWITCH: for($fid)
1779             {
1780 0 0         /^0$/ && do{ if ($ftype == TType::STRUCT) {
  0 0          
1781 0           $self->{success} = new Thrift::API::HiveClient2::TCancelOperationResp();
1782 0           $xfer += $self->{success}->read($input);
1783             } else {
1784 0           $xfer += $input->skip($ftype);
1785             }
1786 0           last; };
1787 0           $xfer += $input->skip($ftype);
1788             }
1789 0           $xfer += $input->readFieldEnd();
1790             }
1791 0           $xfer += $input->readStructEnd();
1792 0           return $xfer;
1793             }
1794              
1795             sub write {
1796 0     0     my ($self, $output) = @_;
1797 0           my $xfer = 0;
1798 0           $xfer += $output->writeStructBegin('TCLIService_CancelOperation_result');
1799 0 0         if (defined $self->{success}) {
1800 0           $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
1801 0           $xfer += $self->{success}->write($output);
1802 0           $xfer += $output->writeFieldEnd();
1803             }
1804 0           $xfer += $output->writeFieldStop();
1805 0           $xfer += $output->writeStructEnd();
1806 0           return $xfer;
1807             }
1808              
1809             package Thrift::API::HiveClient2::TCLIService_CloseOperation_args;
1810             $Thrift::API::HiveClient2::TCLIService_CloseOperation_args::VERSION = '0.023';
1811             {
1812             $Thrift::API::HiveClient2::TCLIService_CloseOperation_args::DIST = 'Thrift-API-HiveClient2';
1813             }
1814 2     2   14 use base qw(Class::Accessor);
  2         3  
  2         868  
1815             Thrift::API::HiveClient2::TCLIService_CloseOperation_args->mk_accessors( qw( req ) );
1816              
1817             sub new {
1818 0     0     my $classname = shift;
1819 0           my $self = {};
1820 0   0       my $vals = shift || {};
1821 0           $self->{req} = undef;
1822 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
1823 0 0         if (defined $vals->{req}) {
1824 0           $self->{req} = $vals->{req};
1825             }
1826             }
1827 0           return bless ($self, $classname);
1828             }
1829              
1830             sub getName {
1831 0     0     return 'TCLIService_CloseOperation_args';
1832             }
1833              
1834             sub read {
1835 0     0     my ($self, $input) = @_;
1836 0           my $xfer = 0;
1837 0           my $fname;
1838 0           my $ftype = 0;
1839 0           my $fid = 0;
1840 0           $xfer += $input->readStructBegin(\$fname);
1841 0           while (1)
1842             {
1843 0           $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
1844 0 0         if ($ftype == TType::STOP) {
1845 0           last;
1846             }
1847 0           SWITCH: for($fid)
1848             {
1849 0 0         /^1$/ && do{ if ($ftype == TType::STRUCT) {
  0 0          
1850 0           $self->{req} = new Thrift::API::HiveClient2::TCloseOperationReq();
1851 0           $xfer += $self->{req}->read($input);
1852             } else {
1853 0           $xfer += $input->skip($ftype);
1854             }
1855 0           last; };
1856 0           $xfer += $input->skip($ftype);
1857             }
1858 0           $xfer += $input->readFieldEnd();
1859             }
1860 0           $xfer += $input->readStructEnd();
1861 0           return $xfer;
1862             }
1863              
1864             sub write {
1865 0     0     my ($self, $output) = @_;
1866 0           my $xfer = 0;
1867 0           $xfer += $output->writeStructBegin('TCLIService_CloseOperation_args');
1868 0 0         if (defined $self->{req}) {
1869 0           $xfer += $output->writeFieldBegin('req', TType::STRUCT, 1);
1870 0           $xfer += $self->{req}->write($output);
1871 0           $xfer += $output->writeFieldEnd();
1872             }
1873 0           $xfer += $output->writeFieldStop();
1874 0           $xfer += $output->writeStructEnd();
1875 0           return $xfer;
1876             }
1877              
1878             package Thrift::API::HiveClient2::TCLIService_CloseOperation_result;
1879             $Thrift::API::HiveClient2::TCLIService_CloseOperation_result::VERSION = '0.023';
1880             {
1881             $Thrift::API::HiveClient2::TCLIService_CloseOperation_result::DIST = 'Thrift-API-HiveClient2';
1882             }
1883 2     2   14 use base qw(Class::Accessor);
  2         11  
  2         821  
1884             Thrift::API::HiveClient2::TCLIService_CloseOperation_result->mk_accessors( qw( success ) );
1885              
1886             sub new {
1887 0     0     my $classname = shift;
1888 0           my $self = {};
1889 0   0       my $vals = shift || {};
1890 0           $self->{success} = undef;
1891 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
1892 0 0         if (defined $vals->{success}) {
1893 0           $self->{success} = $vals->{success};
1894             }
1895             }
1896 0           return bless ($self, $classname);
1897             }
1898              
1899             sub getName {
1900 0     0     return 'TCLIService_CloseOperation_result';
1901             }
1902              
1903             sub read {
1904 0     0     my ($self, $input) = @_;
1905 0           my $xfer = 0;
1906 0           my $fname;
1907 0           my $ftype = 0;
1908 0           my $fid = 0;
1909 0           $xfer += $input->readStructBegin(\$fname);
1910 0           while (1)
1911             {
1912 0           $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
1913 0 0         if ($ftype == TType::STOP) {
1914 0           last;
1915             }
1916 0           SWITCH: for($fid)
1917             {
1918 0 0         /^0$/ && do{ if ($ftype == TType::STRUCT) {
  0 0          
1919 0           $self->{success} = new Thrift::API::HiveClient2::TCloseOperationResp();
1920 0           $xfer += $self->{success}->read($input);
1921             } else {
1922 0           $xfer += $input->skip($ftype);
1923             }
1924 0           last; };
1925 0           $xfer += $input->skip($ftype);
1926             }
1927 0           $xfer += $input->readFieldEnd();
1928             }
1929 0           $xfer += $input->readStructEnd();
1930 0           return $xfer;
1931             }
1932              
1933             sub write {
1934 0     0     my ($self, $output) = @_;
1935 0           my $xfer = 0;
1936 0           $xfer += $output->writeStructBegin('TCLIService_CloseOperation_result');
1937 0 0         if (defined $self->{success}) {
1938 0           $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
1939 0           $xfer += $self->{success}->write($output);
1940 0           $xfer += $output->writeFieldEnd();
1941             }
1942 0           $xfer += $output->writeFieldStop();
1943 0           $xfer += $output->writeStructEnd();
1944 0           return $xfer;
1945             }
1946              
1947             package Thrift::API::HiveClient2::TCLIService_GetResultSetMetadata_args;
1948             $Thrift::API::HiveClient2::TCLIService_GetResultSetMetadata_args::VERSION = '0.023';
1949             {
1950             $Thrift::API::HiveClient2::TCLIService_GetResultSetMetadata_args::DIST = 'Thrift-API-HiveClient2';
1951             }
1952 2     2   13 use base qw(Class::Accessor);
  2         5  
  2         814  
1953             Thrift::API::HiveClient2::TCLIService_GetResultSetMetadata_args->mk_accessors( qw( req ) );
1954              
1955             sub new {
1956 0     0     my $classname = shift;
1957 0           my $self = {};
1958 0   0       my $vals = shift || {};
1959 0           $self->{req} = undef;
1960 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
1961 0 0         if (defined $vals->{req}) {
1962 0           $self->{req} = $vals->{req};
1963             }
1964             }
1965 0           return bless ($self, $classname);
1966             }
1967              
1968             sub getName {
1969 0     0     return 'TCLIService_GetResultSetMetadata_args';
1970             }
1971              
1972             sub read {
1973 0     0     my ($self, $input) = @_;
1974 0           my $xfer = 0;
1975 0           my $fname;
1976 0           my $ftype = 0;
1977 0           my $fid = 0;
1978 0           $xfer += $input->readStructBegin(\$fname);
1979 0           while (1)
1980             {
1981 0           $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
1982 0 0         if ($ftype == TType::STOP) {
1983 0           last;
1984             }
1985 0           SWITCH: for($fid)
1986             {
1987 0 0         /^1$/ && do{ if ($ftype == TType::STRUCT) {
  0 0          
1988 0           $self->{req} = new Thrift::API::HiveClient2::TGetResultSetMetadataReq();
1989 0           $xfer += $self->{req}->read($input);
1990             } else {
1991 0           $xfer += $input->skip($ftype);
1992             }
1993 0           last; };
1994 0           $xfer += $input->skip($ftype);
1995             }
1996 0           $xfer += $input->readFieldEnd();
1997             }
1998 0           $xfer += $input->readStructEnd();
1999 0           return $xfer;
2000             }
2001              
2002             sub write {
2003 0     0     my ($self, $output) = @_;
2004 0           my $xfer = 0;
2005 0           $xfer += $output->writeStructBegin('TCLIService_GetResultSetMetadata_args');
2006 0 0         if (defined $self->{req}) {
2007 0           $xfer += $output->writeFieldBegin('req', TType::STRUCT, 1);
2008 0           $xfer += $self->{req}->write($output);
2009 0           $xfer += $output->writeFieldEnd();
2010             }
2011 0           $xfer += $output->writeFieldStop();
2012 0           $xfer += $output->writeStructEnd();
2013 0           return $xfer;
2014             }
2015              
2016             package Thrift::API::HiveClient2::TCLIService_GetResultSetMetadata_result;
2017             $Thrift::API::HiveClient2::TCLIService_GetResultSetMetadata_result::VERSION = '0.023';
2018             {
2019             $Thrift::API::HiveClient2::TCLIService_GetResultSetMetadata_result::DIST = 'Thrift-API-HiveClient2';
2020             }
2021 2     2   13 use base qw(Class::Accessor);
  2         4  
  2         929  
2022             Thrift::API::HiveClient2::TCLIService_GetResultSetMetadata_result->mk_accessors( qw( success ) );
2023              
2024             sub new {
2025 0     0     my $classname = shift;
2026 0           my $self = {};
2027 0   0       my $vals = shift || {};
2028 0           $self->{success} = undef;
2029 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
2030 0 0         if (defined $vals->{success}) {
2031 0           $self->{success} = $vals->{success};
2032             }
2033             }
2034 0           return bless ($self, $classname);
2035             }
2036              
2037             sub getName {
2038 0     0     return 'TCLIService_GetResultSetMetadata_result';
2039             }
2040              
2041             sub read {
2042 0     0     my ($self, $input) = @_;
2043 0           my $xfer = 0;
2044 0           my $fname;
2045 0           my $ftype = 0;
2046 0           my $fid = 0;
2047 0           $xfer += $input->readStructBegin(\$fname);
2048 0           while (1)
2049             {
2050 0           $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
2051 0 0         if ($ftype == TType::STOP) {
2052 0           last;
2053             }
2054 0           SWITCH: for($fid)
2055             {
2056 0 0         /^0$/ && do{ if ($ftype == TType::STRUCT) {
  0 0          
2057 0           $self->{success} = new Thrift::API::HiveClient2::TGetResultSetMetadataResp();
2058 0           $xfer += $self->{success}->read($input);
2059             } else {
2060 0           $xfer += $input->skip($ftype);
2061             }
2062 0           last; };
2063 0           $xfer += $input->skip($ftype);
2064             }
2065 0           $xfer += $input->readFieldEnd();
2066             }
2067 0           $xfer += $input->readStructEnd();
2068 0           return $xfer;
2069             }
2070              
2071             sub write {
2072 0     0     my ($self, $output) = @_;
2073 0           my $xfer = 0;
2074 0           $xfer += $output->writeStructBegin('TCLIService_GetResultSetMetadata_result');
2075 0 0         if (defined $self->{success}) {
2076 0           $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
2077 0           $xfer += $self->{success}->write($output);
2078 0           $xfer += $output->writeFieldEnd();
2079             }
2080 0           $xfer += $output->writeFieldStop();
2081 0           $xfer += $output->writeStructEnd();
2082 0           return $xfer;
2083             }
2084              
2085             package Thrift::API::HiveClient2::TCLIService_FetchResults_args;
2086             $Thrift::API::HiveClient2::TCLIService_FetchResults_args::VERSION = '0.023';
2087             {
2088             $Thrift::API::HiveClient2::TCLIService_FetchResults_args::DIST = 'Thrift-API-HiveClient2';
2089             }
2090 2     2   13 use base qw(Class::Accessor);
  2         14  
  2         807  
2091             Thrift::API::HiveClient2::TCLIService_FetchResults_args->mk_accessors( qw( req ) );
2092              
2093             sub new {
2094 0     0     my $classname = shift;
2095 0           my $self = {};
2096 0   0       my $vals = shift || {};
2097 0           $self->{req} = undef;
2098 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
2099 0 0         if (defined $vals->{req}) {
2100 0           $self->{req} = $vals->{req};
2101             }
2102             }
2103 0           return bless ($self, $classname);
2104             }
2105              
2106             sub getName {
2107 0     0     return 'TCLIService_FetchResults_args';
2108             }
2109              
2110             sub read {
2111 0     0     my ($self, $input) = @_;
2112 0           my $xfer = 0;
2113 0           my $fname;
2114 0           my $ftype = 0;
2115 0           my $fid = 0;
2116 0           $xfer += $input->readStructBegin(\$fname);
2117 0           while (1)
2118             {
2119 0           $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
2120 0 0         if ($ftype == TType::STOP) {
2121 0           last;
2122             }
2123 0           SWITCH: for($fid)
2124             {
2125 0 0         /^1$/ && do{ if ($ftype == TType::STRUCT) {
  0 0          
2126 0           $self->{req} = new Thrift::API::HiveClient2::TFetchResultsReq();
2127 0           $xfer += $self->{req}->read($input);
2128             } else {
2129 0           $xfer += $input->skip($ftype);
2130             }
2131 0           last; };
2132 0           $xfer += $input->skip($ftype);
2133             }
2134 0           $xfer += $input->readFieldEnd();
2135             }
2136 0           $xfer += $input->readStructEnd();
2137 0           return $xfer;
2138             }
2139              
2140             sub write {
2141 0     0     my ($self, $output) = @_;
2142 0           my $xfer = 0;
2143 0           $xfer += $output->writeStructBegin('TCLIService_FetchResults_args');
2144 0 0         if (defined $self->{req}) {
2145 0           $xfer += $output->writeFieldBegin('req', TType::STRUCT, 1);
2146 0           $xfer += $self->{req}->write($output);
2147 0           $xfer += $output->writeFieldEnd();
2148             }
2149 0           $xfer += $output->writeFieldStop();
2150 0           $xfer += $output->writeStructEnd();
2151 0           return $xfer;
2152             }
2153              
2154             package Thrift::API::HiveClient2::TCLIService_FetchResults_result;
2155             $Thrift::API::HiveClient2::TCLIService_FetchResults_result::VERSION = '0.023';
2156             {
2157             $Thrift::API::HiveClient2::TCLIService_FetchResults_result::DIST = 'Thrift-API-HiveClient2';
2158             }
2159 2     2   14 use base qw(Class::Accessor);
  2         5  
  2         945  
2160             Thrift::API::HiveClient2::TCLIService_FetchResults_result->mk_accessors( qw( success ) );
2161              
2162             sub new {
2163 0     0     my $classname = shift;
2164 0           my $self = {};
2165 0   0       my $vals = shift || {};
2166 0           $self->{success} = undef;
2167 0 0         if (UNIVERSAL::isa($vals,'HASH')) {
2168 0 0         if (defined $vals->{success}) {
2169 0           $self->{success} = $vals->{success};
2170             }
2171             }
2172 0           return bless ($self, $classname);
2173             }
2174              
2175             sub getName {
2176 0     0     return 'TCLIService_FetchResults_result';
2177             }
2178              
2179             sub read {
2180 0     0     my ($self, $input) = @_;
2181 0           my $xfer = 0;
2182 0           my $fname;
2183 0           my $ftype = 0;
2184 0           my $fid = 0;
2185 0           $xfer += $input->readStructBegin(\$fname);
2186 0           while (1)
2187             {
2188 0           $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
2189 0 0         if ($ftype == TType::STOP) {
2190 0           last;
2191             }
2192 0           SWITCH: for($fid)
2193             {
2194 0 0         /^0$/ && do{ if ($ftype == TType::STRUCT) {
  0 0          
2195 0           $self->{success} = new Thrift::API::HiveClient2::TFetchResultsResp();
2196 0           $xfer += $self->{success}->read($input);
2197             } else {
2198 0           $xfer += $input->skip($ftype);
2199             }
2200 0           last; };
2201 0           $xfer += $input->skip($ftype);
2202             }
2203 0           $xfer += $input->readFieldEnd();
2204             }
2205 0           $xfer += $input->readStructEnd();
2206 0           return $xfer;
2207             }
2208              
2209             sub write {
2210 0     0     my ($self, $output) = @_;
2211 0           my $xfer = 0;
2212 0           $xfer += $output->writeStructBegin('TCLIService_FetchResults_result');
2213 0 0         if (defined $self->{success}) {
2214 0           $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
2215 0           $xfer += $self->{success}->write($output);
2216 0           $xfer += $output->writeFieldEnd();
2217             }
2218 0           $xfer += $output->writeFieldStop();
2219 0           $xfer += $output->writeStructEnd();
2220 0           return $xfer;
2221             }
2222              
2223             package Thrift::API::HiveClient2::TCLIServiceIf;
2224             $Thrift::API::HiveClient2::TCLIServiceIf::VERSION = '0.023';
2225             {
2226             $Thrift::API::HiveClient2::TCLIServiceIf::DIST = 'Thrift-API-HiveClient2';
2227             }
2228              
2229 2     2   14 use strict;
  2         5  
  2         769  
2230              
2231              
2232             sub OpenSession{
2233 0     0     my $self = shift;
2234 0           my $req = shift;
2235              
2236 0           die 'implement interface';
2237             }
2238              
2239             sub CloseSession{
2240 0     0     my $self = shift;
2241 0           my $req = shift;
2242              
2243 0           die 'implement interface';
2244             }
2245              
2246             sub GetInfo{
2247 0     0     my $self = shift;
2248 0           my $req = shift;
2249              
2250 0           die 'implement interface';
2251             }
2252              
2253             sub ExecuteStatement{
2254 0     0     my $self = shift;
2255 0           my $req = shift;
2256              
2257 0           die 'implement interface';
2258             }
2259              
2260             sub GetTypeInfo{
2261 0     0     my $self = shift;
2262 0           my $req = shift;
2263              
2264 0           die 'implement interface';
2265             }
2266              
2267             sub GetCatalogs{
2268 0     0     my $self = shift;
2269 0           my $req = shift;
2270              
2271 0           die 'implement interface';
2272             }
2273              
2274             sub GetSchemas{
2275 0     0     my $self = shift;
2276 0           my $req = shift;
2277              
2278 0           die 'implement interface';
2279             }
2280              
2281             sub GetTables{
2282 0     0     my $self = shift;
2283 0           my $req = shift;
2284              
2285 0           die 'implement interface';
2286             }
2287              
2288             sub GetTableTypes{
2289 0     0     my $self = shift;
2290 0           my $req = shift;
2291              
2292 0           die 'implement interface';
2293             }
2294              
2295             sub GetColumns{
2296 0     0     my $self = shift;
2297 0           my $req = shift;
2298              
2299 0           die 'implement interface';
2300             }
2301              
2302             sub GetFunctions{
2303 0     0     my $self = shift;
2304 0           my $req = shift;
2305              
2306 0           die 'implement interface';
2307             }
2308              
2309             sub GetOperationStatus{
2310 0     0     my $self = shift;
2311 0           my $req = shift;
2312              
2313 0           die 'implement interface';
2314             }
2315              
2316             sub CancelOperation{
2317 0     0     my $self = shift;
2318 0           my $req = shift;
2319              
2320 0           die 'implement interface';
2321             }
2322              
2323             sub CloseOperation{
2324 0     0     my $self = shift;
2325 0           my $req = shift;
2326              
2327 0           die 'implement interface';
2328             }
2329              
2330             sub GetResultSetMetadata{
2331 0     0     my $self = shift;
2332 0           my $req = shift;
2333              
2334 0           die 'implement interface';
2335             }
2336              
2337             sub FetchResults{
2338 0     0     my $self = shift;
2339 0           my $req = shift;
2340              
2341 0           die 'implement interface';
2342             }
2343              
2344             package Thrift::API::HiveClient2::TCLIServiceRest;
2345             $Thrift::API::HiveClient2::TCLIServiceRest::VERSION = '0.023';
2346             {
2347             $Thrift::API::HiveClient2::TCLIServiceRest::DIST = 'Thrift-API-HiveClient2';
2348             }
2349              
2350 2     2   25 use strict;
  2         5  
  2         1477  
2351              
2352              
2353             sub new {
2354 0     0     my ($classname, $impl) = @_;
2355 0           my $self ={ impl => $impl };
2356              
2357 0           return bless($self,$classname);
2358             }
2359              
2360             sub OpenSession{
2361 0     0     my ($self, $request) = @_;
2362              
2363 0 0         my $req = ($request->{'req'}) ? $request->{'req'} : undef;
2364 0           return $self->{impl}->OpenSession($req);
2365             }
2366              
2367             sub CloseSession{
2368 0     0     my ($self, $request) = @_;
2369              
2370 0 0         my $req = ($request->{'req'}) ? $request->{'req'} : undef;
2371 0           return $self->{impl}->CloseSession($req);
2372             }
2373              
2374             sub GetInfo{
2375 0     0     my ($self, $request) = @_;
2376              
2377 0 0         my $req = ($request->{'req'}) ? $request->{'req'} : undef;
2378 0           return $self->{impl}->GetInfo($req);
2379             }
2380              
2381             sub ExecuteStatement{
2382 0     0     my ($self, $request) = @_;
2383              
2384 0 0         my $req = ($request->{'req'}) ? $request->{'req'} : undef;
2385 0           return $self->{impl}->ExecuteStatement($req);
2386             }
2387              
2388             sub GetTypeInfo{
2389 0     0     my ($self, $request) = @_;
2390              
2391 0 0         my $req = ($request->{'req'}) ? $request->{'req'} : undef;
2392 0           return $self->{impl}->GetTypeInfo($req);
2393             }
2394              
2395             sub GetCatalogs{
2396 0     0     my ($self, $request) = @_;
2397              
2398 0 0         my $req = ($request->{'req'}) ? $request->{'req'} : undef;
2399 0           return $self->{impl}->GetCatalogs($req);
2400             }
2401              
2402             sub GetSchemas{
2403 0     0     my ($self, $request) = @_;
2404              
2405 0 0         my $req = ($request->{'req'}) ? $request->{'req'} : undef;
2406 0           return $self->{impl}->GetSchemas($req);
2407             }
2408              
2409             sub GetTables{
2410 0     0     my ($self, $request) = @_;
2411              
2412 0 0         my $req = ($request->{'req'}) ? $request->{'req'} : undef;
2413 0           return $self->{impl}->GetTables($req);
2414             }
2415              
2416             sub GetTableTypes{
2417 0     0     my ($self, $request) = @_;
2418              
2419 0 0         my $req = ($request->{'req'}) ? $request->{'req'} : undef;
2420 0           return $self->{impl}->GetTableTypes($req);
2421             }
2422              
2423             sub GetColumns{
2424 0     0     my ($self, $request) = @_;
2425              
2426 0 0         my $req = ($request->{'req'}) ? $request->{'req'} : undef;
2427 0           return $self->{impl}->GetColumns($req);
2428             }
2429              
2430             sub GetFunctions{
2431 0     0     my ($self, $request) = @_;
2432              
2433 0 0         my $req = ($request->{'req'}) ? $request->{'req'} : undef;
2434 0           return $self->{impl}->GetFunctions($req);
2435             }
2436              
2437             sub GetOperationStatus{
2438 0     0     my ($self, $request) = @_;
2439              
2440 0 0         my $req = ($request->{'req'}) ? $request->{'req'} : undef;
2441 0           return $self->{impl}->GetOperationStatus($req);
2442             }
2443              
2444             sub CancelOperation{
2445 0     0     my ($self, $request) = @_;
2446              
2447 0 0         my $req = ($request->{'req'}) ? $request->{'req'} : undef;
2448 0           return $self->{impl}->CancelOperation($req);
2449             }
2450              
2451             sub CloseOperation{
2452 0     0     my ($self, $request) = @_;
2453              
2454 0 0         my $req = ($request->{'req'}) ? $request->{'req'} : undef;
2455 0           return $self->{impl}->CloseOperation($req);
2456             }
2457              
2458             sub GetResultSetMetadata{
2459 0     0     my ($self, $request) = @_;
2460              
2461 0 0         my $req = ($request->{'req'}) ? $request->{'req'} : undef;
2462 0           return $self->{impl}->GetResultSetMetadata($req);
2463             }
2464              
2465             sub FetchResults{
2466 0     0     my ($self, $request) = @_;
2467              
2468 0 0         my $req = ($request->{'req'}) ? $request->{'req'} : undef;
2469 0           return $self->{impl}->FetchResults($req);
2470             }
2471              
2472             package Thrift::API::HiveClient2::TCLIServiceClient;
2473             $Thrift::API::HiveClient2::TCLIServiceClient::VERSION = '0.023';
2474             {
2475             $Thrift::API::HiveClient2::TCLIServiceClient::DIST = 'Thrift-API-HiveClient2';
2476             }
2477              
2478              
2479 2     2   13 use base qw(Thrift::API::HiveClient2::TCLIServiceIf);
  2         11  
  2         8013  
2480             sub new {
2481 0     0     my ($classname, $input, $output) = @_;
2482 0           my $self = {};
2483 0           $self->{input} = $input;
2484 0 0         $self->{output} = defined $output ? $output : $input;
2485 0           $self->{seqid} = 0;
2486 0           return bless($self,$classname);
2487             }
2488              
2489             sub OpenSession{
2490 0     0     my $self = shift;
2491 0           my $req = shift;
2492              
2493 0           $self->send_OpenSession($req);
2494 0           return $self->recv_OpenSession();
2495             }
2496              
2497             sub send_OpenSession{
2498 0     0     my $self = shift;
2499 0           my $req = shift;
2500              
2501 0           $self->{output}->writeMessageBegin('OpenSession', TMessageType::CALL, $self->{seqid});
2502 0           my $args = new Thrift::API::HiveClient2::TCLIService_OpenSession_args();
2503 0           $args->{req} = $req;
2504 0           $args->write($self->{output});
2505 0           $self->{output}->writeMessageEnd();
2506 0           $self->{output}->getTransport()->flush();
2507             }
2508              
2509             sub recv_OpenSession{
2510 0     0     my $self = shift;
2511              
2512 0           my $rseqid = 0;
2513 0           my $fname;
2514 0           my $mtype = 0;
2515              
2516 0           $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid);
2517 0 0         if ($mtype == TMessageType::EXCEPTION) {
2518 0           my $x = new TApplicationException();
2519 0           $x->read($self->{input});
2520 0           $self->{input}->readMessageEnd();
2521 0           die $x;
2522             }
2523 0           my $result = new Thrift::API::HiveClient2::TCLIService_OpenSession_result();
2524 0           $result->read($self->{input});
2525 0           $self->{input}->readMessageEnd();
2526              
2527 0 0         if (defined $result->{success} ) {
2528 0           return $result->{success};
2529             }
2530 0           die "OpenSession failed: unknown result";
2531             }
2532             sub CloseSession{
2533 0     0     my $self = shift;
2534 0           my $req = shift;
2535              
2536 0           $self->send_CloseSession($req);
2537 0           return $self->recv_CloseSession();
2538             }
2539              
2540             sub send_CloseSession{
2541 0     0     my $self = shift;
2542 0           my $req = shift;
2543              
2544 0           $self->{output}->writeMessageBegin('CloseSession', TMessageType::CALL, $self->{seqid});
2545 0           my $args = new Thrift::API::HiveClient2::TCLIService_CloseSession_args();
2546 0           $args->{req} = $req;
2547 0           $args->write($self->{output});
2548 0           $self->{output}->writeMessageEnd();
2549 0           $self->{output}->getTransport()->flush();
2550             }
2551              
2552             sub recv_CloseSession{
2553 0     0     my $self = shift;
2554              
2555 0           my $rseqid = 0;
2556 0           my $fname;
2557 0           my $mtype = 0;
2558              
2559 0           $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid);
2560 0 0         if ($mtype == TMessageType::EXCEPTION) {
2561 0           my $x = new TApplicationException();
2562 0           $x->read($self->{input});
2563 0           $self->{input}->readMessageEnd();
2564 0           die $x;
2565             }
2566 0           my $result = new Thrift::API::HiveClient2::TCLIService_CloseSession_result();
2567 0           $result->read($self->{input});
2568 0           $self->{input}->readMessageEnd();
2569              
2570 0 0         if (defined $result->{success} ) {
2571 0           return $result->{success};
2572             }
2573 0           die "CloseSession failed: unknown result";
2574             }
2575             sub GetInfo{
2576 0     0     my $self = shift;
2577 0           my $req = shift;
2578              
2579 0           $self->send_GetInfo($req);
2580 0           return $self->recv_GetInfo();
2581             }
2582              
2583             sub send_GetInfo{
2584 0     0     my $self = shift;
2585 0           my $req = shift;
2586              
2587 0           $self->{output}->writeMessageBegin('GetInfo', TMessageType::CALL, $self->{seqid});
2588 0           my $args = new Thrift::API::HiveClient2::TCLIService_GetInfo_args();
2589 0           $args->{req} = $req;
2590 0           $args->write($self->{output});
2591 0           $self->{output}->writeMessageEnd();
2592 0           $self->{output}->getTransport()->flush();
2593             }
2594              
2595             sub recv_GetInfo{
2596 0     0     my $self = shift;
2597              
2598 0           my $rseqid = 0;
2599 0           my $fname;
2600 0           my $mtype = 0;
2601              
2602 0           $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid);
2603 0 0         if ($mtype == TMessageType::EXCEPTION) {
2604 0           my $x = new TApplicationException();
2605 0           $x->read($self->{input});
2606 0           $self->{input}->readMessageEnd();
2607 0           die $x;
2608             }
2609 0           my $result = new Thrift::API::HiveClient2::TCLIService_GetInfo_result();
2610 0           $result->read($self->{input});
2611 0           $self->{input}->readMessageEnd();
2612              
2613 0 0         if (defined $result->{success} ) {
2614 0           return $result->{success};
2615             }
2616 0           die "GetInfo failed: unknown result";
2617             }
2618             sub ExecuteStatement{
2619 0     0     my $self = shift;
2620 0           my $req = shift;
2621              
2622 0           $self->send_ExecuteStatement($req);
2623 0           return $self->recv_ExecuteStatement();
2624             }
2625              
2626             sub send_ExecuteStatement{
2627 0     0     my $self = shift;
2628 0           my $req = shift;
2629              
2630 0           $self->{output}->writeMessageBegin('ExecuteStatement', TMessageType::CALL, $self->{seqid});
2631 0           my $args = new Thrift::API::HiveClient2::TCLIService_ExecuteStatement_args();
2632 0           $args->{req} = $req;
2633 0           $args->write($self->{output});
2634 0           $self->{output}->writeMessageEnd();
2635 0           $self->{output}->getTransport()->flush();
2636             }
2637              
2638             sub recv_ExecuteStatement{
2639 0     0     my $self = shift;
2640              
2641 0           my $rseqid = 0;
2642 0           my $fname;
2643 0           my $mtype = 0;
2644              
2645 0           $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid);
2646 0 0         if ($mtype == TMessageType::EXCEPTION) {
2647 0           my $x = new TApplicationException();
2648 0           $x->read($self->{input});
2649 0           $self->{input}->readMessageEnd();
2650 0           die $x;
2651             }
2652 0           my $result = new Thrift::API::HiveClient2::TCLIService_ExecuteStatement_result();
2653 0           $result->read($self->{input});
2654 0           $self->{input}->readMessageEnd();
2655              
2656 0 0         if (defined $result->{success} ) {
2657 0           return $result->{success};
2658             }
2659 0           die "ExecuteStatement failed: unknown result";
2660             }
2661             sub GetTypeInfo{
2662 0     0     my $self = shift;
2663 0           my $req = shift;
2664              
2665 0           $self->send_GetTypeInfo($req);
2666 0           return $self->recv_GetTypeInfo();
2667             }
2668              
2669             sub send_GetTypeInfo{
2670 0     0     my $self = shift;
2671 0           my $req = shift;
2672              
2673 0           $self->{output}->writeMessageBegin('GetTypeInfo', TMessageType::CALL, $self->{seqid});
2674 0           my $args = new Thrift::API::HiveClient2::TCLIService_GetTypeInfo_args();
2675 0           $args->{req} = $req;
2676 0           $args->write($self->{output});
2677 0           $self->{output}->writeMessageEnd();
2678 0           $self->{output}->getTransport()->flush();
2679             }
2680              
2681             sub recv_GetTypeInfo{
2682 0     0     my $self = shift;
2683              
2684 0           my $rseqid = 0;
2685 0           my $fname;
2686 0           my $mtype = 0;
2687              
2688 0           $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid);
2689 0 0         if ($mtype == TMessageType::EXCEPTION) {
2690 0           my $x = new TApplicationException();
2691 0           $x->read($self->{input});
2692 0           $self->{input}->readMessageEnd();
2693 0           die $x;
2694             }
2695 0           my $result = new Thrift::API::HiveClient2::TCLIService_GetTypeInfo_result();
2696 0           $result->read($self->{input});
2697 0           $self->{input}->readMessageEnd();
2698              
2699 0 0         if (defined $result->{success} ) {
2700 0           return $result->{success};
2701             }
2702 0           die "GetTypeInfo failed: unknown result";
2703             }
2704             sub GetCatalogs{
2705 0     0     my $self = shift;
2706 0           my $req = shift;
2707              
2708 0           $self->send_GetCatalogs($req);
2709 0           return $self->recv_GetCatalogs();
2710             }
2711              
2712             sub send_GetCatalogs{
2713 0     0     my $self = shift;
2714 0           my $req = shift;
2715              
2716 0           $self->{output}->writeMessageBegin('GetCatalogs', TMessageType::CALL, $self->{seqid});
2717 0           my $args = new Thrift::API::HiveClient2::TCLIService_GetCatalogs_args();
2718 0           $args->{req} = $req;
2719 0           $args->write($self->{output});
2720 0           $self->{output}->writeMessageEnd();
2721 0           $self->{output}->getTransport()->flush();
2722             }
2723              
2724             sub recv_GetCatalogs{
2725 0     0     my $self = shift;
2726              
2727 0           my $rseqid = 0;
2728 0           my $fname;
2729 0           my $mtype = 0;
2730              
2731 0           $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid);
2732 0 0         if ($mtype == TMessageType::EXCEPTION) {
2733 0           my $x = new TApplicationException();
2734 0           $x->read($self->{input});
2735 0           $self->{input}->readMessageEnd();
2736 0           die $x;
2737             }
2738 0           my $result = new Thrift::API::HiveClient2::TCLIService_GetCatalogs_result();
2739 0           $result->read($self->{input});
2740 0           $self->{input}->readMessageEnd();
2741              
2742 0 0         if (defined $result->{success} ) {
2743 0           return $result->{success};
2744             }
2745 0           die "GetCatalogs failed: unknown result";
2746             }
2747             sub GetSchemas{
2748 0     0     my $self = shift;
2749 0           my $req = shift;
2750              
2751 0           $self->send_GetSchemas($req);
2752 0           return $self->recv_GetSchemas();
2753             }
2754              
2755             sub send_GetSchemas{
2756 0     0     my $self = shift;
2757 0           my $req = shift;
2758              
2759 0           $self->{output}->writeMessageBegin('GetSchemas', TMessageType::CALL, $self->{seqid});
2760 0           my $args = new Thrift::API::HiveClient2::TCLIService_GetSchemas_args();
2761 0           $args->{req} = $req;
2762 0           $args->write($self->{output});
2763 0           $self->{output}->writeMessageEnd();
2764 0           $self->{output}->getTransport()->flush();
2765             }
2766              
2767             sub recv_GetSchemas{
2768 0     0     my $self = shift;
2769              
2770 0           my $rseqid = 0;
2771 0           my $fname;
2772 0           my $mtype = 0;
2773              
2774 0           $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid);
2775 0 0         if ($mtype == TMessageType::EXCEPTION) {
2776 0           my $x = new TApplicationException();
2777 0           $x->read($self->{input});
2778 0           $self->{input}->readMessageEnd();
2779 0           die $x;
2780             }
2781 0           my $result = new Thrift::API::HiveClient2::TCLIService_GetSchemas_result();
2782 0           $result->read($self->{input});
2783 0           $self->{input}->readMessageEnd();
2784              
2785 0 0         if (defined $result->{success} ) {
2786 0           return $result->{success};
2787             }
2788 0           die "GetSchemas failed: unknown result";
2789             }
2790             sub GetTables{
2791 0     0     my $self = shift;
2792 0           my $req = shift;
2793              
2794 0           $self->send_GetTables($req);
2795 0           return $self->recv_GetTables();
2796             }
2797              
2798             sub send_GetTables{
2799 0     0     my $self = shift;
2800 0           my $req = shift;
2801              
2802 0           $self->{output}->writeMessageBegin('GetTables', TMessageType::CALL, $self->{seqid});
2803 0           my $args = new Thrift::API::HiveClient2::TCLIService_GetTables_args();
2804 0           $args->{req} = $req;
2805 0           $args->write($self->{output});
2806 0           $self->{output}->writeMessageEnd();
2807 0           $self->{output}->getTransport()->flush();
2808             }
2809              
2810             sub recv_GetTables{
2811 0     0     my $self = shift;
2812              
2813 0           my $rseqid = 0;
2814 0           my $fname;
2815 0           my $mtype = 0;
2816              
2817 0           $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid);
2818 0 0         if ($mtype == TMessageType::EXCEPTION) {
2819 0           my $x = new TApplicationException();
2820 0           $x->read($self->{input});
2821 0           $self->{input}->readMessageEnd();
2822 0           die $x;
2823             }
2824 0           my $result = new Thrift::API::HiveClient2::TCLIService_GetTables_result();
2825 0           $result->read($self->{input});
2826 0           $self->{input}->readMessageEnd();
2827              
2828 0 0         if (defined $result->{success} ) {
2829 0           return $result->{success};
2830             }
2831 0           die "GetTables failed: unknown result";
2832             }
2833             sub GetTableTypes{
2834 0     0     my $self = shift;
2835 0           my $req = shift;
2836              
2837 0           $self->send_GetTableTypes($req);
2838 0           return $self->recv_GetTableTypes();
2839             }
2840              
2841             sub send_GetTableTypes{
2842 0     0     my $self = shift;
2843 0           my $req = shift;
2844              
2845 0           $self->{output}->writeMessageBegin('GetTableTypes', TMessageType::CALL, $self->{seqid});
2846 0           my $args = new Thrift::API::HiveClient2::TCLIService_GetTableTypes_args();
2847 0           $args->{req} = $req;
2848 0           $args->write($self->{output});
2849 0           $self->{output}->writeMessageEnd();
2850 0           $self->{output}->getTransport()->flush();
2851             }
2852              
2853             sub recv_GetTableTypes{
2854 0     0     my $self = shift;
2855              
2856 0           my $rseqid = 0;
2857 0           my $fname;
2858 0           my $mtype = 0;
2859              
2860 0           $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid);
2861 0 0         if ($mtype == TMessageType::EXCEPTION) {
2862 0           my $x = new TApplicationException();
2863 0           $x->read($self->{input});
2864 0           $self->{input}->readMessageEnd();
2865 0           die $x;
2866             }
2867 0           my $result = new Thrift::API::HiveClient2::TCLIService_GetTableTypes_result();
2868 0           $result->read($self->{input});
2869 0           $self->{input}->readMessageEnd();
2870              
2871 0 0         if (defined $result->{success} ) {
2872 0           return $result->{success};
2873             }
2874 0           die "GetTableTypes failed: unknown result";
2875             }
2876             sub GetColumns{
2877 0     0     my $self = shift;
2878 0           my $req = shift;
2879              
2880 0           $self->send_GetColumns($req);
2881 0           return $self->recv_GetColumns();
2882             }
2883              
2884             sub send_GetColumns{
2885 0     0     my $self = shift;
2886 0           my $req = shift;
2887              
2888 0           $self->{output}->writeMessageBegin('GetColumns', TMessageType::CALL, $self->{seqid});
2889 0           my $args = new Thrift::API::HiveClient2::TCLIService_GetColumns_args();
2890 0           $args->{req} = $req;
2891 0           $args->write($self->{output});
2892 0           $self->{output}->writeMessageEnd();
2893 0           $self->{output}->getTransport()->flush();
2894             }
2895              
2896             sub recv_GetColumns{
2897 0     0     my $self = shift;
2898              
2899 0           my $rseqid = 0;
2900 0           my $fname;
2901 0           my $mtype = 0;
2902              
2903 0           $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid);
2904 0 0         if ($mtype == TMessageType::EXCEPTION) {
2905 0           my $x = new TApplicationException();
2906 0           $x->read($self->{input});
2907 0           $self->{input}->readMessageEnd();
2908 0           die $x;
2909             }
2910 0           my $result = new Thrift::API::HiveClient2::TCLIService_GetColumns_result();
2911 0           $result->read($self->{input});
2912 0           $self->{input}->readMessageEnd();
2913              
2914 0 0         if (defined $result->{success} ) {
2915 0           return $result->{success};
2916             }
2917 0           die "GetColumns failed: unknown result";
2918             }
2919             sub GetFunctions{
2920 0     0     my $self = shift;
2921 0           my $req = shift;
2922              
2923 0           $self->send_GetFunctions($req);
2924 0           return $self->recv_GetFunctions();
2925             }
2926              
2927             sub send_GetFunctions{
2928 0     0     my $self = shift;
2929 0           my $req = shift;
2930              
2931 0           $self->{output}->writeMessageBegin('GetFunctions', TMessageType::CALL, $self->{seqid});
2932 0           my $args = new Thrift::API::HiveClient2::TCLIService_GetFunctions_args();
2933 0           $args->{req} = $req;
2934 0           $args->write($self->{output});
2935 0           $self->{output}->writeMessageEnd();
2936 0           $self->{output}->getTransport()->flush();
2937             }
2938              
2939             sub recv_GetFunctions{
2940 0     0     my $self = shift;
2941              
2942 0           my $rseqid = 0;
2943 0           my $fname;
2944 0           my $mtype = 0;
2945              
2946 0           $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid);
2947 0 0         if ($mtype == TMessageType::EXCEPTION) {
2948 0           my $x = new TApplicationException();
2949 0           $x->read($self->{input});
2950 0           $self->{input}->readMessageEnd();
2951 0           die $x;
2952             }
2953 0           my $result = new Thrift::API::HiveClient2::TCLIService_GetFunctions_result();
2954 0           $result->read($self->{input});
2955 0           $self->{input}->readMessageEnd();
2956              
2957 0 0         if (defined $result->{success} ) {
2958 0           return $result->{success};
2959             }
2960 0           die "GetFunctions failed: unknown result";
2961             }
2962             sub GetOperationStatus{
2963 0     0     my $self = shift;
2964 0           my $req = shift;
2965              
2966 0           $self->send_GetOperationStatus($req);
2967 0           return $self->recv_GetOperationStatus();
2968             }
2969              
2970             sub send_GetOperationStatus{
2971 0     0     my $self = shift;
2972 0           my $req = shift;
2973              
2974 0           $self->{output}->writeMessageBegin('GetOperationStatus', TMessageType::CALL, $self->{seqid});
2975 0           my $args = new Thrift::API::HiveClient2::TCLIService_GetOperationStatus_args();
2976 0           $args->{req} = $req;
2977 0           $args->write($self->{output});
2978 0           $self->{output}->writeMessageEnd();
2979 0           $self->{output}->getTransport()->flush();
2980             }
2981              
2982             sub recv_GetOperationStatus{
2983 0     0     my $self = shift;
2984              
2985 0           my $rseqid = 0;
2986 0           my $fname;
2987 0           my $mtype = 0;
2988              
2989 0           $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid);
2990 0 0         if ($mtype == TMessageType::EXCEPTION) {
2991 0           my $x = new TApplicationException();
2992 0           $x->read($self->{input});
2993 0           $self->{input}->readMessageEnd();
2994 0           die $x;
2995             }
2996 0           my $result = new Thrift::API::HiveClient2::TCLIService_GetOperationStatus_result();
2997 0           $result->read($self->{input});
2998 0           $self->{input}->readMessageEnd();
2999              
3000 0 0         if (defined $result->{success} ) {
3001 0           return $result->{success};
3002             }
3003 0           die "GetOperationStatus failed: unknown result";
3004             }
3005             sub CancelOperation{
3006 0     0     my $self = shift;
3007 0           my $req = shift;
3008              
3009 0           $self->send_CancelOperation($req);
3010 0           return $self->recv_CancelOperation();
3011             }
3012              
3013             sub send_CancelOperation{
3014 0     0     my $self = shift;
3015 0           my $req = shift;
3016              
3017 0           $self->{output}->writeMessageBegin('CancelOperation', TMessageType::CALL, $self->{seqid});
3018 0           my $args = new Thrift::API::HiveClient2::TCLIService_CancelOperation_args();
3019 0           $args->{req} = $req;
3020 0           $args->write($self->{output});
3021 0           $self->{output}->writeMessageEnd();
3022 0           $self->{output}->getTransport()->flush();
3023             }
3024              
3025             sub recv_CancelOperation{
3026 0     0     my $self = shift;
3027              
3028 0           my $rseqid = 0;
3029 0           my $fname;
3030 0           my $mtype = 0;
3031              
3032 0           $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid);
3033 0 0         if ($mtype == TMessageType::EXCEPTION) {
3034 0           my $x = new TApplicationException();
3035 0           $x->read($self->{input});
3036 0           $self->{input}->readMessageEnd();
3037 0           die $x;
3038             }
3039 0           my $result = new Thrift::API::HiveClient2::TCLIService_CancelOperation_result();
3040 0           $result->read($self->{input});
3041 0           $self->{input}->readMessageEnd();
3042              
3043 0 0         if (defined $result->{success} ) {
3044 0           return $result->{success};
3045             }
3046 0           die "CancelOperation failed: unknown result";
3047             }
3048             sub CloseOperation{
3049 0     0     my $self = shift;
3050 0           my $req = shift;
3051              
3052 0           $self->send_CloseOperation($req);
3053 0           return $self->recv_CloseOperation();
3054             }
3055              
3056             sub send_CloseOperation{
3057 0     0     my $self = shift;
3058 0           my $req = shift;
3059              
3060 0           $self->{output}->writeMessageBegin('CloseOperation', TMessageType::CALL, $self->{seqid});
3061 0           my $args = new Thrift::API::HiveClient2::TCLIService_CloseOperation_args();
3062 0           $args->{req} = $req;
3063 0           $args->write($self->{output});
3064 0           $self->{output}->writeMessageEnd();
3065 0           $self->{output}->getTransport()->flush();
3066             }
3067              
3068             sub recv_CloseOperation{
3069 0     0     my $self = shift;
3070              
3071 0           my $rseqid = 0;
3072 0           my $fname;
3073 0           my $mtype = 0;
3074              
3075 0           $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid);
3076 0 0         if ($mtype == TMessageType::EXCEPTION) {
3077 0           my $x = new TApplicationException();
3078 0           $x->read($self->{input});
3079 0           $self->{input}->readMessageEnd();
3080 0           die $x;
3081             }
3082 0           my $result = new Thrift::API::HiveClient2::TCLIService_CloseOperation_result();
3083 0           $result->read($self->{input});
3084 0           $self->{input}->readMessageEnd();
3085              
3086 0 0         if (defined $result->{success} ) {
3087 0           return $result->{success};
3088             }
3089 0           die "CloseOperation failed: unknown result";
3090             }
3091             sub GetResultSetMetadata{
3092 0     0     my $self = shift;
3093 0           my $req = shift;
3094              
3095 0           $self->send_GetResultSetMetadata($req);
3096 0           return $self->recv_GetResultSetMetadata();
3097             }
3098              
3099             sub send_GetResultSetMetadata{
3100 0     0     my $self = shift;
3101 0           my $req = shift;
3102              
3103 0           $self->{output}->writeMessageBegin('GetResultSetMetadata', TMessageType::CALL, $self->{seqid});
3104 0           my $args = new Thrift::API::HiveClient2::TCLIService_GetResultSetMetadata_args();
3105 0           $args->{req} = $req;
3106 0           $args->write($self->{output});
3107 0           $self->{output}->writeMessageEnd();
3108 0           $self->{output}->getTransport()->flush();
3109             }
3110              
3111             sub recv_GetResultSetMetadata{
3112 0     0     my $self = shift;
3113              
3114 0           my $rseqid = 0;
3115 0           my $fname;
3116 0           my $mtype = 0;
3117              
3118 0           $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid);
3119 0 0         if ($mtype == TMessageType::EXCEPTION) {
3120 0           my $x = new TApplicationException();
3121 0           $x->read($self->{input});
3122 0           $self->{input}->readMessageEnd();
3123 0           die $x;
3124             }
3125 0           my $result = new Thrift::API::HiveClient2::TCLIService_GetResultSetMetadata_result();
3126 0           $result->read($self->{input});
3127 0           $self->{input}->readMessageEnd();
3128              
3129 0 0         if (defined $result->{success} ) {
3130 0           return $result->{success};
3131             }
3132 0           die "GetResultSetMetadata failed: unknown result";
3133             }
3134             sub FetchResults{
3135 0     0     my $self = shift;
3136 0           my $req = shift;
3137              
3138 0           $self->send_FetchResults($req);
3139 0           return $self->recv_FetchResults();
3140             }
3141              
3142             sub send_FetchResults{
3143 0     0     my $self = shift;
3144 0           my $req = shift;
3145              
3146 0           $self->{output}->writeMessageBegin('FetchResults', TMessageType::CALL, $self->{seqid});
3147 0           my $args = new Thrift::API::HiveClient2::TCLIService_FetchResults_args();
3148 0           $args->{req} = $req;
3149 0           $args->write($self->{output});
3150 0           $self->{output}->writeMessageEnd();
3151 0           $self->{output}->getTransport()->flush();
3152             }
3153              
3154             sub recv_FetchResults{
3155 0     0     my $self = shift;
3156              
3157 0           my $rseqid = 0;
3158 0           my $fname;
3159 0           my $mtype = 0;
3160              
3161 0           $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid);
3162 0 0         if ($mtype == TMessageType::EXCEPTION) {
3163 0           my $x = new TApplicationException();
3164 0           $x->read($self->{input});
3165 0           $self->{input}->readMessageEnd();
3166 0           die $x;
3167             }
3168 0           my $result = new Thrift::API::HiveClient2::TCLIService_FetchResults_result();
3169 0           $result->read($self->{input});
3170 0           $self->{input}->readMessageEnd();
3171              
3172 0 0         if (defined $result->{success} ) {
3173 0           return $result->{success};
3174             }
3175 0           die "FetchResults failed: unknown result";
3176             }
3177             package Thrift::API::HiveClient2::TCLIServiceProcessor;
3178             $Thrift::API::HiveClient2::TCLIServiceProcessor::VERSION = '0.023';
3179             {
3180             $Thrift::API::HiveClient2::TCLIServiceProcessor::DIST = 'Thrift-API-HiveClient2';
3181             }
3182              
3183 2     2   17 use strict;
  2         3  
  2         3283  
3184              
3185              
3186             sub new {
3187 0     0     my ($classname, $handler) = @_;
3188 0           my $self = {};
3189 0           $self->{handler} = $handler;
3190 0           return bless ($self, $classname);
3191             }
3192              
3193             sub process {
3194 0     0     my ($self, $input, $output) = @_;
3195 0           my $rseqid = 0;
3196 0           my $fname = undef;
3197 0           my $mtype = 0;
3198              
3199 0           $input->readMessageBegin(\$fname, \$mtype, \$rseqid);
3200 0           my $methodname = 'process_'.$fname;
3201 0 0         if (!$self->can($methodname)) {
3202 0           $input->skip(TType::STRUCT);
3203 0           $input->readMessageEnd();
3204 0           my $x = new TApplicationException('Function '.$fname.' not implemented.', TApplicationException::UNKNOWN_METHOD);
3205 0           $output->writeMessageBegin($fname, TMessageType::EXCEPTION, $rseqid);
3206 0           $x->write($output);
3207 0           $output->writeMessageEnd();
3208 0           $output->getTransport()->flush();
3209 0           return;
3210             }
3211 0           $self->$methodname($rseqid, $input, $output);
3212 0           return 1;
3213             }
3214              
3215             sub process_OpenSession {
3216 0     0     my ($self, $seqid, $input, $output) = @_;
3217 0           my $args = new Thrift::API::HiveClient2::TCLIService_OpenSession_args();
3218 0           $args->read($input);
3219 0           $input->readMessageEnd();
3220 0           my $result = new Thrift::API::HiveClient2::TCLIService_OpenSession_result();
3221 0           $result->{success} = $self->{handler}->OpenSession($args->req);
3222 0           $output->writeMessageBegin('OpenSession', TMessageType::REPLY, $seqid);
3223 0           $result->write($output);
3224 0           $output->writeMessageEnd();
3225 0           $output->getTransport()->flush();
3226             }
3227              
3228             sub process_CloseSession {
3229 0     0     my ($self, $seqid, $input, $output) = @_;
3230 0           my $args = new Thrift::API::HiveClient2::TCLIService_CloseSession_args();
3231 0           $args->read($input);
3232 0           $input->readMessageEnd();
3233 0           my $result = new Thrift::API::HiveClient2::TCLIService_CloseSession_result();
3234 0           $result->{success} = $self->{handler}->CloseSession($args->req);
3235 0           $output->writeMessageBegin('CloseSession', TMessageType::REPLY, $seqid);
3236 0           $result->write($output);
3237 0           $output->writeMessageEnd();
3238 0           $output->getTransport()->flush();
3239             }
3240              
3241             sub process_GetInfo {
3242 0     0     my ($self, $seqid, $input, $output) = @_;
3243 0           my $args = new Thrift::API::HiveClient2::TCLIService_GetInfo_args();
3244 0           $args->read($input);
3245 0           $input->readMessageEnd();
3246 0           my $result = new Thrift::API::HiveClient2::TCLIService_GetInfo_result();
3247 0           $result->{success} = $self->{handler}->GetInfo($args->req);
3248 0           $output->writeMessageBegin('GetInfo', TMessageType::REPLY, $seqid);
3249 0           $result->write($output);
3250 0           $output->writeMessageEnd();
3251 0           $output->getTransport()->flush();
3252             }
3253              
3254             sub process_ExecuteStatement {
3255 0     0     my ($self, $seqid, $input, $output) = @_;
3256 0           my $args = new Thrift::API::HiveClient2::TCLIService_ExecuteStatement_args();
3257 0           $args->read($input);
3258 0           $input->readMessageEnd();
3259 0           my $result = new Thrift::API::HiveClient2::TCLIService_ExecuteStatement_result();
3260 0           $result->{success} = $self->{handler}->ExecuteStatement($args->req);
3261 0           $output->writeMessageBegin('ExecuteStatement', TMessageType::REPLY, $seqid);
3262 0           $result->write($output);
3263 0           $output->writeMessageEnd();
3264 0           $output->getTransport()->flush();
3265             }
3266              
3267             sub process_GetTypeInfo {
3268 0     0     my ($self, $seqid, $input, $output) = @_;
3269 0           my $args = new Thrift::API::HiveClient2::TCLIService_GetTypeInfo_args();
3270 0           $args->read($input);
3271 0           $input->readMessageEnd();
3272 0           my $result = new Thrift::API::HiveClient2::TCLIService_GetTypeInfo_result();
3273 0           $result->{success} = $self->{handler}->GetTypeInfo($args->req);
3274 0           $output->writeMessageBegin('GetTypeInfo', TMessageType::REPLY, $seqid);
3275 0           $result->write($output);
3276 0           $output->writeMessageEnd();
3277 0           $output->getTransport()->flush();
3278             }
3279              
3280             sub process_GetCatalogs {
3281 0     0     my ($self, $seqid, $input, $output) = @_;
3282 0           my $args = new Thrift::API::HiveClient2::TCLIService_GetCatalogs_args();
3283 0           $args->read($input);
3284 0           $input->readMessageEnd();
3285 0           my $result = new Thrift::API::HiveClient2::TCLIService_GetCatalogs_result();
3286 0           $result->{success} = $self->{handler}->GetCatalogs($args->req);
3287 0           $output->writeMessageBegin('GetCatalogs', TMessageType::REPLY, $seqid);
3288 0           $result->write($output);
3289 0           $output->writeMessageEnd();
3290 0           $output->getTransport()->flush();
3291             }
3292              
3293             sub process_GetSchemas {
3294 0     0     my ($self, $seqid, $input, $output) = @_;
3295 0           my $args = new Thrift::API::HiveClient2::TCLIService_GetSchemas_args();
3296 0           $args->read($input);
3297 0           $input->readMessageEnd();
3298 0           my $result = new Thrift::API::HiveClient2::TCLIService_GetSchemas_result();
3299 0           $result->{success} = $self->{handler}->GetSchemas($args->req);
3300 0           $output->writeMessageBegin('GetSchemas', TMessageType::REPLY, $seqid);
3301 0           $result->write($output);
3302 0           $output->writeMessageEnd();
3303 0           $output->getTransport()->flush();
3304             }
3305              
3306             sub process_GetTables {
3307 0     0     my ($self, $seqid, $input, $output) = @_;
3308 0           my $args = new Thrift::API::HiveClient2::TCLIService_GetTables_args();
3309 0           $args->read($input);
3310 0           $input->readMessageEnd();
3311 0           my $result = new Thrift::API::HiveClient2::TCLIService_GetTables_result();
3312 0           $result->{success} = $self->{handler}->GetTables($args->req);
3313 0           $output->writeMessageBegin('GetTables', TMessageType::REPLY, $seqid);
3314 0           $result->write($output);
3315 0           $output->writeMessageEnd();
3316 0           $output->getTransport()->flush();
3317             }
3318              
3319             sub process_GetTableTypes {
3320 0     0     my ($self, $seqid, $input, $output) = @_;
3321 0           my $args = new Thrift::API::HiveClient2::TCLIService_GetTableTypes_args();
3322 0           $args->read($input);
3323 0           $input->readMessageEnd();
3324 0           my $result = new Thrift::API::HiveClient2::TCLIService_GetTableTypes_result();
3325 0           $result->{success} = $self->{handler}->GetTableTypes($args->req);
3326 0           $output->writeMessageBegin('GetTableTypes', TMessageType::REPLY, $seqid);
3327 0           $result->write($output);
3328 0           $output->writeMessageEnd();
3329 0           $output->getTransport()->flush();
3330             }
3331              
3332             sub process_GetColumns {
3333 0     0     my ($self, $seqid, $input, $output) = @_;
3334 0           my $args = new Thrift::API::HiveClient2::TCLIService_GetColumns_args();
3335 0           $args->read($input);
3336 0           $input->readMessageEnd();
3337 0           my $result = new Thrift::API::HiveClient2::TCLIService_GetColumns_result();
3338 0           $result->{success} = $self->{handler}->GetColumns($args->req);
3339 0           $output->writeMessageBegin('GetColumns', TMessageType::REPLY, $seqid);
3340 0           $result->write($output);
3341 0           $output->writeMessageEnd();
3342 0           $output->getTransport()->flush();
3343             }
3344              
3345             sub process_GetFunctions {
3346 0     0     my ($self, $seqid, $input, $output) = @_;
3347 0           my $args = new Thrift::API::HiveClient2::TCLIService_GetFunctions_args();
3348 0           $args->read($input);
3349 0           $input->readMessageEnd();
3350 0           my $result = new Thrift::API::HiveClient2::TCLIService_GetFunctions_result();
3351 0           $result->{success} = $self->{handler}->GetFunctions($args->req);
3352 0           $output->writeMessageBegin('GetFunctions', TMessageType::REPLY, $seqid);
3353 0           $result->write($output);
3354 0           $output->writeMessageEnd();
3355 0           $output->getTransport()->flush();
3356             }
3357              
3358             sub process_GetOperationStatus {
3359 0     0     my ($self, $seqid, $input, $output) = @_;
3360 0           my $args = new Thrift::API::HiveClient2::TCLIService_GetOperationStatus_args();
3361 0           $args->read($input);
3362 0           $input->readMessageEnd();
3363 0           my $result = new Thrift::API::HiveClient2::TCLIService_GetOperationStatus_result();
3364 0           $result->{success} = $self->{handler}->GetOperationStatus($args->req);
3365 0           $output->writeMessageBegin('GetOperationStatus', TMessageType::REPLY, $seqid);
3366 0           $result->write($output);
3367 0           $output->writeMessageEnd();
3368 0           $output->getTransport()->flush();
3369             }
3370              
3371             sub process_CancelOperation {
3372 0     0     my ($self, $seqid, $input, $output) = @_;
3373 0           my $args = new Thrift::API::HiveClient2::TCLIService_CancelOperation_args();
3374 0           $args->read($input);
3375 0           $input->readMessageEnd();
3376 0           my $result = new Thrift::API::HiveClient2::TCLIService_CancelOperation_result();
3377 0           $result->{success} = $self->{handler}->CancelOperation($args->req);
3378 0           $output->writeMessageBegin('CancelOperation', TMessageType::REPLY, $seqid);
3379 0           $result->write($output);
3380 0           $output->writeMessageEnd();
3381 0           $output->getTransport()->flush();
3382             }
3383              
3384             sub process_CloseOperation {
3385 0     0     my ($self, $seqid, $input, $output) = @_;
3386 0           my $args = new Thrift::API::HiveClient2::TCLIService_CloseOperation_args();
3387 0           $args->read($input);
3388 0           $input->readMessageEnd();
3389 0           my $result = new Thrift::API::HiveClient2::TCLIService_CloseOperation_result();
3390 0           $result->{success} = $self->{handler}->CloseOperation($args->req);
3391 0           $output->writeMessageBegin('CloseOperation', TMessageType::REPLY, $seqid);
3392 0           $result->write($output);
3393 0           $output->writeMessageEnd();
3394 0           $output->getTransport()->flush();
3395             }
3396              
3397             sub process_GetResultSetMetadata {
3398 0     0     my ($self, $seqid, $input, $output) = @_;
3399 0           my $args = new Thrift::API::HiveClient2::TCLIService_GetResultSetMetadata_args();
3400 0           $args->read($input);
3401 0           $input->readMessageEnd();
3402 0           my $result = new Thrift::API::HiveClient2::TCLIService_GetResultSetMetadata_result();
3403 0           $result->{success} = $self->{handler}->GetResultSetMetadata($args->req);
3404 0           $output->writeMessageBegin('GetResultSetMetadata', TMessageType::REPLY, $seqid);
3405 0           $result->write($output);
3406 0           $output->writeMessageEnd();
3407 0           $output->getTransport()->flush();
3408             }
3409              
3410             sub process_FetchResults {
3411 0     0     my ($self, $seqid, $input, $output) = @_;
3412 0           my $args = new Thrift::API::HiveClient2::TCLIService_FetchResults_args();
3413 0           $args->read($input);
3414 0           $input->readMessageEnd();
3415 0           my $result = new Thrift::API::HiveClient2::TCLIService_FetchResults_result();
3416 0           $result->{success} = $self->{handler}->FetchResults($args->req);
3417 0           $output->writeMessageBegin('FetchResults', TMessageType::REPLY, $seqid);
3418 0           $result->write($output);
3419 0           $output->writeMessageEnd();
3420 0           $output->getTransport()->flush();
3421             }
3422              
3423             1;
3424              
3425             __END__