OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Heavy.py
Go to the documentation of this file.
1 #
2 # Autogenerated by Thrift Compiler (0.16.0)
3 #
4 # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 #
6 # options string: py
7 #
8 
9 from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
10 from thrift.protocol.TProtocol import TProtocolException
11 from thrift.TRecursive import fix_spec
12 
13 import sys
14 import logging
15 from .ttypes import *
16 from thrift.Thrift import TProcessor
17 from thrift.transport import TTransport
18 all_structs = []
19 
20 
21 class Iface(object):
22  def connect(self, user, passwd, dbname):
23  """
24  Parameters:
25  - user
26  - passwd
27  - dbname
28 
29  """
30  pass
31 
32  def krb5_connect(self, inputToken, dbname):
33  """
34  Parameters:
35  - inputToken
36  - dbname
37 
38  """
39  pass
40 
41  def disconnect(self, session):
42  """
43  Parameters:
44  - session
45 
46  """
47  pass
48 
49  def switch_database(self, session, dbname):
50  """
51  Parameters:
52  - session
53  - dbname
54 
55  """
56  pass
57 
58  def clone_session(self, session):
59  """
60  Parameters:
61  - session
62 
63  """
64  pass
65 
66  def get_server_status(self, session):
67  """
68  Parameters:
69  - session
70 
71  """
72  pass
73 
74  def get_status(self, session):
75  """
76  Parameters:
77  - session
78 
79  """
80  pass
81 
82  def get_hardware_info(self, session):
83  """
84  Parameters:
85  - session
86 
87  """
88  pass
89 
90  def get_tables(self, session):
91  """
92  Parameters:
93  - session
94 
95  """
96  pass
97 
98  def get_tables_for_database(self, session, database_name):
99  """
100  Parameters:
101  - session
102  - database_name
103 
104  """
105  pass
106 
107  def get_physical_tables(self, session):
108  """
109  Parameters:
110  - session
111 
112  """
113  pass
114 
115  def get_views(self, session):
116  """
117  Parameters:
118  - session
119 
120  """
121  pass
122 
123  def get_tables_meta(self, session):
124  """
125  Parameters:
126  - session
127 
128  """
129  pass
130 
131  def get_table_details(self, session, table_name):
132  """
133  Parameters:
134  - session
135  - table_name
136 
137  """
138  pass
139 
140  def get_table_details_for_database(self, session, table_name, database_name):
141  """
142  Parameters:
143  - session
144  - table_name
145  - database_name
146 
147  """
148  pass
149 
150  def get_internal_table_details(self, session, table_name, include_system_columns):
151  """
152  Parameters:
153  - session
154  - table_name
155  - include_system_columns
156 
157  """
158  pass
159 
160  def get_internal_table_details_for_database(self, session, table_name, database_name):
161  """
162  Parameters:
163  - session
164  - table_name
165  - database_name
166 
167  """
168  pass
169 
170  def get_users(self, session):
171  """
172  Parameters:
173  - session
174 
175  """
176  pass
177 
178  def get_databases(self, session):
179  """
180  Parameters:
181  - session
182 
183  """
184  pass
185 
186  def get_version(self):
187  pass
188 
189  def start_heap_profile(self, session):
190  """
191  Parameters:
192  - session
193 
194  """
195  pass
196 
197  def stop_heap_profile(self, session):
198  """
199  Parameters:
200  - session
201 
202  """
203  pass
204 
205  def get_heap_profile(self, session):
206  """
207  Parameters:
208  - session
209 
210  """
211  pass
212 
213  def get_memory(self, session, memory_level):
214  """
215  Parameters:
216  - session
217  - memory_level
218 
219  """
220  pass
221 
222  def clear_cpu_memory(self, session):
223  """
224  Parameters:
225  - session
226 
227  """
228  pass
229 
230  def clear_gpu_memory(self, session):
231  """
232  Parameters:
233  - session
234 
235  """
236  pass
237 
238  def set_cur_session(self, parent_session, leaf_session, start_time_str, label, for_running_query_kernel):
239  """
240  Parameters:
241  - parent_session
242  - leaf_session
243  - start_time_str
244  - label
245  - for_running_query_kernel
246 
247  """
248  pass
249 
250  def invalidate_cur_session(self, parent_session, leaf_session, start_time_str, label, for_running_query_kernel):
251  """
252  Parameters:
253  - parent_session
254  - leaf_session
255  - start_time_str
256  - label
257  - for_running_query_kernel
258 
259  """
260  pass
261 
262  def set_table_epoch(self, session, db_id, table_id, new_epoch):
263  """
264  Parameters:
265  - session
266  - db_id
267  - table_id
268  - new_epoch
269 
270  """
271  pass
272 
273  def set_table_epoch_by_name(self, session, table_name, new_epoch):
274  """
275  Parameters:
276  - session
277  - table_name
278  - new_epoch
279 
280  """
281  pass
282 
283  def get_table_epoch(self, session, db_id, table_id):
284  """
285  Parameters:
286  - session
287  - db_id
288  - table_id
289 
290  """
291  pass
292 
293  def get_table_epoch_by_name(self, session, table_name):
294  """
295  Parameters:
296  - session
297  - table_name
298 
299  """
300  pass
301 
302  def get_table_epochs(self, session, db_id, table_id):
303  """
304  Parameters:
305  - session
306  - db_id
307  - table_id
308 
309  """
310  pass
311 
312  def set_table_epochs(self, session, db_id, table_epochs):
313  """
314  Parameters:
315  - session
316  - db_id
317  - table_epochs
318 
319  """
320  pass
321 
322  def get_session_info(self, session):
323  """
324  Parameters:
325  - session
326 
327  """
328  pass
329 
330  def get_queries_info(self, session):
331  """
332  Parameters:
333  - session
334 
335  """
336  pass
337 
338  def set_leaf_info(self, session, leaf_info):
339  """
340  Parameters:
341  - session
342  - leaf_info
343 
344  """
345  pass
346 
347  def sql_execute(self, session, query, column_format, nonce, first_n, at_most_n):
348  """
349  Parameters:
350  - session
351  - query
352  - column_format
353  - nonce
354  - first_n
355  - at_most_n
356 
357  """
358  pass
359 
360  def sql_execute_df(self, session, query, device_type, device_id, first_n, transport_method):
361  """
362  Parameters:
363  - session
364  - query
365  - device_type
366  - device_id
367  - first_n
368  - transport_method
369 
370  """
371  pass
372 
373  def sql_execute_gdf(self, session, query, device_id, first_n):
374  """
375  Parameters:
376  - session
377  - query
378  - device_id
379  - first_n
380 
381  """
382  pass
383 
384  def deallocate_df(self, session, df, device_type, device_id):
385  """
386  Parameters:
387  - session
388  - df
389  - device_type
390  - device_id
391 
392  """
393  pass
394 
395  def interrupt(self, query_session, interrupt_session):
396  """
397  Parameters:
398  - query_session
399  - interrupt_session
400 
401  """
402  pass
403 
404  def sql_validate(self, session, query):
405  """
406  Parameters:
407  - session
408  - query
409 
410  """
411  pass
412 
413  def get_completion_hints(self, session, sql, cursor):
414  """
415  Parameters:
416  - session
417  - sql
418  - cursor
419 
420  """
421  pass
422 
423  def set_execution_mode(self, session, mode):
424  """
425  Parameters:
426  - session
427  - mode
428 
429  """
430  pass
431 
432  def render_vega(self, session, widget_id, vega_json, compression_level, nonce):
433  """
434  Parameters:
435  - session
436  - widget_id
437  - vega_json
438  - compression_level
439  - nonce
440 
441  """
442  pass
443 
444  def get_result_row_for_pixel(self, session, widget_id, pixel, table_col_names, column_format, pixelRadius, nonce):
445  """
446  Parameters:
447  - session
448  - widget_id
449  - pixel
450  - table_col_names
451  - column_format
452  - pixelRadius
453  - nonce
454 
455  """
456  pass
457 
458  def create_custom_expression(self, session, custom_expression):
459  """
460  Parameters:
461  - session
462  - custom_expression
463 
464  """
465  pass
466 
467  def get_custom_expressions(self, session):
468  """
469  Parameters:
470  - session
471 
472  """
473  pass
474 
475  def update_custom_expression(self, session, id, expression_json):
476  """
477  Parameters:
478  - session
479  - id
480  - expression_json
481 
482  """
483  pass
484 
485  def delete_custom_expressions(self, session, custom_expression_ids, do_soft_delete):
486  """
487  Parameters:
488  - session
489  - custom_expression_ids
490  - do_soft_delete
491 
492  """
493  pass
494 
495  def get_dashboard(self, session, dashboard_id):
496  """
497  Parameters:
498  - session
499  - dashboard_id
500 
501  """
502  pass
503 
504  def get_dashboards(self, session):
505  """
506  Parameters:
507  - session
508 
509  """
510  pass
511 
512  def create_dashboard(self, session, dashboard_name, dashboard_state, image_hash, dashboard_metadata):
513  """
514  Parameters:
515  - session
516  - dashboard_name
517  - dashboard_state
518  - image_hash
519  - dashboard_metadata
520 
521  """
522  pass
523 
524  def replace_dashboard(self, session, dashboard_id, dashboard_name, dashboard_owner, dashboard_state, image_hash, dashboard_metadata):
525  """
526  Parameters:
527  - session
528  - dashboard_id
529  - dashboard_name
530  - dashboard_owner
531  - dashboard_state
532  - image_hash
533  - dashboard_metadata
534 
535  """
536  pass
537 
538  def delete_dashboard(self, session, dashboard_id):
539  """
540  Parameters:
541  - session
542  - dashboard_id
543 
544  """
545  pass
546 
547  def share_dashboards(self, session, dashboard_ids, groups, permissions):
548  """
549  Parameters:
550  - session
551  - dashboard_ids
552  - groups
553  - permissions
554 
555  """
556  pass
557 
558  def delete_dashboards(self, session, dashboard_ids):
559  """
560  Parameters:
561  - session
562  - dashboard_ids
563 
564  """
565  pass
566 
567  def share_dashboard(self, session, dashboard_id, groups, objects, permissions, grant_role):
568  """
569  Parameters:
570  - session
571  - dashboard_id
572  - groups
573  - objects
574  - permissions
575  - grant_role
576 
577  """
578  pass
579 
580  def unshare_dashboard(self, session, dashboard_id, groups, objects, permissions):
581  """
582  Parameters:
583  - session
584  - dashboard_id
585  - groups
586  - objects
587  - permissions
588 
589  """
590  pass
591 
592  def unshare_dashboards(self, session, dashboard_ids, groups, permissions):
593  """
594  Parameters:
595  - session
596  - dashboard_ids
597  - groups
598  - permissions
599 
600  """
601  pass
602 
603  def get_dashboard_grantees(self, session, dashboard_id):
604  """
605  Parameters:
606  - session
607  - dashboard_id
608 
609  """
610  pass
611 
612  def get_link_view(self, session, link):
613  """
614  Parameters:
615  - session
616  - link
617 
618  """
619  pass
620 
621  def create_link(self, session, view_state, view_metadata):
622  """
623  Parameters:
624  - session
625  - view_state
626  - view_metadata
627 
628  """
629  pass
630 
631  def load_table_binary(self, session, table_name, rows, column_names):
632  """
633  Parameters:
634  - session
635  - table_name
636  - rows
637  - column_names
638 
639  """
640  pass
641 
642  def load_table_binary_columnar(self, session, table_name, cols, column_names):
643  """
644  Parameters:
645  - session
646  - table_name
647  - cols
648  - column_names
649 
650  """
651  pass
652 
653  def load_table_binary_arrow(self, session, table_name, arrow_stream, use_column_names):
654  """
655  Parameters:
656  - session
657  - table_name
658  - arrow_stream
659  - use_column_names
660 
661  """
662  pass
663 
664  def load_table(self, session, table_name, rows, column_names):
665  """
666  Parameters:
667  - session
668  - table_name
669  - rows
670  - column_names
671 
672  """
673  pass
674 
675  def detect_column_types(self, session, file_name, copy_params):
676  """
677  Parameters:
678  - session
679  - file_name
680  - copy_params
681 
682  """
683  pass
684 
685  def create_table(self, session, table_name, row_desc, create_params):
686  """
687  Parameters:
688  - session
689  - table_name
690  - row_desc
691  - create_params
692 
693  """
694  pass
695 
696  def import_table(self, session, table_name, file_name, copy_params):
697  """
698  Parameters:
699  - session
700  - table_name
701  - file_name
702  - copy_params
703 
704  """
705  pass
706 
707  def import_geo_table(self, session, table_name, file_name, copy_params, row_desc, create_params):
708  """
709  Parameters:
710  - session
711  - table_name
712  - file_name
713  - copy_params
714  - row_desc
715  - create_params
716 
717  """
718  pass
719 
720  def import_table_status(self, session, import_id):
721  """
722  Parameters:
723  - session
724  - import_id
725 
726  """
727  pass
728 
729  def get_first_geo_file_in_archive(self, session, archive_path, copy_params):
730  """
731  Parameters:
732  - session
733  - archive_path
734  - copy_params
735 
736  """
737  pass
738 
739  def get_all_files_in_archive(self, session, archive_path, copy_params):
740  """
741  Parameters:
742  - session
743  - archive_path
744  - copy_params
745 
746  """
747  pass
748 
749  def get_layers_in_geo_file(self, session, file_name, copy_params):
750  """
751  Parameters:
752  - session
753  - file_name
754  - copy_params
755 
756  """
757  pass
758 
759  def query_get_outer_fragment_count(self, session, query):
760  """
761  Parameters:
762  - session
763  - query
764 
765  """
766  pass
767 
768  def check_table_consistency(self, session, table_id):
769  """
770  Parameters:
771  - session
772  - table_id
773 
774  """
775  pass
776 
777  def start_query(self, leaf_session, parent_session, query_ra, start_time_str, just_explain, outer_fragment_indices):
778  """
779  Parameters:
780  - leaf_session
781  - parent_session
782  - query_ra
783  - start_time_str
784  - just_explain
785  - outer_fragment_indices
786 
787  """
788  pass
789 
790  def execute_query_step(self, pending_query, subquery_id, start_time_str):
791  """
792  Parameters:
793  - pending_query
794  - subquery_id
795  - start_time_str
796 
797  """
798  pass
799 
800  def broadcast_serialized_rows(self, serialized_rows, row_desc, query_id, subquery_id, is_final_subquery_result):
801  """
802  Parameters:
803  - serialized_rows
804  - row_desc
805  - query_id
806  - subquery_id
807  - is_final_subquery_result
808 
809  """
810  pass
811 
812  def start_render_query(self, session, widget_id, node_idx, vega_json):
813  """
814  Parameters:
815  - session
816  - widget_id
817  - node_idx
818  - vega_json
819 
820  """
821  pass
822 
823  def execute_next_render_step(self, pending_render, merged_data):
824  """
825  Parameters:
826  - pending_render
827  - merged_data
828 
829  """
830  pass
831 
832  def insert_data(self, session, insert_data):
833  """
834  Parameters:
835  - session
836  - insert_data
837 
838  """
839  pass
840 
841  def insert_chunks(self, session, insert_chunks):
842  """
843  Parameters:
844  - session
845  - insert_chunks
846 
847  """
848  pass
849 
850  def checkpoint(self, session, table_id):
851  """
852  Parameters:
853  - session
854  - table_id
855 
856  """
857  pass
858 
859  def get_roles(self, session):
860  """
861  Parameters:
862  - session
863 
864  """
865  pass
866 
867  def get_db_objects_for_grantee(self, session, roleName):
868  """
869  Parameters:
870  - session
871  - roleName
872 
873  """
874  pass
875 
876  def get_db_object_privs(self, session, objectName, type):
877  """
878  Parameters:
879  - session
880  - objectName
881  - type
882 
883  """
884  pass
885 
886  def get_all_roles_for_user(self, session, userName):
887  """
888  Parameters:
889  - session
890  - userName
891 
892  """
893  pass
894 
895  def get_all_effective_roles_for_user(self, session, userName):
896  """
897  Parameters:
898  - session
899  - userName
900 
901  """
902  pass
903 
904  def has_role(self, session, granteeName, roleName):
905  """
906  Parameters:
907  - session
908  - granteeName
909  - roleName
910 
911  """
912  pass
913 
914  def has_object_privilege(self, session, granteeName, ObjectName, objectType, permissions):
915  """
916  Parameters:
917  - session
918  - granteeName
919  - ObjectName
920  - objectType
921  - permissions
922 
923  """
924  pass
925 
926  def set_license_key(self, session, key, nonce):
927  """
928  Parameters:
929  - session
930  - key
931  - nonce
932 
933  """
934  pass
935 
936  def get_license_claims(self, session, nonce):
937  """
938  Parameters:
939  - session
940  - nonce
941 
942  """
943  pass
944 
945  def get_device_parameters(self, session):
946  """
947  Parameters:
948  - session
949 
950  """
951  pass
952 
953  def register_runtime_extension_functions(self, session, udfs, udtfs, device_ir_map):
954  """
955  Parameters:
956  - session
957  - udfs
958  - udtfs
959  - device_ir_map
960 
961  """
962  pass
963 
964  def get_table_function_names(self, session):
965  """
966  Parameters:
967  - session
968 
969  """
970  pass
971 
973  """
974  Parameters:
975  - session
976 
977  """
978  pass
979 
980  def get_table_function_details(self, session, udtf_names):
981  """
982  Parameters:
983  - session
984  - udtf_names
985 
986  """
987  pass
988 
989  def get_function_names(self, session):
990  """
991  Parameters:
992  - session
993 
994  """
995  pass
996 
997  def get_runtime_function_names(self, session):
998  """
999  Parameters:
1000  - session
1001 
1002  """
1003  pass
1004 
1005  def get_function_details(self, session, udf_names):
1006  """
1007  Parameters:
1008  - session
1009  - udf_names
1010 
1011  """
1012  pass
1013 
1014 
1015 class Client(Iface):
1016  def __init__(self, iprot, oprot=None):
1017  self._iprot = self._oprot = iprot
1018  if oprot is not None:
1019  self._oprot = oprot
1020  self._seqid = 0
1021 
1022  def connect(self, user, passwd, dbname):
1023  """
1024  Parameters:
1025  - user
1026  - passwd
1027  - dbname
1028 
1029  """
1030  self.send_connect(user, passwd, dbname)
1031  return self.recv_connect()
1032 
1033  def send_connect(self, user, passwd, dbname):
1034  self._oprot.writeMessageBegin('connect', TMessageType.CALL, self._seqid)
1035  args = connect_args()
1036  args.user = user
1037  args.passwd = passwd
1038  args.dbname = dbname
1039  args.write(self._oprot)
1040  self._oprot.writeMessageEnd()
1041  self._oprot.trans.flush()
1042 
1043  def recv_connect(self):
1044  iprot = self._iprot
1045  (fname, mtype, rseqid) = iprot.readMessageBegin()
1046  if mtype == TMessageType.EXCEPTION:
1047  x = TApplicationException()
1048  x.read(iprot)
1049  iprot.readMessageEnd()
1050  raise x
1051  result = connect_result()
1052  result.read(iprot)
1053  iprot.readMessageEnd()
1054  if result.success is not None:
1055  return result.success
1056  if result.e is not None:
1057  raise result.e
1058  raise TApplicationException(TApplicationException.MISSING_RESULT, "connect failed: unknown result")
1059 
1060  def krb5_connect(self, inputToken, dbname):
1061  """
1062  Parameters:
1063  - inputToken
1064  - dbname
1065 
1066  """
1067  self.send_krb5_connect(inputToken, dbname)
1068  return self.recv_krb5_connect()
1069 
1070  def send_krb5_connect(self, inputToken, dbname):
1071  self._oprot.writeMessageBegin('krb5_connect', TMessageType.CALL, self._seqid)
1072  args = krb5_connect_args()
1073  args.inputToken = inputToken
1074  args.dbname = dbname
1075  args.write(self._oprot)
1076  self._oprot.writeMessageEnd()
1077  self._oprot.trans.flush()
1078 
1080  iprot = self._iprot
1081  (fname, mtype, rseqid) = iprot.readMessageBegin()
1082  if mtype == TMessageType.EXCEPTION:
1083  x = TApplicationException()
1084  x.read(iprot)
1085  iprot.readMessageEnd()
1086  raise x
1087  result = krb5_connect_result()
1088  result.read(iprot)
1089  iprot.readMessageEnd()
1090  if result.success is not None:
1091  return result.success
1092  if result.e is not None:
1093  raise result.e
1094  raise TApplicationException(TApplicationException.MISSING_RESULT, "krb5_connect failed: unknown result")
1095 
1096  def disconnect(self, session):
1097  """
1098  Parameters:
1099  - session
1100 
1101  """
1102  self.send_disconnect(session)
1103  self.recv_disconnect()
1104 
1105  def send_disconnect(self, session):
1106  self._oprot.writeMessageBegin('disconnect', TMessageType.CALL, self._seqid)
1107  args = disconnect_args()
1108  args.session = session
1109  args.write(self._oprot)
1110  self._oprot.writeMessageEnd()
1111  self._oprot.trans.flush()
1112 
1113  def recv_disconnect(self):
1114  iprot = self._iprot
1115  (fname, mtype, rseqid) = iprot.readMessageBegin()
1116  if mtype == TMessageType.EXCEPTION:
1117  x = TApplicationException()
1118  x.read(iprot)
1119  iprot.readMessageEnd()
1120  raise x
1121  result = disconnect_result()
1122  result.read(iprot)
1123  iprot.readMessageEnd()
1124  if result.e is not None:
1125  raise result.e
1126  return
1127 
1128  def switch_database(self, session, dbname):
1129  """
1130  Parameters:
1131  - session
1132  - dbname
1133 
1134  """
1135  self.send_switch_database(session, dbname)
1136  self.recv_switch_database()
1137 
1138  def send_switch_database(self, session, dbname):
1139  self._oprot.writeMessageBegin('switch_database', TMessageType.CALL, self._seqid)
1140  args = switch_database_args()
1141  args.session = session
1142  args.dbname = dbname
1143  args.write(self._oprot)
1144  self._oprot.writeMessageEnd()
1145  self._oprot.trans.flush()
1146 
1148  iprot = self._iprot
1149  (fname, mtype, rseqid) = iprot.readMessageBegin()
1150  if mtype == TMessageType.EXCEPTION:
1151  x = TApplicationException()
1152  x.read(iprot)
1153  iprot.readMessageEnd()
1154  raise x
1155  result = switch_database_result()
1156  result.read(iprot)
1157  iprot.readMessageEnd()
1158  if result.e is not None:
1159  raise result.e
1160  return
1161 
1162  def clone_session(self, session):
1163  """
1164  Parameters:
1165  - session
1166 
1167  """
1168  self.send_clone_session(session)
1169  return self.recv_clone_session()
1170 
1171  def send_clone_session(self, session):
1172  self._oprot.writeMessageBegin('clone_session', TMessageType.CALL, self._seqid)
1173  args = clone_session_args()
1174  args.session = session
1175  args.write(self._oprot)
1176  self._oprot.writeMessageEnd()
1177  self._oprot.trans.flush()
1178 
1180  iprot = self._iprot
1181  (fname, mtype, rseqid) = iprot.readMessageBegin()
1182  if mtype == TMessageType.EXCEPTION:
1183  x = TApplicationException()
1184  x.read(iprot)
1185  iprot.readMessageEnd()
1186  raise x
1187  result = clone_session_result()
1188  result.read(iprot)
1189  iprot.readMessageEnd()
1190  if result.success is not None:
1191  return result.success
1192  if result.e is not None:
1193  raise result.e
1194  raise TApplicationException(TApplicationException.MISSING_RESULT, "clone_session failed: unknown result")
1195 
1196  def get_server_status(self, session):
1197  """
1198  Parameters:
1199  - session
1200 
1201  """
1202  self.send_get_server_status(session)
1203  return self.recv_get_server_status()
1204 
1205  def send_get_server_status(self, session):
1206  self._oprot.writeMessageBegin('get_server_status', TMessageType.CALL, self._seqid)
1207  args = get_server_status_args()
1208  args.session = session
1209  args.write(self._oprot)
1210  self._oprot.writeMessageEnd()
1211  self._oprot.trans.flush()
1212 
1214  iprot = self._iprot
1215  (fname, mtype, rseqid) = iprot.readMessageBegin()
1216  if mtype == TMessageType.EXCEPTION:
1217  x = TApplicationException()
1218  x.read(iprot)
1219  iprot.readMessageEnd()
1220  raise x
1221  result = get_server_status_result()
1222  result.read(iprot)
1223  iprot.readMessageEnd()
1224  if result.success is not None:
1225  return result.success
1226  if result.e is not None:
1227  raise result.e
1228  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_server_status failed: unknown result")
1229 
1230  def get_status(self, session):
1231  """
1232  Parameters:
1233  - session
1234 
1235  """
1236  self.send_get_status(session)
1237  return self.recv_get_status()
1238 
1239  def send_get_status(self, session):
1240  self._oprot.writeMessageBegin('get_status', TMessageType.CALL, self._seqid)
1241  args = get_status_args()
1242  args.session = session
1243  args.write(self._oprot)
1244  self._oprot.writeMessageEnd()
1245  self._oprot.trans.flush()
1246 
1247  def recv_get_status(self):
1248  iprot = self._iprot
1249  (fname, mtype, rseqid) = iprot.readMessageBegin()
1250  if mtype == TMessageType.EXCEPTION:
1251  x = TApplicationException()
1252  x.read(iprot)
1253  iprot.readMessageEnd()
1254  raise x
1255  result = get_status_result()
1256  result.read(iprot)
1257  iprot.readMessageEnd()
1258  if result.success is not None:
1259  return result.success
1260  if result.e is not None:
1261  raise result.e
1262  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_status failed: unknown result")
1263 
1264  def get_hardware_info(self, session):
1265  """
1266  Parameters:
1267  - session
1268 
1269  """
1270  self.send_get_hardware_info(session)
1271  return self.recv_get_hardware_info()
1272 
1273  def send_get_hardware_info(self, session):
1274  self._oprot.writeMessageBegin('get_hardware_info', TMessageType.CALL, self._seqid)
1275  args = get_hardware_info_args()
1276  args.session = session
1277  args.write(self._oprot)
1278  self._oprot.writeMessageEnd()
1279  self._oprot.trans.flush()
1280 
1282  iprot = self._iprot
1283  (fname, mtype, rseqid) = iprot.readMessageBegin()
1284  if mtype == TMessageType.EXCEPTION:
1285  x = TApplicationException()
1286  x.read(iprot)
1287  iprot.readMessageEnd()
1288  raise x
1289  result = get_hardware_info_result()
1290  result.read(iprot)
1291  iprot.readMessageEnd()
1292  if result.success is not None:
1293  return result.success
1294  if result.e is not None:
1295  raise result.e
1296  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_hardware_info failed: unknown result")
1297 
1298  def get_tables(self, session):
1299  """
1300  Parameters:
1301  - session
1302 
1303  """
1304  self.send_get_tables(session)
1305  return self.recv_get_tables()
1306 
1307  def send_get_tables(self, session):
1308  self._oprot.writeMessageBegin('get_tables', TMessageType.CALL, self._seqid)
1309  args = get_tables_args()
1310  args.session = session
1311  args.write(self._oprot)
1312  self._oprot.writeMessageEnd()
1313  self._oprot.trans.flush()
1314 
1315  def recv_get_tables(self):
1316  iprot = self._iprot
1317  (fname, mtype, rseqid) = iprot.readMessageBegin()
1318  if mtype == TMessageType.EXCEPTION:
1319  x = TApplicationException()
1320  x.read(iprot)
1321  iprot.readMessageEnd()
1322  raise x
1323  result = get_tables_result()
1324  result.read(iprot)
1325  iprot.readMessageEnd()
1326  if result.success is not None:
1327  return result.success
1328  if result.e is not None:
1329  raise result.e
1330  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_tables failed: unknown result")
1331 
1332  def get_tables_for_database(self, session, database_name):
1333  """
1334  Parameters:
1335  - session
1336  - database_name
1337 
1338  """
1339  self.send_get_tables_for_database(session, database_name)
1340  return self.recv_get_tables_for_database()
1341 
1342  def send_get_tables_for_database(self, session, database_name):
1343  self._oprot.writeMessageBegin('get_tables_for_database', TMessageType.CALL, self._seqid)
1345  args.session = session
1346  args.database_name = database_name
1347  args.write(self._oprot)
1348  self._oprot.writeMessageEnd()
1349  self._oprot.trans.flush()
1350 
1352  iprot = self._iprot
1353  (fname, mtype, rseqid) = iprot.readMessageBegin()
1354  if mtype == TMessageType.EXCEPTION:
1355  x = TApplicationException()
1356  x.read(iprot)
1357  iprot.readMessageEnd()
1358  raise x
1360  result.read(iprot)
1361  iprot.readMessageEnd()
1362  if result.success is not None:
1363  return result.success
1364  if result.e is not None:
1365  raise result.e
1366  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_tables_for_database failed: unknown result")
1367 
1368  def get_physical_tables(self, session):
1369  """
1370  Parameters:
1371  - session
1372 
1373  """
1374  self.send_get_physical_tables(session)
1375  return self.recv_get_physical_tables()
1376 
1377  def send_get_physical_tables(self, session):
1378  self._oprot.writeMessageBegin('get_physical_tables', TMessageType.CALL, self._seqid)
1379  args = get_physical_tables_args()
1380  args.session = session
1381  args.write(self._oprot)
1382  self._oprot.writeMessageEnd()
1383  self._oprot.trans.flush()
1384 
1386  iprot = self._iprot
1387  (fname, mtype, rseqid) = iprot.readMessageBegin()
1388  if mtype == TMessageType.EXCEPTION:
1389  x = TApplicationException()
1390  x.read(iprot)
1391  iprot.readMessageEnd()
1392  raise x
1393  result = get_physical_tables_result()
1394  result.read(iprot)
1395  iprot.readMessageEnd()
1396  if result.success is not None:
1397  return result.success
1398  if result.e is not None:
1399  raise result.e
1400  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_physical_tables failed: unknown result")
1401 
1402  def get_views(self, session):
1403  """
1404  Parameters:
1405  - session
1406 
1407  """
1408  self.send_get_views(session)
1409  return self.recv_get_views()
1410 
1411  def send_get_views(self, session):
1412  self._oprot.writeMessageBegin('get_views', TMessageType.CALL, self._seqid)
1413  args = get_views_args()
1414  args.session = session
1415  args.write(self._oprot)
1416  self._oprot.writeMessageEnd()
1417  self._oprot.trans.flush()
1418 
1419  def recv_get_views(self):
1420  iprot = self._iprot
1421  (fname, mtype, rseqid) = iprot.readMessageBegin()
1422  if mtype == TMessageType.EXCEPTION:
1423  x = TApplicationException()
1424  x.read(iprot)
1425  iprot.readMessageEnd()
1426  raise x
1427  result = get_views_result()
1428  result.read(iprot)
1429  iprot.readMessageEnd()
1430  if result.success is not None:
1431  return result.success
1432  if result.e is not None:
1433  raise result.e
1434  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_views failed: unknown result")
1435 
1436  def get_tables_meta(self, session):
1437  """
1438  Parameters:
1439  - session
1440 
1441  """
1442  self.send_get_tables_meta(session)
1443  return self.recv_get_tables_meta()
1444 
1445  def send_get_tables_meta(self, session):
1446  self._oprot.writeMessageBegin('get_tables_meta', TMessageType.CALL, self._seqid)
1447  args = get_tables_meta_args()
1448  args.session = session
1449  args.write(self._oprot)
1450  self._oprot.writeMessageEnd()
1451  self._oprot.trans.flush()
1452 
1454  iprot = self._iprot
1455  (fname, mtype, rseqid) = iprot.readMessageBegin()
1456  if mtype == TMessageType.EXCEPTION:
1457  x = TApplicationException()
1458  x.read(iprot)
1459  iprot.readMessageEnd()
1460  raise x
1461  result = get_tables_meta_result()
1462  result.read(iprot)
1463  iprot.readMessageEnd()
1464  if result.success is not None:
1465  return result.success
1466  if result.e is not None:
1467  raise result.e
1468  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_tables_meta failed: unknown result")
1469 
1470  def get_table_details(self, session, table_name):
1471  """
1472  Parameters:
1473  - session
1474  - table_name
1475 
1476  """
1477  self.send_get_table_details(session, table_name)
1478  return self.recv_get_table_details()
1479 
1480  def send_get_table_details(self, session, table_name):
1481  self._oprot.writeMessageBegin('get_table_details', TMessageType.CALL, self._seqid)
1482  args = get_table_details_args()
1483  args.session = session
1484  args.table_name = table_name
1485  args.write(self._oprot)
1486  self._oprot.writeMessageEnd()
1487  self._oprot.trans.flush()
1488 
1490  iprot = self._iprot
1491  (fname, mtype, rseqid) = iprot.readMessageBegin()
1492  if mtype == TMessageType.EXCEPTION:
1493  x = TApplicationException()
1494  x.read(iprot)
1495  iprot.readMessageEnd()
1496  raise x
1497  result = get_table_details_result()
1498  result.read(iprot)
1499  iprot.readMessageEnd()
1500  if result.success is not None:
1501  return result.success
1502  if result.e is not None:
1503  raise result.e
1504  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_details failed: unknown result")
1505 
1506  def get_table_details_for_database(self, session, table_name, database_name):
1507  """
1508  Parameters:
1509  - session
1510  - table_name
1511  - database_name
1512 
1513  """
1514  self.send_get_table_details_for_database(session, table_name, database_name)
1516 
1517  def send_get_table_details_for_database(self, session, table_name, database_name):
1518  self._oprot.writeMessageBegin('get_table_details_for_database', TMessageType.CALL, self._seqid)
1520  args.session = session
1521  args.table_name = table_name
1522  args.database_name = database_name
1523  args.write(self._oprot)
1524  self._oprot.writeMessageEnd()
1525  self._oprot.trans.flush()
1526 
1528  iprot = self._iprot
1529  (fname, mtype, rseqid) = iprot.readMessageBegin()
1530  if mtype == TMessageType.EXCEPTION:
1531  x = TApplicationException()
1532  x.read(iprot)
1533  iprot.readMessageEnd()
1534  raise x
1536  result.read(iprot)
1537  iprot.readMessageEnd()
1538  if result.success is not None:
1539  return result.success
1540  if result.e is not None:
1541  raise result.e
1542  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_details_for_database failed: unknown result")
1543 
1544  def get_internal_table_details(self, session, table_name, include_system_columns):
1545  """
1546  Parameters:
1547  - session
1548  - table_name
1549  - include_system_columns
1550 
1551  """
1552  self.send_get_internal_table_details(session, table_name, include_system_columns)
1553  return self.recv_get_internal_table_details()
1554 
1555  def send_get_internal_table_details(self, session, table_name, include_system_columns):
1556  self._oprot.writeMessageBegin('get_internal_table_details', TMessageType.CALL, self._seqid)
1558  args.session = session
1559  args.table_name = table_name
1560  args.include_system_columns = include_system_columns
1561  args.write(self._oprot)
1562  self._oprot.writeMessageEnd()
1563  self._oprot.trans.flush()
1564 
1566  iprot = self._iprot
1567  (fname, mtype, rseqid) = iprot.readMessageBegin()
1568  if mtype == TMessageType.EXCEPTION:
1569  x = TApplicationException()
1570  x.read(iprot)
1571  iprot.readMessageEnd()
1572  raise x
1574  result.read(iprot)
1575  iprot.readMessageEnd()
1576  if result.success is not None:
1577  return result.success
1578  if result.e is not None:
1579  raise result.e
1580  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_internal_table_details failed: unknown result")
1581 
1582  def get_internal_table_details_for_database(self, session, table_name, database_name):
1583  """
1584  Parameters:
1585  - session
1586  - table_name
1587  - database_name
1588 
1589  """
1590  self.send_get_internal_table_details_for_database(session, table_name, database_name)
1592 
1593  def send_get_internal_table_details_for_database(self, session, table_name, database_name):
1594  self._oprot.writeMessageBegin('get_internal_table_details_for_database', TMessageType.CALL, self._seqid)
1596  args.session = session
1597  args.table_name = table_name
1598  args.database_name = database_name
1599  args.write(self._oprot)
1600  self._oprot.writeMessageEnd()
1601  self._oprot.trans.flush()
1602 
1604  iprot = self._iprot
1605  (fname, mtype, rseqid) = iprot.readMessageBegin()
1606  if mtype == TMessageType.EXCEPTION:
1607  x = TApplicationException()
1608  x.read(iprot)
1609  iprot.readMessageEnd()
1610  raise x
1612  result.read(iprot)
1613  iprot.readMessageEnd()
1614  if result.success is not None:
1615  return result.success
1616  if result.e is not None:
1617  raise result.e
1618  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_internal_table_details_for_database failed: unknown result")
1619 
1620  def get_users(self, session):
1621  """
1622  Parameters:
1623  - session
1624 
1625  """
1626  self.send_get_users(session)
1627  return self.recv_get_users()
1628 
1629  def send_get_users(self, session):
1630  self._oprot.writeMessageBegin('get_users', TMessageType.CALL, self._seqid)
1631  args = get_users_args()
1632  args.session = session
1633  args.write(self._oprot)
1634  self._oprot.writeMessageEnd()
1635  self._oprot.trans.flush()
1636 
1637  def recv_get_users(self):
1638  iprot = self._iprot
1639  (fname, mtype, rseqid) = iprot.readMessageBegin()
1640  if mtype == TMessageType.EXCEPTION:
1641  x = TApplicationException()
1642  x.read(iprot)
1643  iprot.readMessageEnd()
1644  raise x
1645  result = get_users_result()
1646  result.read(iprot)
1647  iprot.readMessageEnd()
1648  if result.success is not None:
1649  return result.success
1650  if result.e is not None:
1651  raise result.e
1652  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_users failed: unknown result")
1653 
1654  def get_databases(self, session):
1655  """
1656  Parameters:
1657  - session
1658 
1659  """
1660  self.send_get_databases(session)
1661  return self.recv_get_databases()
1662 
1663  def send_get_databases(self, session):
1664  self._oprot.writeMessageBegin('get_databases', TMessageType.CALL, self._seqid)
1665  args = get_databases_args()
1666  args.session = session
1667  args.write(self._oprot)
1668  self._oprot.writeMessageEnd()
1669  self._oprot.trans.flush()
1670 
1672  iprot = self._iprot
1673  (fname, mtype, rseqid) = iprot.readMessageBegin()
1674  if mtype == TMessageType.EXCEPTION:
1675  x = TApplicationException()
1676  x.read(iprot)
1677  iprot.readMessageEnd()
1678  raise x
1679  result = get_databases_result()
1680  result.read(iprot)
1681  iprot.readMessageEnd()
1682  if result.success is not None:
1683  return result.success
1684  if result.e is not None:
1685  raise result.e
1686  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_databases failed: unknown result")
1687 
1688  def get_version(self):
1689  self.send_get_version()
1690  return self.recv_get_version()
1691 
1692  def send_get_version(self):
1693  self._oprot.writeMessageBegin('get_version', TMessageType.CALL, self._seqid)
1694  args = get_version_args()
1695  args.write(self._oprot)
1696  self._oprot.writeMessageEnd()
1697  self._oprot.trans.flush()
1698 
1699  def recv_get_version(self):
1700  iprot = self._iprot
1701  (fname, mtype, rseqid) = iprot.readMessageBegin()
1702  if mtype == TMessageType.EXCEPTION:
1703  x = TApplicationException()
1704  x.read(iprot)
1705  iprot.readMessageEnd()
1706  raise x
1707  result = get_version_result()
1708  result.read(iprot)
1709  iprot.readMessageEnd()
1710  if result.success is not None:
1711  return result.success
1712  if result.e is not None:
1713  raise result.e
1714  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_version failed: unknown result")
1715 
1716  def start_heap_profile(self, session):
1717  """
1718  Parameters:
1719  - session
1720 
1721  """
1722  self.send_start_heap_profile(session)
1724 
1725  def send_start_heap_profile(self, session):
1726  self._oprot.writeMessageBegin('start_heap_profile', TMessageType.CALL, self._seqid)
1727  args = start_heap_profile_args()
1728  args.session = session
1729  args.write(self._oprot)
1730  self._oprot.writeMessageEnd()
1731  self._oprot.trans.flush()
1732 
1734  iprot = self._iprot
1735  (fname, mtype, rseqid) = iprot.readMessageBegin()
1736  if mtype == TMessageType.EXCEPTION:
1737  x = TApplicationException()
1738  x.read(iprot)
1739  iprot.readMessageEnd()
1740  raise x
1741  result = start_heap_profile_result()
1742  result.read(iprot)
1743  iprot.readMessageEnd()
1744  if result.e is not None:
1745  raise result.e
1746  return
1747 
1748  def stop_heap_profile(self, session):
1749  """
1750  Parameters:
1751  - session
1752 
1753  """
1754  self.send_stop_heap_profile(session)
1755  self.recv_stop_heap_profile()
1756 
1757  def send_stop_heap_profile(self, session):
1758  self._oprot.writeMessageBegin('stop_heap_profile', TMessageType.CALL, self._seqid)
1759  args = stop_heap_profile_args()
1760  args.session = session
1761  args.write(self._oprot)
1762  self._oprot.writeMessageEnd()
1763  self._oprot.trans.flush()
1764 
1766  iprot = self._iprot
1767  (fname, mtype, rseqid) = iprot.readMessageBegin()
1768  if mtype == TMessageType.EXCEPTION:
1769  x = TApplicationException()
1770  x.read(iprot)
1771  iprot.readMessageEnd()
1772  raise x
1773  result = stop_heap_profile_result()
1774  result.read(iprot)
1775  iprot.readMessageEnd()
1776  if result.e is not None:
1777  raise result.e
1778  return
1779 
1780  def get_heap_profile(self, session):
1781  """
1782  Parameters:
1783  - session
1784 
1785  """
1786  self.send_get_heap_profile(session)
1787  return self.recv_get_heap_profile()
1788 
1789  def send_get_heap_profile(self, session):
1790  self._oprot.writeMessageBegin('get_heap_profile', TMessageType.CALL, self._seqid)
1791  args = get_heap_profile_args()
1792  args.session = session
1793  args.write(self._oprot)
1794  self._oprot.writeMessageEnd()
1795  self._oprot.trans.flush()
1796 
1798  iprot = self._iprot
1799  (fname, mtype, rseqid) = iprot.readMessageBegin()
1800  if mtype == TMessageType.EXCEPTION:
1801  x = TApplicationException()
1802  x.read(iprot)
1803  iprot.readMessageEnd()
1804  raise x
1805  result = get_heap_profile_result()
1806  result.read(iprot)
1807  iprot.readMessageEnd()
1808  if result.success is not None:
1809  return result.success
1810  if result.e is not None:
1811  raise result.e
1812  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_heap_profile failed: unknown result")
1813 
1814  def get_memory(self, session, memory_level):
1815  """
1816  Parameters:
1817  - session
1818  - memory_level
1819 
1820  """
1821  self.send_get_memory(session, memory_level)
1822  return self.recv_get_memory()
1823 
1824  def send_get_memory(self, session, memory_level):
1825  self._oprot.writeMessageBegin('get_memory', TMessageType.CALL, self._seqid)
1826  args = get_memory_args()
1827  args.session = session
1828  args.memory_level = memory_level
1829  args.write(self._oprot)
1830  self._oprot.writeMessageEnd()
1831  self._oprot.trans.flush()
1832 
1833  def recv_get_memory(self):
1834  iprot = self._iprot
1835  (fname, mtype, rseqid) = iprot.readMessageBegin()
1836  if mtype == TMessageType.EXCEPTION:
1837  x = TApplicationException()
1838  x.read(iprot)
1839  iprot.readMessageEnd()
1840  raise x
1841  result = get_memory_result()
1842  result.read(iprot)
1843  iprot.readMessageEnd()
1844  if result.success is not None:
1845  return result.success
1846  if result.e is not None:
1847  raise result.e
1848  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_memory failed: unknown result")
1849 
1850  def clear_cpu_memory(self, session):
1851  """
1852  Parameters:
1853  - session
1854 
1855  """
1856  self.send_clear_cpu_memory(session)
1857  self.recv_clear_cpu_memory()
1858 
1859  def send_clear_cpu_memory(self, session):
1860  self._oprot.writeMessageBegin('clear_cpu_memory', TMessageType.CALL, self._seqid)
1861  args = clear_cpu_memory_args()
1862  args.session = session
1863  args.write(self._oprot)
1864  self._oprot.writeMessageEnd()
1865  self._oprot.trans.flush()
1866 
1868  iprot = self._iprot
1869  (fname, mtype, rseqid) = iprot.readMessageBegin()
1870  if mtype == TMessageType.EXCEPTION:
1871  x = TApplicationException()
1872  x.read(iprot)
1873  iprot.readMessageEnd()
1874  raise x
1875  result = clear_cpu_memory_result()
1876  result.read(iprot)
1877  iprot.readMessageEnd()
1878  if result.e is not None:
1879  raise result.e
1880  return
1881 
1882  def clear_gpu_memory(self, session):
1883  """
1884  Parameters:
1885  - session
1886 
1887  """
1888  self.send_clear_gpu_memory(session)
1889  self.recv_clear_gpu_memory()
1890 
1891  def send_clear_gpu_memory(self, session):
1892  self._oprot.writeMessageBegin('clear_gpu_memory', TMessageType.CALL, self._seqid)
1893  args = clear_gpu_memory_args()
1894  args.session = session
1895  args.write(self._oprot)
1896  self._oprot.writeMessageEnd()
1897  self._oprot.trans.flush()
1898 
1900  iprot = self._iprot
1901  (fname, mtype, rseqid) = iprot.readMessageBegin()
1902  if mtype == TMessageType.EXCEPTION:
1903  x = TApplicationException()
1904  x.read(iprot)
1905  iprot.readMessageEnd()
1906  raise x
1907  result = clear_gpu_memory_result()
1908  result.read(iprot)
1909  iprot.readMessageEnd()
1910  if result.e is not None:
1911  raise result.e
1912  return
1913 
1914  def set_cur_session(self, parent_session, leaf_session, start_time_str, label, for_running_query_kernel):
1915  """
1916  Parameters:
1917  - parent_session
1918  - leaf_session
1919  - start_time_str
1920  - label
1921  - for_running_query_kernel
1922 
1923  """
1924  self.send_set_cur_session(parent_session, leaf_session, start_time_str, label, for_running_query_kernel)
1925  self.recv_set_cur_session()
1926 
1927  def send_set_cur_session(self, parent_session, leaf_session, start_time_str, label, for_running_query_kernel):
1928  self._oprot.writeMessageBegin('set_cur_session', TMessageType.CALL, self._seqid)
1929  args = set_cur_session_args()
1930  args.parent_session = parent_session
1931  args.leaf_session = leaf_session
1932  args.start_time_str = start_time_str
1933  args.label = label
1934  args.for_running_query_kernel = for_running_query_kernel
1935  args.write(self._oprot)
1936  self._oprot.writeMessageEnd()
1937  self._oprot.trans.flush()
1938 
1940  iprot = self._iprot
1941  (fname, mtype, rseqid) = iprot.readMessageBegin()
1942  if mtype == TMessageType.EXCEPTION:
1943  x = TApplicationException()
1944  x.read(iprot)
1945  iprot.readMessageEnd()
1946  raise x
1947  result = set_cur_session_result()
1948  result.read(iprot)
1949  iprot.readMessageEnd()
1950  if result.e is not None:
1951  raise result.e
1952  return
1953 
1954  def invalidate_cur_session(self, parent_session, leaf_session, start_time_str, label, for_running_query_kernel):
1955  """
1956  Parameters:
1957  - parent_session
1958  - leaf_session
1959  - start_time_str
1960  - label
1961  - for_running_query_kernel
1962 
1963  """
1964  self.send_invalidate_cur_session(parent_session, leaf_session, start_time_str, label, for_running_query_kernel)
1966 
1967  def send_invalidate_cur_session(self, parent_session, leaf_session, start_time_str, label, for_running_query_kernel):
1968  self._oprot.writeMessageBegin('invalidate_cur_session', TMessageType.CALL, self._seqid)
1970  args.parent_session = parent_session
1971  args.leaf_session = leaf_session
1972  args.start_time_str = start_time_str
1973  args.label = label
1974  args.for_running_query_kernel = for_running_query_kernel
1975  args.write(self._oprot)
1976  self._oprot.writeMessageEnd()
1977  self._oprot.trans.flush()
1978 
1980  iprot = self._iprot
1981  (fname, mtype, rseqid) = iprot.readMessageBegin()
1982  if mtype == TMessageType.EXCEPTION:
1983  x = TApplicationException()
1984  x.read(iprot)
1985  iprot.readMessageEnd()
1986  raise x
1988  result.read(iprot)
1989  iprot.readMessageEnd()
1990  if result.e is not None:
1991  raise result.e
1992  return
1993 
1994  def set_table_epoch(self, session, db_id, table_id, new_epoch):
1995  """
1996  Parameters:
1997  - session
1998  - db_id
1999  - table_id
2000  - new_epoch
2001 
2002  """
2003  self.send_set_table_epoch(session, db_id, table_id, new_epoch)
2004  self.recv_set_table_epoch()
2005 
2006  def send_set_table_epoch(self, session, db_id, table_id, new_epoch):
2007  self._oprot.writeMessageBegin('set_table_epoch', TMessageType.CALL, self._seqid)
2008  args = set_table_epoch_args()
2009  args.session = session
2010  args.db_id = db_id
2011  args.table_id = table_id
2012  args.new_epoch = new_epoch
2013  args.write(self._oprot)
2014  self._oprot.writeMessageEnd()
2015  self._oprot.trans.flush()
2016 
2018  iprot = self._iprot
2019  (fname, mtype, rseqid) = iprot.readMessageBegin()
2020  if mtype == TMessageType.EXCEPTION:
2021  x = TApplicationException()
2022  x.read(iprot)
2023  iprot.readMessageEnd()
2024  raise x
2025  result = set_table_epoch_result()
2026  result.read(iprot)
2027  iprot.readMessageEnd()
2028  if result.e is not None:
2029  raise result.e
2030  return
2031 
2032  def set_table_epoch_by_name(self, session, table_name, new_epoch):
2033  """
2034  Parameters:
2035  - session
2036  - table_name
2037  - new_epoch
2038 
2039  """
2040  self.send_set_table_epoch_by_name(session, table_name, new_epoch)
2042 
2043  def send_set_table_epoch_by_name(self, session, table_name, new_epoch):
2044  self._oprot.writeMessageBegin('set_table_epoch_by_name', TMessageType.CALL, self._seqid)
2046  args.session = session
2047  args.table_name = table_name
2048  args.new_epoch = new_epoch
2049  args.write(self._oprot)
2050  self._oprot.writeMessageEnd()
2051  self._oprot.trans.flush()
2052 
2054  iprot = self._iprot
2055  (fname, mtype, rseqid) = iprot.readMessageBegin()
2056  if mtype == TMessageType.EXCEPTION:
2057  x = TApplicationException()
2058  x.read(iprot)
2059  iprot.readMessageEnd()
2060  raise x
2062  result.read(iprot)
2063  iprot.readMessageEnd()
2064  if result.e is not None:
2065  raise result.e
2066  return
2067 
2068  def get_table_epoch(self, session, db_id, table_id):
2069  """
2070  Parameters:
2071  - session
2072  - db_id
2073  - table_id
2074 
2075  """
2076  self.send_get_table_epoch(session, db_id, table_id)
2077  return self.recv_get_table_epoch()
2078 
2079  def send_get_table_epoch(self, session, db_id, table_id):
2080  self._oprot.writeMessageBegin('get_table_epoch', TMessageType.CALL, self._seqid)
2081  args = get_table_epoch_args()
2082  args.session = session
2083  args.db_id = db_id
2084  args.table_id = table_id
2085  args.write(self._oprot)
2086  self._oprot.writeMessageEnd()
2087  self._oprot.trans.flush()
2088 
2090  iprot = self._iprot
2091  (fname, mtype, rseqid) = iprot.readMessageBegin()
2092  if mtype == TMessageType.EXCEPTION:
2093  x = TApplicationException()
2094  x.read(iprot)
2095  iprot.readMessageEnd()
2096  raise x
2097  result = get_table_epoch_result()
2098  result.read(iprot)
2099  iprot.readMessageEnd()
2100  if result.success is not None:
2101  return result.success
2102  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_epoch failed: unknown result")
2103 
2104  def get_table_epoch_by_name(self, session, table_name):
2105  """
2106  Parameters:
2107  - session
2108  - table_name
2109 
2110  """
2111  self.send_get_table_epoch_by_name(session, table_name)
2112  return self.recv_get_table_epoch_by_name()
2113 
2114  def send_get_table_epoch_by_name(self, session, table_name):
2115  self._oprot.writeMessageBegin('get_table_epoch_by_name', TMessageType.CALL, self._seqid)
2117  args.session = session
2118  args.table_name = table_name
2119  args.write(self._oprot)
2120  self._oprot.writeMessageEnd()
2121  self._oprot.trans.flush()
2122 
2124  iprot = self._iprot
2125  (fname, mtype, rseqid) = iprot.readMessageBegin()
2126  if mtype == TMessageType.EXCEPTION:
2127  x = TApplicationException()
2128  x.read(iprot)
2129  iprot.readMessageEnd()
2130  raise x
2132  result.read(iprot)
2133  iprot.readMessageEnd()
2134  if result.success is not None:
2135  return result.success
2136  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_epoch_by_name failed: unknown result")
2137 
2138  def get_table_epochs(self, session, db_id, table_id):
2139  """
2140  Parameters:
2141  - session
2142  - db_id
2143  - table_id
2144 
2145  """
2146  self.send_get_table_epochs(session, db_id, table_id)
2147  return self.recv_get_table_epochs()
2148 
2149  def send_get_table_epochs(self, session, db_id, table_id):
2150  self._oprot.writeMessageBegin('get_table_epochs', TMessageType.CALL, self._seqid)
2151  args = get_table_epochs_args()
2152  args.session = session
2153  args.db_id = db_id
2154  args.table_id = table_id
2155  args.write(self._oprot)
2156  self._oprot.writeMessageEnd()
2157  self._oprot.trans.flush()
2158 
2160  iprot = self._iprot
2161  (fname, mtype, rseqid) = iprot.readMessageBegin()
2162  if mtype == TMessageType.EXCEPTION:
2163  x = TApplicationException()
2164  x.read(iprot)
2165  iprot.readMessageEnd()
2166  raise x
2167  result = get_table_epochs_result()
2168  result.read(iprot)
2169  iprot.readMessageEnd()
2170  if result.success is not None:
2171  return result.success
2172  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_epochs failed: unknown result")
2173 
2174  def set_table_epochs(self, session, db_id, table_epochs):
2175  """
2176  Parameters:
2177  - session
2178  - db_id
2179  - table_epochs
2180 
2181  """
2182  self.send_set_table_epochs(session, db_id, table_epochs)
2183  self.recv_set_table_epochs()
2184 
2185  def send_set_table_epochs(self, session, db_id, table_epochs):
2186  self._oprot.writeMessageBegin('set_table_epochs', TMessageType.CALL, self._seqid)
2187  args = set_table_epochs_args()
2188  args.session = session
2189  args.db_id = db_id
2190  args.table_epochs = table_epochs
2191  args.write(self._oprot)
2192  self._oprot.writeMessageEnd()
2193  self._oprot.trans.flush()
2194 
2196  iprot = self._iprot
2197  (fname, mtype, rseqid) = iprot.readMessageBegin()
2198  if mtype == TMessageType.EXCEPTION:
2199  x = TApplicationException()
2200  x.read(iprot)
2201  iprot.readMessageEnd()
2202  raise x
2203  result = set_table_epochs_result()
2204  result.read(iprot)
2205  iprot.readMessageEnd()
2206  return
2207 
2208  def get_session_info(self, session):
2209  """
2210  Parameters:
2211  - session
2212 
2213  """
2214  self.send_get_session_info(session)
2215  return self.recv_get_session_info()
2216 
2217  def send_get_session_info(self, session):
2218  self._oprot.writeMessageBegin('get_session_info', TMessageType.CALL, self._seqid)
2219  args = get_session_info_args()
2220  args.session = session
2221  args.write(self._oprot)
2222  self._oprot.writeMessageEnd()
2223  self._oprot.trans.flush()
2224 
2226  iprot = self._iprot
2227  (fname, mtype, rseqid) = iprot.readMessageBegin()
2228  if mtype == TMessageType.EXCEPTION:
2229  x = TApplicationException()
2230  x.read(iprot)
2231  iprot.readMessageEnd()
2232  raise x
2233  result = get_session_info_result()
2234  result.read(iprot)
2235  iprot.readMessageEnd()
2236  if result.success is not None:
2237  return result.success
2238  if result.e is not None:
2239  raise result.e
2240  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_session_info failed: unknown result")
2241 
2242  def get_queries_info(self, session):
2243  """
2244  Parameters:
2245  - session
2246 
2247  """
2248  self.send_get_queries_info(session)
2249  return self.recv_get_queries_info()
2250 
2251  def send_get_queries_info(self, session):
2252  self._oprot.writeMessageBegin('get_queries_info', TMessageType.CALL, self._seqid)
2253  args = get_queries_info_args()
2254  args.session = session
2255  args.write(self._oprot)
2256  self._oprot.writeMessageEnd()
2257  self._oprot.trans.flush()
2258 
2260  iprot = self._iprot
2261  (fname, mtype, rseqid) = iprot.readMessageBegin()
2262  if mtype == TMessageType.EXCEPTION:
2263  x = TApplicationException()
2264  x.read(iprot)
2265  iprot.readMessageEnd()
2266  raise x
2267  result = get_queries_info_result()
2268  result.read(iprot)
2269  iprot.readMessageEnd()
2270  if result.success is not None:
2271  return result.success
2272  if result.e is not None:
2273  raise result.e
2274  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_queries_info failed: unknown result")
2275 
2276  def set_leaf_info(self, session, leaf_info):
2277  """
2278  Parameters:
2279  - session
2280  - leaf_info
2281 
2282  """
2283  self.send_set_leaf_info(session, leaf_info)
2284  self.recv_set_leaf_info()
2285 
2286  def send_set_leaf_info(self, session, leaf_info):
2287  self._oprot.writeMessageBegin('set_leaf_info', TMessageType.CALL, self._seqid)
2288  args = set_leaf_info_args()
2289  args.session = session
2290  args.leaf_info = leaf_info
2291  args.write(self._oprot)
2292  self._oprot.writeMessageEnd()
2293  self._oprot.trans.flush()
2294 
2296  iprot = self._iprot
2297  (fname, mtype, rseqid) = iprot.readMessageBegin()
2298  if mtype == TMessageType.EXCEPTION:
2299  x = TApplicationException()
2300  x.read(iprot)
2301  iprot.readMessageEnd()
2302  raise x
2303  result = set_leaf_info_result()
2304  result.read(iprot)
2305  iprot.readMessageEnd()
2306  if result.e is not None:
2307  raise result.e
2308  return
2309 
2310  def sql_execute(self, session, query, column_format, nonce, first_n, at_most_n):
2311  """
2312  Parameters:
2313  - session
2314  - query
2315  - column_format
2316  - nonce
2317  - first_n
2318  - at_most_n
2319 
2320  """
2321  self.send_sql_execute(session, query, column_format, nonce, first_n, at_most_n)
2322  return self.recv_sql_execute()
2323 
2324  def send_sql_execute(self, session, query, column_format, nonce, first_n, at_most_n):
2325  self._oprot.writeMessageBegin('sql_execute', TMessageType.CALL, self._seqid)
2326  args = sql_execute_args()
2327  args.session = session
2328  args.query = query
2329  args.column_format = column_format
2330  args.nonce = nonce
2331  args.first_n = first_n
2332  args.at_most_n = at_most_n
2333  args.write(self._oprot)
2334  self._oprot.writeMessageEnd()
2335  self._oprot.trans.flush()
2336 
2337  def recv_sql_execute(self):
2338  iprot = self._iprot
2339  (fname, mtype, rseqid) = iprot.readMessageBegin()
2340  if mtype == TMessageType.EXCEPTION:
2341  x = TApplicationException()
2342  x.read(iprot)
2343  iprot.readMessageEnd()
2344  raise x
2345  result = sql_execute_result()
2346  result.read(iprot)
2347  iprot.readMessageEnd()
2348  if result.success is not None:
2349  return result.success
2350  if result.e is not None:
2351  raise result.e
2352  raise TApplicationException(TApplicationException.MISSING_RESULT, "sql_execute failed: unknown result")
2353 
2354  def sql_execute_df(self, session, query, device_type, device_id, first_n, transport_method):
2355  """
2356  Parameters:
2357  - session
2358  - query
2359  - device_type
2360  - device_id
2361  - first_n
2362  - transport_method
2363 
2364  """
2365  self.send_sql_execute_df(session, query, device_type, device_id, first_n, transport_method)
2366  return self.recv_sql_execute_df()
2367 
2368  def send_sql_execute_df(self, session, query, device_type, device_id, first_n, transport_method):
2369  self._oprot.writeMessageBegin('sql_execute_df', TMessageType.CALL, self._seqid)
2370  args = sql_execute_df_args()
2371  args.session = session
2372  args.query = query
2373  args.device_type = device_type
2374  args.device_id = device_id
2375  args.first_n = first_n
2376  args.transport_method = transport_method
2377  args.write(self._oprot)
2378  self._oprot.writeMessageEnd()
2379  self._oprot.trans.flush()
2380 
2382  iprot = self._iprot
2383  (fname, mtype, rseqid) = iprot.readMessageBegin()
2384  if mtype == TMessageType.EXCEPTION:
2385  x = TApplicationException()
2386  x.read(iprot)
2387  iprot.readMessageEnd()
2388  raise x
2389  result = sql_execute_df_result()
2390  result.read(iprot)
2391  iprot.readMessageEnd()
2392  if result.success is not None:
2393  return result.success
2394  if result.e is not None:
2395  raise result.e
2396  raise TApplicationException(TApplicationException.MISSING_RESULT, "sql_execute_df failed: unknown result")
2397 
2398  def sql_execute_gdf(self, session, query, device_id, first_n):
2399  """
2400  Parameters:
2401  - session
2402  - query
2403  - device_id
2404  - first_n
2405 
2406  """
2407  self.send_sql_execute_gdf(session, query, device_id, first_n)
2408  return self.recv_sql_execute_gdf()
2409 
2410  def send_sql_execute_gdf(self, session, query, device_id, first_n):
2411  self._oprot.writeMessageBegin('sql_execute_gdf', TMessageType.CALL, self._seqid)
2412  args = sql_execute_gdf_args()
2413  args.session = session
2414  args.query = query
2415  args.device_id = device_id
2416  args.first_n = first_n
2417  args.write(self._oprot)
2418  self._oprot.writeMessageEnd()
2419  self._oprot.trans.flush()
2420 
2422  iprot = self._iprot
2423  (fname, mtype, rseqid) = iprot.readMessageBegin()
2424  if mtype == TMessageType.EXCEPTION:
2425  x = TApplicationException()
2426  x.read(iprot)
2427  iprot.readMessageEnd()
2428  raise x
2429  result = sql_execute_gdf_result()
2430  result.read(iprot)
2431  iprot.readMessageEnd()
2432  if result.success is not None:
2433  return result.success
2434  if result.e is not None:
2435  raise result.e
2436  raise TApplicationException(TApplicationException.MISSING_RESULT, "sql_execute_gdf failed: unknown result")
2437 
2438  def deallocate_df(self, session, df, device_type, device_id):
2439  """
2440  Parameters:
2441  - session
2442  - df
2443  - device_type
2444  - device_id
2445 
2446  """
2447  self.send_deallocate_df(session, df, device_type, device_id)
2448  self.recv_deallocate_df()
2449 
2450  def send_deallocate_df(self, session, df, device_type, device_id):
2451  self._oprot.writeMessageBegin('deallocate_df', TMessageType.CALL, self._seqid)
2452  args = deallocate_df_args()
2453  args.session = session
2454  args.df = df
2455  args.device_type = device_type
2456  args.device_id = device_id
2457  args.write(self._oprot)
2458  self._oprot.writeMessageEnd()
2459  self._oprot.trans.flush()
2460 
2462  iprot = self._iprot
2463  (fname, mtype, rseqid) = iprot.readMessageBegin()
2464  if mtype == TMessageType.EXCEPTION:
2465  x = TApplicationException()
2466  x.read(iprot)
2467  iprot.readMessageEnd()
2468  raise x
2469  result = deallocate_df_result()
2470  result.read(iprot)
2471  iprot.readMessageEnd()
2472  if result.e is not None:
2473  raise result.e
2474  return
2475 
2476  def interrupt(self, query_session, interrupt_session):
2477  """
2478  Parameters:
2479  - query_session
2480  - interrupt_session
2481 
2482  """
2483  self.send_interrupt(query_session, interrupt_session)
2484  self.recv_interrupt()
2485 
2486  def send_interrupt(self, query_session, interrupt_session):
2487  self._oprot.writeMessageBegin('interrupt', TMessageType.CALL, self._seqid)
2488  args = interrupt_args()
2489  args.query_session = query_session
2490  args.interrupt_session = interrupt_session
2491  args.write(self._oprot)
2492  self._oprot.writeMessageEnd()
2493  self._oprot.trans.flush()
2494 
2495  def recv_interrupt(self):
2496  iprot = self._iprot
2497  (fname, mtype, rseqid) = iprot.readMessageBegin()
2498  if mtype == TMessageType.EXCEPTION:
2499  x = TApplicationException()
2500  x.read(iprot)
2501  iprot.readMessageEnd()
2502  raise x
2503  result = interrupt_result()
2504  result.read(iprot)
2505  iprot.readMessageEnd()
2506  if result.e is not None:
2507  raise result.e
2508  return
2509 
2510  def sql_validate(self, session, query):
2511  """
2512  Parameters:
2513  - session
2514  - query
2515 
2516  """
2517  self.send_sql_validate(session, query)
2518  return self.recv_sql_validate()
2519 
2520  def send_sql_validate(self, session, query):
2521  self._oprot.writeMessageBegin('sql_validate', TMessageType.CALL, self._seqid)
2522  args = sql_validate_args()
2523  args.session = session
2524  args.query = query
2525  args.write(self._oprot)
2526  self._oprot.writeMessageEnd()
2527  self._oprot.trans.flush()
2528 
2530  iprot = self._iprot
2531  (fname, mtype, rseqid) = iprot.readMessageBegin()
2532  if mtype == TMessageType.EXCEPTION:
2533  x = TApplicationException()
2534  x.read(iprot)
2535  iprot.readMessageEnd()
2536  raise x
2537  result = sql_validate_result()
2538  result.read(iprot)
2539  iprot.readMessageEnd()
2540  if result.success is not None:
2541  return result.success
2542  if result.e is not None:
2543  raise result.e
2544  raise TApplicationException(TApplicationException.MISSING_RESULT, "sql_validate failed: unknown result")
2545 
2546  def get_completion_hints(self, session, sql, cursor):
2547  """
2548  Parameters:
2549  - session
2550  - sql
2551  - cursor
2552 
2553  """
2554  self.send_get_completion_hints(session, sql, cursor)
2555  return self.recv_get_completion_hints()
2556 
2557  def send_get_completion_hints(self, session, sql, cursor):
2558  self._oprot.writeMessageBegin('get_completion_hints', TMessageType.CALL, self._seqid)
2559  args = get_completion_hints_args()
2560  args.session = session
2561  args.sql = sql
2562  args.cursor = cursor
2563  args.write(self._oprot)
2564  self._oprot.writeMessageEnd()
2565  self._oprot.trans.flush()
2566 
2568  iprot = self._iprot
2569  (fname, mtype, rseqid) = iprot.readMessageBegin()
2570  if mtype == TMessageType.EXCEPTION:
2571  x = TApplicationException()
2572  x.read(iprot)
2573  iprot.readMessageEnd()
2574  raise x
2575  result = get_completion_hints_result()
2576  result.read(iprot)
2577  iprot.readMessageEnd()
2578  if result.success is not None:
2579  return result.success
2580  if result.e is not None:
2581  raise result.e
2582  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_completion_hints failed: unknown result")
2583 
2584  def set_execution_mode(self, session, mode):
2585  """
2586  Parameters:
2587  - session
2588  - mode
2589 
2590  """
2591  self.send_set_execution_mode(session, mode)
2593 
2594  def send_set_execution_mode(self, session, mode):
2595  self._oprot.writeMessageBegin('set_execution_mode', TMessageType.CALL, self._seqid)
2596  args = set_execution_mode_args()
2597  args.session = session
2598  args.mode = mode
2599  args.write(self._oprot)
2600  self._oprot.writeMessageEnd()
2601  self._oprot.trans.flush()
2602 
2604  iprot = self._iprot
2605  (fname, mtype, rseqid) = iprot.readMessageBegin()
2606  if mtype == TMessageType.EXCEPTION:
2607  x = TApplicationException()
2608  x.read(iprot)
2609  iprot.readMessageEnd()
2610  raise x
2611  result = set_execution_mode_result()
2612  result.read(iprot)
2613  iprot.readMessageEnd()
2614  if result.e is not None:
2615  raise result.e
2616  return
2617 
2618  def render_vega(self, session, widget_id, vega_json, compression_level, nonce):
2619  """
2620  Parameters:
2621  - session
2622  - widget_id
2623  - vega_json
2624  - compression_level
2625  - nonce
2626 
2627  """
2628  self.send_render_vega(session, widget_id, vega_json, compression_level, nonce)
2629  return self.recv_render_vega()
2630 
2631  def send_render_vega(self, session, widget_id, vega_json, compression_level, nonce):
2632  self._oprot.writeMessageBegin('render_vega', TMessageType.CALL, self._seqid)
2633  args = render_vega_args()
2634  args.session = session
2635  args.widget_id = widget_id
2636  args.vega_json = vega_json
2637  args.compression_level = compression_level
2638  args.nonce = nonce
2639  args.write(self._oprot)
2640  self._oprot.writeMessageEnd()
2641  self._oprot.trans.flush()
2642 
2643  def recv_render_vega(self):
2644  iprot = self._iprot
2645  (fname, mtype, rseqid) = iprot.readMessageBegin()
2646  if mtype == TMessageType.EXCEPTION:
2647  x = TApplicationException()
2648  x.read(iprot)
2649  iprot.readMessageEnd()
2650  raise x
2651  result = render_vega_result()
2652  result.read(iprot)
2653  iprot.readMessageEnd()
2654  if result.success is not None:
2655  return result.success
2656  if result.e is not None:
2657  raise result.e
2658  raise TApplicationException(TApplicationException.MISSING_RESULT, "render_vega failed: unknown result")
2659 
2660  def get_result_row_for_pixel(self, session, widget_id, pixel, table_col_names, column_format, pixelRadius, nonce):
2661  """
2662  Parameters:
2663  - session
2664  - widget_id
2665  - pixel
2666  - table_col_names
2667  - column_format
2668  - pixelRadius
2669  - nonce
2670 
2671  """
2672  self.send_get_result_row_for_pixel(session, widget_id, pixel, table_col_names, column_format, pixelRadius, nonce)
2673  return self.recv_get_result_row_for_pixel()
2674 
2675  def send_get_result_row_for_pixel(self, session, widget_id, pixel, table_col_names, column_format, pixelRadius, nonce):
2676  self._oprot.writeMessageBegin('get_result_row_for_pixel', TMessageType.CALL, self._seqid)
2678  args.session = session
2679  args.widget_id = widget_id
2680  args.pixel = pixel
2681  args.table_col_names = table_col_names
2682  args.column_format = column_format
2683  args.pixelRadius = pixelRadius
2684  args.nonce = nonce
2685  args.write(self._oprot)
2686  self._oprot.writeMessageEnd()
2687  self._oprot.trans.flush()
2688 
2690  iprot = self._iprot
2691  (fname, mtype, rseqid) = iprot.readMessageBegin()
2692  if mtype == TMessageType.EXCEPTION:
2693  x = TApplicationException()
2694  x.read(iprot)
2695  iprot.readMessageEnd()
2696  raise x
2698  result.read(iprot)
2699  iprot.readMessageEnd()
2700  if result.success is not None:
2701  return result.success
2702  if result.e is not None:
2703  raise result.e
2704  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_result_row_for_pixel failed: unknown result")
2705 
2706  def create_custom_expression(self, session, custom_expression):
2707  """
2708  Parameters:
2709  - session
2710  - custom_expression
2711 
2712  """
2713  self.send_create_custom_expression(session, custom_expression)
2714  return self.recv_create_custom_expression()
2715 
2716  def send_create_custom_expression(self, session, custom_expression):
2717  self._oprot.writeMessageBegin('create_custom_expression', TMessageType.CALL, self._seqid)
2719  args.session = session
2720  args.custom_expression = custom_expression
2721  args.write(self._oprot)
2722  self._oprot.writeMessageEnd()
2723  self._oprot.trans.flush()
2724 
2726  iprot = self._iprot
2727  (fname, mtype, rseqid) = iprot.readMessageBegin()
2728  if mtype == TMessageType.EXCEPTION:
2729  x = TApplicationException()
2730  x.read(iprot)
2731  iprot.readMessageEnd()
2732  raise x
2734  result.read(iprot)
2735  iprot.readMessageEnd()
2736  if result.success is not None:
2737  return result.success
2738  if result.e is not None:
2739  raise result.e
2740  raise TApplicationException(TApplicationException.MISSING_RESULT, "create_custom_expression failed: unknown result")
2741 
2742  def get_custom_expressions(self, session):
2743  """
2744  Parameters:
2745  - session
2746 
2747  """
2748  self.send_get_custom_expressions(session)
2749  return self.recv_get_custom_expressions()
2750 
2751  def send_get_custom_expressions(self, session):
2752  self._oprot.writeMessageBegin('get_custom_expressions', TMessageType.CALL, self._seqid)
2754  args.session = session
2755  args.write(self._oprot)
2756  self._oprot.writeMessageEnd()
2757  self._oprot.trans.flush()
2758 
2760  iprot = self._iprot
2761  (fname, mtype, rseqid) = iprot.readMessageBegin()
2762  if mtype == TMessageType.EXCEPTION:
2763  x = TApplicationException()
2764  x.read(iprot)
2765  iprot.readMessageEnd()
2766  raise x
2768  result.read(iprot)
2769  iprot.readMessageEnd()
2770  if result.success is not None:
2771  return result.success
2772  if result.e is not None:
2773  raise result.e
2774  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_custom_expressions failed: unknown result")
2775 
2776  def update_custom_expression(self, session, id, expression_json):
2777  """
2778  Parameters:
2779  - session
2780  - id
2781  - expression_json
2782 
2783  """
2784  self.send_update_custom_expression(session, id, expression_json)
2786 
2787  def send_update_custom_expression(self, session, id, expression_json):
2788  self._oprot.writeMessageBegin('update_custom_expression', TMessageType.CALL, self._seqid)
2790  args.session = session
2791  args.id = id
2792  args.expression_json = expression_json
2793  args.write(self._oprot)
2794  self._oprot.writeMessageEnd()
2795  self._oprot.trans.flush()
2796 
2798  iprot = self._iprot
2799  (fname, mtype, rseqid) = iprot.readMessageBegin()
2800  if mtype == TMessageType.EXCEPTION:
2801  x = TApplicationException()
2802  x.read(iprot)
2803  iprot.readMessageEnd()
2804  raise x
2806  result.read(iprot)
2807  iprot.readMessageEnd()
2808  if result.e is not None:
2809  raise result.e
2810  return
2811 
2812  def delete_custom_expressions(self, session, custom_expression_ids, do_soft_delete):
2813  """
2814  Parameters:
2815  - session
2816  - custom_expression_ids
2817  - do_soft_delete
2818 
2819  """
2820  self.send_delete_custom_expressions(session, custom_expression_ids, do_soft_delete)
2822 
2823  def send_delete_custom_expressions(self, session, custom_expression_ids, do_soft_delete):
2824  self._oprot.writeMessageBegin('delete_custom_expressions', TMessageType.CALL, self._seqid)
2826  args.session = session
2827  args.custom_expression_ids = custom_expression_ids
2828  args.do_soft_delete = do_soft_delete
2829  args.write(self._oprot)
2830  self._oprot.writeMessageEnd()
2831  self._oprot.trans.flush()
2832 
2834  iprot = self._iprot
2835  (fname, mtype, rseqid) = iprot.readMessageBegin()
2836  if mtype == TMessageType.EXCEPTION:
2837  x = TApplicationException()
2838  x.read(iprot)
2839  iprot.readMessageEnd()
2840  raise x
2842  result.read(iprot)
2843  iprot.readMessageEnd()
2844  if result.e is not None:
2845  raise result.e
2846  return
2847 
2848  def get_dashboard(self, session, dashboard_id):
2849  """
2850  Parameters:
2851  - session
2852  - dashboard_id
2853 
2854  """
2855  self.send_get_dashboard(session, dashboard_id)
2856  return self.recv_get_dashboard()
2857 
2858  def send_get_dashboard(self, session, dashboard_id):
2859  self._oprot.writeMessageBegin('get_dashboard', TMessageType.CALL, self._seqid)
2860  args = get_dashboard_args()
2861  args.session = session
2862  args.dashboard_id = dashboard_id
2863  args.write(self._oprot)
2864  self._oprot.writeMessageEnd()
2865  self._oprot.trans.flush()
2866 
2868  iprot = self._iprot
2869  (fname, mtype, rseqid) = iprot.readMessageBegin()
2870  if mtype == TMessageType.EXCEPTION:
2871  x = TApplicationException()
2872  x.read(iprot)
2873  iprot.readMessageEnd()
2874  raise x
2875  result = get_dashboard_result()
2876  result.read(iprot)
2877  iprot.readMessageEnd()
2878  if result.success is not None:
2879  return result.success
2880  if result.e is not None:
2881  raise result.e
2882  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_dashboard failed: unknown result")
2883 
2884  def get_dashboards(self, session):
2885  """
2886  Parameters:
2887  - session
2888 
2889  """
2890  self.send_get_dashboards(session)
2891  return self.recv_get_dashboards()
2892 
2893  def send_get_dashboards(self, session):
2894  self._oprot.writeMessageBegin('get_dashboards', TMessageType.CALL, self._seqid)
2895  args = get_dashboards_args()
2896  args.session = session
2897  args.write(self._oprot)
2898  self._oprot.writeMessageEnd()
2899  self._oprot.trans.flush()
2900 
2902  iprot = self._iprot
2903  (fname, mtype, rseqid) = iprot.readMessageBegin()
2904  if mtype == TMessageType.EXCEPTION:
2905  x = TApplicationException()
2906  x.read(iprot)
2907  iprot.readMessageEnd()
2908  raise x
2909  result = get_dashboards_result()
2910  result.read(iprot)
2911  iprot.readMessageEnd()
2912  if result.success is not None:
2913  return result.success
2914  if result.e is not None:
2915  raise result.e
2916  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_dashboards failed: unknown result")
2917 
2918  def create_dashboard(self, session, dashboard_name, dashboard_state, image_hash, dashboard_metadata):
2919  """
2920  Parameters:
2921  - session
2922  - dashboard_name
2923  - dashboard_state
2924  - image_hash
2925  - dashboard_metadata
2926 
2927  """
2928  self.send_create_dashboard(session, dashboard_name, dashboard_state, image_hash, dashboard_metadata)
2929  return self.recv_create_dashboard()
2930 
2931  def send_create_dashboard(self, session, dashboard_name, dashboard_state, image_hash, dashboard_metadata):
2932  self._oprot.writeMessageBegin('create_dashboard', TMessageType.CALL, self._seqid)
2933  args = create_dashboard_args()
2934  args.session = session
2935  args.dashboard_name = dashboard_name
2936  args.dashboard_state = dashboard_state
2937  args.image_hash = image_hash
2938  args.dashboard_metadata = dashboard_metadata
2939  args.write(self._oprot)
2940  self._oprot.writeMessageEnd()
2941  self._oprot.trans.flush()
2942 
2944  iprot = self._iprot
2945  (fname, mtype, rseqid) = iprot.readMessageBegin()
2946  if mtype == TMessageType.EXCEPTION:
2947  x = TApplicationException()
2948  x.read(iprot)
2949  iprot.readMessageEnd()
2950  raise x
2951  result = create_dashboard_result()
2952  result.read(iprot)
2953  iprot.readMessageEnd()
2954  if result.success is not None:
2955  return result.success
2956  if result.e is not None:
2957  raise result.e
2958  raise TApplicationException(TApplicationException.MISSING_RESULT, "create_dashboard failed: unknown result")
2959 
2960  def replace_dashboard(self, session, dashboard_id, dashboard_name, dashboard_owner, dashboard_state, image_hash, dashboard_metadata):
2961  """
2962  Parameters:
2963  - session
2964  - dashboard_id
2965  - dashboard_name
2966  - dashboard_owner
2967  - dashboard_state
2968  - image_hash
2969  - dashboard_metadata
2970 
2971  """
2972  self.send_replace_dashboard(session, dashboard_id, dashboard_name, dashboard_owner, dashboard_state, image_hash, dashboard_metadata)
2973  self.recv_replace_dashboard()
2974 
2975  def send_replace_dashboard(self, session, dashboard_id, dashboard_name, dashboard_owner, dashboard_state, image_hash, dashboard_metadata):
2976  self._oprot.writeMessageBegin('replace_dashboard', TMessageType.CALL, self._seqid)
2977  args = replace_dashboard_args()
2978  args.session = session
2979  args.dashboard_id = dashboard_id
2980  args.dashboard_name = dashboard_name
2981  args.dashboard_owner = dashboard_owner
2982  args.dashboard_state = dashboard_state
2983  args.image_hash = image_hash
2984  args.dashboard_metadata = dashboard_metadata
2985  args.write(self._oprot)
2986  self._oprot.writeMessageEnd()
2987  self._oprot.trans.flush()
2988 
2990  iprot = self._iprot
2991  (fname, mtype, rseqid) = iprot.readMessageBegin()
2992  if mtype == TMessageType.EXCEPTION:
2993  x = TApplicationException()
2994  x.read(iprot)
2995  iprot.readMessageEnd()
2996  raise x
2997  result = replace_dashboard_result()
2998  result.read(iprot)
2999  iprot.readMessageEnd()
3000  if result.e is not None:
3001  raise result.e
3002  return
3003 
3004  def delete_dashboard(self, session, dashboard_id):
3005  """
3006  Parameters:
3007  - session
3008  - dashboard_id
3009 
3010  """
3011  self.send_delete_dashboard(session, dashboard_id)
3012  self.recv_delete_dashboard()
3013 
3014  def send_delete_dashboard(self, session, dashboard_id):
3015  self._oprot.writeMessageBegin('delete_dashboard', TMessageType.CALL, self._seqid)
3016  args = delete_dashboard_args()
3017  args.session = session
3018  args.dashboard_id = dashboard_id
3019  args.write(self._oprot)
3020  self._oprot.writeMessageEnd()
3021  self._oprot.trans.flush()
3022 
3024  iprot = self._iprot
3025  (fname, mtype, rseqid) = iprot.readMessageBegin()
3026  if mtype == TMessageType.EXCEPTION:
3027  x = TApplicationException()
3028  x.read(iprot)
3029  iprot.readMessageEnd()
3030  raise x
3031  result = delete_dashboard_result()
3032  result.read(iprot)
3033  iprot.readMessageEnd()
3034  if result.e is not None:
3035  raise result.e
3036  return
3037 
3038  def share_dashboards(self, session, dashboard_ids, groups, permissions):
3039  """
3040  Parameters:
3041  - session
3042  - dashboard_ids
3043  - groups
3044  - permissions
3045 
3046  """
3047  self.send_share_dashboards(session, dashboard_ids, groups, permissions)
3048  self.recv_share_dashboards()
3049 
3050  def send_share_dashboards(self, session, dashboard_ids, groups, permissions):
3051  self._oprot.writeMessageBegin('share_dashboards', TMessageType.CALL, self._seqid)
3052  args = share_dashboards_args()
3053  args.session = session
3054  args.dashboard_ids = dashboard_ids
3055  args.groups = groups
3056  args.permissions = permissions
3057  args.write(self._oprot)
3058  self._oprot.writeMessageEnd()
3059  self._oprot.trans.flush()
3060 
3062  iprot = self._iprot
3063  (fname, mtype, rseqid) = iprot.readMessageBegin()
3064  if mtype == TMessageType.EXCEPTION:
3065  x = TApplicationException()
3066  x.read(iprot)
3067  iprot.readMessageEnd()
3068  raise x
3069  result = share_dashboards_result()
3070  result.read(iprot)
3071  iprot.readMessageEnd()
3072  if result.e is not None:
3073  raise result.e
3074  return
3075 
3076  def delete_dashboards(self, session, dashboard_ids):
3077  """
3078  Parameters:
3079  - session
3080  - dashboard_ids
3081 
3082  """
3083  self.send_delete_dashboards(session, dashboard_ids)
3084  self.recv_delete_dashboards()
3085 
3086  def send_delete_dashboards(self, session, dashboard_ids):
3087  self._oprot.writeMessageBegin('delete_dashboards', TMessageType.CALL, self._seqid)
3088  args = delete_dashboards_args()
3089  args.session = session
3090  args.dashboard_ids = dashboard_ids
3091  args.write(self._oprot)
3092  self._oprot.writeMessageEnd()
3093  self._oprot.trans.flush()
3094 
3096  iprot = self._iprot
3097  (fname, mtype, rseqid) = iprot.readMessageBegin()
3098  if mtype == TMessageType.EXCEPTION:
3099  x = TApplicationException()
3100  x.read(iprot)
3101  iprot.readMessageEnd()
3102  raise x
3103  result = delete_dashboards_result()
3104  result.read(iprot)
3105  iprot.readMessageEnd()
3106  if result.e is not None:
3107  raise result.e
3108  return
3109 
3110  def share_dashboard(self, session, dashboard_id, groups, objects, permissions, grant_role):
3111  """
3112  Parameters:
3113  - session
3114  - dashboard_id
3115  - groups
3116  - objects
3117  - permissions
3118  - grant_role
3119 
3120  """
3121  self.send_share_dashboard(session, dashboard_id, groups, objects, permissions, grant_role)
3122  self.recv_share_dashboard()
3123 
3124  def send_share_dashboard(self, session, dashboard_id, groups, objects, permissions, grant_role):
3125  self._oprot.writeMessageBegin('share_dashboard', TMessageType.CALL, self._seqid)
3126  args = share_dashboard_args()
3127  args.session = session
3128  args.dashboard_id = dashboard_id
3129  args.groups = groups
3130  args.objects = objects
3131  args.permissions = permissions
3132  args.grant_role = grant_role
3133  args.write(self._oprot)
3134  self._oprot.writeMessageEnd()
3135  self._oprot.trans.flush()
3136 
3138  iprot = self._iprot
3139  (fname, mtype, rseqid) = iprot.readMessageBegin()
3140  if mtype == TMessageType.EXCEPTION:
3141  x = TApplicationException()
3142  x.read(iprot)
3143  iprot.readMessageEnd()
3144  raise x
3145  result = share_dashboard_result()
3146  result.read(iprot)
3147  iprot.readMessageEnd()
3148  if result.e is not None:
3149  raise result.e
3150  return
3151 
3152  def unshare_dashboard(self, session, dashboard_id, groups, objects, permissions):
3153  """
3154  Parameters:
3155  - session
3156  - dashboard_id
3157  - groups
3158  - objects
3159  - permissions
3160 
3161  """
3162  self.send_unshare_dashboard(session, dashboard_id, groups, objects, permissions)
3163  self.recv_unshare_dashboard()
3164 
3165  def send_unshare_dashboard(self, session, dashboard_id, groups, objects, permissions):
3166  self._oprot.writeMessageBegin('unshare_dashboard', TMessageType.CALL, self._seqid)
3167  args = unshare_dashboard_args()
3168  args.session = session
3169  args.dashboard_id = dashboard_id
3170  args.groups = groups
3171  args.objects = objects
3172  args.permissions = permissions
3173  args.write(self._oprot)
3174  self._oprot.writeMessageEnd()
3175  self._oprot.trans.flush()
3176 
3178  iprot = self._iprot
3179  (fname, mtype, rseqid) = iprot.readMessageBegin()
3180  if mtype == TMessageType.EXCEPTION:
3181  x = TApplicationException()
3182  x.read(iprot)
3183  iprot.readMessageEnd()
3184  raise x
3185  result = unshare_dashboard_result()
3186  result.read(iprot)
3187  iprot.readMessageEnd()
3188  if result.e is not None:
3189  raise result.e
3190  return
3191 
3192  def unshare_dashboards(self, session, dashboard_ids, groups, permissions):
3193  """
3194  Parameters:
3195  - session
3196  - dashboard_ids
3197  - groups
3198  - permissions
3199 
3200  """
3201  self.send_unshare_dashboards(session, dashboard_ids, groups, permissions)
3203 
3204  def send_unshare_dashboards(self, session, dashboard_ids, groups, permissions):
3205  self._oprot.writeMessageBegin('unshare_dashboards', TMessageType.CALL, self._seqid)
3206  args = unshare_dashboards_args()
3207  args.session = session
3208  args.dashboard_ids = dashboard_ids
3209  args.groups = groups
3210  args.permissions = permissions
3211  args.write(self._oprot)
3212  self._oprot.writeMessageEnd()
3213  self._oprot.trans.flush()
3214 
3216  iprot = self._iprot
3217  (fname, mtype, rseqid) = iprot.readMessageBegin()
3218  if mtype == TMessageType.EXCEPTION:
3219  x = TApplicationException()
3220  x.read(iprot)
3221  iprot.readMessageEnd()
3222  raise x
3223  result = unshare_dashboards_result()
3224  result.read(iprot)
3225  iprot.readMessageEnd()
3226  if result.e is not None:
3227  raise result.e
3228  return
3229 
3230  def get_dashboard_grantees(self, session, dashboard_id):
3231  """
3232  Parameters:
3233  - session
3234  - dashboard_id
3235 
3236  """
3237  self.send_get_dashboard_grantees(session, dashboard_id)
3238  return self.recv_get_dashboard_grantees()
3239 
3240  def send_get_dashboard_grantees(self, session, dashboard_id):
3241  self._oprot.writeMessageBegin('get_dashboard_grantees', TMessageType.CALL, self._seqid)
3243  args.session = session
3244  args.dashboard_id = dashboard_id
3245  args.write(self._oprot)
3246  self._oprot.writeMessageEnd()
3247  self._oprot.trans.flush()
3248 
3250  iprot = self._iprot
3251  (fname, mtype, rseqid) = iprot.readMessageBegin()
3252  if mtype == TMessageType.EXCEPTION:
3253  x = TApplicationException()
3254  x.read(iprot)
3255  iprot.readMessageEnd()
3256  raise x
3258  result.read(iprot)
3259  iprot.readMessageEnd()
3260  if result.success is not None:
3261  return result.success
3262  if result.e is not None:
3263  raise result.e
3264  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_dashboard_grantees failed: unknown result")
3265 
3266  def get_link_view(self, session, link):
3267  """
3268  Parameters:
3269  - session
3270  - link
3271 
3272  """
3273  self.send_get_link_view(session, link)
3274  return self.recv_get_link_view()
3275 
3276  def send_get_link_view(self, session, link):
3277  self._oprot.writeMessageBegin('get_link_view', TMessageType.CALL, self._seqid)
3278  args = get_link_view_args()
3279  args.session = session
3280  args.link = link
3281  args.write(self._oprot)
3282  self._oprot.writeMessageEnd()
3283  self._oprot.trans.flush()
3284 
3286  iprot = self._iprot
3287  (fname, mtype, rseqid) = iprot.readMessageBegin()
3288  if mtype == TMessageType.EXCEPTION:
3289  x = TApplicationException()
3290  x.read(iprot)
3291  iprot.readMessageEnd()
3292  raise x
3293  result = get_link_view_result()
3294  result.read(iprot)
3295  iprot.readMessageEnd()
3296  if result.success is not None:
3297  return result.success
3298  if result.e is not None:
3299  raise result.e
3300  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_link_view failed: unknown result")
3301 
3302  def create_link(self, session, view_state, view_metadata):
3303  """
3304  Parameters:
3305  - session
3306  - view_state
3307  - view_metadata
3308 
3309  """
3310  self.send_create_link(session, view_state, view_metadata)
3311  return self.recv_create_link()
3312 
3313  def send_create_link(self, session, view_state, view_metadata):
3314  self._oprot.writeMessageBegin('create_link', TMessageType.CALL, self._seqid)
3315  args = create_link_args()
3316  args.session = session
3317  args.view_state = view_state
3318  args.view_metadata = view_metadata
3319  args.write(self._oprot)
3320  self._oprot.writeMessageEnd()
3321  self._oprot.trans.flush()
3322 
3323  def recv_create_link(self):
3324  iprot = self._iprot
3325  (fname, mtype, rseqid) = iprot.readMessageBegin()
3326  if mtype == TMessageType.EXCEPTION:
3327  x = TApplicationException()
3328  x.read(iprot)
3329  iprot.readMessageEnd()
3330  raise x
3331  result = create_link_result()
3332  result.read(iprot)
3333  iprot.readMessageEnd()
3334  if result.success is not None:
3335  return result.success
3336  if result.e is not None:
3337  raise result.e
3338  raise TApplicationException(TApplicationException.MISSING_RESULT, "create_link failed: unknown result")
3339 
3340  def load_table_binary(self, session, table_name, rows, column_names):
3341  """
3342  Parameters:
3343  - session
3344  - table_name
3345  - rows
3346  - column_names
3347 
3348  """
3349  self.send_load_table_binary(session, table_name, rows, column_names)
3350  self.recv_load_table_binary()
3351 
3352  def send_load_table_binary(self, session, table_name, rows, column_names):
3353  self._oprot.writeMessageBegin('load_table_binary', TMessageType.CALL, self._seqid)
3354  args = load_table_binary_args()
3355  args.session = session
3356  args.table_name = table_name
3357  args.rows = rows
3358  args.column_names = column_names
3359  args.write(self._oprot)
3360  self._oprot.writeMessageEnd()
3361  self._oprot.trans.flush()
3362 
3364  iprot = self._iprot
3365  (fname, mtype, rseqid) = iprot.readMessageBegin()
3366  if mtype == TMessageType.EXCEPTION:
3367  x = TApplicationException()
3368  x.read(iprot)
3369  iprot.readMessageEnd()
3370  raise x
3371  result = load_table_binary_result()
3372  result.read(iprot)
3373  iprot.readMessageEnd()
3374  if result.e is not None:
3375  raise result.e
3376  return
3377 
3378  def load_table_binary_columnar(self, session, table_name, cols, column_names):
3379  """
3380  Parameters:
3381  - session
3382  - table_name
3383  - cols
3384  - column_names
3385 
3386  """
3387  self.send_load_table_binary_columnar(session, table_name, cols, column_names)
3389 
3390  def send_load_table_binary_columnar(self, session, table_name, cols, column_names):
3391  self._oprot.writeMessageBegin('load_table_binary_columnar', TMessageType.CALL, self._seqid)
3393  args.session = session
3394  args.table_name = table_name
3395  args.cols = cols
3396  args.column_names = column_names
3397  args.write(self._oprot)
3398  self._oprot.writeMessageEnd()
3399  self._oprot.trans.flush()
3400 
3402  iprot = self._iprot
3403  (fname, mtype, rseqid) = iprot.readMessageBegin()
3404  if mtype == TMessageType.EXCEPTION:
3405  x = TApplicationException()
3406  x.read(iprot)
3407  iprot.readMessageEnd()
3408  raise x
3410  result.read(iprot)
3411  iprot.readMessageEnd()
3412  if result.e is not None:
3413  raise result.e
3414  return
3415 
3416  def load_table_binary_arrow(self, session, table_name, arrow_stream, use_column_names):
3417  """
3418  Parameters:
3419  - session
3420  - table_name
3421  - arrow_stream
3422  - use_column_names
3423 
3424  """
3425  self.send_load_table_binary_arrow(session, table_name, arrow_stream, use_column_names)
3427 
3428  def send_load_table_binary_arrow(self, session, table_name, arrow_stream, use_column_names):
3429  self._oprot.writeMessageBegin('load_table_binary_arrow', TMessageType.CALL, self._seqid)
3431  args.session = session
3432  args.table_name = table_name
3433  args.arrow_stream = arrow_stream
3434  args.use_column_names = use_column_names
3435  args.write(self._oprot)
3436  self._oprot.writeMessageEnd()
3437  self._oprot.trans.flush()
3438 
3440  iprot = self._iprot
3441  (fname, mtype, rseqid) = iprot.readMessageBegin()
3442  if mtype == TMessageType.EXCEPTION:
3443  x = TApplicationException()
3444  x.read(iprot)
3445  iprot.readMessageEnd()
3446  raise x
3448  result.read(iprot)
3449  iprot.readMessageEnd()
3450  if result.e is not None:
3451  raise result.e
3452  return
3453 
3454  def load_table(self, session, table_name, rows, column_names):
3455  """
3456  Parameters:
3457  - session
3458  - table_name
3459  - rows
3460  - column_names
3461 
3462  """
3463  self.send_load_table(session, table_name, rows, column_names)
3464  self.recv_load_table()
3465 
3466  def send_load_table(self, session, table_name, rows, column_names):
3467  self._oprot.writeMessageBegin('load_table', TMessageType.CALL, self._seqid)
3468  args = load_table_args()
3469  args.session = session
3470  args.table_name = table_name
3471  args.rows = rows
3472  args.column_names = column_names
3473  args.write(self._oprot)
3474  self._oprot.writeMessageEnd()
3475  self._oprot.trans.flush()
3476 
3477  def recv_load_table(self):
3478  iprot = self._iprot
3479  (fname, mtype, rseqid) = iprot.readMessageBegin()
3480  if mtype == TMessageType.EXCEPTION:
3481  x = TApplicationException()
3482  x.read(iprot)
3483  iprot.readMessageEnd()
3484  raise x
3485  result = load_table_result()
3486  result.read(iprot)
3487  iprot.readMessageEnd()
3488  if result.e is not None:
3489  raise result.e
3490  return
3491 
3492  def detect_column_types(self, session, file_name, copy_params):
3493  """
3494  Parameters:
3495  - session
3496  - file_name
3497  - copy_params
3498 
3499  """
3500  self.send_detect_column_types(session, file_name, copy_params)
3501  return self.recv_detect_column_types()
3502 
3503  def send_detect_column_types(self, session, file_name, copy_params):
3504  self._oprot.writeMessageBegin('detect_column_types', TMessageType.CALL, self._seqid)
3505  args = detect_column_types_args()
3506  args.session = session
3507  args.file_name = file_name
3508  args.copy_params = copy_params
3509  args.write(self._oprot)
3510  self._oprot.writeMessageEnd()
3511  self._oprot.trans.flush()
3512 
3514  iprot = self._iprot
3515  (fname, mtype, rseqid) = iprot.readMessageBegin()
3516  if mtype == TMessageType.EXCEPTION:
3517  x = TApplicationException()
3518  x.read(iprot)
3519  iprot.readMessageEnd()
3520  raise x
3521  result = detect_column_types_result()
3522  result.read(iprot)
3523  iprot.readMessageEnd()
3524  if result.success is not None:
3525  return result.success
3526  if result.e is not None:
3527  raise result.e
3528  raise TApplicationException(TApplicationException.MISSING_RESULT, "detect_column_types failed: unknown result")
3529 
3530  def create_table(self, session, table_name, row_desc, create_params):
3531  """
3532  Parameters:
3533  - session
3534  - table_name
3535  - row_desc
3536  - create_params
3537 
3538  """
3539  self.send_create_table(session, table_name, row_desc, create_params)
3540  self.recv_create_table()
3541 
3542  def send_create_table(self, session, table_name, row_desc, create_params):
3543  self._oprot.writeMessageBegin('create_table', TMessageType.CALL, self._seqid)
3544  args = create_table_args()
3545  args.session = session
3546  args.table_name = table_name
3547  args.row_desc = row_desc
3548  args.create_params = create_params
3549  args.write(self._oprot)
3550  self._oprot.writeMessageEnd()
3551  self._oprot.trans.flush()
3552 
3554  iprot = self._iprot
3555  (fname, mtype, rseqid) = iprot.readMessageBegin()
3556  if mtype == TMessageType.EXCEPTION:
3557  x = TApplicationException()
3558  x.read(iprot)
3559  iprot.readMessageEnd()
3560  raise x
3561  result = create_table_result()
3562  result.read(iprot)
3563  iprot.readMessageEnd()
3564  if result.e is not None:
3565  raise result.e
3566  return
3567 
3568  def import_table(self, session, table_name, file_name, copy_params):
3569  """
3570  Parameters:
3571  - session
3572  - table_name
3573  - file_name
3574  - copy_params
3575 
3576  """
3577  self.send_import_table(session, table_name, file_name, copy_params)
3578  self.recv_import_table()
3579 
3580  def send_import_table(self, session, table_name, file_name, copy_params):
3581  self._oprot.writeMessageBegin('import_table', TMessageType.CALL, self._seqid)
3582  args = import_table_args()
3583  args.session = session
3584  args.table_name = table_name
3585  args.file_name = file_name
3586  args.copy_params = copy_params
3587  args.write(self._oprot)
3588  self._oprot.writeMessageEnd()
3589  self._oprot.trans.flush()
3590 
3592  iprot = self._iprot
3593  (fname, mtype, rseqid) = iprot.readMessageBegin()
3594  if mtype == TMessageType.EXCEPTION:
3595  x = TApplicationException()
3596  x.read(iprot)
3597  iprot.readMessageEnd()
3598  raise x
3599  result = import_table_result()
3600  result.read(iprot)
3601  iprot.readMessageEnd()
3602  if result.e is not None:
3603  raise result.e
3604  return
3605 
3606  def import_geo_table(self, session, table_name, file_name, copy_params, row_desc, create_params):
3607  """
3608  Parameters:
3609  - session
3610  - table_name
3611  - file_name
3612  - copy_params
3613  - row_desc
3614  - create_params
3615 
3616  """
3617  self.send_import_geo_table(session, table_name, file_name, copy_params, row_desc, create_params)
3618  self.recv_import_geo_table()
3619 
3620  def send_import_geo_table(self, session, table_name, file_name, copy_params, row_desc, create_params):
3621  self._oprot.writeMessageBegin('import_geo_table', TMessageType.CALL, self._seqid)
3622  args = import_geo_table_args()
3623  args.session = session
3624  args.table_name = table_name
3625  args.file_name = file_name
3626  args.copy_params = copy_params
3627  args.row_desc = row_desc
3628  args.create_params = create_params
3629  args.write(self._oprot)
3630  self._oprot.writeMessageEnd()
3631  self._oprot.trans.flush()
3632 
3634  iprot = self._iprot
3635  (fname, mtype, rseqid) = iprot.readMessageBegin()
3636  if mtype == TMessageType.EXCEPTION:
3637  x = TApplicationException()
3638  x.read(iprot)
3639  iprot.readMessageEnd()
3640  raise x
3641  result = import_geo_table_result()
3642  result.read(iprot)
3643  iprot.readMessageEnd()
3644  if result.e is not None:
3645  raise result.e
3646  return
3647 
3648  def import_table_status(self, session, import_id):
3649  """
3650  Parameters:
3651  - session
3652  - import_id
3653 
3654  """
3655  self.send_import_table_status(session, import_id)
3656  return self.recv_import_table_status()
3657 
3658  def send_import_table_status(self, session, import_id):
3659  self._oprot.writeMessageBegin('import_table_status', TMessageType.CALL, self._seqid)
3660  args = import_table_status_args()
3661  args.session = session
3662  args.import_id = import_id
3663  args.write(self._oprot)
3664  self._oprot.writeMessageEnd()
3665  self._oprot.trans.flush()
3666 
3668  iprot = self._iprot
3669  (fname, mtype, rseqid) = iprot.readMessageBegin()
3670  if mtype == TMessageType.EXCEPTION:
3671  x = TApplicationException()
3672  x.read(iprot)
3673  iprot.readMessageEnd()
3674  raise x
3675  result = import_table_status_result()
3676  result.read(iprot)
3677  iprot.readMessageEnd()
3678  if result.success is not None:
3679  return result.success
3680  if result.e is not None:
3681  raise result.e
3682  raise TApplicationException(TApplicationException.MISSING_RESULT, "import_table_status failed: unknown result")
3683 
3684  def get_first_geo_file_in_archive(self, session, archive_path, copy_params):
3685  """
3686  Parameters:
3687  - session
3688  - archive_path
3689  - copy_params
3690 
3691  """
3692  self.send_get_first_geo_file_in_archive(session, archive_path, copy_params)
3694 
3695  def send_get_first_geo_file_in_archive(self, session, archive_path, copy_params):
3696  self._oprot.writeMessageBegin('get_first_geo_file_in_archive', TMessageType.CALL, self._seqid)
3698  args.session = session
3699  args.archive_path = archive_path
3700  args.copy_params = copy_params
3701  args.write(self._oprot)
3702  self._oprot.writeMessageEnd()
3703  self._oprot.trans.flush()
3704 
3706  iprot = self._iprot
3707  (fname, mtype, rseqid) = iprot.readMessageBegin()
3708  if mtype == TMessageType.EXCEPTION:
3709  x = TApplicationException()
3710  x.read(iprot)
3711  iprot.readMessageEnd()
3712  raise x
3714  result.read(iprot)
3715  iprot.readMessageEnd()
3716  if result.success is not None:
3717  return result.success
3718  if result.e is not None:
3719  raise result.e
3720  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_first_geo_file_in_archive failed: unknown result")
3721 
3722  def get_all_files_in_archive(self, session, archive_path, copy_params):
3723  """
3724  Parameters:
3725  - session
3726  - archive_path
3727  - copy_params
3728 
3729  """
3730  self.send_get_all_files_in_archive(session, archive_path, copy_params)
3731  return self.recv_get_all_files_in_archive()
3732 
3733  def send_get_all_files_in_archive(self, session, archive_path, copy_params):
3734  self._oprot.writeMessageBegin('get_all_files_in_archive', TMessageType.CALL, self._seqid)
3736  args.session = session
3737  args.archive_path = archive_path
3738  args.copy_params = copy_params
3739  args.write(self._oprot)
3740  self._oprot.writeMessageEnd()
3741  self._oprot.trans.flush()
3742 
3744  iprot = self._iprot
3745  (fname, mtype, rseqid) = iprot.readMessageBegin()
3746  if mtype == TMessageType.EXCEPTION:
3747  x = TApplicationException()
3748  x.read(iprot)
3749  iprot.readMessageEnd()
3750  raise x
3752  result.read(iprot)
3753  iprot.readMessageEnd()
3754  if result.success is not None:
3755  return result.success
3756  if result.e is not None:
3757  raise result.e
3758  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_all_files_in_archive failed: unknown result")
3759 
3760  def get_layers_in_geo_file(self, session, file_name, copy_params):
3761  """
3762  Parameters:
3763  - session
3764  - file_name
3765  - copy_params
3766 
3767  """
3768  self.send_get_layers_in_geo_file(session, file_name, copy_params)
3769  return self.recv_get_layers_in_geo_file()
3770 
3771  def send_get_layers_in_geo_file(self, session, file_name, copy_params):
3772  self._oprot.writeMessageBegin('get_layers_in_geo_file', TMessageType.CALL, self._seqid)
3774  args.session = session
3775  args.file_name = file_name
3776  args.copy_params = copy_params
3777  args.write(self._oprot)
3778  self._oprot.writeMessageEnd()
3779  self._oprot.trans.flush()
3780 
3782  iprot = self._iprot
3783  (fname, mtype, rseqid) = iprot.readMessageBegin()
3784  if mtype == TMessageType.EXCEPTION:
3785  x = TApplicationException()
3786  x.read(iprot)
3787  iprot.readMessageEnd()
3788  raise x
3790  result.read(iprot)
3791  iprot.readMessageEnd()
3792  if result.success is not None:
3793  return result.success
3794  if result.e is not None:
3795  raise result.e
3796  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_layers_in_geo_file failed: unknown result")
3797 
3798  def query_get_outer_fragment_count(self, session, query):
3799  """
3800  Parameters:
3801  - session
3802  - query
3803 
3804  """
3805  self.send_query_get_outer_fragment_count(session, query)
3807 
3808  def send_query_get_outer_fragment_count(self, session, query):
3809  self._oprot.writeMessageBegin('query_get_outer_fragment_count', TMessageType.CALL, self._seqid)
3811  args.session = session
3812  args.query = query
3813  args.write(self._oprot)
3814  self._oprot.writeMessageEnd()
3815  self._oprot.trans.flush()
3816 
3818  iprot = self._iprot
3819  (fname, mtype, rseqid) = iprot.readMessageBegin()
3820  if mtype == TMessageType.EXCEPTION:
3821  x = TApplicationException()
3822  x.read(iprot)
3823  iprot.readMessageEnd()
3824  raise x
3826  result.read(iprot)
3827  iprot.readMessageEnd()
3828  if result.success is not None:
3829  return result.success
3830  if result.e is not None:
3831  raise result.e
3832  raise TApplicationException(TApplicationException.MISSING_RESULT, "query_get_outer_fragment_count failed: unknown result")
3833 
3834  def check_table_consistency(self, session, table_id):
3835  """
3836  Parameters:
3837  - session
3838  - table_id
3839 
3840  """
3841  self.send_check_table_consistency(session, table_id)
3842  return self.recv_check_table_consistency()
3843 
3844  def send_check_table_consistency(self, session, table_id):
3845  self._oprot.writeMessageBegin('check_table_consistency', TMessageType.CALL, self._seqid)
3847  args.session = session
3848  args.table_id = table_id
3849  args.write(self._oprot)
3850  self._oprot.writeMessageEnd()
3851  self._oprot.trans.flush()
3852 
3854  iprot = self._iprot
3855  (fname, mtype, rseqid) = iprot.readMessageBegin()
3856  if mtype == TMessageType.EXCEPTION:
3857  x = TApplicationException()
3858  x.read(iprot)
3859  iprot.readMessageEnd()
3860  raise x
3862  result.read(iprot)
3863  iprot.readMessageEnd()
3864  if result.success is not None:
3865  return result.success
3866  if result.e is not None:
3867  raise result.e
3868  raise TApplicationException(TApplicationException.MISSING_RESULT, "check_table_consistency failed: unknown result")
3869 
3870  def start_query(self, leaf_session, parent_session, query_ra, start_time_str, just_explain, outer_fragment_indices):
3871  """
3872  Parameters:
3873  - leaf_session
3874  - parent_session
3875  - query_ra
3876  - start_time_str
3877  - just_explain
3878  - outer_fragment_indices
3879 
3880  """
3881  self.send_start_query(leaf_session, parent_session, query_ra, start_time_str, just_explain, outer_fragment_indices)
3882  return self.recv_start_query()
3883 
3884  def send_start_query(self, leaf_session, parent_session, query_ra, start_time_str, just_explain, outer_fragment_indices):
3885  self._oprot.writeMessageBegin('start_query', TMessageType.CALL, self._seqid)
3886  args = start_query_args()
3887  args.leaf_session = leaf_session
3888  args.parent_session = parent_session
3889  args.query_ra = query_ra
3890  args.start_time_str = start_time_str
3891  args.just_explain = just_explain
3892  args.outer_fragment_indices = outer_fragment_indices
3893  args.write(self._oprot)
3894  self._oprot.writeMessageEnd()
3895  self._oprot.trans.flush()
3896 
3897  def recv_start_query(self):
3898  iprot = self._iprot
3899  (fname, mtype, rseqid) = iprot.readMessageBegin()
3900  if mtype == TMessageType.EXCEPTION:
3901  x = TApplicationException()
3902  x.read(iprot)
3903  iprot.readMessageEnd()
3904  raise x
3905  result = start_query_result()
3906  result.read(iprot)
3907  iprot.readMessageEnd()
3908  if result.success is not None:
3909  return result.success
3910  if result.e is not None:
3911  raise result.e
3912  raise TApplicationException(TApplicationException.MISSING_RESULT, "start_query failed: unknown result")
3913 
3914  def execute_query_step(self, pending_query, subquery_id, start_time_str):
3915  """
3916  Parameters:
3917  - pending_query
3918  - subquery_id
3919  - start_time_str
3920 
3921  """
3922  self.send_execute_query_step(pending_query, subquery_id, start_time_str)
3923  return self.recv_execute_query_step()
3924 
3925  def send_execute_query_step(self, pending_query, subquery_id, start_time_str):
3926  self._oprot.writeMessageBegin('execute_query_step', TMessageType.CALL, self._seqid)
3927  args = execute_query_step_args()
3928  args.pending_query = pending_query
3929  args.subquery_id = subquery_id
3930  args.start_time_str = start_time_str
3931  args.write(self._oprot)
3932  self._oprot.writeMessageEnd()
3933  self._oprot.trans.flush()
3934 
3936  iprot = self._iprot
3937  (fname, mtype, rseqid) = iprot.readMessageBegin()
3938  if mtype == TMessageType.EXCEPTION:
3939  x = TApplicationException()
3940  x.read(iprot)
3941  iprot.readMessageEnd()
3942  raise x
3943  result = execute_query_step_result()
3944  result.read(iprot)
3945  iprot.readMessageEnd()
3946  if result.success is not None:
3947  return result.success
3948  if result.e is not None:
3949  raise result.e
3950  raise TApplicationException(TApplicationException.MISSING_RESULT, "execute_query_step failed: unknown result")
3951 
3952  def broadcast_serialized_rows(self, serialized_rows, row_desc, query_id, subquery_id, is_final_subquery_result):
3953  """
3954  Parameters:
3955  - serialized_rows
3956  - row_desc
3957  - query_id
3958  - subquery_id
3959  - is_final_subquery_result
3960 
3961  """
3962  self.send_broadcast_serialized_rows(serialized_rows, row_desc, query_id, subquery_id, is_final_subquery_result)
3964 
3965  def send_broadcast_serialized_rows(self, serialized_rows, row_desc, query_id, subquery_id, is_final_subquery_result):
3966  self._oprot.writeMessageBegin('broadcast_serialized_rows', TMessageType.CALL, self._seqid)
3968  args.serialized_rows = serialized_rows
3969  args.row_desc = row_desc
3970  args.query_id = query_id
3971  args.subquery_id = subquery_id
3972  args.is_final_subquery_result = is_final_subquery_result
3973  args.write(self._oprot)
3974  self._oprot.writeMessageEnd()
3975  self._oprot.trans.flush()
3976 
3978  iprot = self._iprot
3979  (fname, mtype, rseqid) = iprot.readMessageBegin()
3980  if mtype == TMessageType.EXCEPTION:
3981  x = TApplicationException()
3982  x.read(iprot)
3983  iprot.readMessageEnd()
3984  raise x
3986  result.read(iprot)
3987  iprot.readMessageEnd()
3988  if result.e is not None:
3989  raise result.e
3990  return
3991 
3992  def start_render_query(self, session, widget_id, node_idx, vega_json):
3993  """
3994  Parameters:
3995  - session
3996  - widget_id
3997  - node_idx
3998  - vega_json
3999 
4000  """
4001  self.send_start_render_query(session, widget_id, node_idx, vega_json)
4002  return self.recv_start_render_query()
4003 
4004  def send_start_render_query(self, session, widget_id, node_idx, vega_json):
4005  self._oprot.writeMessageBegin('start_render_query', TMessageType.CALL, self._seqid)
4006  args = start_render_query_args()
4007  args.session = session
4008  args.widget_id = widget_id
4009  args.node_idx = node_idx
4010  args.vega_json = vega_json
4011  args.write(self._oprot)
4012  self._oprot.writeMessageEnd()
4013  self._oprot.trans.flush()
4014 
4016  iprot = self._iprot
4017  (fname, mtype, rseqid) = iprot.readMessageBegin()
4018  if mtype == TMessageType.EXCEPTION:
4019  x = TApplicationException()
4020  x.read(iprot)
4021  iprot.readMessageEnd()
4022  raise x
4023  result = start_render_query_result()
4024  result.read(iprot)
4025  iprot.readMessageEnd()
4026  if result.success is not None:
4027  return result.success
4028  if result.e is not None:
4029  raise result.e
4030  raise TApplicationException(TApplicationException.MISSING_RESULT, "start_render_query failed: unknown result")
4031 
4032  def execute_next_render_step(self, pending_render, merged_data):
4033  """
4034  Parameters:
4035  - pending_render
4036  - merged_data
4037 
4038  """
4039  self.send_execute_next_render_step(pending_render, merged_data)
4040  return self.recv_execute_next_render_step()
4041 
4042  def send_execute_next_render_step(self, pending_render, merged_data):
4043  self._oprot.writeMessageBegin('execute_next_render_step', TMessageType.CALL, self._seqid)
4045  args.pending_render = pending_render
4046  args.merged_data = merged_data
4047  args.write(self._oprot)
4048  self._oprot.writeMessageEnd()
4049  self._oprot.trans.flush()
4050 
4052  iprot = self._iprot
4053  (fname, mtype, rseqid) = iprot.readMessageBegin()
4054  if mtype == TMessageType.EXCEPTION:
4055  x = TApplicationException()
4056  x.read(iprot)
4057  iprot.readMessageEnd()
4058  raise x
4060  result.read(iprot)
4061  iprot.readMessageEnd()
4062  if result.success is not None:
4063  return result.success
4064  if result.e is not None:
4065  raise result.e
4066  raise TApplicationException(TApplicationException.MISSING_RESULT, "execute_next_render_step failed: unknown result")
4067 
4068  def insert_data(self, session, insert_data):
4069  """
4070  Parameters:
4071  - session
4072  - insert_data
4073 
4074  """
4075  self.send_insert_data(session, insert_data)
4076  self.recv_insert_data()
4077 
4078  def send_insert_data(self, session, insert_data):
4079  self._oprot.writeMessageBegin('insert_data', TMessageType.CALL, self._seqid)
4080  args = insert_data_args()
4081  args.session = session
4082  args.insert_data = insert_data
4083  args.write(self._oprot)
4084  self._oprot.writeMessageEnd()
4085  self._oprot.trans.flush()
4086 
4087  def recv_insert_data(self):
4088  iprot = self._iprot
4089  (fname, mtype, rseqid) = iprot.readMessageBegin()
4090  if mtype == TMessageType.EXCEPTION:
4091  x = TApplicationException()
4092  x.read(iprot)
4093  iprot.readMessageEnd()
4094  raise x
4095  result = insert_data_result()
4096  result.read(iprot)
4097  iprot.readMessageEnd()
4098  if result.e is not None:
4099  raise result.e
4100  return
4101 
4102  def insert_chunks(self, session, insert_chunks):
4103  """
4104  Parameters:
4105  - session
4106  - insert_chunks
4107 
4108  """
4109  self.send_insert_chunks(session, insert_chunks)
4110  self.recv_insert_chunks()
4111 
4112  def send_insert_chunks(self, session, insert_chunks):
4113  self._oprot.writeMessageBegin('insert_chunks', TMessageType.CALL, self._seqid)
4114  args = insert_chunks_args()
4115  args.session = session
4116  args.insert_chunks = insert_chunks
4117  args.write(self._oprot)
4118  self._oprot.writeMessageEnd()
4119  self._oprot.trans.flush()
4120 
4122  iprot = self._iprot
4123  (fname, mtype, rseqid) = iprot.readMessageBegin()
4124  if mtype == TMessageType.EXCEPTION:
4125  x = TApplicationException()
4126  x.read(iprot)
4127  iprot.readMessageEnd()
4128  raise x
4129  result = insert_chunks_result()
4130  result.read(iprot)
4131  iprot.readMessageEnd()
4132  if result.e is not None:
4133  raise result.e
4134  return
4135 
4136  def checkpoint(self, session, table_id):
4137  """
4138  Parameters:
4139  - session
4140  - table_id
4141 
4142  """
4143  self.send_checkpoint(session, table_id)
4144  self.recv_checkpoint()
4145 
4146  def send_checkpoint(self, session, table_id):
4147  self._oprot.writeMessageBegin('checkpoint', TMessageType.CALL, self._seqid)
4148  args = checkpoint_args()
4149  args.session = session
4150  args.table_id = table_id
4151  args.write(self._oprot)
4152  self._oprot.writeMessageEnd()
4153  self._oprot.trans.flush()
4154 
4155  def recv_checkpoint(self):
4156  iprot = self._iprot
4157  (fname, mtype, rseqid) = iprot.readMessageBegin()
4158  if mtype == TMessageType.EXCEPTION:
4159  x = TApplicationException()
4160  x.read(iprot)
4161  iprot.readMessageEnd()
4162  raise x
4163  result = checkpoint_result()
4164  result.read(iprot)
4165  iprot.readMessageEnd()
4166  if result.e is not None:
4167  raise result.e
4168  return
4169 
4170  def get_roles(self, session):
4171  """
4172  Parameters:
4173  - session
4174 
4175  """
4176  self.send_get_roles(session)
4177  return self.recv_get_roles()
4178 
4179  def send_get_roles(self, session):
4180  self._oprot.writeMessageBegin('get_roles', TMessageType.CALL, self._seqid)
4181  args = get_roles_args()
4182  args.session = session
4183  args.write(self._oprot)
4184  self._oprot.writeMessageEnd()
4185  self._oprot.trans.flush()
4186 
4187  def recv_get_roles(self):
4188  iprot = self._iprot
4189  (fname, mtype, rseqid) = iprot.readMessageBegin()
4190  if mtype == TMessageType.EXCEPTION:
4191  x = TApplicationException()
4192  x.read(iprot)
4193  iprot.readMessageEnd()
4194  raise x
4195  result = get_roles_result()
4196  result.read(iprot)
4197  iprot.readMessageEnd()
4198  if result.success is not None:
4199  return result.success
4200  if result.e is not None:
4201  raise result.e
4202  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_roles failed: unknown result")
4203 
4204  def get_db_objects_for_grantee(self, session, roleName):
4205  """
4206  Parameters:
4207  - session
4208  - roleName
4209 
4210  """
4211  self.send_get_db_objects_for_grantee(session, roleName)
4212  return self.recv_get_db_objects_for_grantee()
4213 
4214  def send_get_db_objects_for_grantee(self, session, roleName):
4215  self._oprot.writeMessageBegin('get_db_objects_for_grantee', TMessageType.CALL, self._seqid)
4217  args.session = session
4218  args.roleName = roleName
4219  args.write(self._oprot)
4220  self._oprot.writeMessageEnd()
4221  self._oprot.trans.flush()
4222 
4224  iprot = self._iprot
4225  (fname, mtype, rseqid) = iprot.readMessageBegin()
4226  if mtype == TMessageType.EXCEPTION:
4227  x = TApplicationException()
4228  x.read(iprot)
4229  iprot.readMessageEnd()
4230  raise x
4232  result.read(iprot)
4233  iprot.readMessageEnd()
4234  if result.success is not None:
4235  return result.success
4236  if result.e is not None:
4237  raise result.e
4238  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_db_objects_for_grantee failed: unknown result")
4239 
4240  def get_db_object_privs(self, session, objectName, type):
4241  """
4242  Parameters:
4243  - session
4244  - objectName
4245  - type
4246 
4247  """
4248  self.send_get_db_object_privs(session, objectName, type)
4249  return self.recv_get_db_object_privs()
4250 
4251  def send_get_db_object_privs(self, session, objectName, type):
4252  self._oprot.writeMessageBegin('get_db_object_privs', TMessageType.CALL, self._seqid)
4253  args = get_db_object_privs_args()
4254  args.session = session
4255  args.objectName = objectName
4256  args.type = type
4257  args.write(self._oprot)
4258  self._oprot.writeMessageEnd()
4259  self._oprot.trans.flush()
4260 
4262  iprot = self._iprot
4263  (fname, mtype, rseqid) = iprot.readMessageBegin()
4264  if mtype == TMessageType.EXCEPTION:
4265  x = TApplicationException()
4266  x.read(iprot)
4267  iprot.readMessageEnd()
4268  raise x
4269  result = get_db_object_privs_result()
4270  result.read(iprot)
4271  iprot.readMessageEnd()
4272  if result.success is not None:
4273  return result.success
4274  if result.e is not None:
4275  raise result.e
4276  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_db_object_privs failed: unknown result")
4277 
4278  def get_all_roles_for_user(self, session, userName):
4279  """
4280  Parameters:
4281  - session
4282  - userName
4283 
4284  """
4285  self.send_get_all_roles_for_user(session, userName)
4286  return self.recv_get_all_roles_for_user()
4287 
4288  def send_get_all_roles_for_user(self, session, userName):
4289  self._oprot.writeMessageBegin('get_all_roles_for_user', TMessageType.CALL, self._seqid)
4291  args.session = session
4292  args.userName = userName
4293  args.write(self._oprot)
4294  self._oprot.writeMessageEnd()
4295  self._oprot.trans.flush()
4296 
4298  iprot = self._iprot
4299  (fname, mtype, rseqid) = iprot.readMessageBegin()
4300  if mtype == TMessageType.EXCEPTION:
4301  x = TApplicationException()
4302  x.read(iprot)
4303  iprot.readMessageEnd()
4304  raise x
4306  result.read(iprot)
4307  iprot.readMessageEnd()
4308  if result.success is not None:
4309  return result.success
4310  if result.e is not None:
4311  raise result.e
4312  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_all_roles_for_user failed: unknown result")
4313 
4314  def get_all_effective_roles_for_user(self, session, userName):
4315  """
4316  Parameters:
4317  - session
4318  - userName
4319 
4320  """
4321  self.send_get_all_effective_roles_for_user(session, userName)
4323 
4324  def send_get_all_effective_roles_for_user(self, session, userName):
4325  self._oprot.writeMessageBegin('get_all_effective_roles_for_user', TMessageType.CALL, self._seqid)
4327  args.session = session
4328  args.userName = userName
4329  args.write(self._oprot)
4330  self._oprot.writeMessageEnd()
4331  self._oprot.trans.flush()
4332 
4334  iprot = self._iprot
4335  (fname, mtype, rseqid) = iprot.readMessageBegin()
4336  if mtype == TMessageType.EXCEPTION:
4337  x = TApplicationException()
4338  x.read(iprot)
4339  iprot.readMessageEnd()
4340  raise x
4342  result.read(iprot)
4343  iprot.readMessageEnd()
4344  if result.success is not None:
4345  return result.success
4346  if result.e is not None:
4347  raise result.e
4348  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_all_effective_roles_for_user failed: unknown result")
4349 
4350  def has_role(self, session, granteeName, roleName):
4351  """
4352  Parameters:
4353  - session
4354  - granteeName
4355  - roleName
4356 
4357  """
4358  self.send_has_role(session, granteeName, roleName)
4359  return self.recv_has_role()
4360 
4361  def send_has_role(self, session, granteeName, roleName):
4362  self._oprot.writeMessageBegin('has_role', TMessageType.CALL, self._seqid)
4363  args = has_role_args()
4364  args.session = session
4365  args.granteeName = granteeName
4366  args.roleName = roleName
4367  args.write(self._oprot)
4368  self._oprot.writeMessageEnd()
4369  self._oprot.trans.flush()
4370 
4371  def recv_has_role(self):
4372  iprot = self._iprot
4373  (fname, mtype, rseqid) = iprot.readMessageBegin()
4374  if mtype == TMessageType.EXCEPTION:
4375  x = TApplicationException()
4376  x.read(iprot)
4377  iprot.readMessageEnd()
4378  raise x
4379  result = has_role_result()
4380  result.read(iprot)
4381  iprot.readMessageEnd()
4382  if result.success is not None:
4383  return result.success
4384  if result.e is not None:
4385  raise result.e
4386  raise TApplicationException(TApplicationException.MISSING_RESULT, "has_role failed: unknown result")
4387 
4388  def has_object_privilege(self, session, granteeName, ObjectName, objectType, permissions):
4389  """
4390  Parameters:
4391  - session
4392  - granteeName
4393  - ObjectName
4394  - objectType
4395  - permissions
4396 
4397  """
4398  self.send_has_object_privilege(session, granteeName, ObjectName, objectType, permissions)
4399  return self.recv_has_object_privilege()
4400 
4401  def send_has_object_privilege(self, session, granteeName, ObjectName, objectType, permissions):
4402  self._oprot.writeMessageBegin('has_object_privilege', TMessageType.CALL, self._seqid)
4403  args = has_object_privilege_args()
4404  args.session = session
4405  args.granteeName = granteeName
4406  args.ObjectName = ObjectName
4407  args.objectType = objectType
4408  args.permissions = permissions
4409  args.write(self._oprot)
4410  self._oprot.writeMessageEnd()
4411  self._oprot.trans.flush()
4412 
4414  iprot = self._iprot
4415  (fname, mtype, rseqid) = iprot.readMessageBegin()
4416  if mtype == TMessageType.EXCEPTION:
4417  x = TApplicationException()
4418  x.read(iprot)
4419  iprot.readMessageEnd()
4420  raise x
4421  result = has_object_privilege_result()
4422  result.read(iprot)
4423  iprot.readMessageEnd()
4424  if result.success is not None:
4425  return result.success
4426  if result.e is not None:
4427  raise result.e
4428  raise TApplicationException(TApplicationException.MISSING_RESULT, "has_object_privilege failed: unknown result")
4429 
4430  def set_license_key(self, session, key, nonce):
4431  """
4432  Parameters:
4433  - session
4434  - key
4435  - nonce
4436 
4437  """
4438  self.send_set_license_key(session, key, nonce)
4439  return self.recv_set_license_key()
4440 
4441  def send_set_license_key(self, session, key, nonce):
4442  self._oprot.writeMessageBegin('set_license_key', TMessageType.CALL, self._seqid)
4443  args = set_license_key_args()
4444  args.session = session
4445  args.key = key
4446  args.nonce = nonce
4447  args.write(self._oprot)
4448  self._oprot.writeMessageEnd()
4449  self._oprot.trans.flush()
4450 
4452  iprot = self._iprot
4453  (fname, mtype, rseqid) = iprot.readMessageBegin()
4454  if mtype == TMessageType.EXCEPTION:
4455  x = TApplicationException()
4456  x.read(iprot)
4457  iprot.readMessageEnd()
4458  raise x
4459  result = set_license_key_result()
4460  result.read(iprot)
4461  iprot.readMessageEnd()
4462  if result.success is not None:
4463  return result.success
4464  if result.e is not None:
4465  raise result.e
4466  raise TApplicationException(TApplicationException.MISSING_RESULT, "set_license_key failed: unknown result")
4467 
4468  def get_license_claims(self, session, nonce):
4469  """
4470  Parameters:
4471  - session
4472  - nonce
4473 
4474  """
4475  self.send_get_license_claims(session, nonce)
4476  return self.recv_get_license_claims()
4477 
4478  def send_get_license_claims(self, session, nonce):
4479  self._oprot.writeMessageBegin('get_license_claims', TMessageType.CALL, self._seqid)
4480  args = get_license_claims_args()
4481  args.session = session
4482  args.nonce = nonce
4483  args.write(self._oprot)
4484  self._oprot.writeMessageEnd()
4485  self._oprot.trans.flush()
4486 
4488  iprot = self._iprot
4489  (fname, mtype, rseqid) = iprot.readMessageBegin()
4490  if mtype == TMessageType.EXCEPTION:
4491  x = TApplicationException()
4492  x.read(iprot)
4493  iprot.readMessageEnd()
4494  raise x
4495  result = get_license_claims_result()
4496  result.read(iprot)
4497  iprot.readMessageEnd()
4498  if result.success is not None:
4499  return result.success
4500  if result.e is not None:
4501  raise result.e
4502  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_license_claims failed: unknown result")
4503 
4504  def get_device_parameters(self, session):
4505  """
4506  Parameters:
4507  - session
4508 
4509  """
4510  self.send_get_device_parameters(session)
4511  return self.recv_get_device_parameters()
4512 
4513  def send_get_device_parameters(self, session):
4514  self._oprot.writeMessageBegin('get_device_parameters', TMessageType.CALL, self._seqid)
4516  args.session = session
4517  args.write(self._oprot)
4518  self._oprot.writeMessageEnd()
4519  self._oprot.trans.flush()
4520 
4522  iprot = self._iprot
4523  (fname, mtype, rseqid) = iprot.readMessageBegin()
4524  if mtype == TMessageType.EXCEPTION:
4525  x = TApplicationException()
4526  x.read(iprot)
4527  iprot.readMessageEnd()
4528  raise x
4529  result = get_device_parameters_result()
4530  result.read(iprot)
4531  iprot.readMessageEnd()
4532  if result.success is not None:
4533  return result.success
4534  if result.e is not None:
4535  raise result.e
4536  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_device_parameters failed: unknown result")
4537 
4538  def register_runtime_extension_functions(self, session, udfs, udtfs, device_ir_map):
4539  """
4540  Parameters:
4541  - session
4542  - udfs
4543  - udtfs
4544  - device_ir_map
4545 
4546  """
4547  self.send_register_runtime_extension_functions(session, udfs, udtfs, device_ir_map)
4549 
4550  def send_register_runtime_extension_functions(self, session, udfs, udtfs, device_ir_map):
4551  self._oprot.writeMessageBegin('register_runtime_extension_functions', TMessageType.CALL, self._seqid)
4553  args.session = session
4554  args.udfs = udfs
4555  args.udtfs = udtfs
4556  args.device_ir_map = device_ir_map
4557  args.write(self._oprot)
4558  self._oprot.writeMessageEnd()
4559  self._oprot.trans.flush()
4560 
4562  iprot = self._iprot
4563  (fname, mtype, rseqid) = iprot.readMessageBegin()
4564  if mtype == TMessageType.EXCEPTION:
4565  x = TApplicationException()
4566  x.read(iprot)
4567  iprot.readMessageEnd()
4568  raise x
4570  result.read(iprot)
4571  iprot.readMessageEnd()
4572  if result.e is not None:
4573  raise result.e
4574  return
4575 
4576  def get_table_function_names(self, session):
4577  """
4578  Parameters:
4579  - session
4580 
4581  """
4582  self.send_get_table_function_names(session)
4583  return self.recv_get_table_function_names()
4584 
4585  def send_get_table_function_names(self, session):
4586  self._oprot.writeMessageBegin('get_table_function_names', TMessageType.CALL, self._seqid)
4588  args.session = session
4589  args.write(self._oprot)
4590  self._oprot.writeMessageEnd()
4591  self._oprot.trans.flush()
4592 
4594  iprot = self._iprot
4595  (fname, mtype, rseqid) = iprot.readMessageBegin()
4596  if mtype == TMessageType.EXCEPTION:
4597  x = TApplicationException()
4598  x.read(iprot)
4599  iprot.readMessageEnd()
4600  raise x
4602  result.read(iprot)
4603  iprot.readMessageEnd()
4604  if result.success is not None:
4605  return result.success
4606  if result.e is not None:
4607  raise result.e
4608  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_function_names failed: unknown result")
4609 
4611  """
4612  Parameters:
4613  - session
4614 
4615  """
4618 
4620  self._oprot.writeMessageBegin('get_runtime_table_function_names', TMessageType.CALL, self._seqid)
4622  args.session = session
4623  args.write(self._oprot)
4624  self._oprot.writeMessageEnd()
4625  self._oprot.trans.flush()
4626 
4628  iprot = self._iprot
4629  (fname, mtype, rseqid) = iprot.readMessageBegin()
4630  if mtype == TMessageType.EXCEPTION:
4631  x = TApplicationException()
4632  x.read(iprot)
4633  iprot.readMessageEnd()
4634  raise x
4636  result.read(iprot)
4637  iprot.readMessageEnd()
4638  if result.success is not None:
4639  return result.success
4640  if result.e is not None:
4641  raise result.e
4642  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_runtime_table_function_names failed: unknown result")
4643 
4644  def get_table_function_details(self, session, udtf_names):
4645  """
4646  Parameters:
4647  - session
4648  - udtf_names
4649 
4650  """
4651  self.send_get_table_function_details(session, udtf_names)
4652  return self.recv_get_table_function_details()
4653 
4654  def send_get_table_function_details(self, session, udtf_names):
4655  self._oprot.writeMessageBegin('get_table_function_details', TMessageType.CALL, self._seqid)
4657  args.session = session
4658  args.udtf_names = udtf_names
4659  args.write(self._oprot)
4660  self._oprot.writeMessageEnd()
4661  self._oprot.trans.flush()
4662 
4664  iprot = self._iprot
4665  (fname, mtype, rseqid) = iprot.readMessageBegin()
4666  if mtype == TMessageType.EXCEPTION:
4667  x = TApplicationException()
4668  x.read(iprot)
4669  iprot.readMessageEnd()
4670  raise x
4672  result.read(iprot)
4673  iprot.readMessageEnd()
4674  if result.success is not None:
4675  return result.success
4676  if result.e is not None:
4677  raise result.e
4678  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_function_details failed: unknown result")
4679 
4680  def get_function_names(self, session):
4681  """
4682  Parameters:
4683  - session
4684 
4685  """
4686  self.send_get_function_names(session)
4687  return self.recv_get_function_names()
4688 
4689  def send_get_function_names(self, session):
4690  self._oprot.writeMessageBegin('get_function_names', TMessageType.CALL, self._seqid)
4691  args = get_function_names_args()
4692  args.session = session
4693  args.write(self._oprot)
4694  self._oprot.writeMessageEnd()
4695  self._oprot.trans.flush()
4696 
4698  iprot = self._iprot
4699  (fname, mtype, rseqid) = iprot.readMessageBegin()
4700  if mtype == TMessageType.EXCEPTION:
4701  x = TApplicationException()
4702  x.read(iprot)
4703  iprot.readMessageEnd()
4704  raise x
4705  result = get_function_names_result()
4706  result.read(iprot)
4707  iprot.readMessageEnd()
4708  if result.success is not None:
4709  return result.success
4710  if result.e is not None:
4711  raise result.e
4712  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_function_names failed: unknown result")
4713 
4714  def get_runtime_function_names(self, session):
4715  """
4716  Parameters:
4717  - session
4718 
4719  """
4720  self.send_get_runtime_function_names(session)
4721  return self.recv_get_runtime_function_names()
4722 
4724  self._oprot.writeMessageBegin('get_runtime_function_names', TMessageType.CALL, self._seqid)
4726  args.session = session
4727  args.write(self._oprot)
4728  self._oprot.writeMessageEnd()
4729  self._oprot.trans.flush()
4730 
4732  iprot = self._iprot
4733  (fname, mtype, rseqid) = iprot.readMessageBegin()
4734  if mtype == TMessageType.EXCEPTION:
4735  x = TApplicationException()
4736  x.read(iprot)
4737  iprot.readMessageEnd()
4738  raise x
4740  result.read(iprot)
4741  iprot.readMessageEnd()
4742  if result.success is not None:
4743  return result.success
4744  if result.e is not None:
4745  raise result.e
4746  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_runtime_function_names failed: unknown result")
4747 
4748  def get_function_details(self, session, udf_names):
4749  """
4750  Parameters:
4751  - session
4752  - udf_names
4753 
4754  """
4755  self.send_get_function_details(session, udf_names)
4756  return self.recv_get_function_details()
4757 
4758  def send_get_function_details(self, session, udf_names):
4759  self._oprot.writeMessageBegin('get_function_details', TMessageType.CALL, self._seqid)
4760  args = get_function_details_args()
4761  args.session = session
4762  args.udf_names = udf_names
4763  args.write(self._oprot)
4764  self._oprot.writeMessageEnd()
4765  self._oprot.trans.flush()
4766 
4768  iprot = self._iprot
4769  (fname, mtype, rseqid) = iprot.readMessageBegin()
4770  if mtype == TMessageType.EXCEPTION:
4771  x = TApplicationException()
4772  x.read(iprot)
4773  iprot.readMessageEnd()
4774  raise x
4775  result = get_function_details_result()
4776  result.read(iprot)
4777  iprot.readMessageEnd()
4778  if result.success is not None:
4779  return result.success
4780  if result.e is not None:
4781  raise result.e
4782  raise TApplicationException(TApplicationException.MISSING_RESULT, "get_function_details failed: unknown result")
4783 
4784 
4785 class Processor(Iface, TProcessor):
4786  def __init__(self, handler):
4787  self._handler = handler
4788  self._processMap = {}
4789  self._processMap["connect"] = Processor.process_connect
4790  self._processMap["krb5_connect"] = Processor.process_krb5_connect
4791  self._processMap["disconnect"] = Processor.process_disconnect
4792  self._processMap["switch_database"] = Processor.process_switch_database
4793  self._processMap["clone_session"] = Processor.process_clone_session
4794  self._processMap["get_server_status"] = Processor.process_get_server_status
4795  self._processMap["get_status"] = Processor.process_get_status
4796  self._processMap["get_hardware_info"] = Processor.process_get_hardware_info
4797  self._processMap["get_tables"] = Processor.process_get_tables
4798  self._processMap["get_tables_for_database"] = Processor.process_get_tables_for_database
4799  self._processMap["get_physical_tables"] = Processor.process_get_physical_tables
4800  self._processMap["get_views"] = Processor.process_get_views
4801  self._processMap["get_tables_meta"] = Processor.process_get_tables_meta
4802  self._processMap["get_table_details"] = Processor.process_get_table_details
4803  self._processMap["get_table_details_for_database"] = Processor.process_get_table_details_for_database
4804  self._processMap["get_internal_table_details"] = Processor.process_get_internal_table_details
4805  self._processMap["get_internal_table_details_for_database"] = Processor.process_get_internal_table_details_for_database
4806  self._processMap["get_users"] = Processor.process_get_users
4807  self._processMap["get_databases"] = Processor.process_get_databases
4808  self._processMap["get_version"] = Processor.process_get_version
4809  self._processMap["start_heap_profile"] = Processor.process_start_heap_profile
4810  self._processMap["stop_heap_profile"] = Processor.process_stop_heap_profile
4811  self._processMap["get_heap_profile"] = Processor.process_get_heap_profile
4812  self._processMap["get_memory"] = Processor.process_get_memory
4813  self._processMap["clear_cpu_memory"] = Processor.process_clear_cpu_memory
4814  self._processMap["clear_gpu_memory"] = Processor.process_clear_gpu_memory
4815  self._processMap["set_cur_session"] = Processor.process_set_cur_session
4816  self._processMap["invalidate_cur_session"] = Processor.process_invalidate_cur_session
4817  self._processMap["set_table_epoch"] = Processor.process_set_table_epoch
4818  self._processMap["set_table_epoch_by_name"] = Processor.process_set_table_epoch_by_name
4819  self._processMap["get_table_epoch"] = Processor.process_get_table_epoch
4820  self._processMap["get_table_epoch_by_name"] = Processor.process_get_table_epoch_by_name
4821  self._processMap["get_table_epochs"] = Processor.process_get_table_epochs
4822  self._processMap["set_table_epochs"] = Processor.process_set_table_epochs
4823  self._processMap["get_session_info"] = Processor.process_get_session_info
4824  self._processMap["get_queries_info"] = Processor.process_get_queries_info
4825  self._processMap["set_leaf_info"] = Processor.process_set_leaf_info
4826  self._processMap["sql_execute"] = Processor.process_sql_execute
4827  self._processMap["sql_execute_df"] = Processor.process_sql_execute_df
4828  self._processMap["sql_execute_gdf"] = Processor.process_sql_execute_gdf
4829  self._processMap["deallocate_df"] = Processor.process_deallocate_df
4830  self._processMap["interrupt"] = Processor.process_interrupt
4831  self._processMap["sql_validate"] = Processor.process_sql_validate
4832  self._processMap["get_completion_hints"] = Processor.process_get_completion_hints
4833  self._processMap["set_execution_mode"] = Processor.process_set_execution_mode
4834  self._processMap["render_vega"] = Processor.process_render_vega
4835  self._processMap["get_result_row_for_pixel"] = Processor.process_get_result_row_for_pixel
4836  self._processMap["create_custom_expression"] = Processor.process_create_custom_expression
4837  self._processMap["get_custom_expressions"] = Processor.process_get_custom_expressions
4838  self._processMap["update_custom_expression"] = Processor.process_update_custom_expression
4839  self._processMap["delete_custom_expressions"] = Processor.process_delete_custom_expressions
4840  self._processMap["get_dashboard"] = Processor.process_get_dashboard
4841  self._processMap["get_dashboards"] = Processor.process_get_dashboards
4842  self._processMap["create_dashboard"] = Processor.process_create_dashboard
4843  self._processMap["replace_dashboard"] = Processor.process_replace_dashboard
4844  self._processMap["delete_dashboard"] = Processor.process_delete_dashboard
4845  self._processMap["share_dashboards"] = Processor.process_share_dashboards
4846  self._processMap["delete_dashboards"] = Processor.process_delete_dashboards
4847  self._processMap["share_dashboard"] = Processor.process_share_dashboard
4848  self._processMap["unshare_dashboard"] = Processor.process_unshare_dashboard
4849  self._processMap["unshare_dashboards"] = Processor.process_unshare_dashboards
4850  self._processMap["get_dashboard_grantees"] = Processor.process_get_dashboard_grantees
4851  self._processMap["get_link_view"] = Processor.process_get_link_view
4852  self._processMap["create_link"] = Processor.process_create_link
4853  self._processMap["load_table_binary"] = Processor.process_load_table_binary
4854  self._processMap["load_table_binary_columnar"] = Processor.process_load_table_binary_columnar
4855  self._processMap["load_table_binary_arrow"] = Processor.process_load_table_binary_arrow
4856  self._processMap["load_table"] = Processor.process_load_table
4857  self._processMap["detect_column_types"] = Processor.process_detect_column_types
4858  self._processMap["create_table"] = Processor.process_create_table
4859  self._processMap["import_table"] = Processor.process_import_table
4860  self._processMap["import_geo_table"] = Processor.process_import_geo_table
4861  self._processMap["import_table_status"] = Processor.process_import_table_status
4862  self._processMap["get_first_geo_file_in_archive"] = Processor.process_get_first_geo_file_in_archive
4863  self._processMap["get_all_files_in_archive"] = Processor.process_get_all_files_in_archive
4864  self._processMap["get_layers_in_geo_file"] = Processor.process_get_layers_in_geo_file
4865  self._processMap["query_get_outer_fragment_count"] = Processor.process_query_get_outer_fragment_count
4866  self._processMap["check_table_consistency"] = Processor.process_check_table_consistency
4867  self._processMap["start_query"] = Processor.process_start_query
4868  self._processMap["execute_query_step"] = Processor.process_execute_query_step
4869  self._processMap["broadcast_serialized_rows"] = Processor.process_broadcast_serialized_rows
4870  self._processMap["start_render_query"] = Processor.process_start_render_query
4871  self._processMap["execute_next_render_step"] = Processor.process_execute_next_render_step
4872  self._processMap["insert_data"] = Processor.process_insert_data
4873  self._processMap["insert_chunks"] = Processor.process_insert_chunks
4874  self._processMap["checkpoint"] = Processor.process_checkpoint
4875  self._processMap["get_roles"] = Processor.process_get_roles
4876  self._processMap["get_db_objects_for_grantee"] = Processor.process_get_db_objects_for_grantee
4877  self._processMap["get_db_object_privs"] = Processor.process_get_db_object_privs
4878  self._processMap["get_all_roles_for_user"] = Processor.process_get_all_roles_for_user
4879  self._processMap["get_all_effective_roles_for_user"] = Processor.process_get_all_effective_roles_for_user
4880  self._processMap["has_role"] = Processor.process_has_role
4881  self._processMap["has_object_privilege"] = Processor.process_has_object_privilege
4882  self._processMap["set_license_key"] = Processor.process_set_license_key
4883  self._processMap["get_license_claims"] = Processor.process_get_license_claims
4884  self._processMap["get_device_parameters"] = Processor.process_get_device_parameters
4885  self._processMap["register_runtime_extension_functions"] = Processor.process_register_runtime_extension_functions
4886  self._processMap["get_table_function_names"] = Processor.process_get_table_function_names
4887  self._processMap["get_runtime_table_function_names"] = Processor.process_get_runtime_table_function_names
4888  self._processMap["get_table_function_details"] = Processor.process_get_table_function_details
4889  self._processMap["get_function_names"] = Processor.process_get_function_names
4890  self._processMap["get_runtime_function_names"] = Processor.process_get_runtime_function_names
4891  self._processMap["get_function_details"] = Processor.process_get_function_details
4892  self._on_message_begin = None
4893 
4894  def on_message_begin(self, func):
4895  self._on_message_begin = func
4896 
4897  def process(self, iprot, oprot):
4898  (name, type, seqid) = iprot.readMessageBegin()
4899  if self._on_message_begin:
4900  self._on_message_begin(name, type, seqid)
4901  if name not in self._processMap:
4902  iprot.skip(TType.STRUCT)
4903  iprot.readMessageEnd()
4904  x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
4905  oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
4906  x.write(oprot)
4907  oprot.writeMessageEnd()
4908  oprot.trans.flush()
4909  return
4910  else:
4911  self._processMap[name](self, seqid, iprot, oprot)
4912  return True
4913 
4914  def process_connect(self, seqid, iprot, oprot):
4915  args = connect_args()
4916  args.read(iprot)
4917  iprot.readMessageEnd()
4918  result = connect_result()
4919  try:
4920  result.success = self._handler.connect(args.user, args.passwd, args.dbname)
4921  msg_type = TMessageType.REPLY
4922  except TTransport.TTransportException:
4923  raise
4924  except TDBException as e:
4925  msg_type = TMessageType.REPLY
4926  result.e = e
4927  except TApplicationException as ex:
4928  logging.exception('TApplication exception in handler')
4929  msg_type = TMessageType.EXCEPTION
4930  result = ex
4931  except Exception:
4932  logging.exception('Unexpected exception in handler')
4933  msg_type = TMessageType.EXCEPTION
4934  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
4935  oprot.writeMessageBegin("connect", msg_type, seqid)
4936  result.write(oprot)
4937  oprot.writeMessageEnd()
4938  oprot.trans.flush()
4939 
4940  def process_krb5_connect(self, seqid, iprot, oprot):
4941  args = krb5_connect_args()
4942  args.read(iprot)
4943  iprot.readMessageEnd()
4944  result = krb5_connect_result()
4945  try:
4946  result.success = self._handler.krb5_connect(args.inputToken, args.dbname)
4947  msg_type = TMessageType.REPLY
4948  except TTransport.TTransportException:
4949  raise
4950  except TDBException as e:
4951  msg_type = TMessageType.REPLY
4952  result.e = e
4953  except TApplicationException as ex:
4954  logging.exception('TApplication exception in handler')
4955  msg_type = TMessageType.EXCEPTION
4956  result = ex
4957  except Exception:
4958  logging.exception('Unexpected exception in handler')
4959  msg_type = TMessageType.EXCEPTION
4960  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
4961  oprot.writeMessageBegin("krb5_connect", msg_type, seqid)
4962  result.write(oprot)
4963  oprot.writeMessageEnd()
4964  oprot.trans.flush()
4965 
4966  def process_disconnect(self, seqid, iprot, oprot):
4967  args = disconnect_args()
4968  args.read(iprot)
4969  iprot.readMessageEnd()
4970  result = disconnect_result()
4971  try:
4972  self._handler.disconnect(args.session)
4973  msg_type = TMessageType.REPLY
4974  except TTransport.TTransportException:
4975  raise
4976  except TDBException as e:
4977  msg_type = TMessageType.REPLY
4978  result.e = e
4979  except TApplicationException as ex:
4980  logging.exception('TApplication exception in handler')
4981  msg_type = TMessageType.EXCEPTION
4982  result = ex
4983  except Exception:
4984  logging.exception('Unexpected exception in handler')
4985  msg_type = TMessageType.EXCEPTION
4986  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
4987  oprot.writeMessageBegin("disconnect", msg_type, seqid)
4988  result.write(oprot)
4989  oprot.writeMessageEnd()
4990  oprot.trans.flush()
4991 
4992  def process_switch_database(self, seqid, iprot, oprot):
4993  args = switch_database_args()
4994  args.read(iprot)
4995  iprot.readMessageEnd()
4996  result = switch_database_result()
4997  try:
4998  self._handler.switch_database(args.session, args.dbname)
4999  msg_type = TMessageType.REPLY
5000  except TTransport.TTransportException:
5001  raise
5002  except TDBException as e:
5003  msg_type = TMessageType.REPLY
5004  result.e = e
5005  except TApplicationException as ex:
5006  logging.exception('TApplication exception in handler')
5007  msg_type = TMessageType.EXCEPTION
5008  result = ex
5009  except Exception:
5010  logging.exception('Unexpected exception in handler')
5011  msg_type = TMessageType.EXCEPTION
5012  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5013  oprot.writeMessageBegin("switch_database", msg_type, seqid)
5014  result.write(oprot)
5015  oprot.writeMessageEnd()
5016  oprot.trans.flush()
5017 
5018  def process_clone_session(self, seqid, iprot, oprot):
5019  args = clone_session_args()
5020  args.read(iprot)
5021  iprot.readMessageEnd()
5022  result = clone_session_result()
5023  try:
5024  result.success = self._handler.clone_session(args.session)
5025  msg_type = TMessageType.REPLY
5026  except TTransport.TTransportException:
5027  raise
5028  except TDBException as e:
5029  msg_type = TMessageType.REPLY
5030  result.e = e
5031  except TApplicationException as ex:
5032  logging.exception('TApplication exception in handler')
5033  msg_type = TMessageType.EXCEPTION
5034  result = ex
5035  except Exception:
5036  logging.exception('Unexpected exception in handler')
5037  msg_type = TMessageType.EXCEPTION
5038  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5039  oprot.writeMessageBegin("clone_session", msg_type, seqid)
5040  result.write(oprot)
5041  oprot.writeMessageEnd()
5042  oprot.trans.flush()
5043 
5044  def process_get_server_status(self, seqid, iprot, oprot):
5045  args = get_server_status_args()
5046  args.read(iprot)
5047  iprot.readMessageEnd()
5048  result = get_server_status_result()
5049  try:
5050  result.success = self._handler.get_server_status(args.session)
5051  msg_type = TMessageType.REPLY
5052  except TTransport.TTransportException:
5053  raise
5054  except TDBException as e:
5055  msg_type = TMessageType.REPLY
5056  result.e = e
5057  except TApplicationException as ex:
5058  logging.exception('TApplication exception in handler')
5059  msg_type = TMessageType.EXCEPTION
5060  result = ex
5061  except Exception:
5062  logging.exception('Unexpected exception in handler')
5063  msg_type = TMessageType.EXCEPTION
5064  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5065  oprot.writeMessageBegin("get_server_status", msg_type, seqid)
5066  result.write(oprot)
5067  oprot.writeMessageEnd()
5068  oprot.trans.flush()
5069 
5070  def process_get_status(self, seqid, iprot, oprot):
5071  args = get_status_args()
5072  args.read(iprot)
5073  iprot.readMessageEnd()
5074  result = get_status_result()
5075  try:
5076  result.success = self._handler.get_status(args.session)
5077  msg_type = TMessageType.REPLY
5078  except TTransport.TTransportException:
5079  raise
5080  except TDBException as e:
5081  msg_type = TMessageType.REPLY
5082  result.e = e
5083  except TApplicationException as ex:
5084  logging.exception('TApplication exception in handler')
5085  msg_type = TMessageType.EXCEPTION
5086  result = ex
5087  except Exception:
5088  logging.exception('Unexpected exception in handler')
5089  msg_type = TMessageType.EXCEPTION
5090  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5091  oprot.writeMessageBegin("get_status", msg_type, seqid)
5092  result.write(oprot)
5093  oprot.writeMessageEnd()
5094  oprot.trans.flush()
5095 
5096  def process_get_hardware_info(self, seqid, iprot, oprot):
5097  args = get_hardware_info_args()
5098  args.read(iprot)
5099  iprot.readMessageEnd()
5100  result = get_hardware_info_result()
5101  try:
5102  result.success = self._handler.get_hardware_info(args.session)
5103  msg_type = TMessageType.REPLY
5104  except TTransport.TTransportException:
5105  raise
5106  except TDBException as e:
5107  msg_type = TMessageType.REPLY
5108  result.e = e
5109  except TApplicationException as ex:
5110  logging.exception('TApplication exception in handler')
5111  msg_type = TMessageType.EXCEPTION
5112  result = ex
5113  except Exception:
5114  logging.exception('Unexpected exception in handler')
5115  msg_type = TMessageType.EXCEPTION
5116  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5117  oprot.writeMessageBegin("get_hardware_info", msg_type, seqid)
5118  result.write(oprot)
5119  oprot.writeMessageEnd()
5120  oprot.trans.flush()
5121 
5122  def process_get_tables(self, seqid, iprot, oprot):
5123  args = get_tables_args()
5124  args.read(iprot)
5125  iprot.readMessageEnd()
5126  result = get_tables_result()
5127  try:
5128  result.success = self._handler.get_tables(args.session)
5129  msg_type = TMessageType.REPLY
5130  except TTransport.TTransportException:
5131  raise
5132  except TDBException as e:
5133  msg_type = TMessageType.REPLY
5134  result.e = e
5135  except TApplicationException as ex:
5136  logging.exception('TApplication exception in handler')
5137  msg_type = TMessageType.EXCEPTION
5138  result = ex
5139  except Exception:
5140  logging.exception('Unexpected exception in handler')
5141  msg_type = TMessageType.EXCEPTION
5142  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5143  oprot.writeMessageBegin("get_tables", msg_type, seqid)
5144  result.write(oprot)
5145  oprot.writeMessageEnd()
5146  oprot.trans.flush()
5147 
5148  def process_get_tables_for_database(self, seqid, iprot, oprot):
5150  args.read(iprot)
5151  iprot.readMessageEnd()
5153  try:
5154  result.success = self._handler.get_tables_for_database(args.session, args.database_name)
5155  msg_type = TMessageType.REPLY
5156  except TTransport.TTransportException:
5157  raise
5158  except TDBException as e:
5159  msg_type = TMessageType.REPLY
5160  result.e = e
5161  except TApplicationException as ex:
5162  logging.exception('TApplication exception in handler')
5163  msg_type = TMessageType.EXCEPTION
5164  result = ex
5165  except Exception:
5166  logging.exception('Unexpected exception in handler')
5167  msg_type = TMessageType.EXCEPTION
5168  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5169  oprot.writeMessageBegin("get_tables_for_database", msg_type, seqid)
5170  result.write(oprot)
5171  oprot.writeMessageEnd()
5172  oprot.trans.flush()
5173 
5174  def process_get_physical_tables(self, seqid, iprot, oprot):
5175  args = get_physical_tables_args()
5176  args.read(iprot)
5177  iprot.readMessageEnd()
5178  result = get_physical_tables_result()
5179  try:
5180  result.success = self._handler.get_physical_tables(args.session)
5181  msg_type = TMessageType.REPLY
5182  except TTransport.TTransportException:
5183  raise
5184  except TDBException as e:
5185  msg_type = TMessageType.REPLY
5186  result.e = e
5187  except TApplicationException as ex:
5188  logging.exception('TApplication exception in handler')
5189  msg_type = TMessageType.EXCEPTION
5190  result = ex
5191  except Exception:
5192  logging.exception('Unexpected exception in handler')
5193  msg_type = TMessageType.EXCEPTION
5194  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5195  oprot.writeMessageBegin("get_physical_tables", msg_type, seqid)
5196  result.write(oprot)
5197  oprot.writeMessageEnd()
5198  oprot.trans.flush()
5199 
5200  def process_get_views(self, seqid, iprot, oprot):
5201  args = get_views_args()
5202  args.read(iprot)
5203  iprot.readMessageEnd()
5204  result = get_views_result()
5205  try:
5206  result.success = self._handler.get_views(args.session)
5207  msg_type = TMessageType.REPLY
5208  except TTransport.TTransportException:
5209  raise
5210  except TDBException as e:
5211  msg_type = TMessageType.REPLY
5212  result.e = e
5213  except TApplicationException as ex:
5214  logging.exception('TApplication exception in handler')
5215  msg_type = TMessageType.EXCEPTION
5216  result = ex
5217  except Exception:
5218  logging.exception('Unexpected exception in handler')
5219  msg_type = TMessageType.EXCEPTION
5220  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5221  oprot.writeMessageBegin("get_views", msg_type, seqid)
5222  result.write(oprot)
5223  oprot.writeMessageEnd()
5224  oprot.trans.flush()
5225 
5226  def process_get_tables_meta(self, seqid, iprot, oprot):
5227  args = get_tables_meta_args()
5228  args.read(iprot)
5229  iprot.readMessageEnd()
5230  result = get_tables_meta_result()
5231  try:
5232  result.success = self._handler.get_tables_meta(args.session)
5233  msg_type = TMessageType.REPLY
5234  except TTransport.TTransportException:
5235  raise
5236  except TDBException as e:
5237  msg_type = TMessageType.REPLY
5238  result.e = e
5239  except TApplicationException as ex:
5240  logging.exception('TApplication exception in handler')
5241  msg_type = TMessageType.EXCEPTION
5242  result = ex
5243  except Exception:
5244  logging.exception('Unexpected exception in handler')
5245  msg_type = TMessageType.EXCEPTION
5246  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5247  oprot.writeMessageBegin("get_tables_meta", msg_type, seqid)
5248  result.write(oprot)
5249  oprot.writeMessageEnd()
5250  oprot.trans.flush()
5251 
5252  def process_get_table_details(self, seqid, iprot, oprot):
5253  args = get_table_details_args()
5254  args.read(iprot)
5255  iprot.readMessageEnd()
5256  result = get_table_details_result()
5257  try:
5258  result.success = self._handler.get_table_details(args.session, args.table_name)
5259  msg_type = TMessageType.REPLY
5260  except TTransport.TTransportException:
5261  raise
5262  except TDBException as e:
5263  msg_type = TMessageType.REPLY
5264  result.e = e
5265  except TApplicationException as ex:
5266  logging.exception('TApplication exception in handler')
5267  msg_type = TMessageType.EXCEPTION
5268  result = ex
5269  except Exception:
5270  logging.exception('Unexpected exception in handler')
5271  msg_type = TMessageType.EXCEPTION
5272  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5273  oprot.writeMessageBegin("get_table_details", msg_type, seqid)
5274  result.write(oprot)
5275  oprot.writeMessageEnd()
5276  oprot.trans.flush()
5277 
5278  def process_get_table_details_for_database(self, seqid, iprot, oprot):
5280  args.read(iprot)
5281  iprot.readMessageEnd()
5283  try:
5284  result.success = self._handler.get_table_details_for_database(args.session, args.table_name, args.database_name)
5285  msg_type = TMessageType.REPLY
5286  except TTransport.TTransportException:
5287  raise
5288  except TDBException as e:
5289  msg_type = TMessageType.REPLY
5290  result.e = e
5291  except TApplicationException as ex:
5292  logging.exception('TApplication exception in handler')
5293  msg_type = TMessageType.EXCEPTION
5294  result = ex
5295  except Exception:
5296  logging.exception('Unexpected exception in handler')
5297  msg_type = TMessageType.EXCEPTION
5298  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5299  oprot.writeMessageBegin("get_table_details_for_database", msg_type, seqid)
5300  result.write(oprot)
5301  oprot.writeMessageEnd()
5302  oprot.trans.flush()
5303 
5304  def process_get_internal_table_details(self, seqid, iprot, oprot):
5306  args.read(iprot)
5307  iprot.readMessageEnd()
5309  try:
5310  result.success = self._handler.get_internal_table_details(args.session, args.table_name, args.include_system_columns)
5311  msg_type = TMessageType.REPLY
5312  except TTransport.TTransportException:
5313  raise
5314  except TDBException as e:
5315  msg_type = TMessageType.REPLY
5316  result.e = e
5317  except TApplicationException as ex:
5318  logging.exception('TApplication exception in handler')
5319  msg_type = TMessageType.EXCEPTION
5320  result = ex
5321  except Exception:
5322  logging.exception('Unexpected exception in handler')
5323  msg_type = TMessageType.EXCEPTION
5324  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5325  oprot.writeMessageBegin("get_internal_table_details", msg_type, seqid)
5326  result.write(oprot)
5327  oprot.writeMessageEnd()
5328  oprot.trans.flush()
5329 
5330  def process_get_internal_table_details_for_database(self, seqid, iprot, oprot):
5332  args.read(iprot)
5333  iprot.readMessageEnd()
5335  try:
5336  result.success = self._handler.get_internal_table_details_for_database(args.session, args.table_name, args.database_name)
5337  msg_type = TMessageType.REPLY
5338  except TTransport.TTransportException:
5339  raise
5340  except TDBException as e:
5341  msg_type = TMessageType.REPLY
5342  result.e = e
5343  except TApplicationException as ex:
5344  logging.exception('TApplication exception in handler')
5345  msg_type = TMessageType.EXCEPTION
5346  result = ex
5347  except Exception:
5348  logging.exception('Unexpected exception in handler')
5349  msg_type = TMessageType.EXCEPTION
5350  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5351  oprot.writeMessageBegin("get_internal_table_details_for_database", msg_type, seqid)
5352  result.write(oprot)
5353  oprot.writeMessageEnd()
5354  oprot.trans.flush()
5355 
5356  def process_get_users(self, seqid, iprot, oprot):
5357  args = get_users_args()
5358  args.read(iprot)
5359  iprot.readMessageEnd()
5360  result = get_users_result()
5361  try:
5362  result.success = self._handler.get_users(args.session)
5363  msg_type = TMessageType.REPLY
5364  except TTransport.TTransportException:
5365  raise
5366  except TDBException as e:
5367  msg_type = TMessageType.REPLY
5368  result.e = e
5369  except TApplicationException as ex:
5370  logging.exception('TApplication exception in handler')
5371  msg_type = TMessageType.EXCEPTION
5372  result = ex
5373  except Exception:
5374  logging.exception('Unexpected exception in handler')
5375  msg_type = TMessageType.EXCEPTION
5376  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5377  oprot.writeMessageBegin("get_users", msg_type, seqid)
5378  result.write(oprot)
5379  oprot.writeMessageEnd()
5380  oprot.trans.flush()
5381 
5382  def process_get_databases(self, seqid, iprot, oprot):
5383  args = get_databases_args()
5384  args.read(iprot)
5385  iprot.readMessageEnd()
5386  result = get_databases_result()
5387  try:
5388  result.success = self._handler.get_databases(args.session)
5389  msg_type = TMessageType.REPLY
5390  except TTransport.TTransportException:
5391  raise
5392  except TDBException as e:
5393  msg_type = TMessageType.REPLY
5394  result.e = e
5395  except TApplicationException as ex:
5396  logging.exception('TApplication exception in handler')
5397  msg_type = TMessageType.EXCEPTION
5398  result = ex
5399  except Exception:
5400  logging.exception('Unexpected exception in handler')
5401  msg_type = TMessageType.EXCEPTION
5402  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5403  oprot.writeMessageBegin("get_databases", msg_type, seqid)
5404  result.write(oprot)
5405  oprot.writeMessageEnd()
5406  oprot.trans.flush()
5407 
5408  def process_get_version(self, seqid, iprot, oprot):
5409  args = get_version_args()
5410  args.read(iprot)
5411  iprot.readMessageEnd()
5412  result = get_version_result()
5413  try:
5414  result.success = self._handler.get_version()
5415  msg_type = TMessageType.REPLY
5416  except TTransport.TTransportException:
5417  raise
5418  except TDBException as e:
5419  msg_type = TMessageType.REPLY
5420  result.e = e
5421  except TApplicationException as ex:
5422  logging.exception('TApplication exception in handler')
5423  msg_type = TMessageType.EXCEPTION
5424  result = ex
5425  except Exception:
5426  logging.exception('Unexpected exception in handler')
5427  msg_type = TMessageType.EXCEPTION
5428  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5429  oprot.writeMessageBegin("get_version", msg_type, seqid)
5430  result.write(oprot)
5431  oprot.writeMessageEnd()
5432  oprot.trans.flush()
5433 
5434  def process_start_heap_profile(self, seqid, iprot, oprot):
5435  args = start_heap_profile_args()
5436  args.read(iprot)
5437  iprot.readMessageEnd()
5438  result = start_heap_profile_result()
5439  try:
5440  self._handler.start_heap_profile(args.session)
5441  msg_type = TMessageType.REPLY
5442  except TTransport.TTransportException:
5443  raise
5444  except TDBException as e:
5445  msg_type = TMessageType.REPLY
5446  result.e = e
5447  except TApplicationException as ex:
5448  logging.exception('TApplication exception in handler')
5449  msg_type = TMessageType.EXCEPTION
5450  result = ex
5451  except Exception:
5452  logging.exception('Unexpected exception in handler')
5453  msg_type = TMessageType.EXCEPTION
5454  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5455  oprot.writeMessageBegin("start_heap_profile", msg_type, seqid)
5456  result.write(oprot)
5457  oprot.writeMessageEnd()
5458  oprot.trans.flush()
5459 
5460  def process_stop_heap_profile(self, seqid, iprot, oprot):
5461  args = stop_heap_profile_args()
5462  args.read(iprot)
5463  iprot.readMessageEnd()
5464  result = stop_heap_profile_result()
5465  try:
5466  self._handler.stop_heap_profile(args.session)
5467  msg_type = TMessageType.REPLY
5468  except TTransport.TTransportException:
5469  raise
5470  except TDBException as e:
5471  msg_type = TMessageType.REPLY
5472  result.e = e
5473  except TApplicationException as ex:
5474  logging.exception('TApplication exception in handler')
5475  msg_type = TMessageType.EXCEPTION
5476  result = ex
5477  except Exception:
5478  logging.exception('Unexpected exception in handler')
5479  msg_type = TMessageType.EXCEPTION
5480  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5481  oprot.writeMessageBegin("stop_heap_profile", msg_type, seqid)
5482  result.write(oprot)
5483  oprot.writeMessageEnd()
5484  oprot.trans.flush()
5485 
5486  def process_get_heap_profile(self, seqid, iprot, oprot):
5487  args = get_heap_profile_args()
5488  args.read(iprot)
5489  iprot.readMessageEnd()
5490  result = get_heap_profile_result()
5491  try:
5492  result.success = self._handler.get_heap_profile(args.session)
5493  msg_type = TMessageType.REPLY
5494  except TTransport.TTransportException:
5495  raise
5496  except TDBException as e:
5497  msg_type = TMessageType.REPLY
5498  result.e = e
5499  except TApplicationException as ex:
5500  logging.exception('TApplication exception in handler')
5501  msg_type = TMessageType.EXCEPTION
5502  result = ex
5503  except Exception:
5504  logging.exception('Unexpected exception in handler')
5505  msg_type = TMessageType.EXCEPTION
5506  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5507  oprot.writeMessageBegin("get_heap_profile", msg_type, seqid)
5508  result.write(oprot)
5509  oprot.writeMessageEnd()
5510  oprot.trans.flush()
5511 
5512  def process_get_memory(self, seqid, iprot, oprot):
5513  args = get_memory_args()
5514  args.read(iprot)
5515  iprot.readMessageEnd()
5516  result = get_memory_result()
5517  try:
5518  result.success = self._handler.get_memory(args.session, args.memory_level)
5519  msg_type = TMessageType.REPLY
5520  except TTransport.TTransportException:
5521  raise
5522  except TDBException as e:
5523  msg_type = TMessageType.REPLY
5524  result.e = e
5525  except TApplicationException as ex:
5526  logging.exception('TApplication exception in handler')
5527  msg_type = TMessageType.EXCEPTION
5528  result = ex
5529  except Exception:
5530  logging.exception('Unexpected exception in handler')
5531  msg_type = TMessageType.EXCEPTION
5532  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5533  oprot.writeMessageBegin("get_memory", msg_type, seqid)
5534  result.write(oprot)
5535  oprot.writeMessageEnd()
5536  oprot.trans.flush()
5537 
5538  def process_clear_cpu_memory(self, seqid, iprot, oprot):
5539  args = clear_cpu_memory_args()
5540  args.read(iprot)
5541  iprot.readMessageEnd()
5542  result = clear_cpu_memory_result()
5543  try:
5544  self._handler.clear_cpu_memory(args.session)
5545  msg_type = TMessageType.REPLY
5546  except TTransport.TTransportException:
5547  raise
5548  except TDBException as e:
5549  msg_type = TMessageType.REPLY
5550  result.e = e
5551  except TApplicationException as ex:
5552  logging.exception('TApplication exception in handler')
5553  msg_type = TMessageType.EXCEPTION
5554  result = ex
5555  except Exception:
5556  logging.exception('Unexpected exception in handler')
5557  msg_type = TMessageType.EXCEPTION
5558  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5559  oprot.writeMessageBegin("clear_cpu_memory", msg_type, seqid)
5560  result.write(oprot)
5561  oprot.writeMessageEnd()
5562  oprot.trans.flush()
5563 
5564  def process_clear_gpu_memory(self, seqid, iprot, oprot):
5565  args = clear_gpu_memory_args()
5566  args.read(iprot)
5567  iprot.readMessageEnd()
5568  result = clear_gpu_memory_result()
5569  try:
5570  self._handler.clear_gpu_memory(args.session)
5571  msg_type = TMessageType.REPLY
5572  except TTransport.TTransportException:
5573  raise
5574  except TDBException as e:
5575  msg_type = TMessageType.REPLY
5576  result.e = e
5577  except TApplicationException as ex:
5578  logging.exception('TApplication exception in handler')
5579  msg_type = TMessageType.EXCEPTION
5580  result = ex
5581  except Exception:
5582  logging.exception('Unexpected exception in handler')
5583  msg_type = TMessageType.EXCEPTION
5584  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5585  oprot.writeMessageBegin("clear_gpu_memory", msg_type, seqid)
5586  result.write(oprot)
5587  oprot.writeMessageEnd()
5588  oprot.trans.flush()
5589 
5590  def process_set_cur_session(self, seqid, iprot, oprot):
5591  args = set_cur_session_args()
5592  args.read(iprot)
5593  iprot.readMessageEnd()
5594  result = set_cur_session_result()
5595  try:
5596  self._handler.set_cur_session(args.parent_session, args.leaf_session, args.start_time_str, args.label, args.for_running_query_kernel)
5597  msg_type = TMessageType.REPLY
5598  except TTransport.TTransportException:
5599  raise
5600  except TDBException as e:
5601  msg_type = TMessageType.REPLY
5602  result.e = e
5603  except TApplicationException as ex:
5604  logging.exception('TApplication exception in handler')
5605  msg_type = TMessageType.EXCEPTION
5606  result = ex
5607  except Exception:
5608  logging.exception('Unexpected exception in handler')
5609  msg_type = TMessageType.EXCEPTION
5610  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5611  oprot.writeMessageBegin("set_cur_session", msg_type, seqid)
5612  result.write(oprot)
5613  oprot.writeMessageEnd()
5614  oprot.trans.flush()
5615 
5616  def process_invalidate_cur_session(self, seqid, iprot, oprot):
5618  args.read(iprot)
5619  iprot.readMessageEnd()
5621  try:
5622  self._handler.invalidate_cur_session(args.parent_session, args.leaf_session, args.start_time_str, args.label, args.for_running_query_kernel)
5623  msg_type = TMessageType.REPLY
5624  except TTransport.TTransportException:
5625  raise
5626  except TDBException as e:
5627  msg_type = TMessageType.REPLY
5628  result.e = e
5629  except TApplicationException as ex:
5630  logging.exception('TApplication exception in handler')
5631  msg_type = TMessageType.EXCEPTION
5632  result = ex
5633  except Exception:
5634  logging.exception('Unexpected exception in handler')
5635  msg_type = TMessageType.EXCEPTION
5636  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5637  oprot.writeMessageBegin("invalidate_cur_session", msg_type, seqid)
5638  result.write(oprot)
5639  oprot.writeMessageEnd()
5640  oprot.trans.flush()
5641 
5642  def process_set_table_epoch(self, seqid, iprot, oprot):
5643  args = set_table_epoch_args()
5644  args.read(iprot)
5645  iprot.readMessageEnd()
5646  result = set_table_epoch_result()
5647  try:
5648  self._handler.set_table_epoch(args.session, args.db_id, args.table_id, args.new_epoch)
5649  msg_type = TMessageType.REPLY
5650  except TTransport.TTransportException:
5651  raise
5652  except TDBException as e:
5653  msg_type = TMessageType.REPLY
5654  result.e = e
5655  except TApplicationException as ex:
5656  logging.exception('TApplication exception in handler')
5657  msg_type = TMessageType.EXCEPTION
5658  result = ex
5659  except Exception:
5660  logging.exception('Unexpected exception in handler')
5661  msg_type = TMessageType.EXCEPTION
5662  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5663  oprot.writeMessageBegin("set_table_epoch", msg_type, seqid)
5664  result.write(oprot)
5665  oprot.writeMessageEnd()
5666  oprot.trans.flush()
5667 
5668  def process_set_table_epoch_by_name(self, seqid, iprot, oprot):
5670  args.read(iprot)
5671  iprot.readMessageEnd()
5673  try:
5674  self._handler.set_table_epoch_by_name(args.session, args.table_name, args.new_epoch)
5675  msg_type = TMessageType.REPLY
5676  except TTransport.TTransportException:
5677  raise
5678  except TDBException as e:
5679  msg_type = TMessageType.REPLY
5680  result.e = e
5681  except TApplicationException as ex:
5682  logging.exception('TApplication exception in handler')
5683  msg_type = TMessageType.EXCEPTION
5684  result = ex
5685  except Exception:
5686  logging.exception('Unexpected exception in handler')
5687  msg_type = TMessageType.EXCEPTION
5688  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5689  oprot.writeMessageBegin("set_table_epoch_by_name", msg_type, seqid)
5690  result.write(oprot)
5691  oprot.writeMessageEnd()
5692  oprot.trans.flush()
5693 
5694  def process_get_table_epoch(self, seqid, iprot, oprot):
5695  args = get_table_epoch_args()
5696  args.read(iprot)
5697  iprot.readMessageEnd()
5698  result = get_table_epoch_result()
5699  try:
5700  result.success = self._handler.get_table_epoch(args.session, args.db_id, args.table_id)
5701  msg_type = TMessageType.REPLY
5702  except TTransport.TTransportException:
5703  raise
5704  except TApplicationException as ex:
5705  logging.exception('TApplication exception in handler')
5706  msg_type = TMessageType.EXCEPTION
5707  result = ex
5708  except Exception:
5709  logging.exception('Unexpected exception in handler')
5710  msg_type = TMessageType.EXCEPTION
5711  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5712  oprot.writeMessageBegin("get_table_epoch", msg_type, seqid)
5713  result.write(oprot)
5714  oprot.writeMessageEnd()
5715  oprot.trans.flush()
5716 
5717  def process_get_table_epoch_by_name(self, seqid, iprot, oprot):
5719  args.read(iprot)
5720  iprot.readMessageEnd()
5722  try:
5723  result.success = self._handler.get_table_epoch_by_name(args.session, args.table_name)
5724  msg_type = TMessageType.REPLY
5725  except TTransport.TTransportException:
5726  raise
5727  except TApplicationException as ex:
5728  logging.exception('TApplication exception in handler')
5729  msg_type = TMessageType.EXCEPTION
5730  result = ex
5731  except Exception:
5732  logging.exception('Unexpected exception in handler')
5733  msg_type = TMessageType.EXCEPTION
5734  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5735  oprot.writeMessageBegin("get_table_epoch_by_name", msg_type, seqid)
5736  result.write(oprot)
5737  oprot.writeMessageEnd()
5738  oprot.trans.flush()
5739 
5740  def process_get_table_epochs(self, seqid, iprot, oprot):
5741  args = get_table_epochs_args()
5742  args.read(iprot)
5743  iprot.readMessageEnd()
5744  result = get_table_epochs_result()
5745  try:
5746  result.success = self._handler.get_table_epochs(args.session, args.db_id, args.table_id)
5747  msg_type = TMessageType.REPLY
5748  except TTransport.TTransportException:
5749  raise
5750  except TApplicationException as ex:
5751  logging.exception('TApplication exception in handler')
5752  msg_type = TMessageType.EXCEPTION
5753  result = ex
5754  except Exception:
5755  logging.exception('Unexpected exception in handler')
5756  msg_type = TMessageType.EXCEPTION
5757  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5758  oprot.writeMessageBegin("get_table_epochs", msg_type, seqid)
5759  result.write(oprot)
5760  oprot.writeMessageEnd()
5761  oprot.trans.flush()
5762 
5763  def process_set_table_epochs(self, seqid, iprot, oprot):
5764  args = set_table_epochs_args()
5765  args.read(iprot)
5766  iprot.readMessageEnd()
5767  result = set_table_epochs_result()
5768  try:
5769  self._handler.set_table_epochs(args.session, args.db_id, args.table_epochs)
5770  msg_type = TMessageType.REPLY
5771  except TTransport.TTransportException:
5772  raise
5773  except TApplicationException as ex:
5774  logging.exception('TApplication exception in handler')
5775  msg_type = TMessageType.EXCEPTION
5776  result = ex
5777  except Exception:
5778  logging.exception('Unexpected exception in handler')
5779  msg_type = TMessageType.EXCEPTION
5780  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5781  oprot.writeMessageBegin("set_table_epochs", msg_type, seqid)
5782  result.write(oprot)
5783  oprot.writeMessageEnd()
5784  oprot.trans.flush()
5785 
5786  def process_get_session_info(self, seqid, iprot, oprot):
5787  args = get_session_info_args()
5788  args.read(iprot)
5789  iprot.readMessageEnd()
5790  result = get_session_info_result()
5791  try:
5792  result.success = self._handler.get_session_info(args.session)
5793  msg_type = TMessageType.REPLY
5794  except TTransport.TTransportException:
5795  raise
5796  except TDBException as e:
5797  msg_type = TMessageType.REPLY
5798  result.e = e
5799  except TApplicationException as ex:
5800  logging.exception('TApplication exception in handler')
5801  msg_type = TMessageType.EXCEPTION
5802  result = ex
5803  except Exception:
5804  logging.exception('Unexpected exception in handler')
5805  msg_type = TMessageType.EXCEPTION
5806  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5807  oprot.writeMessageBegin("get_session_info", msg_type, seqid)
5808  result.write(oprot)
5809  oprot.writeMessageEnd()
5810  oprot.trans.flush()
5811 
5812  def process_get_queries_info(self, seqid, iprot, oprot):
5813  args = get_queries_info_args()
5814  args.read(iprot)
5815  iprot.readMessageEnd()
5816  result = get_queries_info_result()
5817  try:
5818  result.success = self._handler.get_queries_info(args.session)
5819  msg_type = TMessageType.REPLY
5820  except TTransport.TTransportException:
5821  raise
5822  except TDBException as e:
5823  msg_type = TMessageType.REPLY
5824  result.e = e
5825  except TApplicationException as ex:
5826  logging.exception('TApplication exception in handler')
5827  msg_type = TMessageType.EXCEPTION
5828  result = ex
5829  except Exception:
5830  logging.exception('Unexpected exception in handler')
5831  msg_type = TMessageType.EXCEPTION
5832  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5833  oprot.writeMessageBegin("get_queries_info", msg_type, seqid)
5834  result.write(oprot)
5835  oprot.writeMessageEnd()
5836  oprot.trans.flush()
5837 
5838  def process_set_leaf_info(self, seqid, iprot, oprot):
5839  args = set_leaf_info_args()
5840  args.read(iprot)
5841  iprot.readMessageEnd()
5842  result = set_leaf_info_result()
5843  try:
5844  self._handler.set_leaf_info(args.session, args.leaf_info)
5845  msg_type = TMessageType.REPLY
5846  except TTransport.TTransportException:
5847  raise
5848  except TDBException as e:
5849  msg_type = TMessageType.REPLY
5850  result.e = e
5851  except TApplicationException as ex:
5852  logging.exception('TApplication exception in handler')
5853  msg_type = TMessageType.EXCEPTION
5854  result = ex
5855  except Exception:
5856  logging.exception('Unexpected exception in handler')
5857  msg_type = TMessageType.EXCEPTION
5858  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5859  oprot.writeMessageBegin("set_leaf_info", msg_type, seqid)
5860  result.write(oprot)
5861  oprot.writeMessageEnd()
5862  oprot.trans.flush()
5863 
5864  def process_sql_execute(self, seqid, iprot, oprot):
5865  args = sql_execute_args()
5866  args.read(iprot)
5867  iprot.readMessageEnd()
5868  result = sql_execute_result()
5869  try:
5870  result.success = self._handler.sql_execute(args.session, args.query, args.column_format, args.nonce, args.first_n, args.at_most_n)
5871  msg_type = TMessageType.REPLY
5872  except TTransport.TTransportException:
5873  raise
5874  except TDBException as e:
5875  msg_type = TMessageType.REPLY
5876  result.e = e
5877  except TApplicationException as ex:
5878  logging.exception('TApplication exception in handler')
5879  msg_type = TMessageType.EXCEPTION
5880  result = ex
5881  except Exception:
5882  logging.exception('Unexpected exception in handler')
5883  msg_type = TMessageType.EXCEPTION
5884  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5885  oprot.writeMessageBegin("sql_execute", msg_type, seqid)
5886  result.write(oprot)
5887  oprot.writeMessageEnd()
5888  oprot.trans.flush()
5889 
5890  def process_sql_execute_df(self, seqid, iprot, oprot):
5891  args = sql_execute_df_args()
5892  args.read(iprot)
5893  iprot.readMessageEnd()
5894  result = sql_execute_df_result()
5895  try:
5896  result.success = self._handler.sql_execute_df(args.session, args.query, args.device_type, args.device_id, args.first_n, args.transport_method)
5897  msg_type = TMessageType.REPLY
5898  except TTransport.TTransportException:
5899  raise
5900  except TDBException as e:
5901  msg_type = TMessageType.REPLY
5902  result.e = e
5903  except TApplicationException as ex:
5904  logging.exception('TApplication exception in handler')
5905  msg_type = TMessageType.EXCEPTION
5906  result = ex
5907  except Exception:
5908  logging.exception('Unexpected exception in handler')
5909  msg_type = TMessageType.EXCEPTION
5910  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5911  oprot.writeMessageBegin("sql_execute_df", msg_type, seqid)
5912  result.write(oprot)
5913  oprot.writeMessageEnd()
5914  oprot.trans.flush()
5915 
5916  def process_sql_execute_gdf(self, seqid, iprot, oprot):
5917  args = sql_execute_gdf_args()
5918  args.read(iprot)
5919  iprot.readMessageEnd()
5920  result = sql_execute_gdf_result()
5921  try:
5922  result.success = self._handler.sql_execute_gdf(args.session, args.query, args.device_id, args.first_n)
5923  msg_type = TMessageType.REPLY
5924  except TTransport.TTransportException:
5925  raise
5926  except TDBException as e:
5927  msg_type = TMessageType.REPLY
5928  result.e = e
5929  except TApplicationException as ex:
5930  logging.exception('TApplication exception in handler')
5931  msg_type = TMessageType.EXCEPTION
5932  result = ex
5933  except Exception:
5934  logging.exception('Unexpected exception in handler')
5935  msg_type = TMessageType.EXCEPTION
5936  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5937  oprot.writeMessageBegin("sql_execute_gdf", msg_type, seqid)
5938  result.write(oprot)
5939  oprot.writeMessageEnd()
5940  oprot.trans.flush()
5941 
5942  def process_deallocate_df(self, seqid, iprot, oprot):
5943  args = deallocate_df_args()
5944  args.read(iprot)
5945  iprot.readMessageEnd()
5946  result = deallocate_df_result()
5947  try:
5948  self._handler.deallocate_df(args.session, args.df, args.device_type, args.device_id)
5949  msg_type = TMessageType.REPLY
5950  except TTransport.TTransportException:
5951  raise
5952  except TDBException as e:
5953  msg_type = TMessageType.REPLY
5954  result.e = e
5955  except TApplicationException as ex:
5956  logging.exception('TApplication exception in handler')
5957  msg_type = TMessageType.EXCEPTION
5958  result = ex
5959  except Exception:
5960  logging.exception('Unexpected exception in handler')
5961  msg_type = TMessageType.EXCEPTION
5962  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5963  oprot.writeMessageBegin("deallocate_df", msg_type, seqid)
5964  result.write(oprot)
5965  oprot.writeMessageEnd()
5966  oprot.trans.flush()
5967 
5968  def process_interrupt(self, seqid, iprot, oprot):
5969  args = interrupt_args()
5970  args.read(iprot)
5971  iprot.readMessageEnd()
5972  result = interrupt_result()
5973  try:
5974  self._handler.interrupt(args.query_session, args.interrupt_session)
5975  msg_type = TMessageType.REPLY
5976  except TTransport.TTransportException:
5977  raise
5978  except TDBException as e:
5979  msg_type = TMessageType.REPLY
5980  result.e = e
5981  except TApplicationException as ex:
5982  logging.exception('TApplication exception in handler')
5983  msg_type = TMessageType.EXCEPTION
5984  result = ex
5985  except Exception:
5986  logging.exception('Unexpected exception in handler')
5987  msg_type = TMessageType.EXCEPTION
5988  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
5989  oprot.writeMessageBegin("interrupt", msg_type, seqid)
5990  result.write(oprot)
5991  oprot.writeMessageEnd()
5992  oprot.trans.flush()
5993 
5994  def process_sql_validate(self, seqid, iprot, oprot):
5995  args = sql_validate_args()
5996  args.read(iprot)
5997  iprot.readMessageEnd()
5998  result = sql_validate_result()
5999  try:
6000  result.success = self._handler.sql_validate(args.session, args.query)
6001  msg_type = TMessageType.REPLY
6002  except TTransport.TTransportException:
6003  raise
6004  except TDBException as e:
6005  msg_type = TMessageType.REPLY
6006  result.e = e
6007  except TApplicationException as ex:
6008  logging.exception('TApplication exception in handler')
6009  msg_type = TMessageType.EXCEPTION
6010  result = ex
6011  except Exception:
6012  logging.exception('Unexpected exception in handler')
6013  msg_type = TMessageType.EXCEPTION
6014  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6015  oprot.writeMessageBegin("sql_validate", msg_type, seqid)
6016  result.write(oprot)
6017  oprot.writeMessageEnd()
6018  oprot.trans.flush()
6019 
6020  def process_get_completion_hints(self, seqid, iprot, oprot):
6021  args = get_completion_hints_args()
6022  args.read(iprot)
6023  iprot.readMessageEnd()
6024  result = get_completion_hints_result()
6025  try:
6026  result.success = self._handler.get_completion_hints(args.session, args.sql, args.cursor)
6027  msg_type = TMessageType.REPLY
6028  except TTransport.TTransportException:
6029  raise
6030  except TDBException as e:
6031  msg_type = TMessageType.REPLY
6032  result.e = e
6033  except TApplicationException as ex:
6034  logging.exception('TApplication exception in handler')
6035  msg_type = TMessageType.EXCEPTION
6036  result = ex
6037  except Exception:
6038  logging.exception('Unexpected exception in handler')
6039  msg_type = TMessageType.EXCEPTION
6040  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6041  oprot.writeMessageBegin("get_completion_hints", msg_type, seqid)
6042  result.write(oprot)
6043  oprot.writeMessageEnd()
6044  oprot.trans.flush()
6045 
6046  def process_set_execution_mode(self, seqid, iprot, oprot):
6047  args = set_execution_mode_args()
6048  args.read(iprot)
6049  iprot.readMessageEnd()
6050  result = set_execution_mode_result()
6051  try:
6052  self._handler.set_execution_mode(args.session, args.mode)
6053  msg_type = TMessageType.REPLY
6054  except TTransport.TTransportException:
6055  raise
6056  except TDBException as e:
6057  msg_type = TMessageType.REPLY
6058  result.e = e
6059  except TApplicationException as ex:
6060  logging.exception('TApplication exception in handler')
6061  msg_type = TMessageType.EXCEPTION
6062  result = ex
6063  except Exception:
6064  logging.exception('Unexpected exception in handler')
6065  msg_type = TMessageType.EXCEPTION
6066  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6067  oprot.writeMessageBegin("set_execution_mode", msg_type, seqid)
6068  result.write(oprot)
6069  oprot.writeMessageEnd()
6070  oprot.trans.flush()
6071 
6072  def process_render_vega(self, seqid, iprot, oprot):
6073  args = render_vega_args()
6074  args.read(iprot)
6075  iprot.readMessageEnd()
6076  result = render_vega_result()
6077  try:
6078  result.success = self._handler.render_vega(args.session, args.widget_id, args.vega_json, args.compression_level, args.nonce)
6079  msg_type = TMessageType.REPLY
6080  except TTransport.TTransportException:
6081  raise
6082  except TDBException as e:
6083  msg_type = TMessageType.REPLY
6084  result.e = e
6085  except TApplicationException as ex:
6086  logging.exception('TApplication exception in handler')
6087  msg_type = TMessageType.EXCEPTION
6088  result = ex
6089  except Exception:
6090  logging.exception('Unexpected exception in handler')
6091  msg_type = TMessageType.EXCEPTION
6092  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6093  oprot.writeMessageBegin("render_vega", msg_type, seqid)
6094  result.write(oprot)
6095  oprot.writeMessageEnd()
6096  oprot.trans.flush()
6097 
6098  def process_get_result_row_for_pixel(self, seqid, iprot, oprot):
6100  args.read(iprot)
6101  iprot.readMessageEnd()
6103  try:
6104  result.success = self._handler.get_result_row_for_pixel(args.session, args.widget_id, args.pixel, args.table_col_names, args.column_format, args.pixelRadius, args.nonce)
6105  msg_type = TMessageType.REPLY
6106  except TTransport.TTransportException:
6107  raise
6108  except TDBException as e:
6109  msg_type = TMessageType.REPLY
6110  result.e = e
6111  except TApplicationException as ex:
6112  logging.exception('TApplication exception in handler')
6113  msg_type = TMessageType.EXCEPTION
6114  result = ex
6115  except Exception:
6116  logging.exception('Unexpected exception in handler')
6117  msg_type = TMessageType.EXCEPTION
6118  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6119  oprot.writeMessageBegin("get_result_row_for_pixel", msg_type, seqid)
6120  result.write(oprot)
6121  oprot.writeMessageEnd()
6122  oprot.trans.flush()
6123 
6124  def process_create_custom_expression(self, seqid, iprot, oprot):
6126  args.read(iprot)
6127  iprot.readMessageEnd()
6129  try:
6130  result.success = self._handler.create_custom_expression(args.session, args.custom_expression)
6131  msg_type = TMessageType.REPLY
6132  except TTransport.TTransportException:
6133  raise
6134  except TDBException as e:
6135  msg_type = TMessageType.REPLY
6136  result.e = e
6137  except TApplicationException as ex:
6138  logging.exception('TApplication exception in handler')
6139  msg_type = TMessageType.EXCEPTION
6140  result = ex
6141  except Exception:
6142  logging.exception('Unexpected exception in handler')
6143  msg_type = TMessageType.EXCEPTION
6144  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6145  oprot.writeMessageBegin("create_custom_expression", msg_type, seqid)
6146  result.write(oprot)
6147  oprot.writeMessageEnd()
6148  oprot.trans.flush()
6149 
6150  def process_get_custom_expressions(self, seqid, iprot, oprot):
6152  args.read(iprot)
6153  iprot.readMessageEnd()
6155  try:
6156  result.success = self._handler.get_custom_expressions(args.session)
6157  msg_type = TMessageType.REPLY
6158  except TTransport.TTransportException:
6159  raise
6160  except TDBException as e:
6161  msg_type = TMessageType.REPLY
6162  result.e = e
6163  except TApplicationException as ex:
6164  logging.exception('TApplication exception in handler')
6165  msg_type = TMessageType.EXCEPTION
6166  result = ex
6167  except Exception:
6168  logging.exception('Unexpected exception in handler')
6169  msg_type = TMessageType.EXCEPTION
6170  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6171  oprot.writeMessageBegin("get_custom_expressions", msg_type, seqid)
6172  result.write(oprot)
6173  oprot.writeMessageEnd()
6174  oprot.trans.flush()
6175 
6176  def process_update_custom_expression(self, seqid, iprot, oprot):
6178  args.read(iprot)
6179  iprot.readMessageEnd()
6181  try:
6182  self._handler.update_custom_expression(args.session, args.id, args.expression_json)
6183  msg_type = TMessageType.REPLY
6184  except TTransport.TTransportException:
6185  raise
6186  except TDBException as e:
6187  msg_type = TMessageType.REPLY
6188  result.e = e
6189  except TApplicationException as ex:
6190  logging.exception('TApplication exception in handler')
6191  msg_type = TMessageType.EXCEPTION
6192  result = ex
6193  except Exception:
6194  logging.exception('Unexpected exception in handler')
6195  msg_type = TMessageType.EXCEPTION
6196  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6197  oprot.writeMessageBegin("update_custom_expression", msg_type, seqid)
6198  result.write(oprot)
6199  oprot.writeMessageEnd()
6200  oprot.trans.flush()
6201 
6202  def process_delete_custom_expressions(self, seqid, iprot, oprot):
6204  args.read(iprot)
6205  iprot.readMessageEnd()
6207  try:
6208  self._handler.delete_custom_expressions(args.session, args.custom_expression_ids, args.do_soft_delete)
6209  msg_type = TMessageType.REPLY
6210  except TTransport.TTransportException:
6211  raise
6212  except TDBException as e:
6213  msg_type = TMessageType.REPLY
6214  result.e = e
6215  except TApplicationException as ex:
6216  logging.exception('TApplication exception in handler')
6217  msg_type = TMessageType.EXCEPTION
6218  result = ex
6219  except Exception:
6220  logging.exception('Unexpected exception in handler')
6221  msg_type = TMessageType.EXCEPTION
6222  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6223  oprot.writeMessageBegin("delete_custom_expressions", msg_type, seqid)
6224  result.write(oprot)
6225  oprot.writeMessageEnd()
6226  oprot.trans.flush()
6227 
6228  def process_get_dashboard(self, seqid, iprot, oprot):
6229  args = get_dashboard_args()
6230  args.read(iprot)
6231  iprot.readMessageEnd()
6232  result = get_dashboard_result()
6233  try:
6234  result.success = self._handler.get_dashboard(args.session, args.dashboard_id)
6235  msg_type = TMessageType.REPLY
6236  except TTransport.TTransportException:
6237  raise
6238  except TDBException as e:
6239  msg_type = TMessageType.REPLY
6240  result.e = e
6241  except TApplicationException as ex:
6242  logging.exception('TApplication exception in handler')
6243  msg_type = TMessageType.EXCEPTION
6244  result = ex
6245  except Exception:
6246  logging.exception('Unexpected exception in handler')
6247  msg_type = TMessageType.EXCEPTION
6248  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6249  oprot.writeMessageBegin("get_dashboard", msg_type, seqid)
6250  result.write(oprot)
6251  oprot.writeMessageEnd()
6252  oprot.trans.flush()
6253 
6254  def process_get_dashboards(self, seqid, iprot, oprot):
6255  args = get_dashboards_args()
6256  args.read(iprot)
6257  iprot.readMessageEnd()
6258  result = get_dashboards_result()
6259  try:
6260  result.success = self._handler.get_dashboards(args.session)
6261  msg_type = TMessageType.REPLY
6262  except TTransport.TTransportException:
6263  raise
6264  except TDBException as e:
6265  msg_type = TMessageType.REPLY
6266  result.e = e
6267  except TApplicationException as ex:
6268  logging.exception('TApplication exception in handler')
6269  msg_type = TMessageType.EXCEPTION
6270  result = ex
6271  except Exception:
6272  logging.exception('Unexpected exception in handler')
6273  msg_type = TMessageType.EXCEPTION
6274  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6275  oprot.writeMessageBegin("get_dashboards", msg_type, seqid)
6276  result.write(oprot)
6277  oprot.writeMessageEnd()
6278  oprot.trans.flush()
6279 
6280  def process_create_dashboard(self, seqid, iprot, oprot):
6281  args = create_dashboard_args()
6282  args.read(iprot)
6283  iprot.readMessageEnd()
6284  result = create_dashboard_result()
6285  try:
6286  result.success = self._handler.create_dashboard(args.session, args.dashboard_name, args.dashboard_state, args.image_hash, args.dashboard_metadata)
6287  msg_type = TMessageType.REPLY
6288  except TTransport.TTransportException:
6289  raise
6290  except TDBException as e:
6291  msg_type = TMessageType.REPLY
6292  result.e = e
6293  except TApplicationException as ex:
6294  logging.exception('TApplication exception in handler')
6295  msg_type = TMessageType.EXCEPTION
6296  result = ex
6297  except Exception:
6298  logging.exception('Unexpected exception in handler')
6299  msg_type = TMessageType.EXCEPTION
6300  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6301  oprot.writeMessageBegin("create_dashboard", msg_type, seqid)
6302  result.write(oprot)
6303  oprot.writeMessageEnd()
6304  oprot.trans.flush()
6305 
6306  def process_replace_dashboard(self, seqid, iprot, oprot):
6307  args = replace_dashboard_args()
6308  args.read(iprot)
6309  iprot.readMessageEnd()
6310  result = replace_dashboard_result()
6311  try:
6312  self._handler.replace_dashboard(args.session, args.dashboard_id, args.dashboard_name, args.dashboard_owner, args.dashboard_state, args.image_hash, args.dashboard_metadata)
6313  msg_type = TMessageType.REPLY
6314  except TTransport.TTransportException:
6315  raise
6316  except TDBException as e:
6317  msg_type = TMessageType.REPLY
6318  result.e = e
6319  except TApplicationException as ex:
6320  logging.exception('TApplication exception in handler')
6321  msg_type = TMessageType.EXCEPTION
6322  result = ex
6323  except Exception:
6324  logging.exception('Unexpected exception in handler')
6325  msg_type = TMessageType.EXCEPTION
6326  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6327  oprot.writeMessageBegin("replace_dashboard", msg_type, seqid)
6328  result.write(oprot)
6329  oprot.writeMessageEnd()
6330  oprot.trans.flush()
6331 
6332  def process_delete_dashboard(self, seqid, iprot, oprot):
6333  args = delete_dashboard_args()
6334  args.read(iprot)
6335  iprot.readMessageEnd()
6336  result = delete_dashboard_result()
6337  try:
6338  self._handler.delete_dashboard(args.session, args.dashboard_id)
6339  msg_type = TMessageType.REPLY
6340  except TTransport.TTransportException:
6341  raise
6342  except TDBException as e:
6343  msg_type = TMessageType.REPLY
6344  result.e = e
6345  except TApplicationException as ex:
6346  logging.exception('TApplication exception in handler')
6347  msg_type = TMessageType.EXCEPTION
6348  result = ex
6349  except Exception:
6350  logging.exception('Unexpected exception in handler')
6351  msg_type = TMessageType.EXCEPTION
6352  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6353  oprot.writeMessageBegin("delete_dashboard", msg_type, seqid)
6354  result.write(oprot)
6355  oprot.writeMessageEnd()
6356  oprot.trans.flush()
6357 
6358  def process_share_dashboards(self, seqid, iprot, oprot):
6359  args = share_dashboards_args()
6360  args.read(iprot)
6361  iprot.readMessageEnd()
6362  result = share_dashboards_result()
6363  try:
6364  self._handler.share_dashboards(args.session, args.dashboard_ids, args.groups, args.permissions)
6365  msg_type = TMessageType.REPLY
6366  except TTransport.TTransportException:
6367  raise
6368  except TDBException as e:
6369  msg_type = TMessageType.REPLY
6370  result.e = e
6371  except TApplicationException as ex:
6372  logging.exception('TApplication exception in handler')
6373  msg_type = TMessageType.EXCEPTION
6374  result = ex
6375  except Exception:
6376  logging.exception('Unexpected exception in handler')
6377  msg_type = TMessageType.EXCEPTION
6378  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6379  oprot.writeMessageBegin("share_dashboards", msg_type, seqid)
6380  result.write(oprot)
6381  oprot.writeMessageEnd()
6382  oprot.trans.flush()
6383 
6384  def process_delete_dashboards(self, seqid, iprot, oprot):
6385  args = delete_dashboards_args()
6386  args.read(iprot)
6387  iprot.readMessageEnd()
6388  result = delete_dashboards_result()
6389  try:
6390  self._handler.delete_dashboards(args.session, args.dashboard_ids)
6391  msg_type = TMessageType.REPLY
6392  except TTransport.TTransportException:
6393  raise
6394  except TDBException as e:
6395  msg_type = TMessageType.REPLY
6396  result.e = e
6397  except TApplicationException as ex:
6398  logging.exception('TApplication exception in handler')
6399  msg_type = TMessageType.EXCEPTION
6400  result = ex
6401  except Exception:
6402  logging.exception('Unexpected exception in handler')
6403  msg_type = TMessageType.EXCEPTION
6404  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6405  oprot.writeMessageBegin("delete_dashboards", msg_type, seqid)
6406  result.write(oprot)
6407  oprot.writeMessageEnd()
6408  oprot.trans.flush()
6409 
6410  def process_share_dashboard(self, seqid, iprot, oprot):
6411  args = share_dashboard_args()
6412  args.read(iprot)
6413  iprot.readMessageEnd()
6414  result = share_dashboard_result()
6415  try:
6416  self._handler.share_dashboard(args.session, args.dashboard_id, args.groups, args.objects, args.permissions, args.grant_role)
6417  msg_type = TMessageType.REPLY
6418  except TTransport.TTransportException:
6419  raise
6420  except TDBException as e:
6421  msg_type = TMessageType.REPLY
6422  result.e = e
6423  except TApplicationException as ex:
6424  logging.exception('TApplication exception in handler')
6425  msg_type = TMessageType.EXCEPTION
6426  result = ex
6427  except Exception:
6428  logging.exception('Unexpected exception in handler')
6429  msg_type = TMessageType.EXCEPTION
6430  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6431  oprot.writeMessageBegin("share_dashboard", msg_type, seqid)
6432  result.write(oprot)
6433  oprot.writeMessageEnd()
6434  oprot.trans.flush()
6435 
6436  def process_unshare_dashboard(self, seqid, iprot, oprot):
6437  args = unshare_dashboard_args()
6438  args.read(iprot)
6439  iprot.readMessageEnd()
6440  result = unshare_dashboard_result()
6441  try:
6442  self._handler.unshare_dashboard(args.session, args.dashboard_id, args.groups, args.objects, args.permissions)
6443  msg_type = TMessageType.REPLY
6444  except TTransport.TTransportException:
6445  raise
6446  except TDBException as e:
6447  msg_type = TMessageType.REPLY
6448  result.e = e
6449  except TApplicationException as ex:
6450  logging.exception('TApplication exception in handler')
6451  msg_type = TMessageType.EXCEPTION
6452  result = ex
6453  except Exception:
6454  logging.exception('Unexpected exception in handler')
6455  msg_type = TMessageType.EXCEPTION
6456  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6457  oprot.writeMessageBegin("unshare_dashboard", msg_type, seqid)
6458  result.write(oprot)
6459  oprot.writeMessageEnd()
6460  oprot.trans.flush()
6461 
6462  def process_unshare_dashboards(self, seqid, iprot, oprot):
6463  args = unshare_dashboards_args()
6464  args.read(iprot)
6465  iprot.readMessageEnd()
6466  result = unshare_dashboards_result()
6467  try:
6468  self._handler.unshare_dashboards(args.session, args.dashboard_ids, args.groups, args.permissions)
6469  msg_type = TMessageType.REPLY
6470  except TTransport.TTransportException:
6471  raise
6472  except TDBException as e:
6473  msg_type = TMessageType.REPLY
6474  result.e = e
6475  except TApplicationException as ex:
6476  logging.exception('TApplication exception in handler')
6477  msg_type = TMessageType.EXCEPTION
6478  result = ex
6479  except Exception:
6480  logging.exception('Unexpected exception in handler')
6481  msg_type = TMessageType.EXCEPTION
6482  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6483  oprot.writeMessageBegin("unshare_dashboards", msg_type, seqid)
6484  result.write(oprot)
6485  oprot.writeMessageEnd()
6486  oprot.trans.flush()
6487 
6488  def process_get_dashboard_grantees(self, seqid, iprot, oprot):
6490  args.read(iprot)
6491  iprot.readMessageEnd()
6493  try:
6494  result.success = self._handler.get_dashboard_grantees(args.session, args.dashboard_id)
6495  msg_type = TMessageType.REPLY
6496  except TTransport.TTransportException:
6497  raise
6498  except TDBException as e:
6499  msg_type = TMessageType.REPLY
6500  result.e = e
6501  except TApplicationException as ex:
6502  logging.exception('TApplication exception in handler')
6503  msg_type = TMessageType.EXCEPTION
6504  result = ex
6505  except Exception:
6506  logging.exception('Unexpected exception in handler')
6507  msg_type = TMessageType.EXCEPTION
6508  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6509  oprot.writeMessageBegin("get_dashboard_grantees", msg_type, seqid)
6510  result.write(oprot)
6511  oprot.writeMessageEnd()
6512  oprot.trans.flush()
6513 
6514  def process_get_link_view(self, seqid, iprot, oprot):
6515  args = get_link_view_args()
6516  args.read(iprot)
6517  iprot.readMessageEnd()
6518  result = get_link_view_result()
6519  try:
6520  result.success = self._handler.get_link_view(args.session, args.link)
6521  msg_type = TMessageType.REPLY
6522  except TTransport.TTransportException:
6523  raise
6524  except TDBException as e:
6525  msg_type = TMessageType.REPLY
6526  result.e = e
6527  except TApplicationException as ex:
6528  logging.exception('TApplication exception in handler')
6529  msg_type = TMessageType.EXCEPTION
6530  result = ex
6531  except Exception:
6532  logging.exception('Unexpected exception in handler')
6533  msg_type = TMessageType.EXCEPTION
6534  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6535  oprot.writeMessageBegin("get_link_view", msg_type, seqid)
6536  result.write(oprot)
6537  oprot.writeMessageEnd()
6538  oprot.trans.flush()
6539 
6540  def process_create_link(self, seqid, iprot, oprot):
6541  args = create_link_args()
6542  args.read(iprot)
6543  iprot.readMessageEnd()
6544  result = create_link_result()
6545  try:
6546  result.success = self._handler.create_link(args.session, args.view_state, args.view_metadata)
6547  msg_type = TMessageType.REPLY
6548  except TTransport.TTransportException:
6549  raise
6550  except TDBException as e:
6551  msg_type = TMessageType.REPLY
6552  result.e = e
6553  except TApplicationException as ex:
6554  logging.exception('TApplication exception in handler')
6555  msg_type = TMessageType.EXCEPTION
6556  result = ex
6557  except Exception:
6558  logging.exception('Unexpected exception in handler')
6559  msg_type = TMessageType.EXCEPTION
6560  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6561  oprot.writeMessageBegin("create_link", msg_type, seqid)
6562  result.write(oprot)
6563  oprot.writeMessageEnd()
6564  oprot.trans.flush()
6565 
6566  def process_load_table_binary(self, seqid, iprot, oprot):
6567  args = load_table_binary_args()
6568  args.read(iprot)
6569  iprot.readMessageEnd()
6570  result = load_table_binary_result()
6571  try:
6572  self._handler.load_table_binary(args.session, args.table_name, args.rows, args.column_names)
6573  msg_type = TMessageType.REPLY
6574  except TTransport.TTransportException:
6575  raise
6576  except TDBException as e:
6577  msg_type = TMessageType.REPLY
6578  result.e = e
6579  except TApplicationException as ex:
6580  logging.exception('TApplication exception in handler')
6581  msg_type = TMessageType.EXCEPTION
6582  result = ex
6583  except Exception:
6584  logging.exception('Unexpected exception in handler')
6585  msg_type = TMessageType.EXCEPTION
6586  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6587  oprot.writeMessageBegin("load_table_binary", msg_type, seqid)
6588  result.write(oprot)
6589  oprot.writeMessageEnd()
6590  oprot.trans.flush()
6591 
6592  def process_load_table_binary_columnar(self, seqid, iprot, oprot):
6594  args.read(iprot)
6595  iprot.readMessageEnd()
6597  try:
6598  self._handler.load_table_binary_columnar(args.session, args.table_name, args.cols, args.column_names)
6599  msg_type = TMessageType.REPLY
6600  except TTransport.TTransportException:
6601  raise
6602  except TDBException as e:
6603  msg_type = TMessageType.REPLY
6604  result.e = e
6605  except TApplicationException as ex:
6606  logging.exception('TApplication exception in handler')
6607  msg_type = TMessageType.EXCEPTION
6608  result = ex
6609  except Exception:
6610  logging.exception('Unexpected exception in handler')
6611  msg_type = TMessageType.EXCEPTION
6612  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6613  oprot.writeMessageBegin("load_table_binary_columnar", msg_type, seqid)
6614  result.write(oprot)
6615  oprot.writeMessageEnd()
6616  oprot.trans.flush()
6617 
6618  def process_load_table_binary_arrow(self, seqid, iprot, oprot):
6620  args.read(iprot)
6621  iprot.readMessageEnd()
6623  try:
6624  self._handler.load_table_binary_arrow(args.session, args.table_name, args.arrow_stream, args.use_column_names)
6625  msg_type = TMessageType.REPLY
6626  except TTransport.TTransportException:
6627  raise
6628  except TDBException as e:
6629  msg_type = TMessageType.REPLY
6630  result.e = e
6631  except TApplicationException as ex:
6632  logging.exception('TApplication exception in handler')
6633  msg_type = TMessageType.EXCEPTION
6634  result = ex
6635  except Exception:
6636  logging.exception('Unexpected exception in handler')
6637  msg_type = TMessageType.EXCEPTION
6638  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6639  oprot.writeMessageBegin("load_table_binary_arrow", msg_type, seqid)
6640  result.write(oprot)
6641  oprot.writeMessageEnd()
6642  oprot.trans.flush()
6643 
6644  def process_load_table(self, seqid, iprot, oprot):
6645  args = load_table_args()
6646  args.read(iprot)
6647  iprot.readMessageEnd()
6648  result = load_table_result()
6649  try:
6650  self._handler.load_table(args.session, args.table_name, args.rows, args.column_names)
6651  msg_type = TMessageType.REPLY
6652  except TTransport.TTransportException:
6653  raise
6654  except TDBException as e:
6655  msg_type = TMessageType.REPLY
6656  result.e = e
6657  except TApplicationException as ex:
6658  logging.exception('TApplication exception in handler')
6659  msg_type = TMessageType.EXCEPTION
6660  result = ex
6661  except Exception:
6662  logging.exception('Unexpected exception in handler')
6663  msg_type = TMessageType.EXCEPTION
6664  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6665  oprot.writeMessageBegin("load_table", msg_type, seqid)
6666  result.write(oprot)
6667  oprot.writeMessageEnd()
6668  oprot.trans.flush()
6669 
6670  def process_detect_column_types(self, seqid, iprot, oprot):
6671  args = detect_column_types_args()
6672  args.read(iprot)
6673  iprot.readMessageEnd()
6674  result = detect_column_types_result()
6675  try:
6676  result.success = self._handler.detect_column_types(args.session, args.file_name, args.copy_params)
6677  msg_type = TMessageType.REPLY
6678  except TTransport.TTransportException:
6679  raise
6680  except TDBException as e:
6681  msg_type = TMessageType.REPLY
6682  result.e = e
6683  except TApplicationException as ex:
6684  logging.exception('TApplication exception in handler')
6685  msg_type = TMessageType.EXCEPTION
6686  result = ex
6687  except Exception:
6688  logging.exception('Unexpected exception in handler')
6689  msg_type = TMessageType.EXCEPTION
6690  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6691  oprot.writeMessageBegin("detect_column_types", msg_type, seqid)
6692  result.write(oprot)
6693  oprot.writeMessageEnd()
6694  oprot.trans.flush()
6695 
6696  def process_create_table(self, seqid, iprot, oprot):
6697  args = create_table_args()
6698  args.read(iprot)
6699  iprot.readMessageEnd()
6700  result = create_table_result()
6701  try:
6702  self._handler.create_table(args.session, args.table_name, args.row_desc, args.create_params)
6703  msg_type = TMessageType.REPLY
6704  except TTransport.TTransportException:
6705  raise
6706  except TDBException as e:
6707  msg_type = TMessageType.REPLY
6708  result.e = e
6709  except TApplicationException as ex:
6710  logging.exception('TApplication exception in handler')
6711  msg_type = TMessageType.EXCEPTION
6712  result = ex
6713  except Exception:
6714  logging.exception('Unexpected exception in handler')
6715  msg_type = TMessageType.EXCEPTION
6716  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6717  oprot.writeMessageBegin("create_table", msg_type, seqid)
6718  result.write(oprot)
6719  oprot.writeMessageEnd()
6720  oprot.trans.flush()
6721 
6722  def process_import_table(self, seqid, iprot, oprot):
6723  args = import_table_args()
6724  args.read(iprot)
6725  iprot.readMessageEnd()
6726  result = import_table_result()
6727  try:
6728  self._handler.import_table(args.session, args.table_name, args.file_name, args.copy_params)
6729  msg_type = TMessageType.REPLY
6730  except TTransport.TTransportException:
6731  raise
6732  except TDBException as e:
6733  msg_type = TMessageType.REPLY
6734  result.e = e
6735  except TApplicationException as ex:
6736  logging.exception('TApplication exception in handler')
6737  msg_type = TMessageType.EXCEPTION
6738  result = ex
6739  except Exception:
6740  logging.exception('Unexpected exception in handler')
6741  msg_type = TMessageType.EXCEPTION
6742  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6743  oprot.writeMessageBegin("import_table", msg_type, seqid)
6744  result.write(oprot)
6745  oprot.writeMessageEnd()
6746  oprot.trans.flush()
6747 
6748  def process_import_geo_table(self, seqid, iprot, oprot):
6749  args = import_geo_table_args()
6750  args.read(iprot)
6751  iprot.readMessageEnd()
6752  result = import_geo_table_result()
6753  try:
6754  self._handler.import_geo_table(args.session, args.table_name, args.file_name, args.copy_params, args.row_desc, args.create_params)
6755  msg_type = TMessageType.REPLY
6756  except TTransport.TTransportException:
6757  raise
6758  except TDBException as e:
6759  msg_type = TMessageType.REPLY
6760  result.e = e
6761  except TApplicationException as ex:
6762  logging.exception('TApplication exception in handler')
6763  msg_type = TMessageType.EXCEPTION
6764  result = ex
6765  except Exception:
6766  logging.exception('Unexpected exception in handler')
6767  msg_type = TMessageType.EXCEPTION
6768  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6769  oprot.writeMessageBegin("import_geo_table", msg_type, seqid)
6770  result.write(oprot)
6771  oprot.writeMessageEnd()
6772  oprot.trans.flush()
6773 
6774  def process_import_table_status(self, seqid, iprot, oprot):
6775  args = import_table_status_args()
6776  args.read(iprot)
6777  iprot.readMessageEnd()
6778  result = import_table_status_result()
6779  try:
6780  result.success = self._handler.import_table_status(args.session, args.import_id)
6781  msg_type = TMessageType.REPLY
6782  except TTransport.TTransportException:
6783  raise
6784  except TDBException as e:
6785  msg_type = TMessageType.REPLY
6786  result.e = e
6787  except TApplicationException as ex:
6788  logging.exception('TApplication exception in handler')
6789  msg_type = TMessageType.EXCEPTION
6790  result = ex
6791  except Exception:
6792  logging.exception('Unexpected exception in handler')
6793  msg_type = TMessageType.EXCEPTION
6794  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6795  oprot.writeMessageBegin("import_table_status", msg_type, seqid)
6796  result.write(oprot)
6797  oprot.writeMessageEnd()
6798  oprot.trans.flush()
6799 
6800  def process_get_first_geo_file_in_archive(self, seqid, iprot, oprot):
6802  args.read(iprot)
6803  iprot.readMessageEnd()
6805  try:
6806  result.success = self._handler.get_first_geo_file_in_archive(args.session, args.archive_path, args.copy_params)
6807  msg_type = TMessageType.REPLY
6808  except TTransport.TTransportException:
6809  raise
6810  except TDBException as e:
6811  msg_type = TMessageType.REPLY
6812  result.e = e
6813  except TApplicationException as ex:
6814  logging.exception('TApplication exception in handler')
6815  msg_type = TMessageType.EXCEPTION
6816  result = ex
6817  except Exception:
6818  logging.exception('Unexpected exception in handler')
6819  msg_type = TMessageType.EXCEPTION
6820  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6821  oprot.writeMessageBegin("get_first_geo_file_in_archive", msg_type, seqid)
6822  result.write(oprot)
6823  oprot.writeMessageEnd()
6824  oprot.trans.flush()
6825 
6826  def process_get_all_files_in_archive(self, seqid, iprot, oprot):
6828  args.read(iprot)
6829  iprot.readMessageEnd()
6831  try:
6832  result.success = self._handler.get_all_files_in_archive(args.session, args.archive_path, args.copy_params)
6833  msg_type = TMessageType.REPLY
6834  except TTransport.TTransportException:
6835  raise
6836  except TDBException as e:
6837  msg_type = TMessageType.REPLY
6838  result.e = e
6839  except TApplicationException as ex:
6840  logging.exception('TApplication exception in handler')
6841  msg_type = TMessageType.EXCEPTION
6842  result = ex
6843  except Exception:
6844  logging.exception('Unexpected exception in handler')
6845  msg_type = TMessageType.EXCEPTION
6846  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6847  oprot.writeMessageBegin("get_all_files_in_archive", msg_type, seqid)
6848  result.write(oprot)
6849  oprot.writeMessageEnd()
6850  oprot.trans.flush()
6851 
6852  def process_get_layers_in_geo_file(self, seqid, iprot, oprot):
6854  args.read(iprot)
6855  iprot.readMessageEnd()
6857  try:
6858  result.success = self._handler.get_layers_in_geo_file(args.session, args.file_name, args.copy_params)
6859  msg_type = TMessageType.REPLY
6860  except TTransport.TTransportException:
6861  raise
6862  except TDBException as e:
6863  msg_type = TMessageType.REPLY
6864  result.e = e
6865  except TApplicationException as ex:
6866  logging.exception('TApplication exception in handler')
6867  msg_type = TMessageType.EXCEPTION
6868  result = ex
6869  except Exception:
6870  logging.exception('Unexpected exception in handler')
6871  msg_type = TMessageType.EXCEPTION
6872  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6873  oprot.writeMessageBegin("get_layers_in_geo_file", msg_type, seqid)
6874  result.write(oprot)
6875  oprot.writeMessageEnd()
6876  oprot.trans.flush()
6877 
6878  def process_query_get_outer_fragment_count(self, seqid, iprot, oprot):
6880  args.read(iprot)
6881  iprot.readMessageEnd()
6883  try:
6884  result.success = self._handler.query_get_outer_fragment_count(args.session, args.query)
6885  msg_type = TMessageType.REPLY
6886  except TTransport.TTransportException:
6887  raise
6888  except TDBException as e:
6889  msg_type = TMessageType.REPLY
6890  result.e = e
6891  except TApplicationException as ex:
6892  logging.exception('TApplication exception in handler')
6893  msg_type = TMessageType.EXCEPTION
6894  result = ex
6895  except Exception:
6896  logging.exception('Unexpected exception in handler')
6897  msg_type = TMessageType.EXCEPTION
6898  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6899  oprot.writeMessageBegin("query_get_outer_fragment_count", msg_type, seqid)
6900  result.write(oprot)
6901  oprot.writeMessageEnd()
6902  oprot.trans.flush()
6903 
6904  def process_check_table_consistency(self, seqid, iprot, oprot):
6906  args.read(iprot)
6907  iprot.readMessageEnd()
6909  try:
6910  result.success = self._handler.check_table_consistency(args.session, args.table_id)
6911  msg_type = TMessageType.REPLY
6912  except TTransport.TTransportException:
6913  raise
6914  except TDBException as e:
6915  msg_type = TMessageType.REPLY
6916  result.e = e
6917  except TApplicationException as ex:
6918  logging.exception('TApplication exception in handler')
6919  msg_type = TMessageType.EXCEPTION
6920  result = ex
6921  except Exception:
6922  logging.exception('Unexpected exception in handler')
6923  msg_type = TMessageType.EXCEPTION
6924  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6925  oprot.writeMessageBegin("check_table_consistency", msg_type, seqid)
6926  result.write(oprot)
6927  oprot.writeMessageEnd()
6928  oprot.trans.flush()
6929 
6930  def process_start_query(self, seqid, iprot, oprot):
6931  args = start_query_args()
6932  args.read(iprot)
6933  iprot.readMessageEnd()
6934  result = start_query_result()
6935  try:
6936  result.success = self._handler.start_query(args.leaf_session, args.parent_session, args.query_ra, args.start_time_str, args.just_explain, args.outer_fragment_indices)
6937  msg_type = TMessageType.REPLY
6938  except TTransport.TTransportException:
6939  raise
6940  except TDBException as e:
6941  msg_type = TMessageType.REPLY
6942  result.e = e
6943  except TApplicationException as ex:
6944  logging.exception('TApplication exception in handler')
6945  msg_type = TMessageType.EXCEPTION
6946  result = ex
6947  except Exception:
6948  logging.exception('Unexpected exception in handler')
6949  msg_type = TMessageType.EXCEPTION
6950  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6951  oprot.writeMessageBegin("start_query", msg_type, seqid)
6952  result.write(oprot)
6953  oprot.writeMessageEnd()
6954  oprot.trans.flush()
6955 
6956  def process_execute_query_step(self, seqid, iprot, oprot):
6957  args = execute_query_step_args()
6958  args.read(iprot)
6959  iprot.readMessageEnd()
6960  result = execute_query_step_result()
6961  try:
6962  result.success = self._handler.execute_query_step(args.pending_query, args.subquery_id, args.start_time_str)
6963  msg_type = TMessageType.REPLY
6964  except TTransport.TTransportException:
6965  raise
6966  except TDBException as e:
6967  msg_type = TMessageType.REPLY
6968  result.e = e
6969  except TApplicationException as ex:
6970  logging.exception('TApplication exception in handler')
6971  msg_type = TMessageType.EXCEPTION
6972  result = ex
6973  except Exception:
6974  logging.exception('Unexpected exception in handler')
6975  msg_type = TMessageType.EXCEPTION
6976  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
6977  oprot.writeMessageBegin("execute_query_step", msg_type, seqid)
6978  result.write(oprot)
6979  oprot.writeMessageEnd()
6980  oprot.trans.flush()
6981 
6982  def process_broadcast_serialized_rows(self, seqid, iprot, oprot):
6984  args.read(iprot)
6985  iprot.readMessageEnd()
6987  try:
6988  self._handler.broadcast_serialized_rows(args.serialized_rows, args.row_desc, args.query_id, args.subquery_id, args.is_final_subquery_result)
6989  msg_type = TMessageType.REPLY
6990  except TTransport.TTransportException:
6991  raise
6992  except TDBException as e:
6993  msg_type = TMessageType.REPLY
6994  result.e = e
6995  except TApplicationException as ex:
6996  logging.exception('TApplication exception in handler')
6997  msg_type = TMessageType.EXCEPTION
6998  result = ex
6999  except Exception:
7000  logging.exception('Unexpected exception in handler')
7001  msg_type = TMessageType.EXCEPTION
7002  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
7003  oprot.writeMessageBegin("broadcast_serialized_rows", msg_type, seqid)
7004  result.write(oprot)
7005  oprot.writeMessageEnd()
7006  oprot.trans.flush()
7007 
7008  def process_start_render_query(self, seqid, iprot, oprot):
7009  args = start_render_query_args()
7010  args.read(iprot)
7011  iprot.readMessageEnd()
7012  result = start_render_query_result()
7013  try:
7014  result.success = self._handler.start_render_query(args.session, args.widget_id, args.node_idx, args.vega_json)
7015  msg_type = TMessageType.REPLY
7016  except TTransport.TTransportException:
7017  raise
7018  except TDBException as e:
7019  msg_type = TMessageType.REPLY
7020  result.e = e
7021  except TApplicationException as ex:
7022  logging.exception('TApplication exception in handler')
7023  msg_type = TMessageType.EXCEPTION
7024  result = ex
7025  except Exception:
7026  logging.exception('Unexpected exception in handler')
7027  msg_type = TMessageType.EXCEPTION
7028  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
7029  oprot.writeMessageBegin("start_render_query", msg_type, seqid)
7030  result.write(oprot)
7031  oprot.writeMessageEnd()
7032  oprot.trans.flush()
7033 
7034  def process_execute_next_render_step(self, seqid, iprot, oprot):
7036  args.read(iprot)
7037  iprot.readMessageEnd()
7039  try:
7040  result.success = self._handler.execute_next_render_step(args.pending_render, args.merged_data)
7041  msg_type = TMessageType.REPLY
7042  except TTransport.TTransportException:
7043  raise
7044  except TDBException as e:
7045  msg_type = TMessageType.REPLY
7046  result.e = e
7047  except TApplicationException as ex:
7048  logging.exception('TApplication exception in handler')
7049  msg_type = TMessageType.EXCEPTION
7050  result = ex
7051  except Exception:
7052  logging.exception('Unexpected exception in handler')
7053  msg_type = TMessageType.EXCEPTION
7054  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
7055  oprot.writeMessageBegin("execute_next_render_step", msg_type, seqid)
7056  result.write(oprot)
7057  oprot.writeMessageEnd()
7058  oprot.trans.flush()
7059 
7060  def process_insert_data(self, seqid, iprot, oprot):
7061  args = insert_data_args()
7062  args.read(iprot)
7063  iprot.readMessageEnd()
7064  result = insert_data_result()
7065  try:
7066  self._handler.insert_data(args.session, args.insert_data)
7067  msg_type = TMessageType.REPLY
7068  except TTransport.TTransportException:
7069  raise
7070  except TDBException as e:
7071  msg_type = TMessageType.REPLY
7072  result.e = e
7073  except TApplicationException as ex:
7074  logging.exception('TApplication exception in handler')
7075  msg_type = TMessageType.EXCEPTION
7076  result = ex
7077  except Exception:
7078  logging.exception('Unexpected exception in handler')
7079  msg_type = TMessageType.EXCEPTION
7080  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
7081  oprot.writeMessageBegin("insert_data", msg_type, seqid)
7082  result.write(oprot)
7083  oprot.writeMessageEnd()
7084  oprot.trans.flush()
7085 
7086  def process_insert_chunks(self, seqid, iprot, oprot):
7087  args = insert_chunks_args()
7088  args.read(iprot)
7089  iprot.readMessageEnd()
7090  result = insert_chunks_result()
7091  try:
7092  self._handler.insert_chunks(args.session, args.insert_chunks)
7093  msg_type = TMessageType.REPLY
7094  except TTransport.TTransportException:
7095  raise
7096  except TDBException as e:
7097  msg_type = TMessageType.REPLY
7098  result.e = e
7099  except TApplicationException as ex:
7100  logging.exception('TApplication exception in handler')
7101  msg_type = TMessageType.EXCEPTION
7102  result = ex
7103  except Exception:
7104  logging.exception('Unexpected exception in handler')
7105  msg_type = TMessageType.EXCEPTION
7106  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
7107  oprot.writeMessageBegin("insert_chunks", msg_type, seqid)
7108  result.write(oprot)
7109  oprot.writeMessageEnd()
7110  oprot.trans.flush()
7111 
7112  def process_checkpoint(self, seqid, iprot, oprot):
7113  args = checkpoint_args()
7114  args.read(iprot)
7115  iprot.readMessageEnd()
7116  result = checkpoint_result()
7117  try:
7118  self._handler.checkpoint(args.session, args.table_id)
7119  msg_type = TMessageType.REPLY
7120  except TTransport.TTransportException:
7121  raise
7122  except TDBException as e:
7123  msg_type = TMessageType.REPLY
7124  result.e = e
7125  except TApplicationException as ex:
7126  logging.exception('TApplication exception in handler')
7127  msg_type = TMessageType.EXCEPTION
7128  result = ex
7129  except Exception:
7130  logging.exception('Unexpected exception in handler')
7131  msg_type = TMessageType.EXCEPTION
7132  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
7133  oprot.writeMessageBegin("checkpoint", msg_type, seqid)
7134  result.write(oprot)
7135  oprot.writeMessageEnd()
7136  oprot.trans.flush()
7137 
7138  def process_get_roles(self, seqid, iprot, oprot):
7139  args = get_roles_args()
7140  args.read(iprot)
7141  iprot.readMessageEnd()
7142  result = get_roles_result()
7143  try:
7144  result.success = self._handler.get_roles(args.session)
7145  msg_type = TMessageType.REPLY
7146  except TTransport.TTransportException:
7147  raise
7148  except TDBException as e:
7149  msg_type = TMessageType.REPLY
7150  result.e = e
7151  except TApplicationException as ex:
7152  logging.exception('TApplication exception in handler')
7153  msg_type = TMessageType.EXCEPTION
7154  result = ex
7155  except Exception:
7156  logging.exception('Unexpected exception in handler')
7157  msg_type = TMessageType.EXCEPTION
7158  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
7159  oprot.writeMessageBegin("get_roles", msg_type, seqid)
7160  result.write(oprot)
7161  oprot.writeMessageEnd()
7162  oprot.trans.flush()
7163 
7164  def process_get_db_objects_for_grantee(self, seqid, iprot, oprot):
7166  args.read(iprot)
7167  iprot.readMessageEnd()
7169  try:
7170  result.success = self._handler.get_db_objects_for_grantee(args.session, args.roleName)
7171  msg_type = TMessageType.REPLY
7172  except TTransport.TTransportException:
7173  raise
7174  except TDBException as e:
7175  msg_type = TMessageType.REPLY
7176  result.e = e
7177  except TApplicationException as ex:
7178  logging.exception('TApplication exception in handler')
7179  msg_type = TMessageType.EXCEPTION
7180  result = ex
7181  except Exception:
7182  logging.exception('Unexpected exception in handler')
7183  msg_type = TMessageType.EXCEPTION
7184  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
7185  oprot.writeMessageBegin("get_db_objects_for_grantee", msg_type, seqid)
7186  result.write(oprot)
7187  oprot.writeMessageEnd()
7188  oprot.trans.flush()
7189 
7190  def process_get_db_object_privs(self, seqid, iprot, oprot):
7191  args = get_db_object_privs_args()
7192  args.read(iprot)
7193  iprot.readMessageEnd()
7194  result = get_db_object_privs_result()
7195  try:
7196  result.success = self._handler.get_db_object_privs(args.session, args.objectName, args.type)
7197  msg_type = TMessageType.REPLY
7198  except TTransport.TTransportException:
7199  raise
7200  except TDBException as e:
7201  msg_type = TMessageType.REPLY
7202  result.e = e
7203  except TApplicationException as ex:
7204  logging.exception('TApplication exception in handler')
7205  msg_type = TMessageType.EXCEPTION
7206  result = ex
7207  except Exception:
7208  logging.exception('Unexpected exception in handler')
7209  msg_type = TMessageType.EXCEPTION
7210  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
7211  oprot.writeMessageBegin("get_db_object_privs", msg_type, seqid)
7212  result.write(oprot)
7213  oprot.writeMessageEnd()
7214  oprot.trans.flush()
7215 
7216  def process_get_all_roles_for_user(self, seqid, iprot, oprot):
7218  args.read(iprot)
7219  iprot.readMessageEnd()
7221  try:
7222  result.success = self._handler.get_all_roles_for_user(args.session, args.userName)
7223  msg_type = TMessageType.REPLY
7224  except TTransport.TTransportException:
7225  raise
7226  except TDBException as e:
7227  msg_type = TMessageType.REPLY
7228  result.e = e
7229  except TApplicationException as ex:
7230  logging.exception('TApplication exception in handler')
7231  msg_type = TMessageType.EXCEPTION
7232  result = ex
7233  except Exception:
7234  logging.exception('Unexpected exception in handler')
7235  msg_type = TMessageType.EXCEPTION
7236  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
7237  oprot.writeMessageBegin("get_all_roles_for_user", msg_type, seqid)
7238  result.write(oprot)
7239  oprot.writeMessageEnd()
7240  oprot.trans.flush()
7241 
7242  def process_get_all_effective_roles_for_user(self, seqid, iprot, oprot):
7244  args.read(iprot)
7245  iprot.readMessageEnd()
7247  try:
7248  result.success = self._handler.get_all_effective_roles_for_user(args.session, args.userName)
7249  msg_type = TMessageType.REPLY
7250  except TTransport.TTransportException:
7251  raise
7252  except TDBException as e:
7253  msg_type = TMessageType.REPLY
7254  result.e = e
7255  except TApplicationException as ex:
7256  logging.exception('TApplication exception in handler')
7257  msg_type = TMessageType.EXCEPTION
7258  result = ex
7259  except Exception:
7260  logging.exception('Unexpected exception in handler')
7261  msg_type = TMessageType.EXCEPTION
7262  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
7263  oprot.writeMessageBegin("get_all_effective_roles_for_user", msg_type, seqid)
7264  result.write(oprot)
7265  oprot.writeMessageEnd()
7266  oprot.trans.flush()
7267 
7268  def process_has_role(self, seqid, iprot, oprot):
7269  args = has_role_args()
7270  args.read(iprot)
7271  iprot.readMessageEnd()
7272  result = has_role_result()
7273  try:
7274  result.success = self._handler.has_role(args.session, args.granteeName, args.roleName)
7275  msg_type = TMessageType.REPLY
7276  except TTransport.TTransportException:
7277  raise
7278  except TDBException as e:
7279  msg_type = TMessageType.REPLY
7280  result.e = e
7281  except TApplicationException as ex:
7282  logging.exception('TApplication exception in handler')
7283  msg_type = TMessageType.EXCEPTION
7284  result = ex
7285  except Exception:
7286  logging.exception('Unexpected exception in handler')
7287  msg_type = TMessageType.EXCEPTION
7288  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
7289  oprot.writeMessageBegin("has_role", msg_type, seqid)
7290  result.write(oprot)
7291  oprot.writeMessageEnd()
7292  oprot.trans.flush()
7293 
7294  def process_has_object_privilege(self, seqid, iprot, oprot):
7295  args = has_object_privilege_args()
7296  args.read(iprot)
7297  iprot.readMessageEnd()
7298  result = has_object_privilege_result()
7299  try:
7300  result.success = self._handler.has_object_privilege(args.session, args.granteeName, args.ObjectName, args.objectType, args.permissions)
7301  msg_type = TMessageType.REPLY
7302  except TTransport.TTransportException:
7303  raise
7304  except TDBException as e:
7305  msg_type = TMessageType.REPLY
7306  result.e = e
7307  except TApplicationException as ex:
7308  logging.exception('TApplication exception in handler')
7309  msg_type = TMessageType.EXCEPTION
7310  result = ex
7311  except Exception:
7312  logging.exception('Unexpected exception in handler')
7313  msg_type = TMessageType.EXCEPTION
7314  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
7315  oprot.writeMessageBegin("has_object_privilege", msg_type, seqid)
7316  result.write(oprot)
7317  oprot.writeMessageEnd()
7318  oprot.trans.flush()
7319 
7320  def process_set_license_key(self, seqid, iprot, oprot):
7321  args = set_license_key_args()
7322  args.read(iprot)
7323  iprot.readMessageEnd()
7324  result = set_license_key_result()
7325  try:
7326  result.success = self._handler.set_license_key(args.session, args.key, args.nonce)
7327  msg_type = TMessageType.REPLY
7328  except TTransport.TTransportException:
7329  raise
7330  except TDBException as e:
7331  msg_type = TMessageType.REPLY
7332  result.e = e
7333  except TApplicationException as ex:
7334  logging.exception('TApplication exception in handler')
7335  msg_type = TMessageType.EXCEPTION
7336  result = ex
7337  except Exception:
7338  logging.exception('Unexpected exception in handler')
7339  msg_type = TMessageType.EXCEPTION
7340  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
7341  oprot.writeMessageBegin("set_license_key", msg_type, seqid)
7342  result.write(oprot)
7343  oprot.writeMessageEnd()
7344  oprot.trans.flush()
7345 
7346  def process_get_license_claims(self, seqid, iprot, oprot):
7347  args = get_license_claims_args()
7348  args.read(iprot)
7349  iprot.readMessageEnd()
7350  result = get_license_claims_result()
7351  try:
7352  result.success = self._handler.get_license_claims(args.session, args.nonce)
7353  msg_type = TMessageType.REPLY
7354  except TTransport.TTransportException:
7355  raise
7356  except TDBException as e:
7357  msg_type = TMessageType.REPLY
7358  result.e = e
7359  except TApplicationException as ex:
7360  logging.exception('TApplication exception in handler')
7361  msg_type = TMessageType.EXCEPTION
7362  result = ex
7363  except Exception:
7364  logging.exception('Unexpected exception in handler')
7365  msg_type = TMessageType.EXCEPTION
7366  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
7367  oprot.writeMessageBegin("get_license_claims", msg_type, seqid)
7368  result.write(oprot)
7369  oprot.writeMessageEnd()
7370  oprot.trans.flush()
7371 
7372  def process_get_device_parameters(self, seqid, iprot, oprot):
7374  args.read(iprot)
7375  iprot.readMessageEnd()
7376  result = get_device_parameters_result()
7377  try:
7378  result.success = self._handler.get_device_parameters(args.session)
7379  msg_type = TMessageType.REPLY
7380  except TTransport.TTransportException:
7381  raise
7382  except TDBException as e:
7383  msg_type = TMessageType.REPLY
7384  result.e = e
7385  except TApplicationException as ex:
7386  logging.exception('TApplication exception in handler')
7387  msg_type = TMessageType.EXCEPTION
7388  result = ex
7389  except Exception:
7390  logging.exception('Unexpected exception in handler')
7391  msg_type = TMessageType.EXCEPTION
7392  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
7393  oprot.writeMessageBegin("get_device_parameters", msg_type, seqid)
7394  result.write(oprot)
7395  oprot.writeMessageEnd()
7396  oprot.trans.flush()
7397 
7398  def process_register_runtime_extension_functions(self, seqid, iprot, oprot):
7400  args.read(iprot)
7401  iprot.readMessageEnd()
7403  try:
7404  self._handler.register_runtime_extension_functions(args.session, args.udfs, args.udtfs, args.device_ir_map)
7405  msg_type = TMessageType.REPLY
7406  except TTransport.TTransportException:
7407  raise
7408  except TDBException as e:
7409  msg_type = TMessageType.REPLY
7410  result.e = e
7411  except TApplicationException as ex:
7412  logging.exception('TApplication exception in handler')
7413  msg_type = TMessageType.EXCEPTION
7414  result = ex
7415  except Exception:
7416  logging.exception('Unexpected exception in handler')
7417  msg_type = TMessageType.EXCEPTION
7418  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
7419  oprot.writeMessageBegin("register_runtime_extension_functions", msg_type, seqid)
7420  result.write(oprot)
7421  oprot.writeMessageEnd()
7422  oprot.trans.flush()
7423 
7424  def process_get_table_function_names(self, seqid, iprot, oprot):
7426  args.read(iprot)
7427  iprot.readMessageEnd()
7429  try:
7430  result.success = self._handler.get_table_function_names(args.session)
7431  msg_type = TMessageType.REPLY
7432  except TTransport.TTransportException:
7433  raise
7434  except TDBException as e:
7435  msg_type = TMessageType.REPLY
7436  result.e = e
7437  except TApplicationException as ex:
7438  logging.exception('TApplication exception in handler')
7439  msg_type = TMessageType.EXCEPTION
7440  result = ex
7441  except Exception:
7442  logging.exception('Unexpected exception in handler')
7443  msg_type = TMessageType.EXCEPTION
7444  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
7445  oprot.writeMessageBegin("get_table_function_names", msg_type, seqid)
7446  result.write(oprot)
7447  oprot.writeMessageEnd()
7448  oprot.trans.flush()
7449 
7450  def process_get_runtime_table_function_names(self, seqid, iprot, oprot):
7452  args.read(iprot)
7453  iprot.readMessageEnd()
7455  try:
7456  result.success = self._handler.get_runtime_table_function_names(args.session)
7457  msg_type = TMessageType.REPLY
7458  except TTransport.TTransportException:
7459  raise
7460  except TDBException as e:
7461  msg_type = TMessageType.REPLY
7462  result.e = e
7463  except TApplicationException as ex:
7464  logging.exception('TApplication exception in handler')
7465  msg_type = TMessageType.EXCEPTION
7466  result = ex
7467  except Exception:
7468  logging.exception('Unexpected exception in handler')
7469  msg_type = TMessageType.EXCEPTION
7470  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
7471  oprot.writeMessageBegin("get_runtime_table_function_names", msg_type, seqid)
7472  result.write(oprot)
7473  oprot.writeMessageEnd()
7474  oprot.trans.flush()
7475 
7476  def process_get_table_function_details(self, seqid, iprot, oprot):
7478  args.read(iprot)
7479  iprot.readMessageEnd()
7481  try:
7482  result.success = self._handler.get_table_function_details(args.session, args.udtf_names)
7483  msg_type = TMessageType.REPLY
7484  except TTransport.TTransportException:
7485  raise
7486  except TDBException as e:
7487  msg_type = TMessageType.REPLY
7488  result.e = e
7489  except TApplicationException as ex:
7490  logging.exception('TApplication exception in handler')
7491  msg_type = TMessageType.EXCEPTION
7492  result = ex
7493  except Exception:
7494  logging.exception('Unexpected exception in handler')
7495  msg_type = TMessageType.EXCEPTION
7496  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
7497  oprot.writeMessageBegin("get_table_function_details", msg_type, seqid)
7498  result.write(oprot)
7499  oprot.writeMessageEnd()
7500  oprot.trans.flush()
7501 
7502  def process_get_function_names(self, seqid, iprot, oprot):
7503  args = get_function_names_args()
7504  args.read(iprot)
7505  iprot.readMessageEnd()
7506  result = get_function_names_result()
7507  try:
7508  result.success = self._handler.get_function_names(args.session)
7509  msg_type = TMessageType.REPLY
7510  except TTransport.TTransportException:
7511  raise
7512  except TDBException as e:
7513  msg_type = TMessageType.REPLY
7514  result.e = e
7515  except TApplicationException as ex:
7516  logging.exception('TApplication exception in handler')
7517  msg_type = TMessageType.EXCEPTION
7518  result = ex
7519  except Exception:
7520  logging.exception('Unexpected exception in handler')
7521  msg_type = TMessageType.EXCEPTION
7522  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
7523  oprot.writeMessageBegin("get_function_names", msg_type, seqid)
7524  result.write(oprot)
7525  oprot.writeMessageEnd()
7526  oprot.trans.flush()
7527 
7528  def process_get_runtime_function_names(self, seqid, iprot, oprot):
7530  args.read(iprot)
7531  iprot.readMessageEnd()
7533  try:
7534  result.success = self._handler.get_runtime_function_names(args.session)
7535  msg_type = TMessageType.REPLY
7536  except TTransport.TTransportException:
7537  raise
7538  except TDBException as e:
7539  msg_type = TMessageType.REPLY
7540  result.e = e
7541  except TApplicationException as ex:
7542  logging.exception('TApplication exception in handler')
7543  msg_type = TMessageType.EXCEPTION
7544  result = ex
7545  except Exception:
7546  logging.exception('Unexpected exception in handler')
7547  msg_type = TMessageType.EXCEPTION
7548  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
7549  oprot.writeMessageBegin("get_runtime_function_names", msg_type, seqid)
7550  result.write(oprot)
7551  oprot.writeMessageEnd()
7552  oprot.trans.flush()
7553 
7554  def process_get_function_details(self, seqid, iprot, oprot):
7555  args = get_function_details_args()
7556  args.read(iprot)
7557  iprot.readMessageEnd()
7558  result = get_function_details_result()
7559  try:
7560  result.success = self._handler.get_function_details(args.session, args.udf_names)
7561  msg_type = TMessageType.REPLY
7562  except TTransport.TTransportException:
7563  raise
7564  except TDBException as e:
7565  msg_type = TMessageType.REPLY
7566  result.e = e
7567  except TApplicationException as ex:
7568  logging.exception('TApplication exception in handler')
7569  msg_type = TMessageType.EXCEPTION
7570  result = ex
7571  except Exception:
7572  logging.exception('Unexpected exception in handler')
7573  msg_type = TMessageType.EXCEPTION
7574  result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
7575  oprot.writeMessageBegin("get_function_details", msg_type, seqid)
7576  result.write(oprot)
7577  oprot.writeMessageEnd()
7578  oprot.trans.flush()
7579 
7580 # HELPER FUNCTIONS AND STRUCTURES
7581 
7582 
7583 class connect_args(object):
7584  """
7585  Attributes:
7586  - user
7587  - passwd
7588  - dbname
7589 
7590  """
7591 
7592 
7593  def __init__(self, user=None, passwd=None, dbname=None,):
7594  self.user = user
7595  self.passwd = passwd
7596  self.dbname = dbname
7597 
7598  def read(self, iprot):
7599  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
7600  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
7601  return
7602  iprot.readStructBegin()
7603  while True:
7604  (fname, ftype, fid) = iprot.readFieldBegin()
7605  if ftype == TType.STOP:
7606  break
7607  if fid == 1:
7608  if ftype == TType.STRING:
7609  self.user = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
7610  else:
7611  iprot.skip(ftype)
7612  elif fid == 2:
7613  if ftype == TType.STRING:
7614  self.passwd = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
7615  else:
7616  iprot.skip(ftype)
7617  elif fid == 3:
7618  if ftype == TType.STRING:
7619  self.dbname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
7620  else:
7621  iprot.skip(ftype)
7622  else:
7623  iprot.skip(ftype)
7624  iprot.readFieldEnd()
7625  iprot.readStructEnd()
7626 
7627  def write(self, oprot):
7628  if oprot._fast_encode is not None and self.thrift_spec is not None:
7629  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
7630  return
7631  oprot.writeStructBegin('connect_args')
7632  if self.user is not None:
7633  oprot.writeFieldBegin('user', TType.STRING, 1)
7634  oprot.writeString(self.user.encode('utf-8') if sys.version_info[0] == 2 else self.user)
7635  oprot.writeFieldEnd()
7636  if self.passwd is not None:
7637  oprot.writeFieldBegin('passwd', TType.STRING, 2)
7638  oprot.writeString(self.passwd.encode('utf-8') if sys.version_info[0] == 2 else self.passwd)
7639  oprot.writeFieldEnd()
7640  if self.dbname is not None:
7641  oprot.writeFieldBegin('dbname', TType.STRING, 3)
7642  oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname)
7643  oprot.writeFieldEnd()
7644  oprot.writeFieldStop()
7645  oprot.writeStructEnd()
7646 
7647  def validate(self):
7648  return
7649 
7650  def __repr__(self):
7651  L = ['%s=%r' % (key, value)
7652  for key, value in self.__dict__.items()]
7653  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7654 
7655  def __eq__(self, other):
7656  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7657 
7658  def __ne__(self, other):
7659  return not (self == other)
7660 all_structs.append(connect_args)
7661 connect_args.thrift_spec = (
7662  None, # 0
7663  (1, TType.STRING, 'user', 'UTF8', None, ), # 1
7664  (2, TType.STRING, 'passwd', 'UTF8', None, ), # 2
7665  (3, TType.STRING, 'dbname', 'UTF8', None, ), # 3
7666 )
7667 
7668 
7669 class connect_result(object):
7670  """
7671  Attributes:
7672  - success
7673  - e
7674 
7675  """
7676 
7677 
7678  def __init__(self, success=None, e=None,):
7679  self.success = success
7680  self.e = e
7681 
7682  def read(self, iprot):
7683  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
7684  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
7685  return
7686  iprot.readStructBegin()
7687  while True:
7688  (fname, ftype, fid) = iprot.readFieldBegin()
7689  if ftype == TType.STOP:
7690  break
7691  if fid == 0:
7692  if ftype == TType.STRING:
7693  self.success = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
7694  else:
7695  iprot.skip(ftype)
7696  elif fid == 1:
7697  if ftype == TType.STRUCT:
7698  self.e = TDBException.read(iprot)
7699  else:
7700  iprot.skip(ftype)
7701  else:
7702  iprot.skip(ftype)
7703  iprot.readFieldEnd()
7704  iprot.readStructEnd()
7705 
7706  def write(self, oprot):
7707  if oprot._fast_encode is not None and self.thrift_spec is not None:
7708  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
7709  return
7710  oprot.writeStructBegin('connect_result')
7711  if self.success is not None:
7712  oprot.writeFieldBegin('success', TType.STRING, 0)
7713  oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
7714  oprot.writeFieldEnd()
7715  if self.e is not None:
7716  oprot.writeFieldBegin('e', TType.STRUCT, 1)
7717  self.e.write(oprot)
7718  oprot.writeFieldEnd()
7719  oprot.writeFieldStop()
7720  oprot.writeStructEnd()
7721 
7722  def validate(self):
7723  return
7724 
7725  def __repr__(self):
7726  L = ['%s=%r' % (key, value)
7727  for key, value in self.__dict__.items()]
7728  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7729 
7730  def __eq__(self, other):
7731  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7732 
7733  def __ne__(self, other):
7734  return not (self == other)
7735 all_structs.append(connect_result)
7736 connect_result.thrift_spec = (
7737  (0, TType.STRING, 'success', 'UTF8', None, ), # 0
7738  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
7739 )
7740 
7741 
7742 class krb5_connect_args(object):
7743  """
7744  Attributes:
7745  - inputToken
7746  - dbname
7747 
7748  """
7749 
7750 
7751  def __init__(self, inputToken=None, dbname=None,):
7752  self.inputToken = inputToken
7753  self.dbname = dbname
7754 
7755  def read(self, iprot):
7756  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
7757  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
7758  return
7759  iprot.readStructBegin()
7760  while True:
7761  (fname, ftype, fid) = iprot.readFieldBegin()
7762  if ftype == TType.STOP:
7763  break
7764  if fid == 1:
7765  if ftype == TType.STRING:
7766  self.inputToken = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
7767  else:
7768  iprot.skip(ftype)
7769  elif fid == 2:
7770  if ftype == TType.STRING:
7771  self.dbname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
7772  else:
7773  iprot.skip(ftype)
7774  else:
7775  iprot.skip(ftype)
7776  iprot.readFieldEnd()
7777  iprot.readStructEnd()
7778 
7779  def write(self, oprot):
7780  if oprot._fast_encode is not None and self.thrift_spec is not None:
7781  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
7782  return
7783  oprot.writeStructBegin('krb5_connect_args')
7784  if self.inputToken is not None:
7785  oprot.writeFieldBegin('inputToken', TType.STRING, 1)
7786  oprot.writeString(self.inputToken.encode('utf-8') if sys.version_info[0] == 2 else self.inputToken)
7787  oprot.writeFieldEnd()
7788  if self.dbname is not None:
7789  oprot.writeFieldBegin('dbname', TType.STRING, 2)
7790  oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname)
7791  oprot.writeFieldEnd()
7792  oprot.writeFieldStop()
7793  oprot.writeStructEnd()
7794 
7795  def validate(self):
7796  return
7797 
7798  def __repr__(self):
7799  L = ['%s=%r' % (key, value)
7800  for key, value in self.__dict__.items()]
7801  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7802 
7803  def __eq__(self, other):
7804  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7805 
7806  def __ne__(self, other):
7807  return not (self == other)
7808 all_structs.append(krb5_connect_args)
7809 krb5_connect_args.thrift_spec = (
7810  None, # 0
7811  (1, TType.STRING, 'inputToken', 'UTF8', None, ), # 1
7812  (2, TType.STRING, 'dbname', 'UTF8', None, ), # 2
7813 )
7814 
7815 
7816 class krb5_connect_result(object):
7817  """
7818  Attributes:
7819  - success
7820  - e
7821 
7822  """
7823 
7824 
7825  def __init__(self, success=None, e=None,):
7826  self.success = success
7827  self.e = e
7828 
7829  def read(self, iprot):
7830  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
7831  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
7832  return
7833  iprot.readStructBegin()
7834  while True:
7835  (fname, ftype, fid) = iprot.readFieldBegin()
7836  if ftype == TType.STOP:
7837  break
7838  if fid == 0:
7839  if ftype == TType.STRUCT:
7840  self.success = TKrb5Session()
7841  self.success.read(iprot)
7842  else:
7843  iprot.skip(ftype)
7844  elif fid == 1:
7845  if ftype == TType.STRUCT:
7846  self.e = TDBException.read(iprot)
7847  else:
7848  iprot.skip(ftype)
7849  else:
7850  iprot.skip(ftype)
7851  iprot.readFieldEnd()
7852  iprot.readStructEnd()
7853 
7854  def write(self, oprot):
7855  if oprot._fast_encode is not None and self.thrift_spec is not None:
7856  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
7857  return
7858  oprot.writeStructBegin('krb5_connect_result')
7859  if self.success is not None:
7860  oprot.writeFieldBegin('success', TType.STRUCT, 0)
7861  self.success.write(oprot)
7862  oprot.writeFieldEnd()
7863  if self.e is not None:
7864  oprot.writeFieldBegin('e', TType.STRUCT, 1)
7865  self.e.write(oprot)
7866  oprot.writeFieldEnd()
7867  oprot.writeFieldStop()
7868  oprot.writeStructEnd()
7869 
7870  def validate(self):
7871  return
7872 
7873  def __repr__(self):
7874  L = ['%s=%r' % (key, value)
7875  for key, value in self.__dict__.items()]
7876  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7877 
7878  def __eq__(self, other):
7879  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7880 
7881  def __ne__(self, other):
7882  return not (self == other)
7883 all_structs.append(krb5_connect_result)
7884 krb5_connect_result.thrift_spec = (
7885  (0, TType.STRUCT, 'success', [TKrb5Session, None], None, ), # 0
7886  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
7887 )
7888 
7889 
7890 class disconnect_args(object):
7891  """
7892  Attributes:
7893  - session
7894 
7895  """
7896 
7897 
7898  def __init__(self, session=None,):
7899  self.session = session
7900 
7901  def read(self, iprot):
7902  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
7903  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
7904  return
7905  iprot.readStructBegin()
7906  while True:
7907  (fname, ftype, fid) = iprot.readFieldBegin()
7908  if ftype == TType.STOP:
7909  break
7910  if fid == 1:
7911  if ftype == TType.STRING:
7912  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
7913  else:
7914  iprot.skip(ftype)
7915  else:
7916  iprot.skip(ftype)
7917  iprot.readFieldEnd()
7918  iprot.readStructEnd()
7919 
7920  def write(self, oprot):
7921  if oprot._fast_encode is not None and self.thrift_spec is not None:
7922  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
7923  return
7924  oprot.writeStructBegin('disconnect_args')
7925  if self.session is not None:
7926  oprot.writeFieldBegin('session', TType.STRING, 1)
7927  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
7928  oprot.writeFieldEnd()
7929  oprot.writeFieldStop()
7930  oprot.writeStructEnd()
7931 
7932  def validate(self):
7933  return
7934 
7935  def __repr__(self):
7936  L = ['%s=%r' % (key, value)
7937  for key, value in self.__dict__.items()]
7938  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7939 
7940  def __eq__(self, other):
7941  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7942 
7943  def __ne__(self, other):
7944  return not (self == other)
7945 all_structs.append(disconnect_args)
7946 disconnect_args.thrift_spec = (
7947  None, # 0
7948  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
7949 )
7950 
7951 
7952 class disconnect_result(object):
7953  """
7954  Attributes:
7955  - e
7956 
7957  """
7958 
7959 
7960  def __init__(self, e=None,):
7961  self.e = e
7962 
7963  def read(self, iprot):
7964  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
7965  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
7966  return
7967  iprot.readStructBegin()
7968  while True:
7969  (fname, ftype, fid) = iprot.readFieldBegin()
7970  if ftype == TType.STOP:
7971  break
7972  if fid == 1:
7973  if ftype == TType.STRUCT:
7974  self.e = TDBException.read(iprot)
7975  else:
7976  iprot.skip(ftype)
7977  else:
7978  iprot.skip(ftype)
7979  iprot.readFieldEnd()
7980  iprot.readStructEnd()
7981 
7982  def write(self, oprot):
7983  if oprot._fast_encode is not None and self.thrift_spec is not None:
7984  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
7985  return
7986  oprot.writeStructBegin('disconnect_result')
7987  if self.e is not None:
7988  oprot.writeFieldBegin('e', TType.STRUCT, 1)
7989  self.e.write(oprot)
7990  oprot.writeFieldEnd()
7991  oprot.writeFieldStop()
7992  oprot.writeStructEnd()
7993 
7994  def validate(self):
7995  return
7996 
7997  def __repr__(self):
7998  L = ['%s=%r' % (key, value)
7999  for key, value in self.__dict__.items()]
8000  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8001 
8002  def __eq__(self, other):
8003  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8004 
8005  def __ne__(self, other):
8006  return not (self == other)
8007 all_structs.append(disconnect_result)
8008 disconnect_result.thrift_spec = (
8009  None, # 0
8010  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
8011 )
8012 
8013 
8014 class switch_database_args(object):
8015  """
8016  Attributes:
8017  - session
8018  - dbname
8019 
8020  """
8021 
8022 
8023  def __init__(self, session=None, dbname=None,):
8024  self.session = session
8025  self.dbname = dbname
8026 
8027  def read(self, iprot):
8028  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
8029  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
8030  return
8031  iprot.readStructBegin()
8032  while True:
8033  (fname, ftype, fid) = iprot.readFieldBegin()
8034  if ftype == TType.STOP:
8035  break
8036  if fid == 1:
8037  if ftype == TType.STRING:
8038  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
8039  else:
8040  iprot.skip(ftype)
8041  elif fid == 2:
8042  if ftype == TType.STRING:
8043  self.dbname = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
8044  else:
8045  iprot.skip(ftype)
8046  else:
8047  iprot.skip(ftype)
8048  iprot.readFieldEnd()
8049  iprot.readStructEnd()
8050 
8051  def write(self, oprot):
8052  if oprot._fast_encode is not None and self.thrift_spec is not None:
8053  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
8054  return
8055  oprot.writeStructBegin('switch_database_args')
8056  if self.session is not None:
8057  oprot.writeFieldBegin('session', TType.STRING, 1)
8058  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
8059  oprot.writeFieldEnd()
8060  if self.dbname is not None:
8061  oprot.writeFieldBegin('dbname', TType.STRING, 2)
8062  oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname)
8063  oprot.writeFieldEnd()
8064  oprot.writeFieldStop()
8065  oprot.writeStructEnd()
8066 
8067  def validate(self):
8068  return
8069 
8070  def __repr__(self):
8071  L = ['%s=%r' % (key, value)
8072  for key, value in self.__dict__.items()]
8073  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8074 
8075  def __eq__(self, other):
8076  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8077 
8078  def __ne__(self, other):
8079  return not (self == other)
8080 all_structs.append(switch_database_args)
8081 switch_database_args.thrift_spec = (
8082  None, # 0
8083  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
8084  (2, TType.STRING, 'dbname', 'UTF8', None, ), # 2
8085 )
8086 
8087 
8089  """
8090  Attributes:
8091  - e
8092 
8093  """
8094 
8095 
8096  def __init__(self, e=None,):
8097  self.e = e
8098 
8099  def read(self, iprot):
8100  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
8101  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
8102  return
8103  iprot.readStructBegin()
8104  while True:
8105  (fname, ftype, fid) = iprot.readFieldBegin()
8106  if ftype == TType.STOP:
8107  break
8108  if fid == 1:
8109  if ftype == TType.STRUCT:
8110  self.e = TDBException.read(iprot)
8111  else:
8112  iprot.skip(ftype)
8113  else:
8114  iprot.skip(ftype)
8115  iprot.readFieldEnd()
8116  iprot.readStructEnd()
8117 
8118  def write(self, oprot):
8119  if oprot._fast_encode is not None and self.thrift_spec is not None:
8120  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
8121  return
8122  oprot.writeStructBegin('switch_database_result')
8123  if self.e is not None:
8124  oprot.writeFieldBegin('e', TType.STRUCT, 1)
8125  self.e.write(oprot)
8126  oprot.writeFieldEnd()
8127  oprot.writeFieldStop()
8128  oprot.writeStructEnd()
8129 
8130  def validate(self):
8131  return
8132 
8133  def __repr__(self):
8134  L = ['%s=%r' % (key, value)
8135  for key, value in self.__dict__.items()]
8136  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8137 
8138  def __eq__(self, other):
8139  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8140 
8141  def __ne__(self, other):
8142  return not (self == other)
8143 all_structs.append(switch_database_result)
8144 switch_database_result.thrift_spec = (
8145  None, # 0
8146  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
8147 )
8148 
8149 
8150 class clone_session_args(object):
8151  """
8152  Attributes:
8153  - session
8154 
8155  """
8156 
8157 
8158  def __init__(self, session=None,):
8159  self.session = session
8160 
8161  def read(self, iprot):
8162  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
8163  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
8164  return
8165  iprot.readStructBegin()
8166  while True:
8167  (fname, ftype, fid) = iprot.readFieldBegin()
8168  if ftype == TType.STOP:
8169  break
8170  if fid == 1:
8171  if ftype == TType.STRING:
8172  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
8173  else:
8174  iprot.skip(ftype)
8175  else:
8176  iprot.skip(ftype)
8177  iprot.readFieldEnd()
8178  iprot.readStructEnd()
8179 
8180  def write(self, oprot):
8181  if oprot._fast_encode is not None and self.thrift_spec is not None:
8182  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
8183  return
8184  oprot.writeStructBegin('clone_session_args')
8185  if self.session is not None:
8186  oprot.writeFieldBegin('session', TType.STRING, 1)
8187  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
8188  oprot.writeFieldEnd()
8189  oprot.writeFieldStop()
8190  oprot.writeStructEnd()
8191 
8192  def validate(self):
8193  return
8194 
8195  def __repr__(self):
8196  L = ['%s=%r' % (key, value)
8197  for key, value in self.__dict__.items()]
8198  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8199 
8200  def __eq__(self, other):
8201  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8202 
8203  def __ne__(self, other):
8204  return not (self == other)
8205 all_structs.append(clone_session_args)
8206 clone_session_args.thrift_spec = (
8207  None, # 0
8208  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
8209 )
8210 
8211 
8212 class clone_session_result(object):
8213  """
8214  Attributes:
8215  - success
8216  - e
8217 
8218  """
8219 
8220 
8221  def __init__(self, success=None, e=None,):
8222  self.success = success
8223  self.e = e
8224 
8225  def read(self, iprot):
8226  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
8227  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
8228  return
8229  iprot.readStructBegin()
8230  while True:
8231  (fname, ftype, fid) = iprot.readFieldBegin()
8232  if ftype == TType.STOP:
8233  break
8234  if fid == 0:
8235  if ftype == TType.STRING:
8236  self.success = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
8237  else:
8238  iprot.skip(ftype)
8239  elif fid == 1:
8240  if ftype == TType.STRUCT:
8241  self.e = TDBException.read(iprot)
8242  else:
8243  iprot.skip(ftype)
8244  else:
8245  iprot.skip(ftype)
8246  iprot.readFieldEnd()
8247  iprot.readStructEnd()
8248 
8249  def write(self, oprot):
8250  if oprot._fast_encode is not None and self.thrift_spec is not None:
8251  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
8252  return
8253  oprot.writeStructBegin('clone_session_result')
8254  if self.success is not None:
8255  oprot.writeFieldBegin('success', TType.STRING, 0)
8256  oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
8257  oprot.writeFieldEnd()
8258  if self.e is not None:
8259  oprot.writeFieldBegin('e', TType.STRUCT, 1)
8260  self.e.write(oprot)
8261  oprot.writeFieldEnd()
8262  oprot.writeFieldStop()
8263  oprot.writeStructEnd()
8264 
8265  def validate(self):
8266  return
8267 
8268  def __repr__(self):
8269  L = ['%s=%r' % (key, value)
8270  for key, value in self.__dict__.items()]
8271  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8272 
8273  def __eq__(self, other):
8274  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8275 
8276  def __ne__(self, other):
8277  return not (self == other)
8278 all_structs.append(clone_session_result)
8279 clone_session_result.thrift_spec = (
8280  (0, TType.STRING, 'success', 'UTF8', None, ), # 0
8281  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
8282 )
8283 
8284 
8286  """
8287  Attributes:
8288  - session
8289 
8290  """
8291 
8292 
8293  def __init__(self, session=None,):
8294  self.session = session
8295 
8296  def read(self, iprot):
8297  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
8298  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
8299  return
8300  iprot.readStructBegin()
8301  while True:
8302  (fname, ftype, fid) = iprot.readFieldBegin()
8303  if ftype == TType.STOP:
8304  break
8305  if fid == 1:
8306  if ftype == TType.STRING:
8307  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
8308  else:
8309  iprot.skip(ftype)
8310  else:
8311  iprot.skip(ftype)
8312  iprot.readFieldEnd()
8313  iprot.readStructEnd()
8314 
8315  def write(self, oprot):
8316  if oprot._fast_encode is not None and self.thrift_spec is not None:
8317  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
8318  return
8319  oprot.writeStructBegin('get_server_status_args')
8320  if self.session is not None:
8321  oprot.writeFieldBegin('session', TType.STRING, 1)
8322  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
8323  oprot.writeFieldEnd()
8324  oprot.writeFieldStop()
8325  oprot.writeStructEnd()
8326 
8327  def validate(self):
8328  return
8329 
8330  def __repr__(self):
8331  L = ['%s=%r' % (key, value)
8332  for key, value in self.__dict__.items()]
8333  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8334 
8335  def __eq__(self, other):
8336  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8337 
8338  def __ne__(self, other):
8339  return not (self == other)
8340 all_structs.append(get_server_status_args)
8341 get_server_status_args.thrift_spec = (
8342  None, # 0
8343  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
8344 )
8345 
8346 
8348  """
8349  Attributes:
8350  - success
8351  - e
8352 
8353  """
8354 
8355 
8356  def __init__(self, success=None, e=None,):
8357  self.success = success
8358  self.e = e
8359 
8360  def read(self, iprot):
8361  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
8362  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
8363  return
8364  iprot.readStructBegin()
8365  while True:
8366  (fname, ftype, fid) = iprot.readFieldBegin()
8367  if ftype == TType.STOP:
8368  break
8369  if fid == 0:
8370  if ftype == TType.STRUCT:
8371  self.success = TServerStatus()
8372  self.success.read(iprot)
8373  else:
8374  iprot.skip(ftype)
8375  elif fid == 1:
8376  if ftype == TType.STRUCT:
8377  self.e = TDBException.read(iprot)
8378  else:
8379  iprot.skip(ftype)
8380  else:
8381  iprot.skip(ftype)
8382  iprot.readFieldEnd()
8383  iprot.readStructEnd()
8384 
8385  def write(self, oprot):
8386  if oprot._fast_encode is not None and self.thrift_spec is not None:
8387  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
8388  return
8389  oprot.writeStructBegin('get_server_status_result')
8390  if self.success is not None:
8391  oprot.writeFieldBegin('success', TType.STRUCT, 0)
8392  self.success.write(oprot)
8393  oprot.writeFieldEnd()
8394  if self.e is not None:
8395  oprot.writeFieldBegin('e', TType.STRUCT, 1)
8396  self.e.write(oprot)
8397  oprot.writeFieldEnd()
8398  oprot.writeFieldStop()
8399  oprot.writeStructEnd()
8400 
8401  def validate(self):
8402  return
8403 
8404  def __repr__(self):
8405  L = ['%s=%r' % (key, value)
8406  for key, value in self.__dict__.items()]
8407  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8408 
8409  def __eq__(self, other):
8410  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8411 
8412  def __ne__(self, other):
8413  return not (self == other)
8414 all_structs.append(get_server_status_result)
8415 get_server_status_result.thrift_spec = (
8416  (0, TType.STRUCT, 'success', [TServerStatus, None], None, ), # 0
8417  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
8418 )
8419 
8420 
8421 class get_status_args(object):
8422  """
8423  Attributes:
8424  - session
8425 
8426  """
8427 
8428 
8429  def __init__(self, session=None,):
8430  self.session = session
8431 
8432  def read(self, iprot):
8433  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
8434  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
8435  return
8436  iprot.readStructBegin()
8437  while True:
8438  (fname, ftype, fid) = iprot.readFieldBegin()
8439  if ftype == TType.STOP:
8440  break
8441  if fid == 1:
8442  if ftype == TType.STRING:
8443  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
8444  else:
8445  iprot.skip(ftype)
8446  else:
8447  iprot.skip(ftype)
8448  iprot.readFieldEnd()
8449  iprot.readStructEnd()
8450 
8451  def write(self, oprot):
8452  if oprot._fast_encode is not None and self.thrift_spec is not None:
8453  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
8454  return
8455  oprot.writeStructBegin('get_status_args')
8456  if self.session is not None:
8457  oprot.writeFieldBegin('session', TType.STRING, 1)
8458  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
8459  oprot.writeFieldEnd()
8460  oprot.writeFieldStop()
8461  oprot.writeStructEnd()
8462 
8463  def validate(self):
8464  return
8465 
8466  def __repr__(self):
8467  L = ['%s=%r' % (key, value)
8468  for key, value in self.__dict__.items()]
8469  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8470 
8471  def __eq__(self, other):
8472  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8473 
8474  def __ne__(self, other):
8475  return not (self == other)
8476 all_structs.append(get_status_args)
8477 get_status_args.thrift_spec = (
8478  None, # 0
8479  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
8480 )
8481 
8482 
8483 class get_status_result(object):
8484  """
8485  Attributes:
8486  - success
8487  - e
8488 
8489  """
8490 
8491 
8492  def __init__(self, success=None, e=None,):
8493  self.success = success
8494  self.e = e
8495 
8496  def read(self, iprot):
8497  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
8498  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
8499  return
8500  iprot.readStructBegin()
8501  while True:
8502  (fname, ftype, fid) = iprot.readFieldBegin()
8503  if ftype == TType.STOP:
8504  break
8505  if fid == 0:
8506  if ftype == TType.LIST:
8507  self.success = []
8508  (_etype286, _size283) = iprot.readListBegin()
8509  for _i287 in range(_size283):
8510  _elem288 = TServerStatus()
8511  _elem288.read(iprot)
8512  self.success.append(_elem288)
8513  iprot.readListEnd()
8514  else:
8515  iprot.skip(ftype)
8516  elif fid == 1:
8517  if ftype == TType.STRUCT:
8518  self.e = TDBException.read(iprot)
8519  else:
8520  iprot.skip(ftype)
8521  else:
8522  iprot.skip(ftype)
8523  iprot.readFieldEnd()
8524  iprot.readStructEnd()
8525 
8526  def write(self, oprot):
8527  if oprot._fast_encode is not None and self.thrift_spec is not None:
8528  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
8529  return
8530  oprot.writeStructBegin('get_status_result')
8531  if self.success is not None:
8532  oprot.writeFieldBegin('success', TType.LIST, 0)
8533  oprot.writeListBegin(TType.STRUCT, len(self.success))
8534  for iter289 in self.success:
8535  iter289.write(oprot)
8536  oprot.writeListEnd()
8537  oprot.writeFieldEnd()
8538  if self.e is not None:
8539  oprot.writeFieldBegin('e', TType.STRUCT, 1)
8540  self.e.write(oprot)
8541  oprot.writeFieldEnd()
8542  oprot.writeFieldStop()
8543  oprot.writeStructEnd()
8544 
8545  def validate(self):
8546  return
8547 
8548  def __repr__(self):
8549  L = ['%s=%r' % (key, value)
8550  for key, value in self.__dict__.items()]
8551  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8552 
8553  def __eq__(self, other):
8554  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8555 
8556  def __ne__(self, other):
8557  return not (self == other)
8558 all_structs.append(get_status_result)
8559 get_status_result.thrift_spec = (
8560  (0, TType.LIST, 'success', (TType.STRUCT, [TServerStatus, None], False), None, ), # 0
8561  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
8562 )
8563 
8564 
8566  """
8567  Attributes:
8568  - session
8569 
8570  """
8571 
8572 
8573  def __init__(self, session=None,):
8574  self.session = session
8575 
8576  def read(self, iprot):
8577  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
8578  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
8579  return
8580  iprot.readStructBegin()
8581  while True:
8582  (fname, ftype, fid) = iprot.readFieldBegin()
8583  if ftype == TType.STOP:
8584  break
8585  if fid == 1:
8586  if ftype == TType.STRING:
8587  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
8588  else:
8589  iprot.skip(ftype)
8590  else:
8591  iprot.skip(ftype)
8592  iprot.readFieldEnd()
8593  iprot.readStructEnd()
8594 
8595  def write(self, oprot):
8596  if oprot._fast_encode is not None and self.thrift_spec is not None:
8597  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
8598  return
8599  oprot.writeStructBegin('get_hardware_info_args')
8600  if self.session is not None:
8601  oprot.writeFieldBegin('session', TType.STRING, 1)
8602  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
8603  oprot.writeFieldEnd()
8604  oprot.writeFieldStop()
8605  oprot.writeStructEnd()
8606 
8607  def validate(self):
8608  return
8609 
8610  def __repr__(self):
8611  L = ['%s=%r' % (key, value)
8612  for key, value in self.__dict__.items()]
8613  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8614 
8615  def __eq__(self, other):
8616  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8617 
8618  def __ne__(self, other):
8619  return not (self == other)
8620 all_structs.append(get_hardware_info_args)
8621 get_hardware_info_args.thrift_spec = (
8622  None, # 0
8623  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
8624 )
8625 
8626 
8628  """
8629  Attributes:
8630  - success
8631  - e
8632 
8633  """
8634 
8635 
8636  def __init__(self, success=None, e=None,):
8637  self.success = success
8638  self.e = e
8639 
8640  def read(self, iprot):
8641  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
8642  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
8643  return
8644  iprot.readStructBegin()
8645  while True:
8646  (fname, ftype, fid) = iprot.readFieldBegin()
8647  if ftype == TType.STOP:
8648  break
8649  if fid == 0:
8650  if ftype == TType.STRUCT:
8651  self.success = TClusterHardwareInfo()
8652  self.success.read(iprot)
8653  else:
8654  iprot.skip(ftype)
8655  elif fid == 1:
8656  if ftype == TType.STRUCT:
8657  self.e = TDBException.read(iprot)
8658  else:
8659  iprot.skip(ftype)
8660  else:
8661  iprot.skip(ftype)
8662  iprot.readFieldEnd()
8663  iprot.readStructEnd()
8664 
8665  def write(self, oprot):
8666  if oprot._fast_encode is not None and self.thrift_spec is not None:
8667  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
8668  return
8669  oprot.writeStructBegin('get_hardware_info_result')
8670  if self.success is not None:
8671  oprot.writeFieldBegin('success', TType.STRUCT, 0)
8672  self.success.write(oprot)
8673  oprot.writeFieldEnd()
8674  if self.e is not None:
8675  oprot.writeFieldBegin('e', TType.STRUCT, 1)
8676  self.e.write(oprot)
8677  oprot.writeFieldEnd()
8678  oprot.writeFieldStop()
8679  oprot.writeStructEnd()
8680 
8681  def validate(self):
8682  return
8683 
8684  def __repr__(self):
8685  L = ['%s=%r' % (key, value)
8686  for key, value in self.__dict__.items()]
8687  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8688 
8689  def __eq__(self, other):
8690  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8691 
8692  def __ne__(self, other):
8693  return not (self == other)
8694 all_structs.append(get_hardware_info_result)
8695 get_hardware_info_result.thrift_spec = (
8696  (0, TType.STRUCT, 'success', [TClusterHardwareInfo, None], None, ), # 0
8697  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
8698 )
8699 
8700 
8701 class get_tables_args(object):
8702  """
8703  Attributes:
8704  - session
8705 
8706  """
8707 
8708 
8709  def __init__(self, session=None,):
8710  self.session = session
8711 
8712  def read(self, iprot):
8713  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
8714  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
8715  return
8716  iprot.readStructBegin()
8717  while True:
8718  (fname, ftype, fid) = iprot.readFieldBegin()
8719  if ftype == TType.STOP:
8720  break
8721  if fid == 1:
8722  if ftype == TType.STRING:
8723  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
8724  else:
8725  iprot.skip(ftype)
8726  else:
8727  iprot.skip(ftype)
8728  iprot.readFieldEnd()
8729  iprot.readStructEnd()
8730 
8731  def write(self, oprot):
8732  if oprot._fast_encode is not None and self.thrift_spec is not None:
8733  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
8734  return
8735  oprot.writeStructBegin('get_tables_args')
8736  if self.session is not None:
8737  oprot.writeFieldBegin('session', TType.STRING, 1)
8738  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
8739  oprot.writeFieldEnd()
8740  oprot.writeFieldStop()
8741  oprot.writeStructEnd()
8742 
8743  def validate(self):
8744  return
8745 
8746  def __repr__(self):
8747  L = ['%s=%r' % (key, value)
8748  for key, value in self.__dict__.items()]
8749  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8750 
8751  def __eq__(self, other):
8752  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8753 
8754  def __ne__(self, other):
8755  return not (self == other)
8756 all_structs.append(get_tables_args)
8757 get_tables_args.thrift_spec = (
8758  None, # 0
8759  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
8760 )
8761 
8762 
8763 class get_tables_result(object):
8764  """
8765  Attributes:
8766  - success
8767  - e
8768 
8769  """
8770 
8771 
8772  def __init__(self, success=None, e=None,):
8773  self.success = success
8774  self.e = e
8775 
8776  def read(self, iprot):
8777  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
8778  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
8779  return
8780  iprot.readStructBegin()
8781  while True:
8782  (fname, ftype, fid) = iprot.readFieldBegin()
8783  if ftype == TType.STOP:
8784  break
8785  if fid == 0:
8786  if ftype == TType.LIST:
8787  self.success = []
8788  (_etype293, _size290) = iprot.readListBegin()
8789  for _i294 in range(_size290):
8790  _elem295 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
8791  self.success.append(_elem295)
8792  iprot.readListEnd()
8793  else:
8794  iprot.skip(ftype)
8795  elif fid == 1:
8796  if ftype == TType.STRUCT:
8797  self.e = TDBException.read(iprot)
8798  else:
8799  iprot.skip(ftype)
8800  else:
8801  iprot.skip(ftype)
8802  iprot.readFieldEnd()
8803  iprot.readStructEnd()
8804 
8805  def write(self, oprot):
8806  if oprot._fast_encode is not None and self.thrift_spec is not None:
8807  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
8808  return
8809  oprot.writeStructBegin('get_tables_result')
8810  if self.success is not None:
8811  oprot.writeFieldBegin('success', TType.LIST, 0)
8812  oprot.writeListBegin(TType.STRING, len(self.success))
8813  for iter296 in self.success:
8814  oprot.writeString(iter296.encode('utf-8') if sys.version_info[0] == 2 else iter296)
8815  oprot.writeListEnd()
8816  oprot.writeFieldEnd()
8817  if self.e is not None:
8818  oprot.writeFieldBegin('e', TType.STRUCT, 1)
8819  self.e.write(oprot)
8820  oprot.writeFieldEnd()
8821  oprot.writeFieldStop()
8822  oprot.writeStructEnd()
8823 
8824  def validate(self):
8825  return
8826 
8827  def __repr__(self):
8828  L = ['%s=%r' % (key, value)
8829  for key, value in self.__dict__.items()]
8830  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8831 
8832  def __eq__(self, other):
8833  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8834 
8835  def __ne__(self, other):
8836  return not (self == other)
8837 all_structs.append(get_tables_result)
8838 get_tables_result.thrift_spec = (
8839  (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
8840  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
8841 )
8842 
8843 
8845  """
8846  Attributes:
8847  - session
8848  - database_name
8849 
8850  """
8851 
8852 
8853  def __init__(self, session=None, database_name=None,):
8854  self.session = session
8855  self.database_name = database_name
8856 
8857  def read(self, iprot):
8858  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
8859  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
8860  return
8861  iprot.readStructBegin()
8862  while True:
8863  (fname, ftype, fid) = iprot.readFieldBegin()
8864  if ftype == TType.STOP:
8865  break
8866  if fid == 1:
8867  if ftype == TType.STRING:
8868  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
8869  else:
8870  iprot.skip(ftype)
8871  elif fid == 2:
8872  if ftype == TType.STRING:
8873  self.database_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
8874  else:
8875  iprot.skip(ftype)
8876  else:
8877  iprot.skip(ftype)
8878  iprot.readFieldEnd()
8879  iprot.readStructEnd()
8880 
8881  def write(self, oprot):
8882  if oprot._fast_encode is not None and self.thrift_spec is not None:
8883  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
8884  return
8885  oprot.writeStructBegin('get_tables_for_database_args')
8886  if self.session is not None:
8887  oprot.writeFieldBegin('session', TType.STRING, 1)
8888  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
8889  oprot.writeFieldEnd()
8890  if self.database_name is not None:
8891  oprot.writeFieldBegin('database_name', TType.STRING, 2)
8892  oprot.writeString(self.database_name.encode('utf-8') if sys.version_info[0] == 2 else self.database_name)
8893  oprot.writeFieldEnd()
8894  oprot.writeFieldStop()
8895  oprot.writeStructEnd()
8896 
8897  def validate(self):
8898  return
8899 
8900  def __repr__(self):
8901  L = ['%s=%r' % (key, value)
8902  for key, value in self.__dict__.items()]
8903  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8904 
8905  def __eq__(self, other):
8906  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8907 
8908  def __ne__(self, other):
8909  return not (self == other)
8910 all_structs.append(get_tables_for_database_args)
8911 get_tables_for_database_args.thrift_spec = (
8912  None, # 0
8913  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
8914  (2, TType.STRING, 'database_name', 'UTF8', None, ), # 2
8915 )
8916 
8917 
8919  """
8920  Attributes:
8921  - success
8922  - e
8923 
8924  """
8925 
8926 
8927  def __init__(self, success=None, e=None,):
8928  self.success = success
8929  self.e = e
8930 
8931  def read(self, iprot):
8932  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
8933  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
8934  return
8935  iprot.readStructBegin()
8936  while True:
8937  (fname, ftype, fid) = iprot.readFieldBegin()
8938  if ftype == TType.STOP:
8939  break
8940  if fid == 0:
8941  if ftype == TType.LIST:
8942  self.success = []
8943  (_etype300, _size297) = iprot.readListBegin()
8944  for _i301 in range(_size297):
8945  _elem302 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
8946  self.success.append(_elem302)
8947  iprot.readListEnd()
8948  else:
8949  iprot.skip(ftype)
8950  elif fid == 1:
8951  if ftype == TType.STRUCT:
8952  self.e = TDBException.read(iprot)
8953  else:
8954  iprot.skip(ftype)
8955  else:
8956  iprot.skip(ftype)
8957  iprot.readFieldEnd()
8958  iprot.readStructEnd()
8959 
8960  def write(self, oprot):
8961  if oprot._fast_encode is not None and self.thrift_spec is not None:
8962  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
8963  return
8964  oprot.writeStructBegin('get_tables_for_database_result')
8965  if self.success is not None:
8966  oprot.writeFieldBegin('success', TType.LIST, 0)
8967  oprot.writeListBegin(TType.STRING, len(self.success))
8968  for iter303 in self.success:
8969  oprot.writeString(iter303.encode('utf-8') if sys.version_info[0] == 2 else iter303)
8970  oprot.writeListEnd()
8971  oprot.writeFieldEnd()
8972  if self.e is not None:
8973  oprot.writeFieldBegin('e', TType.STRUCT, 1)
8974  self.e.write(oprot)
8975  oprot.writeFieldEnd()
8976  oprot.writeFieldStop()
8977  oprot.writeStructEnd()
8978 
8979  def validate(self):
8980  return
8981 
8982  def __repr__(self):
8983  L = ['%s=%r' % (key, value)
8984  for key, value in self.__dict__.items()]
8985  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8986 
8987  def __eq__(self, other):
8988  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8989 
8990  def __ne__(self, other):
8991  return not (self == other)
8992 all_structs.append(get_tables_for_database_result)
8993 get_tables_for_database_result.thrift_spec = (
8994  (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
8995  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
8996 )
8997 
8998 
9000  """
9001  Attributes:
9002  - session
9003 
9004  """
9005 
9006 
9007  def __init__(self, session=None,):
9008  self.session = session
9009 
9010  def read(self, iprot):
9011  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
9012  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
9013  return
9014  iprot.readStructBegin()
9015  while True:
9016  (fname, ftype, fid) = iprot.readFieldBegin()
9017  if ftype == TType.STOP:
9018  break
9019  if fid == 1:
9020  if ftype == TType.STRING:
9021  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
9022  else:
9023  iprot.skip(ftype)
9024  else:
9025  iprot.skip(ftype)
9026  iprot.readFieldEnd()
9027  iprot.readStructEnd()
9028 
9029  def write(self, oprot):
9030  if oprot._fast_encode is not None and self.thrift_spec is not None:
9031  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
9032  return
9033  oprot.writeStructBegin('get_physical_tables_args')
9034  if self.session is not None:
9035  oprot.writeFieldBegin('session', TType.STRING, 1)
9036  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
9037  oprot.writeFieldEnd()
9038  oprot.writeFieldStop()
9039  oprot.writeStructEnd()
9040 
9041  def validate(self):
9042  return
9043 
9044  def __repr__(self):
9045  L = ['%s=%r' % (key, value)
9046  for key, value in self.__dict__.items()]
9047  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9048 
9049  def __eq__(self, other):
9050  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9051 
9052  def __ne__(self, other):
9053  return not (self == other)
9054 all_structs.append(get_physical_tables_args)
9055 get_physical_tables_args.thrift_spec = (
9056  None, # 0
9057  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
9058 )
9059 
9060 
9062  """
9063  Attributes:
9064  - success
9065  - e
9066 
9067  """
9068 
9069 
9070  def __init__(self, success=None, e=None,):
9071  self.success = success
9072  self.e = e
9073 
9074  def read(self, iprot):
9075  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
9076  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
9077  return
9078  iprot.readStructBegin()
9079  while True:
9080  (fname, ftype, fid) = iprot.readFieldBegin()
9081  if ftype == TType.STOP:
9082  break
9083  if fid == 0:
9084  if ftype == TType.LIST:
9085  self.success = []
9086  (_etype307, _size304) = iprot.readListBegin()
9087  for _i308 in range(_size304):
9088  _elem309 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
9089  self.success.append(_elem309)
9090  iprot.readListEnd()
9091  else:
9092  iprot.skip(ftype)
9093  elif fid == 1:
9094  if ftype == TType.STRUCT:
9095  self.e = TDBException.read(iprot)
9096  else:
9097  iprot.skip(ftype)
9098  else:
9099  iprot.skip(ftype)
9100  iprot.readFieldEnd()
9101  iprot.readStructEnd()
9102 
9103  def write(self, oprot):
9104  if oprot._fast_encode is not None and self.thrift_spec is not None:
9105  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
9106  return
9107  oprot.writeStructBegin('get_physical_tables_result')
9108  if self.success is not None:
9109  oprot.writeFieldBegin('success', TType.LIST, 0)
9110  oprot.writeListBegin(TType.STRING, len(self.success))
9111  for iter310 in self.success:
9112  oprot.writeString(iter310.encode('utf-8') if sys.version_info[0] == 2 else iter310)
9113  oprot.writeListEnd()
9114  oprot.writeFieldEnd()
9115  if self.e is not None:
9116  oprot.writeFieldBegin('e', TType.STRUCT, 1)
9117  self.e.write(oprot)
9118  oprot.writeFieldEnd()
9119  oprot.writeFieldStop()
9120  oprot.writeStructEnd()
9121 
9122  def validate(self):
9123  return
9124 
9125  def __repr__(self):
9126  L = ['%s=%r' % (key, value)
9127  for key, value in self.__dict__.items()]
9128  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9129 
9130  def __eq__(self, other):
9131  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9132 
9133  def __ne__(self, other):
9134  return not (self == other)
9135 all_structs.append(get_physical_tables_result)
9136 get_physical_tables_result.thrift_spec = (
9137  (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
9138  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
9139 )
9140 
9141 
9142 class get_views_args(object):
9143  """
9144  Attributes:
9145  - session
9146 
9147  """
9148 
9149 
9150  def __init__(self, session=None,):
9151  self.session = session
9152 
9153  def read(self, iprot):
9154  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
9155  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
9156  return
9157  iprot.readStructBegin()
9158  while True:
9159  (fname, ftype, fid) = iprot.readFieldBegin()
9160  if ftype == TType.STOP:
9161  break
9162  if fid == 1:
9163  if ftype == TType.STRING:
9164  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
9165  else:
9166  iprot.skip(ftype)
9167  else:
9168  iprot.skip(ftype)
9169  iprot.readFieldEnd()
9170  iprot.readStructEnd()
9171 
9172  def write(self, oprot):
9173  if oprot._fast_encode is not None and self.thrift_spec is not None:
9174  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
9175  return
9176  oprot.writeStructBegin('get_views_args')
9177  if self.session is not None:
9178  oprot.writeFieldBegin('session', TType.STRING, 1)
9179  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
9180  oprot.writeFieldEnd()
9181  oprot.writeFieldStop()
9182  oprot.writeStructEnd()
9183 
9184  def validate(self):
9185  return
9186 
9187  def __repr__(self):
9188  L = ['%s=%r' % (key, value)
9189  for key, value in self.__dict__.items()]
9190  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9191 
9192  def __eq__(self, other):
9193  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9194 
9195  def __ne__(self, other):
9196  return not (self == other)
9197 all_structs.append(get_views_args)
9198 get_views_args.thrift_spec = (
9199  None, # 0
9200  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
9201 )
9202 
9203 
9204 class get_views_result(object):
9205  """
9206  Attributes:
9207  - success
9208  - e
9209 
9210  """
9211 
9212 
9213  def __init__(self, success=None, e=None,):
9214  self.success = success
9215  self.e = e
9216 
9217  def read(self, iprot):
9218  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
9219  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
9220  return
9221  iprot.readStructBegin()
9222  while True:
9223  (fname, ftype, fid) = iprot.readFieldBegin()
9224  if ftype == TType.STOP:
9225  break
9226  if fid == 0:
9227  if ftype == TType.LIST:
9228  self.success = []
9229  (_etype314, _size311) = iprot.readListBegin()
9230  for _i315 in range(_size311):
9231  _elem316 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
9232  self.success.append(_elem316)
9233  iprot.readListEnd()
9234  else:
9235  iprot.skip(ftype)
9236  elif fid == 1:
9237  if ftype == TType.STRUCT:
9238  self.e = TDBException.read(iprot)
9239  else:
9240  iprot.skip(ftype)
9241  else:
9242  iprot.skip(ftype)
9243  iprot.readFieldEnd()
9244  iprot.readStructEnd()
9245 
9246  def write(self, oprot):
9247  if oprot._fast_encode is not None and self.thrift_spec is not None:
9248  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
9249  return
9250  oprot.writeStructBegin('get_views_result')
9251  if self.success is not None:
9252  oprot.writeFieldBegin('success', TType.LIST, 0)
9253  oprot.writeListBegin(TType.STRING, len(self.success))
9254  for iter317 in self.success:
9255  oprot.writeString(iter317.encode('utf-8') if sys.version_info[0] == 2 else iter317)
9256  oprot.writeListEnd()
9257  oprot.writeFieldEnd()
9258  if self.e is not None:
9259  oprot.writeFieldBegin('e', TType.STRUCT, 1)
9260  self.e.write(oprot)
9261  oprot.writeFieldEnd()
9262  oprot.writeFieldStop()
9263  oprot.writeStructEnd()
9264 
9265  def validate(self):
9266  return
9267 
9268  def __repr__(self):
9269  L = ['%s=%r' % (key, value)
9270  for key, value in self.__dict__.items()]
9271  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9272 
9273  def __eq__(self, other):
9274  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9275 
9276  def __ne__(self, other):
9277  return not (self == other)
9278 all_structs.append(get_views_result)
9279 get_views_result.thrift_spec = (
9280  (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
9281  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
9282 )
9283 
9284 
9285 class get_tables_meta_args(object):
9286  """
9287  Attributes:
9288  - session
9289 
9290  """
9291 
9292 
9293  def __init__(self, session=None,):
9294  self.session = session
9295 
9296  def read(self, iprot):
9297  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
9298  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
9299  return
9300  iprot.readStructBegin()
9301  while True:
9302  (fname, ftype, fid) = iprot.readFieldBegin()
9303  if ftype == TType.STOP:
9304  break
9305  if fid == 1:
9306  if ftype == TType.STRING:
9307  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
9308  else:
9309  iprot.skip(ftype)
9310  else:
9311  iprot.skip(ftype)
9312  iprot.readFieldEnd()
9313  iprot.readStructEnd()
9314 
9315  def write(self, oprot):
9316  if oprot._fast_encode is not None and self.thrift_spec is not None:
9317  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
9318  return
9319  oprot.writeStructBegin('get_tables_meta_args')
9320  if self.session is not None:
9321  oprot.writeFieldBegin('session', TType.STRING, 1)
9322  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
9323  oprot.writeFieldEnd()
9324  oprot.writeFieldStop()
9325  oprot.writeStructEnd()
9326 
9327  def validate(self):
9328  return
9329 
9330  def __repr__(self):
9331  L = ['%s=%r' % (key, value)
9332  for key, value in self.__dict__.items()]
9333  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9334 
9335  def __eq__(self, other):
9336  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9337 
9338  def __ne__(self, other):
9339  return not (self == other)
9340 all_structs.append(get_tables_meta_args)
9341 get_tables_meta_args.thrift_spec = (
9342  None, # 0
9343  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
9344 )
9345 
9346 
9348  """
9349  Attributes:
9350  - success
9351  - e
9352 
9353  """
9354 
9355 
9356  def __init__(self, success=None, e=None,):
9357  self.success = success
9358  self.e = e
9359 
9360  def read(self, iprot):
9361  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
9362  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
9363  return
9364  iprot.readStructBegin()
9365  while True:
9366  (fname, ftype, fid) = iprot.readFieldBegin()
9367  if ftype == TType.STOP:
9368  break
9369  if fid == 0:
9370  if ftype == TType.LIST:
9371  self.success = []
9372  (_etype321, _size318) = iprot.readListBegin()
9373  for _i322 in range(_size318):
9374  _elem323 = TTableMeta()
9375  _elem323.read(iprot)
9376  self.success.append(_elem323)
9377  iprot.readListEnd()
9378  else:
9379  iprot.skip(ftype)
9380  elif fid == 1:
9381  if ftype == TType.STRUCT:
9382  self.e = TDBException.read(iprot)
9383  else:
9384  iprot.skip(ftype)
9385  else:
9386  iprot.skip(ftype)
9387  iprot.readFieldEnd()
9388  iprot.readStructEnd()
9389 
9390  def write(self, oprot):
9391  if oprot._fast_encode is not None and self.thrift_spec is not None:
9392  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
9393  return
9394  oprot.writeStructBegin('get_tables_meta_result')
9395  if self.success is not None:
9396  oprot.writeFieldBegin('success', TType.LIST, 0)
9397  oprot.writeListBegin(TType.STRUCT, len(self.success))
9398  for iter324 in self.success:
9399  iter324.write(oprot)
9400  oprot.writeListEnd()
9401  oprot.writeFieldEnd()
9402  if self.e is not None:
9403  oprot.writeFieldBegin('e', TType.STRUCT, 1)
9404  self.e.write(oprot)
9405  oprot.writeFieldEnd()
9406  oprot.writeFieldStop()
9407  oprot.writeStructEnd()
9408 
9409  def validate(self):
9410  return
9411 
9412  def __repr__(self):
9413  L = ['%s=%r' % (key, value)
9414  for key, value in self.__dict__.items()]
9415  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9416 
9417  def __eq__(self, other):
9418  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9419 
9420  def __ne__(self, other):
9421  return not (self == other)
9422 all_structs.append(get_tables_meta_result)
9423 get_tables_meta_result.thrift_spec = (
9424  (0, TType.LIST, 'success', (TType.STRUCT, [TTableMeta, None], False), None, ), # 0
9425  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
9426 )
9427 
9428 
9430  """
9431  Attributes:
9432  - session
9433  - table_name
9434 
9435  """
9436 
9437 
9438  def __init__(self, session=None, table_name=None,):
9439  self.session = session
9440  self.table_name = table_name
9441 
9442  def read(self, iprot):
9443  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
9444  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
9445  return
9446  iprot.readStructBegin()
9447  while True:
9448  (fname, ftype, fid) = iprot.readFieldBegin()
9449  if ftype == TType.STOP:
9450  break
9451  if fid == 1:
9452  if ftype == TType.STRING:
9453  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
9454  else:
9455  iprot.skip(ftype)
9456  elif fid == 2:
9457  if ftype == TType.STRING:
9458  self.table_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
9459  else:
9460  iprot.skip(ftype)
9461  else:
9462  iprot.skip(ftype)
9463  iprot.readFieldEnd()
9464  iprot.readStructEnd()
9465 
9466  def write(self, oprot):
9467  if oprot._fast_encode is not None and self.thrift_spec is not None:
9468  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
9469  return
9470  oprot.writeStructBegin('get_table_details_args')
9471  if self.session is not None:
9472  oprot.writeFieldBegin('session', TType.STRING, 1)
9473  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
9474  oprot.writeFieldEnd()
9475  if self.table_name is not None:
9476  oprot.writeFieldBegin('table_name', TType.STRING, 2)
9477  oprot.writeString(self.table_name.encode('utf-8') if sys.version_info[0] == 2 else self.table_name)
9478  oprot.writeFieldEnd()
9479  oprot.writeFieldStop()
9480  oprot.writeStructEnd()
9481 
9482  def validate(self):
9483  return
9484 
9485  def __repr__(self):
9486  L = ['%s=%r' % (key, value)
9487  for key, value in self.__dict__.items()]
9488  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9489 
9490  def __eq__(self, other):
9491  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9492 
9493  def __ne__(self, other):
9494  return not (self == other)
9495 all_structs.append(get_table_details_args)
9496 get_table_details_args.thrift_spec = (
9497  None, # 0
9498  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
9499  (2, TType.STRING, 'table_name', 'UTF8', None, ), # 2
9500 )
9501 
9502 
9504  """
9505  Attributes:
9506  - success
9507  - e
9508 
9509  """
9510 
9511 
9512  def __init__(self, success=None, e=None,):
9513  self.success = success
9514  self.e = e
9515 
9516  def read(self, iprot):
9517  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
9518  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
9519  return
9520  iprot.readStructBegin()
9521  while True:
9522  (fname, ftype, fid) = iprot.readFieldBegin()
9523  if ftype == TType.STOP:
9524  break
9525  if fid == 0:
9526  if ftype == TType.STRUCT:
9527  self.success = TTableDetails()
9528  self.success.read(iprot)
9529  else:
9530  iprot.skip(ftype)
9531  elif fid == 1:
9532  if ftype == TType.STRUCT:
9533  self.e = TDBException.read(iprot)
9534  else:
9535  iprot.skip(ftype)
9536  else:
9537  iprot.skip(ftype)
9538  iprot.readFieldEnd()
9539  iprot.readStructEnd()
9540 
9541  def write(self, oprot):
9542  if oprot._fast_encode is not None and self.thrift_spec is not None:
9543  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
9544  return
9545  oprot.writeStructBegin('get_table_details_result')
9546  if self.success is not None:
9547  oprot.writeFieldBegin('success', TType.STRUCT, 0)
9548  self.success.write(oprot)
9549  oprot.writeFieldEnd()
9550  if self.e is not None:
9551  oprot.writeFieldBegin('e', TType.STRUCT, 1)
9552  self.e.write(oprot)
9553  oprot.writeFieldEnd()
9554  oprot.writeFieldStop()
9555  oprot.writeStructEnd()
9556 
9557  def validate(self):
9558  return
9559 
9560  def __repr__(self):
9561  L = ['%s=%r' % (key, value)
9562  for key, value in self.__dict__.items()]
9563  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9564 
9565  def __eq__(self, other):
9566  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9567 
9568  def __ne__(self, other):
9569  return not (self == other)
9570 all_structs.append(get_table_details_result)
9571 get_table_details_result.thrift_spec = (
9572  (0, TType.STRUCT, 'success', [TTableDetails, None], None, ), # 0
9573  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
9574 )
9575 
9576 
9578  """
9579  Attributes:
9580  - session
9581  - table_name
9582  - database_name
9583 
9584  """
9585 
9586 
9587  def __init__(self, session=None, table_name=None, database_name=None,):
9588  self.session = session
9589  self.table_name = table_name
9590  self.database_name = database_name
9591 
9592  def read(self, iprot):
9593  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
9594  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
9595  return
9596  iprot.readStructBegin()
9597  while True:
9598  (fname, ftype, fid) = iprot.readFieldBegin()
9599  if ftype == TType.STOP:
9600  break
9601  if fid == 1:
9602  if ftype == TType.STRING:
9603  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
9604  else:
9605  iprot.skip(ftype)
9606  elif fid == 2:
9607  if ftype == TType.STRING:
9608  self.table_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
9609  else:
9610  iprot.skip(ftype)
9611  elif fid == 3:
9612  if ftype == TType.STRING:
9613  self.database_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
9614  else:
9615  iprot.skip(ftype)
9616  else:
9617  iprot.skip(ftype)
9618  iprot.readFieldEnd()
9619  iprot.readStructEnd()
9620 
9621  def write(self, oprot):
9622  if oprot._fast_encode is not None and self.thrift_spec is not None:
9623  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
9624  return
9625  oprot.writeStructBegin('get_table_details_for_database_args')
9626  if self.session is not None:
9627  oprot.writeFieldBegin('session', TType.STRING, 1)
9628  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
9629  oprot.writeFieldEnd()
9630  if self.table_name is not None:
9631  oprot.writeFieldBegin('table_name', TType.STRING, 2)
9632  oprot.writeString(self.table_name.encode('utf-8') if sys.version_info[0] == 2 else self.table_name)
9633  oprot.writeFieldEnd()
9634  if self.database_name is not None:
9635  oprot.writeFieldBegin('database_name', TType.STRING, 3)
9636  oprot.writeString(self.database_name.encode('utf-8') if sys.version_info[0] == 2 else self.database_name)
9637  oprot.writeFieldEnd()
9638  oprot.writeFieldStop()
9639  oprot.writeStructEnd()
9640 
9641  def validate(self):
9642  return
9643 
9644  def __repr__(self):
9645  L = ['%s=%r' % (key, value)
9646  for key, value in self.__dict__.items()]
9647  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9648 
9649  def __eq__(self, other):
9650  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9651 
9652  def __ne__(self, other):
9653  return not (self == other)
9654 all_structs.append(get_table_details_for_database_args)
9655 get_table_details_for_database_args.thrift_spec = (
9656  None, # 0
9657  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
9658  (2, TType.STRING, 'table_name', 'UTF8', None, ), # 2
9659  (3, TType.STRING, 'database_name', 'UTF8', None, ), # 3
9660 )
9661 
9662 
9664  """
9665  Attributes:
9666  - success
9667  - e
9668 
9669  """
9670 
9671 
9672  def __init__(self, success=None, e=None,):
9673  self.success = success
9674  self.e = e
9675 
9676  def read(self, iprot):
9677  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
9678  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
9679  return
9680  iprot.readStructBegin()
9681  while True:
9682  (fname, ftype, fid) = iprot.readFieldBegin()
9683  if ftype == TType.STOP:
9684  break
9685  if fid == 0:
9686  if ftype == TType.STRUCT:
9687  self.success = TTableDetails()
9688  self.success.read(iprot)
9689  else:
9690  iprot.skip(ftype)
9691  elif fid == 1:
9692  if ftype == TType.STRUCT:
9693  self.e = TDBException.read(iprot)
9694  else:
9695  iprot.skip(ftype)
9696  else:
9697  iprot.skip(ftype)
9698  iprot.readFieldEnd()
9699  iprot.readStructEnd()
9700 
9701  def write(self, oprot):
9702  if oprot._fast_encode is not None and self.thrift_spec is not None:
9703  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
9704  return
9705  oprot.writeStructBegin('get_table_details_for_database_result')
9706  if self.success is not None:
9707  oprot.writeFieldBegin('success', TType.STRUCT, 0)
9708  self.success.write(oprot)
9709  oprot.writeFieldEnd()
9710  if self.e is not None:
9711  oprot.writeFieldBegin('e', TType.STRUCT, 1)
9712  self.e.write(oprot)
9713  oprot.writeFieldEnd()
9714  oprot.writeFieldStop()
9715  oprot.writeStructEnd()
9716 
9717  def validate(self):
9718  return
9719 
9720  def __repr__(self):
9721  L = ['%s=%r' % (key, value)
9722  for key, value in self.__dict__.items()]
9723  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9724 
9725  def __eq__(self, other):
9726  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9727 
9728  def __ne__(self, other):
9729  return not (self == other)
9730 all_structs.append(get_table_details_for_database_result)
9731 get_table_details_for_database_result.thrift_spec = (
9732  (0, TType.STRUCT, 'success', [TTableDetails, None], None, ), # 0
9733  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
9734 )
9735 
9736 
9738  """
9739  Attributes:
9740  - session
9741  - table_name
9742  - include_system_columns
9743 
9744  """
9745 
9746 
9747  def __init__(self, session=None, table_name=None, include_system_columns=True,):
9748  self.session = session
9749  self.table_name = table_name
9750  self.include_system_columns = include_system_columns
9751 
9752  def read(self, iprot):
9753  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
9754  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
9755  return
9756  iprot.readStructBegin()
9757  while True:
9758  (fname, ftype, fid) = iprot.readFieldBegin()
9759  if ftype == TType.STOP:
9760  break
9761  if fid == 1:
9762  if ftype == TType.STRING:
9763  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
9764  else:
9765  iprot.skip(ftype)
9766  elif fid == 2:
9767  if ftype == TType.STRING:
9768  self.table_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
9769  else:
9770  iprot.skip(ftype)
9771  elif fid == 3:
9772  if ftype == TType.BOOL:
9773  self.include_system_columns = iprot.readBool()
9774  else:
9775  iprot.skip(ftype)
9776  else:
9777  iprot.skip(ftype)
9778  iprot.readFieldEnd()
9779  iprot.readStructEnd()
9780 
9781  def write(self, oprot):
9782  if oprot._fast_encode is not None and self.thrift_spec is not None:
9783  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
9784  return
9785  oprot.writeStructBegin('get_internal_table_details_args')
9786  if self.session is not None:
9787  oprot.writeFieldBegin('session', TType.STRING, 1)
9788  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
9789  oprot.writeFieldEnd()
9790  if self.table_name is not None:
9791  oprot.writeFieldBegin('table_name', TType.STRING, 2)
9792  oprot.writeString(self.table_name.encode('utf-8') if sys.version_info[0] == 2 else self.table_name)
9793  oprot.writeFieldEnd()
9794  if self.include_system_columns is not None:
9795  oprot.writeFieldBegin('include_system_columns', TType.BOOL, 3)
9796  oprot.writeBool(self.include_system_columns)
9797  oprot.writeFieldEnd()
9798  oprot.writeFieldStop()
9799  oprot.writeStructEnd()
9800 
9801  def validate(self):
9802  return
9803 
9804  def __repr__(self):
9805  L = ['%s=%r' % (key, value)
9806  for key, value in self.__dict__.items()]
9807  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9808 
9809  def __eq__(self, other):
9810  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9811 
9812  def __ne__(self, other):
9813  return not (self == other)
9814 all_structs.append(get_internal_table_details_args)
9815 get_internal_table_details_args.thrift_spec = (
9816  None, # 0
9817  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
9818  (2, TType.STRING, 'table_name', 'UTF8', None, ), # 2
9819  (3, TType.BOOL, 'include_system_columns', None, True, ), # 3
9820 )
9821 
9822 
9824  """
9825  Attributes:
9826  - success
9827  - e
9828 
9829  """
9830 
9831 
9832  def __init__(self, success=None, e=None,):
9833  self.success = success
9834  self.e = e
9835 
9836  def read(self, iprot):
9837  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
9838  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
9839  return
9840  iprot.readStructBegin()
9841  while True:
9842  (fname, ftype, fid) = iprot.readFieldBegin()
9843  if ftype == TType.STOP:
9844  break
9845  if fid == 0:
9846  if ftype == TType.STRUCT:
9847  self.success = TTableDetails()
9848  self.success.read(iprot)
9849  else:
9850  iprot.skip(ftype)
9851  elif fid == 1:
9852  if ftype == TType.STRUCT:
9853  self.e = TDBException.read(iprot)
9854  else:
9855  iprot.skip(ftype)
9856  else:
9857  iprot.skip(ftype)
9858  iprot.readFieldEnd()
9859  iprot.readStructEnd()
9860 
9861  def write(self, oprot):
9862  if oprot._fast_encode is not None and self.thrift_spec is not None:
9863  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
9864  return
9865  oprot.writeStructBegin('get_internal_table_details_result')
9866  if self.success is not None:
9867  oprot.writeFieldBegin('success', TType.STRUCT, 0)
9868  self.success.write(oprot)
9869  oprot.writeFieldEnd()
9870  if self.e is not None:
9871  oprot.writeFieldBegin('e', TType.STRUCT, 1)
9872  self.e.write(oprot)
9873  oprot.writeFieldEnd()
9874  oprot.writeFieldStop()
9875  oprot.writeStructEnd()
9876 
9877  def validate(self):
9878  return
9879 
9880  def __repr__(self):
9881  L = ['%s=%r' % (key, value)
9882  for key, value in self.__dict__.items()]
9883  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9884 
9885  def __eq__(self, other):
9886  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9887 
9888  def __ne__(self, other):
9889  return not (self == other)
9890 all_structs.append(get_internal_table_details_result)
9891 get_internal_table_details_result.thrift_spec = (
9892  (0, TType.STRUCT, 'success', [TTableDetails, None], None, ), # 0
9893  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
9894 )
9895 
9896 
9898  """
9899  Attributes:
9900  - session
9901  - table_name
9902  - database_name
9903 
9904  """
9905 
9906 
9907  def __init__(self, session=None, table_name=None, database_name=None,):
9908  self.session = session
9909  self.table_name = table_name
9910  self.database_name = database_name
9911 
9912  def read(self, iprot):
9913  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
9914  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
9915  return
9916  iprot.readStructBegin()
9917  while True:
9918  (fname, ftype, fid) = iprot.readFieldBegin()
9919  if ftype == TType.STOP:
9920  break
9921  if fid == 1:
9922  if ftype == TType.STRING:
9923  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
9924  else:
9925  iprot.skip(ftype)
9926  elif fid == 2:
9927  if ftype == TType.STRING:
9928  self.table_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
9929  else:
9930  iprot.skip(ftype)
9931  elif fid == 3:
9932  if ftype == TType.STRING:
9933  self.database_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
9934  else:
9935  iprot.skip(ftype)
9936  else:
9937  iprot.skip(ftype)
9938  iprot.readFieldEnd()
9939  iprot.readStructEnd()
9940 
9941  def write(self, oprot):
9942  if oprot._fast_encode is not None and self.thrift_spec is not None:
9943  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
9944  return
9945  oprot.writeStructBegin('get_internal_table_details_for_database_args')
9946  if self.session is not None:
9947  oprot.writeFieldBegin('session', TType.STRING, 1)
9948  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
9949  oprot.writeFieldEnd()
9950  if self.table_name is not None:
9951  oprot.writeFieldBegin('table_name', TType.STRING, 2)
9952  oprot.writeString(self.table_name.encode('utf-8') if sys.version_info[0] == 2 else self.table_name)
9953  oprot.writeFieldEnd()
9954  if self.database_name is not None:
9955  oprot.writeFieldBegin('database_name', TType.STRING, 3)
9956  oprot.writeString(self.database_name.encode('utf-8') if sys.version_info[0] == 2 else self.database_name)
9957  oprot.writeFieldEnd()
9958  oprot.writeFieldStop()
9959  oprot.writeStructEnd()
9960 
9961  def validate(self):
9962  return
9963 
9964  def __repr__(self):
9965  L = ['%s=%r' % (key, value)
9966  for key, value in self.__dict__.items()]
9967  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9968 
9969  def __eq__(self, other):
9970  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9971 
9972  def __ne__(self, other):
9973  return not (self == other)
9974 all_structs.append(get_internal_table_details_for_database_args)
9975 get_internal_table_details_for_database_args.thrift_spec = (
9976  None, # 0
9977  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
9978  (2, TType.STRING, 'table_name', 'UTF8', None, ), # 2
9979  (3, TType.STRING, 'database_name', 'UTF8', None, ), # 3
9980 )
9981 
9982 
9984  """
9985  Attributes:
9986  - success
9987  - e
9988 
9989  """
9990 
9991 
9992  def __init__(self, success=None, e=None,):
9993  self.success = success
9994  self.e = e
9995 
9996  def read(self, iprot):
9997  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
9998  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
9999  return
10000  iprot.readStructBegin()
10001  while True:
10002  (fname, ftype, fid) = iprot.readFieldBegin()
10003  if ftype == TType.STOP:
10004  break
10005  if fid == 0:
10006  if ftype == TType.STRUCT:
10007  self.success = TTableDetails()
10008  self.success.read(iprot)
10009  else:
10010  iprot.skip(ftype)
10011  elif fid == 1:
10012  if ftype == TType.STRUCT:
10013  self.e = TDBException.read(iprot)
10014  else:
10015  iprot.skip(ftype)
10016  else:
10017  iprot.skip(ftype)
10018  iprot.readFieldEnd()
10019  iprot.readStructEnd()
10020 
10021  def write(self, oprot):
10022  if oprot._fast_encode is not None and self.thrift_spec is not None:
10023  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
10024  return
10025  oprot.writeStructBegin('get_internal_table_details_for_database_result')
10026  if self.success is not None:
10027  oprot.writeFieldBegin('success', TType.STRUCT, 0)
10028  self.success.write(oprot)
10029  oprot.writeFieldEnd()
10030  if self.e is not None:
10031  oprot.writeFieldBegin('e', TType.STRUCT, 1)
10032  self.e.write(oprot)
10033  oprot.writeFieldEnd()
10034  oprot.writeFieldStop()
10035  oprot.writeStructEnd()
10036 
10037  def validate(self):
10038  return
10039 
10040  def __repr__(self):
10041  L = ['%s=%r' % (key, value)
10042  for key, value in self.__dict__.items()]
10043  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10044 
10045  def __eq__(self, other):
10046  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10047 
10048  def __ne__(self, other):
10049  return not (self == other)
10050 all_structs.append(get_internal_table_details_for_database_result)
10051 get_internal_table_details_for_database_result.thrift_spec = (
10052  (0, TType.STRUCT, 'success', [TTableDetails, None], None, ), # 0
10053  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
10054 )
10055 
10056 
10057 class get_users_args(object):
10058  """
10059  Attributes:
10060  - session
10061 
10062  """
10063 
10064 
10065  def __init__(self, session=None,):
10066  self.session = session
10067 
10068  def read(self, iprot):
10069  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
10070  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
10071  return
10072  iprot.readStructBegin()
10073  while True:
10074  (fname, ftype, fid) = iprot.readFieldBegin()
10075  if ftype == TType.STOP:
10076  break
10077  if fid == 1:
10078  if ftype == TType.STRING:
10079  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
10080  else:
10081  iprot.skip(ftype)
10082  else:
10083  iprot.skip(ftype)
10084  iprot.readFieldEnd()
10085  iprot.readStructEnd()
10086 
10087  def write(self, oprot):
10088  if oprot._fast_encode is not None and self.thrift_spec is not None:
10089  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
10090  return
10091  oprot.writeStructBegin('get_users_args')
10092  if self.session is not None:
10093  oprot.writeFieldBegin('session', TType.STRING, 1)
10094  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
10095  oprot.writeFieldEnd()
10096  oprot.writeFieldStop()
10097  oprot.writeStructEnd()
10098 
10099  def validate(self):
10100  return
10101 
10102  def __repr__(self):
10103  L = ['%s=%r' % (key, value)
10104  for key, value in self.__dict__.items()]
10105  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10106 
10107  def __eq__(self, other):
10108  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10109 
10110  def __ne__(self, other):
10111  return not (self == other)
10112 all_structs.append(get_users_args)
10113 get_users_args.thrift_spec = (
10114  None, # 0
10115  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
10116 )
10117 
10118 
10119 class get_users_result(object):
10120  """
10121  Attributes:
10122  - success
10123  - e
10124 
10125  """
10126 
10127 
10128  def __init__(self, success=None, e=None,):
10129  self.success = success
10130  self.e = e
10131 
10132  def read(self, iprot):
10133  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
10134  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
10135  return
10136  iprot.readStructBegin()
10137  while True:
10138  (fname, ftype, fid) = iprot.readFieldBegin()
10139  if ftype == TType.STOP:
10140  break
10141  if fid == 0:
10142  if ftype == TType.LIST:
10143  self.success = []
10144  (_etype328, _size325) = iprot.readListBegin()
10145  for _i329 in range(_size325):
10146  _elem330 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
10147  self.success.append(_elem330)
10148  iprot.readListEnd()
10149  else:
10150  iprot.skip(ftype)
10151  elif fid == 1:
10152  if ftype == TType.STRUCT:
10153  self.e = TDBException.read(iprot)
10154  else:
10155  iprot.skip(ftype)
10156  else:
10157  iprot.skip(ftype)
10158  iprot.readFieldEnd()
10159  iprot.readStructEnd()
10160 
10161  def write(self, oprot):
10162  if oprot._fast_encode is not None and self.thrift_spec is not None:
10163  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
10164  return
10165  oprot.writeStructBegin('get_users_result')
10166  if self.success is not None:
10167  oprot.writeFieldBegin('success', TType.LIST, 0)
10168  oprot.writeListBegin(TType.STRING, len(self.success))
10169  for iter331 in self.success:
10170  oprot.writeString(iter331.encode('utf-8') if sys.version_info[0] == 2 else iter331)
10171  oprot.writeListEnd()
10172  oprot.writeFieldEnd()
10173  if self.e is not None:
10174  oprot.writeFieldBegin('e', TType.STRUCT, 1)
10175  self.e.write(oprot)
10176  oprot.writeFieldEnd()
10177  oprot.writeFieldStop()
10178  oprot.writeStructEnd()
10179 
10180  def validate(self):
10181  return
10182 
10183  def __repr__(self):
10184  L = ['%s=%r' % (key, value)
10185  for key, value in self.__dict__.items()]
10186  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10187 
10188  def __eq__(self, other):
10189  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10190 
10191  def __ne__(self, other):
10192  return not (self == other)
10193 all_structs.append(get_users_result)
10194 get_users_result.thrift_spec = (
10195  (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
10196  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
10197 )
10198 
10199 
10200 class get_databases_args(object):
10201  """
10202  Attributes:
10203  - session
10204 
10205  """
10206 
10207 
10208  def __init__(self, session=None,):
10209  self.session = session
10210 
10211  def read(self, iprot):
10212  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
10213  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
10214  return
10215  iprot.readStructBegin()
10216  while True:
10217  (fname, ftype, fid) = iprot.readFieldBegin()
10218  if ftype == TType.STOP:
10219  break
10220  if fid == 1:
10221  if ftype == TType.STRING:
10222  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
10223  else:
10224  iprot.skip(ftype)
10225  else:
10226  iprot.skip(ftype)
10227  iprot.readFieldEnd()
10228  iprot.readStructEnd()
10229 
10230  def write(self, oprot):
10231  if oprot._fast_encode is not None and self.thrift_spec is not None:
10232  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
10233  return
10234  oprot.writeStructBegin('get_databases_args')
10235  if self.session is not None:
10236  oprot.writeFieldBegin('session', TType.STRING, 1)
10237  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
10238  oprot.writeFieldEnd()
10239  oprot.writeFieldStop()
10240  oprot.writeStructEnd()
10241 
10242  def validate(self):
10243  return
10244 
10245  def __repr__(self):
10246  L = ['%s=%r' % (key, value)
10247  for key, value in self.__dict__.items()]
10248  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10249 
10250  def __eq__(self, other):
10251  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10252 
10253  def __ne__(self, other):
10254  return not (self == other)
10255 all_structs.append(get_databases_args)
10256 get_databases_args.thrift_spec = (
10257  None, # 0
10258  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
10259 )
10260 
10261 
10262 class get_databases_result(object):
10263  """
10264  Attributes:
10265  - success
10266  - e
10267 
10268  """
10269 
10270 
10271  def __init__(self, success=None, e=None,):
10272  self.success = success
10273  self.e = e
10274 
10275  def read(self, iprot):
10276  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
10277  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
10278  return
10279  iprot.readStructBegin()
10280  while True:
10281  (fname, ftype, fid) = iprot.readFieldBegin()
10282  if ftype == TType.STOP:
10283  break
10284  if fid == 0:
10285  if ftype == TType.LIST:
10286  self.success = []
10287  (_etype335, _size332) = iprot.readListBegin()
10288  for _i336 in range(_size332):
10289  _elem337 = TDBInfo()
10290  _elem337.read(iprot)
10291  self.success.append(_elem337)
10292  iprot.readListEnd()
10293  else:
10294  iprot.skip(ftype)
10295  elif fid == 1:
10296  if ftype == TType.STRUCT:
10297  self.e = TDBException.read(iprot)
10298  else:
10299  iprot.skip(ftype)
10300  else:
10301  iprot.skip(ftype)
10302  iprot.readFieldEnd()
10303  iprot.readStructEnd()
10304 
10305  def write(self, oprot):
10306  if oprot._fast_encode is not None and self.thrift_spec is not None:
10307  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
10308  return
10309  oprot.writeStructBegin('get_databases_result')
10310  if self.success is not None:
10311  oprot.writeFieldBegin('success', TType.LIST, 0)
10312  oprot.writeListBegin(TType.STRUCT, len(self.success))
10313  for iter338 in self.success:
10314  iter338.write(oprot)
10315  oprot.writeListEnd()
10316  oprot.writeFieldEnd()
10317  if self.e is not None:
10318  oprot.writeFieldBegin('e', TType.STRUCT, 1)
10319  self.e.write(oprot)
10320  oprot.writeFieldEnd()
10321  oprot.writeFieldStop()
10322  oprot.writeStructEnd()
10323 
10324  def validate(self):
10325  return
10326 
10327  def __repr__(self):
10328  L = ['%s=%r' % (key, value)
10329  for key, value in self.__dict__.items()]
10330  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10331 
10332  def __eq__(self, other):
10333  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10334 
10335  def __ne__(self, other):
10336  return not (self == other)
10337 all_structs.append(get_databases_result)
10338 get_databases_result.thrift_spec = (
10339  (0, TType.LIST, 'success', (TType.STRUCT, [TDBInfo, None], False), None, ), # 0
10340  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
10341 )
10342 
10343 
10344 class get_version_args(object):
10345 
10346 
10347  def read(self, iprot):
10348  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
10349  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
10350  return
10351  iprot.readStructBegin()
10352  while True:
10353  (fname, ftype, fid) = iprot.readFieldBegin()
10354  if ftype == TType.STOP:
10355  break
10356  else:
10357  iprot.skip(ftype)
10358  iprot.readFieldEnd()
10359  iprot.readStructEnd()
10360 
10361  def write(self, oprot):
10362  if oprot._fast_encode is not None and self.thrift_spec is not None:
10363  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
10364  return
10365  oprot.writeStructBegin('get_version_args')
10366  oprot.writeFieldStop()
10367  oprot.writeStructEnd()
10368 
10369  def validate(self):
10370  return
10371 
10372  def __repr__(self):
10373  L = ['%s=%r' % (key, value)
10374  for key, value in self.__dict__.items()]
10375  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10376 
10377  def __eq__(self, other):
10378  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10379 
10380  def __ne__(self, other):
10381  return not (self == other)
10382 all_structs.append(get_version_args)
10383 get_version_args.thrift_spec = (
10384 )
10385 
10386 
10387 class get_version_result(object):
10388  """
10389  Attributes:
10390  - success
10391  - e
10392 
10393  """
10394 
10395 
10396  def __init__(self, success=None, e=None,):
10397  self.success = success
10398  self.e = e
10399 
10400  def read(self, iprot):
10401  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
10402  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
10403  return
10404  iprot.readStructBegin()
10405  while True:
10406  (fname, ftype, fid) = iprot.readFieldBegin()
10407  if ftype == TType.STOP:
10408  break
10409  if fid == 0:
10410  if ftype == TType.STRING:
10411  self.success = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
10412  else:
10413  iprot.skip(ftype)
10414  elif fid == 1:
10415  if ftype == TType.STRUCT:
10416  self.e = TDBException.read(iprot)
10417  else:
10418  iprot.skip(ftype)
10419  else:
10420  iprot.skip(ftype)
10421  iprot.readFieldEnd()
10422  iprot.readStructEnd()
10423 
10424  def write(self, oprot):
10425  if oprot._fast_encode is not None and self.thrift_spec is not None:
10426  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
10427  return
10428  oprot.writeStructBegin('get_version_result')
10429  if self.success is not None:
10430  oprot.writeFieldBegin('success', TType.STRING, 0)
10431  oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
10432  oprot.writeFieldEnd()
10433  if self.e is not None:
10434  oprot.writeFieldBegin('e', TType.STRUCT, 1)
10435  self.e.write(oprot)
10436  oprot.writeFieldEnd()
10437  oprot.writeFieldStop()
10438  oprot.writeStructEnd()
10439 
10440  def validate(self):
10441  return
10442 
10443  def __repr__(self):
10444  L = ['%s=%r' % (key, value)
10445  for key, value in self.__dict__.items()]
10446  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10447 
10448  def __eq__(self, other):
10449  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10450 
10451  def __ne__(self, other):
10452  return not (self == other)
10453 all_structs.append(get_version_result)
10454 get_version_result.thrift_spec = (
10455  (0, TType.STRING, 'success', 'UTF8', None, ), # 0
10456  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
10457 )
10458 
10459 
10461  """
10462  Attributes:
10463  - session
10464 
10465  """
10466 
10467 
10468  def __init__(self, session=None,):
10469  self.session = session
10470 
10471  def read(self, iprot):
10472  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
10473  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
10474  return
10475  iprot.readStructBegin()
10476  while True:
10477  (fname, ftype, fid) = iprot.readFieldBegin()
10478  if ftype == TType.STOP:
10479  break
10480  if fid == 1:
10481  if ftype == TType.STRING:
10482  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
10483  else:
10484  iprot.skip(ftype)
10485  else:
10486  iprot.skip(ftype)
10487  iprot.readFieldEnd()
10488  iprot.readStructEnd()
10489 
10490  def write(self, oprot):
10491  if oprot._fast_encode is not None and self.thrift_spec is not None:
10492  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
10493  return
10494  oprot.writeStructBegin('start_heap_profile_args')
10495  if self.session is not None:
10496  oprot.writeFieldBegin('session', TType.STRING, 1)
10497  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
10498  oprot.writeFieldEnd()
10499  oprot.writeFieldStop()
10500  oprot.writeStructEnd()
10501 
10502  def validate(self):
10503  return
10504 
10505  def __repr__(self):
10506  L = ['%s=%r' % (key, value)
10507  for key, value in self.__dict__.items()]
10508  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10509 
10510  def __eq__(self, other):
10511  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10512 
10513  def __ne__(self, other):
10514  return not (self == other)
10515 all_structs.append(start_heap_profile_args)
10516 start_heap_profile_args.thrift_spec = (
10517  None, # 0
10518  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
10519 )
10520 
10521 
10523  """
10524  Attributes:
10525  - e
10526 
10527  """
10528 
10529 
10530  def __init__(self, e=None,):
10531  self.e = e
10532 
10533  def read(self, iprot):
10534  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
10535  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
10536  return
10537  iprot.readStructBegin()
10538  while True:
10539  (fname, ftype, fid) = iprot.readFieldBegin()
10540  if ftype == TType.STOP:
10541  break
10542  if fid == 1:
10543  if ftype == TType.STRUCT:
10544  self.e = TDBException.read(iprot)
10545  else:
10546  iprot.skip(ftype)
10547  else:
10548  iprot.skip(ftype)
10549  iprot.readFieldEnd()
10550  iprot.readStructEnd()
10551 
10552  def write(self, oprot):
10553  if oprot._fast_encode is not None and self.thrift_spec is not None:
10554  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
10555  return
10556  oprot.writeStructBegin('start_heap_profile_result')
10557  if self.e is not None:
10558  oprot.writeFieldBegin('e', TType.STRUCT, 1)
10559  self.e.write(oprot)
10560  oprot.writeFieldEnd()
10561  oprot.writeFieldStop()
10562  oprot.writeStructEnd()
10563 
10564  def validate(self):
10565  return
10566 
10567  def __repr__(self):
10568  L = ['%s=%r' % (key, value)
10569  for key, value in self.__dict__.items()]
10570  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10571 
10572  def __eq__(self, other):
10573  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10574 
10575  def __ne__(self, other):
10576  return not (self == other)
10577 all_structs.append(start_heap_profile_result)
10578 start_heap_profile_result.thrift_spec = (
10579  None, # 0
10580  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
10581 )
10582 
10583 
10585  """
10586  Attributes:
10587  - session
10588 
10589  """
10590 
10591 
10592  def __init__(self, session=None,):
10593  self.session = session
10594 
10595  def read(self, iprot):
10596  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
10597  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
10598  return
10599  iprot.readStructBegin()
10600  while True:
10601  (fname, ftype, fid) = iprot.readFieldBegin()
10602  if ftype == TType.STOP:
10603  break
10604  if fid == 1:
10605  if ftype == TType.STRING:
10606  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
10607  else:
10608  iprot.skip(ftype)
10609  else:
10610  iprot.skip(ftype)
10611  iprot.readFieldEnd()
10612  iprot.readStructEnd()
10613 
10614  def write(self, oprot):
10615  if oprot._fast_encode is not None and self.thrift_spec is not None:
10616  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
10617  return
10618  oprot.writeStructBegin('stop_heap_profile_args')
10619  if self.session is not None:
10620  oprot.writeFieldBegin('session', TType.STRING, 1)
10621  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
10622  oprot.writeFieldEnd()
10623  oprot.writeFieldStop()
10624  oprot.writeStructEnd()
10625 
10626  def validate(self):
10627  return
10628 
10629  def __repr__(self):
10630  L = ['%s=%r' % (key, value)
10631  for key, value in self.__dict__.items()]
10632  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10633 
10634  def __eq__(self, other):
10635  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10636 
10637  def __ne__(self, other):
10638  return not (self == other)
10639 all_structs.append(stop_heap_profile_args)
10640 stop_heap_profile_args.thrift_spec = (
10641  None, # 0
10642  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
10643 )
10644 
10645 
10647  """
10648  Attributes:
10649  - e
10650 
10651  """
10652 
10653 
10654  def __init__(self, e=None,):
10655  self.e = e
10656 
10657  def read(self, iprot):
10658  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
10659  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
10660  return
10661  iprot.readStructBegin()
10662  while True:
10663  (fname, ftype, fid) = iprot.readFieldBegin()
10664  if ftype == TType.STOP:
10665  break
10666  if fid == 1:
10667  if ftype == TType.STRUCT:
10668  self.e = TDBException.read(iprot)
10669  else:
10670  iprot.skip(ftype)
10671  else:
10672  iprot.skip(ftype)
10673  iprot.readFieldEnd()
10674  iprot.readStructEnd()
10675 
10676  def write(self, oprot):
10677  if oprot._fast_encode is not None and self.thrift_spec is not None:
10678  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
10679  return
10680  oprot.writeStructBegin('stop_heap_profile_result')
10681  if self.e is not None:
10682  oprot.writeFieldBegin('e', TType.STRUCT, 1)
10683  self.e.write(oprot)
10684  oprot.writeFieldEnd()
10685  oprot.writeFieldStop()
10686  oprot.writeStructEnd()
10687 
10688  def validate(self):
10689  return
10690 
10691  def __repr__(self):
10692  L = ['%s=%r' % (key, value)
10693  for key, value in self.__dict__.items()]
10694  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10695 
10696  def __eq__(self, other):
10697  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10698 
10699  def __ne__(self, other):
10700  return not (self == other)
10701 all_structs.append(stop_heap_profile_result)
10702 stop_heap_profile_result.thrift_spec = (
10703  None, # 0
10704  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
10705 )
10706 
10707 
10709  """
10710  Attributes:
10711  - session
10712 
10713  """
10714 
10715 
10716  def __init__(self, session=None,):
10717  self.session = session
10718 
10719  def read(self, iprot):
10720  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
10721  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
10722  return
10723  iprot.readStructBegin()
10724  while True:
10725  (fname, ftype, fid) = iprot.readFieldBegin()
10726  if ftype == TType.STOP:
10727  break
10728  if fid == 1:
10729  if ftype == TType.STRING:
10730  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
10731  else:
10732  iprot.skip(ftype)
10733  else:
10734  iprot.skip(ftype)
10735  iprot.readFieldEnd()
10736  iprot.readStructEnd()
10737 
10738  def write(self, oprot):
10739  if oprot._fast_encode is not None and self.thrift_spec is not None:
10740  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
10741  return
10742  oprot.writeStructBegin('get_heap_profile_args')
10743  if self.session is not None:
10744  oprot.writeFieldBegin('session', TType.STRING, 1)
10745  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
10746  oprot.writeFieldEnd()
10747  oprot.writeFieldStop()
10748  oprot.writeStructEnd()
10749 
10750  def validate(self):
10751  return
10752 
10753  def __repr__(self):
10754  L = ['%s=%r' % (key, value)
10755  for key, value in self.__dict__.items()]
10756  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10757 
10758  def __eq__(self, other):
10759  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10760 
10761  def __ne__(self, other):
10762  return not (self == other)
10763 all_structs.append(get_heap_profile_args)
10764 get_heap_profile_args.thrift_spec = (
10765  None, # 0
10766  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
10767 )
10768 
10769 
10771  """
10772  Attributes:
10773  - success
10774  - e
10775 
10776  """
10777 
10778 
10779  def __init__(self, success=None, e=None,):
10780  self.success = success
10781  self.e = e
10782 
10783  def read(self, iprot):
10784  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
10785  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
10786  return
10787  iprot.readStructBegin()
10788  while True:
10789  (fname, ftype, fid) = iprot.readFieldBegin()
10790  if ftype == TType.STOP:
10791  break
10792  if fid == 0:
10793  if ftype == TType.STRING:
10794  self.success = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
10795  else:
10796  iprot.skip(ftype)
10797  elif fid == 1:
10798  if ftype == TType.STRUCT:
10799  self.e = TDBException.read(iprot)
10800  else:
10801  iprot.skip(ftype)
10802  else:
10803  iprot.skip(ftype)
10804  iprot.readFieldEnd()
10805  iprot.readStructEnd()
10806 
10807  def write(self, oprot):
10808  if oprot._fast_encode is not None and self.thrift_spec is not None:
10809  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
10810  return
10811  oprot.writeStructBegin('get_heap_profile_result')
10812  if self.success is not None:
10813  oprot.writeFieldBegin('success', TType.STRING, 0)
10814  oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
10815  oprot.writeFieldEnd()
10816  if self.e is not None:
10817  oprot.writeFieldBegin('e', TType.STRUCT, 1)
10818  self.e.write(oprot)
10819  oprot.writeFieldEnd()
10820  oprot.writeFieldStop()
10821  oprot.writeStructEnd()
10822 
10823  def validate(self):
10824  return
10825 
10826  def __repr__(self):
10827  L = ['%s=%r' % (key, value)
10828  for key, value in self.__dict__.items()]
10829  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10830 
10831  def __eq__(self, other):
10832  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10833 
10834  def __ne__(self, other):
10835  return not (self == other)
10836 all_structs.append(get_heap_profile_result)
10837 get_heap_profile_result.thrift_spec = (
10838  (0, TType.STRING, 'success', 'UTF8', None, ), # 0
10839  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
10840 )
10841 
10842 
10843 class get_memory_args(object):
10844  """
10845  Attributes:
10846  - session
10847  - memory_level
10848 
10849  """
10850 
10851 
10852  def __init__(self, session=None, memory_level=None,):
10853  self.session = session
10854  self.memory_level = memory_level
10855 
10856  def read(self, iprot):
10857  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
10858  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
10859  return
10860  iprot.readStructBegin()
10861  while True:
10862  (fname, ftype, fid) = iprot.readFieldBegin()
10863  if ftype == TType.STOP:
10864  break
10865  if fid == 1:
10866  if ftype == TType.STRING:
10867  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
10868  else:
10869  iprot.skip(ftype)
10870  elif fid == 2:
10871  if ftype == TType.STRING:
10872  self.memory_level = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
10873  else:
10874  iprot.skip(ftype)
10875  else:
10876  iprot.skip(ftype)
10877  iprot.readFieldEnd()
10878  iprot.readStructEnd()
10879 
10880  def write(self, oprot):
10881  if oprot._fast_encode is not None and self.thrift_spec is not None:
10882  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
10883  return
10884  oprot.writeStructBegin('get_memory_args')
10885  if self.session is not None:
10886  oprot.writeFieldBegin('session', TType.STRING, 1)
10887  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
10888  oprot.writeFieldEnd()
10889  if self.memory_level is not None:
10890  oprot.writeFieldBegin('memory_level', TType.STRING, 2)
10891  oprot.writeString(self.memory_level.encode('utf-8') if sys.version_info[0] == 2 else self.memory_level)
10892  oprot.writeFieldEnd()
10893  oprot.writeFieldStop()
10894  oprot.writeStructEnd()
10895 
10896  def validate(self):
10897  return
10898 
10899  def __repr__(self):
10900  L = ['%s=%r' % (key, value)
10901  for key, value in self.__dict__.items()]
10902  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10903 
10904  def __eq__(self, other):
10905  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10906 
10907  def __ne__(self, other):
10908  return not (self == other)
10909 all_structs.append(get_memory_args)
10910 get_memory_args.thrift_spec = (
10911  None, # 0
10912  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
10913  (2, TType.STRING, 'memory_level', 'UTF8', None, ), # 2
10914 )
10915 
10916 
10917 class get_memory_result(object):
10918  """
10919  Attributes:
10920  - success
10921  - e
10922 
10923  """
10924 
10925 
10926  def __init__(self, success=None, e=None,):
10927  self.success = success
10928  self.e = e
10929 
10930  def read(self, iprot):
10931  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
10932  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
10933  return
10934  iprot.readStructBegin()
10935  while True:
10936  (fname, ftype, fid) = iprot.readFieldBegin()
10937  if ftype == TType.STOP:
10938  break
10939  if fid == 0:
10940  if ftype == TType.LIST:
10941  self.success = []
10942  (_etype342, _size339) = iprot.readListBegin()
10943  for _i343 in range(_size339):
10944  _elem344 = TNodeMemoryInfo()
10945  _elem344.read(iprot)
10946  self.success.append(_elem344)
10947  iprot.readListEnd()
10948  else:
10949  iprot.skip(ftype)
10950  elif fid == 1:
10951  if ftype == TType.STRUCT:
10952  self.e = TDBException.read(iprot)
10953  else:
10954  iprot.skip(ftype)
10955  else:
10956  iprot.skip(ftype)
10957  iprot.readFieldEnd()
10958  iprot.readStructEnd()
10959 
10960  def write(self, oprot):
10961  if oprot._fast_encode is not None and self.thrift_spec is not None:
10962  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
10963  return
10964  oprot.writeStructBegin('get_memory_result')
10965  if self.success is not None:
10966  oprot.writeFieldBegin('success', TType.LIST, 0)
10967  oprot.writeListBegin(TType.STRUCT, len(self.success))
10968  for iter345 in self.success:
10969  iter345.write(oprot)
10970  oprot.writeListEnd()
10971  oprot.writeFieldEnd()
10972  if self.e is not None:
10973  oprot.writeFieldBegin('e', TType.STRUCT, 1)
10974  self.e.write(oprot)
10975  oprot.writeFieldEnd()
10976  oprot.writeFieldStop()
10977  oprot.writeStructEnd()
10978 
10979  def validate(self):
10980  return
10981 
10982  def __repr__(self):
10983  L = ['%s=%r' % (key, value)
10984  for key, value in self.__dict__.items()]
10985  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10986 
10987  def __eq__(self, other):
10988  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10989 
10990  def __ne__(self, other):
10991  return not (self == other)
10992 all_structs.append(get_memory_result)
10993 get_memory_result.thrift_spec = (
10994  (0, TType.LIST, 'success', (TType.STRUCT, [TNodeMemoryInfo, None], False), None, ), # 0
10995  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
10996 )
10997 
10998 
11000  """
11001  Attributes:
11002  - session
11003 
11004  """
11005 
11006 
11007  def __init__(self, session=None,):
11008  self.session = session
11009 
11010  def read(self, iprot):
11011  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
11012  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
11013  return
11014  iprot.readStructBegin()
11015  while True:
11016  (fname, ftype, fid) = iprot.readFieldBegin()
11017  if ftype == TType.STOP:
11018  break
11019  if fid == 1:
11020  if ftype == TType.STRING:
11021  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
11022  else:
11023  iprot.skip(ftype)
11024  else:
11025  iprot.skip(ftype)
11026  iprot.readFieldEnd()
11027  iprot.readStructEnd()
11028 
11029  def write(self, oprot):
11030  if oprot._fast_encode is not None and self.thrift_spec is not None:
11031  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
11032  return
11033  oprot.writeStructBegin('clear_cpu_memory_args')
11034  if self.session is not None:
11035  oprot.writeFieldBegin('session', TType.STRING, 1)
11036  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
11037  oprot.writeFieldEnd()
11038  oprot.writeFieldStop()
11039  oprot.writeStructEnd()
11040 
11041  def validate(self):
11042  return
11043 
11044  def __repr__(self):
11045  L = ['%s=%r' % (key, value)
11046  for key, value in self.__dict__.items()]
11047  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11048 
11049  def __eq__(self, other):
11050  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11051 
11052  def __ne__(self, other):
11053  return not (self == other)
11054 all_structs.append(clear_cpu_memory_args)
11055 clear_cpu_memory_args.thrift_spec = (
11056  None, # 0
11057  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
11058 )
11059 
11060 
11062  """
11063  Attributes:
11064  - e
11065 
11066  """
11067 
11068 
11069  def __init__(self, e=None,):
11070  self.e = e
11071 
11072  def read(self, iprot):
11073  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
11074  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
11075  return
11076  iprot.readStructBegin()
11077  while True:
11078  (fname, ftype, fid) = iprot.readFieldBegin()
11079  if ftype == TType.STOP:
11080  break
11081  if fid == 1:
11082  if ftype == TType.STRUCT:
11083  self.e = TDBException.read(iprot)
11084  else:
11085  iprot.skip(ftype)
11086  else:
11087  iprot.skip(ftype)
11088  iprot.readFieldEnd()
11089  iprot.readStructEnd()
11090 
11091  def write(self, oprot):
11092  if oprot._fast_encode is not None and self.thrift_spec is not None:
11093  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
11094  return
11095  oprot.writeStructBegin('clear_cpu_memory_result')
11096  if self.e is not None:
11097  oprot.writeFieldBegin('e', TType.STRUCT, 1)
11098  self.e.write(oprot)
11099  oprot.writeFieldEnd()
11100  oprot.writeFieldStop()
11101  oprot.writeStructEnd()
11102 
11103  def validate(self):
11104  return
11105 
11106  def __repr__(self):
11107  L = ['%s=%r' % (key, value)
11108  for key, value in self.__dict__.items()]
11109  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11110 
11111  def __eq__(self, other):
11112  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11113 
11114  def __ne__(self, other):
11115  return not (self == other)
11116 all_structs.append(clear_cpu_memory_result)
11117 clear_cpu_memory_result.thrift_spec = (
11118  None, # 0
11119  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
11120 )
11121 
11122 
11124  """
11125  Attributes:
11126  - session
11127 
11128  """
11129 
11130 
11131  def __init__(self, session=None,):
11132  self.session = session
11133 
11134  def read(self, iprot):
11135  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
11136  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
11137  return
11138  iprot.readStructBegin()
11139  while True:
11140  (fname, ftype, fid) = iprot.readFieldBegin()
11141  if ftype == TType.STOP:
11142  break
11143  if fid == 1:
11144  if ftype == TType.STRING:
11145  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
11146  else:
11147  iprot.skip(ftype)
11148  else:
11149  iprot.skip(ftype)
11150  iprot.readFieldEnd()
11151  iprot.readStructEnd()
11152 
11153  def write(self, oprot):
11154  if oprot._fast_encode is not None and self.thrift_spec is not None:
11155  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
11156  return
11157  oprot.writeStructBegin('clear_gpu_memory_args')
11158  if self.session is not None:
11159  oprot.writeFieldBegin('session', TType.STRING, 1)
11160  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
11161  oprot.writeFieldEnd()
11162  oprot.writeFieldStop()
11163  oprot.writeStructEnd()
11164 
11165  def validate(self):
11166  return
11167 
11168  def __repr__(self):
11169  L = ['%s=%r' % (key, value)
11170  for key, value in self.__dict__.items()]
11171  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11172 
11173  def __eq__(self, other):
11174  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11175 
11176  def __ne__(self, other):
11177  return not (self == other)
11178 all_structs.append(clear_gpu_memory_args)
11179 clear_gpu_memory_args.thrift_spec = (
11180  None, # 0
11181  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
11182 )
11183 
11184 
11186  """
11187  Attributes:
11188  - e
11189 
11190  """
11191 
11192 
11193  def __init__(self, e=None,):
11194  self.e = e
11195 
11196  def read(self, iprot):
11197  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
11198  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
11199  return
11200  iprot.readStructBegin()
11201  while True:
11202  (fname, ftype, fid) = iprot.readFieldBegin()
11203  if ftype == TType.STOP:
11204  break
11205  if fid == 1:
11206  if ftype == TType.STRUCT:
11207  self.e = TDBException.read(iprot)
11208  else:
11209  iprot.skip(ftype)
11210  else:
11211  iprot.skip(ftype)
11212  iprot.readFieldEnd()
11213  iprot.readStructEnd()
11214 
11215  def write(self, oprot):
11216  if oprot._fast_encode is not None and self.thrift_spec is not None:
11217  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
11218  return
11219  oprot.writeStructBegin('clear_gpu_memory_result')
11220  if self.e is not None:
11221  oprot.writeFieldBegin('e', TType.STRUCT, 1)
11222  self.e.write(oprot)
11223  oprot.writeFieldEnd()
11224  oprot.writeFieldStop()
11225  oprot.writeStructEnd()
11226 
11227  def validate(self):
11228  return
11229 
11230  def __repr__(self):
11231  L = ['%s=%r' % (key, value)
11232  for key, value in self.__dict__.items()]
11233  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11234 
11235  def __eq__(self, other):
11236  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11237 
11238  def __ne__(self, other):
11239  return not (self == other)
11240 all_structs.append(clear_gpu_memory_result)
11241 clear_gpu_memory_result.thrift_spec = (
11242  None, # 0
11243  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
11244 )
11245 
11246 
11247 class set_cur_session_args(object):
11248  """
11249  Attributes:
11250  - parent_session
11251  - leaf_session
11252  - start_time_str
11253  - label
11254  - for_running_query_kernel
11255 
11256  """
11257 
11258 
11259  def __init__(self, parent_session=None, leaf_session=None, start_time_str=None, label=None, for_running_query_kernel=None,):
11260  self.parent_session = parent_session
11261  self.leaf_session = leaf_session
11262  self.start_time_str = start_time_str
11263  self.label = label
11264  self.for_running_query_kernel = for_running_query_kernel
11265 
11266  def read(self, iprot):
11267  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
11268  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
11269  return
11270  iprot.readStructBegin()
11271  while True:
11272  (fname, ftype, fid) = iprot.readFieldBegin()
11273  if ftype == TType.STOP:
11274  break
11275  if fid == 1:
11276  if ftype == TType.STRING:
11277  self.parent_session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
11278  else:
11279  iprot.skip(ftype)
11280  elif fid == 2:
11281  if ftype == TType.STRING:
11282  self.leaf_session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
11283  else:
11284  iprot.skip(ftype)
11285  elif fid == 3:
11286  if ftype == TType.STRING:
11287  self.start_time_str = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
11288  else:
11289  iprot.skip(ftype)
11290  elif fid == 4:
11291  if ftype == TType.STRING:
11292  self.label = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
11293  else:
11294  iprot.skip(ftype)
11295  elif fid == 5:
11296  if ftype == TType.BOOL:
11297  self.for_running_query_kernel = iprot.readBool()
11298  else:
11299  iprot.skip(ftype)
11300  else:
11301  iprot.skip(ftype)
11302  iprot.readFieldEnd()
11303  iprot.readStructEnd()
11304 
11305  def write(self, oprot):
11306  if oprot._fast_encode is not None and self.thrift_spec is not None:
11307  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
11308  return
11309  oprot.writeStructBegin('set_cur_session_args')
11310  if self.parent_session is not None:
11311  oprot.writeFieldBegin('parent_session', TType.STRING, 1)
11312  oprot.writeString(self.parent_session.encode('utf-8') if sys.version_info[0] == 2 else self.parent_session)
11313  oprot.writeFieldEnd()
11314  if self.leaf_session is not None:
11315  oprot.writeFieldBegin('leaf_session', TType.STRING, 2)
11316  oprot.writeString(self.leaf_session.encode('utf-8') if sys.version_info[0] == 2 else self.leaf_session)
11317  oprot.writeFieldEnd()
11318  if self.start_time_str is not None:
11319  oprot.writeFieldBegin('start_time_str', TType.STRING, 3)
11320  oprot.writeString(self.start_time_str.encode('utf-8') if sys.version_info[0] == 2 else self.start_time_str)
11321  oprot.writeFieldEnd()
11322  if self.label is not None:
11323  oprot.writeFieldBegin('label', TType.STRING, 4)
11324  oprot.writeString(self.label.encode('utf-8') if sys.version_info[0] == 2 else self.label)
11325  oprot.writeFieldEnd()
11326  if self.for_running_query_kernel is not None:
11327  oprot.writeFieldBegin('for_running_query_kernel', TType.BOOL, 5)
11328  oprot.writeBool(self.for_running_query_kernel)
11329  oprot.writeFieldEnd()
11330  oprot.writeFieldStop()
11331  oprot.writeStructEnd()
11332 
11333  def validate(self):
11334  return
11335 
11336  def __repr__(self):
11337  L = ['%s=%r' % (key, value)
11338  for key, value in self.__dict__.items()]
11339  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11340 
11341  def __eq__(self, other):
11342  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11343 
11344  def __ne__(self, other):
11345  return not (self == other)
11346 all_structs.append(set_cur_session_args)
11347 set_cur_session_args.thrift_spec = (
11348  None, # 0
11349  (1, TType.STRING, 'parent_session', 'UTF8', None, ), # 1
11350  (2, TType.STRING, 'leaf_session', 'UTF8', None, ), # 2
11351  (3, TType.STRING, 'start_time_str', 'UTF8', None, ), # 3
11352  (4, TType.STRING, 'label', 'UTF8', None, ), # 4
11353  (5, TType.BOOL, 'for_running_query_kernel', None, None, ), # 5
11354 )
11355 
11356 
11358  """
11359  Attributes:
11360  - e
11361 
11362  """
11363 
11364 
11365  def __init__(self, e=None,):
11366  self.e = e
11367 
11368  def read(self, iprot):
11369  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
11370  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
11371  return
11372  iprot.readStructBegin()
11373  while True:
11374  (fname, ftype, fid) = iprot.readFieldBegin()
11375  if ftype == TType.STOP:
11376  break
11377  if fid == 1:
11378  if ftype == TType.STRUCT:
11379  self.e = TDBException.read(iprot)
11380  else:
11381  iprot.skip(ftype)
11382  else:
11383  iprot.skip(ftype)
11384  iprot.readFieldEnd()
11385  iprot.readStructEnd()
11386 
11387  def write(self, oprot):
11388  if oprot._fast_encode is not None and self.thrift_spec is not None:
11389  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
11390  return
11391  oprot.writeStructBegin('set_cur_session_result')
11392  if self.e is not None:
11393  oprot.writeFieldBegin('e', TType.STRUCT, 1)
11394  self.e.write(oprot)
11395  oprot.writeFieldEnd()
11396  oprot.writeFieldStop()
11397  oprot.writeStructEnd()
11398 
11399  def validate(self):
11400  return
11401 
11402  def __repr__(self):
11403  L = ['%s=%r' % (key, value)
11404  for key, value in self.__dict__.items()]
11405  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11406 
11407  def __eq__(self, other):
11408  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11409 
11410  def __ne__(self, other):
11411  return not (self == other)
11412 all_structs.append(set_cur_session_result)
11413 set_cur_session_result.thrift_spec = (
11414  None, # 0
11415  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
11416 )
11417 
11418 
11420  """
11421  Attributes:
11422  - parent_session
11423  - leaf_session
11424  - start_time_str
11425  - label
11426  - for_running_query_kernel
11427 
11428  """
11429 
11430 
11431  def __init__(self, parent_session=None, leaf_session=None, start_time_str=None, label=None, for_running_query_kernel=None,):
11432  self.parent_session = parent_session
11433  self.leaf_session = leaf_session
11434  self.start_time_str = start_time_str
11435  self.label = label
11436  self.for_running_query_kernel = for_running_query_kernel
11437 
11438  def read(self, iprot):
11439  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
11440  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
11441  return
11442  iprot.readStructBegin()
11443  while True:
11444  (fname, ftype, fid) = iprot.readFieldBegin()
11445  if ftype == TType.STOP:
11446  break
11447  if fid == 1:
11448  if ftype == TType.STRING:
11449  self.parent_session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
11450  else:
11451  iprot.skip(ftype)
11452  elif fid == 2:
11453  if ftype == TType.STRING:
11454  self.leaf_session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
11455  else:
11456  iprot.skip(ftype)
11457  elif fid == 3:
11458  if ftype == TType.STRING:
11459  self.start_time_str = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
11460  else:
11461  iprot.skip(ftype)
11462  elif fid == 4:
11463  if ftype == TType.STRING:
11464  self.label = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
11465  else:
11466  iprot.skip(ftype)
11467  elif fid == 5:
11468  if ftype == TType.BOOL:
11469  self.for_running_query_kernel = iprot.readBool()
11470  else:
11471  iprot.skip(ftype)
11472  else:
11473  iprot.skip(ftype)
11474  iprot.readFieldEnd()
11475  iprot.readStructEnd()
11476 
11477  def write(self, oprot):
11478  if oprot._fast_encode is not None and self.thrift_spec is not None:
11479  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
11480  return
11481  oprot.writeStructBegin('invalidate_cur_session_args')
11482  if self.parent_session is not None:
11483  oprot.writeFieldBegin('parent_session', TType.STRING, 1)
11484  oprot.writeString(self.parent_session.encode('utf-8') if sys.version_info[0] == 2 else self.parent_session)
11485  oprot.writeFieldEnd()
11486  if self.leaf_session is not None:
11487  oprot.writeFieldBegin('leaf_session', TType.STRING, 2)
11488  oprot.writeString(self.leaf_session.encode('utf-8') if sys.version_info[0] == 2 else self.leaf_session)
11489  oprot.writeFieldEnd()
11490  if self.start_time_str is not None:
11491  oprot.writeFieldBegin('start_time_str', TType.STRING, 3)
11492  oprot.writeString(self.start_time_str.encode('utf-8') if sys.version_info[0] == 2 else self.start_time_str)
11493  oprot.writeFieldEnd()
11494  if self.label is not None:
11495  oprot.writeFieldBegin('label', TType.STRING, 4)
11496  oprot.writeString(self.label.encode('utf-8') if sys.version_info[0] == 2 else self.label)
11497  oprot.writeFieldEnd()
11498  if self.for_running_query_kernel is not None:
11499  oprot.writeFieldBegin('for_running_query_kernel', TType.BOOL, 5)
11500  oprot.writeBool(self.for_running_query_kernel)
11501  oprot.writeFieldEnd()
11502  oprot.writeFieldStop()
11503  oprot.writeStructEnd()
11504 
11505  def validate(self):
11506  return
11507 
11508  def __repr__(self):
11509  L = ['%s=%r' % (key, value)
11510  for key, value in self.__dict__.items()]
11511  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11512 
11513  def __eq__(self, other):
11514  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11515 
11516  def __ne__(self, other):
11517  return not (self == other)
11518 all_structs.append(invalidate_cur_session_args)
11519 invalidate_cur_session_args.thrift_spec = (
11520  None, # 0
11521  (1, TType.STRING, 'parent_session', 'UTF8', None, ), # 1
11522  (2, TType.STRING, 'leaf_session', 'UTF8', None, ), # 2
11523  (3, TType.STRING, 'start_time_str', 'UTF8', None, ), # 3
11524  (4, TType.STRING, 'label', 'UTF8', None, ), # 4
11525  (5, TType.BOOL, 'for_running_query_kernel', None, None, ), # 5
11526 )
11527 
11528 
11530  """
11531  Attributes:
11532  - e
11533 
11534  """
11535 
11536 
11537  def __init__(self, e=None,):
11538  self.e = e
11539 
11540  def read(self, iprot):
11541  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
11542  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
11543  return
11544  iprot.readStructBegin()
11545  while True:
11546  (fname, ftype, fid) = iprot.readFieldBegin()
11547  if ftype == TType.STOP:
11548  break
11549  if fid == 1:
11550  if ftype == TType.STRUCT:
11551  self.e = TDBException.read(iprot)
11552  else:
11553  iprot.skip(ftype)
11554  else:
11555  iprot.skip(ftype)
11556  iprot.readFieldEnd()
11557  iprot.readStructEnd()
11558 
11559  def write(self, oprot):
11560  if oprot._fast_encode is not None and self.thrift_spec is not None:
11561  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
11562  return
11563  oprot.writeStructBegin('invalidate_cur_session_result')
11564  if self.e is not None:
11565  oprot.writeFieldBegin('e', TType.STRUCT, 1)
11566  self.e.write(oprot)
11567  oprot.writeFieldEnd()
11568  oprot.writeFieldStop()
11569  oprot.writeStructEnd()
11570 
11571  def validate(self):
11572  return
11573 
11574  def __repr__(self):
11575  L = ['%s=%r' % (key, value)
11576  for key, value in self.__dict__.items()]
11577  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11578 
11579  def __eq__(self, other):
11580  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11581 
11582  def __ne__(self, other):
11583  return not (self == other)
11584 all_structs.append(invalidate_cur_session_result)
11585 invalidate_cur_session_result.thrift_spec = (
11586  None, # 0
11587  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
11588 )
11589 
11590 
11591 class set_table_epoch_args(object):
11592  """
11593  Attributes:
11594  - session
11595  - db_id
11596  - table_id
11597  - new_epoch
11598 
11599  """
11600 
11601 
11602  def __init__(self, session=None, db_id=None, table_id=None, new_epoch=None,):
11603  self.session = session
11604  self.db_id = db_id
11605  self.table_id = table_id
11606  self.new_epoch = new_epoch
11607 
11608  def read(self, iprot):
11609  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
11610  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
11611  return
11612  iprot.readStructBegin()
11613  while True:
11614  (fname, ftype, fid) = iprot.readFieldBegin()
11615  if ftype == TType.STOP:
11616  break
11617  if fid == 1:
11618  if ftype == TType.STRING:
11619  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
11620  else:
11621  iprot.skip(ftype)
11622  elif fid == 2:
11623  if ftype == TType.I32:
11624  self.db_id = iprot.readI32()
11625  else:
11626  iprot.skip(ftype)
11627  elif fid == 3:
11628  if ftype == TType.I32:
11629  self.table_id = iprot.readI32()
11630  else:
11631  iprot.skip(ftype)
11632  elif fid == 4:
11633  if ftype == TType.I32:
11634  self.new_epoch = iprot.readI32()
11635  else:
11636  iprot.skip(ftype)
11637  else:
11638  iprot.skip(ftype)
11639  iprot.readFieldEnd()
11640  iprot.readStructEnd()
11641 
11642  def write(self, oprot):
11643  if oprot._fast_encode is not None and self.thrift_spec is not None:
11644  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
11645  return
11646  oprot.writeStructBegin('set_table_epoch_args')
11647  if self.session is not None:
11648  oprot.writeFieldBegin('session', TType.STRING, 1)
11649  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
11650  oprot.writeFieldEnd()
11651  if self.db_id is not None:
11652  oprot.writeFieldBegin('db_id', TType.I32, 2)
11653  oprot.writeI32(self.db_id)
11654  oprot.writeFieldEnd()
11655  if self.table_id is not None:
11656  oprot.writeFieldBegin('table_id', TType.I32, 3)
11657  oprot.writeI32(self.table_id)
11658  oprot.writeFieldEnd()
11659  if self.new_epoch is not None:
11660  oprot.writeFieldBegin('new_epoch', TType.I32, 4)
11661  oprot.writeI32(self.new_epoch)
11662  oprot.writeFieldEnd()
11663  oprot.writeFieldStop()
11664  oprot.writeStructEnd()
11665 
11666  def validate(self):
11667  return
11668 
11669  def __repr__(self):
11670  L = ['%s=%r' % (key, value)
11671  for key, value in self.__dict__.items()]
11672  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11673 
11674  def __eq__(self, other):
11675  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11676 
11677  def __ne__(self, other):
11678  return not (self == other)
11679 all_structs.append(set_table_epoch_args)
11680 set_table_epoch_args.thrift_spec = (
11681  None, # 0
11682  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
11683  (2, TType.I32, 'db_id', None, None, ), # 2
11684  (3, TType.I32, 'table_id', None, None, ), # 3
11685  (4, TType.I32, 'new_epoch', None, None, ), # 4
11686 )
11687 
11688 
11690  """
11691  Attributes:
11692  - e
11693 
11694  """
11695 
11696 
11697  def __init__(self, e=None,):
11698  self.e = e
11699 
11700  def read(self, iprot):
11701  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
11702  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
11703  return
11704  iprot.readStructBegin()
11705  while True:
11706  (fname, ftype, fid) = iprot.readFieldBegin()
11707  if ftype == TType.STOP:
11708  break
11709  if fid == 1:
11710  if ftype == TType.STRUCT:
11711  self.e = TDBException.read(iprot)
11712  else:
11713  iprot.skip(ftype)
11714  else:
11715  iprot.skip(ftype)
11716  iprot.readFieldEnd()
11717  iprot.readStructEnd()
11718 
11719  def write(self, oprot):
11720  if oprot._fast_encode is not None and self.thrift_spec is not None:
11721  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
11722  return
11723  oprot.writeStructBegin('set_table_epoch_result')
11724  if self.e is not None:
11725  oprot.writeFieldBegin('e', TType.STRUCT, 1)
11726  self.e.write(oprot)
11727  oprot.writeFieldEnd()
11728  oprot.writeFieldStop()
11729  oprot.writeStructEnd()
11730 
11731  def validate(self):
11732  return
11733 
11734  def __repr__(self):
11735  L = ['%s=%r' % (key, value)
11736  for key, value in self.__dict__.items()]
11737  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11738 
11739  def __eq__(self, other):
11740  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11741 
11742  def __ne__(self, other):
11743  return not (self == other)
11744 all_structs.append(set_table_epoch_result)
11745 set_table_epoch_result.thrift_spec = (
11746  None, # 0
11747  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
11748 )
11749 
11750 
11752  """
11753  Attributes:
11754  - session
11755  - table_name
11756  - new_epoch
11757 
11758  """
11759 
11760 
11761  def __init__(self, session=None, table_name=None, new_epoch=None,):
11762  self.session = session
11763  self.table_name = table_name
11764  self.new_epoch = new_epoch
11765 
11766  def read(self, iprot):
11767  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
11768  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
11769  return
11770  iprot.readStructBegin()
11771  while True:
11772  (fname, ftype, fid) = iprot.readFieldBegin()
11773  if ftype == TType.STOP:
11774  break
11775  if fid == 1:
11776  if ftype == TType.STRING:
11777  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
11778  else:
11779  iprot.skip(ftype)
11780  elif fid == 2:
11781  if ftype == TType.STRING:
11782  self.table_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
11783  else:
11784  iprot.skip(ftype)
11785  elif fid == 3:
11786  if ftype == TType.I32:
11787  self.new_epoch = iprot.readI32()
11788  else:
11789  iprot.skip(ftype)
11790  else:
11791  iprot.skip(ftype)
11792  iprot.readFieldEnd()
11793  iprot.readStructEnd()
11794 
11795  def write(self, oprot):
11796  if oprot._fast_encode is not None and self.thrift_spec is not None:
11797  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
11798  return
11799  oprot.writeStructBegin('set_table_epoch_by_name_args')
11800  if self.session is not None:
11801  oprot.writeFieldBegin('session', TType.STRING, 1)
11802  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
11803  oprot.writeFieldEnd()
11804  if self.table_name is not None:
11805  oprot.writeFieldBegin('table_name', TType.STRING, 2)
11806  oprot.writeString(self.table_name.encode('utf-8') if sys.version_info[0] == 2 else self.table_name)
11807  oprot.writeFieldEnd()
11808  if self.new_epoch is not None:
11809  oprot.writeFieldBegin('new_epoch', TType.I32, 3)
11810  oprot.writeI32(self.new_epoch)
11811  oprot.writeFieldEnd()
11812  oprot.writeFieldStop()
11813  oprot.writeStructEnd()
11814 
11815  def validate(self):
11816  return
11817 
11818  def __repr__(self):
11819  L = ['%s=%r' % (key, value)
11820  for key, value in self.__dict__.items()]
11821  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11822 
11823  def __eq__(self, other):
11824  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11825 
11826  def __ne__(self, other):
11827  return not (self == other)
11828 all_structs.append(set_table_epoch_by_name_args)
11829 set_table_epoch_by_name_args.thrift_spec = (
11830  None, # 0
11831  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
11832  (2, TType.STRING, 'table_name', 'UTF8', None, ), # 2
11833  (3, TType.I32, 'new_epoch', None, None, ), # 3
11834 )
11835 
11836 
11838  """
11839  Attributes:
11840  - e
11841 
11842  """
11843 
11844 
11845  def __init__(self, e=None,):
11846  self.e = e
11847 
11848  def read(self, iprot):
11849  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
11850  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
11851  return
11852  iprot.readStructBegin()
11853  while True:
11854  (fname, ftype, fid) = iprot.readFieldBegin()
11855  if ftype == TType.STOP:
11856  break
11857  if fid == 1:
11858  if ftype == TType.STRUCT:
11859  self.e = TDBException.read(iprot)
11860  else:
11861  iprot.skip(ftype)
11862  else:
11863  iprot.skip(ftype)
11864  iprot.readFieldEnd()
11865  iprot.readStructEnd()
11866 
11867  def write(self, oprot):
11868  if oprot._fast_encode is not None and self.thrift_spec is not None:
11869  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
11870  return
11871  oprot.writeStructBegin('set_table_epoch_by_name_result')
11872  if self.e is not None:
11873  oprot.writeFieldBegin('e', TType.STRUCT, 1)
11874  self.e.write(oprot)
11875  oprot.writeFieldEnd()
11876  oprot.writeFieldStop()
11877  oprot.writeStructEnd()
11878 
11879  def validate(self):
11880  return
11881 
11882  def __repr__(self):
11883  L = ['%s=%r' % (key, value)
11884  for key, value in self.__dict__.items()]
11885  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11886 
11887  def __eq__(self, other):
11888  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11889 
11890  def __ne__(self, other):
11891  return not (self == other)
11892 all_structs.append(set_table_epoch_by_name_result)
11893 set_table_epoch_by_name_result.thrift_spec = (
11894  None, # 0
11895  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
11896 )
11897 
11898 
11899 class get_table_epoch_args(object):
11900  """
11901  Attributes:
11902  - session
11903  - db_id
11904  - table_id
11905 
11906  """
11907 
11908 
11909  def __init__(self, session=None, db_id=None, table_id=None,):
11910  self.session = session
11911  self.db_id = db_id
11912  self.table_id = table_id
11913 
11914  def read(self, iprot):
11915  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
11916  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
11917  return
11918  iprot.readStructBegin()
11919  while True:
11920  (fname, ftype, fid) = iprot.readFieldBegin()
11921  if ftype == TType.STOP:
11922  break
11923  if fid == 1:
11924  if ftype == TType.STRING:
11925  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
11926  else:
11927  iprot.skip(ftype)
11928  elif fid == 2:
11929  if ftype == TType.I32:
11930  self.db_id = iprot.readI32()
11931  else:
11932  iprot.skip(ftype)
11933  elif fid == 3:
11934  if ftype == TType.I32:
11935  self.table_id = iprot.readI32()
11936  else:
11937  iprot.skip(ftype)
11938  else:
11939  iprot.skip(ftype)
11940  iprot.readFieldEnd()
11941  iprot.readStructEnd()
11942 
11943  def write(self, oprot):
11944  if oprot._fast_encode is not None and self.thrift_spec is not None:
11945  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
11946  return
11947  oprot.writeStructBegin('get_table_epoch_args')
11948  if self.session is not None:
11949  oprot.writeFieldBegin('session', TType.STRING, 1)
11950  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
11951  oprot.writeFieldEnd()
11952  if self.db_id is not None:
11953  oprot.writeFieldBegin('db_id', TType.I32, 2)
11954  oprot.writeI32(self.db_id)
11955  oprot.writeFieldEnd()
11956  if self.table_id is not None:
11957  oprot.writeFieldBegin('table_id', TType.I32, 3)
11958  oprot.writeI32(self.table_id)
11959  oprot.writeFieldEnd()
11960  oprot.writeFieldStop()
11961  oprot.writeStructEnd()
11962 
11963  def validate(self):
11964  return
11965 
11966  def __repr__(self):
11967  L = ['%s=%r' % (key, value)
11968  for key, value in self.__dict__.items()]
11969  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11970 
11971  def __eq__(self, other):
11972  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11973 
11974  def __ne__(self, other):
11975  return not (self == other)
11976 all_structs.append(get_table_epoch_args)
11977 get_table_epoch_args.thrift_spec = (
11978  None, # 0
11979  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
11980  (2, TType.I32, 'db_id', None, None, ), # 2
11981  (3, TType.I32, 'table_id', None, None, ), # 3
11982 )
11983 
11984 
11986  """
11987  Attributes:
11988  - success
11989 
11990  """
11991 
11992 
11993  def __init__(self, success=None,):
11994  self.success = success
11995 
11996  def read(self, iprot):
11997  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
11998  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
11999  return
12000  iprot.readStructBegin()
12001  while True:
12002  (fname, ftype, fid) = iprot.readFieldBegin()
12003  if ftype == TType.STOP:
12004  break
12005  if fid == 0:
12006  if ftype == TType.I32:
12007  self.success = iprot.readI32()
12008  else:
12009  iprot.skip(ftype)
12010  else:
12011  iprot.skip(ftype)
12012  iprot.readFieldEnd()
12013  iprot.readStructEnd()
12014 
12015  def write(self, oprot):
12016  if oprot._fast_encode is not None and self.thrift_spec is not None:
12017  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
12018  return
12019  oprot.writeStructBegin('get_table_epoch_result')
12020  if self.success is not None:
12021  oprot.writeFieldBegin('success', TType.I32, 0)
12022  oprot.writeI32(self.success)
12023  oprot.writeFieldEnd()
12024  oprot.writeFieldStop()
12025  oprot.writeStructEnd()
12026 
12027  def validate(self):
12028  return
12029 
12030  def __repr__(self):
12031  L = ['%s=%r' % (key, value)
12032  for key, value in self.__dict__.items()]
12033  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12034 
12035  def __eq__(self, other):
12036  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12037 
12038  def __ne__(self, other):
12039  return not (self == other)
12040 all_structs.append(get_table_epoch_result)
12041 get_table_epoch_result.thrift_spec = (
12042  (0, TType.I32, 'success', None, None, ), # 0
12043 )
12044 
12045 
12047  """
12048  Attributes:
12049  - session
12050  - table_name
12051 
12052  """
12053 
12054 
12055  def __init__(self, session=None, table_name=None,):
12056  self.session = session
12057  self.table_name = table_name
12058 
12059  def read(self, iprot):
12060  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
12061  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
12062  return
12063  iprot.readStructBegin()
12064  while True:
12065  (fname, ftype, fid) = iprot.readFieldBegin()
12066  if ftype == TType.STOP:
12067  break
12068  if fid == 1:
12069  if ftype == TType.STRING:
12070  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
12071  else:
12072  iprot.skip(ftype)
12073  elif fid == 2:
12074  if ftype == TType.STRING:
12075  self.table_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
12076  else:
12077  iprot.skip(ftype)
12078  else:
12079  iprot.skip(ftype)
12080  iprot.readFieldEnd()
12081  iprot.readStructEnd()
12082 
12083  def write(self, oprot):
12084  if oprot._fast_encode is not None and self.thrift_spec is not None:
12085  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
12086  return
12087  oprot.writeStructBegin('get_table_epoch_by_name_args')
12088  if self.session is not None:
12089  oprot.writeFieldBegin('session', TType.STRING, 1)
12090  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
12091  oprot.writeFieldEnd()
12092  if self.table_name is not None:
12093  oprot.writeFieldBegin('table_name', TType.STRING, 2)
12094  oprot.writeString(self.table_name.encode('utf-8') if sys.version_info[0] == 2 else self.table_name)
12095  oprot.writeFieldEnd()
12096  oprot.writeFieldStop()
12097  oprot.writeStructEnd()
12098 
12099  def validate(self):
12100  return
12101 
12102  def __repr__(self):
12103  L = ['%s=%r' % (key, value)
12104  for key, value in self.__dict__.items()]
12105  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12106 
12107  def __eq__(self, other):
12108  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12109 
12110  def __ne__(self, other):
12111  return not (self == other)
12112 all_structs.append(get_table_epoch_by_name_args)
12113 get_table_epoch_by_name_args.thrift_spec = (
12114  None, # 0
12115  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
12116  (2, TType.STRING, 'table_name', 'UTF8', None, ), # 2
12117 )
12118 
12119 
12121  """
12122  Attributes:
12123  - success
12124 
12125  """
12126 
12127 
12128  def __init__(self, success=None,):
12129  self.success = success
12130 
12131  def read(self, iprot):
12132  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
12133  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
12134  return
12135  iprot.readStructBegin()
12136  while True:
12137  (fname, ftype, fid) = iprot.readFieldBegin()
12138  if ftype == TType.STOP:
12139  break
12140  if fid == 0:
12141  if ftype == TType.I32:
12142  self.success = iprot.readI32()
12143  else:
12144  iprot.skip(ftype)
12145  else:
12146  iprot.skip(ftype)
12147  iprot.readFieldEnd()
12148  iprot.readStructEnd()
12149 
12150  def write(self, oprot):
12151  if oprot._fast_encode is not None and self.thrift_spec is not None:
12152  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
12153  return
12154  oprot.writeStructBegin('get_table_epoch_by_name_result')
12155  if self.success is not None:
12156  oprot.writeFieldBegin('success', TType.I32, 0)
12157  oprot.writeI32(self.success)
12158  oprot.writeFieldEnd()
12159  oprot.writeFieldStop()
12160  oprot.writeStructEnd()
12161 
12162  def validate(self):
12163  return
12164 
12165  def __repr__(self):
12166  L = ['%s=%r' % (key, value)
12167  for key, value in self.__dict__.items()]
12168  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12169 
12170  def __eq__(self, other):
12171  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12172 
12173  def __ne__(self, other):
12174  return not (self == other)
12175 all_structs.append(get_table_epoch_by_name_result)
12176 get_table_epoch_by_name_result.thrift_spec = (
12177  (0, TType.I32, 'success', None, None, ), # 0
12178 )
12179 
12180 
12182  """
12183  Attributes:
12184  - session
12185  - db_id
12186  - table_id
12187 
12188  """
12189 
12190 
12191  def __init__(self, session=None, db_id=None, table_id=None,):
12192  self.session = session
12193  self.db_id = db_id
12194  self.table_id = table_id
12195 
12196  def read(self, iprot):
12197  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
12198  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
12199  return
12200  iprot.readStructBegin()
12201  while True:
12202  (fname, ftype, fid) = iprot.readFieldBegin()
12203  if ftype == TType.STOP:
12204  break
12205  if fid == 1:
12206  if ftype == TType.STRING:
12207  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
12208  else:
12209  iprot.skip(ftype)
12210  elif fid == 2:
12211  if ftype == TType.I32:
12212  self.db_id = iprot.readI32()
12213  else:
12214  iprot.skip(ftype)
12215  elif fid == 3:
12216  if ftype == TType.I32:
12217  self.table_id = iprot.readI32()
12218  else:
12219  iprot.skip(ftype)
12220  else:
12221  iprot.skip(ftype)
12222  iprot.readFieldEnd()
12223  iprot.readStructEnd()
12224 
12225  def write(self, oprot):
12226  if oprot._fast_encode is not None and self.thrift_spec is not None:
12227  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
12228  return
12229  oprot.writeStructBegin('get_table_epochs_args')
12230  if self.session is not None:
12231  oprot.writeFieldBegin('session', TType.STRING, 1)
12232  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
12233  oprot.writeFieldEnd()
12234  if self.db_id is not None:
12235  oprot.writeFieldBegin('db_id', TType.I32, 2)
12236  oprot.writeI32(self.db_id)
12237  oprot.writeFieldEnd()
12238  if self.table_id is not None:
12239  oprot.writeFieldBegin('table_id', TType.I32, 3)
12240  oprot.writeI32(self.table_id)
12241  oprot.writeFieldEnd()
12242  oprot.writeFieldStop()
12243  oprot.writeStructEnd()
12244 
12245  def validate(self):
12246  return
12247 
12248  def __repr__(self):
12249  L = ['%s=%r' % (key, value)
12250  for key, value in self.__dict__.items()]
12251  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12252 
12253  def __eq__(self, other):
12254  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12255 
12256  def __ne__(self, other):
12257  return not (self == other)
12258 all_structs.append(get_table_epochs_args)
12259 get_table_epochs_args.thrift_spec = (
12260  None, # 0
12261  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
12262  (2, TType.I32, 'db_id', None, None, ), # 2
12263  (3, TType.I32, 'table_id', None, None, ), # 3
12264 )
12265 
12266 
12268  """
12269  Attributes:
12270  - success
12271 
12272  """
12273 
12274 
12275  def __init__(self, success=None,):
12276  self.success = success
12277 
12278  def read(self, iprot):
12279  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
12280  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
12281  return
12282  iprot.readStructBegin()
12283  while True:
12284  (fname, ftype, fid) = iprot.readFieldBegin()
12285  if ftype == TType.STOP:
12286  break
12287  if fid == 0:
12288  if ftype == TType.LIST:
12289  self.success = []
12290  (_etype349, _size346) = iprot.readListBegin()
12291  for _i350 in range(_size346):
12292  _elem351 = TTableEpochInfo()
12293  _elem351.read(iprot)
12294  self.success.append(_elem351)
12295  iprot.readListEnd()
12296  else:
12297  iprot.skip(ftype)
12298  else:
12299  iprot.skip(ftype)
12300  iprot.readFieldEnd()
12301  iprot.readStructEnd()
12302 
12303  def write(self, oprot):
12304  if oprot._fast_encode is not None and self.thrift_spec is not None:
12305  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
12306  return
12307  oprot.writeStructBegin('get_table_epochs_result')
12308  if self.success is not None:
12309  oprot.writeFieldBegin('success', TType.LIST, 0)
12310  oprot.writeListBegin(TType.STRUCT, len(self.success))
12311  for iter352 in self.success:
12312  iter352.write(oprot)
12313  oprot.writeListEnd()
12314  oprot.writeFieldEnd()
12315  oprot.writeFieldStop()
12316  oprot.writeStructEnd()
12317 
12318  def validate(self):
12319  return
12320 
12321  def __repr__(self):
12322  L = ['%s=%r' % (key, value)
12323  for key, value in self.__dict__.items()]
12324  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12325 
12326  def __eq__(self, other):
12327  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12328 
12329  def __ne__(self, other):
12330  return not (self == other)
12331 all_structs.append(get_table_epochs_result)
12332 get_table_epochs_result.thrift_spec = (
12333  (0, TType.LIST, 'success', (TType.STRUCT, [TTableEpochInfo, None], False), None, ), # 0
12334 )
12335 
12336 
12338  """
12339  Attributes:
12340  - session
12341  - db_id
12342  - table_epochs
12343 
12344  """
12345 
12346 
12347  def __init__(self, session=None, db_id=None, table_epochs=None,):
12348  self.session = session
12349  self.db_id = db_id
12350  self.table_epochs = table_epochs
12351 
12352  def read(self, iprot):
12353  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
12354  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
12355  return
12356  iprot.readStructBegin()
12357  while True:
12358  (fname, ftype, fid) = iprot.readFieldBegin()
12359  if ftype == TType.STOP:
12360  break
12361  if fid == 1:
12362  if ftype == TType.STRING:
12363  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
12364  else:
12365  iprot.skip(ftype)
12366  elif fid == 2:
12367  if ftype == TType.I32:
12368  self.db_id = iprot.readI32()
12369  else:
12370  iprot.skip(ftype)
12371  elif fid == 3:
12372  if ftype == TType.LIST:
12373  self.table_epochs = []
12374  (_etype356, _size353) = iprot.readListBegin()
12375  for _i357 in range(_size353):
12376  _elem358 = TTableEpochInfo()
12377  _elem358.read(iprot)
12378  self.table_epochs.append(_elem358)
12379  iprot.readListEnd()
12380  else:
12381  iprot.skip(ftype)
12382  else:
12383  iprot.skip(ftype)
12384  iprot.readFieldEnd()
12385  iprot.readStructEnd()
12386 
12387  def write(self, oprot):
12388  if oprot._fast_encode is not None and self.thrift_spec is not None:
12389  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
12390  return
12391  oprot.writeStructBegin('set_table_epochs_args')
12392  if self.session is not None:
12393  oprot.writeFieldBegin('session', TType.STRING, 1)
12394  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
12395  oprot.writeFieldEnd()
12396  if self.db_id is not None:
12397  oprot.writeFieldBegin('db_id', TType.I32, 2)
12398  oprot.writeI32(self.db_id)
12399  oprot.writeFieldEnd()
12400  if self.table_epochs is not None:
12401  oprot.writeFieldBegin('table_epochs', TType.LIST, 3)
12402  oprot.writeListBegin(TType.STRUCT, len(self.table_epochs))
12403  for iter359 in self.table_epochs:
12404  iter359.write(oprot)
12405  oprot.writeListEnd()
12406  oprot.writeFieldEnd()
12407  oprot.writeFieldStop()
12408  oprot.writeStructEnd()
12409 
12410  def validate(self):
12411  return
12412 
12413  def __repr__(self):
12414  L = ['%s=%r' % (key, value)
12415  for key, value in self.__dict__.items()]
12416  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12417 
12418  def __eq__(self, other):
12419  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12420 
12421  def __ne__(self, other):
12422  return not (self == other)
12423 all_structs.append(set_table_epochs_args)
12424 set_table_epochs_args.thrift_spec = (
12425  None, # 0
12426  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
12427  (2, TType.I32, 'db_id', None, None, ), # 2
12428  (3, TType.LIST, 'table_epochs', (TType.STRUCT, [TTableEpochInfo, None], False), None, ), # 3
12429 )
12430 
12431 
12433 
12434 
12435  def read(self, iprot):
12436  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
12437  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
12438  return
12439  iprot.readStructBegin()
12440  while True:
12441  (fname, ftype, fid) = iprot.readFieldBegin()
12442  if ftype == TType.STOP:
12443  break
12444  else:
12445  iprot.skip(ftype)
12446  iprot.readFieldEnd()
12447  iprot.readStructEnd()
12448 
12449  def write(self, oprot):
12450  if oprot._fast_encode is not None and self.thrift_spec is not None:
12451  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
12452  return
12453  oprot.writeStructBegin('set_table_epochs_result')
12454  oprot.writeFieldStop()
12455  oprot.writeStructEnd()
12456 
12457  def validate(self):
12458  return
12459 
12460  def __repr__(self):
12461  L = ['%s=%r' % (key, value)
12462  for key, value in self.__dict__.items()]
12463  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12464 
12465  def __eq__(self, other):
12466  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12467 
12468  def __ne__(self, other):
12469  return not (self == other)
12470 all_structs.append(set_table_epochs_result)
12471 set_table_epochs_result.thrift_spec = (
12472 )
12473 
12474 
12476  """
12477  Attributes:
12478  - session
12479 
12480  """
12481 
12482 
12483  def __init__(self, session=None,):
12484  self.session = session
12485 
12486  def read(self, iprot):
12487  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
12488  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
12489  return
12490  iprot.readStructBegin()
12491  while True:
12492  (fname, ftype, fid) = iprot.readFieldBegin()
12493  if ftype == TType.STOP:
12494  break
12495  if fid == 1:
12496  if ftype == TType.STRING:
12497  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
12498  else:
12499  iprot.skip(ftype)
12500  else:
12501  iprot.skip(ftype)
12502  iprot.readFieldEnd()
12503  iprot.readStructEnd()
12504 
12505  def write(self, oprot):
12506  if oprot._fast_encode is not None and self.thrift_spec is not None:
12507  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
12508  return
12509  oprot.writeStructBegin('get_session_info_args')
12510  if self.session is not None:
12511  oprot.writeFieldBegin('session', TType.STRING, 1)
12512  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
12513  oprot.writeFieldEnd()
12514  oprot.writeFieldStop()
12515  oprot.writeStructEnd()
12516 
12517  def validate(self):
12518  return
12519 
12520  def __repr__(self):
12521  L = ['%s=%r' % (key, value)
12522  for key, value in self.__dict__.items()]
12523  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12524 
12525  def __eq__(self, other):
12526  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12527 
12528  def __ne__(self, other):
12529  return not (self == other)
12530 all_structs.append(get_session_info_args)
12531 get_session_info_args.thrift_spec = (
12532  None, # 0
12533  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
12534 )
12535 
12536 
12538  """
12539  Attributes:
12540  - success
12541  - e
12542 
12543  """
12544 
12545 
12546  def __init__(self, success=None, e=None,):
12547  self.success = success
12548  self.e = e
12549 
12550  def read(self, iprot):
12551  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
12552  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
12553  return
12554  iprot.readStructBegin()
12555  while True:
12556  (fname, ftype, fid) = iprot.readFieldBegin()
12557  if ftype == TType.STOP:
12558  break
12559  if fid == 0:
12560  if ftype == TType.STRUCT:
12561  self.success = TSessionInfo()
12562  self.success.read(iprot)
12563  else:
12564  iprot.skip(ftype)
12565  elif fid == 1:
12566  if ftype == TType.STRUCT:
12567  self.e = TDBException.read(iprot)
12568  else:
12569  iprot.skip(ftype)
12570  else:
12571  iprot.skip(ftype)
12572  iprot.readFieldEnd()
12573  iprot.readStructEnd()
12574 
12575  def write(self, oprot):
12576  if oprot._fast_encode is not None and self.thrift_spec is not None:
12577  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
12578  return
12579  oprot.writeStructBegin('get_session_info_result')
12580  if self.success is not None:
12581  oprot.writeFieldBegin('success', TType.STRUCT, 0)
12582  self.success.write(oprot)
12583  oprot.writeFieldEnd()
12584  if self.e is not None:
12585  oprot.writeFieldBegin('e', TType.STRUCT, 1)
12586  self.e.write(oprot)
12587  oprot.writeFieldEnd()
12588  oprot.writeFieldStop()
12589  oprot.writeStructEnd()
12590 
12591  def validate(self):
12592  return
12593 
12594  def __repr__(self):
12595  L = ['%s=%r' % (key, value)
12596  for key, value in self.__dict__.items()]
12597  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12598 
12599  def __eq__(self, other):
12600  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12601 
12602  def __ne__(self, other):
12603  return not (self == other)
12604 all_structs.append(get_session_info_result)
12605 get_session_info_result.thrift_spec = (
12606  (0, TType.STRUCT, 'success', [TSessionInfo, None], None, ), # 0
12607  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
12608 )
12609 
12610 
12612  """
12613  Attributes:
12614  - session
12615 
12616  """
12617 
12618 
12619  def __init__(self, session=None,):
12620  self.session = session
12621 
12622  def read(self, iprot):
12623  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
12624  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
12625  return
12626  iprot.readStructBegin()
12627  while True:
12628  (fname, ftype, fid) = iprot.readFieldBegin()
12629  if ftype == TType.STOP:
12630  break
12631  if fid == 1:
12632  if ftype == TType.STRING:
12633  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
12634  else:
12635  iprot.skip(ftype)
12636  else:
12637  iprot.skip(ftype)
12638  iprot.readFieldEnd()
12639  iprot.readStructEnd()
12640 
12641  def write(self, oprot):
12642  if oprot._fast_encode is not None and self.thrift_spec is not None:
12643  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
12644  return
12645  oprot.writeStructBegin('get_queries_info_args')
12646  if self.session is not None:
12647  oprot.writeFieldBegin('session', TType.STRING, 1)
12648  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
12649  oprot.writeFieldEnd()
12650  oprot.writeFieldStop()
12651  oprot.writeStructEnd()
12652 
12653  def validate(self):
12654  return
12655 
12656  def __repr__(self):
12657  L = ['%s=%r' % (key, value)
12658  for key, value in self.__dict__.items()]
12659  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12660 
12661  def __eq__(self, other):
12662  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12663 
12664  def __ne__(self, other):
12665  return not (self == other)
12666 all_structs.append(get_queries_info_args)
12667 get_queries_info_args.thrift_spec = (
12668  None, # 0
12669  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
12670 )
12671 
12672 
12674  """
12675  Attributes:
12676  - success
12677  - e
12678 
12679  """
12680 
12681 
12682  def __init__(self, success=None, e=None,):
12683  self.success = success
12684  self.e = e
12685 
12686  def read(self, iprot):
12687  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
12688  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
12689  return
12690  iprot.readStructBegin()
12691  while True:
12692  (fname, ftype, fid) = iprot.readFieldBegin()
12693  if ftype == TType.STOP:
12694  break
12695  if fid == 0:
12696  if ftype == TType.LIST:
12697  self.success = []
12698  (_etype363, _size360) = iprot.readListBegin()
12699  for _i364 in range(_size360):
12700  _elem365 = TQueryInfo()
12701  _elem365.read(iprot)
12702  self.success.append(_elem365)
12703  iprot.readListEnd()
12704  else:
12705  iprot.skip(ftype)
12706  elif fid == 1:
12707  if ftype == TType.STRUCT:
12708  self.e = TDBException.read(iprot)
12709  else:
12710  iprot.skip(ftype)
12711  else:
12712  iprot.skip(ftype)
12713  iprot.readFieldEnd()
12714  iprot.readStructEnd()
12715 
12716  def write(self, oprot):
12717  if oprot._fast_encode is not None and self.thrift_spec is not None:
12718  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
12719  return
12720  oprot.writeStructBegin('get_queries_info_result')
12721  if self.success is not None:
12722  oprot.writeFieldBegin('success', TType.LIST, 0)
12723  oprot.writeListBegin(TType.STRUCT, len(self.success))
12724  for iter366 in self.success:
12725  iter366.write(oprot)
12726  oprot.writeListEnd()
12727  oprot.writeFieldEnd()
12728  if self.e is not None:
12729  oprot.writeFieldBegin('e', TType.STRUCT, 1)
12730  self.e.write(oprot)
12731  oprot.writeFieldEnd()
12732  oprot.writeFieldStop()
12733  oprot.writeStructEnd()
12734 
12735  def validate(self):
12736  return
12737 
12738  def __repr__(self):
12739  L = ['%s=%r' % (key, value)
12740  for key, value in self.__dict__.items()]
12741  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12742 
12743  def __eq__(self, other):
12744  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12745 
12746  def __ne__(self, other):
12747  return not (self == other)
12748 all_structs.append(get_queries_info_result)
12749 get_queries_info_result.thrift_spec = (
12750  (0, TType.LIST, 'success', (TType.STRUCT, [TQueryInfo, None], False), None, ), # 0
12751  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
12752 )
12753 
12754 
12755 class set_leaf_info_args(object):
12756  """
12757  Attributes:
12758  - session
12759  - leaf_info
12760 
12761  """
12762 
12763 
12764  def __init__(self, session=None, leaf_info=None,):
12765  self.session = session
12766  self.leaf_info = leaf_info
12767 
12768  def read(self, iprot):
12769  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
12770  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
12771  return
12772  iprot.readStructBegin()
12773  while True:
12774  (fname, ftype, fid) = iprot.readFieldBegin()
12775  if ftype == TType.STOP:
12776  break
12777  if fid == 1:
12778  if ftype == TType.STRING:
12779  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
12780  else:
12781  iprot.skip(ftype)
12782  elif fid == 2:
12783  if ftype == TType.STRUCT:
12784  self.leaf_info = TLeafInfo()
12785  self.leaf_info.read(iprot)
12786  else:
12787  iprot.skip(ftype)
12788  else:
12789  iprot.skip(ftype)
12790  iprot.readFieldEnd()
12791  iprot.readStructEnd()
12792 
12793  def write(self, oprot):
12794  if oprot._fast_encode is not None and self.thrift_spec is not None:
12795  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
12796  return
12797  oprot.writeStructBegin('set_leaf_info_args')
12798  if self.session is not None:
12799  oprot.writeFieldBegin('session', TType.STRING, 1)
12800  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
12801  oprot.writeFieldEnd()
12802  if self.leaf_info is not None:
12803  oprot.writeFieldBegin('leaf_info', TType.STRUCT, 2)
12804  self.leaf_info.write(oprot)
12805  oprot.writeFieldEnd()
12806  oprot.writeFieldStop()
12807  oprot.writeStructEnd()
12808 
12809  def validate(self):
12810  return
12811 
12812  def __repr__(self):
12813  L = ['%s=%r' % (key, value)
12814  for key, value in self.__dict__.items()]
12815  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12816 
12817  def __eq__(self, other):
12818  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12819 
12820  def __ne__(self, other):
12821  return not (self == other)
12822 all_structs.append(set_leaf_info_args)
12823 set_leaf_info_args.thrift_spec = (
12824  None, # 0
12825  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
12826  (2, TType.STRUCT, 'leaf_info', [TLeafInfo, None], None, ), # 2
12827 )
12828 
12829 
12830 class set_leaf_info_result(object):
12831  """
12832  Attributes:
12833  - e
12834 
12835  """
12836 
12837 
12838  def __init__(self, e=None,):
12839  self.e = e
12840 
12841  def read(self, iprot):
12842  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
12843  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
12844  return
12845  iprot.readStructBegin()
12846  while True:
12847  (fname, ftype, fid) = iprot.readFieldBegin()
12848  if ftype == TType.STOP:
12849  break
12850  if fid == 1:
12851  if ftype == TType.STRUCT:
12852  self.e = TDBException.read(iprot)
12853  else:
12854  iprot.skip(ftype)
12855  else:
12856  iprot.skip(ftype)
12857  iprot.readFieldEnd()
12858  iprot.readStructEnd()
12859 
12860  def write(self, oprot):
12861  if oprot._fast_encode is not None and self.thrift_spec is not None:
12862  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
12863  return
12864  oprot.writeStructBegin('set_leaf_info_result')
12865  if self.e is not None:
12866  oprot.writeFieldBegin('e', TType.STRUCT, 1)
12867  self.e.write(oprot)
12868  oprot.writeFieldEnd()
12869  oprot.writeFieldStop()
12870  oprot.writeStructEnd()
12871 
12872  def validate(self):
12873  return
12874 
12875  def __repr__(self):
12876  L = ['%s=%r' % (key, value)
12877  for key, value in self.__dict__.items()]
12878  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12879 
12880  def __eq__(self, other):
12881  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12882 
12883  def __ne__(self, other):
12884  return not (self == other)
12885 all_structs.append(set_leaf_info_result)
12886 set_leaf_info_result.thrift_spec = (
12887  None, # 0
12888  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
12889 )
12890 
12891 
12892 class sql_execute_args(object):
12893  """
12894  Attributes:
12895  - session
12896  - query
12897  - column_format
12898  - nonce
12899  - first_n
12900  - at_most_n
12901 
12902  """
12903 
12904 
12905  def __init__(self, session=None, query=None, column_format=None, nonce=None, first_n=-1, at_most_n=-1,):
12906  self.session = session
12907  self.query = query
12908  self.column_format = column_format
12909  self.nonce = nonce
12910  self.first_n = first_n
12911  self.at_most_n = at_most_n
12912 
12913  def read(self, iprot):
12914  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
12915  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
12916  return
12917  iprot.readStructBegin()
12918  while True:
12919  (fname, ftype, fid) = iprot.readFieldBegin()
12920  if ftype == TType.STOP:
12921  break
12922  if fid == 1:
12923  if ftype == TType.STRING:
12924  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
12925  else:
12926  iprot.skip(ftype)
12927  elif fid == 2:
12928  if ftype == TType.STRING:
12929  self.query = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
12930  else:
12931  iprot.skip(ftype)
12932  elif fid == 3:
12933  if ftype == TType.BOOL:
12934  self.column_format = iprot.readBool()
12935  else:
12936  iprot.skip(ftype)
12937  elif fid == 4:
12938  if ftype == TType.STRING:
12939  self.nonce = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
12940  else:
12941  iprot.skip(ftype)
12942  elif fid == 5:
12943  if ftype == TType.I32:
12944  self.first_n = iprot.readI32()
12945  else:
12946  iprot.skip(ftype)
12947  elif fid == 6:
12948  if ftype == TType.I32:
12949  self.at_most_n = iprot.readI32()
12950  else:
12951  iprot.skip(ftype)
12952  else:
12953  iprot.skip(ftype)
12954  iprot.readFieldEnd()
12955  iprot.readStructEnd()
12956 
12957  def write(self, oprot):
12958  if oprot._fast_encode is not None and self.thrift_spec is not None:
12959  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
12960  return
12961  oprot.writeStructBegin('sql_execute_args')
12962  if self.session is not None:
12963  oprot.writeFieldBegin('session', TType.STRING, 1)
12964  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
12965  oprot.writeFieldEnd()
12966  if self.query is not None:
12967  oprot.writeFieldBegin('query', TType.STRING, 2)
12968  oprot.writeString(self.query.encode('utf-8') if sys.version_info[0] == 2 else self.query)
12969  oprot.writeFieldEnd()
12970  if self.column_format is not None:
12971  oprot.writeFieldBegin('column_format', TType.BOOL, 3)
12972  oprot.writeBool(self.column_format)
12973  oprot.writeFieldEnd()
12974  if self.nonce is not None:
12975  oprot.writeFieldBegin('nonce', TType.STRING, 4)
12976  oprot.writeString(self.nonce.encode('utf-8') if sys.version_info[0] == 2 else self.nonce)
12977  oprot.writeFieldEnd()
12978  if self.first_n is not None:
12979  oprot.writeFieldBegin('first_n', TType.I32, 5)
12980  oprot.writeI32(self.first_n)
12981  oprot.writeFieldEnd()
12982  if self.at_most_n is not None:
12983  oprot.writeFieldBegin('at_most_n', TType.I32, 6)
12984  oprot.writeI32(self.at_most_n)
12985  oprot.writeFieldEnd()
12986  oprot.writeFieldStop()
12987  oprot.writeStructEnd()
12988 
12989  def validate(self):
12990  return
12991 
12992  def __repr__(self):
12993  L = ['%s=%r' % (key, value)
12994  for key, value in self.__dict__.items()]
12995  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12996 
12997  def __eq__(self, other):
12998  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12999 
13000  def __ne__(self, other):
13001  return not (self == other)
13002 all_structs.append(sql_execute_args)
13003 sql_execute_args.thrift_spec = (
13004  None, # 0
13005  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
13006  (2, TType.STRING, 'query', 'UTF8', None, ), # 2
13007  (3, TType.BOOL, 'column_format', None, None, ), # 3
13008  (4, TType.STRING, 'nonce', 'UTF8', None, ), # 4
13009  (5, TType.I32, 'first_n', None, -1, ), # 5
13010  (6, TType.I32, 'at_most_n', None, -1, ), # 6
13011 )
13012 
13013 
13014 class sql_execute_result(object):
13015  """
13016  Attributes:
13017  - success
13018  - e
13019 
13020  """
13021 
13022 
13023  def __init__(self, success=None, e=None,):
13024  self.success = success
13025  self.e = e
13026 
13027  def read(self, iprot):
13028  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
13029  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
13030  return
13031  iprot.readStructBegin()
13032  while True:
13033  (fname, ftype, fid) = iprot.readFieldBegin()
13034  if ftype == TType.STOP:
13035  break
13036  if fid == 0:
13037  if ftype == TType.STRUCT:
13038  self.success = TQueryResult()
13039  self.success.read(iprot)
13040  else:
13041  iprot.skip(ftype)
13042  elif fid == 1:
13043  if ftype == TType.STRUCT:
13044  self.e = TDBException.read(iprot)
13045  else:
13046  iprot.skip(ftype)
13047  else:
13048  iprot.skip(ftype)
13049  iprot.readFieldEnd()
13050  iprot.readStructEnd()
13051 
13052  def write(self, oprot):
13053  if oprot._fast_encode is not None and self.thrift_spec is not None:
13054  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
13055  return
13056  oprot.writeStructBegin('sql_execute_result')
13057  if self.success is not None:
13058  oprot.writeFieldBegin('success', TType.STRUCT, 0)
13059  self.success.write(oprot)
13060  oprot.writeFieldEnd()
13061  if self.e is not None:
13062  oprot.writeFieldBegin('e', TType.STRUCT, 1)
13063  self.e.write(oprot)
13064  oprot.writeFieldEnd()
13065  oprot.writeFieldStop()
13066  oprot.writeStructEnd()
13067 
13068  def validate(self):
13069  return
13070 
13071  def __repr__(self):
13072  L = ['%s=%r' % (key, value)
13073  for key, value in self.__dict__.items()]
13074  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13075 
13076  def __eq__(self, other):
13077  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13078 
13079  def __ne__(self, other):
13080  return not (self == other)
13081 all_structs.append(sql_execute_result)
13082 sql_execute_result.thrift_spec = (
13083  (0, TType.STRUCT, 'success', [TQueryResult, None], None, ), # 0
13084  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
13085 )
13086 
13087 
13088 class sql_execute_df_args(object):
13089  """
13090  Attributes:
13091  - session
13092  - query
13093  - device_type
13094  - device_id
13095  - first_n
13096  - transport_method
13097 
13098  """
13099 
13100 
13101  def __init__(self, session=None, query=None, device_type=None, device_id=0, first_n=-1, transport_method=None,):
13102  self.session = session
13103  self.query = query
13104  self.device_type = device_type
13105  self.device_id = device_id
13106  self.first_n = first_n
13107  self.transport_method = transport_method
13108 
13109  def read(self, iprot):
13110  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
13111  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
13112  return
13113  iprot.readStructBegin()
13114  while True:
13115  (fname, ftype, fid) = iprot.readFieldBegin()
13116  if ftype == TType.STOP:
13117  break
13118  if fid == 1:
13119  if ftype == TType.STRING:
13120  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
13121  else:
13122  iprot.skip(ftype)
13123  elif fid == 2:
13124  if ftype == TType.STRING:
13125  self.query = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
13126  else:
13127  iprot.skip(ftype)
13128  elif fid == 3:
13129  if ftype == TType.I32:
13130  self.device_type = iprot.readI32()
13131  else:
13132  iprot.skip(ftype)
13133  elif fid == 4:
13134  if ftype == TType.I32:
13135  self.device_id = iprot.readI32()
13136  else:
13137  iprot.skip(ftype)
13138  elif fid == 5:
13139  if ftype == TType.I32:
13140  self.first_n = iprot.readI32()
13141  else:
13142  iprot.skip(ftype)
13143  elif fid == 6:
13144  if ftype == TType.I32:
13145  self.transport_method = iprot.readI32()
13146  else:
13147  iprot.skip(ftype)
13148  else:
13149  iprot.skip(ftype)
13150  iprot.readFieldEnd()
13151  iprot.readStructEnd()
13152 
13153  def write(self, oprot):
13154  if oprot._fast_encode is not None and self.thrift_spec is not None:
13155  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
13156  return
13157  oprot.writeStructBegin('sql_execute_df_args')
13158  if self.session is not None:
13159  oprot.writeFieldBegin('session', TType.STRING, 1)
13160  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
13161  oprot.writeFieldEnd()
13162  if self.query is not None:
13163  oprot.writeFieldBegin('query', TType.STRING, 2)
13164  oprot.writeString(self.query.encode('utf-8') if sys.version_info[0] == 2 else self.query)
13165  oprot.writeFieldEnd()
13166  if self.device_type is not None:
13167  oprot.writeFieldBegin('device_type', TType.I32, 3)
13168  oprot.writeI32(self.device_type)
13169  oprot.writeFieldEnd()
13170  if self.device_id is not None:
13171  oprot.writeFieldBegin('device_id', TType.I32, 4)
13172  oprot.writeI32(self.device_id)
13173  oprot.writeFieldEnd()
13174  if self.first_n is not None:
13175  oprot.writeFieldBegin('first_n', TType.I32, 5)
13176  oprot.writeI32(self.first_n)
13177  oprot.writeFieldEnd()
13178  if self.transport_method is not None:
13179  oprot.writeFieldBegin('transport_method', TType.I32, 6)
13180  oprot.writeI32(self.transport_method)
13181  oprot.writeFieldEnd()
13182  oprot.writeFieldStop()
13183  oprot.writeStructEnd()
13184 
13185  def validate(self):
13186  return
13187 
13188  def __repr__(self):
13189  L = ['%s=%r' % (key, value)
13190  for key, value in self.__dict__.items()]
13191  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13192 
13193  def __eq__(self, other):
13194  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13195 
13196  def __ne__(self, other):
13197  return not (self == other)
13198 all_structs.append(sql_execute_df_args)
13199 sql_execute_df_args.thrift_spec = (
13200  None, # 0
13201  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
13202  (2, TType.STRING, 'query', 'UTF8', None, ), # 2
13203  (3, TType.I32, 'device_type', None, None, ), # 3
13204  (4, TType.I32, 'device_id', None, 0, ), # 4
13205  (5, TType.I32, 'first_n', None, -1, ), # 5
13206  (6, TType.I32, 'transport_method', None, None, ), # 6
13207 )
13208 
13209 
13211  """
13212  Attributes:
13213  - success
13214  - e
13215 
13216  """
13217 
13218 
13219  def __init__(self, success=None, e=None,):
13220  self.success = success
13221  self.e = e
13222 
13223  def read(self, iprot):
13224  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
13225  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
13226  return
13227  iprot.readStructBegin()
13228  while True:
13229  (fname, ftype, fid) = iprot.readFieldBegin()
13230  if ftype == TType.STOP:
13231  break
13232  if fid == 0:
13233  if ftype == TType.STRUCT:
13234  self.success = TDataFrame()
13235  self.success.read(iprot)
13236  else:
13237  iprot.skip(ftype)
13238  elif fid == 1:
13239  if ftype == TType.STRUCT:
13240  self.e = TDBException.read(iprot)
13241  else:
13242  iprot.skip(ftype)
13243  else:
13244  iprot.skip(ftype)
13245  iprot.readFieldEnd()
13246  iprot.readStructEnd()
13247 
13248  def write(self, oprot):
13249  if oprot._fast_encode is not None and self.thrift_spec is not None:
13250  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
13251  return
13252  oprot.writeStructBegin('sql_execute_df_result')
13253  if self.success is not None:
13254  oprot.writeFieldBegin('success', TType.STRUCT, 0)
13255  self.success.write(oprot)
13256  oprot.writeFieldEnd()
13257  if self.e is not None:
13258  oprot.writeFieldBegin('e', TType.STRUCT, 1)
13259  self.e.write(oprot)
13260  oprot.writeFieldEnd()
13261  oprot.writeFieldStop()
13262  oprot.writeStructEnd()
13263 
13264  def validate(self):
13265  return
13266 
13267  def __repr__(self):
13268  L = ['%s=%r' % (key, value)
13269  for key, value in self.__dict__.items()]
13270  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13271 
13272  def __eq__(self, other):
13273  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13274 
13275  def __ne__(self, other):
13276  return not (self == other)
13277 all_structs.append(sql_execute_df_result)
13278 sql_execute_df_result.thrift_spec = (
13279  (0, TType.STRUCT, 'success', [TDataFrame, None], None, ), # 0
13280  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
13281 )
13282 
13283 
13284 class sql_execute_gdf_args(object):
13285  """
13286  Attributes:
13287  - session
13288  - query
13289  - device_id
13290  - first_n
13291 
13292  """
13293 
13294 
13295  def __init__(self, session=None, query=None, device_id=0, first_n=-1,):
13296  self.session = session
13297  self.query = query
13298  self.device_id = device_id
13299  self.first_n = first_n
13300 
13301  def read(self, iprot):
13302  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
13303  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
13304  return
13305  iprot.readStructBegin()
13306  while True:
13307  (fname, ftype, fid) = iprot.readFieldBegin()
13308  if ftype == TType.STOP:
13309  break
13310  if fid == 1:
13311  if ftype == TType.STRING:
13312  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
13313  else:
13314  iprot.skip(ftype)
13315  elif fid == 2:
13316  if ftype == TType.STRING:
13317  self.query = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
13318  else:
13319  iprot.skip(ftype)
13320  elif fid == 3:
13321  if ftype == TType.I32:
13322  self.device_id = iprot.readI32()
13323  else:
13324  iprot.skip(ftype)
13325  elif fid == 4:
13326  if ftype == TType.I32:
13327  self.first_n = iprot.readI32()
13328  else:
13329  iprot.skip(ftype)
13330  else:
13331  iprot.skip(ftype)
13332  iprot.readFieldEnd()
13333  iprot.readStructEnd()
13334 
13335  def write(self, oprot):
13336  if oprot._fast_encode is not None and self.thrift_spec is not None:
13337  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
13338  return
13339  oprot.writeStructBegin('sql_execute_gdf_args')
13340  if self.session is not None:
13341  oprot.writeFieldBegin('session', TType.STRING, 1)
13342  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
13343  oprot.writeFieldEnd()
13344  if self.query is not None:
13345  oprot.writeFieldBegin('query', TType.STRING, 2)
13346  oprot.writeString(self.query.encode('utf-8') if sys.version_info[0] == 2 else self.query)
13347  oprot.writeFieldEnd()
13348  if self.device_id is not None:
13349  oprot.writeFieldBegin('device_id', TType.I32, 3)
13350  oprot.writeI32(self.device_id)
13351  oprot.writeFieldEnd()
13352  if self.first_n is not None:
13353  oprot.writeFieldBegin('first_n', TType.I32, 4)
13354  oprot.writeI32(self.first_n)
13355  oprot.writeFieldEnd()
13356  oprot.writeFieldStop()
13357  oprot.writeStructEnd()
13358 
13359  def validate(self):
13360  return
13361 
13362  def __repr__(self):
13363  L = ['%s=%r' % (key, value)
13364  for key, value in self.__dict__.items()]
13365  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13366 
13367  def __eq__(self, other):
13368  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13369 
13370  def __ne__(self, other):
13371  return not (self == other)
13372 all_structs.append(sql_execute_gdf_args)
13373 sql_execute_gdf_args.thrift_spec = (
13374  None, # 0
13375  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
13376  (2, TType.STRING, 'query', 'UTF8', None, ), # 2
13377  (3, TType.I32, 'device_id', None, 0, ), # 3
13378  (4, TType.I32, 'first_n', None, -1, ), # 4
13379 )
13380 
13381 
13383  """
13384  Attributes:
13385  - success
13386  - e
13387 
13388  """
13389 
13390 
13391  def __init__(self, success=None, e=None,):
13392  self.success = success
13393  self.e = e
13394 
13395  def read(self, iprot):
13396  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
13397  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
13398  return
13399  iprot.readStructBegin()
13400  while True:
13401  (fname, ftype, fid) = iprot.readFieldBegin()
13402  if ftype == TType.STOP:
13403  break
13404  if fid == 0:
13405  if ftype == TType.STRUCT:
13406  self.success = TDataFrame()
13407  self.success.read(iprot)
13408  else:
13409  iprot.skip(ftype)
13410  elif fid == 1:
13411  if ftype == TType.STRUCT:
13412  self.e = TDBException.read(iprot)
13413  else:
13414  iprot.skip(ftype)
13415  else:
13416  iprot.skip(ftype)
13417  iprot.readFieldEnd()
13418  iprot.readStructEnd()
13419 
13420  def write(self, oprot):
13421  if oprot._fast_encode is not None and self.thrift_spec is not None:
13422  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
13423  return
13424  oprot.writeStructBegin('sql_execute_gdf_result')
13425  if self.success is not None:
13426  oprot.writeFieldBegin('success', TType.STRUCT, 0)
13427  self.success.write(oprot)
13428  oprot.writeFieldEnd()
13429  if self.e is not None:
13430  oprot.writeFieldBegin('e', TType.STRUCT, 1)
13431  self.e.write(oprot)
13432  oprot.writeFieldEnd()
13433  oprot.writeFieldStop()
13434  oprot.writeStructEnd()
13435 
13436  def validate(self):
13437  return
13438 
13439  def __repr__(self):
13440  L = ['%s=%r' % (key, value)
13441  for key, value in self.__dict__.items()]
13442  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13443 
13444  def __eq__(self, other):
13445  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13446 
13447  def __ne__(self, other):
13448  return not (self == other)
13449 all_structs.append(sql_execute_gdf_result)
13450 sql_execute_gdf_result.thrift_spec = (
13451  (0, TType.STRUCT, 'success', [TDataFrame, None], None, ), # 0
13452  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
13453 )
13454 
13455 
13456 class deallocate_df_args(object):
13457  """
13458  Attributes:
13459  - session
13460  - df
13461  - device_type
13462  - device_id
13463 
13464  """
13465 
13466 
13467  def __init__(self, session=None, df=None, device_type=None, device_id=0,):
13468  self.session = session
13469  self.df = df
13470  self.device_type = device_type
13471  self.device_id = device_id
13472 
13473  def read(self, iprot):
13474  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
13475  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
13476  return
13477  iprot.readStructBegin()
13478  while True:
13479  (fname, ftype, fid) = iprot.readFieldBegin()
13480  if ftype == TType.STOP:
13481  break
13482  if fid == 1:
13483  if ftype == TType.STRING:
13484  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
13485  else:
13486  iprot.skip(ftype)
13487  elif fid == 2:
13488  if ftype == TType.STRUCT:
13489  self.df = TDataFrame()
13490  self.df.read(iprot)
13491  else:
13492  iprot.skip(ftype)
13493  elif fid == 3:
13494  if ftype == TType.I32:
13495  self.device_type = iprot.readI32()
13496  else:
13497  iprot.skip(ftype)
13498  elif fid == 4:
13499  if ftype == TType.I32:
13500  self.device_id = iprot.readI32()
13501  else:
13502  iprot.skip(ftype)
13503  else:
13504  iprot.skip(ftype)
13505  iprot.readFieldEnd()
13506  iprot.readStructEnd()
13507 
13508  def write(self, oprot):
13509  if oprot._fast_encode is not None and self.thrift_spec is not None:
13510  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
13511  return
13512  oprot.writeStructBegin('deallocate_df_args')
13513  if self.session is not None:
13514  oprot.writeFieldBegin('session', TType.STRING, 1)
13515  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
13516  oprot.writeFieldEnd()
13517  if self.df is not None:
13518  oprot.writeFieldBegin('df', TType.STRUCT, 2)
13519  self.df.write(oprot)
13520  oprot.writeFieldEnd()
13521  if self.device_type is not None:
13522  oprot.writeFieldBegin('device_type', TType.I32, 3)
13523  oprot.writeI32(self.device_type)
13524  oprot.writeFieldEnd()
13525  if self.device_id is not None:
13526  oprot.writeFieldBegin('device_id', TType.I32, 4)
13527  oprot.writeI32(self.device_id)
13528  oprot.writeFieldEnd()
13529  oprot.writeFieldStop()
13530  oprot.writeStructEnd()
13531 
13532  def validate(self):
13533  return
13534 
13535  def __repr__(self):
13536  L = ['%s=%r' % (key, value)
13537  for key, value in self.__dict__.items()]
13538  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13539 
13540  def __eq__(self, other):
13541  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13542 
13543  def __ne__(self, other):
13544  return not (self == other)
13545 all_structs.append(deallocate_df_args)
13546 deallocate_df_args.thrift_spec = (
13547  None, # 0
13548  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
13549  (2, TType.STRUCT, 'df', [TDataFrame, None], None, ), # 2
13550  (3, TType.I32, 'device_type', None, None, ), # 3
13551  (4, TType.I32, 'device_id', None, 0, ), # 4
13552 )
13553 
13554 
13555 class deallocate_df_result(object):
13556  """
13557  Attributes:
13558  - e
13559 
13560  """
13561 
13562 
13563  def __init__(self, e=None,):
13564  self.e = e
13565 
13566  def read(self, iprot):
13567  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
13568  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
13569  return
13570  iprot.readStructBegin()
13571  while True:
13572  (fname, ftype, fid) = iprot.readFieldBegin()
13573  if ftype == TType.STOP:
13574  break
13575  if fid == 1:
13576  if ftype == TType.STRUCT:
13577  self.e = TDBException.read(iprot)
13578  else:
13579  iprot.skip(ftype)
13580  else:
13581  iprot.skip(ftype)
13582  iprot.readFieldEnd()
13583  iprot.readStructEnd()
13584 
13585  def write(self, oprot):
13586  if oprot._fast_encode is not None and self.thrift_spec is not None:
13587  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
13588  return
13589  oprot.writeStructBegin('deallocate_df_result')
13590  if self.e is not None:
13591  oprot.writeFieldBegin('e', TType.STRUCT, 1)
13592  self.e.write(oprot)
13593  oprot.writeFieldEnd()
13594  oprot.writeFieldStop()
13595  oprot.writeStructEnd()
13596 
13597  def validate(self):
13598  return
13599 
13600  def __repr__(self):
13601  L = ['%s=%r' % (key, value)
13602  for key, value in self.__dict__.items()]
13603  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13604 
13605  def __eq__(self, other):
13606  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13607 
13608  def __ne__(self, other):
13609  return not (self == other)
13610 all_structs.append(deallocate_df_result)
13611 deallocate_df_result.thrift_spec = (
13612  None, # 0
13613  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
13614 )
13615 
13616 
13617 class interrupt_args(object):
13618  """
13619  Attributes:
13620  - query_session
13621  - interrupt_session
13622 
13623  """
13624 
13625 
13626  def __init__(self, query_session=None, interrupt_session=None,):
13627  self.query_session = query_session
13628  self.interrupt_session = interrupt_session
13629 
13630  def read(self, iprot):
13631  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
13632  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
13633  return
13634  iprot.readStructBegin()
13635  while True:
13636  (fname, ftype, fid) = iprot.readFieldBegin()
13637  if ftype == TType.STOP:
13638  break
13639  if fid == 1:
13640  if ftype == TType.STRING:
13641  self.query_session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
13642  else:
13643  iprot.skip(ftype)
13644  elif fid == 2:
13645  if ftype == TType.STRING:
13646  self.interrupt_session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
13647  else:
13648  iprot.skip(ftype)
13649  else:
13650  iprot.skip(ftype)
13651  iprot.readFieldEnd()
13652  iprot.readStructEnd()
13653 
13654  def write(self, oprot):
13655  if oprot._fast_encode is not None and self.thrift_spec is not None:
13656  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
13657  return
13658  oprot.writeStructBegin('interrupt_args')
13659  if self.query_session is not None:
13660  oprot.writeFieldBegin('query_session', TType.STRING, 1)
13661  oprot.writeString(self.query_session.encode('utf-8') if sys.version_info[0] == 2 else self.query_session)
13662  oprot.writeFieldEnd()
13663  if self.interrupt_session is not None:
13664  oprot.writeFieldBegin('interrupt_session', TType.STRING, 2)
13665  oprot.writeString(self.interrupt_session.encode('utf-8') if sys.version_info[0] == 2 else self.interrupt_session)
13666  oprot.writeFieldEnd()
13667  oprot.writeFieldStop()
13668  oprot.writeStructEnd()
13669 
13670  def validate(self):
13671  return
13672 
13673  def __repr__(self):
13674  L = ['%s=%r' % (key, value)
13675  for key, value in self.__dict__.items()]
13676  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13677 
13678  def __eq__(self, other):
13679  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13680 
13681  def __ne__(self, other):
13682  return not (self == other)
13683 all_structs.append(interrupt_args)
13684 interrupt_args.thrift_spec = (
13685  None, # 0
13686  (1, TType.STRING, 'query_session', 'UTF8', None, ), # 1
13687  (2, TType.STRING, 'interrupt_session', 'UTF8', None, ), # 2
13688 )
13689 
13690 
13691 class interrupt_result(object):
13692  """
13693  Attributes:
13694  - e
13695 
13696  """
13697 
13698 
13699  def __init__(self, e=None,):
13700  self.e = e
13701 
13702  def read(self, iprot):
13703  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
13704  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
13705  return
13706  iprot.readStructBegin()
13707  while True:
13708  (fname, ftype, fid) = iprot.readFieldBegin()
13709  if ftype == TType.STOP:
13710  break
13711  if fid == 1:
13712  if ftype == TType.STRUCT:
13713  self.e = TDBException.read(iprot)
13714  else:
13715  iprot.skip(ftype)
13716  else:
13717  iprot.skip(ftype)
13718  iprot.readFieldEnd()
13719  iprot.readStructEnd()
13720 
13721  def write(self, oprot):
13722  if oprot._fast_encode is not None and self.thrift_spec is not None:
13723  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
13724  return
13725  oprot.writeStructBegin('interrupt_result')
13726  if self.e is not None:
13727  oprot.writeFieldBegin('e', TType.STRUCT, 1)
13728  self.e.write(oprot)
13729  oprot.writeFieldEnd()
13730  oprot.writeFieldStop()
13731  oprot.writeStructEnd()
13732 
13733  def validate(self):
13734  return
13735 
13736  def __repr__(self):
13737  L = ['%s=%r' % (key, value)
13738  for key, value in self.__dict__.items()]
13739  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13740 
13741  def __eq__(self, other):
13742  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13743 
13744  def __ne__(self, other):
13745  return not (self == other)
13746 all_structs.append(interrupt_result)
13747 interrupt_result.thrift_spec = (
13748  None, # 0
13749  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
13750 )
13751 
13752 
13753 class sql_validate_args(object):
13754  """
13755  Attributes:
13756  - session
13757  - query
13758 
13759  """
13760 
13761 
13762  def __init__(self, session=None, query=None,):
13763  self.session = session
13764  self.query = query
13765 
13766  def read(self, iprot):
13767  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
13768  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
13769  return
13770  iprot.readStructBegin()
13771  while True:
13772  (fname, ftype, fid) = iprot.readFieldBegin()
13773  if ftype == TType.STOP:
13774  break
13775  if fid == 1:
13776  if ftype == TType.STRING:
13777  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
13778  else:
13779  iprot.skip(ftype)
13780  elif fid == 2:
13781  if ftype == TType.STRING:
13782  self.query = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
13783  else:
13784  iprot.skip(ftype)
13785  else:
13786  iprot.skip(ftype)
13787  iprot.readFieldEnd()
13788  iprot.readStructEnd()
13789 
13790  def write(self, oprot):
13791  if oprot._fast_encode is not None and self.thrift_spec is not None:
13792  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
13793  return
13794  oprot.writeStructBegin('sql_validate_args')
13795  if self.session is not None:
13796  oprot.writeFieldBegin('session', TType.STRING, 1)
13797  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
13798  oprot.writeFieldEnd()
13799  if self.query is not None:
13800  oprot.writeFieldBegin('query', TType.STRING, 2)
13801  oprot.writeString(self.query.encode('utf-8') if sys.version_info[0] == 2 else self.query)
13802  oprot.writeFieldEnd()
13803  oprot.writeFieldStop()
13804  oprot.writeStructEnd()
13805 
13806  def validate(self):
13807  return
13808 
13809  def __repr__(self):
13810  L = ['%s=%r' % (key, value)
13811  for key, value in self.__dict__.items()]
13812  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13813 
13814  def __eq__(self, other):
13815  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13816 
13817  def __ne__(self, other):
13818  return not (self == other)
13819 all_structs.append(sql_validate_args)
13820 sql_validate_args.thrift_spec = (
13821  None, # 0
13822  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
13823  (2, TType.STRING, 'query', 'UTF8', None, ), # 2
13824 )
13825 
13826 
13827 class sql_validate_result(object):
13828  """
13829  Attributes:
13830  - success
13831  - e
13832 
13833  """
13834 
13835 
13836  def __init__(self, success=None, e=None,):
13837  self.success = success
13838  self.e = e
13839 
13840  def read(self, iprot):
13841  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
13842  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
13843  return
13844  iprot.readStructBegin()
13845  while True:
13846  (fname, ftype, fid) = iprot.readFieldBegin()
13847  if ftype == TType.STOP:
13848  break
13849  if fid == 0:
13850  if ftype == TType.LIST:
13851  self.success = []
13852  (_etype370, _size367) = iprot.readListBegin()
13853  for _i371 in range(_size367):
13854  _elem372 = TColumnType()
13855  _elem372.read(iprot)
13856  self.success.append(_elem372)
13857  iprot.readListEnd()
13858  else:
13859  iprot.skip(ftype)
13860  elif fid == 1:
13861  if ftype == TType.STRUCT:
13862  self.e = TDBException.read(iprot)
13863  else:
13864  iprot.skip(ftype)
13865  else:
13866  iprot.skip(ftype)
13867  iprot.readFieldEnd()
13868  iprot.readStructEnd()
13869 
13870  def write(self, oprot):
13871  if oprot._fast_encode is not None and self.thrift_spec is not None:
13872  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
13873  return
13874  oprot.writeStructBegin('sql_validate_result')
13875  if self.success is not None:
13876  oprot.writeFieldBegin('success', TType.LIST, 0)
13877  oprot.writeListBegin(TType.STRUCT, len(self.success))
13878  for iter373 in self.success:
13879  iter373.write(oprot)
13880  oprot.writeListEnd()
13881  oprot.writeFieldEnd()
13882  if self.e is not None:
13883  oprot.writeFieldBegin('e', TType.STRUCT, 1)
13884  self.e.write(oprot)
13885  oprot.writeFieldEnd()
13886  oprot.writeFieldStop()
13887  oprot.writeStructEnd()
13888 
13889  def validate(self):
13890  return
13891 
13892  def __repr__(self):
13893  L = ['%s=%r' % (key, value)
13894  for key, value in self.__dict__.items()]
13895  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13896 
13897  def __eq__(self, other):
13898  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13899 
13900  def __ne__(self, other):
13901  return not (self == other)
13902 all_structs.append(sql_validate_result)
13903 sql_validate_result.thrift_spec = (
13904  (0, TType.LIST, 'success', (TType.STRUCT, [TColumnType, None], False), None, ), # 0
13905  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
13906 )
13907 
13908 
13910  """
13911  Attributes:
13912  - session
13913  - sql
13914  - cursor
13915 
13916  """
13917 
13918 
13919  def __init__(self, session=None, sql=None, cursor=None,):
13920  self.session = session
13921  self.sql = sql
13922  self.cursor = cursor
13923 
13924  def read(self, iprot):
13925  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
13926  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
13927  return
13928  iprot.readStructBegin()
13929  while True:
13930  (fname, ftype, fid) = iprot.readFieldBegin()
13931  if ftype == TType.STOP:
13932  break
13933  if fid == 1:
13934  if ftype == TType.STRING:
13935  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
13936  else:
13937  iprot.skip(ftype)
13938  elif fid == 2:
13939  if ftype == TType.STRING:
13940  self.sql = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
13941  else:
13942  iprot.skip(ftype)
13943  elif fid == 3:
13944  if ftype == TType.I32:
13945  self.cursor = iprot.readI32()
13946  else:
13947  iprot.skip(ftype)
13948  else:
13949  iprot.skip(ftype)
13950  iprot.readFieldEnd()
13951  iprot.readStructEnd()
13952 
13953  def write(self, oprot):
13954  if oprot._fast_encode is not None and self.thrift_spec is not None:
13955  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
13956  return
13957  oprot.writeStructBegin('get_completion_hints_args')
13958  if self.session is not None:
13959  oprot.writeFieldBegin('session', TType.STRING, 1)
13960  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
13961  oprot.writeFieldEnd()
13962  if self.sql is not None:
13963  oprot.writeFieldBegin('sql', TType.STRING, 2)
13964  oprot.writeString(self.sql.encode('utf-8') if sys.version_info[0] == 2 else self.sql)
13965  oprot.writeFieldEnd()
13966  if self.cursor is not None:
13967  oprot.writeFieldBegin('cursor', TType.I32, 3)
13968  oprot.writeI32(self.cursor)
13969  oprot.writeFieldEnd()
13970  oprot.writeFieldStop()
13971  oprot.writeStructEnd()
13972 
13973  def validate(self):
13974  return
13975 
13976  def __repr__(self):
13977  L = ['%s=%r' % (key, value)
13978  for key, value in self.__dict__.items()]
13979  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13980 
13981  def __eq__(self, other):
13982  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13983 
13984  def __ne__(self, other):
13985  return not (self == other)
13986 all_structs.append(get_completion_hints_args)
13987 get_completion_hints_args.thrift_spec = (
13988  None, # 0
13989  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
13990  (2, TType.STRING, 'sql', 'UTF8', None, ), # 2
13991  (3, TType.I32, 'cursor', None, None, ), # 3
13992 )
13993 
13994 
13996  """
13997  Attributes:
13998  - success
13999  - e
14000 
14001  """
14002 
14003 
14004  def __init__(self, success=None, e=None,):
14005  self.success = success
14006  self.e = e
14007 
14008  def read(self, iprot):
14009  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
14010  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
14011  return
14012  iprot.readStructBegin()
14013  while True:
14014  (fname, ftype, fid) = iprot.readFieldBegin()
14015  if ftype == TType.STOP:
14016  break
14017  if fid == 0:
14018  if ftype == TType.LIST:
14019  self.success = []
14020  (_etype377, _size374) = iprot.readListBegin()
14021  for _i378 in range(_size374):
14023  _elem379.read(iprot)
14024  self.success.append(_elem379)
14025  iprot.readListEnd()
14026  else:
14027  iprot.skip(ftype)
14028  elif fid == 1:
14029  if ftype == TType.STRUCT:
14030  self.e = TDBException.read(iprot)
14031  else:
14032  iprot.skip(ftype)
14033  else:
14034  iprot.skip(ftype)
14035  iprot.readFieldEnd()
14036  iprot.readStructEnd()
14037 
14038  def write(self, oprot):
14039  if oprot._fast_encode is not None and self.thrift_spec is not None:
14040  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
14041  return
14042  oprot.writeStructBegin('get_completion_hints_result')
14043  if self.success is not None:
14044  oprot.writeFieldBegin('success', TType.LIST, 0)
14045  oprot.writeListBegin(TType.STRUCT, len(self.success))
14046  for iter380 in self.success:
14047  iter380.write(oprot)
14048  oprot.writeListEnd()
14049  oprot.writeFieldEnd()
14050  if self.e is not None:
14051  oprot.writeFieldBegin('e', TType.STRUCT, 1)
14052  self.e.write(oprot)
14053  oprot.writeFieldEnd()
14054  oprot.writeFieldStop()
14055  oprot.writeStructEnd()
14056 
14057  def validate(self):
14058  return
14059 
14060  def __repr__(self):
14061  L = ['%s=%r' % (key, value)
14062  for key, value in self.__dict__.items()]
14063  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14064 
14065  def __eq__(self, other):
14066  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14067 
14068  def __ne__(self, other):
14069  return not (self == other)
14070 all_structs.append(get_completion_hints_result)
14071 get_completion_hints_result.thrift_spec = (
14072  (0, TType.LIST, 'success', (TType.STRUCT, [heavydb.completion_hints.ttypes.TCompletionHint, None], False), None, ), # 0
14073  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
14074 )
14075 
14076 
14078  """
14079  Attributes:
14080  - session
14081  - mode
14082 
14083  """
14084 
14085 
14086  def __init__(self, session=None, mode=None,):
14087  self.session = session
14088  self.mode = mode
14089 
14090  def read(self, iprot):
14091  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
14092  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
14093  return
14094  iprot.readStructBegin()
14095  while True:
14096  (fname, ftype, fid) = iprot.readFieldBegin()
14097  if ftype == TType.STOP:
14098  break
14099  if fid == 1:
14100  if ftype == TType.STRING:
14101  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
14102  else:
14103  iprot.skip(ftype)
14104  elif fid == 2:
14105  if ftype == TType.I32:
14106  self.mode = iprot.readI32()
14107  else:
14108  iprot.skip(ftype)
14109  else:
14110  iprot.skip(ftype)
14111  iprot.readFieldEnd()
14112  iprot.readStructEnd()
14113 
14114  def write(self, oprot):
14115  if oprot._fast_encode is not None and self.thrift_spec is not None:
14116  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
14117  return
14118  oprot.writeStructBegin('set_execution_mode_args')
14119  if self.session is not None:
14120  oprot.writeFieldBegin('session', TType.STRING, 1)
14121  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
14122  oprot.writeFieldEnd()
14123  if self.mode is not None:
14124  oprot.writeFieldBegin('mode', TType.I32, 2)
14125  oprot.writeI32(self.mode)
14126  oprot.writeFieldEnd()
14127  oprot.writeFieldStop()
14128  oprot.writeStructEnd()
14129 
14130  def validate(self):
14131  return
14132 
14133  def __repr__(self):
14134  L = ['%s=%r' % (key, value)
14135  for key, value in self.__dict__.items()]
14136  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14137 
14138  def __eq__(self, other):
14139  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14140 
14141  def __ne__(self, other):
14142  return not (self == other)
14143 all_structs.append(set_execution_mode_args)
14144 set_execution_mode_args.thrift_spec = (
14145  None, # 0
14146  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
14147  (2, TType.I32, 'mode', None, None, ), # 2
14148 )
14149 
14150 
14152  """
14153  Attributes:
14154  - e
14155 
14156  """
14157 
14158 
14159  def __init__(self, e=None,):
14160  self.e = e
14161 
14162  def read(self, iprot):
14163  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
14164  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
14165  return
14166  iprot.readStructBegin()
14167  while True:
14168  (fname, ftype, fid) = iprot.readFieldBegin()
14169  if ftype == TType.STOP:
14170  break
14171  if fid == 1:
14172  if ftype == TType.STRUCT:
14173  self.e = TDBException.read(iprot)
14174  else:
14175  iprot.skip(ftype)
14176  else:
14177  iprot.skip(ftype)
14178  iprot.readFieldEnd()
14179  iprot.readStructEnd()
14180 
14181  def write(self, oprot):
14182  if oprot._fast_encode is not None and self.thrift_spec is not None:
14183  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
14184  return
14185  oprot.writeStructBegin('set_execution_mode_result')
14186  if self.e is not None:
14187  oprot.writeFieldBegin('e', TType.STRUCT, 1)
14188  self.e.write(oprot)
14189  oprot.writeFieldEnd()
14190  oprot.writeFieldStop()
14191  oprot.writeStructEnd()
14192 
14193  def validate(self):
14194  return
14195 
14196  def __repr__(self):
14197  L = ['%s=%r' % (key, value)
14198  for key, value in self.__dict__.items()]
14199  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14200 
14201  def __eq__(self, other):
14202  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14203 
14204  def __ne__(self, other):
14205  return not (self == other)
14206 all_structs.append(set_execution_mode_result)
14207 set_execution_mode_result.thrift_spec = (
14208  None, # 0
14209  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
14210 )
14211 
14212 
14213 class render_vega_args(object):
14214  """
14215  Attributes:
14216  - session
14217  - widget_id
14218  - vega_json
14219  - compression_level
14220  - nonce
14221 
14222  """
14223 
14224 
14225  def __init__(self, session=None, widget_id=None, vega_json=None, compression_level=None, nonce=None,):
14226  self.session = session
14227  self.widget_id = widget_id
14228  self.vega_json = vega_json
14229  self.compression_level = compression_level
14230  self.nonce = nonce
14231 
14232  def read(self, iprot):
14233  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
14234  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
14235  return
14236  iprot.readStructBegin()
14237  while True:
14238  (fname, ftype, fid) = iprot.readFieldBegin()
14239  if ftype == TType.STOP:
14240  break
14241  if fid == 1:
14242  if ftype == TType.STRING:
14243  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
14244  else:
14245  iprot.skip(ftype)
14246  elif fid == 2:
14247  if ftype == TType.I64:
14248  self.widget_id = iprot.readI64()
14249  else:
14250  iprot.skip(ftype)
14251  elif fid == 3:
14252  if ftype == TType.STRING:
14253  self.vega_json = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
14254  else:
14255  iprot.skip(ftype)
14256  elif fid == 4:
14257  if ftype == TType.I32:
14258  self.compression_level = iprot.readI32()
14259  else:
14260  iprot.skip(ftype)
14261  elif fid == 5:
14262  if ftype == TType.STRING:
14263  self.nonce = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
14264  else:
14265  iprot.skip(ftype)
14266  else:
14267  iprot.skip(ftype)
14268  iprot.readFieldEnd()
14269  iprot.readStructEnd()
14270 
14271  def write(self, oprot):
14272  if oprot._fast_encode is not None and self.thrift_spec is not None:
14273  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
14274  return
14275  oprot.writeStructBegin('render_vega_args')
14276  if self.session is not None:
14277  oprot.writeFieldBegin('session', TType.STRING, 1)
14278  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
14279  oprot.writeFieldEnd()
14280  if self.widget_id is not None:
14281  oprot.writeFieldBegin('widget_id', TType.I64, 2)
14282  oprot.writeI64(self.widget_id)
14283  oprot.writeFieldEnd()
14284  if self.vega_json is not None:
14285  oprot.writeFieldBegin('vega_json', TType.STRING, 3)
14286  oprot.writeString(self.vega_json.encode('utf-8') if sys.version_info[0] == 2 else self.vega_json)
14287  oprot.writeFieldEnd()
14288  if self.compression_level is not None:
14289  oprot.writeFieldBegin('compression_level', TType.I32, 4)
14290  oprot.writeI32(self.compression_level)
14291  oprot.writeFieldEnd()
14292  if self.nonce is not None:
14293  oprot.writeFieldBegin('nonce', TType.STRING, 5)
14294  oprot.writeString(self.nonce.encode('utf-8') if sys.version_info[0] == 2 else self.nonce)
14295  oprot.writeFieldEnd()
14296  oprot.writeFieldStop()
14297  oprot.writeStructEnd()
14298 
14299  def validate(self):
14300  return
14301 
14302  def __repr__(self):
14303  L = ['%s=%r' % (key, value)
14304  for key, value in self.__dict__.items()]
14305  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14306 
14307  def __eq__(self, other):
14308  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14309 
14310  def __ne__(self, other):
14311  return not (self == other)
14312 all_structs.append(render_vega_args)
14313 render_vega_args.thrift_spec = (
14314  None, # 0
14315  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
14316  (2, TType.I64, 'widget_id', None, None, ), # 2
14317  (3, TType.STRING, 'vega_json', 'UTF8', None, ), # 3
14318  (4, TType.I32, 'compression_level', None, None, ), # 4
14319  (5, TType.STRING, 'nonce', 'UTF8', None, ), # 5
14320 )
14321 
14322 
14323 class render_vega_result(object):
14324  """
14325  Attributes:
14326  - success
14327  - e
14328 
14329  """
14330 
14331 
14332  def __init__(self, success=None, e=None,):
14333  self.success = success
14334  self.e = e
14335 
14336  def read(self, iprot):
14337  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
14338  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
14339  return
14340  iprot.readStructBegin()
14341  while True:
14342  (fname, ftype, fid) = iprot.readFieldBegin()
14343  if ftype == TType.STOP:
14344  break
14345  if fid == 0:
14346  if ftype == TType.STRUCT:
14347  self.success = TRenderResult()
14348  self.success.read(iprot)
14349  else:
14350  iprot.skip(ftype)
14351  elif fid == 1:
14352  if ftype == TType.STRUCT:
14353  self.e = TDBException.read(iprot)
14354  else:
14355  iprot.skip(ftype)
14356  else:
14357  iprot.skip(ftype)
14358  iprot.readFieldEnd()
14359  iprot.readStructEnd()
14360 
14361  def write(self, oprot):
14362  if oprot._fast_encode is not None and self.thrift_spec is not None:
14363  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
14364  return
14365  oprot.writeStructBegin('render_vega_result')
14366  if self.success is not None:
14367  oprot.writeFieldBegin('success', TType.STRUCT, 0)
14368  self.success.write(oprot)
14369  oprot.writeFieldEnd()
14370  if self.e is not None:
14371  oprot.writeFieldBegin('e', TType.STRUCT, 1)
14372  self.e.write(oprot)
14373  oprot.writeFieldEnd()
14374  oprot.writeFieldStop()
14375  oprot.writeStructEnd()
14376 
14377  def validate(self):
14378  return
14379 
14380  def __repr__(self):
14381  L = ['%s=%r' % (key, value)
14382  for key, value in self.__dict__.items()]
14383  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14384 
14385  def __eq__(self, other):
14386  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14387 
14388  def __ne__(self, other):
14389  return not (self == other)
14390 all_structs.append(render_vega_result)
14391 render_vega_result.thrift_spec = (
14392  (0, TType.STRUCT, 'success', [TRenderResult, None], None, ), # 0
14393  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
14394 )
14395 
14396 
14398  """
14399  Attributes:
14400  - session
14401  - widget_id
14402  - pixel
14403  - table_col_names
14404  - column_format
14405  - pixelRadius
14406  - nonce
14407 
14408  """
14409 
14410 
14411  def __init__(self, session=None, widget_id=None, pixel=None, table_col_names=None, column_format=None, pixelRadius=None, nonce=None,):
14412  self.session = session
14413  self.widget_id = widget_id
14414  self.pixel = pixel
14415  self.table_col_names = table_col_names
14416  self.column_format = column_format
14417  self.pixelRadius = pixelRadius
14418  self.nonce = nonce
14419 
14420  def read(self, iprot):
14421  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
14422  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
14423  return
14424  iprot.readStructBegin()
14425  while True:
14426  (fname, ftype, fid) = iprot.readFieldBegin()
14427  if ftype == TType.STOP:
14428  break
14429  if fid == 1:
14430  if ftype == TType.STRING:
14431  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
14432  else:
14433  iprot.skip(ftype)
14434  elif fid == 2:
14435  if ftype == TType.I64:
14436  self.widget_id = iprot.readI64()
14437  else:
14438  iprot.skip(ftype)
14439  elif fid == 3:
14440  if ftype == TType.STRUCT:
14441  self.pixel = TPixel()
14442  self.pixel.read(iprot)
14443  else:
14444  iprot.skip(ftype)
14445  elif fid == 4:
14446  if ftype == TType.MAP:
14447  self.table_col_names = {}
14448  (_ktype382, _vtype383, _size381) = iprot.readMapBegin()
14449  for _i385 in range(_size381):
14450  _key386 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
14451  _val387 = []
14452  (_etype391, _size388) = iprot.readListBegin()
14453  for _i392 in range(_size388):
14454  _elem393 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
14455  _val387.append(_elem393)
14456  iprot.readListEnd()
14457  self.table_col_names[_key386] = _val387
14458  iprot.readMapEnd()
14459  else:
14460  iprot.skip(ftype)
14461  elif fid == 5:
14462  if ftype == TType.BOOL:
14463  self.column_format = iprot.readBool()
14464  else:
14465  iprot.skip(ftype)
14466  elif fid == 6:
14467  if ftype == TType.I32:
14468  self.pixelRadius = iprot.readI32()
14469  else:
14470  iprot.skip(ftype)
14471  elif fid == 7:
14472  if ftype == TType.STRING:
14473  self.nonce = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
14474  else:
14475  iprot.skip(ftype)
14476  else:
14477  iprot.skip(ftype)
14478  iprot.readFieldEnd()
14479  iprot.readStructEnd()
14480 
14481  def write(self, oprot):
14482  if oprot._fast_encode is not None and self.thrift_spec is not None:
14483  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
14484  return
14485  oprot.writeStructBegin('get_result_row_for_pixel_args')
14486  if self.session is not None:
14487  oprot.writeFieldBegin('session', TType.STRING, 1)
14488  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
14489  oprot.writeFieldEnd()
14490  if self.widget_id is not None:
14491  oprot.writeFieldBegin('widget_id', TType.I64, 2)
14492  oprot.writeI64(self.widget_id)
14493  oprot.writeFieldEnd()
14494  if self.pixel is not None:
14495  oprot.writeFieldBegin('pixel', TType.STRUCT, 3)
14496  self.pixel.write(oprot)
14497  oprot.writeFieldEnd()
14498  if self.table_col_names is not None:
14499  oprot.writeFieldBegin('table_col_names', TType.MAP, 4)
14500  oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.table_col_names))
14501  for kiter394, viter395 in self.table_col_names.items():
14502  oprot.writeString(kiter394.encode('utf-8') if sys.version_info[0] == 2 else kiter394)
14503  oprot.writeListBegin(TType.STRING, len(viter395))
14504  for iter396 in viter395:
14505  oprot.writeString(iter396.encode('utf-8') if sys.version_info[0] == 2 else iter396)
14506  oprot.writeListEnd()
14507  oprot.writeMapEnd()
14508  oprot.writeFieldEnd()
14509  if self.column_format is not None:
14510  oprot.writeFieldBegin('column_format', TType.BOOL, 5)
14511  oprot.writeBool(self.column_format)
14512  oprot.writeFieldEnd()
14513  if self.pixelRadius is not None:
14514  oprot.writeFieldBegin('pixelRadius', TType.I32, 6)
14515  oprot.writeI32(self.pixelRadius)
14516  oprot.writeFieldEnd()
14517  if self.nonce is not None:
14518  oprot.writeFieldBegin('nonce', TType.STRING, 7)
14519  oprot.writeString(self.nonce.encode('utf-8') if sys.version_info[0] == 2 else self.nonce)
14520  oprot.writeFieldEnd()
14521  oprot.writeFieldStop()
14522  oprot.writeStructEnd()
14523 
14524  def validate(self):
14525  return
14526 
14527  def __repr__(self):
14528  L = ['%s=%r' % (key, value)
14529  for key, value in self.__dict__.items()]
14530  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14531 
14532  def __eq__(self, other):
14533  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14534 
14535  def __ne__(self, other):
14536  return not (self == other)
14537 all_structs.append(get_result_row_for_pixel_args)
14538 get_result_row_for_pixel_args.thrift_spec = (
14539  None, # 0
14540  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
14541  (2, TType.I64, 'widget_id', None, None, ), # 2
14542  (3, TType.STRUCT, 'pixel', [TPixel, None], None, ), # 3
14543  (4, TType.MAP, 'table_col_names', (TType.STRING, 'UTF8', TType.LIST, (TType.STRING, 'UTF8', False), False), None, ), # 4
14544  (5, TType.BOOL, 'column_format', None, None, ), # 5
14545  (6, TType.I32, 'pixelRadius', None, None, ), # 6
14546  (7, TType.STRING, 'nonce', 'UTF8', None, ), # 7
14547 )
14548 
14549 
14551  """
14552  Attributes:
14553  - success
14554  - e
14555 
14556  """
14557 
14558 
14559  def __init__(self, success=None, e=None,):
14560  self.success = success
14561  self.e = e
14562 
14563  def read(self, iprot):
14564  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
14565  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
14566  return
14567  iprot.readStructBegin()
14568  while True:
14569  (fname, ftype, fid) = iprot.readFieldBegin()
14570  if ftype == TType.STOP:
14571  break
14572  if fid == 0:
14573  if ftype == TType.STRUCT:
14574  self.success = TPixelTableRowResult()
14575  self.success.read(iprot)
14576  else:
14577  iprot.skip(ftype)
14578  elif fid == 1:
14579  if ftype == TType.STRUCT:
14580  self.e = TDBException.read(iprot)
14581  else:
14582  iprot.skip(ftype)
14583  else:
14584  iprot.skip(ftype)
14585  iprot.readFieldEnd()
14586  iprot.readStructEnd()
14587 
14588  def write(self, oprot):
14589  if oprot._fast_encode is not None and self.thrift_spec is not None:
14590  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
14591  return
14592  oprot.writeStructBegin('get_result_row_for_pixel_result')
14593  if self.success is not None:
14594  oprot.writeFieldBegin('success', TType.STRUCT, 0)
14595  self.success.write(oprot)
14596  oprot.writeFieldEnd()
14597  if self.e is not None:
14598  oprot.writeFieldBegin('e', TType.STRUCT, 1)
14599  self.e.write(oprot)
14600  oprot.writeFieldEnd()
14601  oprot.writeFieldStop()
14602  oprot.writeStructEnd()
14603 
14604  def validate(self):
14605  return
14606 
14607  def __repr__(self):
14608  L = ['%s=%r' % (key, value)
14609  for key, value in self.__dict__.items()]
14610  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14611 
14612  def __eq__(self, other):
14613  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14614 
14615  def __ne__(self, other):
14616  return not (self == other)
14617 all_structs.append(get_result_row_for_pixel_result)
14618 get_result_row_for_pixel_result.thrift_spec = (
14619  (0, TType.STRUCT, 'success', [TPixelTableRowResult, None], None, ), # 0
14620  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
14621 )
14622 
14623 
14625  """
14626  Attributes:
14627  - session
14628  - custom_expression
14629 
14630  """
14631 
14632 
14633  def __init__(self, session=None, custom_expression=None,):
14634  self.session = session
14635  self.custom_expression = custom_expression
14636 
14637  def read(self, iprot):
14638  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
14639  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
14640  return
14641  iprot.readStructBegin()
14642  while True:
14643  (fname, ftype, fid) = iprot.readFieldBegin()
14644  if ftype == TType.STOP:
14645  break
14646  if fid == 1:
14647  if ftype == TType.STRING:
14648  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
14649  else:
14650  iprot.skip(ftype)
14651  elif fid == 2:
14652  if ftype == TType.STRUCT:
14653  self.custom_expression = TCustomExpression()
14654  self.custom_expression.read(iprot)
14655  else:
14656  iprot.skip(ftype)
14657  else:
14658  iprot.skip(ftype)
14659  iprot.readFieldEnd()
14660  iprot.readStructEnd()
14661 
14662  def write(self, oprot):
14663  if oprot._fast_encode is not None and self.thrift_spec is not None:
14664  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
14665  return
14666  oprot.writeStructBegin('create_custom_expression_args')
14667  if self.session is not None:
14668  oprot.writeFieldBegin('session', TType.STRING, 1)
14669  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
14670  oprot.writeFieldEnd()
14671  if self.custom_expression is not None:
14672  oprot.writeFieldBegin('custom_expression', TType.STRUCT, 2)
14673  self.custom_expression.write(oprot)
14674  oprot.writeFieldEnd()
14675  oprot.writeFieldStop()
14676  oprot.writeStructEnd()
14677 
14678  def validate(self):
14679  return
14680 
14681  def __repr__(self):
14682  L = ['%s=%r' % (key, value)
14683  for key, value in self.__dict__.items()]
14684  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14685 
14686  def __eq__(self, other):
14687  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14688 
14689  def __ne__(self, other):
14690  return not (self == other)
14691 all_structs.append(create_custom_expression_args)
14692 create_custom_expression_args.thrift_spec = (
14693  None, # 0
14694  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
14695  (2, TType.STRUCT, 'custom_expression', [TCustomExpression, None], None, ), # 2
14696 )
14697 
14698 
14700  """
14701  Attributes:
14702  - success
14703  - e
14704 
14705  """
14706 
14707 
14708  def __init__(self, success=None, e=None,):
14709  self.success = success
14710  self.e = e
14711 
14712  def read(self, iprot):
14713  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
14714  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
14715  return
14716  iprot.readStructBegin()
14717  while True:
14718  (fname, ftype, fid) = iprot.readFieldBegin()
14719  if ftype == TType.STOP:
14720  break
14721  if fid == 0:
14722  if ftype == TType.I32:
14723  self.success = iprot.readI32()
14724  else:
14725  iprot.skip(ftype)
14726  elif fid == 1:
14727  if ftype == TType.STRUCT:
14728  self.e = TDBException.read(iprot)
14729  else:
14730  iprot.skip(ftype)
14731  else:
14732  iprot.skip(ftype)
14733  iprot.readFieldEnd()
14734  iprot.readStructEnd()
14735 
14736  def write(self, oprot):
14737  if oprot._fast_encode is not None and self.thrift_spec is not None:
14738  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
14739  return
14740  oprot.writeStructBegin('create_custom_expression_result')
14741  if self.success is not None:
14742  oprot.writeFieldBegin('success', TType.I32, 0)
14743  oprot.writeI32(self.success)
14744  oprot.writeFieldEnd()
14745  if self.e is not None:
14746  oprot.writeFieldBegin('e', TType.STRUCT, 1)
14747  self.e.write(oprot)
14748  oprot.writeFieldEnd()
14749  oprot.writeFieldStop()
14750  oprot.writeStructEnd()
14751 
14752  def validate(self):
14753  return
14754 
14755  def __repr__(self):
14756  L = ['%s=%r' % (key, value)
14757  for key, value in self.__dict__.items()]
14758  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14759 
14760  def __eq__(self, other):
14761  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14762 
14763  def __ne__(self, other):
14764  return not (self == other)
14765 all_structs.append(create_custom_expression_result)
14766 create_custom_expression_result.thrift_spec = (
14767  (0, TType.I32, 'success', None, None, ), # 0
14768  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
14769 )
14770 
14771 
14773  """
14774  Attributes:
14775  - session
14776 
14777  """
14778 
14779 
14780  def __init__(self, session=None,):
14781  self.session = session
14782 
14783  def read(self, iprot):
14784  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
14785  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
14786  return
14787  iprot.readStructBegin()
14788  while True:
14789  (fname, ftype, fid) = iprot.readFieldBegin()
14790  if ftype == TType.STOP:
14791  break
14792  if fid == 1:
14793  if ftype == TType.STRING:
14794  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
14795  else:
14796  iprot.skip(ftype)
14797  else:
14798  iprot.skip(ftype)
14799  iprot.readFieldEnd()
14800  iprot.readStructEnd()
14801 
14802  def write(self, oprot):
14803  if oprot._fast_encode is not None and self.thrift_spec is not None:
14804  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
14805  return
14806  oprot.writeStructBegin('get_custom_expressions_args')
14807  if self.session is not None:
14808  oprot.writeFieldBegin('session', TType.STRING, 1)
14809  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
14810  oprot.writeFieldEnd()
14811  oprot.writeFieldStop()
14812  oprot.writeStructEnd()
14813 
14814  def validate(self):
14815  return
14816 
14817  def __repr__(self):
14818  L = ['%s=%r' % (key, value)
14819  for key, value in self.__dict__.items()]
14820  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14821 
14822  def __eq__(self, other):
14823  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14824 
14825  def __ne__(self, other):
14826  return not (self == other)
14827 all_structs.append(get_custom_expressions_args)
14828 get_custom_expressions_args.thrift_spec = (
14829  None, # 0
14830  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
14831 )
14832 
14833 
14835  """
14836  Attributes:
14837  - success
14838  - e
14839 
14840  """
14841 
14842 
14843  def __init__(self, success=None, e=None,):
14844  self.success = success
14845  self.e = e
14846 
14847  def read(self, iprot):
14848  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
14849  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
14850  return
14851  iprot.readStructBegin()
14852  while True:
14853  (fname, ftype, fid) = iprot.readFieldBegin()
14854  if ftype == TType.STOP:
14855  break
14856  if fid == 0:
14857  if ftype == TType.LIST:
14858  self.success = []
14859  (_etype400, _size397) = iprot.readListBegin()
14860  for _i401 in range(_size397):
14861  _elem402 = TCustomExpression()
14862  _elem402.read(iprot)
14863  self.success.append(_elem402)
14864  iprot.readListEnd()
14865  else:
14866  iprot.skip(ftype)
14867  elif fid == 1:
14868  if ftype == TType.STRUCT:
14869  self.e = TDBException.read(iprot)
14870  else:
14871  iprot.skip(ftype)
14872  else:
14873  iprot.skip(ftype)
14874  iprot.readFieldEnd()
14875  iprot.readStructEnd()
14876 
14877  def write(self, oprot):
14878  if oprot._fast_encode is not None and self.thrift_spec is not None:
14879  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
14880  return
14881  oprot.writeStructBegin('get_custom_expressions_result')
14882  if self.success is not None:
14883  oprot.writeFieldBegin('success', TType.LIST, 0)
14884  oprot.writeListBegin(TType.STRUCT, len(self.success))
14885  for iter403 in self.success:
14886  iter403.write(oprot)
14887  oprot.writeListEnd()
14888  oprot.writeFieldEnd()
14889  if self.e is not None:
14890  oprot.writeFieldBegin('e', TType.STRUCT, 1)
14891  self.e.write(oprot)
14892  oprot.writeFieldEnd()
14893  oprot.writeFieldStop()
14894  oprot.writeStructEnd()
14895 
14896  def validate(self):
14897  return
14898 
14899  def __repr__(self):
14900  L = ['%s=%r' % (key, value)
14901  for key, value in self.__dict__.items()]
14902  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14903 
14904  def __eq__(self, other):
14905  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14906 
14907  def __ne__(self, other):
14908  return not (self == other)
14909 all_structs.append(get_custom_expressions_result)
14910 get_custom_expressions_result.thrift_spec = (
14911  (0, TType.LIST, 'success', (TType.STRUCT, [TCustomExpression, None], False), None, ), # 0
14912  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
14913 )
14914 
14915 
14917  """
14918  Attributes:
14919  - session
14920  - id
14921  - expression_json
14922 
14923  """
14924 
14925 
14926  def __init__(self, session=None, id=None, expression_json=None,):
14927  self.session = session
14928  self.id = id
14929  self.expression_json = expression_json
14930 
14931  def read(self, iprot):
14932  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
14933  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
14934  return
14935  iprot.readStructBegin()
14936  while True:
14937  (fname, ftype, fid) = iprot.readFieldBegin()
14938  if ftype == TType.STOP:
14939  break
14940  if fid == 1:
14941  if ftype == TType.STRING:
14942  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
14943  else:
14944  iprot.skip(ftype)
14945  elif fid == 2:
14946  if ftype == TType.I32:
14947  self.id = iprot.readI32()
14948  else:
14949  iprot.skip(ftype)
14950  elif fid == 3:
14951  if ftype == TType.STRING:
14952  self.expression_json = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
14953  else:
14954  iprot.skip(ftype)
14955  else:
14956  iprot.skip(ftype)
14957  iprot.readFieldEnd()
14958  iprot.readStructEnd()
14959 
14960  def write(self, oprot):
14961  if oprot._fast_encode is not None and self.thrift_spec is not None:
14962  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
14963  return
14964  oprot.writeStructBegin('update_custom_expression_args')
14965  if self.session is not None:
14966  oprot.writeFieldBegin('session', TType.STRING, 1)
14967  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
14968  oprot.writeFieldEnd()
14969  if self.id is not None:
14970  oprot.writeFieldBegin('id', TType.I32, 2)
14971  oprot.writeI32(self.id)
14972  oprot.writeFieldEnd()
14973  if self.expression_json is not None:
14974  oprot.writeFieldBegin('expression_json', TType.STRING, 3)
14975  oprot.writeString(self.expression_json.encode('utf-8') if sys.version_info[0] == 2 else self.expression_json)
14976  oprot.writeFieldEnd()
14977  oprot.writeFieldStop()
14978  oprot.writeStructEnd()
14979 
14980  def validate(self):
14981  return
14982 
14983  def __repr__(self):
14984  L = ['%s=%r' % (key, value)
14985  for key, value in self.__dict__.items()]
14986  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14987 
14988  def __eq__(self, other):
14989  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14990 
14991  def __ne__(self, other):
14992  return not (self == other)
14993 all_structs.append(update_custom_expression_args)
14994 update_custom_expression_args.thrift_spec = (
14995  None, # 0
14996  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
14997  (2, TType.I32, 'id', None, None, ), # 2
14998  (3, TType.STRING, 'expression_json', 'UTF8', None, ), # 3
14999 )
15000 
15001 
15003  """
15004  Attributes:
15005  - e
15006 
15007  """
15008 
15009 
15010  def __init__(self, e=None,):
15011  self.e = e
15012 
15013  def read(self, iprot):
15014  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
15015  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
15016  return
15017  iprot.readStructBegin()
15018  while True:
15019  (fname, ftype, fid) = iprot.readFieldBegin()
15020  if ftype == TType.STOP:
15021  break
15022  if fid == 1:
15023  if ftype == TType.STRUCT:
15024  self.e = TDBException.read(iprot)
15025  else:
15026  iprot.skip(ftype)
15027  else:
15028  iprot.skip(ftype)
15029  iprot.readFieldEnd()
15030  iprot.readStructEnd()
15031 
15032  def write(self, oprot):
15033  if oprot._fast_encode is not None and self.thrift_spec is not None:
15034  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
15035  return
15036  oprot.writeStructBegin('update_custom_expression_result')
15037  if self.e is not None:
15038  oprot.writeFieldBegin('e', TType.STRUCT, 1)
15039  self.e.write(oprot)
15040  oprot.writeFieldEnd()
15041  oprot.writeFieldStop()
15042  oprot.writeStructEnd()
15043 
15044  def validate(self):
15045  return
15046 
15047  def __repr__(self):
15048  L = ['%s=%r' % (key, value)
15049  for key, value in self.__dict__.items()]
15050  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15051 
15052  def __eq__(self, other):
15053  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15054 
15055  def __ne__(self, other):
15056  return not (self == other)
15057 all_structs.append(update_custom_expression_result)
15058 update_custom_expression_result.thrift_spec = (
15059  None, # 0
15060  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
15061 )
15062 
15063 
15065  """
15066  Attributes:
15067  - session
15068  - custom_expression_ids
15069  - do_soft_delete
15070 
15071  """
15072 
15073 
15074  def __init__(self, session=None, custom_expression_ids=None, do_soft_delete=None,):
15075  self.session = session
15076  self.custom_expression_ids = custom_expression_ids
15077  self.do_soft_delete = do_soft_delete
15078 
15079  def read(self, iprot):
15080  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
15081  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
15082  return
15083  iprot.readStructBegin()
15084  while True:
15085  (fname, ftype, fid) = iprot.readFieldBegin()
15086  if ftype == TType.STOP:
15087  break
15088  if fid == 1:
15089  if ftype == TType.STRING:
15090  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
15091  else:
15092  iprot.skip(ftype)
15093  elif fid == 2:
15094  if ftype == TType.LIST:
15095  self.custom_expression_ids = []
15096  (_etype407, _size404) = iprot.readListBegin()
15097  for _i408 in range(_size404):
15098  _elem409 = iprot.readI32()
15099  self.custom_expression_ids.append(_elem409)
15100  iprot.readListEnd()
15101  else:
15102  iprot.skip(ftype)
15103  elif fid == 3:
15104  if ftype == TType.BOOL:
15105  self.do_soft_delete = iprot.readBool()
15106  else:
15107  iprot.skip(ftype)
15108  else:
15109  iprot.skip(ftype)
15110  iprot.readFieldEnd()
15111  iprot.readStructEnd()
15112 
15113  def write(self, oprot):
15114  if oprot._fast_encode is not None and self.thrift_spec is not None:
15115  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
15116  return
15117  oprot.writeStructBegin('delete_custom_expressions_args')
15118  if self.session is not None:
15119  oprot.writeFieldBegin('session', TType.STRING, 1)
15120  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
15121  oprot.writeFieldEnd()
15122  if self.custom_expression_ids is not None:
15123  oprot.writeFieldBegin('custom_expression_ids', TType.LIST, 2)
15124  oprot.writeListBegin(TType.I32, len(self.custom_expression_ids))
15125  for iter410 in self.custom_expression_ids:
15126  oprot.writeI32(iter410)
15127  oprot.writeListEnd()
15128  oprot.writeFieldEnd()
15129  if self.do_soft_delete is not None:
15130  oprot.writeFieldBegin('do_soft_delete', TType.BOOL, 3)
15131  oprot.writeBool(self.do_soft_delete)
15132  oprot.writeFieldEnd()
15133  oprot.writeFieldStop()
15134  oprot.writeStructEnd()
15135 
15136  def validate(self):
15137  return
15138 
15139  def __repr__(self):
15140  L = ['%s=%r' % (key, value)
15141  for key, value in self.__dict__.items()]
15142  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15143 
15144  def __eq__(self, other):
15145  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15146 
15147  def __ne__(self, other):
15148  return not (self == other)
15149 all_structs.append(delete_custom_expressions_args)
15150 delete_custom_expressions_args.thrift_spec = (
15151  None, # 0
15152  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
15153  (2, TType.LIST, 'custom_expression_ids', (TType.I32, None, False), None, ), # 2
15154  (3, TType.BOOL, 'do_soft_delete', None, None, ), # 3
15155 )
15156 
15157 
15159  """
15160  Attributes:
15161  - e
15162 
15163  """
15164 
15165 
15166  def __init__(self, e=None,):
15167  self.e = e
15168 
15169  def read(self, iprot):
15170  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
15171  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
15172  return
15173  iprot.readStructBegin()
15174  while True:
15175  (fname, ftype, fid) = iprot.readFieldBegin()
15176  if ftype == TType.STOP:
15177  break
15178  if fid == 1:
15179  if ftype == TType.STRUCT:
15180  self.e = TDBException.read(iprot)
15181  else:
15182  iprot.skip(ftype)
15183  else:
15184  iprot.skip(ftype)
15185  iprot.readFieldEnd()
15186  iprot.readStructEnd()
15187 
15188  def write(self, oprot):
15189  if oprot._fast_encode is not None and self.thrift_spec is not None:
15190  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
15191  return
15192  oprot.writeStructBegin('delete_custom_expressions_result')
15193  if self.e is not None:
15194  oprot.writeFieldBegin('e', TType.STRUCT, 1)
15195  self.e.write(oprot)
15196  oprot.writeFieldEnd()
15197  oprot.writeFieldStop()
15198  oprot.writeStructEnd()
15199 
15200  def validate(self):
15201  return
15202 
15203  def __repr__(self):
15204  L = ['%s=%r' % (key, value)
15205  for key, value in self.__dict__.items()]
15206  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15207 
15208  def __eq__(self, other):
15209  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15210 
15211  def __ne__(self, other):
15212  return not (self == other)
15213 all_structs.append(delete_custom_expressions_result)
15214 delete_custom_expressions_result.thrift_spec = (
15215  None, # 0
15216  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
15217 )
15218 
15219 
15220 class get_dashboard_args(object):
15221  """
15222  Attributes:
15223  - session
15224  - dashboard_id
15225 
15226  """
15227 
15228 
15229  def __init__(self, session=None, dashboard_id=None,):
15230  self.session = session
15231  self.dashboard_id = dashboard_id
15232 
15233  def read(self, iprot):
15234  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
15235  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
15236  return
15237  iprot.readStructBegin()
15238  while True:
15239  (fname, ftype, fid) = iprot.readFieldBegin()
15240  if ftype == TType.STOP:
15241  break
15242  if fid == 1:
15243  if ftype == TType.STRING:
15244  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
15245  else:
15246  iprot.skip(ftype)
15247  elif fid == 2:
15248  if ftype == TType.I32:
15249  self.dashboard_id = iprot.readI32()
15250  else:
15251  iprot.skip(ftype)
15252  else:
15253  iprot.skip(ftype)
15254  iprot.readFieldEnd()
15255  iprot.readStructEnd()
15256 
15257  def write(self, oprot):
15258  if oprot._fast_encode is not None and self.thrift_spec is not None:
15259  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
15260  return
15261  oprot.writeStructBegin('get_dashboard_args')
15262  if self.session is not None:
15263  oprot.writeFieldBegin('session', TType.STRING, 1)
15264  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
15265  oprot.writeFieldEnd()
15266  if self.dashboard_id is not None:
15267  oprot.writeFieldBegin('dashboard_id', TType.I32, 2)
15268  oprot.writeI32(self.dashboard_id)
15269  oprot.writeFieldEnd()
15270  oprot.writeFieldStop()
15271  oprot.writeStructEnd()
15272 
15273  def validate(self):
15274  return
15275 
15276  def __repr__(self):
15277  L = ['%s=%r' % (key, value)
15278  for key, value in self.__dict__.items()]
15279  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15280 
15281  def __eq__(self, other):
15282  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15283 
15284  def __ne__(self, other):
15285  return not (self == other)
15286 all_structs.append(get_dashboard_args)
15287 get_dashboard_args.thrift_spec = (
15288  None, # 0
15289  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
15290  (2, TType.I32, 'dashboard_id', None, None, ), # 2
15291 )
15292 
15293 
15294 class get_dashboard_result(object):
15295  """
15296  Attributes:
15297  - success
15298  - e
15299 
15300  """
15301 
15302 
15303  def __init__(self, success=None, e=None,):
15304  self.success = success
15305  self.e = e
15306 
15307  def read(self, iprot):
15308  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
15309  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
15310  return
15311  iprot.readStructBegin()
15312  while True:
15313  (fname, ftype, fid) = iprot.readFieldBegin()
15314  if ftype == TType.STOP:
15315  break
15316  if fid == 0:
15317  if ftype == TType.STRUCT:
15318  self.success = TDashboard()
15319  self.success.read(iprot)
15320  else:
15321  iprot.skip(ftype)
15322  elif fid == 1:
15323  if ftype == TType.STRUCT:
15324  self.e = TDBException.read(iprot)
15325  else:
15326  iprot.skip(ftype)
15327  else:
15328  iprot.skip(ftype)
15329  iprot.readFieldEnd()
15330  iprot.readStructEnd()
15331 
15332  def write(self, oprot):
15333  if oprot._fast_encode is not None and self.thrift_spec is not None:
15334  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
15335  return
15336  oprot.writeStructBegin('get_dashboard_result')
15337  if self.success is not None:
15338  oprot.writeFieldBegin('success', TType.STRUCT, 0)
15339  self.success.write(oprot)
15340  oprot.writeFieldEnd()
15341  if self.e is not None:
15342  oprot.writeFieldBegin('e', TType.STRUCT, 1)
15343  self.e.write(oprot)
15344  oprot.writeFieldEnd()
15345  oprot.writeFieldStop()
15346  oprot.writeStructEnd()
15347 
15348  def validate(self):
15349  return
15350 
15351  def __repr__(self):
15352  L = ['%s=%r' % (key, value)
15353  for key, value in self.__dict__.items()]
15354  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15355 
15356  def __eq__(self, other):
15357  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15358 
15359  def __ne__(self, other):
15360  return not (self == other)
15361 all_structs.append(get_dashboard_result)
15362 get_dashboard_result.thrift_spec = (
15363  (0, TType.STRUCT, 'success', [TDashboard, None], None, ), # 0
15364  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
15365 )
15366 
15367 
15368 class get_dashboards_args(object):
15369  """
15370  Attributes:
15371  - session
15372 
15373  """
15374 
15375 
15376  def __init__(self, session=None,):
15377  self.session = session
15378 
15379  def read(self, iprot):
15380  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
15381  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
15382  return
15383  iprot.readStructBegin()
15384  while True:
15385  (fname, ftype, fid) = iprot.readFieldBegin()
15386  if ftype == TType.STOP:
15387  break
15388  if fid == 1:
15389  if ftype == TType.STRING:
15390  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
15391  else:
15392  iprot.skip(ftype)
15393  else:
15394  iprot.skip(ftype)
15395  iprot.readFieldEnd()
15396  iprot.readStructEnd()
15397 
15398  def write(self, oprot):
15399  if oprot._fast_encode is not None and self.thrift_spec is not None:
15400  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
15401  return
15402  oprot.writeStructBegin('get_dashboards_args')
15403  if self.session is not None:
15404  oprot.writeFieldBegin('session', TType.STRING, 1)
15405  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
15406  oprot.writeFieldEnd()
15407  oprot.writeFieldStop()
15408  oprot.writeStructEnd()
15409 
15410  def validate(self):
15411  return
15412 
15413  def __repr__(self):
15414  L = ['%s=%r' % (key, value)
15415  for key, value in self.__dict__.items()]
15416  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15417 
15418  def __eq__(self, other):
15419  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15420 
15421  def __ne__(self, other):
15422  return not (self == other)
15423 all_structs.append(get_dashboards_args)
15424 get_dashboards_args.thrift_spec = (
15425  None, # 0
15426  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
15427 )
15428 
15429 
15431  """
15432  Attributes:
15433  - success
15434  - e
15435 
15436  """
15437 
15438 
15439  def __init__(self, success=None, e=None,):
15440  self.success = success
15441  self.e = e
15442 
15443  def read(self, iprot):
15444  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
15445  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
15446  return
15447  iprot.readStructBegin()
15448  while True:
15449  (fname, ftype, fid) = iprot.readFieldBegin()
15450  if ftype == TType.STOP:
15451  break
15452  if fid == 0:
15453  if ftype == TType.LIST:
15454  self.success = []
15455  (_etype414, _size411) = iprot.readListBegin()
15456  for _i415 in range(_size411):
15457  _elem416 = TDashboard()
15458  _elem416.read(iprot)
15459  self.success.append(_elem416)
15460  iprot.readListEnd()
15461  else:
15462  iprot.skip(ftype)
15463  elif fid == 1:
15464  if ftype == TType.STRUCT:
15465  self.e = TDBException.read(iprot)
15466  else:
15467  iprot.skip(ftype)
15468  else:
15469  iprot.skip(ftype)
15470  iprot.readFieldEnd()
15471  iprot.readStructEnd()
15472 
15473  def write(self, oprot):
15474  if oprot._fast_encode is not None and self.thrift_spec is not None:
15475  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
15476  return
15477  oprot.writeStructBegin('get_dashboards_result')
15478  if self.success is not None:
15479  oprot.writeFieldBegin('success', TType.LIST, 0)
15480  oprot.writeListBegin(TType.STRUCT, len(self.success))
15481  for iter417 in self.success:
15482  iter417.write(oprot)
15483  oprot.writeListEnd()
15484  oprot.writeFieldEnd()
15485  if self.e is not None:
15486  oprot.writeFieldBegin('e', TType.STRUCT, 1)
15487  self.e.write(oprot)
15488  oprot.writeFieldEnd()
15489  oprot.writeFieldStop()
15490  oprot.writeStructEnd()
15491 
15492  def validate(self):
15493  return
15494 
15495  def __repr__(self):
15496  L = ['%s=%r' % (key, value)
15497  for key, value in self.__dict__.items()]
15498  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15499 
15500  def __eq__(self, other):
15501  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15502 
15503  def __ne__(self, other):
15504  return not (self == other)
15505 all_structs.append(get_dashboards_result)
15506 get_dashboards_result.thrift_spec = (
15507  (0, TType.LIST, 'success', (TType.STRUCT, [TDashboard, None], False), None, ), # 0
15508  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
15509 )
15510 
15511 
15513  """
15514  Attributes:
15515  - session
15516  - dashboard_name
15517  - dashboard_state
15518  - image_hash
15519  - dashboard_metadata
15520 
15521  """
15522 
15523 
15524  def __init__(self, session=None, dashboard_name=None, dashboard_state=None, image_hash=None, dashboard_metadata=None,):
15525  self.session = session
15526  self.dashboard_name = dashboard_name
15527  self.dashboard_state = dashboard_state
15528  self.image_hash = image_hash
15529  self.dashboard_metadata = dashboard_metadata
15530 
15531  def read(self, iprot):
15532  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
15533  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
15534  return
15535  iprot.readStructBegin()
15536  while True:
15537  (fname, ftype, fid) = iprot.readFieldBegin()
15538  if ftype == TType.STOP:
15539  break
15540  if fid == 1:
15541  if ftype == TType.STRING:
15542  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
15543  else:
15544  iprot.skip(ftype)
15545  elif fid == 2:
15546  if ftype == TType.STRING:
15547  self.dashboard_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
15548  else:
15549  iprot.skip(ftype)
15550  elif fid == 3:
15551  if ftype == TType.STRING:
15552  self.dashboard_state = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
15553  else:
15554  iprot.skip(ftype)
15555  elif fid == 4:
15556  if ftype == TType.STRING:
15557  self.image_hash = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
15558  else:
15559  iprot.skip(ftype)
15560  elif fid == 5:
15561  if ftype == TType.STRING:
15562  self.dashboard_metadata = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
15563  else:
15564  iprot.skip(ftype)
15565  else:
15566  iprot.skip(ftype)
15567  iprot.readFieldEnd()
15568  iprot.readStructEnd()
15569 
15570  def write(self, oprot):
15571  if oprot._fast_encode is not None and self.thrift_spec is not None:
15572  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
15573  return
15574  oprot.writeStructBegin('create_dashboard_args')
15575  if self.session is not None:
15576  oprot.writeFieldBegin('session', TType.STRING, 1)
15577  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
15578  oprot.writeFieldEnd()
15579  if self.dashboard_name is not None:
15580  oprot.writeFieldBegin('dashboard_name', TType.STRING, 2)
15581  oprot.writeString(self.dashboard_name.encode('utf-8') if sys.version_info[0] == 2 else self.dashboard_name)
15582  oprot.writeFieldEnd()
15583  if self.dashboard_state is not None:
15584  oprot.writeFieldBegin('dashboard_state', TType.STRING, 3)
15585  oprot.writeString(self.dashboard_state.encode('utf-8') if sys.version_info[0] == 2 else self.dashboard_state)
15586  oprot.writeFieldEnd()
15587  if self.image_hash is not None:
15588  oprot.writeFieldBegin('image_hash', TType.STRING, 4)
15589  oprot.writeString(self.image_hash.encode('utf-8') if sys.version_info[0] == 2 else self.image_hash)
15590  oprot.writeFieldEnd()
15591  if self.dashboard_metadata is not None:
15592  oprot.writeFieldBegin('dashboard_metadata', TType.STRING, 5)
15593  oprot.writeString(self.dashboard_metadata.encode('utf-8') if sys.version_info[0] == 2 else self.dashboard_metadata)
15594  oprot.writeFieldEnd()
15595  oprot.writeFieldStop()
15596  oprot.writeStructEnd()
15597 
15598  def validate(self):
15599  return
15600 
15601  def __repr__(self):
15602  L = ['%s=%r' % (key, value)
15603  for key, value in self.__dict__.items()]
15604  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15605 
15606  def __eq__(self, other):
15607  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15608 
15609  def __ne__(self, other):
15610  return not (self == other)
15611 all_structs.append(create_dashboard_args)
15612 create_dashboard_args.thrift_spec = (
15613  None, # 0
15614  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
15615  (2, TType.STRING, 'dashboard_name', 'UTF8', None, ), # 2
15616  (3, TType.STRING, 'dashboard_state', 'UTF8', None, ), # 3
15617  (4, TType.STRING, 'image_hash', 'UTF8', None, ), # 4
15618  (5, TType.STRING, 'dashboard_metadata', 'UTF8', None, ), # 5
15619 )
15620 
15621 
15623  """
15624  Attributes:
15625  - success
15626  - e
15627 
15628  """
15629 
15630 
15631  def __init__(self, success=None, e=None,):
15632  self.success = success
15633  self.e = e
15634 
15635  def read(self, iprot):
15636  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
15637  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
15638  return
15639  iprot.readStructBegin()
15640  while True:
15641  (fname, ftype, fid) = iprot.readFieldBegin()
15642  if ftype == TType.STOP:
15643  break
15644  if fid == 0:
15645  if ftype == TType.I32:
15646  self.success = iprot.readI32()
15647  else:
15648  iprot.skip(ftype)
15649  elif fid == 1:
15650  if ftype == TType.STRUCT:
15651  self.e = TDBException.read(iprot)
15652  else:
15653  iprot.skip(ftype)
15654  else:
15655  iprot.skip(ftype)
15656  iprot.readFieldEnd()
15657  iprot.readStructEnd()
15658 
15659  def write(self, oprot):
15660  if oprot._fast_encode is not None and self.thrift_spec is not None:
15661  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
15662  return
15663  oprot.writeStructBegin('create_dashboard_result')
15664  if self.success is not None:
15665  oprot.writeFieldBegin('success', TType.I32, 0)
15666  oprot.writeI32(self.success)
15667  oprot.writeFieldEnd()
15668  if self.e is not None:
15669  oprot.writeFieldBegin('e', TType.STRUCT, 1)
15670  self.e.write(oprot)
15671  oprot.writeFieldEnd()
15672  oprot.writeFieldStop()
15673  oprot.writeStructEnd()
15674 
15675  def validate(self):
15676  return
15677 
15678  def __repr__(self):
15679  L = ['%s=%r' % (key, value)
15680  for key, value in self.__dict__.items()]
15681  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15682 
15683  def __eq__(self, other):
15684  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15685 
15686  def __ne__(self, other):
15687  return not (self == other)
15688 all_structs.append(create_dashboard_result)
15689 create_dashboard_result.thrift_spec = (
15690  (0, TType.I32, 'success', None, None, ), # 0
15691  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
15692 )
15693 
15694 
15696  """
15697  Attributes:
15698  - session
15699  - dashboard_id
15700  - dashboard_name
15701  - dashboard_owner
15702  - dashboard_state
15703  - image_hash
15704  - dashboard_metadata
15705 
15706  """
15707 
15708 
15709  def __init__(self, session=None, dashboard_id=None, dashboard_name=None, dashboard_owner=None, dashboard_state=None, image_hash=None, dashboard_metadata=None,):
15710  self.session = session
15711  self.dashboard_id = dashboard_id
15712  self.dashboard_name = dashboard_name
15713  self.dashboard_owner = dashboard_owner
15714  self.dashboard_state = dashboard_state
15715  self.image_hash = image_hash
15716  self.dashboard_metadata = dashboard_metadata
15717 
15718  def read(self, iprot):
15719  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
15720  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
15721  return
15722  iprot.readStructBegin()
15723  while True:
15724  (fname, ftype, fid) = iprot.readFieldBegin()
15725  if ftype == TType.STOP:
15726  break
15727  if fid == 1:
15728  if ftype == TType.STRING:
15729  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
15730  else:
15731  iprot.skip(ftype)
15732  elif fid == 2:
15733  if ftype == TType.I32:
15734  self.dashboard_id = iprot.readI32()
15735  else:
15736  iprot.skip(ftype)
15737  elif fid == 3:
15738  if ftype == TType.STRING:
15739  self.dashboard_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
15740  else:
15741  iprot.skip(ftype)
15742  elif fid == 4:
15743  if ftype == TType.STRING:
15744  self.dashboard_owner = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
15745  else:
15746  iprot.skip(ftype)
15747  elif fid == 5:
15748  if ftype == TType.STRING:
15749  self.dashboard_state = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
15750  else:
15751  iprot.skip(ftype)
15752  elif fid == 6:
15753  if ftype == TType.STRING:
15754  self.image_hash = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
15755  else:
15756  iprot.skip(ftype)
15757  elif fid == 7:
15758  if ftype == TType.STRING:
15759  self.dashboard_metadata = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
15760  else:
15761  iprot.skip(ftype)
15762  else:
15763  iprot.skip(ftype)
15764  iprot.readFieldEnd()
15765  iprot.readStructEnd()
15766 
15767  def write(self, oprot):
15768  if oprot._fast_encode is not None and self.thrift_spec is not None:
15769  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
15770  return
15771  oprot.writeStructBegin('replace_dashboard_args')
15772  if self.session is not None:
15773  oprot.writeFieldBegin('session', TType.STRING, 1)
15774  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
15775  oprot.writeFieldEnd()
15776  if self.dashboard_id is not None:
15777  oprot.writeFieldBegin('dashboard_id', TType.I32, 2)
15778  oprot.writeI32(self.dashboard_id)
15779  oprot.writeFieldEnd()
15780  if self.dashboard_name is not None:
15781  oprot.writeFieldBegin('dashboard_name', TType.STRING, 3)
15782  oprot.writeString(self.dashboard_name.encode('utf-8') if sys.version_info[0] == 2 else self.dashboard_name)
15783  oprot.writeFieldEnd()
15784  if self.dashboard_owner is not None:
15785  oprot.writeFieldBegin('dashboard_owner', TType.STRING, 4)
15786  oprot.writeString(self.dashboard_owner.encode('utf-8') if sys.version_info[0] == 2 else self.dashboard_owner)
15787  oprot.writeFieldEnd()
15788  if self.dashboard_state is not None:
15789  oprot.writeFieldBegin('dashboard_state', TType.STRING, 5)
15790  oprot.writeString(self.dashboard_state.encode('utf-8') if sys.version_info[0] == 2 else self.dashboard_state)
15791  oprot.writeFieldEnd()
15792  if self.image_hash is not None:
15793  oprot.writeFieldBegin('image_hash', TType.STRING, 6)
15794  oprot.writeString(self.image_hash.encode('utf-8') if sys.version_info[0] == 2 else self.image_hash)
15795  oprot.writeFieldEnd()
15796  if self.dashboard_metadata is not None:
15797  oprot.writeFieldBegin('dashboard_metadata', TType.STRING, 7)
15798  oprot.writeString(self.dashboard_metadata.encode('utf-8') if sys.version_info[0] == 2 else self.dashboard_metadata)
15799  oprot.writeFieldEnd()
15800  oprot.writeFieldStop()
15801  oprot.writeStructEnd()
15802 
15803  def validate(self):
15804  return
15805 
15806  def __repr__(self):
15807  L = ['%s=%r' % (key, value)
15808  for key, value in self.__dict__.items()]
15809  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15810 
15811  def __eq__(self, other):
15812  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15813 
15814  def __ne__(self, other):
15815  return not (self == other)
15816 all_structs.append(replace_dashboard_args)
15817 replace_dashboard_args.thrift_spec = (
15818  None, # 0
15819  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
15820  (2, TType.I32, 'dashboard_id', None, None, ), # 2
15821  (3, TType.STRING, 'dashboard_name', 'UTF8', None, ), # 3
15822  (4, TType.STRING, 'dashboard_owner', 'UTF8', None, ), # 4
15823  (5, TType.STRING, 'dashboard_state', 'UTF8', None, ), # 5
15824  (6, TType.STRING, 'image_hash', 'UTF8', None, ), # 6
15825  (7, TType.STRING, 'dashboard_metadata', 'UTF8', None, ), # 7
15826 )
15827 
15828 
15830  """
15831  Attributes:
15832  - e
15833 
15834  """
15835 
15836 
15837  def __init__(self, e=None,):
15838  self.e = e
15839 
15840  def read(self, iprot):
15841  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
15842  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
15843  return
15844  iprot.readStructBegin()
15845  while True:
15846  (fname, ftype, fid) = iprot.readFieldBegin()
15847  if ftype == TType.STOP:
15848  break
15849  if fid == 1:
15850  if ftype == TType.STRUCT:
15851  self.e = TDBException.read(iprot)
15852  else:
15853  iprot.skip(ftype)
15854  else:
15855  iprot.skip(ftype)
15856  iprot.readFieldEnd()
15857  iprot.readStructEnd()
15858 
15859  def write(self, oprot):
15860  if oprot._fast_encode is not None and self.thrift_spec is not None:
15861  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
15862  return
15863  oprot.writeStructBegin('replace_dashboard_result')
15864  if self.e is not None:
15865  oprot.writeFieldBegin('e', TType.STRUCT, 1)
15866  self.e.write(oprot)
15867  oprot.writeFieldEnd()
15868  oprot.writeFieldStop()
15869  oprot.writeStructEnd()
15870 
15871  def validate(self):
15872  return
15873 
15874  def __repr__(self):
15875  L = ['%s=%r' % (key, value)
15876  for key, value in self.__dict__.items()]
15877  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15878 
15879  def __eq__(self, other):
15880  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15881 
15882  def __ne__(self, other):
15883  return not (self == other)
15884 all_structs.append(replace_dashboard_result)
15885 replace_dashboard_result.thrift_spec = (
15886  None, # 0
15887  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
15888 )
15889 
15890 
15892  """
15893  Attributes:
15894  - session
15895  - dashboard_id
15896 
15897  """
15898 
15899 
15900  def __init__(self, session=None, dashboard_id=None,):
15901  self.session = session
15902  self.dashboard_id = dashboard_id
15903 
15904  def read(self, iprot):
15905  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
15906  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
15907  return
15908  iprot.readStructBegin()
15909  while True:
15910  (fname, ftype, fid) = iprot.readFieldBegin()
15911  if ftype == TType.STOP:
15912  break
15913  if fid == 1:
15914  if ftype == TType.STRING:
15915  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
15916  else:
15917  iprot.skip(ftype)
15918  elif fid == 2:
15919  if ftype == TType.I32:
15920  self.dashboard_id = iprot.readI32()
15921  else:
15922  iprot.skip(ftype)
15923  else:
15924  iprot.skip(ftype)
15925  iprot.readFieldEnd()
15926  iprot.readStructEnd()
15927 
15928  def write(self, oprot):
15929  if oprot._fast_encode is not None and self.thrift_spec is not None:
15930  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
15931  return
15932  oprot.writeStructBegin('delete_dashboard_args')
15933  if self.session is not None:
15934  oprot.writeFieldBegin('session', TType.STRING, 1)
15935  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
15936  oprot.writeFieldEnd()
15937  if self.dashboard_id is not None:
15938  oprot.writeFieldBegin('dashboard_id', TType.I32, 2)
15939  oprot.writeI32(self.dashboard_id)
15940  oprot.writeFieldEnd()
15941  oprot.writeFieldStop()
15942  oprot.writeStructEnd()
15943 
15944  def validate(self):
15945  return
15946 
15947  def __repr__(self):
15948  L = ['%s=%r' % (key, value)
15949  for key, value in self.__dict__.items()]
15950  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15951 
15952  def __eq__(self, other):
15953  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15954 
15955  def __ne__(self, other):
15956  return not (self == other)
15957 all_structs.append(delete_dashboard_args)
15958 delete_dashboard_args.thrift_spec = (
15959  None, # 0
15960  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
15961  (2, TType.I32, 'dashboard_id', None, None, ), # 2
15962 )
15963 
15964 
15966  """
15967  Attributes:
15968  - e
15969 
15970  """
15971 
15972 
15973  def __init__(self, e=None,):
15974  self.e = e
15975 
15976  def read(self, iprot):
15977  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
15978  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
15979  return
15980  iprot.readStructBegin()
15981  while True:
15982  (fname, ftype, fid) = iprot.readFieldBegin()
15983  if ftype == TType.STOP:
15984  break
15985  if fid == 1:
15986  if ftype == TType.STRUCT:
15987  self.e = TDBException.read(iprot)
15988  else:
15989  iprot.skip(ftype)
15990  else:
15991  iprot.skip(ftype)
15992  iprot.readFieldEnd()
15993  iprot.readStructEnd()
15994 
15995  def write(self, oprot):
15996  if oprot._fast_encode is not None and self.thrift_spec is not None:
15997  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
15998  return
15999  oprot.writeStructBegin('delete_dashboard_result')
16000  if self.e is not None:
16001  oprot.writeFieldBegin('e', TType.STRUCT, 1)
16002  self.e.write(oprot)
16003  oprot.writeFieldEnd()
16004  oprot.writeFieldStop()
16005  oprot.writeStructEnd()
16006 
16007  def validate(self):
16008  return
16009 
16010  def __repr__(self):
16011  L = ['%s=%r' % (key, value)
16012  for key, value in self.__dict__.items()]
16013  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16014 
16015  def __eq__(self, other):
16016  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16017 
16018  def __ne__(self, other):
16019  return not (self == other)
16020 all_structs.append(delete_dashboard_result)
16021 delete_dashboard_result.thrift_spec = (
16022  None, # 0
16023  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
16024 )
16025 
16026 
16028  """
16029  Attributes:
16030  - session
16031  - dashboard_ids
16032  - groups
16033  - permissions
16034 
16035  """
16036 
16037 
16038  def __init__(self, session=None, dashboard_ids=None, groups=None, permissions=None,):
16039  self.session = session
16040  self.dashboard_ids = dashboard_ids
16041  self.groups = groups
16042  self.permissions = permissions
16043 
16044  def read(self, iprot):
16045  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
16046  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
16047  return
16048  iprot.readStructBegin()
16049  while True:
16050  (fname, ftype, fid) = iprot.readFieldBegin()
16051  if ftype == TType.STOP:
16052  break
16053  if fid == 1:
16054  if ftype == TType.STRING:
16055  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
16056  else:
16057  iprot.skip(ftype)
16058  elif fid == 2:
16059  if ftype == TType.LIST:
16060  self.dashboard_ids = []
16061  (_etype421, _size418) = iprot.readListBegin()
16062  for _i422 in range(_size418):
16063  _elem423 = iprot.readI32()
16064  self.dashboard_ids.append(_elem423)
16065  iprot.readListEnd()
16066  else:
16067  iprot.skip(ftype)
16068  elif fid == 3:
16069  if ftype == TType.LIST:
16070  self.groups = []
16071  (_etype427, _size424) = iprot.readListBegin()
16072  for _i428 in range(_size424):
16073  _elem429 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
16074  self.groups.append(_elem429)
16075  iprot.readListEnd()
16076  else:
16077  iprot.skip(ftype)
16078  elif fid == 4:
16079  if ftype == TType.STRUCT:
16080  self.permissions = TDashboardPermissions()
16081  self.permissions.read(iprot)
16082  else:
16083  iprot.skip(ftype)
16084  else:
16085  iprot.skip(ftype)
16086  iprot.readFieldEnd()
16087  iprot.readStructEnd()
16088 
16089  def write(self, oprot):
16090  if oprot._fast_encode is not None and self.thrift_spec is not None:
16091  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
16092  return
16093  oprot.writeStructBegin('share_dashboards_args')
16094  if self.session is not None:
16095  oprot.writeFieldBegin('session', TType.STRING, 1)
16096  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
16097  oprot.writeFieldEnd()
16098  if self.dashboard_ids is not None:
16099  oprot.writeFieldBegin('dashboard_ids', TType.LIST, 2)
16100  oprot.writeListBegin(TType.I32, len(self.dashboard_ids))
16101  for iter430 in self.dashboard_ids:
16102  oprot.writeI32(iter430)
16103  oprot.writeListEnd()
16104  oprot.writeFieldEnd()
16105  if self.groups is not None:
16106  oprot.writeFieldBegin('groups', TType.LIST, 3)
16107  oprot.writeListBegin(TType.STRING, len(self.groups))
16108  for iter431 in self.groups:
16109  oprot.writeString(iter431.encode('utf-8') if sys.version_info[0] == 2 else iter431)
16110  oprot.writeListEnd()
16111  oprot.writeFieldEnd()
16112  if self.permissions is not None:
16113  oprot.writeFieldBegin('permissions', TType.STRUCT, 4)
16114  self.permissions.write(oprot)
16115  oprot.writeFieldEnd()
16116  oprot.writeFieldStop()
16117  oprot.writeStructEnd()
16118 
16119  def validate(self):
16120  return
16121 
16122  def __repr__(self):
16123  L = ['%s=%r' % (key, value)
16124  for key, value in self.__dict__.items()]
16125  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16126 
16127  def __eq__(self, other):
16128  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16129 
16130  def __ne__(self, other):
16131  return not (self == other)
16132 all_structs.append(share_dashboards_args)
16133 share_dashboards_args.thrift_spec = (
16134  None, # 0
16135  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
16136  (2, TType.LIST, 'dashboard_ids', (TType.I32, None, False), None, ), # 2
16137  (3, TType.LIST, 'groups', (TType.STRING, 'UTF8', False), None, ), # 3
16138  (4, TType.STRUCT, 'permissions', [TDashboardPermissions, None], None, ), # 4
16139 )
16140 
16141 
16143  """
16144  Attributes:
16145  - e
16146 
16147  """
16148 
16149 
16150  def __init__(self, e=None,):
16151  self.e = e
16152 
16153  def read(self, iprot):
16154  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
16155  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
16156  return
16157  iprot.readStructBegin()
16158  while True:
16159  (fname, ftype, fid) = iprot.readFieldBegin()
16160  if ftype == TType.STOP:
16161  break
16162  if fid == 1:
16163  if ftype == TType.STRUCT:
16164  self.e = TDBException.read(iprot)
16165  else:
16166  iprot.skip(ftype)
16167  else:
16168  iprot.skip(ftype)
16169  iprot.readFieldEnd()
16170  iprot.readStructEnd()
16171 
16172  def write(self, oprot):
16173  if oprot._fast_encode is not None and self.thrift_spec is not None:
16174  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
16175  return
16176  oprot.writeStructBegin('share_dashboards_result')
16177  if self.e is not None:
16178  oprot.writeFieldBegin('e', TType.STRUCT, 1)
16179  self.e.write(oprot)
16180  oprot.writeFieldEnd()
16181  oprot.writeFieldStop()
16182  oprot.writeStructEnd()
16183 
16184  def validate(self):
16185  return
16186 
16187  def __repr__(self):
16188  L = ['%s=%r' % (key, value)
16189  for key, value in self.__dict__.items()]
16190  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16191 
16192  def __eq__(self, other):
16193  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16194 
16195  def __ne__(self, other):
16196  return not (self == other)
16197 all_structs.append(share_dashboards_result)
16198 share_dashboards_result.thrift_spec = (
16199  None, # 0
16200  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
16201 )
16202 
16203 
16205  """
16206  Attributes:
16207  - session
16208  - dashboard_ids
16209 
16210  """
16211 
16212 
16213  def __init__(self, session=None, dashboard_ids=None,):
16214  self.session = session
16215  self.dashboard_ids = dashboard_ids
16216 
16217  def read(self, iprot):
16218  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
16219  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
16220  return
16221  iprot.readStructBegin()
16222  while True:
16223  (fname, ftype, fid) = iprot.readFieldBegin()
16224  if ftype == TType.STOP:
16225  break
16226  if fid == 1:
16227  if ftype == TType.STRING:
16228  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
16229  else:
16230  iprot.skip(ftype)
16231  elif fid == 2:
16232  if ftype == TType.LIST:
16233  self.dashboard_ids = []
16234  (_etype435, _size432) = iprot.readListBegin()
16235  for _i436 in range(_size432):
16236  _elem437 = iprot.readI32()
16237  self.dashboard_ids.append(_elem437)
16238  iprot.readListEnd()
16239  else:
16240  iprot.skip(ftype)
16241  else:
16242  iprot.skip(ftype)
16243  iprot.readFieldEnd()
16244  iprot.readStructEnd()
16245 
16246  def write(self, oprot):
16247  if oprot._fast_encode is not None and self.thrift_spec is not None:
16248  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
16249  return
16250  oprot.writeStructBegin('delete_dashboards_args')
16251  if self.session is not None:
16252  oprot.writeFieldBegin('session', TType.STRING, 1)
16253  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
16254  oprot.writeFieldEnd()
16255  if self.dashboard_ids is not None:
16256  oprot.writeFieldBegin('dashboard_ids', TType.LIST, 2)
16257  oprot.writeListBegin(TType.I32, len(self.dashboard_ids))
16258  for iter438 in self.dashboard_ids:
16259  oprot.writeI32(iter438)
16260  oprot.writeListEnd()
16261  oprot.writeFieldEnd()
16262  oprot.writeFieldStop()
16263  oprot.writeStructEnd()
16264 
16265  def validate(self):
16266  return
16267 
16268  def __repr__(self):
16269  L = ['%s=%r' % (key, value)
16270  for key, value in self.__dict__.items()]
16271  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16272 
16273  def __eq__(self, other):
16274  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16275 
16276  def __ne__(self, other):
16277  return not (self == other)
16278 all_structs.append(delete_dashboards_args)
16279 delete_dashboards_args.thrift_spec = (
16280  None, # 0
16281  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
16282  (2, TType.LIST, 'dashboard_ids', (TType.I32, None, False), None, ), # 2
16283 )
16284 
16285 
16287  """
16288  Attributes:
16289  - e
16290 
16291  """
16292 
16293 
16294  def __init__(self, e=None,):
16295  self.e = e
16296 
16297  def read(self, iprot):
16298  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
16299  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
16300  return
16301  iprot.readStructBegin()
16302  while True:
16303  (fname, ftype, fid) = iprot.readFieldBegin()
16304  if ftype == TType.STOP:
16305  break
16306  if fid == 1:
16307  if ftype == TType.STRUCT:
16308  self.e = TDBException.read(iprot)
16309  else:
16310  iprot.skip(ftype)
16311  else:
16312  iprot.skip(ftype)
16313  iprot.readFieldEnd()
16314  iprot.readStructEnd()
16315 
16316  def write(self, oprot):
16317  if oprot._fast_encode is not None and self.thrift_spec is not None:
16318  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
16319  return
16320  oprot.writeStructBegin('delete_dashboards_result')
16321  if self.e is not None:
16322  oprot.writeFieldBegin('e', TType.STRUCT, 1)
16323  self.e.write(oprot)
16324  oprot.writeFieldEnd()
16325  oprot.writeFieldStop()
16326  oprot.writeStructEnd()
16327 
16328  def validate(self):
16329  return
16330 
16331  def __repr__(self):
16332  L = ['%s=%r' % (key, value)
16333  for key, value in self.__dict__.items()]
16334  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16335 
16336  def __eq__(self, other):
16337  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16338 
16339  def __ne__(self, other):
16340  return not (self == other)
16341 all_structs.append(delete_dashboards_result)
16342 delete_dashboards_result.thrift_spec = (
16343  None, # 0
16344  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
16345 )
16346 
16347 
16348 class share_dashboard_args(object):
16349  """
16350  Attributes:
16351  - session
16352  - dashboard_id
16353  - groups
16354  - objects
16355  - permissions
16356  - grant_role
16357 
16358  """
16359 
16360 
16361  def __init__(self, session=None, dashboard_id=None, groups=None, objects=None, permissions=None, grant_role=False,):
16362  self.session = session
16363  self.dashboard_id = dashboard_id
16364  self.groups = groups
16365  self.objects = objects
16366  self.permissions = permissions
16367  self.grant_role = grant_role
16368 
16369  def read(self, iprot):
16370  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
16371  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
16372  return
16373  iprot.readStructBegin()
16374  while True:
16375  (fname, ftype, fid) = iprot.readFieldBegin()
16376  if ftype == TType.STOP:
16377  break
16378  if fid == 1:
16379  if ftype == TType.STRING:
16380  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
16381  else:
16382  iprot.skip(ftype)
16383  elif fid == 2:
16384  if ftype == TType.I32:
16385  self.dashboard_id = iprot.readI32()
16386  else:
16387  iprot.skip(ftype)
16388  elif fid == 3:
16389  if ftype == TType.LIST:
16390  self.groups = []
16391  (_etype442, _size439) = iprot.readListBegin()
16392  for _i443 in range(_size439):
16393  _elem444 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
16394  self.groups.append(_elem444)
16395  iprot.readListEnd()
16396  else:
16397  iprot.skip(ftype)
16398  elif fid == 4:
16399  if ftype == TType.LIST:
16400  self.objects = []
16401  (_etype448, _size445) = iprot.readListBegin()
16402  for _i449 in range(_size445):
16403  _elem450 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
16404  self.objects.append(_elem450)
16405  iprot.readListEnd()
16406  else:
16407  iprot.skip(ftype)
16408  elif fid == 5:
16409  if ftype == TType.STRUCT:
16410  self.permissions = TDashboardPermissions()
16411  self.permissions.read(iprot)
16412  else:
16413  iprot.skip(ftype)
16414  elif fid == 6:
16415  if ftype == TType.BOOL:
16416  self.grant_role = iprot.readBool()
16417  else:
16418  iprot.skip(ftype)
16419  else:
16420  iprot.skip(ftype)
16421  iprot.readFieldEnd()
16422  iprot.readStructEnd()
16423 
16424  def write(self, oprot):
16425  if oprot._fast_encode is not None and self.thrift_spec is not None:
16426  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
16427  return
16428  oprot.writeStructBegin('share_dashboard_args')
16429  if self.session is not None:
16430  oprot.writeFieldBegin('session', TType.STRING, 1)
16431  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
16432  oprot.writeFieldEnd()
16433  if self.dashboard_id is not None:
16434  oprot.writeFieldBegin('dashboard_id', TType.I32, 2)
16435  oprot.writeI32(self.dashboard_id)
16436  oprot.writeFieldEnd()
16437  if self.groups is not None:
16438  oprot.writeFieldBegin('groups', TType.LIST, 3)
16439  oprot.writeListBegin(TType.STRING, len(self.groups))
16440  for iter451 in self.groups:
16441  oprot.writeString(iter451.encode('utf-8') if sys.version_info[0] == 2 else iter451)
16442  oprot.writeListEnd()
16443  oprot.writeFieldEnd()
16444  if self.objects is not None:
16445  oprot.writeFieldBegin('objects', TType.LIST, 4)
16446  oprot.writeListBegin(TType.STRING, len(self.objects))
16447  for iter452 in self.objects:
16448  oprot.writeString(iter452.encode('utf-8') if sys.version_info[0] == 2 else iter452)
16449  oprot.writeListEnd()
16450  oprot.writeFieldEnd()
16451  if self.permissions is not None:
16452  oprot.writeFieldBegin('permissions', TType.STRUCT, 5)
16453  self.permissions.write(oprot)
16454  oprot.writeFieldEnd()
16455  if self.grant_role is not None:
16456  oprot.writeFieldBegin('grant_role', TType.BOOL, 6)
16457  oprot.writeBool(self.grant_role)
16458  oprot.writeFieldEnd()
16459  oprot.writeFieldStop()
16460  oprot.writeStructEnd()
16461 
16462  def validate(self):
16463  return
16464 
16465  def __repr__(self):
16466  L = ['%s=%r' % (key, value)
16467  for key, value in self.__dict__.items()]
16468  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16469 
16470  def __eq__(self, other):
16471  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16472 
16473  def __ne__(self, other):
16474  return not (self == other)
16475 all_structs.append(share_dashboard_args)
16476 share_dashboard_args.thrift_spec = (
16477  None, # 0
16478  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
16479  (2, TType.I32, 'dashboard_id', None, None, ), # 2
16480  (3, TType.LIST, 'groups', (TType.STRING, 'UTF8', False), None, ), # 3
16481  (4, TType.LIST, 'objects', (TType.STRING, 'UTF8', False), None, ), # 4
16482  (5, TType.STRUCT, 'permissions', [TDashboardPermissions, None], None, ), # 5
16483  (6, TType.BOOL, 'grant_role', None, False, ), # 6
16484 )
16485 
16486 
16488  """
16489  Attributes:
16490  - e
16491 
16492  """
16493 
16494 
16495  def __init__(self, e=None,):
16496  self.e = e
16497 
16498  def read(self, iprot):
16499  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
16500  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
16501  return
16502  iprot.readStructBegin()
16503  while True:
16504  (fname, ftype, fid) = iprot.readFieldBegin()
16505  if ftype == TType.STOP:
16506  break
16507  if fid == 1:
16508  if ftype == TType.STRUCT:
16509  self.e = TDBException.read(iprot)
16510  else:
16511  iprot.skip(ftype)
16512  else:
16513  iprot.skip(ftype)
16514  iprot.readFieldEnd()
16515  iprot.readStructEnd()
16516 
16517  def write(self, oprot):
16518  if oprot._fast_encode is not None and self.thrift_spec is not None:
16519  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
16520  return
16521  oprot.writeStructBegin('share_dashboard_result')
16522  if self.e is not None:
16523  oprot.writeFieldBegin('e', TType.STRUCT, 1)
16524  self.e.write(oprot)
16525  oprot.writeFieldEnd()
16526  oprot.writeFieldStop()
16527  oprot.writeStructEnd()
16528 
16529  def validate(self):
16530  return
16531 
16532  def __repr__(self):
16533  L = ['%s=%r' % (key, value)
16534  for key, value in self.__dict__.items()]
16535  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16536 
16537  def __eq__(self, other):
16538  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16539 
16540  def __ne__(self, other):
16541  return not (self == other)
16542 all_structs.append(share_dashboard_result)
16543 share_dashboard_result.thrift_spec = (
16544  None, # 0
16545  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
16546 )
16547 
16548 
16550  """
16551  Attributes:
16552  - session
16553  - dashboard_id
16554  - groups
16555  - objects
16556  - permissions
16557 
16558  """
16559 
16560 
16561  def __init__(self, session=None, dashboard_id=None, groups=None, objects=None, permissions=None,):
16562  self.session = session
16563  self.dashboard_id = dashboard_id
16564  self.groups = groups
16565  self.objects = objects
16566  self.permissions = permissions
16567 
16568  def read(self, iprot):
16569  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
16570  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
16571  return
16572  iprot.readStructBegin()
16573  while True:
16574  (fname, ftype, fid) = iprot.readFieldBegin()
16575  if ftype == TType.STOP:
16576  break
16577  if fid == 1:
16578  if ftype == TType.STRING:
16579  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
16580  else:
16581  iprot.skip(ftype)
16582  elif fid == 2:
16583  if ftype == TType.I32:
16584  self.dashboard_id = iprot.readI32()
16585  else:
16586  iprot.skip(ftype)
16587  elif fid == 3:
16588  if ftype == TType.LIST:
16589  self.groups = []
16590  (_etype456, _size453) = iprot.readListBegin()
16591  for _i457 in range(_size453):
16592  _elem458 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
16593  self.groups.append(_elem458)
16594  iprot.readListEnd()
16595  else:
16596  iprot.skip(ftype)
16597  elif fid == 4:
16598  if ftype == TType.LIST:
16599  self.objects = []
16600  (_etype462, _size459) = iprot.readListBegin()
16601  for _i463 in range(_size459):
16602  _elem464 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
16603  self.objects.append(_elem464)
16604  iprot.readListEnd()
16605  else:
16606  iprot.skip(ftype)
16607  elif fid == 5:
16608  if ftype == TType.STRUCT:
16609  self.permissions = TDashboardPermissions()
16610  self.permissions.read(iprot)
16611  else:
16612  iprot.skip(ftype)
16613  else:
16614  iprot.skip(ftype)
16615  iprot.readFieldEnd()
16616  iprot.readStructEnd()
16617 
16618  def write(self, oprot):
16619  if oprot._fast_encode is not None and self.thrift_spec is not None:
16620  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
16621  return
16622  oprot.writeStructBegin('unshare_dashboard_args')
16623  if self.session is not None:
16624  oprot.writeFieldBegin('session', TType.STRING, 1)
16625  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
16626  oprot.writeFieldEnd()
16627  if self.dashboard_id is not None:
16628  oprot.writeFieldBegin('dashboard_id', TType.I32, 2)
16629  oprot.writeI32(self.dashboard_id)
16630  oprot.writeFieldEnd()
16631  if self.groups is not None:
16632  oprot.writeFieldBegin('groups', TType.LIST, 3)
16633  oprot.writeListBegin(TType.STRING, len(self.groups))
16634  for iter465 in self.groups:
16635  oprot.writeString(iter465.encode('utf-8') if sys.version_info[0] == 2 else iter465)
16636  oprot.writeListEnd()
16637  oprot.writeFieldEnd()
16638  if self.objects is not None:
16639  oprot.writeFieldBegin('objects', TType.LIST, 4)
16640  oprot.writeListBegin(TType.STRING, len(self.objects))
16641  for iter466 in self.objects:
16642  oprot.writeString(iter466.encode('utf-8') if sys.version_info[0] == 2 else iter466)
16643  oprot.writeListEnd()
16644  oprot.writeFieldEnd()
16645  if self.permissions is not None:
16646  oprot.writeFieldBegin('permissions', TType.STRUCT, 5)
16647  self.permissions.write(oprot)
16648  oprot.writeFieldEnd()
16649  oprot.writeFieldStop()
16650  oprot.writeStructEnd()
16651 
16652  def validate(self):
16653  return
16654 
16655  def __repr__(self):
16656  L = ['%s=%r' % (key, value)
16657  for key, value in self.__dict__.items()]
16658  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16659 
16660  def __eq__(self, other):
16661  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16662 
16663  def __ne__(self, other):
16664  return not (self == other)
16665 all_structs.append(unshare_dashboard_args)
16666 unshare_dashboard_args.thrift_spec = (
16667  None, # 0
16668  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
16669  (2, TType.I32, 'dashboard_id', None, None, ), # 2
16670  (3, TType.LIST, 'groups', (TType.STRING, 'UTF8', False), None, ), # 3
16671  (4, TType.LIST, 'objects', (TType.STRING, 'UTF8', False), None, ), # 4
16672  (5, TType.STRUCT, 'permissions', [TDashboardPermissions, None], None, ), # 5
16673 )
16674 
16675 
16677  """
16678  Attributes:
16679  - e
16680 
16681  """
16682 
16683 
16684  def __init__(self, e=None,):
16685  self.e = e
16686 
16687  def read(self, iprot):
16688  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
16689  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
16690  return
16691  iprot.readStructBegin()
16692  while True:
16693  (fname, ftype, fid) = iprot.readFieldBegin()
16694  if ftype == TType.STOP:
16695  break
16696  if fid == 1:
16697  if ftype == TType.STRUCT:
16698  self.e = TDBException.read(iprot)
16699  else:
16700  iprot.skip(ftype)
16701  else:
16702  iprot.skip(ftype)
16703  iprot.readFieldEnd()
16704  iprot.readStructEnd()
16705 
16706  def write(self, oprot):
16707  if oprot._fast_encode is not None and self.thrift_spec is not None:
16708  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
16709  return
16710  oprot.writeStructBegin('unshare_dashboard_result')
16711  if self.e is not None:
16712  oprot.writeFieldBegin('e', TType.STRUCT, 1)
16713  self.e.write(oprot)
16714  oprot.writeFieldEnd()
16715  oprot.writeFieldStop()
16716  oprot.writeStructEnd()
16717 
16718  def validate(self):
16719  return
16720 
16721  def __repr__(self):
16722  L = ['%s=%r' % (key, value)
16723  for key, value in self.__dict__.items()]
16724  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16725 
16726  def __eq__(self, other):
16727  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16728 
16729  def __ne__(self, other):
16730  return not (self == other)
16731 all_structs.append(unshare_dashboard_result)
16732 unshare_dashboard_result.thrift_spec = (
16733  None, # 0
16734  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
16735 )
16736 
16737 
16739  """
16740  Attributes:
16741  - session
16742  - dashboard_ids
16743  - groups
16744  - permissions
16745 
16746  """
16747 
16748 
16749  def __init__(self, session=None, dashboard_ids=None, groups=None, permissions=None,):
16750  self.session = session
16751  self.dashboard_ids = dashboard_ids
16752  self.groups = groups
16753  self.permissions = permissions
16754 
16755  def read(self, iprot):
16756  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
16757  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
16758  return
16759  iprot.readStructBegin()
16760  while True:
16761  (fname, ftype, fid) = iprot.readFieldBegin()
16762  if ftype == TType.STOP:
16763  break
16764  if fid == 1:
16765  if ftype == TType.STRING:
16766  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
16767  else:
16768  iprot.skip(ftype)
16769  elif fid == 2:
16770  if ftype == TType.LIST:
16771  self.dashboard_ids = []
16772  (_etype470, _size467) = iprot.readListBegin()
16773  for _i471 in range(_size467):
16774  _elem472 = iprot.readI32()
16775  self.dashboard_ids.append(_elem472)
16776  iprot.readListEnd()
16777  else:
16778  iprot.skip(ftype)
16779  elif fid == 3:
16780  if ftype == TType.LIST:
16781  self.groups = []
16782  (_etype476, _size473) = iprot.readListBegin()
16783  for _i477 in range(_size473):
16784  _elem478 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
16785  self.groups.append(_elem478)
16786  iprot.readListEnd()
16787  else:
16788  iprot.skip(ftype)
16789  elif fid == 4:
16790  if ftype == TType.STRUCT:
16791  self.permissions = TDashboardPermissions()
16792  self.permissions.read(iprot)
16793  else:
16794  iprot.skip(ftype)
16795  else:
16796  iprot.skip(ftype)
16797  iprot.readFieldEnd()
16798  iprot.readStructEnd()
16799 
16800  def write(self, oprot):
16801  if oprot._fast_encode is not None and self.thrift_spec is not None:
16802  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
16803  return
16804  oprot.writeStructBegin('unshare_dashboards_args')
16805  if self.session is not None:
16806  oprot.writeFieldBegin('session', TType.STRING, 1)
16807  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
16808  oprot.writeFieldEnd()
16809  if self.dashboard_ids is not None:
16810  oprot.writeFieldBegin('dashboard_ids', TType.LIST, 2)
16811  oprot.writeListBegin(TType.I32, len(self.dashboard_ids))
16812  for iter479 in self.dashboard_ids:
16813  oprot.writeI32(iter479)
16814  oprot.writeListEnd()
16815  oprot.writeFieldEnd()
16816  if self.groups is not None:
16817  oprot.writeFieldBegin('groups', TType.LIST, 3)
16818  oprot.writeListBegin(TType.STRING, len(self.groups))
16819  for iter480 in self.groups:
16820  oprot.writeString(iter480.encode('utf-8') if sys.version_info[0] == 2 else iter480)
16821  oprot.writeListEnd()
16822  oprot.writeFieldEnd()
16823  if self.permissions is not None:
16824  oprot.writeFieldBegin('permissions', TType.STRUCT, 4)
16825  self.permissions.write(oprot)
16826  oprot.writeFieldEnd()
16827  oprot.writeFieldStop()
16828  oprot.writeStructEnd()
16829 
16830  def validate(self):
16831  return
16832 
16833  def __repr__(self):
16834  L = ['%s=%r' % (key, value)
16835  for key, value in self.__dict__.items()]
16836  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16837 
16838  def __eq__(self, other):
16839  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16840 
16841  def __ne__(self, other):
16842  return not (self == other)
16843 all_structs.append(unshare_dashboards_args)
16844 unshare_dashboards_args.thrift_spec = (
16845  None, # 0
16846  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
16847  (2, TType.LIST, 'dashboard_ids', (TType.I32, None, False), None, ), # 2
16848  (3, TType.LIST, 'groups', (TType.STRING, 'UTF8', False), None, ), # 3
16849  (4, TType.STRUCT, 'permissions', [TDashboardPermissions, None], None, ), # 4
16850 )
16851 
16852 
16854  """
16855  Attributes:
16856  - e
16857 
16858  """
16859 
16860 
16861  def __init__(self, e=None,):
16862  self.e = e
16863 
16864  def read(self, iprot):
16865  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
16866  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
16867  return
16868  iprot.readStructBegin()
16869  while True:
16870  (fname, ftype, fid) = iprot.readFieldBegin()
16871  if ftype == TType.STOP:
16872  break
16873  if fid == 1:
16874  if ftype == TType.STRUCT:
16875  self.e = TDBException.read(iprot)
16876  else:
16877  iprot.skip(ftype)
16878  else:
16879  iprot.skip(ftype)
16880  iprot.readFieldEnd()
16881  iprot.readStructEnd()
16882 
16883  def write(self, oprot):
16884  if oprot._fast_encode is not None and self.thrift_spec is not None:
16885  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
16886  return
16887  oprot.writeStructBegin('unshare_dashboards_result')
16888  if self.e is not None:
16889  oprot.writeFieldBegin('e', TType.STRUCT, 1)
16890  self.e.write(oprot)
16891  oprot.writeFieldEnd()
16892  oprot.writeFieldStop()
16893  oprot.writeStructEnd()
16894 
16895  def validate(self):
16896  return
16897 
16898  def __repr__(self):
16899  L = ['%s=%r' % (key, value)
16900  for key, value in self.__dict__.items()]
16901  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16902 
16903  def __eq__(self, other):
16904  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16905 
16906  def __ne__(self, other):
16907  return not (self == other)
16908 all_structs.append(unshare_dashboards_result)
16909 unshare_dashboards_result.thrift_spec = (
16910  None, # 0
16911  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
16912 )
16913 
16914 
16916  """
16917  Attributes:
16918  - session
16919  - dashboard_id
16920 
16921  """
16922 
16923 
16924  def __init__(self, session=None, dashboard_id=None,):
16925  self.session = session
16926  self.dashboard_id = dashboard_id
16927 
16928  def read(self, iprot):
16929  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
16930  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
16931  return
16932  iprot.readStructBegin()
16933  while True:
16934  (fname, ftype, fid) = iprot.readFieldBegin()
16935  if ftype == TType.STOP:
16936  break
16937  if fid == 1:
16938  if ftype == TType.STRING:
16939  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
16940  else:
16941  iprot.skip(ftype)
16942  elif fid == 2:
16943  if ftype == TType.I32:
16944  self.dashboard_id = iprot.readI32()
16945  else:
16946  iprot.skip(ftype)
16947  else:
16948  iprot.skip(ftype)
16949  iprot.readFieldEnd()
16950  iprot.readStructEnd()
16951 
16952  def write(self, oprot):
16953  if oprot._fast_encode is not None and self.thrift_spec is not None:
16954  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
16955  return
16956  oprot.writeStructBegin('get_dashboard_grantees_args')
16957  if self.session is not None:
16958  oprot.writeFieldBegin('session', TType.STRING, 1)
16959  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
16960  oprot.writeFieldEnd()
16961  if self.dashboard_id is not None:
16962  oprot.writeFieldBegin('dashboard_id', TType.I32, 2)
16963  oprot.writeI32(self.dashboard_id)
16964  oprot.writeFieldEnd()
16965  oprot.writeFieldStop()
16966  oprot.writeStructEnd()
16967 
16968  def validate(self):
16969  return
16970 
16971  def __repr__(self):
16972  L = ['%s=%r' % (key, value)
16973  for key, value in self.__dict__.items()]
16974  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16975 
16976  def __eq__(self, other):
16977  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16978 
16979  def __ne__(self, other):
16980  return not (self == other)
16981 all_structs.append(get_dashboard_grantees_args)
16982 get_dashboard_grantees_args.thrift_spec = (
16983  None, # 0
16984  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
16985  (2, TType.I32, 'dashboard_id', None, None, ), # 2
16986 )
16987 
16988 
16990  """
16991  Attributes:
16992  - success
16993  - e
16994 
16995  """
16996 
16997 
16998  def __init__(self, success=None, e=None,):
16999  self.success = success
17000  self.e = e
17001 
17002  def read(self, iprot):
17003  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
17004  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
17005  return
17006  iprot.readStructBegin()
17007  while True:
17008  (fname, ftype, fid) = iprot.readFieldBegin()
17009  if ftype == TType.STOP:
17010  break
17011  if fid == 0:
17012  if ftype == TType.LIST:
17013  self.success = []
17014  (_etype484, _size481) = iprot.readListBegin()
17015  for _i485 in range(_size481):
17016  _elem486 = TDashboardGrantees()
17017  _elem486.read(iprot)
17018  self.success.append(_elem486)
17019  iprot.readListEnd()
17020  else:
17021  iprot.skip(ftype)
17022  elif fid == 1:
17023  if ftype == TType.STRUCT:
17024  self.e = TDBException.read(iprot)
17025  else:
17026  iprot.skip(ftype)
17027  else:
17028  iprot.skip(ftype)
17029  iprot.readFieldEnd()
17030  iprot.readStructEnd()
17031 
17032  def write(self, oprot):
17033  if oprot._fast_encode is not None and self.thrift_spec is not None:
17034  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
17035  return
17036  oprot.writeStructBegin('get_dashboard_grantees_result')
17037  if self.success is not None:
17038  oprot.writeFieldBegin('success', TType.LIST, 0)
17039  oprot.writeListBegin(TType.STRUCT, len(self.success))
17040  for iter487 in self.success:
17041  iter487.write(oprot)
17042  oprot.writeListEnd()
17043  oprot.writeFieldEnd()
17044  if self.e is not None:
17045  oprot.writeFieldBegin('e', TType.STRUCT, 1)
17046  self.e.write(oprot)
17047  oprot.writeFieldEnd()
17048  oprot.writeFieldStop()
17049  oprot.writeStructEnd()
17050 
17051  def validate(self):
17052  return
17053 
17054  def __repr__(self):
17055  L = ['%s=%r' % (key, value)
17056  for key, value in self.__dict__.items()]
17057  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17058 
17059  def __eq__(self, other):
17060  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17061 
17062  def __ne__(self, other):
17063  return not (self == other)
17064 all_structs.append(get_dashboard_grantees_result)
17065 get_dashboard_grantees_result.thrift_spec = (
17066  (0, TType.LIST, 'success', (TType.STRUCT, [TDashboardGrantees, None], False), None, ), # 0
17067  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
17068 )
17069 
17070 
17071 class get_link_view_args(object):
17072  """
17073  Attributes:
17074  - session
17075  - link
17076 
17077  """
17078 
17079 
17080  def __init__(self, session=None, link=None,):
17081  self.session = session
17082  self.link = link
17083 
17084  def read(self, iprot):
17085  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
17086  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
17087  return
17088  iprot.readStructBegin()
17089  while True:
17090  (fname, ftype, fid) = iprot.readFieldBegin()
17091  if ftype == TType.STOP:
17092  break
17093  if fid == 1:
17094  if ftype == TType.STRING:
17095  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
17096  else:
17097  iprot.skip(ftype)
17098  elif fid == 2:
17099  if ftype == TType.STRING:
17100  self.link = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
17101  else:
17102  iprot.skip(ftype)
17103  else:
17104  iprot.skip(ftype)
17105  iprot.readFieldEnd()
17106  iprot.readStructEnd()
17107 
17108  def write(self, oprot):
17109  if oprot._fast_encode is not None and self.thrift_spec is not None:
17110  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
17111  return
17112  oprot.writeStructBegin('get_link_view_args')
17113  if self.session is not None:
17114  oprot.writeFieldBegin('session', TType.STRING, 1)
17115  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
17116  oprot.writeFieldEnd()
17117  if self.link is not None:
17118  oprot.writeFieldBegin('link', TType.STRING, 2)
17119  oprot.writeString(self.link.encode('utf-8') if sys.version_info[0] == 2 else self.link)
17120  oprot.writeFieldEnd()
17121  oprot.writeFieldStop()
17122  oprot.writeStructEnd()
17123 
17124  def validate(self):
17125  return
17126 
17127  def __repr__(self):
17128  L = ['%s=%r' % (key, value)
17129  for key, value in self.__dict__.items()]
17130  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17131 
17132  def __eq__(self, other):
17133  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17134 
17135  def __ne__(self, other):
17136  return not (self == other)
17137 all_structs.append(get_link_view_args)
17138 get_link_view_args.thrift_spec = (
17139  None, # 0
17140  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
17141  (2, TType.STRING, 'link', 'UTF8', None, ), # 2
17142 )
17143 
17144 
17145 class get_link_view_result(object):
17146  """
17147  Attributes:
17148  - success
17149  - e
17150 
17151  """
17152 
17153 
17154  def __init__(self, success=None, e=None,):
17155  self.success = success
17156  self.e = e
17157 
17158  def read(self, iprot):
17159  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
17160  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
17161  return
17162  iprot.readStructBegin()
17163  while True:
17164  (fname, ftype, fid) = iprot.readFieldBegin()
17165  if ftype == TType.STOP:
17166  break
17167  if fid == 0:
17168  if ftype == TType.STRUCT:
17169  self.success = TFrontendView()
17170  self.success.read(iprot)
17171  else:
17172  iprot.skip(ftype)
17173  elif fid == 1:
17174  if ftype == TType.STRUCT:
17175  self.e = TDBException.read(iprot)
17176  else:
17177  iprot.skip(ftype)
17178  else:
17179  iprot.skip(ftype)
17180  iprot.readFieldEnd()
17181  iprot.readStructEnd()
17182 
17183  def write(self, oprot):
17184  if oprot._fast_encode is not None and self.thrift_spec is not None:
17185  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
17186  return
17187  oprot.writeStructBegin('get_link_view_result')
17188  if self.success is not None:
17189  oprot.writeFieldBegin('success', TType.STRUCT, 0)
17190  self.success.write(oprot)
17191  oprot.writeFieldEnd()
17192  if self.e is not None:
17193  oprot.writeFieldBegin('e', TType.STRUCT, 1)
17194  self.e.write(oprot)
17195  oprot.writeFieldEnd()
17196  oprot.writeFieldStop()
17197  oprot.writeStructEnd()
17198 
17199  def validate(self):
17200  return
17201 
17202  def __repr__(self):
17203  L = ['%s=%r' % (key, value)
17204  for key, value in self.__dict__.items()]
17205  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17206 
17207  def __eq__(self, other):
17208  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17209 
17210  def __ne__(self, other):
17211  return not (self == other)
17212 all_structs.append(get_link_view_result)
17213 get_link_view_result.thrift_spec = (
17214  (0, TType.STRUCT, 'success', [TFrontendView, None], None, ), # 0
17215  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
17216 )
17217 
17218 
17219 class create_link_args(object):
17220  """
17221  Attributes:
17222  - session
17223  - view_state
17224  - view_metadata
17225 
17226  """
17227 
17228 
17229  def __init__(self, session=None, view_state=None, view_metadata=None,):
17230  self.session = session
17231  self.view_state = view_state
17232  self.view_metadata = view_metadata
17233 
17234  def read(self, iprot):
17235  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
17236  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
17237  return
17238  iprot.readStructBegin()
17239  while True:
17240  (fname, ftype, fid) = iprot.readFieldBegin()
17241  if ftype == TType.STOP:
17242  break
17243  if fid == 1:
17244  if ftype == TType.STRING:
17245  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
17246  else:
17247  iprot.skip(ftype)
17248  elif fid == 2:
17249  if ftype == TType.STRING:
17250  self.view_state = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
17251  else:
17252  iprot.skip(ftype)
17253  elif fid == 3:
17254  if ftype == TType.STRING:
17255  self.view_metadata = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
17256  else:
17257  iprot.skip(ftype)
17258  else:
17259  iprot.skip(ftype)
17260  iprot.readFieldEnd()
17261  iprot.readStructEnd()
17262 
17263  def write(self, oprot):
17264  if oprot._fast_encode is not None and self.thrift_spec is not None:
17265  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
17266  return
17267  oprot.writeStructBegin('create_link_args')
17268  if self.session is not None:
17269  oprot.writeFieldBegin('session', TType.STRING, 1)
17270  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
17271  oprot.writeFieldEnd()
17272  if self.view_state is not None:
17273  oprot.writeFieldBegin('view_state', TType.STRING, 2)
17274  oprot.writeString(self.view_state.encode('utf-8') if sys.version_info[0] == 2 else self.view_state)
17275  oprot.writeFieldEnd()
17276  if self.view_metadata is not None:
17277  oprot.writeFieldBegin('view_metadata', TType.STRING, 3)
17278  oprot.writeString(self.view_metadata.encode('utf-8') if sys.version_info[0] == 2 else self.view_metadata)
17279  oprot.writeFieldEnd()
17280  oprot.writeFieldStop()
17281  oprot.writeStructEnd()
17282 
17283  def validate(self):
17284  return
17285 
17286  def __repr__(self):
17287  L = ['%s=%r' % (key, value)
17288  for key, value in self.__dict__.items()]
17289  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17290 
17291  def __eq__(self, other):
17292  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17293 
17294  def __ne__(self, other):
17295  return not (self == other)
17296 all_structs.append(create_link_args)
17297 create_link_args.thrift_spec = (
17298  None, # 0
17299  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
17300  (2, TType.STRING, 'view_state', 'UTF8', None, ), # 2
17301  (3, TType.STRING, 'view_metadata', 'UTF8', None, ), # 3
17302 )
17303 
17304 
17305 class create_link_result(object):
17306  """
17307  Attributes:
17308  - success
17309  - e
17310 
17311  """
17312 
17313 
17314  def __init__(self, success=None, e=None,):
17315  self.success = success
17316  self.e = e
17317 
17318  def read(self, iprot):
17319  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
17320  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
17321  return
17322  iprot.readStructBegin()
17323  while True:
17324  (fname, ftype, fid) = iprot.readFieldBegin()
17325  if ftype == TType.STOP:
17326  break
17327  if fid == 0:
17328  if ftype == TType.STRING:
17329  self.success = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
17330  else:
17331  iprot.skip(ftype)
17332  elif fid == 1:
17333  if ftype == TType.STRUCT:
17334  self.e = TDBException.read(iprot)
17335  else:
17336  iprot.skip(ftype)
17337  else:
17338  iprot.skip(ftype)
17339  iprot.readFieldEnd()
17340  iprot.readStructEnd()
17341 
17342  def write(self, oprot):
17343  if oprot._fast_encode is not None and self.thrift_spec is not None:
17344  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
17345  return
17346  oprot.writeStructBegin('create_link_result')
17347  if self.success is not None:
17348  oprot.writeFieldBegin('success', TType.STRING, 0)
17349  oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
17350  oprot.writeFieldEnd()
17351  if self.e is not None:
17352  oprot.writeFieldBegin('e', TType.STRUCT, 1)
17353  self.e.write(oprot)
17354  oprot.writeFieldEnd()
17355  oprot.writeFieldStop()
17356  oprot.writeStructEnd()
17357 
17358  def validate(self):
17359  return
17360 
17361  def __repr__(self):
17362  L = ['%s=%r' % (key, value)
17363  for key, value in self.__dict__.items()]
17364  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17365 
17366  def __eq__(self, other):
17367  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17368 
17369  def __ne__(self, other):
17370  return not (self == other)
17371 all_structs.append(create_link_result)
17372 create_link_result.thrift_spec = (
17373  (0, TType.STRING, 'success', 'UTF8', None, ), # 0
17374  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
17375 )
17376 
17377 
17379  """
17380  Attributes:
17381  - session
17382  - table_name
17383  - rows
17384  - column_names
17385 
17386  """
17387 
17388 
17389  def __init__(self, session=None, table_name=None, rows=None, column_names=[
17390  ],):
17391  self.session = session
17392  self.table_name = table_name
17393  self.rows = rows
17394  if column_names is self.thrift_spec[4][4]:
17395  column_names = [
17396  ]
17397  self.column_names = column_names
17398 
17399  def read(self, iprot):
17400  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
17401  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
17402  return
17403  iprot.readStructBegin()
17404  while True:
17405  (fname, ftype, fid) = iprot.readFieldBegin()
17406  if ftype == TType.STOP:
17407  break
17408  if fid == 1:
17409  if ftype == TType.STRING:
17410  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
17411  else:
17412  iprot.skip(ftype)
17413  elif fid == 2:
17414  if ftype == TType.STRING:
17415  self.table_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
17416  else:
17417  iprot.skip(ftype)
17418  elif fid == 3:
17419  if ftype == TType.LIST:
17420  self.rows = []
17421  (_etype491, _size488) = iprot.readListBegin()
17422  for _i492 in range(_size488):
17423  _elem493 = TRow()
17424  _elem493.read(iprot)
17425  self.rows.append(_elem493)
17426  iprot.readListEnd()
17427  else:
17428  iprot.skip(ftype)
17429  elif fid == 4:
17430  if ftype == TType.LIST:
17431  self.column_names = []
17432  (_etype497, _size494) = iprot.readListBegin()
17433  for _i498 in range(_size494):
17434  _elem499 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
17435  self.column_names.append(_elem499)
17436  iprot.readListEnd()
17437  else:
17438  iprot.skip(ftype)
17439  else:
17440  iprot.skip(ftype)
17441  iprot.readFieldEnd()
17442  iprot.readStructEnd()
17443 
17444  def write(self, oprot):
17445  if oprot._fast_encode is not None and self.thrift_spec is not None:
17446  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
17447  return
17448  oprot.writeStructBegin('load_table_binary_args')
17449  if self.session is not None:
17450  oprot.writeFieldBegin('session', TType.STRING, 1)
17451  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
17452  oprot.writeFieldEnd()
17453  if self.table_name is not None:
17454  oprot.writeFieldBegin('table_name', TType.STRING, 2)
17455  oprot.writeString(self.table_name.encode('utf-8') if sys.version_info[0] == 2 else self.table_name)
17456  oprot.writeFieldEnd()
17457  if self.rows is not None:
17458  oprot.writeFieldBegin('rows', TType.LIST, 3)
17459  oprot.writeListBegin(TType.STRUCT, len(self.rows))
17460  for iter500 in self.rows:
17461  iter500.write(oprot)
17462  oprot.writeListEnd()
17463  oprot.writeFieldEnd()
17464  if self.column_names is not None:
17465  oprot.writeFieldBegin('column_names', TType.LIST, 4)
17466  oprot.writeListBegin(TType.STRING, len(self.column_names))
17467  for iter501 in self.column_names:
17468  oprot.writeString(iter501.encode('utf-8') if sys.version_info[0] == 2 else iter501)
17469  oprot.writeListEnd()
17470  oprot.writeFieldEnd()
17471  oprot.writeFieldStop()
17472  oprot.writeStructEnd()
17473 
17474  def validate(self):
17475  return
17476 
17477  def __repr__(self):
17478  L = ['%s=%r' % (key, value)
17479  for key, value in self.__dict__.items()]
17480  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17481 
17482  def __eq__(self, other):
17483  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17484 
17485  def __ne__(self, other):
17486  return not (self == other)
17487 all_structs.append(load_table_binary_args)
17488 load_table_binary_args.thrift_spec = (
17489  None, # 0
17490  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
17491  (2, TType.STRING, 'table_name', 'UTF8', None, ), # 2
17492  (3, TType.LIST, 'rows', (TType.STRUCT, [TRow, None], False), None, ), # 3
17493  (4, TType.LIST, 'column_names', (TType.STRING, 'UTF8', False), [
17494  ], ), # 4
17495 )
17496 
17497 
17499  """
17500  Attributes:
17501  - e
17502 
17503  """
17504 
17505 
17506  def __init__(self, e=None,):
17507  self.e = e
17508 
17509  def read(self, iprot):
17510  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
17511  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
17512  return
17513  iprot.readStructBegin()
17514  while True:
17515  (fname, ftype, fid) = iprot.readFieldBegin()
17516  if ftype == TType.STOP:
17517  break
17518  if fid == 1:
17519  if ftype == TType.STRUCT:
17520  self.e = TDBException.read(iprot)
17521  else:
17522  iprot.skip(ftype)
17523  else:
17524  iprot.skip(ftype)
17525  iprot.readFieldEnd()
17526  iprot.readStructEnd()
17527 
17528  def write(self, oprot):
17529  if oprot._fast_encode is not None and self.thrift_spec is not None:
17530  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
17531  return
17532  oprot.writeStructBegin('load_table_binary_result')
17533  if self.e is not None:
17534  oprot.writeFieldBegin('e', TType.STRUCT, 1)
17535  self.e.write(oprot)
17536  oprot.writeFieldEnd()
17537  oprot.writeFieldStop()
17538  oprot.writeStructEnd()
17539 
17540  def validate(self):
17541  return
17542 
17543  def __repr__(self):
17544  L = ['%s=%r' % (key, value)
17545  for key, value in self.__dict__.items()]
17546  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17547 
17548  def __eq__(self, other):
17549  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17550 
17551  def __ne__(self, other):
17552  return not (self == other)
17553 all_structs.append(load_table_binary_result)
17554 load_table_binary_result.thrift_spec = (
17555  None, # 0
17556  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
17557 )
17558 
17559 
17561  """
17562  Attributes:
17563  - session
17564  - table_name
17565  - cols
17566  - column_names
17567 
17568  """
17569 
17570 
17571  def __init__(self, session=None, table_name=None, cols=None, column_names=[
17572  ],):
17573  self.session = session
17574  self.table_name = table_name
17575  self.cols = cols
17576  if column_names is self.thrift_spec[4][4]:
17577  column_names = [
17578  ]
17579  self.column_names = column_names
17580 
17581  def read(self, iprot):
17582  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
17583  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
17584  return
17585  iprot.readStructBegin()
17586  while True:
17587  (fname, ftype, fid) = iprot.readFieldBegin()
17588  if ftype == TType.STOP:
17589  break
17590  if fid == 1:
17591  if ftype == TType.STRING:
17592  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
17593  else:
17594  iprot.skip(ftype)
17595  elif fid == 2:
17596  if ftype == TType.STRING:
17597  self.table_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
17598  else:
17599  iprot.skip(ftype)
17600  elif fid == 3:
17601  if ftype == TType.LIST:
17602  self.cols = []
17603  (_etype505, _size502) = iprot.readListBegin()
17604  for _i506 in range(_size502):
17605  _elem507 = TColumn()
17606  _elem507.read(iprot)
17607  self.cols.append(_elem507)
17608  iprot.readListEnd()
17609  else:
17610  iprot.skip(ftype)
17611  elif fid == 4:
17612  if ftype == TType.LIST:
17613  self.column_names = []
17614  (_etype511, _size508) = iprot.readListBegin()
17615  for _i512 in range(_size508):
17616  _elem513 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
17617  self.column_names.append(_elem513)
17618  iprot.readListEnd()
17619  else:
17620  iprot.skip(ftype)
17621  else:
17622  iprot.skip(ftype)
17623  iprot.readFieldEnd()
17624  iprot.readStructEnd()
17625 
17626  def write(self, oprot):
17627  if oprot._fast_encode is not None and self.thrift_spec is not None:
17628  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
17629  return
17630  oprot.writeStructBegin('load_table_binary_columnar_args')
17631  if self.session is not None:
17632  oprot.writeFieldBegin('session', TType.STRING, 1)
17633  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
17634  oprot.writeFieldEnd()
17635  if self.table_name is not None:
17636  oprot.writeFieldBegin('table_name', TType.STRING, 2)
17637  oprot.writeString(self.table_name.encode('utf-8') if sys.version_info[0] == 2 else self.table_name)
17638  oprot.writeFieldEnd()
17639  if self.cols is not None:
17640  oprot.writeFieldBegin('cols', TType.LIST, 3)
17641  oprot.writeListBegin(TType.STRUCT, len(self.cols))
17642  for iter514 in self.cols:
17643  iter514.write(oprot)
17644  oprot.writeListEnd()
17645  oprot.writeFieldEnd()
17646  if self.column_names is not None:
17647  oprot.writeFieldBegin('column_names', TType.LIST, 4)
17648  oprot.writeListBegin(TType.STRING, len(self.column_names))
17649  for iter515 in self.column_names:
17650  oprot.writeString(iter515.encode('utf-8') if sys.version_info[0] == 2 else iter515)
17651  oprot.writeListEnd()
17652  oprot.writeFieldEnd()
17653  oprot.writeFieldStop()
17654  oprot.writeStructEnd()
17655 
17656  def validate(self):
17657  return
17658 
17659  def __repr__(self):
17660  L = ['%s=%r' % (key, value)
17661  for key, value in self.__dict__.items()]
17662  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17663 
17664  def __eq__(self, other):
17665  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17666 
17667  def __ne__(self, other):
17668  return not (self == other)
17669 all_structs.append(load_table_binary_columnar_args)
17670 load_table_binary_columnar_args.thrift_spec = (
17671  None, # 0
17672  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
17673  (2, TType.STRING, 'table_name', 'UTF8', None, ), # 2
17674  (3, TType.LIST, 'cols', (TType.STRUCT, [TColumn, None], False), None, ), # 3
17675  (4, TType.LIST, 'column_names', (TType.STRING, 'UTF8', False), [
17676  ], ), # 4
17677 )
17678 
17679 
17681  """
17682  Attributes:
17683  - e
17684 
17685  """
17686 
17687 
17688  def __init__(self, e=None,):
17689  self.e = e
17690 
17691  def read(self, iprot):
17692  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
17693  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
17694  return
17695  iprot.readStructBegin()
17696  while True:
17697  (fname, ftype, fid) = iprot.readFieldBegin()
17698  if ftype == TType.STOP:
17699  break
17700  if fid == 1:
17701  if ftype == TType.STRUCT:
17702  self.e = TDBException.read(iprot)
17703  else:
17704  iprot.skip(ftype)
17705  else:
17706  iprot.skip(ftype)
17707  iprot.readFieldEnd()
17708  iprot.readStructEnd()
17709 
17710  def write(self, oprot):
17711  if oprot._fast_encode is not None and self.thrift_spec is not None:
17712  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
17713  return
17714  oprot.writeStructBegin('load_table_binary_columnar_result')
17715  if self.e is not None:
17716  oprot.writeFieldBegin('e', TType.STRUCT, 1)
17717  self.e.write(oprot)
17718  oprot.writeFieldEnd()
17719  oprot.writeFieldStop()
17720  oprot.writeStructEnd()
17721 
17722  def validate(self):
17723  return
17724 
17725  def __repr__(self):
17726  L = ['%s=%r' % (key, value)
17727  for key, value in self.__dict__.items()]
17728  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17729 
17730  def __eq__(self, other):
17731  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17732 
17733  def __ne__(self, other):
17734  return not (self == other)
17735 all_structs.append(load_table_binary_columnar_result)
17736 load_table_binary_columnar_result.thrift_spec = (
17737  None, # 0
17738  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
17739 )
17740 
17741 
17743  """
17744  Attributes:
17745  - session
17746  - table_name
17747  - arrow_stream
17748  - use_column_names
17749 
17750  """
17751 
17752 
17753  def __init__(self, session=None, table_name=None, arrow_stream=None, use_column_names=False,):
17754  self.session = session
17755  self.table_name = table_name
17756  self.arrow_stream = arrow_stream
17757  self.use_column_names = use_column_names
17758 
17759  def read(self, iprot):
17760  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
17761  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
17762  return
17763  iprot.readStructBegin()
17764  while True:
17765  (fname, ftype, fid) = iprot.readFieldBegin()
17766  if ftype == TType.STOP:
17767  break
17768  if fid == 1:
17769  if ftype == TType.STRING:
17770  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
17771  else:
17772  iprot.skip(ftype)
17773  elif fid == 2:
17774  if ftype == TType.STRING:
17775  self.table_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
17776  else:
17777  iprot.skip(ftype)
17778  elif fid == 3:
17779  if ftype == TType.STRING:
17780  self.arrow_stream = iprot.readBinary()
17781  else:
17782  iprot.skip(ftype)
17783  elif fid == 4:
17784  if ftype == TType.BOOL:
17785  self.use_column_names = iprot.readBool()
17786  else:
17787  iprot.skip(ftype)
17788  else:
17789  iprot.skip(ftype)
17790  iprot.readFieldEnd()
17791  iprot.readStructEnd()
17792 
17793  def write(self, oprot):
17794  if oprot._fast_encode is not None and self.thrift_spec is not None:
17795  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
17796  return
17797  oprot.writeStructBegin('load_table_binary_arrow_args')
17798  if self.session is not None:
17799  oprot.writeFieldBegin('session', TType.STRING, 1)
17800  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
17801  oprot.writeFieldEnd()
17802  if self.table_name is not None:
17803  oprot.writeFieldBegin('table_name', TType.STRING, 2)
17804  oprot.writeString(self.table_name.encode('utf-8') if sys.version_info[0] == 2 else self.table_name)
17805  oprot.writeFieldEnd()
17806  if self.arrow_stream is not None:
17807  oprot.writeFieldBegin('arrow_stream', TType.STRING, 3)
17808  oprot.writeBinary(self.arrow_stream)
17809  oprot.writeFieldEnd()
17810  if self.use_column_names is not None:
17811  oprot.writeFieldBegin('use_column_names', TType.BOOL, 4)
17812  oprot.writeBool(self.use_column_names)
17813  oprot.writeFieldEnd()
17814  oprot.writeFieldStop()
17815  oprot.writeStructEnd()
17816 
17817  def validate(self):
17818  return
17819 
17820  def __repr__(self):
17821  L = ['%s=%r' % (key, value)
17822  for key, value in self.__dict__.items()]
17823  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17824 
17825  def __eq__(self, other):
17826  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17827 
17828  def __ne__(self, other):
17829  return not (self == other)
17830 all_structs.append(load_table_binary_arrow_args)
17831 load_table_binary_arrow_args.thrift_spec = (
17832  None, # 0
17833  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
17834  (2, TType.STRING, 'table_name', 'UTF8', None, ), # 2
17835  (3, TType.STRING, 'arrow_stream', 'BINARY', None, ), # 3
17836  (4, TType.BOOL, 'use_column_names', None, False, ), # 4
17837 )
17838 
17839 
17841  """
17842  Attributes:
17843  - e
17844 
17845  """
17846 
17847 
17848  def __init__(self, e=None,):
17849  self.e = e
17850 
17851  def read(self, iprot):
17852  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
17853  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
17854  return
17855  iprot.readStructBegin()
17856  while True:
17857  (fname, ftype, fid) = iprot.readFieldBegin()
17858  if ftype == TType.STOP:
17859  break
17860  if fid == 1:
17861  if ftype == TType.STRUCT:
17862  self.e = TDBException.read(iprot)
17863  else:
17864  iprot.skip(ftype)
17865  else:
17866  iprot.skip(ftype)
17867  iprot.readFieldEnd()
17868  iprot.readStructEnd()
17869 
17870  def write(self, oprot):
17871  if oprot._fast_encode is not None and self.thrift_spec is not None:
17872  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
17873  return
17874  oprot.writeStructBegin('load_table_binary_arrow_result')
17875  if self.e is not None:
17876  oprot.writeFieldBegin('e', TType.STRUCT, 1)
17877  self.e.write(oprot)
17878  oprot.writeFieldEnd()
17879  oprot.writeFieldStop()
17880  oprot.writeStructEnd()
17881 
17882  def validate(self):
17883  return
17884 
17885  def __repr__(self):
17886  L = ['%s=%r' % (key, value)
17887  for key, value in self.__dict__.items()]
17888  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17889 
17890  def __eq__(self, other):
17891  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17892 
17893  def __ne__(self, other):
17894  return not (self == other)
17895 all_structs.append(load_table_binary_arrow_result)
17896 load_table_binary_arrow_result.thrift_spec = (
17897  None, # 0
17898  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
17899 )
17900 
17901 
17902 class load_table_args(object):
17903  """
17904  Attributes:
17905  - session
17906  - table_name
17907  - rows
17908  - column_names
17909 
17910  """
17911 
17912 
17913  def __init__(self, session=None, table_name=None, rows=None, column_names=[
17914  ],):
17915  self.session = session
17916  self.table_name = table_name
17917  self.rows = rows
17918  if column_names is self.thrift_spec[4][4]:
17919  column_names = [
17920  ]
17921  self.column_names = column_names
17922 
17923  def read(self, iprot):
17924  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
17925  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
17926  return
17927  iprot.readStructBegin()
17928  while True:
17929  (fname, ftype, fid) = iprot.readFieldBegin()
17930  if ftype == TType.STOP:
17931  break
17932  if fid == 1:
17933  if ftype == TType.STRING:
17934  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
17935  else:
17936  iprot.skip(ftype)
17937  elif fid == 2:
17938  if ftype == TType.STRING:
17939  self.table_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
17940  else:
17941  iprot.skip(ftype)
17942  elif fid == 3:
17943  if ftype == TType.LIST:
17944  self.rows = []
17945  (_etype519, _size516) = iprot.readListBegin()
17946  for _i520 in range(_size516):
17947  _elem521 = TStringRow()
17948  _elem521.read(iprot)
17949  self.rows.append(_elem521)
17950  iprot.readListEnd()
17951  else:
17952  iprot.skip(ftype)
17953  elif fid == 4:
17954  if ftype == TType.LIST:
17955  self.column_names = []
17956  (_etype525, _size522) = iprot.readListBegin()
17957  for _i526 in range(_size522):
17958  _elem527 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
17959  self.column_names.append(_elem527)
17960  iprot.readListEnd()
17961  else:
17962  iprot.skip(ftype)
17963  else:
17964  iprot.skip(ftype)
17965  iprot.readFieldEnd()
17966  iprot.readStructEnd()
17967 
17968  def write(self, oprot):
17969  if oprot._fast_encode is not None and self.thrift_spec is not None:
17970  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
17971  return
17972  oprot.writeStructBegin('load_table_args')
17973  if self.session is not None:
17974  oprot.writeFieldBegin('session', TType.STRING, 1)
17975  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
17976  oprot.writeFieldEnd()
17977  if self.table_name is not None:
17978  oprot.writeFieldBegin('table_name', TType.STRING, 2)
17979  oprot.writeString(self.table_name.encode('utf-8') if sys.version_info[0] == 2 else self.table_name)
17980  oprot.writeFieldEnd()
17981  if self.rows is not None:
17982  oprot.writeFieldBegin('rows', TType.LIST, 3)
17983  oprot.writeListBegin(TType.STRUCT, len(self.rows))
17984  for iter528 in self.rows:
17985  iter528.write(oprot)
17986  oprot.writeListEnd()
17987  oprot.writeFieldEnd()
17988  if self.column_names is not None:
17989  oprot.writeFieldBegin('column_names', TType.LIST, 4)
17990  oprot.writeListBegin(TType.STRING, len(self.column_names))
17991  for iter529 in self.column_names:
17992  oprot.writeString(iter529.encode('utf-8') if sys.version_info[0] == 2 else iter529)
17993  oprot.writeListEnd()
17994  oprot.writeFieldEnd()
17995  oprot.writeFieldStop()
17996  oprot.writeStructEnd()
17997 
17998  def validate(self):
17999  return
18000 
18001  def __repr__(self):
18002  L = ['%s=%r' % (key, value)
18003  for key, value in self.__dict__.items()]
18004  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18005 
18006  def __eq__(self, other):
18007  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18008 
18009  def __ne__(self, other):
18010  return not (self == other)
18011 all_structs.append(load_table_args)
18012 load_table_args.thrift_spec = (
18013  None, # 0
18014  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
18015  (2, TType.STRING, 'table_name', 'UTF8', None, ), # 2
18016  (3, TType.LIST, 'rows', (TType.STRUCT, [TStringRow, None], False), None, ), # 3
18017  (4, TType.LIST, 'column_names', (TType.STRING, 'UTF8', False), [
18018  ], ), # 4
18019 )
18020 
18021 
18022 class load_table_result(object):
18023  """
18024  Attributes:
18025  - e
18026 
18027  """
18028 
18029 
18030  def __init__(self, e=None,):
18031  self.e = e
18032 
18033  def read(self, iprot):
18034  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
18035  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
18036  return
18037  iprot.readStructBegin()
18038  while True:
18039  (fname, ftype, fid) = iprot.readFieldBegin()
18040  if ftype == TType.STOP:
18041  break
18042  if fid == 1:
18043  if ftype == TType.STRUCT:
18044  self.e = TDBException.read(iprot)
18045  else:
18046  iprot.skip(ftype)
18047  else:
18048  iprot.skip(ftype)
18049  iprot.readFieldEnd()
18050  iprot.readStructEnd()
18051 
18052  def write(self, oprot):
18053  if oprot._fast_encode is not None and self.thrift_spec is not None:
18054  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
18055  return
18056  oprot.writeStructBegin('load_table_result')
18057  if self.e is not None:
18058  oprot.writeFieldBegin('e', TType.STRUCT, 1)
18059  self.e.write(oprot)
18060  oprot.writeFieldEnd()
18061  oprot.writeFieldStop()
18062  oprot.writeStructEnd()
18063 
18064  def validate(self):
18065  return
18066 
18067  def __repr__(self):
18068  L = ['%s=%r' % (key, value)
18069  for key, value in self.__dict__.items()]
18070  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18071 
18072  def __eq__(self, other):
18073  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18074 
18075  def __ne__(self, other):
18076  return not (self == other)
18077 all_structs.append(load_table_result)
18078 load_table_result.thrift_spec = (
18079  None, # 0
18080  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
18081 )
18082 
18083 
18085  """
18086  Attributes:
18087  - session
18088  - file_name
18089  - copy_params
18090 
18091  """
18092 
18093 
18094  def __init__(self, session=None, file_name=None, copy_params=None,):
18095  self.session = session
18096  self.file_name = file_name
18097  self.copy_params = copy_params
18098 
18099  def read(self, iprot):
18100  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
18101  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
18102  return
18103  iprot.readStructBegin()
18104  while True:
18105  (fname, ftype, fid) = iprot.readFieldBegin()
18106  if ftype == TType.STOP:
18107  break
18108  if fid == 1:
18109  if ftype == TType.STRING:
18110  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
18111  else:
18112  iprot.skip(ftype)
18113  elif fid == 2:
18114  if ftype == TType.STRING:
18115  self.file_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
18116  else:
18117  iprot.skip(ftype)
18118  elif fid == 3:
18119  if ftype == TType.STRUCT:
18120  self.copy_params = TCopyParams()
18121  self.copy_params.read(iprot)
18122  else:
18123  iprot.skip(ftype)
18124  else:
18125  iprot.skip(ftype)
18126  iprot.readFieldEnd()
18127  iprot.readStructEnd()
18128 
18129  def write(self, oprot):
18130  if oprot._fast_encode is not None and self.thrift_spec is not None:
18131  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
18132  return
18133  oprot.writeStructBegin('detect_column_types_args')
18134  if self.session is not None:
18135  oprot.writeFieldBegin('session', TType.STRING, 1)
18136  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
18137  oprot.writeFieldEnd()
18138  if self.file_name is not None:
18139  oprot.writeFieldBegin('file_name', TType.STRING, 2)
18140  oprot.writeString(self.file_name.encode('utf-8') if sys.version_info[0] == 2 else self.file_name)
18141  oprot.writeFieldEnd()
18142  if self.copy_params is not None:
18143  oprot.writeFieldBegin('copy_params', TType.STRUCT, 3)
18144  self.copy_params.write(oprot)
18145  oprot.writeFieldEnd()
18146  oprot.writeFieldStop()
18147  oprot.writeStructEnd()
18148 
18149  def validate(self):
18150  return
18151 
18152  def __repr__(self):
18153  L = ['%s=%r' % (key, value)
18154  for key, value in self.__dict__.items()]
18155  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18156 
18157  def __eq__(self, other):
18158  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18159 
18160  def __ne__(self, other):
18161  return not (self == other)
18162 all_structs.append(detect_column_types_args)
18163 detect_column_types_args.thrift_spec = (
18164  None, # 0
18165  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
18166  (2, TType.STRING, 'file_name', 'UTF8', None, ), # 2
18167  (3, TType.STRUCT, 'copy_params', [TCopyParams, None], None, ), # 3
18168 )
18169 
18170 
18172  """
18173  Attributes:
18174  - success
18175  - e
18176 
18177  """
18178 
18179 
18180  def __init__(self, success=None, e=None,):
18181  self.success = success
18182  self.e = e
18183 
18184  def read(self, iprot):
18185  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
18186  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
18187  return
18188  iprot.readStructBegin()
18189  while True:
18190  (fname, ftype, fid) = iprot.readFieldBegin()
18191  if ftype == TType.STOP:
18192  break
18193  if fid == 0:
18194  if ftype == TType.STRUCT:
18195  self.success = TDetectResult()
18196  self.success.read(iprot)
18197  else:
18198  iprot.skip(ftype)
18199  elif fid == 1:
18200  if ftype == TType.STRUCT:
18201  self.e = TDBException.read(iprot)
18202  else:
18203  iprot.skip(ftype)
18204  else:
18205  iprot.skip(ftype)
18206  iprot.readFieldEnd()
18207  iprot.readStructEnd()
18208 
18209  def write(self, oprot):
18210  if oprot._fast_encode is not None and self.thrift_spec is not None:
18211  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
18212  return
18213  oprot.writeStructBegin('detect_column_types_result')
18214  if self.success is not None:
18215  oprot.writeFieldBegin('success', TType.STRUCT, 0)
18216  self.success.write(oprot)
18217  oprot.writeFieldEnd()
18218  if self.e is not None:
18219  oprot.writeFieldBegin('e', TType.STRUCT, 1)
18220  self.e.write(oprot)
18221  oprot.writeFieldEnd()
18222  oprot.writeFieldStop()
18223  oprot.writeStructEnd()
18224 
18225  def validate(self):
18226  return
18227 
18228  def __repr__(self):
18229  L = ['%s=%r' % (key, value)
18230  for key, value in self.__dict__.items()]
18231  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18232 
18233  def __eq__(self, other):
18234  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18235 
18236  def __ne__(self, other):
18237  return not (self == other)
18238 all_structs.append(detect_column_types_result)
18239 detect_column_types_result.thrift_spec = (
18240  (0, TType.STRUCT, 'success', [TDetectResult, None], None, ), # 0
18241  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
18242 )
18243 
18244 
18245 class create_table_args(object):
18246  """
18247  Attributes:
18248  - session
18249  - table_name
18250  - row_desc
18251  - create_params
18252 
18253  """
18254 
18255 
18256  def __init__(self, session=None, table_name=None, row_desc=None, create_params=None,):
18257  self.session = session
18258  self.table_name = table_name
18259  self.row_desc = row_desc
18260  self.create_params = create_params
18261 
18262  def read(self, iprot):
18263  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
18264  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
18265  return
18266  iprot.readStructBegin()
18267  while True:
18268  (fname, ftype, fid) = iprot.readFieldBegin()
18269  if ftype == TType.STOP:
18270  break
18271  if fid == 1:
18272  if ftype == TType.STRING:
18273  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
18274  else:
18275  iprot.skip(ftype)
18276  elif fid == 2:
18277  if ftype == TType.STRING:
18278  self.table_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
18279  else:
18280  iprot.skip(ftype)
18281  elif fid == 3:
18282  if ftype == TType.LIST:
18283  self.row_desc = []
18284  (_etype533, _size530) = iprot.readListBegin()
18285  for _i534 in range(_size530):
18286  _elem535 = TColumnType()
18287  _elem535.read(iprot)
18288  self.row_desc.append(_elem535)
18289  iprot.readListEnd()
18290  else:
18291  iprot.skip(ftype)
18292  elif fid == 4:
18293  if ftype == TType.STRUCT:
18294  self.create_params = TCreateParams()
18295  self.create_params.read(iprot)
18296  else:
18297  iprot.skip(ftype)
18298  else:
18299  iprot.skip(ftype)
18300  iprot.readFieldEnd()
18301  iprot.readStructEnd()
18302 
18303  def write(self, oprot):
18304  if oprot._fast_encode is not None and self.thrift_spec is not None:
18305  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
18306  return
18307  oprot.writeStructBegin('create_table_args')
18308  if self.session is not None:
18309  oprot.writeFieldBegin('session', TType.STRING, 1)
18310  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
18311  oprot.writeFieldEnd()
18312  if self.table_name is not None:
18313  oprot.writeFieldBegin('table_name', TType.STRING, 2)
18314  oprot.writeString(self.table_name.encode('utf-8') if sys.version_info[0] == 2 else self.table_name)
18315  oprot.writeFieldEnd()
18316  if self.row_desc is not None:
18317  oprot.writeFieldBegin('row_desc', TType.LIST, 3)
18318  oprot.writeListBegin(TType.STRUCT, len(self.row_desc))
18319  for iter536 in self.row_desc:
18320  iter536.write(oprot)
18321  oprot.writeListEnd()
18322  oprot.writeFieldEnd()
18323  if self.create_params is not None:
18324  oprot.writeFieldBegin('create_params', TType.STRUCT, 4)
18325  self.create_params.write(oprot)
18326  oprot.writeFieldEnd()
18327  oprot.writeFieldStop()
18328  oprot.writeStructEnd()
18329 
18330  def validate(self):
18331  return
18332 
18333  def __repr__(self):
18334  L = ['%s=%r' % (key, value)
18335  for key, value in self.__dict__.items()]
18336  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18337 
18338  def __eq__(self, other):
18339  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18340 
18341  def __ne__(self, other):
18342  return not (self == other)
18343 all_structs.append(create_table_args)
18344 create_table_args.thrift_spec = (
18345  None, # 0
18346  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
18347  (2, TType.STRING, 'table_name', 'UTF8', None, ), # 2
18348  (3, TType.LIST, 'row_desc', (TType.STRUCT, [TColumnType, None], False), None, ), # 3
18349  (4, TType.STRUCT, 'create_params', [TCreateParams, None], None, ), # 4
18350 )
18351 
18352 
18353 class create_table_result(object):
18354  """
18355  Attributes:
18356  - e
18357 
18358  """
18359 
18360 
18361  def __init__(self, e=None,):
18362  self.e = e
18363 
18364  def read(self, iprot):
18365  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
18366  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
18367  return
18368  iprot.readStructBegin()
18369  while True:
18370  (fname, ftype, fid) = iprot.readFieldBegin()
18371  if ftype == TType.STOP:
18372  break
18373  if fid == 1:
18374  if ftype == TType.STRUCT:
18375  self.e = TDBException.read(iprot)
18376  else:
18377  iprot.skip(ftype)
18378  else:
18379  iprot.skip(ftype)
18380  iprot.readFieldEnd()
18381  iprot.readStructEnd()
18382 
18383  def write(self, oprot):
18384  if oprot._fast_encode is not None and self.thrift_spec is not None:
18385  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
18386  return
18387  oprot.writeStructBegin('create_table_result')
18388  if self.e is not None:
18389  oprot.writeFieldBegin('e', TType.STRUCT, 1)
18390  self.e.write(oprot)
18391  oprot.writeFieldEnd()
18392  oprot.writeFieldStop()
18393  oprot.writeStructEnd()
18394 
18395  def validate(self):
18396  return
18397 
18398  def __repr__(self):
18399  L = ['%s=%r' % (key, value)
18400  for key, value in self.__dict__.items()]
18401  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18402 
18403  def __eq__(self, other):
18404  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18405 
18406  def __ne__(self, other):
18407  return not (self == other)
18408 all_structs.append(create_table_result)
18409 create_table_result.thrift_spec = (
18410  None, # 0
18411  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
18412 )
18413 
18414 
18415 class import_table_args(object):
18416  """
18417  Attributes:
18418  - session
18419  - table_name
18420  - file_name
18421  - copy_params
18422 
18423  """
18424 
18425 
18426  def __init__(self, session=None, table_name=None, file_name=None, copy_params=None,):
18427  self.session = session
18428  self.table_name = table_name
18429  self.file_name = file_name
18430  self.copy_params = copy_params
18431 
18432  def read(self, iprot):
18433  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
18434  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
18435  return
18436  iprot.readStructBegin()
18437  while True:
18438  (fname, ftype, fid) = iprot.readFieldBegin()
18439  if ftype == TType.STOP:
18440  break
18441  if fid == 1:
18442  if ftype == TType.STRING:
18443  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
18444  else:
18445  iprot.skip(ftype)
18446  elif fid == 2:
18447  if ftype == TType.STRING:
18448  self.table_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
18449  else:
18450  iprot.skip(ftype)
18451  elif fid == 3:
18452  if ftype == TType.STRING:
18453  self.file_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
18454  else:
18455  iprot.skip(ftype)
18456  elif fid == 4:
18457  if ftype == TType.STRUCT:
18458  self.copy_params = TCopyParams()
18459  self.copy_params.read(iprot)
18460  else:
18461  iprot.skip(ftype)
18462  else:
18463  iprot.skip(ftype)
18464  iprot.readFieldEnd()
18465  iprot.readStructEnd()
18466 
18467  def write(self, oprot):
18468  if oprot._fast_encode is not None and self.thrift_spec is not None:
18469  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
18470  return
18471  oprot.writeStructBegin('import_table_args')
18472  if self.session is not None:
18473  oprot.writeFieldBegin('session', TType.STRING, 1)
18474  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
18475  oprot.writeFieldEnd()
18476  if self.table_name is not None:
18477  oprot.writeFieldBegin('table_name', TType.STRING, 2)
18478  oprot.writeString(self.table_name.encode('utf-8') if sys.version_info[0] == 2 else self.table_name)
18479  oprot.writeFieldEnd()
18480  if self.file_name is not None:
18481  oprot.writeFieldBegin('file_name', TType.STRING, 3)
18482  oprot.writeString(self.file_name.encode('utf-8') if sys.version_info[0] == 2 else self.file_name)
18483  oprot.writeFieldEnd()
18484  if self.copy_params is not None:
18485  oprot.writeFieldBegin('copy_params', TType.STRUCT, 4)
18486  self.copy_params.write(oprot)
18487  oprot.writeFieldEnd()
18488  oprot.writeFieldStop()
18489  oprot.writeStructEnd()
18490 
18491  def validate(self):
18492  return
18493 
18494  def __repr__(self):
18495  L = ['%s=%r' % (key, value)
18496  for key, value in self.__dict__.items()]
18497  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18498 
18499  def __eq__(self, other):
18500  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18501 
18502  def __ne__(self, other):
18503  return not (self == other)
18504 all_structs.append(import_table_args)
18505 import_table_args.thrift_spec = (
18506  None, # 0
18507  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
18508  (2, TType.STRING, 'table_name', 'UTF8', None, ), # 2
18509  (3, TType.STRING, 'file_name', 'UTF8', None, ), # 3
18510  (4, TType.STRUCT, 'copy_params', [TCopyParams, None], None, ), # 4
18511 )
18512 
18513 
18514 class import_table_result(object):
18515  """
18516  Attributes:
18517  - e
18518 
18519  """
18520 
18521 
18522  def __init__(self, e=None,):
18523  self.e = e
18524 
18525  def read(self, iprot):
18526  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
18527  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
18528  return
18529  iprot.readStructBegin()
18530  while True:
18531  (fname, ftype, fid) = iprot.readFieldBegin()
18532  if ftype == TType.STOP:
18533  break
18534  if fid == 1:
18535  if ftype == TType.STRUCT:
18536  self.e = TDBException.read(iprot)
18537  else:
18538  iprot.skip(ftype)
18539  else:
18540  iprot.skip(ftype)
18541  iprot.readFieldEnd()
18542  iprot.readStructEnd()
18543 
18544  def write(self, oprot):
18545  if oprot._fast_encode is not None and self.thrift_spec is not None:
18546  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
18547  return
18548  oprot.writeStructBegin('import_table_result')
18549  if self.e is not None:
18550  oprot.writeFieldBegin('e', TType.STRUCT, 1)
18551  self.e.write(oprot)
18552  oprot.writeFieldEnd()
18553  oprot.writeFieldStop()
18554  oprot.writeStructEnd()
18555 
18556  def validate(self):
18557  return
18558 
18559  def __repr__(self):
18560  L = ['%s=%r' % (key, value)
18561  for key, value in self.__dict__.items()]
18562  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18563 
18564  def __eq__(self, other):
18565  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18566 
18567  def __ne__(self, other):
18568  return not (self == other)
18569 all_structs.append(import_table_result)
18570 import_table_result.thrift_spec = (
18571  None, # 0
18572  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
18573 )
18574 
18575 
18577  """
18578  Attributes:
18579  - session
18580  - table_name
18581  - file_name
18582  - copy_params
18583  - row_desc
18584  - create_params
18585 
18586  """
18587 
18588 
18589  def __init__(self, session=None, table_name=None, file_name=None, copy_params=None, row_desc=None, create_params=None,):
18590  self.session = session
18591  self.table_name = table_name
18592  self.file_name = file_name
18593  self.copy_params = copy_params
18594  self.row_desc = row_desc
18595  self.create_params = create_params
18596 
18597  def read(self, iprot):
18598  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
18599  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
18600  return
18601  iprot.readStructBegin()
18602  while True:
18603  (fname, ftype, fid) = iprot.readFieldBegin()
18604  if ftype == TType.STOP:
18605  break
18606  if fid == 1:
18607  if ftype == TType.STRING:
18608  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
18609  else:
18610  iprot.skip(ftype)
18611  elif fid == 2:
18612  if ftype == TType.STRING:
18613  self.table_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
18614  else:
18615  iprot.skip(ftype)
18616  elif fid == 3:
18617  if ftype == TType.STRING:
18618  self.file_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
18619  else:
18620  iprot.skip(ftype)
18621  elif fid == 4:
18622  if ftype == TType.STRUCT:
18623  self.copy_params = TCopyParams()
18624  self.copy_params.read(iprot)
18625  else:
18626  iprot.skip(ftype)
18627  elif fid == 5:
18628  if ftype == TType.LIST:
18629  self.row_desc = []
18630  (_etype540, _size537) = iprot.readListBegin()
18631  for _i541 in range(_size537):
18632  _elem542 = TColumnType()
18633  _elem542.read(iprot)
18634  self.row_desc.append(_elem542)
18635  iprot.readListEnd()
18636  else:
18637  iprot.skip(ftype)
18638  elif fid == 6:
18639  if ftype == TType.STRUCT:
18640  self.create_params = TCreateParams()
18641  self.create_params.read(iprot)
18642  else:
18643  iprot.skip(ftype)
18644  else:
18645  iprot.skip(ftype)
18646  iprot.readFieldEnd()
18647  iprot.readStructEnd()
18648 
18649  def write(self, oprot):
18650  if oprot._fast_encode is not None and self.thrift_spec is not None:
18651  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
18652  return
18653  oprot.writeStructBegin('import_geo_table_args')
18654  if self.session is not None:
18655  oprot.writeFieldBegin('session', TType.STRING, 1)
18656  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
18657  oprot.writeFieldEnd()
18658  if self.table_name is not None:
18659  oprot.writeFieldBegin('table_name', TType.STRING, 2)
18660  oprot.writeString(self.table_name.encode('utf-8') if sys.version_info[0] == 2 else self.table_name)
18661  oprot.writeFieldEnd()
18662  if self.file_name is not None:
18663  oprot.writeFieldBegin('file_name', TType.STRING, 3)
18664  oprot.writeString(self.file_name.encode('utf-8') if sys.version_info[0] == 2 else self.file_name)
18665  oprot.writeFieldEnd()
18666  if self.copy_params is not None:
18667  oprot.writeFieldBegin('copy_params', TType.STRUCT, 4)
18668  self.copy_params.write(oprot)
18669  oprot.writeFieldEnd()
18670  if self.row_desc is not None:
18671  oprot.writeFieldBegin('row_desc', TType.LIST, 5)
18672  oprot.writeListBegin(TType.STRUCT, len(self.row_desc))
18673  for iter543 in self.row_desc:
18674  iter543.write(oprot)
18675  oprot.writeListEnd()
18676  oprot.writeFieldEnd()
18677  if self.create_params is not None:
18678  oprot.writeFieldBegin('create_params', TType.STRUCT, 6)
18679  self.create_params.write(oprot)
18680  oprot.writeFieldEnd()
18681  oprot.writeFieldStop()
18682  oprot.writeStructEnd()
18683 
18684  def validate(self):
18685  return
18686 
18687  def __repr__(self):
18688  L = ['%s=%r' % (key, value)
18689  for key, value in self.__dict__.items()]
18690  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18691 
18692  def __eq__(self, other):
18693  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18694 
18695  def __ne__(self, other):
18696  return not (self == other)
18697 all_structs.append(import_geo_table_args)
18698 import_geo_table_args.thrift_spec = (
18699  None, # 0
18700  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
18701  (2, TType.STRING, 'table_name', 'UTF8', None, ), # 2
18702  (3, TType.STRING, 'file_name', 'UTF8', None, ), # 3
18703  (4, TType.STRUCT, 'copy_params', [TCopyParams, None], None, ), # 4
18704  (5, TType.LIST, 'row_desc', (TType.STRUCT, [TColumnType, None], False), None, ), # 5
18705  (6, TType.STRUCT, 'create_params', [TCreateParams, None], None, ), # 6
18706 )
18707 
18708 
18710  """
18711  Attributes:
18712  - e
18713 
18714  """
18715 
18716 
18717  def __init__(self, e=None,):
18718  self.e = e
18719 
18720  def read(self, iprot):
18721  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
18722  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
18723  return
18724  iprot.readStructBegin()
18725  while True:
18726  (fname, ftype, fid) = iprot.readFieldBegin()
18727  if ftype == TType.STOP:
18728  break
18729  if fid == 1:
18730  if ftype == TType.STRUCT:
18731  self.e = TDBException.read(iprot)
18732  else:
18733  iprot.skip(ftype)
18734  else:
18735  iprot.skip(ftype)
18736  iprot.readFieldEnd()
18737  iprot.readStructEnd()
18738 
18739  def write(self, oprot):
18740  if oprot._fast_encode is not None and self.thrift_spec is not None:
18741  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
18742  return
18743  oprot.writeStructBegin('import_geo_table_result')
18744  if self.e is not None:
18745  oprot.writeFieldBegin('e', TType.STRUCT, 1)
18746  self.e.write(oprot)
18747  oprot.writeFieldEnd()
18748  oprot.writeFieldStop()
18749  oprot.writeStructEnd()
18750 
18751  def validate(self):
18752  return
18753 
18754  def __repr__(self):
18755  L = ['%s=%r' % (key, value)
18756  for key, value in self.__dict__.items()]
18757  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18758 
18759  def __eq__(self, other):
18760  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18761 
18762  def __ne__(self, other):
18763  return not (self == other)
18764 all_structs.append(import_geo_table_result)
18765 import_geo_table_result.thrift_spec = (
18766  None, # 0
18767  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
18768 )
18769 
18770 
18772  """
18773  Attributes:
18774  - session
18775  - import_id
18776 
18777  """
18778 
18779 
18780  def __init__(self, session=None, import_id=None,):
18781  self.session = session
18782  self.import_id = import_id
18783 
18784  def read(self, iprot):
18785  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
18786  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
18787  return
18788  iprot.readStructBegin()
18789  while True:
18790  (fname, ftype, fid) = iprot.readFieldBegin()
18791  if ftype == TType.STOP:
18792  break
18793  if fid == 1:
18794  if ftype == TType.STRING:
18795  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
18796  else:
18797  iprot.skip(ftype)
18798  elif fid == 2:
18799  if ftype == TType.STRING:
18800  self.import_id = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
18801  else:
18802  iprot.skip(ftype)
18803  else:
18804  iprot.skip(ftype)
18805  iprot.readFieldEnd()
18806  iprot.readStructEnd()
18807 
18808  def write(self, oprot):
18809  if oprot._fast_encode is not None and self.thrift_spec is not None:
18810  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
18811  return
18812  oprot.writeStructBegin('import_table_status_args')
18813  if self.session is not None:
18814  oprot.writeFieldBegin('session', TType.STRING, 1)
18815  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
18816  oprot.writeFieldEnd()
18817  if self.import_id is not None:
18818  oprot.writeFieldBegin('import_id', TType.STRING, 2)
18819  oprot.writeString(self.import_id.encode('utf-8') if sys.version_info[0] == 2 else self.import_id)
18820  oprot.writeFieldEnd()
18821  oprot.writeFieldStop()
18822  oprot.writeStructEnd()
18823 
18824  def validate(self):
18825  return
18826 
18827  def __repr__(self):
18828  L = ['%s=%r' % (key, value)
18829  for key, value in self.__dict__.items()]
18830  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18831 
18832  def __eq__(self, other):
18833  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18834 
18835  def __ne__(self, other):
18836  return not (self == other)
18837 all_structs.append(import_table_status_args)
18838 import_table_status_args.thrift_spec = (
18839  None, # 0
18840  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
18841  (2, TType.STRING, 'import_id', 'UTF8', None, ), # 2
18842 )
18843 
18844 
18846  """
18847  Attributes:
18848  - success
18849  - e
18850 
18851  """
18852 
18853 
18854  def __init__(self, success=None, e=None,):
18855  self.success = success
18856  self.e = e
18857 
18858  def read(self, iprot):
18859  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
18860  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
18861  return
18862  iprot.readStructBegin()
18863  while True:
18864  (fname, ftype, fid) = iprot.readFieldBegin()
18865  if ftype == TType.STOP:
18866  break
18867  if fid == 0:
18868  if ftype == TType.STRUCT:
18869  self.success = TImportStatus()
18870  self.success.read(iprot)
18871  else:
18872  iprot.skip(ftype)
18873  elif fid == 1:
18874  if ftype == TType.STRUCT:
18875  self.e = TDBException.read(iprot)
18876  else:
18877  iprot.skip(ftype)
18878  else:
18879  iprot.skip(ftype)
18880  iprot.readFieldEnd()
18881  iprot.readStructEnd()
18882 
18883  def write(self, oprot):
18884  if oprot._fast_encode is not None and self.thrift_spec is not None:
18885  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
18886  return
18887  oprot.writeStructBegin('import_table_status_result')
18888  if self.success is not None:
18889  oprot.writeFieldBegin('success', TType.STRUCT, 0)
18890  self.success.write(oprot)
18891  oprot.writeFieldEnd()
18892  if self.e is not None:
18893  oprot.writeFieldBegin('e', TType.STRUCT, 1)
18894  self.e.write(oprot)
18895  oprot.writeFieldEnd()
18896  oprot.writeFieldStop()
18897  oprot.writeStructEnd()
18898 
18899  def validate(self):
18900  return
18901 
18902  def __repr__(self):
18903  L = ['%s=%r' % (key, value)
18904  for key, value in self.__dict__.items()]
18905  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18906 
18907  def __eq__(self, other):
18908  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18909 
18910  def __ne__(self, other):
18911  return not (self == other)
18912 all_structs.append(import_table_status_result)
18913 import_table_status_result.thrift_spec = (
18914  (0, TType.STRUCT, 'success', [TImportStatus, None], None, ), # 0
18915  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
18916 )
18917 
18918 
18920  """
18921  Attributes:
18922  - session
18923  - archive_path
18924  - copy_params
18925 
18926  """
18927 
18928 
18929  def __init__(self, session=None, archive_path=None, copy_params=None,):
18930  self.session = session
18931  self.archive_path = archive_path
18932  self.copy_params = copy_params
18933 
18934  def read(self, iprot):
18935  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
18936  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
18937  return
18938  iprot.readStructBegin()
18939  while True:
18940  (fname, ftype, fid) = iprot.readFieldBegin()
18941  if ftype == TType.STOP:
18942  break
18943  if fid == 1:
18944  if ftype == TType.STRING:
18945  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
18946  else:
18947  iprot.skip(ftype)
18948  elif fid == 2:
18949  if ftype == TType.STRING:
18950  self.archive_path = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
18951  else:
18952  iprot.skip(ftype)
18953  elif fid == 3:
18954  if ftype == TType.STRUCT:
18955  self.copy_params = TCopyParams()
18956  self.copy_params.read(iprot)
18957  else:
18958  iprot.skip(ftype)
18959  else:
18960  iprot.skip(ftype)
18961  iprot.readFieldEnd()
18962  iprot.readStructEnd()
18963 
18964  def write(self, oprot):
18965  if oprot._fast_encode is not None and self.thrift_spec is not None:
18966  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
18967  return
18968  oprot.writeStructBegin('get_first_geo_file_in_archive_args')
18969  if self.session is not None:
18970  oprot.writeFieldBegin('session', TType.STRING, 1)
18971  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
18972  oprot.writeFieldEnd()
18973  if self.archive_path is not None:
18974  oprot.writeFieldBegin('archive_path', TType.STRING, 2)
18975  oprot.writeString(self.archive_path.encode('utf-8') if sys.version_info[0] == 2 else self.archive_path)
18976  oprot.writeFieldEnd()
18977  if self.copy_params is not None:
18978  oprot.writeFieldBegin('copy_params', TType.STRUCT, 3)
18979  self.copy_params.write(oprot)
18980  oprot.writeFieldEnd()
18981  oprot.writeFieldStop()
18982  oprot.writeStructEnd()
18983 
18984  def validate(self):
18985  return
18986 
18987  def __repr__(self):
18988  L = ['%s=%r' % (key, value)
18989  for key, value in self.__dict__.items()]
18990  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18991 
18992  def __eq__(self, other):
18993  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18994 
18995  def __ne__(self, other):
18996  return not (self == other)
18997 all_structs.append(get_first_geo_file_in_archive_args)
18998 get_first_geo_file_in_archive_args.thrift_spec = (
18999  None, # 0
19000  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
19001  (2, TType.STRING, 'archive_path', 'UTF8', None, ), # 2
19002  (3, TType.STRUCT, 'copy_params', [TCopyParams, None], None, ), # 3
19003 )
19004 
19005 
19007  """
19008  Attributes:
19009  - success
19010  - e
19011 
19012  """
19013 
19014 
19015  def __init__(self, success=None, e=None,):
19016  self.success = success
19017  self.e = e
19018 
19019  def read(self, iprot):
19020  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
19021  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
19022  return
19023  iprot.readStructBegin()
19024  while True:
19025  (fname, ftype, fid) = iprot.readFieldBegin()
19026  if ftype == TType.STOP:
19027  break
19028  if fid == 0:
19029  if ftype == TType.STRING:
19030  self.success = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
19031  else:
19032  iprot.skip(ftype)
19033  elif fid == 1:
19034  if ftype == TType.STRUCT:
19035  self.e = TDBException.read(iprot)
19036  else:
19037  iprot.skip(ftype)
19038  else:
19039  iprot.skip(ftype)
19040  iprot.readFieldEnd()
19041  iprot.readStructEnd()
19042 
19043  def write(self, oprot):
19044  if oprot._fast_encode is not None and self.thrift_spec is not None:
19045  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
19046  return
19047  oprot.writeStructBegin('get_first_geo_file_in_archive_result')
19048  if self.success is not None:
19049  oprot.writeFieldBegin('success', TType.STRING, 0)
19050  oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success)
19051  oprot.writeFieldEnd()
19052  if self.e is not None:
19053  oprot.writeFieldBegin('e', TType.STRUCT, 1)
19054  self.e.write(oprot)
19055  oprot.writeFieldEnd()
19056  oprot.writeFieldStop()
19057  oprot.writeStructEnd()
19058 
19059  def validate(self):
19060  return
19061 
19062  def __repr__(self):
19063  L = ['%s=%r' % (key, value)
19064  for key, value in self.__dict__.items()]
19065  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19066 
19067  def __eq__(self, other):
19068  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19069 
19070  def __ne__(self, other):
19071  return not (self == other)
19072 all_structs.append(get_first_geo_file_in_archive_result)
19073 get_first_geo_file_in_archive_result.thrift_spec = (
19074  (0, TType.STRING, 'success', 'UTF8', None, ), # 0
19075  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
19076 )
19077 
19078 
19080  """
19081  Attributes:
19082  - session
19083  - archive_path
19084  - copy_params
19085 
19086  """
19087 
19088 
19089  def __init__(self, session=None, archive_path=None, copy_params=None,):
19090  self.session = session
19091  self.archive_path = archive_path
19092  self.copy_params = copy_params
19093 
19094  def read(self, iprot):
19095  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
19096  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
19097  return
19098  iprot.readStructBegin()
19099  while True:
19100  (fname, ftype, fid) = iprot.readFieldBegin()
19101  if ftype == TType.STOP:
19102  break
19103  if fid == 1:
19104  if ftype == TType.STRING:
19105  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
19106  else:
19107  iprot.skip(ftype)
19108  elif fid == 2:
19109  if ftype == TType.STRING:
19110  self.archive_path = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
19111  else:
19112  iprot.skip(ftype)
19113  elif fid == 3:
19114  if ftype == TType.STRUCT:
19115  self.copy_params = TCopyParams()
19116  self.copy_params.read(iprot)
19117  else:
19118  iprot.skip(ftype)
19119  else:
19120  iprot.skip(ftype)
19121  iprot.readFieldEnd()
19122  iprot.readStructEnd()
19123 
19124  def write(self, oprot):
19125  if oprot._fast_encode is not None and self.thrift_spec is not None:
19126  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
19127  return
19128  oprot.writeStructBegin('get_all_files_in_archive_args')
19129  if self.session is not None:
19130  oprot.writeFieldBegin('session', TType.STRING, 1)
19131  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
19132  oprot.writeFieldEnd()
19133  if self.archive_path is not None:
19134  oprot.writeFieldBegin('archive_path', TType.STRING, 2)
19135  oprot.writeString(self.archive_path.encode('utf-8') if sys.version_info[0] == 2 else self.archive_path)
19136  oprot.writeFieldEnd()
19137  if self.copy_params is not None:
19138  oprot.writeFieldBegin('copy_params', TType.STRUCT, 3)
19139  self.copy_params.write(oprot)
19140  oprot.writeFieldEnd()
19141  oprot.writeFieldStop()
19142  oprot.writeStructEnd()
19143 
19144  def validate(self):
19145  return
19146 
19147  def __repr__(self):
19148  L = ['%s=%r' % (key, value)
19149  for key, value in self.__dict__.items()]
19150  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19151 
19152  def __eq__(self, other):
19153  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19154 
19155  def __ne__(self, other):
19156  return not (self == other)
19157 all_structs.append(get_all_files_in_archive_args)
19158 get_all_files_in_archive_args.thrift_spec = (
19159  None, # 0
19160  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
19161  (2, TType.STRING, 'archive_path', 'UTF8', None, ), # 2
19162  (3, TType.STRUCT, 'copy_params', [TCopyParams, None], None, ), # 3
19163 )
19164 
19165 
19167  """
19168  Attributes:
19169  - success
19170  - e
19171 
19172  """
19173 
19174 
19175  def __init__(self, success=None, e=None,):
19176  self.success = success
19177  self.e = e
19178 
19179  def read(self, iprot):
19180  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
19181  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
19182  return
19183  iprot.readStructBegin()
19184  while True:
19185  (fname, ftype, fid) = iprot.readFieldBegin()
19186  if ftype == TType.STOP:
19187  break
19188  if fid == 0:
19189  if ftype == TType.LIST:
19190  self.success = []
19191  (_etype547, _size544) = iprot.readListBegin()
19192  for _i548 in range(_size544):
19193  _elem549 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
19194  self.success.append(_elem549)
19195  iprot.readListEnd()
19196  else:
19197  iprot.skip(ftype)
19198  elif fid == 1:
19199  if ftype == TType.STRUCT:
19200  self.e = TDBException.read(iprot)
19201  else:
19202  iprot.skip(ftype)
19203  else:
19204  iprot.skip(ftype)
19205  iprot.readFieldEnd()
19206  iprot.readStructEnd()
19207 
19208  def write(self, oprot):
19209  if oprot._fast_encode is not None and self.thrift_spec is not None:
19210  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
19211  return
19212  oprot.writeStructBegin('get_all_files_in_archive_result')
19213  if self.success is not None:
19214  oprot.writeFieldBegin('success', TType.LIST, 0)
19215  oprot.writeListBegin(TType.STRING, len(self.success))
19216  for iter550 in self.success:
19217  oprot.writeString(iter550.encode('utf-8') if sys.version_info[0] == 2 else iter550)
19218  oprot.writeListEnd()
19219  oprot.writeFieldEnd()
19220  if self.e is not None:
19221  oprot.writeFieldBegin('e', TType.STRUCT, 1)
19222  self.e.write(oprot)
19223  oprot.writeFieldEnd()
19224  oprot.writeFieldStop()
19225  oprot.writeStructEnd()
19226 
19227  def validate(self):
19228  return
19229 
19230  def __repr__(self):
19231  L = ['%s=%r' % (key, value)
19232  for key, value in self.__dict__.items()]
19233  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19234 
19235  def __eq__(self, other):
19236  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19237 
19238  def __ne__(self, other):
19239  return not (self == other)
19240 all_structs.append(get_all_files_in_archive_result)
19241 get_all_files_in_archive_result.thrift_spec = (
19242  (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
19243  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
19244 )
19245 
19246 
19248  """
19249  Attributes:
19250  - session
19251  - file_name
19252  - copy_params
19253 
19254  """
19255 
19256 
19257  def __init__(self, session=None, file_name=None, copy_params=None,):
19258  self.session = session
19259  self.file_name = file_name
19260  self.copy_params = copy_params
19261 
19262  def read(self, iprot):
19263  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
19264  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
19265  return
19266  iprot.readStructBegin()
19267  while True:
19268  (fname, ftype, fid) = iprot.readFieldBegin()
19269  if ftype == TType.STOP:
19270  break
19271  if fid == 1:
19272  if ftype == TType.STRING:
19273  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
19274  else:
19275  iprot.skip(ftype)
19276  elif fid == 2:
19277  if ftype == TType.STRING:
19278  self.file_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
19279  else:
19280  iprot.skip(ftype)
19281  elif fid == 3:
19282  if ftype == TType.STRUCT:
19283  self.copy_params = TCopyParams()
19284  self.copy_params.read(iprot)
19285  else:
19286  iprot.skip(ftype)
19287  else:
19288  iprot.skip(ftype)
19289  iprot.readFieldEnd()
19290  iprot.readStructEnd()
19291 
19292  def write(self, oprot):
19293  if oprot._fast_encode is not None and self.thrift_spec is not None:
19294  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
19295  return
19296  oprot.writeStructBegin('get_layers_in_geo_file_args')
19297  if self.session is not None:
19298  oprot.writeFieldBegin('session', TType.STRING, 1)
19299  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
19300  oprot.writeFieldEnd()
19301  if self.file_name is not None:
19302  oprot.writeFieldBegin('file_name', TType.STRING, 2)
19303  oprot.writeString(self.file_name.encode('utf-8') if sys.version_info[0] == 2 else self.file_name)
19304  oprot.writeFieldEnd()
19305  if self.copy_params is not None:
19306  oprot.writeFieldBegin('copy_params', TType.STRUCT, 3)
19307  self.copy_params.write(oprot)
19308  oprot.writeFieldEnd()
19309  oprot.writeFieldStop()
19310  oprot.writeStructEnd()
19311 
19312  def validate(self):
19313  return
19314 
19315  def __repr__(self):
19316  L = ['%s=%r' % (key, value)
19317  for key, value in self.__dict__.items()]
19318  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19319 
19320  def __eq__(self, other):
19321  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19322 
19323  def __ne__(self, other):
19324  return not (self == other)
19325 all_structs.append(get_layers_in_geo_file_args)
19326 get_layers_in_geo_file_args.thrift_spec = (
19327  None, # 0
19328  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
19329  (2, TType.STRING, 'file_name', 'UTF8', None, ), # 2
19330  (3, TType.STRUCT, 'copy_params', [TCopyParams, None], None, ), # 3
19331 )
19332 
19333 
19335  """
19336  Attributes:
19337  - success
19338  - e
19339 
19340  """
19341 
19342 
19343  def __init__(self, success=None, e=None,):
19344  self.success = success
19345  self.e = e
19346 
19347  def read(self, iprot):
19348  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
19349  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
19350  return
19351  iprot.readStructBegin()
19352  while True:
19353  (fname, ftype, fid) = iprot.readFieldBegin()
19354  if ftype == TType.STOP:
19355  break
19356  if fid == 0:
19357  if ftype == TType.LIST:
19358  self.success = []
19359  (_etype554, _size551) = iprot.readListBegin()
19360  for _i555 in range(_size551):
19361  _elem556 = TGeoFileLayerInfo()
19362  _elem556.read(iprot)
19363  self.success.append(_elem556)
19364  iprot.readListEnd()
19365  else:
19366  iprot.skip(ftype)
19367  elif fid == 1:
19368  if ftype == TType.STRUCT:
19369  self.e = TDBException.read(iprot)
19370  else:
19371  iprot.skip(ftype)
19372  else:
19373  iprot.skip(ftype)
19374  iprot.readFieldEnd()
19375  iprot.readStructEnd()
19376 
19377  def write(self, oprot):
19378  if oprot._fast_encode is not None and self.thrift_spec is not None:
19379  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
19380  return
19381  oprot.writeStructBegin('get_layers_in_geo_file_result')
19382  if self.success is not None:
19383  oprot.writeFieldBegin('success', TType.LIST, 0)
19384  oprot.writeListBegin(TType.STRUCT, len(self.success))
19385  for iter557 in self.success:
19386  iter557.write(oprot)
19387  oprot.writeListEnd()
19388  oprot.writeFieldEnd()
19389  if self.e is not None:
19390  oprot.writeFieldBegin('e', TType.STRUCT, 1)
19391  self.e.write(oprot)
19392  oprot.writeFieldEnd()
19393  oprot.writeFieldStop()
19394  oprot.writeStructEnd()
19395 
19396  def validate(self):
19397  return
19398 
19399  def __repr__(self):
19400  L = ['%s=%r' % (key, value)
19401  for key, value in self.__dict__.items()]
19402  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19403 
19404  def __eq__(self, other):
19405  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19406 
19407  def __ne__(self, other):
19408  return not (self == other)
19409 all_structs.append(get_layers_in_geo_file_result)
19410 get_layers_in_geo_file_result.thrift_spec = (
19411  (0, TType.LIST, 'success', (TType.STRUCT, [TGeoFileLayerInfo, None], False), None, ), # 0
19412  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
19413 )
19414 
19415 
19417  """
19418  Attributes:
19419  - session
19420  - query
19421 
19422  """
19423 
19424 
19425  def __init__(self, session=None, query=None,):
19426  self.session = session
19427  self.query = query
19428 
19429  def read(self, iprot):
19430  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
19431  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
19432  return
19433  iprot.readStructBegin()
19434  while True:
19435  (fname, ftype, fid) = iprot.readFieldBegin()
19436  if ftype == TType.STOP:
19437  break
19438  if fid == 1:
19439  if ftype == TType.STRING:
19440  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
19441  else:
19442  iprot.skip(ftype)
19443  elif fid == 2:
19444  if ftype == TType.STRING:
19445  self.query = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
19446  else:
19447  iprot.skip(ftype)
19448  else:
19449  iprot.skip(ftype)
19450  iprot.readFieldEnd()
19451  iprot.readStructEnd()
19452 
19453  def write(self, oprot):
19454  if oprot._fast_encode is not None and self.thrift_spec is not None:
19455  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
19456  return
19457  oprot.writeStructBegin('query_get_outer_fragment_count_args')
19458  if self.session is not None:
19459  oprot.writeFieldBegin('session', TType.STRING, 1)
19460  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
19461  oprot.writeFieldEnd()
19462  if self.query is not None:
19463  oprot.writeFieldBegin('query', TType.STRING, 2)
19464  oprot.writeString(self.query.encode('utf-8') if sys.version_info[0] == 2 else self.query)
19465  oprot.writeFieldEnd()
19466  oprot.writeFieldStop()
19467  oprot.writeStructEnd()
19468 
19469  def validate(self):
19470  return
19471 
19472  def __repr__(self):
19473  L = ['%s=%r' % (key, value)
19474  for key, value in self.__dict__.items()]
19475  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19476 
19477  def __eq__(self, other):
19478  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19479 
19480  def __ne__(self, other):
19481  return not (self == other)
19482 all_structs.append(query_get_outer_fragment_count_args)
19483 query_get_outer_fragment_count_args.thrift_spec = (
19484  None, # 0
19485  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
19486  (2, TType.STRING, 'query', 'UTF8', None, ), # 2
19487 )
19488 
19489 
19491  """
19492  Attributes:
19493  - success
19494  - e
19495 
19496  """
19497 
19498 
19499  def __init__(self, success=None, e=None,):
19500  self.success = success
19501  self.e = e
19502 
19503  def read(self, iprot):
19504  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
19505  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
19506  return
19507  iprot.readStructBegin()
19508  while True:
19509  (fname, ftype, fid) = iprot.readFieldBegin()
19510  if ftype == TType.STOP:
19511  break
19512  if fid == 0:
19513  if ftype == TType.I64:
19514  self.success = iprot.readI64()
19515  else:
19516  iprot.skip(ftype)
19517  elif fid == 1:
19518  if ftype == TType.STRUCT:
19519  self.e = TDBException.read(iprot)
19520  else:
19521  iprot.skip(ftype)
19522  else:
19523  iprot.skip(ftype)
19524  iprot.readFieldEnd()
19525  iprot.readStructEnd()
19526 
19527  def write(self, oprot):
19528  if oprot._fast_encode is not None and self.thrift_spec is not None:
19529  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
19530  return
19531  oprot.writeStructBegin('query_get_outer_fragment_count_result')
19532  if self.success is not None:
19533  oprot.writeFieldBegin('success', TType.I64, 0)
19534  oprot.writeI64(self.success)
19535  oprot.writeFieldEnd()
19536  if self.e is not None:
19537  oprot.writeFieldBegin('e', TType.STRUCT, 1)
19538  self.e.write(oprot)
19539  oprot.writeFieldEnd()
19540  oprot.writeFieldStop()
19541  oprot.writeStructEnd()
19542 
19543  def validate(self):
19544  return
19545 
19546  def __repr__(self):
19547  L = ['%s=%r' % (key, value)
19548  for key, value in self.__dict__.items()]
19549  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19550 
19551  def __eq__(self, other):
19552  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19553 
19554  def __ne__(self, other):
19555  return not (self == other)
19556 all_structs.append(query_get_outer_fragment_count_result)
19557 query_get_outer_fragment_count_result.thrift_spec = (
19558  (0, TType.I64, 'success', None, None, ), # 0
19559  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
19560 )
19561 
19562 
19564  """
19565  Attributes:
19566  - session
19567  - table_id
19568 
19569  """
19570 
19571 
19572  def __init__(self, session=None, table_id=None,):
19573  self.session = session
19574  self.table_id = table_id
19575 
19576  def read(self, iprot):
19577  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
19578  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
19579  return
19580  iprot.readStructBegin()
19581  while True:
19582  (fname, ftype, fid) = iprot.readFieldBegin()
19583  if ftype == TType.STOP:
19584  break
19585  if fid == 1:
19586  if ftype == TType.STRING:
19587  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
19588  else:
19589  iprot.skip(ftype)
19590  elif fid == 2:
19591  if ftype == TType.I32:
19592  self.table_id = iprot.readI32()
19593  else:
19594  iprot.skip(ftype)
19595  else:
19596  iprot.skip(ftype)
19597  iprot.readFieldEnd()
19598  iprot.readStructEnd()
19599 
19600  def write(self, oprot):
19601  if oprot._fast_encode is not None and self.thrift_spec is not None:
19602  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
19603  return
19604  oprot.writeStructBegin('check_table_consistency_args')
19605  if self.session is not None:
19606  oprot.writeFieldBegin('session', TType.STRING, 1)
19607  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
19608  oprot.writeFieldEnd()
19609  if self.table_id is not None:
19610  oprot.writeFieldBegin('table_id', TType.I32, 2)
19611  oprot.writeI32(self.table_id)
19612  oprot.writeFieldEnd()
19613  oprot.writeFieldStop()
19614  oprot.writeStructEnd()
19615 
19616  def validate(self):
19617  return
19618 
19619  def __repr__(self):
19620  L = ['%s=%r' % (key, value)
19621  for key, value in self.__dict__.items()]
19622  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19623 
19624  def __eq__(self, other):
19625  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19626 
19627  def __ne__(self, other):
19628  return not (self == other)
19629 all_structs.append(check_table_consistency_args)
19630 check_table_consistency_args.thrift_spec = (
19631  None, # 0
19632  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
19633  (2, TType.I32, 'table_id', None, None, ), # 2
19634 )
19635 
19636 
19638  """
19639  Attributes:
19640  - success
19641  - e
19642 
19643  """
19644 
19645 
19646  def __init__(self, success=None, e=None,):
19647  self.success = success
19648  self.e = e
19649 
19650  def read(self, iprot):
19651  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
19652  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
19653  return
19654  iprot.readStructBegin()
19655  while True:
19656  (fname, ftype, fid) = iprot.readFieldBegin()
19657  if ftype == TType.STOP:
19658  break
19659  if fid == 0:
19660  if ftype == TType.STRUCT:
19661  self.success = TTableMeta()
19662  self.success.read(iprot)
19663  else:
19664  iprot.skip(ftype)
19665  elif fid == 1:
19666  if ftype == TType.STRUCT:
19667  self.e = TDBException.read(iprot)
19668  else:
19669  iprot.skip(ftype)
19670  else:
19671  iprot.skip(ftype)
19672  iprot.readFieldEnd()
19673  iprot.readStructEnd()
19674 
19675  def write(self, oprot):
19676  if oprot._fast_encode is not None and self.thrift_spec is not None:
19677  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
19678  return
19679  oprot.writeStructBegin('check_table_consistency_result')
19680  if self.success is not None:
19681  oprot.writeFieldBegin('success', TType.STRUCT, 0)
19682  self.success.write(oprot)
19683  oprot.writeFieldEnd()
19684  if self.e is not None:
19685  oprot.writeFieldBegin('e', TType.STRUCT, 1)
19686  self.e.write(oprot)
19687  oprot.writeFieldEnd()
19688  oprot.writeFieldStop()
19689  oprot.writeStructEnd()
19690 
19691  def validate(self):
19692  return
19693 
19694  def __repr__(self):
19695  L = ['%s=%r' % (key, value)
19696  for key, value in self.__dict__.items()]
19697  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19698 
19699  def __eq__(self, other):
19700  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19701 
19702  def __ne__(self, other):
19703  return not (self == other)
19704 all_structs.append(check_table_consistency_result)
19705 check_table_consistency_result.thrift_spec = (
19706  (0, TType.STRUCT, 'success', [TTableMeta, None], None, ), # 0
19707  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
19708 )
19709 
19710 
19711 class start_query_args(object):
19712  """
19713  Attributes:
19714  - leaf_session
19715  - parent_session
19716  - query_ra
19717  - start_time_str
19718  - just_explain
19719  - outer_fragment_indices
19720 
19721  """
19722 
19723 
19724  def __init__(self, leaf_session=None, parent_session=None, query_ra=None, start_time_str=None, just_explain=None, outer_fragment_indices=None,):
19725  self.leaf_session = leaf_session
19726  self.parent_session = parent_session
19727  self.query_ra = query_ra
19728  self.start_time_str = start_time_str
19729  self.just_explain = just_explain
19730  self.outer_fragment_indices = outer_fragment_indices
19731 
19732  def read(self, iprot):
19733  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
19734  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
19735  return
19736  iprot.readStructBegin()
19737  while True:
19738  (fname, ftype, fid) = iprot.readFieldBegin()
19739  if ftype == TType.STOP:
19740  break
19741  if fid == 1:
19742  if ftype == TType.STRING:
19743  self.leaf_session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
19744  else:
19745  iprot.skip(ftype)
19746  elif fid == 2:
19747  if ftype == TType.STRING:
19748  self.parent_session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
19749  else:
19750  iprot.skip(ftype)
19751  elif fid == 3:
19752  if ftype == TType.STRING:
19753  self.query_ra = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
19754  else:
19755  iprot.skip(ftype)
19756  elif fid == 4:
19757  if ftype == TType.STRING:
19758  self.start_time_str = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
19759  else:
19760  iprot.skip(ftype)
19761  elif fid == 5:
19762  if ftype == TType.BOOL:
19763  self.just_explain = iprot.readBool()
19764  else:
19765  iprot.skip(ftype)
19766  elif fid == 6:
19767  if ftype == TType.LIST:
19768  self.outer_fragment_indices = []
19769  (_etype561, _size558) = iprot.readListBegin()
19770  for _i562 in range(_size558):
19771  _elem563 = iprot.readI64()
19772  self.outer_fragment_indices.append(_elem563)
19773  iprot.readListEnd()
19774  else:
19775  iprot.skip(ftype)
19776  else:
19777  iprot.skip(ftype)
19778  iprot.readFieldEnd()
19779  iprot.readStructEnd()
19780 
19781  def write(self, oprot):
19782  if oprot._fast_encode is not None and self.thrift_spec is not None:
19783  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
19784  return
19785  oprot.writeStructBegin('start_query_args')
19786  if self.leaf_session is not None:
19787  oprot.writeFieldBegin('leaf_session', TType.STRING, 1)
19788  oprot.writeString(self.leaf_session.encode('utf-8') if sys.version_info[0] == 2 else self.leaf_session)
19789  oprot.writeFieldEnd()
19790  if self.parent_session is not None:
19791  oprot.writeFieldBegin('parent_session', TType.STRING, 2)
19792  oprot.writeString(self.parent_session.encode('utf-8') if sys.version_info[0] == 2 else self.parent_session)
19793  oprot.writeFieldEnd()
19794  if self.query_ra is not None:
19795  oprot.writeFieldBegin('query_ra', TType.STRING, 3)
19796  oprot.writeString(self.query_ra.encode('utf-8') if sys.version_info[0] == 2 else self.query_ra)
19797  oprot.writeFieldEnd()
19798  if self.start_time_str is not None:
19799  oprot.writeFieldBegin('start_time_str', TType.STRING, 4)
19800  oprot.writeString(self.start_time_str.encode('utf-8') if sys.version_info[0] == 2 else self.start_time_str)
19801  oprot.writeFieldEnd()
19802  if self.just_explain is not None:
19803  oprot.writeFieldBegin('just_explain', TType.BOOL, 5)
19804  oprot.writeBool(self.just_explain)
19805  oprot.writeFieldEnd()
19806  if self.outer_fragment_indices is not None:
19807  oprot.writeFieldBegin('outer_fragment_indices', TType.LIST, 6)
19808  oprot.writeListBegin(TType.I64, len(self.outer_fragment_indices))
19809  for iter564 in self.outer_fragment_indices:
19810  oprot.writeI64(iter564)
19811  oprot.writeListEnd()
19812  oprot.writeFieldEnd()
19813  oprot.writeFieldStop()
19814  oprot.writeStructEnd()
19815 
19816  def validate(self):
19817  return
19818 
19819  def __repr__(self):
19820  L = ['%s=%r' % (key, value)
19821  for key, value in self.__dict__.items()]
19822  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19823 
19824  def __eq__(self, other):
19825  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19826 
19827  def __ne__(self, other):
19828  return not (self == other)
19829 all_structs.append(start_query_args)
19830 start_query_args.thrift_spec = (
19831  None, # 0
19832  (1, TType.STRING, 'leaf_session', 'UTF8', None, ), # 1
19833  (2, TType.STRING, 'parent_session', 'UTF8', None, ), # 2
19834  (3, TType.STRING, 'query_ra', 'UTF8', None, ), # 3
19835  (4, TType.STRING, 'start_time_str', 'UTF8', None, ), # 4
19836  (5, TType.BOOL, 'just_explain', None, None, ), # 5
19837  (6, TType.LIST, 'outer_fragment_indices', (TType.I64, None, False), None, ), # 6
19838 )
19839 
19840 
19841 class start_query_result(object):
19842  """
19843  Attributes:
19844  - success
19845  - e
19846 
19847  """
19848 
19849 
19850  def __init__(self, success=None, e=None,):
19851  self.success = success
19852  self.e = e
19853 
19854  def read(self, iprot):
19855  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
19856  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
19857  return
19858  iprot.readStructBegin()
19859  while True:
19860  (fname, ftype, fid) = iprot.readFieldBegin()
19861  if ftype == TType.STOP:
19862  break
19863  if fid == 0:
19864  if ftype == TType.STRUCT:
19865  self.success = TPendingQuery()
19866  self.success.read(iprot)
19867  else:
19868  iprot.skip(ftype)
19869  elif fid == 1:
19870  if ftype == TType.STRUCT:
19871  self.e = TDBException.read(iprot)
19872  else:
19873  iprot.skip(ftype)
19874  else:
19875  iprot.skip(ftype)
19876  iprot.readFieldEnd()
19877  iprot.readStructEnd()
19878 
19879  def write(self, oprot):
19880  if oprot._fast_encode is not None and self.thrift_spec is not None:
19881  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
19882  return
19883  oprot.writeStructBegin('start_query_result')
19884  if self.success is not None:
19885  oprot.writeFieldBegin('success', TType.STRUCT, 0)
19886  self.success.write(oprot)
19887  oprot.writeFieldEnd()
19888  if self.e is not None:
19889  oprot.writeFieldBegin('e', TType.STRUCT, 1)
19890  self.e.write(oprot)
19891  oprot.writeFieldEnd()
19892  oprot.writeFieldStop()
19893  oprot.writeStructEnd()
19894 
19895  def validate(self):
19896  return
19897 
19898  def __repr__(self):
19899  L = ['%s=%r' % (key, value)
19900  for key, value in self.__dict__.items()]
19901  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19902 
19903  def __eq__(self, other):
19904  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19905 
19906  def __ne__(self, other):
19907  return not (self == other)
19908 all_structs.append(start_query_result)
19909 start_query_result.thrift_spec = (
19910  (0, TType.STRUCT, 'success', [TPendingQuery, None], None, ), # 0
19911  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
19912 )
19913 
19914 
19916  """
19917  Attributes:
19918  - pending_query
19919  - subquery_id
19920  - start_time_str
19921 
19922  """
19923 
19924 
19925  def __init__(self, pending_query=None, subquery_id=None, start_time_str=None,):
19926  self.pending_query = pending_query
19927  self.subquery_id = subquery_id
19928  self.start_time_str = start_time_str
19929 
19930  def read(self, iprot):
19931  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
19932  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
19933  return
19934  iprot.readStructBegin()
19935  while True:
19936  (fname, ftype, fid) = iprot.readFieldBegin()
19937  if ftype == TType.STOP:
19938  break
19939  if fid == 1:
19940  if ftype == TType.STRUCT:
19941  self.pending_query = TPendingQuery()
19942  self.pending_query.read(iprot)
19943  else:
19944  iprot.skip(ftype)
19945  elif fid == 2:
19946  if ftype == TType.I64:
19947  self.subquery_id = iprot.readI64()
19948  else:
19949  iprot.skip(ftype)
19950  elif fid == 3:
19951  if ftype == TType.STRING:
19952  self.start_time_str = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
19953  else:
19954  iprot.skip(ftype)
19955  else:
19956  iprot.skip(ftype)
19957  iprot.readFieldEnd()
19958  iprot.readStructEnd()
19959 
19960  def write(self, oprot):
19961  if oprot._fast_encode is not None and self.thrift_spec is not None:
19962  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
19963  return
19964  oprot.writeStructBegin('execute_query_step_args')
19965  if self.pending_query is not None:
19966  oprot.writeFieldBegin('pending_query', TType.STRUCT, 1)
19967  self.pending_query.write(oprot)
19968  oprot.writeFieldEnd()
19969  if self.subquery_id is not None:
19970  oprot.writeFieldBegin('subquery_id', TType.I64, 2)
19971  oprot.writeI64(self.subquery_id)
19972  oprot.writeFieldEnd()
19973  if self.start_time_str is not None:
19974  oprot.writeFieldBegin('start_time_str', TType.STRING, 3)
19975  oprot.writeString(self.start_time_str.encode('utf-8') if sys.version_info[0] == 2 else self.start_time_str)
19976  oprot.writeFieldEnd()
19977  oprot.writeFieldStop()
19978  oprot.writeStructEnd()
19979 
19980  def validate(self):
19981  return
19982 
19983  def __repr__(self):
19984  L = ['%s=%r' % (key, value)
19985  for key, value in self.__dict__.items()]
19986  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19987 
19988  def __eq__(self, other):
19989  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19990 
19991  def __ne__(self, other):
19992  return not (self == other)
19993 all_structs.append(execute_query_step_args)
19994 execute_query_step_args.thrift_spec = (
19995  None, # 0
19996  (1, TType.STRUCT, 'pending_query', [TPendingQuery, None], None, ), # 1
19997  (2, TType.I64, 'subquery_id', None, None, ), # 2
19998  (3, TType.STRING, 'start_time_str', 'UTF8', None, ), # 3
19999 )
20000 
20001 
20003  """
20004  Attributes:
20005  - success
20006  - e
20007 
20008  """
20009 
20010 
20011  def __init__(self, success=None, e=None,):
20012  self.success = success
20013  self.e = e
20014 
20015  def read(self, iprot):
20016  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
20017  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
20018  return
20019  iprot.readStructBegin()
20020  while True:
20021  (fname, ftype, fid) = iprot.readFieldBegin()
20022  if ftype == TType.STOP:
20023  break
20024  if fid == 0:
20025  if ftype == TType.STRUCT:
20026  self.success = TStepResult()
20027  self.success.read(iprot)
20028  else:
20029  iprot.skip(ftype)
20030  elif fid == 1:
20031  if ftype == TType.STRUCT:
20032  self.e = TDBException.read(iprot)
20033  else:
20034  iprot.skip(ftype)
20035  else:
20036  iprot.skip(ftype)
20037  iprot.readFieldEnd()
20038  iprot.readStructEnd()
20039 
20040  def write(self, oprot):
20041  if oprot._fast_encode is not None and self.thrift_spec is not None:
20042  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
20043  return
20044  oprot.writeStructBegin('execute_query_step_result')
20045  if self.success is not None:
20046  oprot.writeFieldBegin('success', TType.STRUCT, 0)
20047  self.success.write(oprot)
20048  oprot.writeFieldEnd()
20049  if self.e is not None:
20050  oprot.writeFieldBegin('e', TType.STRUCT, 1)
20051  self.e.write(oprot)
20052  oprot.writeFieldEnd()
20053  oprot.writeFieldStop()
20054  oprot.writeStructEnd()
20055 
20056  def validate(self):
20057  return
20058 
20059  def __repr__(self):
20060  L = ['%s=%r' % (key, value)
20061  for key, value in self.__dict__.items()]
20062  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20063 
20064  def __eq__(self, other):
20065  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20066 
20067  def __ne__(self, other):
20068  return not (self == other)
20069 all_structs.append(execute_query_step_result)
20070 execute_query_step_result.thrift_spec = (
20071  (0, TType.STRUCT, 'success', [TStepResult, None], None, ), # 0
20072  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
20073 )
20074 
20075 
20077  """
20078  Attributes:
20079  - serialized_rows
20080  - row_desc
20081  - query_id
20082  - subquery_id
20083  - is_final_subquery_result
20084 
20085  """
20086 
20087 
20088  def __init__(self, serialized_rows=None, row_desc=None, query_id=None, subquery_id=None, is_final_subquery_result=None,):
20089  self.serialized_rows = serialized_rows
20090  self.row_desc = row_desc
20091  self.query_id = query_id
20092  self.subquery_id = subquery_id
20093  self.is_final_subquery_result = is_final_subquery_result
20094 
20095  def read(self, iprot):
20096  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
20097  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
20098  return
20099  iprot.readStructBegin()
20100  while True:
20101  (fname, ftype, fid) = iprot.readFieldBegin()
20102  if ftype == TType.STOP:
20103  break
20104  if fid == 1:
20105  if ftype == TType.STRUCT:
20107  self.serialized_rows.read(iprot)
20108  else:
20109  iprot.skip(ftype)
20110  elif fid == 2:
20111  if ftype == TType.LIST:
20112  self.row_desc = []
20113  (_etype568, _size565) = iprot.readListBegin()
20114  for _i569 in range(_size565):
20115  _elem570 = TColumnType()
20116  _elem570.read(iprot)
20117  self.row_desc.append(_elem570)
20118  iprot.readListEnd()
20119  else:
20120  iprot.skip(ftype)
20121  elif fid == 3:
20122  if ftype == TType.I64:
20123  self.query_id = iprot.readI64()
20124  else:
20125  iprot.skip(ftype)
20126  elif fid == 4:
20127  if ftype == TType.I64:
20128  self.subquery_id = iprot.readI64()
20129  else:
20130  iprot.skip(ftype)
20131  elif fid == 5:
20132  if ftype == TType.BOOL:
20133  self.is_final_subquery_result = iprot.readBool()
20134  else:
20135  iprot.skip(ftype)
20136  else:
20137  iprot.skip(ftype)
20138  iprot.readFieldEnd()
20139  iprot.readStructEnd()
20140 
20141  def write(self, oprot):
20142  if oprot._fast_encode is not None and self.thrift_spec is not None:
20143  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
20144  return
20145  oprot.writeStructBegin('broadcast_serialized_rows_args')
20146  if self.serialized_rows is not None:
20147  oprot.writeFieldBegin('serialized_rows', TType.STRUCT, 1)
20148  self.serialized_rows.write(oprot)
20149  oprot.writeFieldEnd()
20150  if self.row_desc is not None:
20151  oprot.writeFieldBegin('row_desc', TType.LIST, 2)
20152  oprot.writeListBegin(TType.STRUCT, len(self.row_desc))
20153  for iter571 in self.row_desc:
20154  iter571.write(oprot)
20155  oprot.writeListEnd()
20156  oprot.writeFieldEnd()
20157  if self.query_id is not None:
20158  oprot.writeFieldBegin('query_id', TType.I64, 3)
20159  oprot.writeI64(self.query_id)
20160  oprot.writeFieldEnd()
20161  if self.subquery_id is not None:
20162  oprot.writeFieldBegin('subquery_id', TType.I64, 4)
20163  oprot.writeI64(self.subquery_id)
20164  oprot.writeFieldEnd()
20165  if self.is_final_subquery_result is not None:
20166  oprot.writeFieldBegin('is_final_subquery_result', TType.BOOL, 5)
20167  oprot.writeBool(self.is_final_subquery_result)
20168  oprot.writeFieldEnd()
20169  oprot.writeFieldStop()
20170  oprot.writeStructEnd()
20171 
20172  def validate(self):
20173  return
20174 
20175  def __repr__(self):
20176  L = ['%s=%r' % (key, value)
20177  for key, value in self.__dict__.items()]
20178  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20179 
20180  def __eq__(self, other):
20181  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20182 
20183  def __ne__(self, other):
20184  return not (self == other)
20185 all_structs.append(broadcast_serialized_rows_args)
20186 broadcast_serialized_rows_args.thrift_spec = (
20187  None, # 0
20188  (1, TType.STRUCT, 'serialized_rows', [heavydb.serialized_result_set.ttypes.TSerializedRows, None], None, ), # 1
20189  (2, TType.LIST, 'row_desc', (TType.STRUCT, [TColumnType, None], False), None, ), # 2
20190  (3, TType.I64, 'query_id', None, None, ), # 3
20191  (4, TType.I64, 'subquery_id', None, None, ), # 4
20192  (5, TType.BOOL, 'is_final_subquery_result', None, None, ), # 5
20193 )
20194 
20195 
20197  """
20198  Attributes:
20199  - e
20200 
20201  """
20202 
20203 
20204  def __init__(self, e=None,):
20205  self.e = e
20206 
20207  def read(self, iprot):
20208  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
20209  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
20210  return
20211  iprot.readStructBegin()
20212  while True:
20213  (fname, ftype, fid) = iprot.readFieldBegin()
20214  if ftype == TType.STOP:
20215  break
20216  if fid == 1:
20217  if ftype == TType.STRUCT:
20218  self.e = TDBException.read(iprot)
20219  else:
20220  iprot.skip(ftype)
20221  else:
20222  iprot.skip(ftype)
20223  iprot.readFieldEnd()
20224  iprot.readStructEnd()
20225 
20226  def write(self, oprot):
20227  if oprot._fast_encode is not None and self.thrift_spec is not None:
20228  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
20229  return
20230  oprot.writeStructBegin('broadcast_serialized_rows_result')
20231  if self.e is not None:
20232  oprot.writeFieldBegin('e', TType.STRUCT, 1)
20233  self.e.write(oprot)
20234  oprot.writeFieldEnd()
20235  oprot.writeFieldStop()
20236  oprot.writeStructEnd()
20237 
20238  def validate(self):
20239  return
20240 
20241  def __repr__(self):
20242  L = ['%s=%r' % (key, value)
20243  for key, value in self.__dict__.items()]
20244  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20245 
20246  def __eq__(self, other):
20247  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20248 
20249  def __ne__(self, other):
20250  return not (self == other)
20251 all_structs.append(broadcast_serialized_rows_result)
20252 broadcast_serialized_rows_result.thrift_spec = (
20253  None, # 0
20254  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
20255 )
20256 
20257 
20259  """
20260  Attributes:
20261  - session
20262  - widget_id
20263  - node_idx
20264  - vega_json
20265 
20266  """
20267 
20268 
20269  def __init__(self, session=None, widget_id=None, node_idx=None, vega_json=None,):
20270  self.session = session
20271  self.widget_id = widget_id
20272  self.node_idx = node_idx
20273  self.vega_json = vega_json
20274 
20275  def read(self, iprot):
20276  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
20277  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
20278  return
20279  iprot.readStructBegin()
20280  while True:
20281  (fname, ftype, fid) = iprot.readFieldBegin()
20282  if ftype == TType.STOP:
20283  break
20284  if fid == 1:
20285  if ftype == TType.STRING:
20286  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
20287  else:
20288  iprot.skip(ftype)
20289  elif fid == 2:
20290  if ftype == TType.I64:
20291  self.widget_id = iprot.readI64()
20292  else:
20293  iprot.skip(ftype)
20294  elif fid == 3:
20295  if ftype == TType.I16:
20296  self.node_idx = iprot.readI16()
20297  else:
20298  iprot.skip(ftype)
20299  elif fid == 4:
20300  if ftype == TType.STRING:
20301  self.vega_json = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
20302  else:
20303  iprot.skip(ftype)
20304  else:
20305  iprot.skip(ftype)
20306  iprot.readFieldEnd()
20307  iprot.readStructEnd()
20308 
20309  def write(self, oprot):
20310  if oprot._fast_encode is not None and self.thrift_spec is not None:
20311  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
20312  return
20313  oprot.writeStructBegin('start_render_query_args')
20314  if self.session is not None:
20315  oprot.writeFieldBegin('session', TType.STRING, 1)
20316  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
20317  oprot.writeFieldEnd()
20318  if self.widget_id is not None:
20319  oprot.writeFieldBegin('widget_id', TType.I64, 2)
20320  oprot.writeI64(self.widget_id)
20321  oprot.writeFieldEnd()
20322  if self.node_idx is not None:
20323  oprot.writeFieldBegin('node_idx', TType.I16, 3)
20324  oprot.writeI16(self.node_idx)
20325  oprot.writeFieldEnd()
20326  if self.vega_json is not None:
20327  oprot.writeFieldBegin('vega_json', TType.STRING, 4)
20328  oprot.writeString(self.vega_json.encode('utf-8') if sys.version_info[0] == 2 else self.vega_json)
20329  oprot.writeFieldEnd()
20330  oprot.writeFieldStop()
20331  oprot.writeStructEnd()
20332 
20333  def validate(self):
20334  return
20335 
20336  def __repr__(self):
20337  L = ['%s=%r' % (key, value)
20338  for key, value in self.__dict__.items()]
20339  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20340 
20341  def __eq__(self, other):
20342  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20343 
20344  def __ne__(self, other):
20345  return not (self == other)
20346 all_structs.append(start_render_query_args)
20347 start_render_query_args.thrift_spec = (
20348  None, # 0
20349  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
20350  (2, TType.I64, 'widget_id', None, None, ), # 2
20351  (3, TType.I16, 'node_idx', None, None, ), # 3
20352  (4, TType.STRING, 'vega_json', 'UTF8', None, ), # 4
20353 )
20354 
20355 
20357  """
20358  Attributes:
20359  - success
20360  - e
20361 
20362  """
20363 
20364 
20365  def __init__(self, success=None, e=None,):
20366  self.success = success
20367  self.e = e
20368 
20369  def read(self, iprot):
20370  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
20371  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
20372  return
20373  iprot.readStructBegin()
20374  while True:
20375  (fname, ftype, fid) = iprot.readFieldBegin()
20376  if ftype == TType.STOP:
20377  break
20378  if fid == 0:
20379  if ftype == TType.STRUCT:
20380  self.success = TPendingRenderQuery()
20381  self.success.read(iprot)
20382  else:
20383  iprot.skip(ftype)
20384  elif fid == 1:
20385  if ftype == TType.STRUCT:
20386  self.e = TDBException.read(iprot)
20387  else:
20388  iprot.skip(ftype)
20389  else:
20390  iprot.skip(ftype)
20391  iprot.readFieldEnd()
20392  iprot.readStructEnd()
20393 
20394  def write(self, oprot):
20395  if oprot._fast_encode is not None and self.thrift_spec is not None:
20396  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
20397  return
20398  oprot.writeStructBegin('start_render_query_result')
20399  if self.success is not None:
20400  oprot.writeFieldBegin('success', TType.STRUCT, 0)
20401  self.success.write(oprot)
20402  oprot.writeFieldEnd()
20403  if self.e is not None:
20404  oprot.writeFieldBegin('e', TType.STRUCT, 1)
20405  self.e.write(oprot)
20406  oprot.writeFieldEnd()
20407  oprot.writeFieldStop()
20408  oprot.writeStructEnd()
20409 
20410  def validate(self):
20411  return
20412 
20413  def __repr__(self):
20414  L = ['%s=%r' % (key, value)
20415  for key, value in self.__dict__.items()]
20416  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20417 
20418  def __eq__(self, other):
20419  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20420 
20421  def __ne__(self, other):
20422  return not (self == other)
20423 all_structs.append(start_render_query_result)
20424 start_render_query_result.thrift_spec = (
20425  (0, TType.STRUCT, 'success', [TPendingRenderQuery, None], None, ), # 0
20426  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
20427 )
20428 
20429 
20431  """
20432  Attributes:
20433  - pending_render
20434  - merged_data
20435 
20436  """
20437 
20438 
20439  def __init__(self, pending_render=None, merged_data=None,):
20440  self.pending_render = pending_render
20441  self.merged_data = merged_data
20442 
20443  def read(self, iprot):
20444  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
20445  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
20446  return
20447  iprot.readStructBegin()
20448  while True:
20449  (fname, ftype, fid) = iprot.readFieldBegin()
20450  if ftype == TType.STOP:
20451  break
20452  if fid == 1:
20453  if ftype == TType.STRUCT:
20454  self.pending_render = TPendingRenderQuery()
20455  self.pending_render.read(iprot)
20456  else:
20457  iprot.skip(ftype)
20458  elif fid == 2:
20459  if ftype == TType.MAP:
20460  self.merged_data = {}
20461  (_ktype573, _vtype574, _size572) = iprot.readMapBegin()
20462  for _i576 in range(_size572):
20463  _key577 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
20464  _val578 = {}
20465  (_ktype580, _vtype581, _size579) = iprot.readMapBegin()
20466  for _i583 in range(_size579):
20467  _key584 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
20468  _val585 = {}
20469  (_ktype587, _vtype588, _size586) = iprot.readMapBegin()
20470  for _i590 in range(_size586):
20471  _key591 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
20472  _val592 = {}
20473  (_ktype594, _vtype595, _size593) = iprot.readMapBegin()
20474  for _i597 in range(_size593):
20475  _key598 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
20476  _val599 = []
20477  (_etype603, _size600) = iprot.readListBegin()
20478  for _i604 in range(_size600):
20479  _elem605 = TRenderDatum()
20480  _elem605.read(iprot)
20481  _val599.append(_elem605)
20482  iprot.readListEnd()
20483  _val592[_key598] = _val599
20484  iprot.readMapEnd()
20485  _val585[_key591] = _val592
20486  iprot.readMapEnd()
20487  _val578[_key584] = _val585
20488  iprot.readMapEnd()
20489  self.merged_data[_key577] = _val578
20490  iprot.readMapEnd()
20491  else:
20492  iprot.skip(ftype)
20493  else:
20494  iprot.skip(ftype)
20495  iprot.readFieldEnd()
20496  iprot.readStructEnd()
20497 
20498  def write(self, oprot):
20499  if oprot._fast_encode is not None and self.thrift_spec is not None:
20500  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
20501  return
20502  oprot.writeStructBegin('execute_next_render_step_args')
20503  if self.pending_render is not None:
20504  oprot.writeFieldBegin('pending_render', TType.STRUCT, 1)
20505  self.pending_render.write(oprot)
20506  oprot.writeFieldEnd()
20507  if self.merged_data is not None:
20508  oprot.writeFieldBegin('merged_data', TType.MAP, 2)
20509  oprot.writeMapBegin(TType.STRING, TType.MAP, len(self.merged_data))
20510  for kiter606, viter607 in self.merged_data.items():
20511  oprot.writeString(kiter606.encode('utf-8') if sys.version_info[0] == 2 else kiter606)
20512  oprot.writeMapBegin(TType.STRING, TType.MAP, len(viter607))
20513  for kiter608, viter609 in viter607.items():
20514  oprot.writeString(kiter608.encode('utf-8') if sys.version_info[0] == 2 else kiter608)
20515  oprot.writeMapBegin(TType.STRING, TType.MAP, len(viter609))
20516  for kiter610, viter611 in viter609.items():
20517  oprot.writeString(kiter610.encode('utf-8') if sys.version_info[0] == 2 else kiter610)
20518  oprot.writeMapBegin(TType.STRING, TType.LIST, len(viter611))
20519  for kiter612, viter613 in viter611.items():
20520  oprot.writeString(kiter612.encode('utf-8') if sys.version_info[0] == 2 else kiter612)
20521  oprot.writeListBegin(TType.STRUCT, len(viter613))
20522  for iter614 in viter613:
20523  iter614.write(oprot)
20524  oprot.writeListEnd()
20525  oprot.writeMapEnd()
20526  oprot.writeMapEnd()
20527  oprot.writeMapEnd()
20528  oprot.writeMapEnd()
20529  oprot.writeFieldEnd()
20530  oprot.writeFieldStop()
20531  oprot.writeStructEnd()
20532 
20533  def validate(self):
20534  return
20535 
20536  def __repr__(self):
20537  L = ['%s=%r' % (key, value)
20538  for key, value in self.__dict__.items()]
20539  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20540 
20541  def __eq__(self, other):
20542  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20543 
20544  def __ne__(self, other):
20545  return not (self == other)
20546 all_structs.append(execute_next_render_step_args)
20547 execute_next_render_step_args.thrift_spec = (
20548  None, # 0
20549  (1, TType.STRUCT, 'pending_render', [TPendingRenderQuery, None], None, ), # 1
20550  (2, TType.MAP, 'merged_data', (TType.STRING, 'UTF8', TType.MAP, (TType.STRING, 'UTF8', TType.MAP, (TType.STRING, 'UTF8', TType.MAP, (TType.STRING, 'UTF8', TType.LIST, (TType.STRUCT, [TRenderDatum, None], False), False), False), False), False), None, ), # 2
20551 )
20552 
20553 
20555  """
20556  Attributes:
20557  - success
20558  - e
20559 
20560  """
20561 
20562 
20563  def __init__(self, success=None, e=None,):
20564  self.success = success
20565  self.e = e
20566 
20567  def read(self, iprot):
20568  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
20569  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
20570  return
20571  iprot.readStructBegin()
20572  while True:
20573  (fname, ftype, fid) = iprot.readFieldBegin()
20574  if ftype == TType.STOP:
20575  break
20576  if fid == 0:
20577  if ftype == TType.STRUCT:
20578  self.success = TRenderStepResult()
20579  self.success.read(iprot)
20580  else:
20581  iprot.skip(ftype)
20582  elif fid == 1:
20583  if ftype == TType.STRUCT:
20584  self.e = TDBException.read(iprot)
20585  else:
20586  iprot.skip(ftype)
20587  else:
20588  iprot.skip(ftype)
20589  iprot.readFieldEnd()
20590  iprot.readStructEnd()
20591 
20592  def write(self, oprot):
20593  if oprot._fast_encode is not None and self.thrift_spec is not None:
20594  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
20595  return
20596  oprot.writeStructBegin('execute_next_render_step_result')
20597  if self.success is not None:
20598  oprot.writeFieldBegin('success', TType.STRUCT, 0)
20599  self.success.write(oprot)
20600  oprot.writeFieldEnd()
20601  if self.e is not None:
20602  oprot.writeFieldBegin('e', TType.STRUCT, 1)
20603  self.e.write(oprot)
20604  oprot.writeFieldEnd()
20605  oprot.writeFieldStop()
20606  oprot.writeStructEnd()
20607 
20608  def validate(self):
20609  return
20610 
20611  def __repr__(self):
20612  L = ['%s=%r' % (key, value)
20613  for key, value in self.__dict__.items()]
20614  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20615 
20616  def __eq__(self, other):
20617  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20618 
20619  def __ne__(self, other):
20620  return not (self == other)
20621 all_structs.append(execute_next_render_step_result)
20622 execute_next_render_step_result.thrift_spec = (
20623  (0, TType.STRUCT, 'success', [TRenderStepResult, None], None, ), # 0
20624  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
20625 )
20626 
20627 
20628 class insert_data_args(object):
20629  """
20630  Attributes:
20631  - session
20632  - insert_data
20633 
20634  """
20635 
20636 
20637  def __init__(self, session=None, insert_data=None,):
20638  self.session = session
20639  self.insert_data = insert_data
20640 
20641  def read(self, iprot):
20642  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
20643  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
20644  return
20645  iprot.readStructBegin()
20646  while True:
20647  (fname, ftype, fid) = iprot.readFieldBegin()
20648  if ftype == TType.STOP:
20649  break
20650  if fid == 1:
20651  if ftype == TType.STRING:
20652  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
20653  else:
20654  iprot.skip(ftype)
20655  elif fid == 2:
20656  if ftype == TType.STRUCT:
20657  self.insert_data = TInsertData()
20658  self.insert_data.read(iprot)
20659  else:
20660  iprot.skip(ftype)
20661  else:
20662  iprot.skip(ftype)
20663  iprot.readFieldEnd()
20664  iprot.readStructEnd()
20665 
20666  def write(self, oprot):
20667  if oprot._fast_encode is not None and self.thrift_spec is not None:
20668  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
20669  return
20670  oprot.writeStructBegin('insert_data_args')
20671  if self.session is not None:
20672  oprot.writeFieldBegin('session', TType.STRING, 1)
20673  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
20674  oprot.writeFieldEnd()
20675  if self.insert_data is not None:
20676  oprot.writeFieldBegin('insert_data', TType.STRUCT, 2)
20677  self.insert_data.write(oprot)
20678  oprot.writeFieldEnd()
20679  oprot.writeFieldStop()
20680  oprot.writeStructEnd()
20681 
20682  def validate(self):
20683  return
20684 
20685  def __repr__(self):
20686  L = ['%s=%r' % (key, value)
20687  for key, value in self.__dict__.items()]
20688  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20689 
20690  def __eq__(self, other):
20691  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20692 
20693  def __ne__(self, other):
20694  return not (self == other)
20695 all_structs.append(insert_data_args)
20696 insert_data_args.thrift_spec = (
20697  None, # 0
20698  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
20699  (2, TType.STRUCT, 'insert_data', [TInsertData, None], None, ), # 2
20700 )
20701 
20702 
20703 class insert_data_result(object):
20704  """
20705  Attributes:
20706  - e
20707 
20708  """
20709 
20710 
20711  def __init__(self, e=None,):
20712  self.e = e
20713 
20714  def read(self, iprot):
20715  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
20716  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
20717  return
20718  iprot.readStructBegin()
20719  while True:
20720  (fname, ftype, fid) = iprot.readFieldBegin()
20721  if ftype == TType.STOP:
20722  break
20723  if fid == 1:
20724  if ftype == TType.STRUCT:
20725  self.e = TDBException.read(iprot)
20726  else:
20727  iprot.skip(ftype)
20728  else:
20729  iprot.skip(ftype)
20730  iprot.readFieldEnd()
20731  iprot.readStructEnd()
20732 
20733  def write(self, oprot):
20734  if oprot._fast_encode is not None and self.thrift_spec is not None:
20735  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
20736  return
20737  oprot.writeStructBegin('insert_data_result')
20738  if self.e is not None:
20739  oprot.writeFieldBegin('e', TType.STRUCT, 1)
20740  self.e.write(oprot)
20741  oprot.writeFieldEnd()
20742  oprot.writeFieldStop()
20743  oprot.writeStructEnd()
20744 
20745  def validate(self):
20746  return
20747 
20748  def __repr__(self):
20749  L = ['%s=%r' % (key, value)
20750  for key, value in self.__dict__.items()]
20751  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20752 
20753  def __eq__(self, other):
20754  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20755 
20756  def __ne__(self, other):
20757  return not (self == other)
20758 all_structs.append(insert_data_result)
20759 insert_data_result.thrift_spec = (
20760  None, # 0
20761  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
20762 )
20763 
20764 
20765 class insert_chunks_args(object):
20766  """
20767  Attributes:
20768  - session
20769  - insert_chunks
20770 
20771  """
20772 
20773 
20774  def __init__(self, session=None, insert_chunks=None,):
20775  self.session = session
20776  self.insert_chunks = insert_chunks
20777 
20778  def read(self, iprot):
20779  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
20780  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
20781  return
20782  iprot.readStructBegin()
20783  while True:
20784  (fname, ftype, fid) = iprot.readFieldBegin()
20785  if ftype == TType.STOP:
20786  break
20787  if fid == 1:
20788  if ftype == TType.STRING:
20789  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
20790  else:
20791  iprot.skip(ftype)
20792  elif fid == 2:
20793  if ftype == TType.STRUCT:
20794  self.insert_chunks = TInsertChunks()
20795  self.insert_chunks.read(iprot)
20796  else:
20797  iprot.skip(ftype)
20798  else:
20799  iprot.skip(ftype)
20800  iprot.readFieldEnd()
20801  iprot.readStructEnd()
20802 
20803  def write(self, oprot):
20804  if oprot._fast_encode is not None and self.thrift_spec is not None:
20805  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
20806  return
20807  oprot.writeStructBegin('insert_chunks_args')
20808  if self.session is not None:
20809  oprot.writeFieldBegin('session', TType.STRING, 1)
20810  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
20811  oprot.writeFieldEnd()
20812  if self.insert_chunks is not None:
20813  oprot.writeFieldBegin('insert_chunks', TType.STRUCT, 2)
20814  self.insert_chunks.write(oprot)
20815  oprot.writeFieldEnd()
20816  oprot.writeFieldStop()
20817  oprot.writeStructEnd()
20818 
20819  def validate(self):
20820  return
20821 
20822  def __repr__(self):
20823  L = ['%s=%r' % (key, value)
20824  for key, value in self.__dict__.items()]
20825  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20826 
20827  def __eq__(self, other):
20828  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20829 
20830  def __ne__(self, other):
20831  return not (self == other)
20832 all_structs.append(insert_chunks_args)
20833 insert_chunks_args.thrift_spec = (
20834  None, # 0
20835  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
20836  (2, TType.STRUCT, 'insert_chunks', [TInsertChunks, None], None, ), # 2
20837 )
20838 
20839 
20840 class insert_chunks_result(object):
20841  """
20842  Attributes:
20843  - e
20844 
20845  """
20846 
20847 
20848  def __init__(self, e=None,):
20849  self.e = e
20850 
20851  def read(self, iprot):
20852  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
20853  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
20854  return
20855  iprot.readStructBegin()
20856  while True:
20857  (fname, ftype, fid) = iprot.readFieldBegin()
20858  if ftype == TType.STOP:
20859  break
20860  if fid == 1:
20861  if ftype == TType.STRUCT:
20862  self.e = TDBException.read(iprot)
20863  else:
20864  iprot.skip(ftype)
20865  else:
20866  iprot.skip(ftype)
20867  iprot.readFieldEnd()
20868  iprot.readStructEnd()
20869 
20870  def write(self, oprot):
20871  if oprot._fast_encode is not None and self.thrift_spec is not None:
20872  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
20873  return
20874  oprot.writeStructBegin('insert_chunks_result')
20875  if self.e is not None:
20876  oprot.writeFieldBegin('e', TType.STRUCT, 1)
20877  self.e.write(oprot)
20878  oprot.writeFieldEnd()
20879  oprot.writeFieldStop()
20880  oprot.writeStructEnd()
20881 
20882  def validate(self):
20883  return
20884 
20885  def __repr__(self):
20886  L = ['%s=%r' % (key, value)
20887  for key, value in self.__dict__.items()]
20888  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20889 
20890  def __eq__(self, other):
20891  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20892 
20893  def __ne__(self, other):
20894  return not (self == other)
20895 all_structs.append(insert_chunks_result)
20896 insert_chunks_result.thrift_spec = (
20897  None, # 0
20898  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
20899 )
20900 
20901 
20902 class checkpoint_args(object):
20903  """
20904  Attributes:
20905  - session
20906  - table_id
20907 
20908  """
20909 
20910 
20911  def __init__(self, session=None, table_id=None,):
20912  self.session = session
20913  self.table_id = table_id
20914 
20915  def read(self, iprot):
20916  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
20917  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
20918  return
20919  iprot.readStructBegin()
20920  while True:
20921  (fname, ftype, fid) = iprot.readFieldBegin()
20922  if ftype == TType.STOP:
20923  break
20924  if fid == 1:
20925  if ftype == TType.STRING:
20926  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
20927  else:
20928  iprot.skip(ftype)
20929  elif fid == 2:
20930  if ftype == TType.I32:
20931  self.table_id = iprot.readI32()
20932  else:
20933  iprot.skip(ftype)
20934  else:
20935  iprot.skip(ftype)
20936  iprot.readFieldEnd()
20937  iprot.readStructEnd()
20938 
20939  def write(self, oprot):
20940  if oprot._fast_encode is not None and self.thrift_spec is not None:
20941  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
20942  return
20943  oprot.writeStructBegin('checkpoint_args')
20944  if self.session is not None:
20945  oprot.writeFieldBegin('session', TType.STRING, 1)
20946  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
20947  oprot.writeFieldEnd()
20948  if self.table_id is not None:
20949  oprot.writeFieldBegin('table_id', TType.I32, 2)
20950  oprot.writeI32(self.table_id)
20951  oprot.writeFieldEnd()
20952  oprot.writeFieldStop()
20953  oprot.writeStructEnd()
20954 
20955  def validate(self):
20956  return
20957 
20958  def __repr__(self):
20959  L = ['%s=%r' % (key, value)
20960  for key, value in self.__dict__.items()]
20961  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20962 
20963  def __eq__(self, other):
20964  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20965 
20966  def __ne__(self, other):
20967  return not (self == other)
20968 all_structs.append(checkpoint_args)
20969 checkpoint_args.thrift_spec = (
20970  None, # 0
20971  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
20972  (2, TType.I32, 'table_id', None, None, ), # 2
20973 )
20974 
20975 
20976 class checkpoint_result(object):
20977  """
20978  Attributes:
20979  - e
20980 
20981  """
20982 
20983 
20984  def __init__(self, e=None,):
20985  self.e = e
20986 
20987  def read(self, iprot):
20988  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
20989  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
20990  return
20991  iprot.readStructBegin()
20992  while True:
20993  (fname, ftype, fid) = iprot.readFieldBegin()
20994  if ftype == TType.STOP:
20995  break
20996  if fid == 1:
20997  if ftype == TType.STRUCT:
20998  self.e = TDBException.read(iprot)
20999  else:
21000  iprot.skip(ftype)
21001  else:
21002  iprot.skip(ftype)
21003  iprot.readFieldEnd()
21004  iprot.readStructEnd()
21005 
21006  def write(self, oprot):
21007  if oprot._fast_encode is not None and self.thrift_spec is not None:
21008  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
21009  return
21010  oprot.writeStructBegin('checkpoint_result')
21011  if self.e is not None:
21012  oprot.writeFieldBegin('e', TType.STRUCT, 1)
21013  self.e.write(oprot)
21014  oprot.writeFieldEnd()
21015  oprot.writeFieldStop()
21016  oprot.writeStructEnd()
21017 
21018  def validate(self):
21019  return
21020 
21021  def __repr__(self):
21022  L = ['%s=%r' % (key, value)
21023  for key, value in self.__dict__.items()]
21024  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21025 
21026  def __eq__(self, other):
21027  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21028 
21029  def __ne__(self, other):
21030  return not (self == other)
21031 all_structs.append(checkpoint_result)
21032 checkpoint_result.thrift_spec = (
21033  None, # 0
21034  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
21035 )
21036 
21037 
21038 class get_roles_args(object):
21039  """
21040  Attributes:
21041  - session
21042 
21043  """
21044 
21045 
21046  def __init__(self, session=None,):
21047  self.session = session
21048 
21049  def read(self, iprot):
21050  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
21051  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
21052  return
21053  iprot.readStructBegin()
21054  while True:
21055  (fname, ftype, fid) = iprot.readFieldBegin()
21056  if ftype == TType.STOP:
21057  break
21058  if fid == 1:
21059  if ftype == TType.STRING:
21060  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
21061  else:
21062  iprot.skip(ftype)
21063  else:
21064  iprot.skip(ftype)
21065  iprot.readFieldEnd()
21066  iprot.readStructEnd()
21067 
21068  def write(self, oprot):
21069  if oprot._fast_encode is not None and self.thrift_spec is not None:
21070  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
21071  return
21072  oprot.writeStructBegin('get_roles_args')
21073  if self.session is not None:
21074  oprot.writeFieldBegin('session', TType.STRING, 1)
21075  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
21076  oprot.writeFieldEnd()
21077  oprot.writeFieldStop()
21078  oprot.writeStructEnd()
21079 
21080  def validate(self):
21081  return
21082 
21083  def __repr__(self):
21084  L = ['%s=%r' % (key, value)
21085  for key, value in self.__dict__.items()]
21086  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21087 
21088  def __eq__(self, other):
21089  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21090 
21091  def __ne__(self, other):
21092  return not (self == other)
21093 all_structs.append(get_roles_args)
21094 get_roles_args.thrift_spec = (
21095  None, # 0
21096  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
21097 )
21098 
21099 
21100 class get_roles_result(object):
21101  """
21102  Attributes:
21103  - success
21104  - e
21105 
21106  """
21107 
21108 
21109  def __init__(self, success=None, e=None,):
21110  self.success = success
21111  self.e = e
21112 
21113  def read(self, iprot):
21114  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
21115  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
21116  return
21117  iprot.readStructBegin()
21118  while True:
21119  (fname, ftype, fid) = iprot.readFieldBegin()
21120  if ftype == TType.STOP:
21121  break
21122  if fid == 0:
21123  if ftype == TType.LIST:
21124  self.success = []
21125  (_etype618, _size615) = iprot.readListBegin()
21126  for _i619 in range(_size615):
21127  _elem620 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
21128  self.success.append(_elem620)
21129  iprot.readListEnd()
21130  else:
21131  iprot.skip(ftype)
21132  elif fid == 1:
21133  if ftype == TType.STRUCT:
21134  self.e = TDBException.read(iprot)
21135  else:
21136  iprot.skip(ftype)
21137  else:
21138  iprot.skip(ftype)
21139  iprot.readFieldEnd()
21140  iprot.readStructEnd()
21141 
21142  def write(self, oprot):
21143  if oprot._fast_encode is not None and self.thrift_spec is not None:
21144  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
21145  return
21146  oprot.writeStructBegin('get_roles_result')
21147  if self.success is not None:
21148  oprot.writeFieldBegin('success', TType.LIST, 0)
21149  oprot.writeListBegin(TType.STRING, len(self.success))
21150  for iter621 in self.success:
21151  oprot.writeString(iter621.encode('utf-8') if sys.version_info[0] == 2 else iter621)
21152  oprot.writeListEnd()
21153  oprot.writeFieldEnd()
21154  if self.e is not None:
21155  oprot.writeFieldBegin('e', TType.STRUCT, 1)
21156  self.e.write(oprot)
21157  oprot.writeFieldEnd()
21158  oprot.writeFieldStop()
21159  oprot.writeStructEnd()
21160 
21161  def validate(self):
21162  return
21163 
21164  def __repr__(self):
21165  L = ['%s=%r' % (key, value)
21166  for key, value in self.__dict__.items()]
21167  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21168 
21169  def __eq__(self, other):
21170  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21171 
21172  def __ne__(self, other):
21173  return not (self == other)
21174 all_structs.append(get_roles_result)
21175 get_roles_result.thrift_spec = (
21176  (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
21177  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
21178 )
21179 
21180 
21182  """
21183  Attributes:
21184  - session
21185  - roleName
21186 
21187  """
21188 
21189 
21190  def __init__(self, session=None, roleName=None,):
21191  self.session = session
21192  self.roleName = roleName
21193 
21194  def read(self, iprot):
21195  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
21196  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
21197  return
21198  iprot.readStructBegin()
21199  while True:
21200  (fname, ftype, fid) = iprot.readFieldBegin()
21201  if ftype == TType.STOP:
21202  break
21203  if fid == 1:
21204  if ftype == TType.STRING:
21205  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
21206  else:
21207  iprot.skip(ftype)
21208  elif fid == 2:
21209  if ftype == TType.STRING:
21210  self.roleName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
21211  else:
21212  iprot.skip(ftype)
21213  else:
21214  iprot.skip(ftype)
21215  iprot.readFieldEnd()
21216  iprot.readStructEnd()
21217 
21218  def write(self, oprot):
21219  if oprot._fast_encode is not None and self.thrift_spec is not None:
21220  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
21221  return
21222  oprot.writeStructBegin('get_db_objects_for_grantee_args')
21223  if self.session is not None:
21224  oprot.writeFieldBegin('session', TType.STRING, 1)
21225  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
21226  oprot.writeFieldEnd()
21227  if self.roleName is not None:
21228  oprot.writeFieldBegin('roleName', TType.STRING, 2)
21229  oprot.writeString(self.roleName.encode('utf-8') if sys.version_info[0] == 2 else self.roleName)
21230  oprot.writeFieldEnd()
21231  oprot.writeFieldStop()
21232  oprot.writeStructEnd()
21233 
21234  def validate(self):
21235  return
21236 
21237  def __repr__(self):
21238  L = ['%s=%r' % (key, value)
21239  for key, value in self.__dict__.items()]
21240  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21241 
21242  def __eq__(self, other):
21243  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21244 
21245  def __ne__(self, other):
21246  return not (self == other)
21247 all_structs.append(get_db_objects_for_grantee_args)
21248 get_db_objects_for_grantee_args.thrift_spec = (
21249  None, # 0
21250  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
21251  (2, TType.STRING, 'roleName', 'UTF8', None, ), # 2
21252 )
21253 
21254 
21256  """
21257  Attributes:
21258  - success
21259  - e
21260 
21261  """
21262 
21263 
21264  def __init__(self, success=None, e=None,):
21265  self.success = success
21266  self.e = e
21267 
21268  def read(self, iprot):
21269  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
21270  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
21271  return
21272  iprot.readStructBegin()
21273  while True:
21274  (fname, ftype, fid) = iprot.readFieldBegin()
21275  if ftype == TType.STOP:
21276  break
21277  if fid == 0:
21278  if ftype == TType.LIST:
21279  self.success = []
21280  (_etype625, _size622) = iprot.readListBegin()
21281  for _i626 in range(_size622):
21282  _elem627 = TDBObject()
21283  _elem627.read(iprot)
21284  self.success.append(_elem627)
21285  iprot.readListEnd()
21286  else:
21287  iprot.skip(ftype)
21288  elif fid == 1:
21289  if ftype == TType.STRUCT:
21290  self.e = TDBException.read(iprot)
21291  else:
21292  iprot.skip(ftype)
21293  else:
21294  iprot.skip(ftype)
21295  iprot.readFieldEnd()
21296  iprot.readStructEnd()
21297 
21298  def write(self, oprot):
21299  if oprot._fast_encode is not None and self.thrift_spec is not None:
21300  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
21301  return
21302  oprot.writeStructBegin('get_db_objects_for_grantee_result')
21303  if self.success is not None:
21304  oprot.writeFieldBegin('success', TType.LIST, 0)
21305  oprot.writeListBegin(TType.STRUCT, len(self.success))
21306  for iter628 in self.success:
21307  iter628.write(oprot)
21308  oprot.writeListEnd()
21309  oprot.writeFieldEnd()
21310  if self.e is not None:
21311  oprot.writeFieldBegin('e', TType.STRUCT, 1)
21312  self.e.write(oprot)
21313  oprot.writeFieldEnd()
21314  oprot.writeFieldStop()
21315  oprot.writeStructEnd()
21316 
21317  def validate(self):
21318  return
21319 
21320  def __repr__(self):
21321  L = ['%s=%r' % (key, value)
21322  for key, value in self.__dict__.items()]
21323  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21324 
21325  def __eq__(self, other):
21326  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21327 
21328  def __ne__(self, other):
21329  return not (self == other)
21330 all_structs.append(get_db_objects_for_grantee_result)
21331 get_db_objects_for_grantee_result.thrift_spec = (
21332  (0, TType.LIST, 'success', (TType.STRUCT, [TDBObject, None], False), None, ), # 0
21333  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
21334 )
21335 
21336 
21338  """
21339  Attributes:
21340  - session
21341  - objectName
21342  - type
21343 
21344  """
21345 
21346 
21347  def __init__(self, session=None, objectName=None, type=None,):
21348  self.session = session
21349  self.objectName = objectName
21350  self.type = type
21351 
21352  def read(self, iprot):
21353  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
21354  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
21355  return
21356  iprot.readStructBegin()
21357  while True:
21358  (fname, ftype, fid) = iprot.readFieldBegin()
21359  if ftype == TType.STOP:
21360  break
21361  if fid == 1:
21362  if ftype == TType.STRING:
21363  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
21364  else:
21365  iprot.skip(ftype)
21366  elif fid == 2:
21367  if ftype == TType.STRING:
21368  self.objectName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
21369  else:
21370  iprot.skip(ftype)
21371  elif fid == 3:
21372  if ftype == TType.I32:
21373  self.type = iprot.readI32()
21374  else:
21375  iprot.skip(ftype)
21376  else:
21377  iprot.skip(ftype)
21378  iprot.readFieldEnd()
21379  iprot.readStructEnd()
21380 
21381  def write(self, oprot):
21382  if oprot._fast_encode is not None and self.thrift_spec is not None:
21383  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
21384  return
21385  oprot.writeStructBegin('get_db_object_privs_args')
21386  if self.session is not None:
21387  oprot.writeFieldBegin('session', TType.STRING, 1)
21388  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
21389  oprot.writeFieldEnd()
21390  if self.objectName is not None:
21391  oprot.writeFieldBegin('objectName', TType.STRING, 2)
21392  oprot.writeString(self.objectName.encode('utf-8') if sys.version_info[0] == 2 else self.objectName)
21393  oprot.writeFieldEnd()
21394  if self.type is not None:
21395  oprot.writeFieldBegin('type', TType.I32, 3)
21396  oprot.writeI32(self.type)
21397  oprot.writeFieldEnd()
21398  oprot.writeFieldStop()
21399  oprot.writeStructEnd()
21400 
21401  def validate(self):
21402  return
21403 
21404  def __repr__(self):
21405  L = ['%s=%r' % (key, value)
21406  for key, value in self.__dict__.items()]
21407  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21408 
21409  def __eq__(self, other):
21410  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21411 
21412  def __ne__(self, other):
21413  return not (self == other)
21414 all_structs.append(get_db_object_privs_args)
21415 get_db_object_privs_args.thrift_spec = (
21416  None, # 0
21417  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
21418  (2, TType.STRING, 'objectName', 'UTF8', None, ), # 2
21419  (3, TType.I32, 'type', None, None, ), # 3
21420 )
21421 
21422 
21424  """
21425  Attributes:
21426  - success
21427  - e
21428 
21429  """
21430 
21431 
21432  def __init__(self, success=None, e=None,):
21433  self.success = success
21434  self.e = e
21435 
21436  def read(self, iprot):
21437  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
21438  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
21439  return
21440  iprot.readStructBegin()
21441  while True:
21442  (fname, ftype, fid) = iprot.readFieldBegin()
21443  if ftype == TType.STOP:
21444  break
21445  if fid == 0:
21446  if ftype == TType.LIST:
21447  self.success = []
21448  (_etype632, _size629) = iprot.readListBegin()
21449  for _i633 in range(_size629):
21450  _elem634 = TDBObject()
21451  _elem634.read(iprot)
21452  self.success.append(_elem634)
21453  iprot.readListEnd()
21454  else:
21455  iprot.skip(ftype)
21456  elif fid == 1:
21457  if ftype == TType.STRUCT:
21458  self.e = TDBException.read(iprot)
21459  else:
21460  iprot.skip(ftype)
21461  else:
21462  iprot.skip(ftype)
21463  iprot.readFieldEnd()
21464  iprot.readStructEnd()
21465 
21466  def write(self, oprot):
21467  if oprot._fast_encode is not None and self.thrift_spec is not None:
21468  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
21469  return
21470  oprot.writeStructBegin('get_db_object_privs_result')
21471  if self.success is not None:
21472  oprot.writeFieldBegin('success', TType.LIST, 0)
21473  oprot.writeListBegin(TType.STRUCT, len(self.success))
21474  for iter635 in self.success:
21475  iter635.write(oprot)
21476  oprot.writeListEnd()
21477  oprot.writeFieldEnd()
21478  if self.e is not None:
21479  oprot.writeFieldBegin('e', TType.STRUCT, 1)
21480  self.e.write(oprot)
21481  oprot.writeFieldEnd()
21482  oprot.writeFieldStop()
21483  oprot.writeStructEnd()
21484 
21485  def validate(self):
21486  return
21487 
21488  def __repr__(self):
21489  L = ['%s=%r' % (key, value)
21490  for key, value in self.__dict__.items()]
21491  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21492 
21493  def __eq__(self, other):
21494  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21495 
21496  def __ne__(self, other):
21497  return not (self == other)
21498 all_structs.append(get_db_object_privs_result)
21499 get_db_object_privs_result.thrift_spec = (
21500  (0, TType.LIST, 'success', (TType.STRUCT, [TDBObject, None], False), None, ), # 0
21501  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
21502 )
21503 
21504 
21506  """
21507  Attributes:
21508  - session
21509  - userName
21510 
21511  """
21512 
21513 
21514  def __init__(self, session=None, userName=None,):
21515  self.session = session
21516  self.userName = userName
21517 
21518  def read(self, iprot):
21519  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
21520  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
21521  return
21522  iprot.readStructBegin()
21523  while True:
21524  (fname, ftype, fid) = iprot.readFieldBegin()
21525  if ftype == TType.STOP:
21526  break
21527  if fid == 1:
21528  if ftype == TType.STRING:
21529  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
21530  else:
21531  iprot.skip(ftype)
21532  elif fid == 2:
21533  if ftype == TType.STRING:
21534  self.userName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
21535  else:
21536  iprot.skip(ftype)
21537  else:
21538  iprot.skip(ftype)
21539  iprot.readFieldEnd()
21540  iprot.readStructEnd()
21541 
21542  def write(self, oprot):
21543  if oprot._fast_encode is not None and self.thrift_spec is not None:
21544  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
21545  return
21546  oprot.writeStructBegin('get_all_roles_for_user_args')
21547  if self.session is not None:
21548  oprot.writeFieldBegin('session', TType.STRING, 1)
21549  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
21550  oprot.writeFieldEnd()
21551  if self.userName is not None:
21552  oprot.writeFieldBegin('userName', TType.STRING, 2)
21553  oprot.writeString(self.userName.encode('utf-8') if sys.version_info[0] == 2 else self.userName)
21554  oprot.writeFieldEnd()
21555  oprot.writeFieldStop()
21556  oprot.writeStructEnd()
21557 
21558  def validate(self):
21559  return
21560 
21561  def __repr__(self):
21562  L = ['%s=%r' % (key, value)
21563  for key, value in self.__dict__.items()]
21564  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21565 
21566  def __eq__(self, other):
21567  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21568 
21569  def __ne__(self, other):
21570  return not (self == other)
21571 all_structs.append(get_all_roles_for_user_args)
21572 get_all_roles_for_user_args.thrift_spec = (
21573  None, # 0
21574  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
21575  (2, TType.STRING, 'userName', 'UTF8', None, ), # 2
21576 )
21577 
21578 
21580  """
21581  Attributes:
21582  - success
21583  - e
21584 
21585  """
21586 
21587 
21588  def __init__(self, success=None, e=None,):
21589  self.success = success
21590  self.e = e
21591 
21592  def read(self, iprot):
21593  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
21594  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
21595  return
21596  iprot.readStructBegin()
21597  while True:
21598  (fname, ftype, fid) = iprot.readFieldBegin()
21599  if ftype == TType.STOP:
21600  break
21601  if fid == 0:
21602  if ftype == TType.LIST:
21603  self.success = []
21604  (_etype639, _size636) = iprot.readListBegin()
21605  for _i640 in range(_size636):
21606  _elem641 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
21607  self.success.append(_elem641)
21608  iprot.readListEnd()
21609  else:
21610  iprot.skip(ftype)
21611  elif fid == 1:
21612  if ftype == TType.STRUCT:
21613  self.e = TDBException.read(iprot)
21614  else:
21615  iprot.skip(ftype)
21616  else:
21617  iprot.skip(ftype)
21618  iprot.readFieldEnd()
21619  iprot.readStructEnd()
21620 
21621  def write(self, oprot):
21622  if oprot._fast_encode is not None and self.thrift_spec is not None:
21623  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
21624  return
21625  oprot.writeStructBegin('get_all_roles_for_user_result')
21626  if self.success is not None:
21627  oprot.writeFieldBegin('success', TType.LIST, 0)
21628  oprot.writeListBegin(TType.STRING, len(self.success))
21629  for iter642 in self.success:
21630  oprot.writeString(iter642.encode('utf-8') if sys.version_info[0] == 2 else iter642)
21631  oprot.writeListEnd()
21632  oprot.writeFieldEnd()
21633  if self.e is not None:
21634  oprot.writeFieldBegin('e', TType.STRUCT, 1)
21635  self.e.write(oprot)
21636  oprot.writeFieldEnd()
21637  oprot.writeFieldStop()
21638  oprot.writeStructEnd()
21639 
21640  def validate(self):
21641  return
21642 
21643  def __repr__(self):
21644  L = ['%s=%r' % (key, value)
21645  for key, value in self.__dict__.items()]
21646  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21647 
21648  def __eq__(self, other):
21649  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21650 
21651  def __ne__(self, other):
21652  return not (self == other)
21653 all_structs.append(get_all_roles_for_user_result)
21654 get_all_roles_for_user_result.thrift_spec = (
21655  (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
21656  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
21657 )
21658 
21659 
21661  """
21662  Attributes:
21663  - session
21664  - userName
21665 
21666  """
21667 
21668 
21669  def __init__(self, session=None, userName=None,):
21670  self.session = session
21671  self.userName = userName
21672 
21673  def read(self, iprot):
21674  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
21675  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
21676  return
21677  iprot.readStructBegin()
21678  while True:
21679  (fname, ftype, fid) = iprot.readFieldBegin()
21680  if ftype == TType.STOP:
21681  break
21682  if fid == 1:
21683  if ftype == TType.STRING:
21684  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
21685  else:
21686  iprot.skip(ftype)
21687  elif fid == 2:
21688  if ftype == TType.STRING:
21689  self.userName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
21690  else:
21691  iprot.skip(ftype)
21692  else:
21693  iprot.skip(ftype)
21694  iprot.readFieldEnd()
21695  iprot.readStructEnd()
21696 
21697  def write(self, oprot):
21698  if oprot._fast_encode is not None and self.thrift_spec is not None:
21699  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
21700  return
21701  oprot.writeStructBegin('get_all_effective_roles_for_user_args')
21702  if self.session is not None:
21703  oprot.writeFieldBegin('session', TType.STRING, 1)
21704  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
21705  oprot.writeFieldEnd()
21706  if self.userName is not None:
21707  oprot.writeFieldBegin('userName', TType.STRING, 2)
21708  oprot.writeString(self.userName.encode('utf-8') if sys.version_info[0] == 2 else self.userName)
21709  oprot.writeFieldEnd()
21710  oprot.writeFieldStop()
21711  oprot.writeStructEnd()
21712 
21713  def validate(self):
21714  return
21715 
21716  def __repr__(self):
21717  L = ['%s=%r' % (key, value)
21718  for key, value in self.__dict__.items()]
21719  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21720 
21721  def __eq__(self, other):
21722  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21723 
21724  def __ne__(self, other):
21725  return not (self == other)
21726 all_structs.append(get_all_effective_roles_for_user_args)
21727 get_all_effective_roles_for_user_args.thrift_spec = (
21728  None, # 0
21729  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
21730  (2, TType.STRING, 'userName', 'UTF8', None, ), # 2
21731 )
21732 
21733 
21735  """
21736  Attributes:
21737  - success
21738  - e
21739 
21740  """
21741 
21742 
21743  def __init__(self, success=None, e=None,):
21744  self.success = success
21745  self.e = e
21746 
21747  def read(self, iprot):
21748  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
21749  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
21750  return
21751  iprot.readStructBegin()
21752  while True:
21753  (fname, ftype, fid) = iprot.readFieldBegin()
21754  if ftype == TType.STOP:
21755  break
21756  if fid == 0:
21757  if ftype == TType.LIST:
21758  self.success = []
21759  (_etype646, _size643) = iprot.readListBegin()
21760  for _i647 in range(_size643):
21761  _elem648 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
21762  self.success.append(_elem648)
21763  iprot.readListEnd()
21764  else:
21765  iprot.skip(ftype)
21766  elif fid == 1:
21767  if ftype == TType.STRUCT:
21768  self.e = TDBException.read(iprot)
21769  else:
21770  iprot.skip(ftype)
21771  else:
21772  iprot.skip(ftype)
21773  iprot.readFieldEnd()
21774  iprot.readStructEnd()
21775 
21776  def write(self, oprot):
21777  if oprot._fast_encode is not None and self.thrift_spec is not None:
21778  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
21779  return
21780  oprot.writeStructBegin('get_all_effective_roles_for_user_result')
21781  if self.success is not None:
21782  oprot.writeFieldBegin('success', TType.LIST, 0)
21783  oprot.writeListBegin(TType.STRING, len(self.success))
21784  for iter649 in self.success:
21785  oprot.writeString(iter649.encode('utf-8') if sys.version_info[0] == 2 else iter649)
21786  oprot.writeListEnd()
21787  oprot.writeFieldEnd()
21788  if self.e is not None:
21789  oprot.writeFieldBegin('e', TType.STRUCT, 1)
21790  self.e.write(oprot)
21791  oprot.writeFieldEnd()
21792  oprot.writeFieldStop()
21793  oprot.writeStructEnd()
21794 
21795  def validate(self):
21796  return
21797 
21798  def __repr__(self):
21799  L = ['%s=%r' % (key, value)
21800  for key, value in self.__dict__.items()]
21801  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21802 
21803  def __eq__(self, other):
21804  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21805 
21806  def __ne__(self, other):
21807  return not (self == other)
21808 all_structs.append(get_all_effective_roles_for_user_result)
21809 get_all_effective_roles_for_user_result.thrift_spec = (
21810  (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
21811  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
21812 )
21813 
21814 
21815 class has_role_args(object):
21816  """
21817  Attributes:
21818  - session
21819  - granteeName
21820  - roleName
21821 
21822  """
21823 
21824 
21825  def __init__(self, session=None, granteeName=None, roleName=None,):
21826  self.session = session
21827  self.granteeName = granteeName
21828  self.roleName = roleName
21829 
21830  def read(self, iprot):
21831  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
21832  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
21833  return
21834  iprot.readStructBegin()
21835  while True:
21836  (fname, ftype, fid) = iprot.readFieldBegin()
21837  if ftype == TType.STOP:
21838  break
21839  if fid == 1:
21840  if ftype == TType.STRING:
21841  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
21842  else:
21843  iprot.skip(ftype)
21844  elif fid == 2:
21845  if ftype == TType.STRING:
21846  self.granteeName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
21847  else:
21848  iprot.skip(ftype)
21849  elif fid == 3:
21850  if ftype == TType.STRING:
21851  self.roleName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
21852  else:
21853  iprot.skip(ftype)
21854  else:
21855  iprot.skip(ftype)
21856  iprot.readFieldEnd()
21857  iprot.readStructEnd()
21858 
21859  def write(self, oprot):
21860  if oprot._fast_encode is not None and self.thrift_spec is not None:
21861  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
21862  return
21863  oprot.writeStructBegin('has_role_args')
21864  if self.session is not None:
21865  oprot.writeFieldBegin('session', TType.STRING, 1)
21866  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
21867  oprot.writeFieldEnd()
21868  if self.granteeName is not None:
21869  oprot.writeFieldBegin('granteeName', TType.STRING, 2)
21870  oprot.writeString(self.granteeName.encode('utf-8') if sys.version_info[0] == 2 else self.granteeName)
21871  oprot.writeFieldEnd()
21872  if self.roleName is not None:
21873  oprot.writeFieldBegin('roleName', TType.STRING, 3)
21874  oprot.writeString(self.roleName.encode('utf-8') if sys.version_info[0] == 2 else self.roleName)
21875  oprot.writeFieldEnd()
21876  oprot.writeFieldStop()
21877  oprot.writeStructEnd()
21878 
21879  def validate(self):
21880  return
21881 
21882  def __repr__(self):
21883  L = ['%s=%r' % (key, value)
21884  for key, value in self.__dict__.items()]
21885  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21886 
21887  def __eq__(self, other):
21888  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21889 
21890  def __ne__(self, other):
21891  return not (self == other)
21892 all_structs.append(has_role_args)
21893 has_role_args.thrift_spec = (
21894  None, # 0
21895  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
21896  (2, TType.STRING, 'granteeName', 'UTF8', None, ), # 2
21897  (3, TType.STRING, 'roleName', 'UTF8', None, ), # 3
21898 )
21899 
21900 
21901 class has_role_result(object):
21902  """
21903  Attributes:
21904  - success
21905  - e
21906 
21907  """
21908 
21909 
21910  def __init__(self, success=None, e=None,):
21911  self.success = success
21912  self.e = e
21913 
21914  def read(self, iprot):
21915  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
21916  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
21917  return
21918  iprot.readStructBegin()
21919  while True:
21920  (fname, ftype, fid) = iprot.readFieldBegin()
21921  if ftype == TType.STOP:
21922  break
21923  if fid == 0:
21924  if ftype == TType.BOOL:
21925  self.success = iprot.readBool()
21926  else:
21927  iprot.skip(ftype)
21928  elif fid == 1:
21929  if ftype == TType.STRUCT:
21930  self.e = TDBException.read(iprot)
21931  else:
21932  iprot.skip(ftype)
21933  else:
21934  iprot.skip(ftype)
21935  iprot.readFieldEnd()
21936  iprot.readStructEnd()
21937 
21938  def write(self, oprot):
21939  if oprot._fast_encode is not None and self.thrift_spec is not None:
21940  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
21941  return
21942  oprot.writeStructBegin('has_role_result')
21943  if self.success is not None:
21944  oprot.writeFieldBegin('success', TType.BOOL, 0)
21945  oprot.writeBool(self.success)
21946  oprot.writeFieldEnd()
21947  if self.e is not None:
21948  oprot.writeFieldBegin('e', TType.STRUCT, 1)
21949  self.e.write(oprot)
21950  oprot.writeFieldEnd()
21951  oprot.writeFieldStop()
21952  oprot.writeStructEnd()
21953 
21954  def validate(self):
21955  return
21956 
21957  def __repr__(self):
21958  L = ['%s=%r' % (key, value)
21959  for key, value in self.__dict__.items()]
21960  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21961 
21962  def __eq__(self, other):
21963  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21964 
21965  def __ne__(self, other):
21966  return not (self == other)
21967 all_structs.append(has_role_result)
21968 has_role_result.thrift_spec = (
21969  (0, TType.BOOL, 'success', None, None, ), # 0
21970  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
21971 )
21972 
21973 
21975  """
21976  Attributes:
21977  - session
21978  - granteeName
21979  - ObjectName
21980  - objectType
21981  - permissions
21982 
21983  """
21984 
21985 
21986  def __init__(self, session=None, granteeName=None, ObjectName=None, objectType=None, permissions=None,):
21987  self.session = session
21988  self.granteeName = granteeName
21989  self.ObjectName = ObjectName
21990  self.objectType = objectType
21991  self.permissions = permissions
21992 
21993  def read(self, iprot):
21994  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
21995  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
21996  return
21997  iprot.readStructBegin()
21998  while True:
21999  (fname, ftype, fid) = iprot.readFieldBegin()
22000  if ftype == TType.STOP:
22001  break
22002  if fid == 1:
22003  if ftype == TType.STRING:
22004  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
22005  else:
22006  iprot.skip(ftype)
22007  elif fid == 2:
22008  if ftype == TType.STRING:
22009  self.granteeName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
22010  else:
22011  iprot.skip(ftype)
22012  elif fid == 3:
22013  if ftype == TType.STRING:
22014  self.ObjectName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
22015  else:
22016  iprot.skip(ftype)
22017  elif fid == 4:
22018  if ftype == TType.I32:
22019  self.objectType = iprot.readI32()
22020  else:
22021  iprot.skip(ftype)
22022  elif fid == 5:
22023  if ftype == TType.STRUCT:
22024  self.permissions = TDBObjectPermissions()
22025  self.permissions.read(iprot)
22026  else:
22027  iprot.skip(ftype)
22028  else:
22029  iprot.skip(ftype)
22030  iprot.readFieldEnd()
22031  iprot.readStructEnd()
22032 
22033  def write(self, oprot):
22034  if oprot._fast_encode is not None and self.thrift_spec is not None:
22035  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
22036  return
22037  oprot.writeStructBegin('has_object_privilege_args')
22038  if self.session is not None:
22039  oprot.writeFieldBegin('session', TType.STRING, 1)
22040  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
22041  oprot.writeFieldEnd()
22042  if self.granteeName is not None:
22043  oprot.writeFieldBegin('granteeName', TType.STRING, 2)
22044  oprot.writeString(self.granteeName.encode('utf-8') if sys.version_info[0] == 2 else self.granteeName)
22045  oprot.writeFieldEnd()
22046  if self.ObjectName is not None:
22047  oprot.writeFieldBegin('ObjectName', TType.STRING, 3)
22048  oprot.writeString(self.ObjectName.encode('utf-8') if sys.version_info[0] == 2 else self.ObjectName)
22049  oprot.writeFieldEnd()
22050  if self.objectType is not None:
22051  oprot.writeFieldBegin('objectType', TType.I32, 4)
22052  oprot.writeI32(self.objectType)
22053  oprot.writeFieldEnd()
22054  if self.permissions is not None:
22055  oprot.writeFieldBegin('permissions', TType.STRUCT, 5)
22056  self.permissions.write(oprot)
22057  oprot.writeFieldEnd()
22058  oprot.writeFieldStop()
22059  oprot.writeStructEnd()
22060 
22061  def validate(self):
22062  return
22063 
22064  def __repr__(self):
22065  L = ['%s=%r' % (key, value)
22066  for key, value in self.__dict__.items()]
22067  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22068 
22069  def __eq__(self, other):
22070  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22071 
22072  def __ne__(self, other):
22073  return not (self == other)
22074 all_structs.append(has_object_privilege_args)
22075 has_object_privilege_args.thrift_spec = (
22076  None, # 0
22077  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
22078  (2, TType.STRING, 'granteeName', 'UTF8', None, ), # 2
22079  (3, TType.STRING, 'ObjectName', 'UTF8', None, ), # 3
22080  (4, TType.I32, 'objectType', None, None, ), # 4
22081  (5, TType.STRUCT, 'permissions', [TDBObjectPermissions, None], None, ), # 5
22082 )
22083 
22084 
22086  """
22087  Attributes:
22088  - success
22089  - e
22090 
22091  """
22092 
22093 
22094  def __init__(self, success=None, e=None,):
22095  self.success = success
22096  self.e = e
22097 
22098  def read(self, iprot):
22099  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
22100  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
22101  return
22102  iprot.readStructBegin()
22103  while True:
22104  (fname, ftype, fid) = iprot.readFieldBegin()
22105  if ftype == TType.STOP:
22106  break
22107  if fid == 0:
22108  if ftype == TType.BOOL:
22109  self.success = iprot.readBool()
22110  else:
22111  iprot.skip(ftype)
22112  elif fid == 1:
22113  if ftype == TType.STRUCT:
22114  self.e = TDBException.read(iprot)
22115  else:
22116  iprot.skip(ftype)
22117  else:
22118  iprot.skip(ftype)
22119  iprot.readFieldEnd()
22120  iprot.readStructEnd()
22121 
22122  def write(self, oprot):
22123  if oprot._fast_encode is not None and self.thrift_spec is not None:
22124  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
22125  return
22126  oprot.writeStructBegin('has_object_privilege_result')
22127  if self.success is not None:
22128  oprot.writeFieldBegin('success', TType.BOOL, 0)
22129  oprot.writeBool(self.success)
22130  oprot.writeFieldEnd()
22131  if self.e is not None:
22132  oprot.writeFieldBegin('e', TType.STRUCT, 1)
22133  self.e.write(oprot)
22134  oprot.writeFieldEnd()
22135  oprot.writeFieldStop()
22136  oprot.writeStructEnd()
22137 
22138  def validate(self):
22139  return
22140 
22141  def __repr__(self):
22142  L = ['%s=%r' % (key, value)
22143  for key, value in self.__dict__.items()]
22144  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22145 
22146  def __eq__(self, other):
22147  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22148 
22149  def __ne__(self, other):
22150  return not (self == other)
22151 all_structs.append(has_object_privilege_result)
22152 has_object_privilege_result.thrift_spec = (
22153  (0, TType.BOOL, 'success', None, None, ), # 0
22154  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
22155 )
22156 
22157 
22158 class set_license_key_args(object):
22159  """
22160  Attributes:
22161  - session
22162  - key
22163  - nonce
22164 
22165  """
22166 
22167 
22168  def __init__(self, session=None, key=None, nonce="",):
22169  self.session = session
22170  self.key = key
22171  self.nonce = nonce
22172 
22173  def read(self, iprot):
22174  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
22175  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
22176  return
22177  iprot.readStructBegin()
22178  while True:
22179  (fname, ftype, fid) = iprot.readFieldBegin()
22180  if ftype == TType.STOP:
22181  break
22182  if fid == 1:
22183  if ftype == TType.STRING:
22184  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
22185  else:
22186  iprot.skip(ftype)
22187  elif fid == 2:
22188  if ftype == TType.STRING:
22189  self.key = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
22190  else:
22191  iprot.skip(ftype)
22192  elif fid == 3:
22193  if ftype == TType.STRING:
22194  self.nonce = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
22195  else:
22196  iprot.skip(ftype)
22197  else:
22198  iprot.skip(ftype)
22199  iprot.readFieldEnd()
22200  iprot.readStructEnd()
22201 
22202  def write(self, oprot):
22203  if oprot._fast_encode is not None and self.thrift_spec is not None:
22204  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
22205  return
22206  oprot.writeStructBegin('set_license_key_args')
22207  if self.session is not None:
22208  oprot.writeFieldBegin('session', TType.STRING, 1)
22209  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
22210  oprot.writeFieldEnd()
22211  if self.key is not None:
22212  oprot.writeFieldBegin('key', TType.STRING, 2)
22213  oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
22214  oprot.writeFieldEnd()
22215  if self.nonce is not None:
22216  oprot.writeFieldBegin('nonce', TType.STRING, 3)
22217  oprot.writeString(self.nonce.encode('utf-8') if sys.version_info[0] == 2 else self.nonce)
22218  oprot.writeFieldEnd()
22219  oprot.writeFieldStop()
22220  oprot.writeStructEnd()
22221 
22222  def validate(self):
22223  return
22224 
22225  def __repr__(self):
22226  L = ['%s=%r' % (key, value)
22227  for key, value in self.__dict__.items()]
22228  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22229 
22230  def __eq__(self, other):
22231  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22232 
22233  def __ne__(self, other):
22234  return not (self == other)
22235 all_structs.append(set_license_key_args)
22236 set_license_key_args.thrift_spec = (
22237  None, # 0
22238  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
22239  (2, TType.STRING, 'key', 'UTF8', None, ), # 2
22240  (3, TType.STRING, 'nonce', 'UTF8', "", ), # 3
22241 )
22242 
22243 
22245  """
22246  Attributes:
22247  - success
22248  - e
22249 
22250  """
22251 
22252 
22253  def __init__(self, success=None, e=None,):
22254  self.success = success
22255  self.e = e
22256 
22257  def read(self, iprot):
22258  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
22259  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
22260  return
22261  iprot.readStructBegin()
22262  while True:
22263  (fname, ftype, fid) = iprot.readFieldBegin()
22264  if ftype == TType.STOP:
22265  break
22266  if fid == 0:
22267  if ftype == TType.STRUCT:
22268  self.success = TLicenseInfo()
22269  self.success.read(iprot)
22270  else:
22271  iprot.skip(ftype)
22272  elif fid == 1:
22273  if ftype == TType.STRUCT:
22274  self.e = TDBException.read(iprot)
22275  else:
22276  iprot.skip(ftype)
22277  else:
22278  iprot.skip(ftype)
22279  iprot.readFieldEnd()
22280  iprot.readStructEnd()
22281 
22282  def write(self, oprot):
22283  if oprot._fast_encode is not None and self.thrift_spec is not None:
22284  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
22285  return
22286  oprot.writeStructBegin('set_license_key_result')
22287  if self.success is not None:
22288  oprot.writeFieldBegin('success', TType.STRUCT, 0)
22289  self.success.write(oprot)
22290  oprot.writeFieldEnd()
22291  if self.e is not None:
22292  oprot.writeFieldBegin('e', TType.STRUCT, 1)
22293  self.e.write(oprot)
22294  oprot.writeFieldEnd()
22295  oprot.writeFieldStop()
22296  oprot.writeStructEnd()
22297 
22298  def validate(self):
22299  return
22300 
22301  def __repr__(self):
22302  L = ['%s=%r' % (key, value)
22303  for key, value in self.__dict__.items()]
22304  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22305 
22306  def __eq__(self, other):
22307  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22308 
22309  def __ne__(self, other):
22310  return not (self == other)
22311 all_structs.append(set_license_key_result)
22312 set_license_key_result.thrift_spec = (
22313  (0, TType.STRUCT, 'success', [TLicenseInfo, None], None, ), # 0
22314  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
22315 )
22316 
22317 
22319  """
22320  Attributes:
22321  - session
22322  - nonce
22323 
22324  """
22325 
22326 
22327  def __init__(self, session=None, nonce="",):
22328  self.session = session
22329  self.nonce = nonce
22330 
22331  def read(self, iprot):
22332  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
22333  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
22334  return
22335  iprot.readStructBegin()
22336  while True:
22337  (fname, ftype, fid) = iprot.readFieldBegin()
22338  if ftype == TType.STOP:
22339  break
22340  if fid == 1:
22341  if ftype == TType.STRING:
22342  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
22343  else:
22344  iprot.skip(ftype)
22345  elif fid == 2:
22346  if ftype == TType.STRING:
22347  self.nonce = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
22348  else:
22349  iprot.skip(ftype)
22350  else:
22351  iprot.skip(ftype)
22352  iprot.readFieldEnd()
22353  iprot.readStructEnd()
22354 
22355  def write(self, oprot):
22356  if oprot._fast_encode is not None and self.thrift_spec is not None:
22357  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
22358  return
22359  oprot.writeStructBegin('get_license_claims_args')
22360  if self.session is not None:
22361  oprot.writeFieldBegin('session', TType.STRING, 1)
22362  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
22363  oprot.writeFieldEnd()
22364  if self.nonce is not None:
22365  oprot.writeFieldBegin('nonce', TType.STRING, 2)
22366  oprot.writeString(self.nonce.encode('utf-8') if sys.version_info[0] == 2 else self.nonce)
22367  oprot.writeFieldEnd()
22368  oprot.writeFieldStop()
22369  oprot.writeStructEnd()
22370 
22371  def validate(self):
22372  return
22373 
22374  def __repr__(self):
22375  L = ['%s=%r' % (key, value)
22376  for key, value in self.__dict__.items()]
22377  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22378 
22379  def __eq__(self, other):
22380  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22381 
22382  def __ne__(self, other):
22383  return not (self == other)
22384 all_structs.append(get_license_claims_args)
22385 get_license_claims_args.thrift_spec = (
22386  None, # 0
22387  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
22388  (2, TType.STRING, 'nonce', 'UTF8', "", ), # 2
22389 )
22390 
22391 
22393  """
22394  Attributes:
22395  - success
22396  - e
22397 
22398  """
22399 
22400 
22401  def __init__(self, success=None, e=None,):
22402  self.success = success
22403  self.e = e
22404 
22405  def read(self, iprot):
22406  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
22407  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
22408  return
22409  iprot.readStructBegin()
22410  while True:
22411  (fname, ftype, fid) = iprot.readFieldBegin()
22412  if ftype == TType.STOP:
22413  break
22414  if fid == 0:
22415  if ftype == TType.STRUCT:
22416  self.success = TLicenseInfo()
22417  self.success.read(iprot)
22418  else:
22419  iprot.skip(ftype)
22420  elif fid == 1:
22421  if ftype == TType.STRUCT:
22422  self.e = TDBException.read(iprot)
22423  else:
22424  iprot.skip(ftype)
22425  else:
22426  iprot.skip(ftype)
22427  iprot.readFieldEnd()
22428  iprot.readStructEnd()
22429 
22430  def write(self, oprot):
22431  if oprot._fast_encode is not None and self.thrift_spec is not None:
22432  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
22433  return
22434  oprot.writeStructBegin('get_license_claims_result')
22435  if self.success is not None:
22436  oprot.writeFieldBegin('success', TType.STRUCT, 0)
22437  self.success.write(oprot)
22438  oprot.writeFieldEnd()
22439  if self.e is not None:
22440  oprot.writeFieldBegin('e', TType.STRUCT, 1)
22441  self.e.write(oprot)
22442  oprot.writeFieldEnd()
22443  oprot.writeFieldStop()
22444  oprot.writeStructEnd()
22445 
22446  def validate(self):
22447  return
22448 
22449  def __repr__(self):
22450  L = ['%s=%r' % (key, value)
22451  for key, value in self.__dict__.items()]
22452  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22453 
22454  def __eq__(self, other):
22455  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22456 
22457  def __ne__(self, other):
22458  return not (self == other)
22459 all_structs.append(get_license_claims_result)
22460 get_license_claims_result.thrift_spec = (
22461  (0, TType.STRUCT, 'success', [TLicenseInfo, None], None, ), # 0
22462  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
22463 )
22464 
22465 
22467  """
22468  Attributes:
22469  - session
22470 
22471  """
22472 
22473 
22474  def __init__(self, session=None,):
22475  self.session = session
22476 
22477  def read(self, iprot):
22478  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
22479  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
22480  return
22481  iprot.readStructBegin()
22482  while True:
22483  (fname, ftype, fid) = iprot.readFieldBegin()
22484  if ftype == TType.STOP:
22485  break
22486  if fid == 1:
22487  if ftype == TType.STRING:
22488  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
22489  else:
22490  iprot.skip(ftype)
22491  else:
22492  iprot.skip(ftype)
22493  iprot.readFieldEnd()
22494  iprot.readStructEnd()
22495 
22496  def write(self, oprot):
22497  if oprot._fast_encode is not None and self.thrift_spec is not None:
22498  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
22499  return
22500  oprot.writeStructBegin('get_device_parameters_args')
22501  if self.session is not None:
22502  oprot.writeFieldBegin('session', TType.STRING, 1)
22503  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
22504  oprot.writeFieldEnd()
22505  oprot.writeFieldStop()
22506  oprot.writeStructEnd()
22507 
22508  def validate(self):
22509  return
22510 
22511  def __repr__(self):
22512  L = ['%s=%r' % (key, value)
22513  for key, value in self.__dict__.items()]
22514  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22515 
22516  def __eq__(self, other):
22517  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22518 
22519  def __ne__(self, other):
22520  return not (self == other)
22521 all_structs.append(get_device_parameters_args)
22522 get_device_parameters_args.thrift_spec = (
22523  None, # 0
22524  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
22525 )
22526 
22527 
22529  """
22530  Attributes:
22531  - success
22532  - e
22533 
22534  """
22535 
22536 
22537  def __init__(self, success=None, e=None,):
22538  self.success = success
22539  self.e = e
22540 
22541  def read(self, iprot):
22542  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
22543  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
22544  return
22545  iprot.readStructBegin()
22546  while True:
22547  (fname, ftype, fid) = iprot.readFieldBegin()
22548  if ftype == TType.STOP:
22549  break
22550  if fid == 0:
22551  if ftype == TType.MAP:
22552  self.success = {}
22553  (_ktype651, _vtype652, _size650) = iprot.readMapBegin()
22554  for _i654 in range(_size650):
22555  _key655 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
22556  _val656 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
22557  self.success[_key655] = _val656
22558  iprot.readMapEnd()
22559  else:
22560  iprot.skip(ftype)
22561  elif fid == 1:
22562  if ftype == TType.STRUCT:
22563  self.e = TDBException.read(iprot)
22564  else:
22565  iprot.skip(ftype)
22566  else:
22567  iprot.skip(ftype)
22568  iprot.readFieldEnd()
22569  iprot.readStructEnd()
22570 
22571  def write(self, oprot):
22572  if oprot._fast_encode is not None and self.thrift_spec is not None:
22573  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
22574  return
22575  oprot.writeStructBegin('get_device_parameters_result')
22576  if self.success is not None:
22577  oprot.writeFieldBegin('success', TType.MAP, 0)
22578  oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success))
22579  for kiter657, viter658 in self.success.items():
22580  oprot.writeString(kiter657.encode('utf-8') if sys.version_info[0] == 2 else kiter657)
22581  oprot.writeString(viter658.encode('utf-8') if sys.version_info[0] == 2 else viter658)
22582  oprot.writeMapEnd()
22583  oprot.writeFieldEnd()
22584  if self.e is not None:
22585  oprot.writeFieldBegin('e', TType.STRUCT, 1)
22586  self.e.write(oprot)
22587  oprot.writeFieldEnd()
22588  oprot.writeFieldStop()
22589  oprot.writeStructEnd()
22590 
22591  def validate(self):
22592  return
22593 
22594  def __repr__(self):
22595  L = ['%s=%r' % (key, value)
22596  for key, value in self.__dict__.items()]
22597  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22598 
22599  def __eq__(self, other):
22600  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22601 
22602  def __ne__(self, other):
22603  return not (self == other)
22604 all_structs.append(get_device_parameters_result)
22605 get_device_parameters_result.thrift_spec = (
22606  (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0
22607  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
22608 )
22609 
22610 
22612  """
22613  Attributes:
22614  - session
22615  - udfs
22616  - udtfs
22617  - device_ir_map
22618 
22619  """
22620 
22621 
22622  def __init__(self, session=None, udfs=None, udtfs=None, device_ir_map=None,):
22623  self.session = session
22624  self.udfs = udfs
22625  self.udtfs = udtfs
22626  self.device_ir_map = device_ir_map
22627 
22628  def read(self, iprot):
22629  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
22630  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
22631  return
22632  iprot.readStructBegin()
22633  while True:
22634  (fname, ftype, fid) = iprot.readFieldBegin()
22635  if ftype == TType.STOP:
22636  break
22637  if fid == 1:
22638  if ftype == TType.STRING:
22639  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
22640  else:
22641  iprot.skip(ftype)
22642  elif fid == 2:
22643  if ftype == TType.LIST:
22644  self.udfs = []
22645  (_etype662, _size659) = iprot.readListBegin()
22646  for _i663 in range(_size659):
22648  _elem664.read(iprot)
22649  self.udfs.append(_elem664)
22650  iprot.readListEnd()
22651  else:
22652  iprot.skip(ftype)
22653  elif fid == 3:
22654  if ftype == TType.LIST:
22655  self.udtfs = []
22656  (_etype668, _size665) = iprot.readListBegin()
22657  for _i669 in range(_size665):
22659  _elem670.read(iprot)
22660  self.udtfs.append(_elem670)
22661  iprot.readListEnd()
22662  else:
22663  iprot.skip(ftype)
22664  elif fid == 4:
22665  if ftype == TType.MAP:
22666  self.device_ir_map = {}
22667  (_ktype672, _vtype673, _size671) = iprot.readMapBegin()
22668  for _i675 in range(_size671):
22669  _key676 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
22670  _val677 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
22671  self.device_ir_map[_key676] = _val677
22672  iprot.readMapEnd()
22673  else:
22674  iprot.skip(ftype)
22675  else:
22676  iprot.skip(ftype)
22677  iprot.readFieldEnd()
22678  iprot.readStructEnd()
22679 
22680  def write(self, oprot):
22681  if oprot._fast_encode is not None and self.thrift_spec is not None:
22682  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
22683  return
22684  oprot.writeStructBegin('register_runtime_extension_functions_args')
22685  if self.session is not None:
22686  oprot.writeFieldBegin('session', TType.STRING, 1)
22687  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
22688  oprot.writeFieldEnd()
22689  if self.udfs is not None:
22690  oprot.writeFieldBegin('udfs', TType.LIST, 2)
22691  oprot.writeListBegin(TType.STRUCT, len(self.udfs))
22692  for iter678 in self.udfs:
22693  iter678.write(oprot)
22694  oprot.writeListEnd()
22695  oprot.writeFieldEnd()
22696  if self.udtfs is not None:
22697  oprot.writeFieldBegin('udtfs', TType.LIST, 3)
22698  oprot.writeListBegin(TType.STRUCT, len(self.udtfs))
22699  for iter679 in self.udtfs:
22700  iter679.write(oprot)
22701  oprot.writeListEnd()
22702  oprot.writeFieldEnd()
22703  if self.device_ir_map is not None:
22704  oprot.writeFieldBegin('device_ir_map', TType.MAP, 4)
22705  oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.device_ir_map))
22706  for kiter680, viter681 in self.device_ir_map.items():
22707  oprot.writeString(kiter680.encode('utf-8') if sys.version_info[0] == 2 else kiter680)
22708  oprot.writeString(viter681.encode('utf-8') if sys.version_info[0] == 2 else viter681)
22709  oprot.writeMapEnd()
22710  oprot.writeFieldEnd()
22711  oprot.writeFieldStop()
22712  oprot.writeStructEnd()
22713 
22714  def validate(self):
22715  return
22716 
22717  def __repr__(self):
22718  L = ['%s=%r' % (key, value)
22719  for key, value in self.__dict__.items()]
22720  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22721 
22722  def __eq__(self, other):
22723  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22724 
22725  def __ne__(self, other):
22726  return not (self == other)
22727 all_structs.append(register_runtime_extension_functions_args)
22728 register_runtime_extension_functions_args.thrift_spec = (
22729  None, # 0
22730  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
22731  (2, TType.LIST, 'udfs', (TType.STRUCT, [heavydb.extension_functions.ttypes.TUserDefinedFunction, None], False), None, ), # 2
22732  (3, TType.LIST, 'udtfs', (TType.STRUCT, [heavydb.extension_functions.ttypes.TUserDefinedTableFunction, None], False), None, ), # 3
22733  (4, TType.MAP, 'device_ir_map', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 4
22734 )
22735 
22736 
22738  """
22739  Attributes:
22740  - e
22741 
22742  """
22743 
22744 
22745  def __init__(self, e=None,):
22746  self.e = e
22747 
22748  def read(self, iprot):
22749  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
22750  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
22751  return
22752  iprot.readStructBegin()
22753  while True:
22754  (fname, ftype, fid) = iprot.readFieldBegin()
22755  if ftype == TType.STOP:
22756  break
22757  if fid == 1:
22758  if ftype == TType.STRUCT:
22759  self.e = TDBException.read(iprot)
22760  else:
22761  iprot.skip(ftype)
22762  else:
22763  iprot.skip(ftype)
22764  iprot.readFieldEnd()
22765  iprot.readStructEnd()
22766 
22767  def write(self, oprot):
22768  if oprot._fast_encode is not None and self.thrift_spec is not None:
22769  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
22770  return
22771  oprot.writeStructBegin('register_runtime_extension_functions_result')
22772  if self.e is not None:
22773  oprot.writeFieldBegin('e', TType.STRUCT, 1)
22774  self.e.write(oprot)
22775  oprot.writeFieldEnd()
22776  oprot.writeFieldStop()
22777  oprot.writeStructEnd()
22778 
22779  def validate(self):
22780  return
22781 
22782  def __repr__(self):
22783  L = ['%s=%r' % (key, value)
22784  for key, value in self.__dict__.items()]
22785  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22786 
22787  def __eq__(self, other):
22788  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22789 
22790  def __ne__(self, other):
22791  return not (self == other)
22792 all_structs.append(register_runtime_extension_functions_result)
22793 register_runtime_extension_functions_result.thrift_spec = (
22794  None, # 0
22795  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
22796 )
22797 
22798 
22800  """
22801  Attributes:
22802  - session
22803 
22804  """
22805 
22806 
22807  def __init__(self, session=None,):
22808  self.session = session
22809 
22810  def read(self, iprot):
22811  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
22812  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
22813  return
22814  iprot.readStructBegin()
22815  while True:
22816  (fname, ftype, fid) = iprot.readFieldBegin()
22817  if ftype == TType.STOP:
22818  break
22819  if fid == 1:
22820  if ftype == TType.STRING:
22821  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
22822  else:
22823  iprot.skip(ftype)
22824  else:
22825  iprot.skip(ftype)
22826  iprot.readFieldEnd()
22827  iprot.readStructEnd()
22828 
22829  def write(self, oprot):
22830  if oprot._fast_encode is not None and self.thrift_spec is not None:
22831  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
22832  return
22833  oprot.writeStructBegin('get_table_function_names_args')
22834  if self.session is not None:
22835  oprot.writeFieldBegin('session', TType.STRING, 1)
22836  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
22837  oprot.writeFieldEnd()
22838  oprot.writeFieldStop()
22839  oprot.writeStructEnd()
22840 
22841  def validate(self):
22842  return
22843 
22844  def __repr__(self):
22845  L = ['%s=%r' % (key, value)
22846  for key, value in self.__dict__.items()]
22847  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22848 
22849  def __eq__(self, other):
22850  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22851 
22852  def __ne__(self, other):
22853  return not (self == other)
22854 all_structs.append(get_table_function_names_args)
22855 get_table_function_names_args.thrift_spec = (
22856  None, # 0
22857  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
22858 )
22859 
22860 
22862  """
22863  Attributes:
22864  - success
22865  - e
22866 
22867  """
22868 
22869 
22870  def __init__(self, success=None, e=None,):
22871  self.success = success
22872  self.e = e
22873 
22874  def read(self, iprot):
22875  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
22876  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
22877  return
22878  iprot.readStructBegin()
22879  while True:
22880  (fname, ftype, fid) = iprot.readFieldBegin()
22881  if ftype == TType.STOP:
22882  break
22883  if fid == 0:
22884  if ftype == TType.LIST:
22885  self.success = []
22886  (_etype685, _size682) = iprot.readListBegin()
22887  for _i686 in range(_size682):
22888  _elem687 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
22889  self.success.append(_elem687)
22890  iprot.readListEnd()
22891  else:
22892  iprot.skip(ftype)
22893  elif fid == 1:
22894  if ftype == TType.STRUCT:
22895  self.e = TDBException.read(iprot)
22896  else:
22897  iprot.skip(ftype)
22898  else:
22899  iprot.skip(ftype)
22900  iprot.readFieldEnd()
22901  iprot.readStructEnd()
22902 
22903  def write(self, oprot):
22904  if oprot._fast_encode is not None and self.thrift_spec is not None:
22905  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
22906  return
22907  oprot.writeStructBegin('get_table_function_names_result')
22908  if self.success is not None:
22909  oprot.writeFieldBegin('success', TType.LIST, 0)
22910  oprot.writeListBegin(TType.STRING, len(self.success))
22911  for iter688 in self.success:
22912  oprot.writeString(iter688.encode('utf-8') if sys.version_info[0] == 2 else iter688)
22913  oprot.writeListEnd()
22914  oprot.writeFieldEnd()
22915  if self.e is not None:
22916  oprot.writeFieldBegin('e', TType.STRUCT, 1)
22917  self.e.write(oprot)
22918  oprot.writeFieldEnd()
22919  oprot.writeFieldStop()
22920  oprot.writeStructEnd()
22921 
22922  def validate(self):
22923  return
22924 
22925  def __repr__(self):
22926  L = ['%s=%r' % (key, value)
22927  for key, value in self.__dict__.items()]
22928  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22929 
22930  def __eq__(self, other):
22931  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22932 
22933  def __ne__(self, other):
22934  return not (self == other)
22935 all_structs.append(get_table_function_names_result)
22936 get_table_function_names_result.thrift_spec = (
22937  (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
22938  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
22939 )
22940 
22941 
22943  """
22944  Attributes:
22945  - session
22946 
22947  """
22948 
22949 
22950  def __init__(self, session=None,):
22951  self.session = session
22952 
22953  def read(self, iprot):
22954  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
22955  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
22956  return
22957  iprot.readStructBegin()
22958  while True:
22959  (fname, ftype, fid) = iprot.readFieldBegin()
22960  if ftype == TType.STOP:
22961  break
22962  if fid == 1:
22963  if ftype == TType.STRING:
22964  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
22965  else:
22966  iprot.skip(ftype)
22967  else:
22968  iprot.skip(ftype)
22969  iprot.readFieldEnd()
22970  iprot.readStructEnd()
22971 
22972  def write(self, oprot):
22973  if oprot._fast_encode is not None and self.thrift_spec is not None:
22974  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
22975  return
22976  oprot.writeStructBegin('get_runtime_table_function_names_args')
22977  if self.session is not None:
22978  oprot.writeFieldBegin('session', TType.STRING, 1)
22979  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
22980  oprot.writeFieldEnd()
22981  oprot.writeFieldStop()
22982  oprot.writeStructEnd()
22983 
22984  def validate(self):
22985  return
22986 
22987  def __repr__(self):
22988  L = ['%s=%r' % (key, value)
22989  for key, value in self.__dict__.items()]
22990  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22991 
22992  def __eq__(self, other):
22993  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22994 
22995  def __ne__(self, other):
22996  return not (self == other)
22997 all_structs.append(get_runtime_table_function_names_args)
22998 get_runtime_table_function_names_args.thrift_spec = (
22999  None, # 0
23000  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
23001 )
23002 
23003 
23005  """
23006  Attributes:
23007  - success
23008  - e
23009 
23010  """
23011 
23012 
23013  def __init__(self, success=None, e=None,):
23014  self.success = success
23015  self.e = e
23016 
23017  def read(self, iprot):
23018  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
23019  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
23020  return
23021  iprot.readStructBegin()
23022  while True:
23023  (fname, ftype, fid) = iprot.readFieldBegin()
23024  if ftype == TType.STOP:
23025  break
23026  if fid == 0:
23027  if ftype == TType.LIST:
23028  self.success = []
23029  (_etype692, _size689) = iprot.readListBegin()
23030  for _i693 in range(_size689):
23031  _elem694 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
23032  self.success.append(_elem694)
23033  iprot.readListEnd()
23034  else:
23035  iprot.skip(ftype)
23036  elif fid == 1:
23037  if ftype == TType.STRUCT:
23038  self.e = TDBException.read(iprot)
23039  else:
23040  iprot.skip(ftype)
23041  else:
23042  iprot.skip(ftype)
23043  iprot.readFieldEnd()
23044  iprot.readStructEnd()
23045 
23046  def write(self, oprot):
23047  if oprot._fast_encode is not None and self.thrift_spec is not None:
23048  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
23049  return
23050  oprot.writeStructBegin('get_runtime_table_function_names_result')
23051  if self.success is not None:
23052  oprot.writeFieldBegin('success', TType.LIST, 0)
23053  oprot.writeListBegin(TType.STRING, len(self.success))
23054  for iter695 in self.success:
23055  oprot.writeString(iter695.encode('utf-8') if sys.version_info[0] == 2 else iter695)
23056  oprot.writeListEnd()
23057  oprot.writeFieldEnd()
23058  if self.e is not None:
23059  oprot.writeFieldBegin('e', TType.STRUCT, 1)
23060  self.e.write(oprot)
23061  oprot.writeFieldEnd()
23062  oprot.writeFieldStop()
23063  oprot.writeStructEnd()
23064 
23065  def validate(self):
23066  return
23067 
23068  def __repr__(self):
23069  L = ['%s=%r' % (key, value)
23070  for key, value in self.__dict__.items()]
23071  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23072 
23073  def __eq__(self, other):
23074  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23075 
23076  def __ne__(self, other):
23077  return not (self == other)
23078 all_structs.append(get_runtime_table_function_names_result)
23079 get_runtime_table_function_names_result.thrift_spec = (
23080  (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
23081  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
23082 )
23083 
23084 
23086  """
23087  Attributes:
23088  - session
23089  - udtf_names
23090 
23091  """
23092 
23093 
23094  def __init__(self, session=None, udtf_names=None,):
23095  self.session = session
23096  self.udtf_names = udtf_names
23097 
23098  def read(self, iprot):
23099  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
23100  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
23101  return
23102  iprot.readStructBegin()
23103  while True:
23104  (fname, ftype, fid) = iprot.readFieldBegin()
23105  if ftype == TType.STOP:
23106  break
23107  if fid == 1:
23108  if ftype == TType.STRING:
23109  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
23110  else:
23111  iprot.skip(ftype)
23112  elif fid == 2:
23113  if ftype == TType.LIST:
23114  self.udtf_names = []
23115  (_etype699, _size696) = iprot.readListBegin()
23116  for _i700 in range(_size696):
23117  _elem701 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
23118  self.udtf_names.append(_elem701)
23119  iprot.readListEnd()
23120  else:
23121  iprot.skip(ftype)
23122  else:
23123  iprot.skip(ftype)
23124  iprot.readFieldEnd()
23125  iprot.readStructEnd()
23126 
23127  def write(self, oprot):
23128  if oprot._fast_encode is not None and self.thrift_spec is not None:
23129  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
23130  return
23131  oprot.writeStructBegin('get_table_function_details_args')
23132  if self.session is not None:
23133  oprot.writeFieldBegin('session', TType.STRING, 1)
23134  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
23135  oprot.writeFieldEnd()
23136  if self.udtf_names is not None:
23137  oprot.writeFieldBegin('udtf_names', TType.LIST, 2)
23138  oprot.writeListBegin(TType.STRING, len(self.udtf_names))
23139  for iter702 in self.udtf_names:
23140  oprot.writeString(iter702.encode('utf-8') if sys.version_info[0] == 2 else iter702)
23141  oprot.writeListEnd()
23142  oprot.writeFieldEnd()
23143  oprot.writeFieldStop()
23144  oprot.writeStructEnd()
23145 
23146  def validate(self):
23147  return
23148 
23149  def __repr__(self):
23150  L = ['%s=%r' % (key, value)
23151  for key, value in self.__dict__.items()]
23152  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23153 
23154  def __eq__(self, other):
23155  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23156 
23157  def __ne__(self, other):
23158  return not (self == other)
23159 all_structs.append(get_table_function_details_args)
23160 get_table_function_details_args.thrift_spec = (
23161  None, # 0
23162  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
23163  (2, TType.LIST, 'udtf_names', (TType.STRING, 'UTF8', False), None, ), # 2
23164 )
23165 
23166 
23168  """
23169  Attributes:
23170  - success
23171  - e
23172 
23173  """
23174 
23175 
23176  def __init__(self, success=None, e=None,):
23177  self.success = success
23178  self.e = e
23179 
23180  def read(self, iprot):
23181  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
23182  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
23183  return
23184  iprot.readStructBegin()
23185  while True:
23186  (fname, ftype, fid) = iprot.readFieldBegin()
23187  if ftype == TType.STOP:
23188  break
23189  if fid == 0:
23190  if ftype == TType.LIST:
23191  self.success = []
23192  (_etype706, _size703) = iprot.readListBegin()
23193  for _i707 in range(_size703):
23195  _elem708.read(iprot)
23196  self.success.append(_elem708)
23197  iprot.readListEnd()
23198  else:
23199  iprot.skip(ftype)
23200  elif fid == 1:
23201  if ftype == TType.STRUCT:
23202  self.e = TDBException.read(iprot)
23203  else:
23204  iprot.skip(ftype)
23205  else:
23206  iprot.skip(ftype)
23207  iprot.readFieldEnd()
23208  iprot.readStructEnd()
23209 
23210  def write(self, oprot):
23211  if oprot._fast_encode is not None and self.thrift_spec is not None:
23212  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
23213  return
23214  oprot.writeStructBegin('get_table_function_details_result')
23215  if self.success is not None:
23216  oprot.writeFieldBegin('success', TType.LIST, 0)
23217  oprot.writeListBegin(TType.STRUCT, len(self.success))
23218  for iter709 in self.success:
23219  iter709.write(oprot)
23220  oprot.writeListEnd()
23221  oprot.writeFieldEnd()
23222  if self.e is not None:
23223  oprot.writeFieldBegin('e', TType.STRUCT, 1)
23224  self.e.write(oprot)
23225  oprot.writeFieldEnd()
23226  oprot.writeFieldStop()
23227  oprot.writeStructEnd()
23228 
23229  def validate(self):
23230  return
23231 
23232  def __repr__(self):
23233  L = ['%s=%r' % (key, value)
23234  for key, value in self.__dict__.items()]
23235  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23236 
23237  def __eq__(self, other):
23238  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23239 
23240  def __ne__(self, other):
23241  return not (self == other)
23242 all_structs.append(get_table_function_details_result)
23243 get_table_function_details_result.thrift_spec = (
23244  (0, TType.LIST, 'success', (TType.STRUCT, [heavydb.extension_functions.ttypes.TUserDefinedTableFunction, None], False), None, ), # 0
23245  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
23246 )
23247 
23248 
23250  """
23251  Attributes:
23252  - session
23253 
23254  """
23255 
23256 
23257  def __init__(self, session=None,):
23258  self.session = session
23259 
23260  def read(self, iprot):
23261  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
23262  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
23263  return
23264  iprot.readStructBegin()
23265  while True:
23266  (fname, ftype, fid) = iprot.readFieldBegin()
23267  if ftype == TType.STOP:
23268  break
23269  if fid == 1:
23270  if ftype == TType.STRING:
23271  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
23272  else:
23273  iprot.skip(ftype)
23274  else:
23275  iprot.skip(ftype)
23276  iprot.readFieldEnd()
23277  iprot.readStructEnd()
23278 
23279  def write(self, oprot):
23280  if oprot._fast_encode is not None and self.thrift_spec is not None:
23281  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
23282  return
23283  oprot.writeStructBegin('get_function_names_args')
23284  if self.session is not None:
23285  oprot.writeFieldBegin('session', TType.STRING, 1)
23286  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
23287  oprot.writeFieldEnd()
23288  oprot.writeFieldStop()
23289  oprot.writeStructEnd()
23290 
23291  def validate(self):
23292  return
23293 
23294  def __repr__(self):
23295  L = ['%s=%r' % (key, value)
23296  for key, value in self.__dict__.items()]
23297  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23298 
23299  def __eq__(self, other):
23300  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23301 
23302  def __ne__(self, other):
23303  return not (self == other)
23304 all_structs.append(get_function_names_args)
23305 get_function_names_args.thrift_spec = (
23306  None, # 0
23307  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
23308 )
23309 
23310 
23312  """
23313  Attributes:
23314  - success
23315  - e
23316 
23317  """
23318 
23319 
23320  def __init__(self, success=None, e=None,):
23321  self.success = success
23322  self.e = e
23323 
23324  def read(self, iprot):
23325  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
23326  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
23327  return
23328  iprot.readStructBegin()
23329  while True:
23330  (fname, ftype, fid) = iprot.readFieldBegin()
23331  if ftype == TType.STOP:
23332  break
23333  if fid == 0:
23334  if ftype == TType.LIST:
23335  self.success = []
23336  (_etype713, _size710) = iprot.readListBegin()
23337  for _i714 in range(_size710):
23338  _elem715 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
23339  self.success.append(_elem715)
23340  iprot.readListEnd()
23341  else:
23342  iprot.skip(ftype)
23343  elif fid == 1:
23344  if ftype == TType.STRUCT:
23345  self.e = TDBException.read(iprot)
23346  else:
23347  iprot.skip(ftype)
23348  else:
23349  iprot.skip(ftype)
23350  iprot.readFieldEnd()
23351  iprot.readStructEnd()
23352 
23353  def write(self, oprot):
23354  if oprot._fast_encode is not None and self.thrift_spec is not None:
23355  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
23356  return
23357  oprot.writeStructBegin('get_function_names_result')
23358  if self.success is not None:
23359  oprot.writeFieldBegin('success', TType.LIST, 0)
23360  oprot.writeListBegin(TType.STRING, len(self.success))
23361  for iter716 in self.success:
23362  oprot.writeString(iter716.encode('utf-8') if sys.version_info[0] == 2 else iter716)
23363  oprot.writeListEnd()
23364  oprot.writeFieldEnd()
23365  if self.e is not None:
23366  oprot.writeFieldBegin('e', TType.STRUCT, 1)
23367  self.e.write(oprot)
23368  oprot.writeFieldEnd()
23369  oprot.writeFieldStop()
23370  oprot.writeStructEnd()
23371 
23372  def validate(self):
23373  return
23374 
23375  def __repr__(self):
23376  L = ['%s=%r' % (key, value)
23377  for key, value in self.__dict__.items()]
23378  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23379 
23380  def __eq__(self, other):
23381  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23382 
23383  def __ne__(self, other):
23384  return not (self == other)
23385 all_structs.append(get_function_names_result)
23386 get_function_names_result.thrift_spec = (
23387  (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
23388  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
23389 )
23390 
23391 
23393  """
23394  Attributes:
23395  - session
23396 
23397  """
23398 
23399 
23400  def __init__(self, session=None,):
23401  self.session = session
23402 
23403  def read(self, iprot):
23404  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
23405  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
23406  return
23407  iprot.readStructBegin()
23408  while True:
23409  (fname, ftype, fid) = iprot.readFieldBegin()
23410  if ftype == TType.STOP:
23411  break
23412  if fid == 1:
23413  if ftype == TType.STRING:
23414  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
23415  else:
23416  iprot.skip(ftype)
23417  else:
23418  iprot.skip(ftype)
23419  iprot.readFieldEnd()
23420  iprot.readStructEnd()
23421 
23422  def write(self, oprot):
23423  if oprot._fast_encode is not None and self.thrift_spec is not None:
23424  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
23425  return
23426  oprot.writeStructBegin('get_runtime_function_names_args')
23427  if self.session is not None:
23428  oprot.writeFieldBegin('session', TType.STRING, 1)
23429  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
23430  oprot.writeFieldEnd()
23431  oprot.writeFieldStop()
23432  oprot.writeStructEnd()
23433 
23434  def validate(self):
23435  return
23436 
23437  def __repr__(self):
23438  L = ['%s=%r' % (key, value)
23439  for key, value in self.__dict__.items()]
23440  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23441 
23442  def __eq__(self, other):
23443  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23444 
23445  def __ne__(self, other):
23446  return not (self == other)
23447 all_structs.append(get_runtime_function_names_args)
23448 get_runtime_function_names_args.thrift_spec = (
23449  None, # 0
23450  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
23451 )
23452 
23453 
23455  """
23456  Attributes:
23457  - success
23458  - e
23459 
23460  """
23461 
23462 
23463  def __init__(self, success=None, e=None,):
23464  self.success = success
23465  self.e = e
23466 
23467  def read(self, iprot):
23468  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
23469  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
23470  return
23471  iprot.readStructBegin()
23472  while True:
23473  (fname, ftype, fid) = iprot.readFieldBegin()
23474  if ftype == TType.STOP:
23475  break
23476  if fid == 0:
23477  if ftype == TType.LIST:
23478  self.success = []
23479  (_etype720, _size717) = iprot.readListBegin()
23480  for _i721 in range(_size717):
23481  _elem722 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
23482  self.success.append(_elem722)
23483  iprot.readListEnd()
23484  else:
23485  iprot.skip(ftype)
23486  elif fid == 1:
23487  if ftype == TType.STRUCT:
23488  self.e = TDBException.read(iprot)
23489  else:
23490  iprot.skip(ftype)
23491  else:
23492  iprot.skip(ftype)
23493  iprot.readFieldEnd()
23494  iprot.readStructEnd()
23495 
23496  def write(self, oprot):
23497  if oprot._fast_encode is not None and self.thrift_spec is not None:
23498  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
23499  return
23500  oprot.writeStructBegin('get_runtime_function_names_result')
23501  if self.success is not None:
23502  oprot.writeFieldBegin('success', TType.LIST, 0)
23503  oprot.writeListBegin(TType.STRING, len(self.success))
23504  for iter723 in self.success:
23505  oprot.writeString(iter723.encode('utf-8') if sys.version_info[0] == 2 else iter723)
23506  oprot.writeListEnd()
23507  oprot.writeFieldEnd()
23508  if self.e is not None:
23509  oprot.writeFieldBegin('e', TType.STRUCT, 1)
23510  self.e.write(oprot)
23511  oprot.writeFieldEnd()
23512  oprot.writeFieldStop()
23513  oprot.writeStructEnd()
23514 
23515  def validate(self):
23516  return
23517 
23518  def __repr__(self):
23519  L = ['%s=%r' % (key, value)
23520  for key, value in self.__dict__.items()]
23521  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23522 
23523  def __eq__(self, other):
23524  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23525 
23526  def __ne__(self, other):
23527  return not (self == other)
23528 all_structs.append(get_runtime_function_names_result)
23529 get_runtime_function_names_result.thrift_spec = (
23530  (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0
23531  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
23532 )
23533 
23534 
23536  """
23537  Attributes:
23538  - session
23539  - udf_names
23540 
23541  """
23542 
23543 
23544  def __init__(self, session=None, udf_names=None,):
23545  self.session = session
23546  self.udf_names = udf_names
23547 
23548  def read(self, iprot):
23549  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
23550  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
23551  return
23552  iprot.readStructBegin()
23553  while True:
23554  (fname, ftype, fid) = iprot.readFieldBegin()
23555  if ftype == TType.STOP:
23556  break
23557  if fid == 1:
23558  if ftype == TType.STRING:
23559  self.session = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
23560  else:
23561  iprot.skip(ftype)
23562  elif fid == 2:
23563  if ftype == TType.LIST:
23564  self.udf_names = []
23565  (_etype727, _size724) = iprot.readListBegin()
23566  for _i728 in range(_size724):
23567  _elem729 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
23568  self.udf_names.append(_elem729)
23569  iprot.readListEnd()
23570  else:
23571  iprot.skip(ftype)
23572  else:
23573  iprot.skip(ftype)
23574  iprot.readFieldEnd()
23575  iprot.readStructEnd()
23576 
23577  def write(self, oprot):
23578  if oprot._fast_encode is not None and self.thrift_spec is not None:
23579  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
23580  return
23581  oprot.writeStructBegin('get_function_details_args')
23582  if self.session is not None:
23583  oprot.writeFieldBegin('session', TType.STRING, 1)
23584  oprot.writeString(self.session.encode('utf-8') if sys.version_info[0] == 2 else self.session)
23585  oprot.writeFieldEnd()
23586  if self.udf_names is not None:
23587  oprot.writeFieldBegin('udf_names', TType.LIST, 2)
23588  oprot.writeListBegin(TType.STRING, len(self.udf_names))
23589  for iter730 in self.udf_names:
23590  oprot.writeString(iter730.encode('utf-8') if sys.version_info[0] == 2 else iter730)
23591  oprot.writeListEnd()
23592  oprot.writeFieldEnd()
23593  oprot.writeFieldStop()
23594  oprot.writeStructEnd()
23595 
23596  def validate(self):
23597  return
23598 
23599  def __repr__(self):
23600  L = ['%s=%r' % (key, value)
23601  for key, value in self.__dict__.items()]
23602  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23603 
23604  def __eq__(self, other):
23605  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23606 
23607  def __ne__(self, other):
23608  return not (self == other)
23609 all_structs.append(get_function_details_args)
23610 get_function_details_args.thrift_spec = (
23611  None, # 0
23612  (1, TType.STRING, 'session', 'UTF8', None, ), # 1
23613  (2, TType.LIST, 'udf_names', (TType.STRING, 'UTF8', False), None, ), # 2
23614 )
23615 
23616 
23618  """
23619  Attributes:
23620  - success
23621  - e
23622 
23623  """
23624 
23625 
23626  def __init__(self, success=None, e=None,):
23627  self.success = success
23628  self.e = e
23629 
23630  def read(self, iprot):
23631  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
23632  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
23633  return
23634  iprot.readStructBegin()
23635  while True:
23636  (fname, ftype, fid) = iprot.readFieldBegin()
23637  if ftype == TType.STOP:
23638  break
23639  if fid == 0:
23640  if ftype == TType.LIST:
23641  self.success = []
23642  (_etype734, _size731) = iprot.readListBegin()
23643  for _i735 in range(_size731):
23645  _elem736.read(iprot)
23646  self.success.append(_elem736)
23647  iprot.readListEnd()
23648  else:
23649  iprot.skip(ftype)
23650  elif fid == 1:
23651  if ftype == TType.STRUCT:
23652  self.e = TDBException.read(iprot)
23653  else:
23654  iprot.skip(ftype)
23655  else:
23656  iprot.skip(ftype)
23657  iprot.readFieldEnd()
23658  iprot.readStructEnd()
23659 
23660  def write(self, oprot):
23661  if oprot._fast_encode is not None and self.thrift_spec is not None:
23662  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
23663  return
23664  oprot.writeStructBegin('get_function_details_result')
23665  if self.success is not None:
23666  oprot.writeFieldBegin('success', TType.LIST, 0)
23667  oprot.writeListBegin(TType.STRUCT, len(self.success))
23668  for iter737 in self.success:
23669  iter737.write(oprot)
23670  oprot.writeListEnd()
23671  oprot.writeFieldEnd()
23672  if self.e is not None:
23673  oprot.writeFieldBegin('e', TType.STRUCT, 1)
23674  self.e.write(oprot)
23675  oprot.writeFieldEnd()
23676  oprot.writeFieldStop()
23677  oprot.writeStructEnd()
23678 
23679  def validate(self):
23680  return
23681 
23682  def __repr__(self):
23683  L = ['%s=%r' % (key, value)
23684  for key, value in self.__dict__.items()]
23685  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23686 
23687  def __eq__(self, other):
23688  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23689 
23690  def __ne__(self, other):
23691  return not (self == other)
23692 all_structs.append(get_function_details_result)
23693 get_function_details_result.thrift_spec = (
23694  (0, TType.LIST, 'success', (TType.STRUCT, [heavydb.extension_functions.ttypes.TUserDefinedFunction, None], False), None, ), # 0
23695  (1, TType.STRUCT, 'e', [TDBException, None], None, ), # 1
23696 )
23697 fix_spec(all_structs)
23698 del all_structs
def send_get_first_geo_file_in_archive
Definition: Heavy.py:3695
def recv_query_get_outer_fragment_count
Definition: Heavy.py:3817
def send_get_table_details_for_database
Definition: Heavy.py:1517
def send_get_all_effective_roles_for_user
Definition: Heavy.py:4324
def process_get_internal_table_details_for_database
Definition: Heavy.py:5330
std::string join(T const &container, std::string const &delim)
def process_get_all_effective_roles_for_user
Definition: Heavy.py:7242
def get_internal_table_details_for_database
Definition: Heavy.py:160
def send_register_runtime_extension_functions
Definition: Heavy.py:4550
def query_get_outer_fragment_count
Definition: Heavy.py:759
def recv_get_internal_table_details_for_database
Definition: Heavy.py:1603
def recv_get_runtime_table_function_names
Definition: Heavy.py:4627
def recv_register_runtime_extension_functions
Definition: Heavy.py:4561
def get_table_details_for_database
Definition: Heavy.py:140
def recv_get_first_geo_file_in_archive
Definition: Heavy.py:3705
def register_runtime_extension_functions
Definition: Heavy.py:953
def send_get_runtime_table_function_names
Definition: Heavy.py:4619
def get_runtime_table_function_names
Definition: Heavy.py:972
def send_query_get_outer_fragment_count
Definition: Heavy.py:3808
def register_runtime_extension_functions
Definition: Heavy.py:4538
def send_get_internal_table_details_for_database
Definition: Heavy.py:1593
def get_internal_table_details_for_database
Definition: Heavy.py:1582
def get_all_effective_roles_for_user
Definition: Heavy.py:895
def recv_get_all_effective_roles_for_user
Definition: Heavy.py:4333
def process_register_runtime_extension_functions
Definition: Heavy.py:7398
def process_get_runtime_table_function_names
Definition: Heavy.py:7450
def recv_get_table_details_for_database
Definition: Heavy.py:1527