9 from thrift.Thrift
import TType, TMessageType, TFrozenDict, TException, TApplicationException
10 from thrift.protocol.TProtocol
import TProtocolException
11 from thrift.TRecursive
import fix_spec
16 from thrift.Thrift
import TProcessor
17 from thrift.transport
import TTransport
155 - include_system_columns
238 def set_cur_session(self, parent_session, leaf_session, start_time_str, label, for_running_query_kernel):
245 - for_running_query_kernel
257 - for_running_query_kernel
347 def sql_execute(self, session, query, column_format, nonce, first_n, at_most_n):
360 def sql_execute_df(self, session, query, device_type, device_id, first_n, transport_method):
432 def render_vega(self, session, widget_id, vega_json, compression_level, nonce):
489 - custom_expression_ids
512 def create_dashboard(self, session, dashboard_name, dashboard_state, image_hash, dashboard_metadata):
524 def replace_dashboard(self, session, dashboard_id, dashboard_name, dashboard_owner, dashboard_state, image_hash, dashboard_metadata):
567 def share_dashboard(self, session, dashboard_id, groups, objects, permissions, grant_role):
664 def load_table(self, session, table_name, rows, column_names):
707 def import_geo_table(self, session, table_name, file_name, copy_params, row_desc, create_params):
777 def start_query(self, leaf_session, parent_session, query_ra, start_time_str, just_explain, outer_fragment_indices):
785 - outer_fragment_indices
807 - is_final_subquery_result
904 def has_role(self, session, granteeName, roleName):
1015 class Client(Iface):
1018 if oprot
is not None:
1034 self._oprot.writeMessageBegin(
'connect', TMessageType.CALL, self.
_seqid)
1037 args.passwd = passwd
1038 args.dbname = dbname
1040 self._oprot.writeMessageEnd()
1041 self._oprot.trans.flush()
1045 (fname, mtype, rseqid) = iprot.readMessageBegin()
1046 if mtype == TMessageType.EXCEPTION:
1047 x = TApplicationException()
1049 iprot.readMessageEnd()
1053 iprot.readMessageEnd()
1054 if result.success
is not None:
1055 return result.success
1056 if result.e
is not None:
1058 raise TApplicationException(TApplicationException.MISSING_RESULT,
"connect failed: unknown result")
1071 self._oprot.writeMessageBegin(
'krb5_connect', TMessageType.CALL, self.
_seqid)
1073 args.inputToken = inputToken
1074 args.dbname = dbname
1076 self._oprot.writeMessageEnd()
1077 self._oprot.trans.flush()
1081 (fname, mtype, rseqid) = iprot.readMessageBegin()
1082 if mtype == TMessageType.EXCEPTION:
1083 x = TApplicationException()
1085 iprot.readMessageEnd()
1089 iprot.readMessageEnd()
1090 if result.success
is not None:
1091 return result.success
1092 if result.e
is not None:
1094 raise TApplicationException(TApplicationException.MISSING_RESULT,
"krb5_connect failed: unknown result")
1106 self._oprot.writeMessageBegin(
'disconnect', TMessageType.CALL, self.
_seqid)
1108 args.session = session
1110 self._oprot.writeMessageEnd()
1111 self._oprot.trans.flush()
1115 (fname, mtype, rseqid) = iprot.readMessageBegin()
1116 if mtype == TMessageType.EXCEPTION:
1117 x = TApplicationException()
1119 iprot.readMessageEnd()
1123 iprot.readMessageEnd()
1124 if result.e
is not None:
1139 self._oprot.writeMessageBegin(
'switch_database', TMessageType.CALL, self.
_seqid)
1141 args.session = session
1142 args.dbname = dbname
1144 self._oprot.writeMessageEnd()
1145 self._oprot.trans.flush()
1149 (fname, mtype, rseqid) = iprot.readMessageBegin()
1150 if mtype == TMessageType.EXCEPTION:
1151 x = TApplicationException()
1153 iprot.readMessageEnd()
1157 iprot.readMessageEnd()
1158 if result.e
is not None:
1172 self._oprot.writeMessageBegin(
'clone_session', TMessageType.CALL, self.
_seqid)
1174 args.session = session
1176 self._oprot.writeMessageEnd()
1177 self._oprot.trans.flush()
1181 (fname, mtype, rseqid) = iprot.readMessageBegin()
1182 if mtype == TMessageType.EXCEPTION:
1183 x = TApplicationException()
1185 iprot.readMessageEnd()
1189 iprot.readMessageEnd()
1190 if result.success
is not None:
1191 return result.success
1192 if result.e
is not None:
1194 raise TApplicationException(TApplicationException.MISSING_RESULT,
"clone_session failed: unknown result")
1206 self._oprot.writeMessageBegin(
'get_server_status', TMessageType.CALL, self.
_seqid)
1208 args.session = session
1210 self._oprot.writeMessageEnd()
1211 self._oprot.trans.flush()
1215 (fname, mtype, rseqid) = iprot.readMessageBegin()
1216 if mtype == TMessageType.EXCEPTION:
1217 x = TApplicationException()
1219 iprot.readMessageEnd()
1223 iprot.readMessageEnd()
1224 if result.success
is not None:
1225 return result.success
1226 if result.e
is not None:
1228 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_server_status failed: unknown result")
1240 self._oprot.writeMessageBegin(
'get_status', TMessageType.CALL, self.
_seqid)
1242 args.session = session
1244 self._oprot.writeMessageEnd()
1245 self._oprot.trans.flush()
1249 (fname, mtype, rseqid) = iprot.readMessageBegin()
1250 if mtype == TMessageType.EXCEPTION:
1251 x = TApplicationException()
1253 iprot.readMessageEnd()
1257 iprot.readMessageEnd()
1258 if result.success
is not None:
1259 return result.success
1260 if result.e
is not None:
1262 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_status failed: unknown result")
1274 self._oprot.writeMessageBegin(
'get_hardware_info', TMessageType.CALL, self.
_seqid)
1276 args.session = session
1278 self._oprot.writeMessageEnd()
1279 self._oprot.trans.flush()
1283 (fname, mtype, rseqid) = iprot.readMessageBegin()
1284 if mtype == TMessageType.EXCEPTION:
1285 x = TApplicationException()
1287 iprot.readMessageEnd()
1291 iprot.readMessageEnd()
1292 if result.success
is not None:
1293 return result.success
1294 if result.e
is not None:
1296 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_hardware_info failed: unknown result")
1308 self._oprot.writeMessageBegin(
'get_tables', TMessageType.CALL, self.
_seqid)
1310 args.session = session
1312 self._oprot.writeMessageEnd()
1313 self._oprot.trans.flush()
1317 (fname, mtype, rseqid) = iprot.readMessageBegin()
1318 if mtype == TMessageType.EXCEPTION:
1319 x = TApplicationException()
1321 iprot.readMessageEnd()
1325 iprot.readMessageEnd()
1326 if result.success
is not None:
1327 return result.success
1328 if result.e
is not None:
1330 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_tables failed: unknown result")
1343 self._oprot.writeMessageBegin(
'get_tables_for_database', TMessageType.CALL, self.
_seqid)
1345 args.session = session
1346 args.database_name = database_name
1348 self._oprot.writeMessageEnd()
1349 self._oprot.trans.flush()
1353 (fname, mtype, rseqid) = iprot.readMessageBegin()
1354 if mtype == TMessageType.EXCEPTION:
1355 x = TApplicationException()
1357 iprot.readMessageEnd()
1361 iprot.readMessageEnd()
1362 if result.success
is not None:
1363 return result.success
1364 if result.e
is not None:
1366 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_tables_for_database failed: unknown result")
1378 self._oprot.writeMessageBegin(
'get_physical_tables', TMessageType.CALL, self.
_seqid)
1380 args.session = session
1382 self._oprot.writeMessageEnd()
1383 self._oprot.trans.flush()
1387 (fname, mtype, rseqid) = iprot.readMessageBegin()
1388 if mtype == TMessageType.EXCEPTION:
1389 x = TApplicationException()
1391 iprot.readMessageEnd()
1395 iprot.readMessageEnd()
1396 if result.success
is not None:
1397 return result.success
1398 if result.e
is not None:
1400 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_physical_tables failed: unknown result")
1412 self._oprot.writeMessageBegin(
'get_views', TMessageType.CALL, self.
_seqid)
1414 args.session = session
1416 self._oprot.writeMessageEnd()
1417 self._oprot.trans.flush()
1421 (fname, mtype, rseqid) = iprot.readMessageBegin()
1422 if mtype == TMessageType.EXCEPTION:
1423 x = TApplicationException()
1425 iprot.readMessageEnd()
1429 iprot.readMessageEnd()
1430 if result.success
is not None:
1431 return result.success
1432 if result.e
is not None:
1434 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_views failed: unknown result")
1446 self._oprot.writeMessageBegin(
'get_tables_meta', TMessageType.CALL, self.
_seqid)
1448 args.session = session
1450 self._oprot.writeMessageEnd()
1451 self._oprot.trans.flush()
1455 (fname, mtype, rseqid) = iprot.readMessageBegin()
1456 if mtype == TMessageType.EXCEPTION:
1457 x = TApplicationException()
1459 iprot.readMessageEnd()
1463 iprot.readMessageEnd()
1464 if result.success
is not None:
1465 return result.success
1466 if result.e
is not None:
1468 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_tables_meta failed: unknown result")
1481 self._oprot.writeMessageBegin(
'get_table_details', TMessageType.CALL, self.
_seqid)
1483 args.session = session
1484 args.table_name = table_name
1486 self._oprot.writeMessageEnd()
1487 self._oprot.trans.flush()
1491 (fname, mtype, rseqid) = iprot.readMessageBegin()
1492 if mtype == TMessageType.EXCEPTION:
1493 x = TApplicationException()
1495 iprot.readMessageEnd()
1499 iprot.readMessageEnd()
1500 if result.success
is not None:
1501 return result.success
1502 if result.e
is not None:
1504 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_table_details failed: unknown result")
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
1524 self._oprot.writeMessageEnd()
1525 self._oprot.trans.flush()
1529 (fname, mtype, rseqid) = iprot.readMessageBegin()
1530 if mtype == TMessageType.EXCEPTION:
1531 x = TApplicationException()
1533 iprot.readMessageEnd()
1537 iprot.readMessageEnd()
1538 if result.success
is not None:
1539 return result.success
1540 if result.e
is not None:
1542 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_table_details_for_database failed: unknown result")
1549 - 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
1562 self._oprot.writeMessageEnd()
1563 self._oprot.trans.flush()
1567 (fname, mtype, rseqid) = iprot.readMessageBegin()
1568 if mtype == TMessageType.EXCEPTION:
1569 x = TApplicationException()
1571 iprot.readMessageEnd()
1575 iprot.readMessageEnd()
1576 if result.success
is not None:
1577 return result.success
1578 if result.e
is not None:
1580 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_internal_table_details failed: unknown result")
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
1600 self._oprot.writeMessageEnd()
1601 self._oprot.trans.flush()
1605 (fname, mtype, rseqid) = iprot.readMessageBegin()
1606 if mtype == TMessageType.EXCEPTION:
1607 x = TApplicationException()
1609 iprot.readMessageEnd()
1613 iprot.readMessageEnd()
1614 if result.success
is not None:
1615 return result.success
1616 if result.e
is not None:
1618 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_internal_table_details_for_database failed: unknown result")
1630 self._oprot.writeMessageBegin(
'get_users', TMessageType.CALL, self.
_seqid)
1632 args.session = session
1634 self._oprot.writeMessageEnd()
1635 self._oprot.trans.flush()
1639 (fname, mtype, rseqid) = iprot.readMessageBegin()
1640 if mtype == TMessageType.EXCEPTION:
1641 x = TApplicationException()
1643 iprot.readMessageEnd()
1647 iprot.readMessageEnd()
1648 if result.success
is not None:
1649 return result.success
1650 if result.e
is not None:
1652 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_users failed: unknown result")
1664 self._oprot.writeMessageBegin(
'get_databases', TMessageType.CALL, self.
_seqid)
1666 args.session = session
1668 self._oprot.writeMessageEnd()
1669 self._oprot.trans.flush()
1673 (fname, mtype, rseqid) = iprot.readMessageBegin()
1674 if mtype == TMessageType.EXCEPTION:
1675 x = TApplicationException()
1677 iprot.readMessageEnd()
1681 iprot.readMessageEnd()
1682 if result.success
is not None:
1683 return result.success
1684 if result.e
is not None:
1686 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_databases failed: unknown result")
1693 self._oprot.writeMessageBegin(
'get_version', TMessageType.CALL, self.
_seqid)
1696 self._oprot.writeMessageEnd()
1697 self._oprot.trans.flush()
1701 (fname, mtype, rseqid) = iprot.readMessageBegin()
1702 if mtype == TMessageType.EXCEPTION:
1703 x = TApplicationException()
1705 iprot.readMessageEnd()
1709 iprot.readMessageEnd()
1710 if result.success
is not None:
1711 return result.success
1712 if result.e
is not None:
1714 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_version failed: unknown result")
1726 self._oprot.writeMessageBegin(
'start_heap_profile', TMessageType.CALL, self.
_seqid)
1728 args.session = session
1730 self._oprot.writeMessageEnd()
1731 self._oprot.trans.flush()
1735 (fname, mtype, rseqid) = iprot.readMessageBegin()
1736 if mtype == TMessageType.EXCEPTION:
1737 x = TApplicationException()
1739 iprot.readMessageEnd()
1743 iprot.readMessageEnd()
1744 if result.e
is not None:
1758 self._oprot.writeMessageBegin(
'stop_heap_profile', TMessageType.CALL, self.
_seqid)
1760 args.session = session
1762 self._oprot.writeMessageEnd()
1763 self._oprot.trans.flush()
1767 (fname, mtype, rseqid) = iprot.readMessageBegin()
1768 if mtype == TMessageType.EXCEPTION:
1769 x = TApplicationException()
1771 iprot.readMessageEnd()
1775 iprot.readMessageEnd()
1776 if result.e
is not None:
1790 self._oprot.writeMessageBegin(
'get_heap_profile', TMessageType.CALL, self.
_seqid)
1792 args.session = session
1794 self._oprot.writeMessageEnd()
1795 self._oprot.trans.flush()
1799 (fname, mtype, rseqid) = iprot.readMessageBegin()
1800 if mtype == TMessageType.EXCEPTION:
1801 x = TApplicationException()
1803 iprot.readMessageEnd()
1807 iprot.readMessageEnd()
1808 if result.success
is not None:
1809 return result.success
1810 if result.e
is not None:
1812 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_heap_profile failed: unknown result")
1825 self._oprot.writeMessageBegin(
'get_memory', TMessageType.CALL, self.
_seqid)
1827 args.session = session
1828 args.memory_level = memory_level
1830 self._oprot.writeMessageEnd()
1831 self._oprot.trans.flush()
1835 (fname, mtype, rseqid) = iprot.readMessageBegin()
1836 if mtype == TMessageType.EXCEPTION:
1837 x = TApplicationException()
1839 iprot.readMessageEnd()
1843 iprot.readMessageEnd()
1844 if result.success
is not None:
1845 return result.success
1846 if result.e
is not None:
1848 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_memory failed: unknown result")
1860 self._oprot.writeMessageBegin(
'clear_cpu_memory', TMessageType.CALL, self.
_seqid)
1862 args.session = session
1864 self._oprot.writeMessageEnd()
1865 self._oprot.trans.flush()
1869 (fname, mtype, rseqid) = iprot.readMessageBegin()
1870 if mtype == TMessageType.EXCEPTION:
1871 x = TApplicationException()
1873 iprot.readMessageEnd()
1877 iprot.readMessageEnd()
1878 if result.e
is not None:
1892 self._oprot.writeMessageBegin(
'clear_gpu_memory', TMessageType.CALL, self.
_seqid)
1894 args.session = session
1896 self._oprot.writeMessageEnd()
1897 self._oprot.trans.flush()
1901 (fname, mtype, rseqid) = iprot.readMessageBegin()
1902 if mtype == TMessageType.EXCEPTION:
1903 x = TApplicationException()
1905 iprot.readMessageEnd()
1909 iprot.readMessageEnd()
1910 if result.e
is not None:
1914 def set_cur_session(self, parent_session, leaf_session, start_time_str, label, for_running_query_kernel):
1921 - for_running_query_kernel
1924 self.
send_set_cur_session(parent_session, leaf_session, start_time_str, label, for_running_query_kernel)
1928 self._oprot.writeMessageBegin(
'set_cur_session', TMessageType.CALL, self.
_seqid)
1930 args.parent_session = parent_session
1931 args.leaf_session = leaf_session
1932 args.start_time_str = start_time_str
1934 args.for_running_query_kernel = for_running_query_kernel
1936 self._oprot.writeMessageEnd()
1937 self._oprot.trans.flush()
1941 (fname, mtype, rseqid) = iprot.readMessageBegin()
1942 if mtype == TMessageType.EXCEPTION:
1943 x = TApplicationException()
1945 iprot.readMessageEnd()
1949 iprot.readMessageEnd()
1950 if result.e
is not None:
1961 - 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
1974 args.for_running_query_kernel = for_running_query_kernel
1976 self._oprot.writeMessageEnd()
1977 self._oprot.trans.flush()
1981 (fname, mtype, rseqid) = iprot.readMessageBegin()
1982 if mtype == TMessageType.EXCEPTION:
1983 x = TApplicationException()
1985 iprot.readMessageEnd()
1989 iprot.readMessageEnd()
1990 if result.e
is not None:
2007 self._oprot.writeMessageBegin(
'set_table_epoch', TMessageType.CALL, self.
_seqid)
2009 args.session = session
2011 args.table_id = table_id
2012 args.new_epoch = new_epoch
2014 self._oprot.writeMessageEnd()
2015 self._oprot.trans.flush()
2019 (fname, mtype, rseqid) = iprot.readMessageBegin()
2020 if mtype == TMessageType.EXCEPTION:
2021 x = TApplicationException()
2023 iprot.readMessageEnd()
2027 iprot.readMessageEnd()
2028 if result.e
is not None:
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
2050 self._oprot.writeMessageEnd()
2051 self._oprot.trans.flush()
2055 (fname, mtype, rseqid) = iprot.readMessageBegin()
2056 if mtype == TMessageType.EXCEPTION:
2057 x = TApplicationException()
2059 iprot.readMessageEnd()
2063 iprot.readMessageEnd()
2064 if result.e
is not None:
2080 self._oprot.writeMessageBegin(
'get_table_epoch', TMessageType.CALL, self.
_seqid)
2082 args.session = session
2084 args.table_id = table_id
2086 self._oprot.writeMessageEnd()
2087 self._oprot.trans.flush()
2091 (fname, mtype, rseqid) = iprot.readMessageBegin()
2092 if mtype == TMessageType.EXCEPTION:
2093 x = TApplicationException()
2095 iprot.readMessageEnd()
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")
2115 self._oprot.writeMessageBegin(
'get_table_epoch_by_name', TMessageType.CALL, self.
_seqid)
2117 args.session = session
2118 args.table_name = table_name
2120 self._oprot.writeMessageEnd()
2121 self._oprot.trans.flush()
2125 (fname, mtype, rseqid) = iprot.readMessageBegin()
2126 if mtype == TMessageType.EXCEPTION:
2127 x = TApplicationException()
2129 iprot.readMessageEnd()
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")
2150 self._oprot.writeMessageBegin(
'get_table_epochs', TMessageType.CALL, self.
_seqid)
2152 args.session = session
2154 args.table_id = table_id
2156 self._oprot.writeMessageEnd()
2157 self._oprot.trans.flush()
2161 (fname, mtype, rseqid) = iprot.readMessageBegin()
2162 if mtype == TMessageType.EXCEPTION:
2163 x = TApplicationException()
2165 iprot.readMessageEnd()
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")
2186 self._oprot.writeMessageBegin(
'set_table_epochs', TMessageType.CALL, self.
_seqid)
2188 args.session = session
2190 args.table_epochs = table_epochs
2192 self._oprot.writeMessageEnd()
2193 self._oprot.trans.flush()
2197 (fname, mtype, rseqid) = iprot.readMessageBegin()
2198 if mtype == TMessageType.EXCEPTION:
2199 x = TApplicationException()
2201 iprot.readMessageEnd()
2205 iprot.readMessageEnd()
2218 self._oprot.writeMessageBegin(
'get_session_info', TMessageType.CALL, self.
_seqid)
2220 args.session = session
2222 self._oprot.writeMessageEnd()
2223 self._oprot.trans.flush()
2227 (fname, mtype, rseqid) = iprot.readMessageBegin()
2228 if mtype == TMessageType.EXCEPTION:
2229 x = TApplicationException()
2231 iprot.readMessageEnd()
2235 iprot.readMessageEnd()
2236 if result.success
is not None:
2237 return result.success
2238 if result.e
is not None:
2240 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_session_info failed: unknown result")
2252 self._oprot.writeMessageBegin(
'get_queries_info', TMessageType.CALL, self.
_seqid)
2254 args.session = session
2256 self._oprot.writeMessageEnd()
2257 self._oprot.trans.flush()
2261 (fname, mtype, rseqid) = iprot.readMessageBegin()
2262 if mtype == TMessageType.EXCEPTION:
2263 x = TApplicationException()
2265 iprot.readMessageEnd()
2269 iprot.readMessageEnd()
2270 if result.success
is not None:
2271 return result.success
2272 if result.e
is not None:
2274 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_queries_info failed: unknown result")
2287 self._oprot.writeMessageBegin(
'set_leaf_info', TMessageType.CALL, self.
_seqid)
2289 args.session = session
2290 args.leaf_info = leaf_info
2292 self._oprot.writeMessageEnd()
2293 self._oprot.trans.flush()
2297 (fname, mtype, rseqid) = iprot.readMessageBegin()
2298 if mtype == TMessageType.EXCEPTION:
2299 x = TApplicationException()
2301 iprot.readMessageEnd()
2305 iprot.readMessageEnd()
2306 if result.e
is not None:
2310 def sql_execute(self, session, query, column_format, nonce, first_n, at_most_n):
2321 self.
send_sql_execute(session, query, column_format, nonce, first_n, at_most_n)
2325 self._oprot.writeMessageBegin(
'sql_execute', TMessageType.CALL, self.
_seqid)
2327 args.session = session
2329 args.column_format = column_format
2331 args.first_n = first_n
2332 args.at_most_n = at_most_n
2334 self._oprot.writeMessageEnd()
2335 self._oprot.trans.flush()
2339 (fname, mtype, rseqid) = iprot.readMessageBegin()
2340 if mtype == TMessageType.EXCEPTION:
2341 x = TApplicationException()
2343 iprot.readMessageEnd()
2347 iprot.readMessageEnd()
2348 if result.success
is not None:
2349 return result.success
2350 if result.e
is not None:
2352 raise TApplicationException(TApplicationException.MISSING_RESULT,
"sql_execute failed: unknown result")
2354 def sql_execute_df(self, session, query, device_type, device_id, first_n, transport_method):
2365 self.
send_sql_execute_df(session, query, device_type, device_id, first_n, transport_method)
2369 self._oprot.writeMessageBegin(
'sql_execute_df', TMessageType.CALL, self.
_seqid)
2371 args.session = session
2373 args.device_type = device_type
2374 args.device_id = device_id
2375 args.first_n = first_n
2376 args.transport_method = transport_method
2378 self._oprot.writeMessageEnd()
2379 self._oprot.trans.flush()
2383 (fname, mtype, rseqid) = iprot.readMessageBegin()
2384 if mtype == TMessageType.EXCEPTION:
2385 x = TApplicationException()
2387 iprot.readMessageEnd()
2391 iprot.readMessageEnd()
2392 if result.success
is not None:
2393 return result.success
2394 if result.e
is not None:
2396 raise TApplicationException(TApplicationException.MISSING_RESULT,
"sql_execute_df failed: unknown result")
2411 self._oprot.writeMessageBegin(
'sql_execute_gdf', TMessageType.CALL, self.
_seqid)
2413 args.session = session
2415 args.device_id = device_id
2416 args.first_n = first_n
2418 self._oprot.writeMessageEnd()
2419 self._oprot.trans.flush()
2423 (fname, mtype, rseqid) = iprot.readMessageBegin()
2424 if mtype == TMessageType.EXCEPTION:
2425 x = TApplicationException()
2427 iprot.readMessageEnd()
2431 iprot.readMessageEnd()
2432 if result.success
is not None:
2433 return result.success
2434 if result.e
is not None:
2436 raise TApplicationException(TApplicationException.MISSING_RESULT,
"sql_execute_gdf failed: unknown result")
2451 self._oprot.writeMessageBegin(
'deallocate_df', TMessageType.CALL, self.
_seqid)
2453 args.session = session
2455 args.device_type = device_type
2456 args.device_id = device_id
2458 self._oprot.writeMessageEnd()
2459 self._oprot.trans.flush()
2463 (fname, mtype, rseqid) = iprot.readMessageBegin()
2464 if mtype == TMessageType.EXCEPTION:
2465 x = TApplicationException()
2467 iprot.readMessageEnd()
2471 iprot.readMessageEnd()
2472 if result.e
is not None:
2487 self._oprot.writeMessageBegin(
'interrupt', TMessageType.CALL, self.
_seqid)
2489 args.query_session = query_session
2490 args.interrupt_session = interrupt_session
2492 self._oprot.writeMessageEnd()
2493 self._oprot.trans.flush()
2497 (fname, mtype, rseqid) = iprot.readMessageBegin()
2498 if mtype == TMessageType.EXCEPTION:
2499 x = TApplicationException()
2501 iprot.readMessageEnd()
2505 iprot.readMessageEnd()
2506 if result.e
is not None:
2521 self._oprot.writeMessageBegin(
'sql_validate', TMessageType.CALL, self.
_seqid)
2523 args.session = session
2526 self._oprot.writeMessageEnd()
2527 self._oprot.trans.flush()
2531 (fname, mtype, rseqid) = iprot.readMessageBegin()
2532 if mtype == TMessageType.EXCEPTION:
2533 x = TApplicationException()
2535 iprot.readMessageEnd()
2539 iprot.readMessageEnd()
2540 if result.success
is not None:
2541 return result.success
2542 if result.e
is not None:
2544 raise TApplicationException(TApplicationException.MISSING_RESULT,
"sql_validate failed: unknown result")
2558 self._oprot.writeMessageBegin(
'get_completion_hints', TMessageType.CALL, self.
_seqid)
2560 args.session = session
2562 args.cursor = cursor
2564 self._oprot.writeMessageEnd()
2565 self._oprot.trans.flush()
2569 (fname, mtype, rseqid) = iprot.readMessageBegin()
2570 if mtype == TMessageType.EXCEPTION:
2571 x = TApplicationException()
2573 iprot.readMessageEnd()
2577 iprot.readMessageEnd()
2578 if result.success
is not None:
2579 return result.success
2580 if result.e
is not None:
2582 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_completion_hints failed: unknown result")
2595 self._oprot.writeMessageBegin(
'set_execution_mode', TMessageType.CALL, self.
_seqid)
2597 args.session = session
2600 self._oprot.writeMessageEnd()
2601 self._oprot.trans.flush()
2605 (fname, mtype, rseqid) = iprot.readMessageBegin()
2606 if mtype == TMessageType.EXCEPTION:
2607 x = TApplicationException()
2609 iprot.readMessageEnd()
2613 iprot.readMessageEnd()
2614 if result.e
is not None:
2618 def render_vega(self, session, widget_id, vega_json, compression_level, nonce):
2628 self.
send_render_vega(session, widget_id, vega_json, compression_level, nonce)
2632 self._oprot.writeMessageBegin(
'render_vega', TMessageType.CALL, self.
_seqid)
2634 args.session = session
2635 args.widget_id = widget_id
2636 args.vega_json = vega_json
2637 args.compression_level = compression_level
2640 self._oprot.writeMessageEnd()
2641 self._oprot.trans.flush()
2645 (fname, mtype, rseqid) = iprot.readMessageBegin()
2646 if mtype == TMessageType.EXCEPTION:
2647 x = TApplicationException()
2649 iprot.readMessageEnd()
2653 iprot.readMessageEnd()
2654 if result.success
is not None:
2655 return result.success
2656 if result.e
is not None:
2658 raise TApplicationException(TApplicationException.MISSING_RESULT,
"render_vega failed: unknown result")
2676 self._oprot.writeMessageBegin(
'get_result_row_for_pixel', TMessageType.CALL, self.
_seqid)
2678 args.session = session
2679 args.widget_id = widget_id
2681 args.table_col_names = table_col_names
2682 args.column_format = column_format
2683 args.pixelRadius = pixelRadius
2686 self._oprot.writeMessageEnd()
2687 self._oprot.trans.flush()
2691 (fname, mtype, rseqid) = iprot.readMessageBegin()
2692 if mtype == TMessageType.EXCEPTION:
2693 x = TApplicationException()
2695 iprot.readMessageEnd()
2699 iprot.readMessageEnd()
2700 if result.success
is not None:
2701 return result.success
2702 if result.e
is not None:
2704 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_result_row_for_pixel failed: unknown result")
2717 self._oprot.writeMessageBegin(
'create_custom_expression', TMessageType.CALL, self.
_seqid)
2719 args.session = session
2720 args.custom_expression = custom_expression
2722 self._oprot.writeMessageEnd()
2723 self._oprot.trans.flush()
2727 (fname, mtype, rseqid) = iprot.readMessageBegin()
2728 if mtype == TMessageType.EXCEPTION:
2729 x = TApplicationException()
2731 iprot.readMessageEnd()
2735 iprot.readMessageEnd()
2736 if result.success
is not None:
2737 return result.success
2738 if result.e
is not None:
2740 raise TApplicationException(TApplicationException.MISSING_RESULT,
"create_custom_expression failed: unknown result")
2752 self._oprot.writeMessageBegin(
'get_custom_expressions', TMessageType.CALL, self.
_seqid)
2754 args.session = session
2756 self._oprot.writeMessageEnd()
2757 self._oprot.trans.flush()
2761 (fname, mtype, rseqid) = iprot.readMessageBegin()
2762 if mtype == TMessageType.EXCEPTION:
2763 x = TApplicationException()
2765 iprot.readMessageEnd()
2769 iprot.readMessageEnd()
2770 if result.success
is not None:
2771 return result.success
2772 if result.e
is not None:
2774 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_custom_expressions failed: unknown result")
2788 self._oprot.writeMessageBegin(
'update_custom_expression', TMessageType.CALL, self.
_seqid)
2790 args.session = session
2792 args.expression_json = expression_json
2794 self._oprot.writeMessageEnd()
2795 self._oprot.trans.flush()
2799 (fname, mtype, rseqid) = iprot.readMessageBegin()
2800 if mtype == TMessageType.EXCEPTION:
2801 x = TApplicationException()
2803 iprot.readMessageEnd()
2807 iprot.readMessageEnd()
2808 if result.e
is not None:
2816 - custom_expression_ids
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
2830 self._oprot.writeMessageEnd()
2831 self._oprot.trans.flush()
2835 (fname, mtype, rseqid) = iprot.readMessageBegin()
2836 if mtype == TMessageType.EXCEPTION:
2837 x = TApplicationException()
2839 iprot.readMessageEnd()
2843 iprot.readMessageEnd()
2844 if result.e
is not None:
2859 self._oprot.writeMessageBegin(
'get_dashboard', TMessageType.CALL, self.
_seqid)
2861 args.session = session
2862 args.dashboard_id = dashboard_id
2864 self._oprot.writeMessageEnd()
2865 self._oprot.trans.flush()
2869 (fname, mtype, rseqid) = iprot.readMessageBegin()
2870 if mtype == TMessageType.EXCEPTION:
2871 x = TApplicationException()
2873 iprot.readMessageEnd()
2877 iprot.readMessageEnd()
2878 if result.success
is not None:
2879 return result.success
2880 if result.e
is not None:
2882 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_dashboard failed: unknown result")
2894 self._oprot.writeMessageBegin(
'get_dashboards', TMessageType.CALL, self.
_seqid)
2896 args.session = session
2898 self._oprot.writeMessageEnd()
2899 self._oprot.trans.flush()
2903 (fname, mtype, rseqid) = iprot.readMessageBegin()
2904 if mtype == TMessageType.EXCEPTION:
2905 x = TApplicationException()
2907 iprot.readMessageEnd()
2911 iprot.readMessageEnd()
2912 if result.success
is not None:
2913 return result.success
2914 if result.e
is not None:
2916 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_dashboards failed: unknown result")
2918 def create_dashboard(self, session, dashboard_name, dashboard_state, image_hash, dashboard_metadata):
2925 - dashboard_metadata
2928 self.
send_create_dashboard(session, dashboard_name, dashboard_state, image_hash, dashboard_metadata)
2932 self._oprot.writeMessageBegin(
'create_dashboard', TMessageType.CALL, self.
_seqid)
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
2940 self._oprot.writeMessageEnd()
2941 self._oprot.trans.flush()
2945 (fname, mtype, rseqid) = iprot.readMessageBegin()
2946 if mtype == TMessageType.EXCEPTION:
2947 x = TApplicationException()
2949 iprot.readMessageEnd()
2953 iprot.readMessageEnd()
2954 if result.success
is not None:
2955 return result.success
2956 if result.e
is not None:
2958 raise TApplicationException(TApplicationException.MISSING_RESULT,
"create_dashboard failed: unknown result")
2960 def replace_dashboard(self, session, dashboard_id, dashboard_name, dashboard_owner, dashboard_state, image_hash, dashboard_metadata):
2969 - dashboard_metadata
2972 self.
send_replace_dashboard(session, dashboard_id, dashboard_name, dashboard_owner, dashboard_state, image_hash, dashboard_metadata)
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)
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
2986 self._oprot.writeMessageEnd()
2987 self._oprot.trans.flush()
2991 (fname, mtype, rseqid) = iprot.readMessageBegin()
2992 if mtype == TMessageType.EXCEPTION:
2993 x = TApplicationException()
2995 iprot.readMessageEnd()
2999 iprot.readMessageEnd()
3000 if result.e
is not None:
3015 self._oprot.writeMessageBegin(
'delete_dashboard', TMessageType.CALL, self.
_seqid)
3017 args.session = session
3018 args.dashboard_id = dashboard_id
3020 self._oprot.writeMessageEnd()
3021 self._oprot.trans.flush()
3025 (fname, mtype, rseqid) = iprot.readMessageBegin()
3026 if mtype == TMessageType.EXCEPTION:
3027 x = TApplicationException()
3029 iprot.readMessageEnd()
3033 iprot.readMessageEnd()
3034 if result.e
is not None:
3051 self._oprot.writeMessageBegin(
'share_dashboards', TMessageType.CALL, self.
_seqid)
3053 args.session = session
3054 args.dashboard_ids = dashboard_ids
3055 args.groups = groups
3056 args.permissions = permissions
3058 self._oprot.writeMessageEnd()
3059 self._oprot.trans.flush()
3063 (fname, mtype, rseqid) = iprot.readMessageBegin()
3064 if mtype == TMessageType.EXCEPTION:
3065 x = TApplicationException()
3067 iprot.readMessageEnd()
3071 iprot.readMessageEnd()
3072 if result.e
is not None:
3087 self._oprot.writeMessageBegin(
'delete_dashboards', TMessageType.CALL, self.
_seqid)
3089 args.session = session
3090 args.dashboard_ids = dashboard_ids
3092 self._oprot.writeMessageEnd()
3093 self._oprot.trans.flush()
3097 (fname, mtype, rseqid) = iprot.readMessageBegin()
3098 if mtype == TMessageType.EXCEPTION:
3099 x = TApplicationException()
3101 iprot.readMessageEnd()
3105 iprot.readMessageEnd()
3106 if result.e
is not None:
3110 def share_dashboard(self, session, dashboard_id, groups, objects, permissions, grant_role):
3125 self._oprot.writeMessageBegin(
'share_dashboard', TMessageType.CALL, self.
_seqid)
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
3134 self._oprot.writeMessageEnd()
3135 self._oprot.trans.flush()
3139 (fname, mtype, rseqid) = iprot.readMessageBegin()
3140 if mtype == TMessageType.EXCEPTION:
3141 x = TApplicationException()
3143 iprot.readMessageEnd()
3147 iprot.readMessageEnd()
3148 if result.e
is not None:
3166 self._oprot.writeMessageBegin(
'unshare_dashboard', TMessageType.CALL, self.
_seqid)
3168 args.session = session
3169 args.dashboard_id = dashboard_id
3170 args.groups = groups
3171 args.objects = objects
3172 args.permissions = permissions
3174 self._oprot.writeMessageEnd()
3175 self._oprot.trans.flush()
3179 (fname, mtype, rseqid) = iprot.readMessageBegin()
3180 if mtype == TMessageType.EXCEPTION:
3181 x = TApplicationException()
3183 iprot.readMessageEnd()
3187 iprot.readMessageEnd()
3188 if result.e
is not None:
3205 self._oprot.writeMessageBegin(
'unshare_dashboards', TMessageType.CALL, self.
_seqid)
3207 args.session = session
3208 args.dashboard_ids = dashboard_ids
3209 args.groups = groups
3210 args.permissions = permissions
3212 self._oprot.writeMessageEnd()
3213 self._oprot.trans.flush()
3217 (fname, mtype, rseqid) = iprot.readMessageBegin()
3218 if mtype == TMessageType.EXCEPTION:
3219 x = TApplicationException()
3221 iprot.readMessageEnd()
3225 iprot.readMessageEnd()
3226 if result.e
is not None:
3241 self._oprot.writeMessageBegin(
'get_dashboard_grantees', TMessageType.CALL, self.
_seqid)
3243 args.session = session
3244 args.dashboard_id = dashboard_id
3246 self._oprot.writeMessageEnd()
3247 self._oprot.trans.flush()
3251 (fname, mtype, rseqid) = iprot.readMessageBegin()
3252 if mtype == TMessageType.EXCEPTION:
3253 x = TApplicationException()
3255 iprot.readMessageEnd()
3259 iprot.readMessageEnd()
3260 if result.success
is not None:
3261 return result.success
3262 if result.e
is not None:
3264 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_dashboard_grantees failed: unknown result")
3277 self._oprot.writeMessageBegin(
'get_link_view', TMessageType.CALL, self.
_seqid)
3279 args.session = session
3282 self._oprot.writeMessageEnd()
3283 self._oprot.trans.flush()
3287 (fname, mtype, rseqid) = iprot.readMessageBegin()
3288 if mtype == TMessageType.EXCEPTION:
3289 x = TApplicationException()
3291 iprot.readMessageEnd()
3295 iprot.readMessageEnd()
3296 if result.success
is not None:
3297 return result.success
3298 if result.e
is not None:
3300 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_link_view failed: unknown result")
3314 self._oprot.writeMessageBegin(
'create_link', TMessageType.CALL, self.
_seqid)
3316 args.session = session
3317 args.view_state = view_state
3318 args.view_metadata = view_metadata
3320 self._oprot.writeMessageEnd()
3321 self._oprot.trans.flush()
3325 (fname, mtype, rseqid) = iprot.readMessageBegin()
3326 if mtype == TMessageType.EXCEPTION:
3327 x = TApplicationException()
3329 iprot.readMessageEnd()
3333 iprot.readMessageEnd()
3334 if result.success
is not None:
3335 return result.success
3336 if result.e
is not None:
3338 raise TApplicationException(TApplicationException.MISSING_RESULT,
"create_link failed: unknown result")
3353 self._oprot.writeMessageBegin(
'load_table_binary', TMessageType.CALL, self.
_seqid)
3355 args.session = session
3356 args.table_name = table_name
3358 args.column_names = column_names
3360 self._oprot.writeMessageEnd()
3361 self._oprot.trans.flush()
3365 (fname, mtype, rseqid) = iprot.readMessageBegin()
3366 if mtype == TMessageType.EXCEPTION:
3367 x = TApplicationException()
3369 iprot.readMessageEnd()
3373 iprot.readMessageEnd()
3374 if result.e
is not None:
3391 self._oprot.writeMessageBegin(
'load_table_binary_columnar', TMessageType.CALL, self.
_seqid)
3393 args.session = session
3394 args.table_name = table_name
3396 args.column_names = column_names
3398 self._oprot.writeMessageEnd()
3399 self._oprot.trans.flush()
3403 (fname, mtype, rseqid) = iprot.readMessageBegin()
3404 if mtype == TMessageType.EXCEPTION:
3405 x = TApplicationException()
3407 iprot.readMessageEnd()
3411 iprot.readMessageEnd()
3412 if result.e
is not None:
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
3436 self._oprot.writeMessageEnd()
3437 self._oprot.trans.flush()
3441 (fname, mtype, rseqid) = iprot.readMessageBegin()
3442 if mtype == TMessageType.EXCEPTION:
3443 x = TApplicationException()
3445 iprot.readMessageEnd()
3449 iprot.readMessageEnd()
3450 if result.e
is not None:
3467 self._oprot.writeMessageBegin(
'load_table', TMessageType.CALL, self.
_seqid)
3469 args.session = session
3470 args.table_name = table_name
3472 args.column_names = column_names
3474 self._oprot.writeMessageEnd()
3475 self._oprot.trans.flush()
3479 (fname, mtype, rseqid) = iprot.readMessageBegin()
3480 if mtype == TMessageType.EXCEPTION:
3481 x = TApplicationException()
3483 iprot.readMessageEnd()
3487 iprot.readMessageEnd()
3488 if result.e
is not None:
3504 self._oprot.writeMessageBegin(
'detect_column_types', TMessageType.CALL, self.
_seqid)
3506 args.session = session
3507 args.file_name = file_name
3508 args.copy_params = copy_params
3510 self._oprot.writeMessageEnd()
3511 self._oprot.trans.flush()
3515 (fname, mtype, rseqid) = iprot.readMessageBegin()
3516 if mtype == TMessageType.EXCEPTION:
3517 x = TApplicationException()
3519 iprot.readMessageEnd()
3523 iprot.readMessageEnd()
3524 if result.success
is not None:
3525 return result.success
3526 if result.e
is not None:
3528 raise TApplicationException(TApplicationException.MISSING_RESULT,
"detect_column_types failed: unknown result")
3543 self._oprot.writeMessageBegin(
'create_table', TMessageType.CALL, self.
_seqid)
3545 args.session = session
3546 args.table_name = table_name
3547 args.row_desc = row_desc
3548 args.create_params = create_params
3550 self._oprot.writeMessageEnd()
3551 self._oprot.trans.flush()
3555 (fname, mtype, rseqid) = iprot.readMessageBegin()
3556 if mtype == TMessageType.EXCEPTION:
3557 x = TApplicationException()
3559 iprot.readMessageEnd()
3563 iprot.readMessageEnd()
3564 if result.e
is not None:
3581 self._oprot.writeMessageBegin(
'import_table', TMessageType.CALL, self.
_seqid)
3583 args.session = session
3584 args.table_name = table_name
3585 args.file_name = file_name
3586 args.copy_params = copy_params
3588 self._oprot.writeMessageEnd()
3589 self._oprot.trans.flush()
3593 (fname, mtype, rseqid) = iprot.readMessageBegin()
3594 if mtype == TMessageType.EXCEPTION:
3595 x = TApplicationException()
3597 iprot.readMessageEnd()
3601 iprot.readMessageEnd()
3602 if result.e
is not None:
3606 def 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)
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
3630 self._oprot.writeMessageEnd()
3631 self._oprot.trans.flush()
3635 (fname, mtype, rseqid) = iprot.readMessageBegin()
3636 if mtype == TMessageType.EXCEPTION:
3637 x = TApplicationException()
3639 iprot.readMessageEnd()
3643 iprot.readMessageEnd()
3644 if result.e
is not None:
3659 self._oprot.writeMessageBegin(
'import_table_status', TMessageType.CALL, self.
_seqid)
3661 args.session = session
3662 args.import_id = import_id
3664 self._oprot.writeMessageEnd()
3665 self._oprot.trans.flush()
3669 (fname, mtype, rseqid) = iprot.readMessageBegin()
3670 if mtype == TMessageType.EXCEPTION:
3671 x = TApplicationException()
3673 iprot.readMessageEnd()
3677 iprot.readMessageEnd()
3678 if result.success
is not None:
3679 return result.success
3680 if result.e
is not None:
3682 raise TApplicationException(TApplicationException.MISSING_RESULT,
"import_table_status failed: unknown result")
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
3702 self._oprot.writeMessageEnd()
3703 self._oprot.trans.flush()
3707 (fname, mtype, rseqid) = iprot.readMessageBegin()
3708 if mtype == TMessageType.EXCEPTION:
3709 x = TApplicationException()
3711 iprot.readMessageEnd()
3715 iprot.readMessageEnd()
3716 if result.success
is not None:
3717 return result.success
3718 if result.e
is not None:
3720 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_first_geo_file_in_archive failed: unknown result")
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
3740 self._oprot.writeMessageEnd()
3741 self._oprot.trans.flush()
3745 (fname, mtype, rseqid) = iprot.readMessageBegin()
3746 if mtype == TMessageType.EXCEPTION:
3747 x = TApplicationException()
3749 iprot.readMessageEnd()
3753 iprot.readMessageEnd()
3754 if result.success
is not None:
3755 return result.success
3756 if result.e
is not None:
3758 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_all_files_in_archive failed: unknown result")
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
3778 self._oprot.writeMessageEnd()
3779 self._oprot.trans.flush()
3783 (fname, mtype, rseqid) = iprot.readMessageBegin()
3784 if mtype == TMessageType.EXCEPTION:
3785 x = TApplicationException()
3787 iprot.readMessageEnd()
3791 iprot.readMessageEnd()
3792 if result.success
is not None:
3793 return result.success
3794 if result.e
is not None:
3796 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_layers_in_geo_file failed: unknown result")
3809 self._oprot.writeMessageBegin(
'query_get_outer_fragment_count', TMessageType.CALL, self.
_seqid)
3811 args.session = session
3814 self._oprot.writeMessageEnd()
3815 self._oprot.trans.flush()
3819 (fname, mtype, rseqid) = iprot.readMessageBegin()
3820 if mtype == TMessageType.EXCEPTION:
3821 x = TApplicationException()
3823 iprot.readMessageEnd()
3827 iprot.readMessageEnd()
3828 if result.success
is not None:
3829 return result.success
3830 if result.e
is not None:
3832 raise TApplicationException(TApplicationException.MISSING_RESULT,
"query_get_outer_fragment_count failed: unknown result")
3845 self._oprot.writeMessageBegin(
'check_table_consistency', TMessageType.CALL, self.
_seqid)
3847 args.session = session
3848 args.table_id = table_id
3850 self._oprot.writeMessageEnd()
3851 self._oprot.trans.flush()
3855 (fname, mtype, rseqid) = iprot.readMessageBegin()
3856 if mtype == TMessageType.EXCEPTION:
3857 x = TApplicationException()
3859 iprot.readMessageEnd()
3863 iprot.readMessageEnd()
3864 if result.success
is not None:
3865 return result.success
3866 if result.e
is not None:
3868 raise TApplicationException(TApplicationException.MISSING_RESULT,
"check_table_consistency failed: unknown result")
3870 def start_query(self, leaf_session, parent_session, query_ra, start_time_str, just_explain, outer_fragment_indices):
3878 - outer_fragment_indices
3881 self.
send_start_query(leaf_session, parent_session, query_ra, start_time_str, just_explain, outer_fragment_indices)
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)
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
3894 self._oprot.writeMessageEnd()
3895 self._oprot.trans.flush()
3899 (fname, mtype, rseqid) = iprot.readMessageBegin()
3900 if mtype == TMessageType.EXCEPTION:
3901 x = TApplicationException()
3903 iprot.readMessageEnd()
3907 iprot.readMessageEnd()
3908 if result.success
is not None:
3909 return result.success
3910 if result.e
is not None:
3912 raise TApplicationException(TApplicationException.MISSING_RESULT,
"start_query failed: unknown result")
3926 self._oprot.writeMessageBegin(
'execute_query_step', TMessageType.CALL, self.
_seqid)
3928 args.pending_query = pending_query
3929 args.subquery_id = subquery_id
3930 args.start_time_str = start_time_str
3932 self._oprot.writeMessageEnd()
3933 self._oprot.trans.flush()
3937 (fname, mtype, rseqid) = iprot.readMessageBegin()
3938 if mtype == TMessageType.EXCEPTION:
3939 x = TApplicationException()
3941 iprot.readMessageEnd()
3945 iprot.readMessageEnd()
3946 if result.success
is not None:
3947 return result.success
3948 if result.e
is not None:
3950 raise TApplicationException(TApplicationException.MISSING_RESULT,
"execute_query_step failed: unknown result")
3959 - 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
3974 self._oprot.writeMessageEnd()
3975 self._oprot.trans.flush()
3979 (fname, mtype, rseqid) = iprot.readMessageBegin()
3980 if mtype == TMessageType.EXCEPTION:
3981 x = TApplicationException()
3983 iprot.readMessageEnd()
3987 iprot.readMessageEnd()
3988 if result.e
is not None:
4005 self._oprot.writeMessageBegin(
'start_render_query', TMessageType.CALL, self.
_seqid)
4007 args.session = session
4008 args.widget_id = widget_id
4009 args.node_idx = node_idx
4010 args.vega_json = vega_json
4012 self._oprot.writeMessageEnd()
4013 self._oprot.trans.flush()
4017 (fname, mtype, rseqid) = iprot.readMessageBegin()
4018 if mtype == TMessageType.EXCEPTION:
4019 x = TApplicationException()
4021 iprot.readMessageEnd()
4025 iprot.readMessageEnd()
4026 if result.success
is not None:
4027 return result.success
4028 if result.e
is not None:
4030 raise TApplicationException(TApplicationException.MISSING_RESULT,
"start_render_query failed: unknown result")
4043 self._oprot.writeMessageBegin(
'execute_next_render_step', TMessageType.CALL, self.
_seqid)
4045 args.pending_render = pending_render
4046 args.merged_data = merged_data
4048 self._oprot.writeMessageEnd()
4049 self._oprot.trans.flush()
4053 (fname, mtype, rseqid) = iprot.readMessageBegin()
4054 if mtype == TMessageType.EXCEPTION:
4055 x = TApplicationException()
4057 iprot.readMessageEnd()
4061 iprot.readMessageEnd()
4062 if result.success
is not None:
4063 return result.success
4064 if result.e
is not None:
4066 raise TApplicationException(TApplicationException.MISSING_RESULT,
"execute_next_render_step failed: unknown result")
4079 self._oprot.writeMessageBegin(
'insert_data', TMessageType.CALL, self.
_seqid)
4081 args.session = session
4082 args.insert_data = insert_data
4084 self._oprot.writeMessageEnd()
4085 self._oprot.trans.flush()
4089 (fname, mtype, rseqid) = iprot.readMessageBegin()
4090 if mtype == TMessageType.EXCEPTION:
4091 x = TApplicationException()
4093 iprot.readMessageEnd()
4097 iprot.readMessageEnd()
4098 if result.e
is not None:
4113 self._oprot.writeMessageBegin(
'insert_chunks', TMessageType.CALL, self.
_seqid)
4115 args.session = session
4116 args.insert_chunks = insert_chunks
4118 self._oprot.writeMessageEnd()
4119 self._oprot.trans.flush()
4123 (fname, mtype, rseqid) = iprot.readMessageBegin()
4124 if mtype == TMessageType.EXCEPTION:
4125 x = TApplicationException()
4127 iprot.readMessageEnd()
4131 iprot.readMessageEnd()
4132 if result.e
is not None:
4147 self._oprot.writeMessageBegin(
'checkpoint', TMessageType.CALL, self.
_seqid)
4149 args.session = session
4150 args.table_id = table_id
4152 self._oprot.writeMessageEnd()
4153 self._oprot.trans.flush()
4157 (fname, mtype, rseqid) = iprot.readMessageBegin()
4158 if mtype == TMessageType.EXCEPTION:
4159 x = TApplicationException()
4161 iprot.readMessageEnd()
4165 iprot.readMessageEnd()
4166 if result.e
is not None:
4180 self._oprot.writeMessageBegin(
'get_roles', TMessageType.CALL, self.
_seqid)
4182 args.session = session
4184 self._oprot.writeMessageEnd()
4185 self._oprot.trans.flush()
4189 (fname, mtype, rseqid) = iprot.readMessageBegin()
4190 if mtype == TMessageType.EXCEPTION:
4191 x = TApplicationException()
4193 iprot.readMessageEnd()
4197 iprot.readMessageEnd()
4198 if result.success
is not None:
4199 return result.success
4200 if result.e
is not None:
4202 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_roles failed: unknown result")
4215 self._oprot.writeMessageBegin(
'get_db_objects_for_grantee', TMessageType.CALL, self.
_seqid)
4217 args.session = session
4218 args.roleName = roleName
4220 self._oprot.writeMessageEnd()
4221 self._oprot.trans.flush()
4225 (fname, mtype, rseqid) = iprot.readMessageBegin()
4226 if mtype == TMessageType.EXCEPTION:
4227 x = TApplicationException()
4229 iprot.readMessageEnd()
4233 iprot.readMessageEnd()
4234 if result.success
is not None:
4235 return result.success
4236 if result.e
is not None:
4238 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_db_objects_for_grantee failed: unknown result")
4252 self._oprot.writeMessageBegin(
'get_db_object_privs', TMessageType.CALL, self.
_seqid)
4254 args.session = session
4255 args.objectName = objectName
4258 self._oprot.writeMessageEnd()
4259 self._oprot.trans.flush()
4263 (fname, mtype, rseqid) = iprot.readMessageBegin()
4264 if mtype == TMessageType.EXCEPTION:
4265 x = TApplicationException()
4267 iprot.readMessageEnd()
4271 iprot.readMessageEnd()
4272 if result.success
is not None:
4273 return result.success
4274 if result.e
is not None:
4276 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_db_object_privs failed: unknown result")
4289 self._oprot.writeMessageBegin(
'get_all_roles_for_user', TMessageType.CALL, self.
_seqid)
4291 args.session = session
4292 args.userName = userName
4294 self._oprot.writeMessageEnd()
4295 self._oprot.trans.flush()
4299 (fname, mtype, rseqid) = iprot.readMessageBegin()
4300 if mtype == TMessageType.EXCEPTION:
4301 x = TApplicationException()
4303 iprot.readMessageEnd()
4307 iprot.readMessageEnd()
4308 if result.success
is not None:
4309 return result.success
4310 if result.e
is not None:
4312 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_all_roles_for_user failed: unknown result")
4325 self._oprot.writeMessageBegin(
'get_all_effective_roles_for_user', TMessageType.CALL, self.
_seqid)
4327 args.session = session
4328 args.userName = userName
4330 self._oprot.writeMessageEnd()
4331 self._oprot.trans.flush()
4335 (fname, mtype, rseqid) = iprot.readMessageBegin()
4336 if mtype == TMessageType.EXCEPTION:
4337 x = TApplicationException()
4339 iprot.readMessageEnd()
4343 iprot.readMessageEnd()
4344 if result.success
is not None:
4345 return result.success
4346 if result.e
is not None:
4348 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_all_effective_roles_for_user failed: unknown result")
4362 self._oprot.writeMessageBegin(
'has_role', TMessageType.CALL, self.
_seqid)
4364 args.session = session
4365 args.granteeName = granteeName
4366 args.roleName = roleName
4368 self._oprot.writeMessageEnd()
4369 self._oprot.trans.flush()
4373 (fname, mtype, rseqid) = iprot.readMessageBegin()
4374 if mtype == TMessageType.EXCEPTION:
4375 x = TApplicationException()
4377 iprot.readMessageEnd()
4381 iprot.readMessageEnd()
4382 if result.success
is not None:
4383 return result.success
4384 if result.e
is not None:
4386 raise TApplicationException(TApplicationException.MISSING_RESULT,
"has_role failed: unknown result")
4402 self._oprot.writeMessageBegin(
'has_object_privilege', TMessageType.CALL, self.
_seqid)
4404 args.session = session
4405 args.granteeName = granteeName
4406 args.ObjectName = ObjectName
4407 args.objectType = objectType
4408 args.permissions = permissions
4410 self._oprot.writeMessageEnd()
4411 self._oprot.trans.flush()
4415 (fname, mtype, rseqid) = iprot.readMessageBegin()
4416 if mtype == TMessageType.EXCEPTION:
4417 x = TApplicationException()
4419 iprot.readMessageEnd()
4423 iprot.readMessageEnd()
4424 if result.success
is not None:
4425 return result.success
4426 if result.e
is not None:
4428 raise TApplicationException(TApplicationException.MISSING_RESULT,
"has_object_privilege failed: unknown result")
4442 self._oprot.writeMessageBegin(
'set_license_key', TMessageType.CALL, self.
_seqid)
4444 args.session = session
4448 self._oprot.writeMessageEnd()
4449 self._oprot.trans.flush()
4453 (fname, mtype, rseqid) = iprot.readMessageBegin()
4454 if mtype == TMessageType.EXCEPTION:
4455 x = TApplicationException()
4457 iprot.readMessageEnd()
4461 iprot.readMessageEnd()
4462 if result.success
is not None:
4463 return result.success
4464 if result.e
is not None:
4466 raise TApplicationException(TApplicationException.MISSING_RESULT,
"set_license_key failed: unknown result")
4479 self._oprot.writeMessageBegin(
'get_license_claims', TMessageType.CALL, self.
_seqid)
4481 args.session = session
4484 self._oprot.writeMessageEnd()
4485 self._oprot.trans.flush()
4489 (fname, mtype, rseqid) = iprot.readMessageBegin()
4490 if mtype == TMessageType.EXCEPTION:
4491 x = TApplicationException()
4493 iprot.readMessageEnd()
4497 iprot.readMessageEnd()
4498 if result.success
is not None:
4499 return result.success
4500 if result.e
is not None:
4502 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_license_claims failed: unknown result")
4514 self._oprot.writeMessageBegin(
'get_device_parameters', TMessageType.CALL, self.
_seqid)
4516 args.session = session
4518 self._oprot.writeMessageEnd()
4519 self._oprot.trans.flush()
4523 (fname, mtype, rseqid) = iprot.readMessageBegin()
4524 if mtype == TMessageType.EXCEPTION:
4525 x = TApplicationException()
4527 iprot.readMessageEnd()
4531 iprot.readMessageEnd()
4532 if result.success
is not None:
4533 return result.success
4534 if result.e
is not None:
4536 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_device_parameters failed: unknown result")
4551 self._oprot.writeMessageBegin(
'register_runtime_extension_functions', TMessageType.CALL, self.
_seqid)
4553 args.session = session
4556 args.device_ir_map = device_ir_map
4558 self._oprot.writeMessageEnd()
4559 self._oprot.trans.flush()
4563 (fname, mtype, rseqid) = iprot.readMessageBegin()
4564 if mtype == TMessageType.EXCEPTION:
4565 x = TApplicationException()
4567 iprot.readMessageEnd()
4571 iprot.readMessageEnd()
4572 if result.e
is not None:
4586 self._oprot.writeMessageBegin(
'get_table_function_names', TMessageType.CALL, self.
_seqid)
4588 args.session = session
4590 self._oprot.writeMessageEnd()
4591 self._oprot.trans.flush()
4595 (fname, mtype, rseqid) = iprot.readMessageBegin()
4596 if mtype == TMessageType.EXCEPTION:
4597 x = TApplicationException()
4599 iprot.readMessageEnd()
4603 iprot.readMessageEnd()
4604 if result.success
is not None:
4605 return result.success
4606 if result.e
is not None:
4608 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_table_function_names failed: unknown result")
4620 self._oprot.writeMessageBegin(
'get_runtime_table_function_names', TMessageType.CALL, self.
_seqid)
4622 args.session = session
4624 self._oprot.writeMessageEnd()
4625 self._oprot.trans.flush()
4629 (fname, mtype, rseqid) = iprot.readMessageBegin()
4630 if mtype == TMessageType.EXCEPTION:
4631 x = TApplicationException()
4633 iprot.readMessageEnd()
4637 iprot.readMessageEnd()
4638 if result.success
is not None:
4639 return result.success
4640 if result.e
is not None:
4642 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_runtime_table_function_names failed: unknown result")
4655 self._oprot.writeMessageBegin(
'get_table_function_details', TMessageType.CALL, self.
_seqid)
4657 args.session = session
4658 args.udtf_names = udtf_names
4660 self._oprot.writeMessageEnd()
4661 self._oprot.trans.flush()
4665 (fname, mtype, rseqid) = iprot.readMessageBegin()
4666 if mtype == TMessageType.EXCEPTION:
4667 x = TApplicationException()
4669 iprot.readMessageEnd()
4673 iprot.readMessageEnd()
4674 if result.success
is not None:
4675 return result.success
4676 if result.e
is not None:
4678 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_table_function_details failed: unknown result")
4690 self._oprot.writeMessageBegin(
'get_function_names', TMessageType.CALL, self.
_seqid)
4692 args.session = session
4694 self._oprot.writeMessageEnd()
4695 self._oprot.trans.flush()
4699 (fname, mtype, rseqid) = iprot.readMessageBegin()
4700 if mtype == TMessageType.EXCEPTION:
4701 x = TApplicationException()
4703 iprot.readMessageEnd()
4707 iprot.readMessageEnd()
4708 if result.success
is not None:
4709 return result.success
4710 if result.e
is not None:
4712 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_function_names failed: unknown result")
4724 self._oprot.writeMessageBegin(
'get_runtime_function_names', TMessageType.CALL, self.
_seqid)
4726 args.session = session
4728 self._oprot.writeMessageEnd()
4729 self._oprot.trans.flush()
4733 (fname, mtype, rseqid) = iprot.readMessageBegin()
4734 if mtype == TMessageType.EXCEPTION:
4735 x = TApplicationException()
4737 iprot.readMessageEnd()
4741 iprot.readMessageEnd()
4742 if result.success
is not None:
4743 return result.success
4744 if result.e
is not None:
4746 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_runtime_function_names failed: unknown result")
4759 self._oprot.writeMessageBegin(
'get_function_details', TMessageType.CALL, self.
_seqid)
4761 args.session = session
4762 args.udf_names = udf_names
4764 self._oprot.writeMessageEnd()
4765 self._oprot.trans.flush()
4769 (fname, mtype, rseqid) = iprot.readMessageBegin()
4770 if mtype == TMessageType.EXCEPTION:
4771 x = TApplicationException()
4773 iprot.readMessageEnd()
4777 iprot.readMessageEnd()
4778 if result.success
is not None:
4779 return result.success
4780 if result.e
is not None:
4782 raise TApplicationException(TApplicationException.MISSING_RESULT,
"get_function_details failed: unknown result")
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
4898 (name, type, seqid) = iprot.readMessageBegin()
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)
4907 oprot.writeMessageEnd()
4917 iprot.readMessageEnd()
4920 result.success = self._handler.connect(args.user, args.passwd, args.dbname)
4921 msg_type = TMessageType.REPLY
4922 except TTransport.TTransportException:
4924 except TDBException
as e:
4925 msg_type = TMessageType.REPLY
4927 except TApplicationException
as ex:
4928 logging.exception(
'TApplication exception in handler')
4929 msg_type = TMessageType.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)
4937 oprot.writeMessageEnd()
4943 iprot.readMessageEnd()
4946 result.success = self._handler.krb5_connect(args.inputToken, args.dbname)
4947 msg_type = TMessageType.REPLY
4948 except TTransport.TTransportException:
4950 except TDBException
as e:
4951 msg_type = TMessageType.REPLY
4953 except TApplicationException
as ex:
4954 logging.exception(
'TApplication exception in handler')
4955 msg_type = TMessageType.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)
4963 oprot.writeMessageEnd()
4969 iprot.readMessageEnd()
4972 self._handler.disconnect(args.session)
4973 msg_type = TMessageType.REPLY
4974 except TTransport.TTransportException:
4976 except TDBException
as e:
4977 msg_type = TMessageType.REPLY
4979 except TApplicationException
as ex:
4980 logging.exception(
'TApplication exception in handler')
4981 msg_type = TMessageType.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)
4989 oprot.writeMessageEnd()
4995 iprot.readMessageEnd()
4998 self._handler.switch_database(args.session, args.dbname)
4999 msg_type = TMessageType.REPLY
5000 except TTransport.TTransportException:
5002 except TDBException
as e:
5003 msg_type = TMessageType.REPLY
5005 except TApplicationException
as ex:
5006 logging.exception(
'TApplication exception in handler')
5007 msg_type = TMessageType.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)
5015 oprot.writeMessageEnd()
5021 iprot.readMessageEnd()
5024 result.success = self._handler.clone_session(args.session)
5025 msg_type = TMessageType.REPLY
5026 except TTransport.TTransportException:
5028 except TDBException
as e:
5029 msg_type = TMessageType.REPLY
5031 except TApplicationException
as ex:
5032 logging.exception(
'TApplication exception in handler')
5033 msg_type = TMessageType.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)
5041 oprot.writeMessageEnd()
5047 iprot.readMessageEnd()
5050 result.success = self._handler.get_server_status(args.session)
5051 msg_type = TMessageType.REPLY
5052 except TTransport.TTransportException:
5054 except TDBException
as e:
5055 msg_type = TMessageType.REPLY
5057 except TApplicationException
as ex:
5058 logging.exception(
'TApplication exception in handler')
5059 msg_type = TMessageType.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)
5067 oprot.writeMessageEnd()
5073 iprot.readMessageEnd()
5076 result.success = self._handler.get_status(args.session)
5077 msg_type = TMessageType.REPLY
5078 except TTransport.TTransportException:
5080 except TDBException
as e:
5081 msg_type = TMessageType.REPLY
5083 except TApplicationException
as ex:
5084 logging.exception(
'TApplication exception in handler')
5085 msg_type = TMessageType.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)
5093 oprot.writeMessageEnd()
5099 iprot.readMessageEnd()
5102 result.success = self._handler.get_hardware_info(args.session)
5103 msg_type = TMessageType.REPLY
5104 except TTransport.TTransportException:
5106 except TDBException
as e:
5107 msg_type = TMessageType.REPLY
5109 except TApplicationException
as ex:
5110 logging.exception(
'TApplication exception in handler')
5111 msg_type = TMessageType.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)
5119 oprot.writeMessageEnd()
5125 iprot.readMessageEnd()
5128 result.success = self._handler.get_tables(args.session)
5129 msg_type = TMessageType.REPLY
5130 except TTransport.TTransportException:
5132 except TDBException
as e:
5133 msg_type = TMessageType.REPLY
5135 except TApplicationException
as ex:
5136 logging.exception(
'TApplication exception in handler')
5137 msg_type = TMessageType.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)
5145 oprot.writeMessageEnd()
5151 iprot.readMessageEnd()
5154 result.success = self._handler.get_tables_for_database(args.session, args.database_name)
5155 msg_type = TMessageType.REPLY
5156 except TTransport.TTransportException:
5158 except TDBException
as e:
5159 msg_type = TMessageType.REPLY
5161 except TApplicationException
as ex:
5162 logging.exception(
'TApplication exception in handler')
5163 msg_type = TMessageType.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)
5171 oprot.writeMessageEnd()
5177 iprot.readMessageEnd()
5180 result.success = self._handler.get_physical_tables(args.session)
5181 msg_type = TMessageType.REPLY
5182 except TTransport.TTransportException:
5184 except TDBException
as e:
5185 msg_type = TMessageType.REPLY
5187 except TApplicationException
as ex:
5188 logging.exception(
'TApplication exception in handler')
5189 msg_type = TMessageType.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)
5197 oprot.writeMessageEnd()
5203 iprot.readMessageEnd()
5206 result.success = self._handler.get_views(args.session)
5207 msg_type = TMessageType.REPLY
5208 except TTransport.TTransportException:
5210 except TDBException
as e:
5211 msg_type = TMessageType.REPLY
5213 except TApplicationException
as ex:
5214 logging.exception(
'TApplication exception in handler')
5215 msg_type = TMessageType.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)
5223 oprot.writeMessageEnd()
5229 iprot.readMessageEnd()
5232 result.success = self._handler.get_tables_meta(args.session)
5233 msg_type = TMessageType.REPLY
5234 except TTransport.TTransportException:
5236 except TDBException
as e:
5237 msg_type = TMessageType.REPLY
5239 except TApplicationException
as ex:
5240 logging.exception(
'TApplication exception in handler')
5241 msg_type = TMessageType.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)
5249 oprot.writeMessageEnd()
5255 iprot.readMessageEnd()
5258 result.success = self._handler.get_table_details(args.session, args.table_name)
5259 msg_type = TMessageType.REPLY
5260 except TTransport.TTransportException:
5262 except TDBException
as e:
5263 msg_type = TMessageType.REPLY
5265 except TApplicationException
as ex:
5266 logging.exception(
'TApplication exception in handler')
5267 msg_type = TMessageType.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)
5275 oprot.writeMessageEnd()
5281 iprot.readMessageEnd()
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:
5288 except TDBException
as e:
5289 msg_type = TMessageType.REPLY
5291 except TApplicationException
as ex:
5292 logging.exception(
'TApplication exception in handler')
5293 msg_type = TMessageType.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)
5301 oprot.writeMessageEnd()
5307 iprot.readMessageEnd()
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:
5314 except TDBException
as e:
5315 msg_type = TMessageType.REPLY
5317 except TApplicationException
as ex:
5318 logging.exception(
'TApplication exception in handler')
5319 msg_type = TMessageType.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)
5327 oprot.writeMessageEnd()
5333 iprot.readMessageEnd()
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:
5340 except TDBException
as e:
5341 msg_type = TMessageType.REPLY
5343 except TApplicationException
as ex:
5344 logging.exception(
'TApplication exception in handler')
5345 msg_type = TMessageType.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)
5353 oprot.writeMessageEnd()
5359 iprot.readMessageEnd()
5362 result.success = self._handler.get_users(args.session)
5363 msg_type = TMessageType.REPLY
5364 except TTransport.TTransportException:
5366 except TDBException
as e:
5367 msg_type = TMessageType.REPLY
5369 except TApplicationException
as ex:
5370 logging.exception(
'TApplication exception in handler')
5371 msg_type = TMessageType.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)
5379 oprot.writeMessageEnd()
5385 iprot.readMessageEnd()
5388 result.success = self._handler.get_databases(args.session)
5389 msg_type = TMessageType.REPLY
5390 except TTransport.TTransportException:
5392 except TDBException
as e:
5393 msg_type = TMessageType.REPLY
5395 except TApplicationException
as ex:
5396 logging.exception(
'TApplication exception in handler')
5397 msg_type = TMessageType.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)
5405 oprot.writeMessageEnd()
5411 iprot.readMessageEnd()
5414 result.success = self._handler.get_version()
5415 msg_type = TMessageType.REPLY
5416 except TTransport.TTransportException:
5418 except TDBException
as e:
5419 msg_type = TMessageType.REPLY
5421 except TApplicationException
as ex:
5422 logging.exception(
'TApplication exception in handler')
5423 msg_type = TMessageType.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)
5431 oprot.writeMessageEnd()
5437 iprot.readMessageEnd()
5440 self._handler.start_heap_profile(args.session)
5441 msg_type = TMessageType.REPLY
5442 except TTransport.TTransportException:
5444 except TDBException
as e:
5445 msg_type = TMessageType.REPLY
5447 except TApplicationException
as ex:
5448 logging.exception(
'TApplication exception in handler')
5449 msg_type = TMessageType.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)
5457 oprot.writeMessageEnd()
5463 iprot.readMessageEnd()
5466 self._handler.stop_heap_profile(args.session)
5467 msg_type = TMessageType.REPLY
5468 except TTransport.TTransportException:
5470 except TDBException
as e:
5471 msg_type = TMessageType.REPLY
5473 except TApplicationException
as ex:
5474 logging.exception(
'TApplication exception in handler')
5475 msg_type = TMessageType.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)
5483 oprot.writeMessageEnd()
5489 iprot.readMessageEnd()
5492 result.success = self._handler.get_heap_profile(args.session)
5493 msg_type = TMessageType.REPLY
5494 except TTransport.TTransportException:
5496 except TDBException
as e:
5497 msg_type = TMessageType.REPLY
5499 except TApplicationException
as ex:
5500 logging.exception(
'TApplication exception in handler')
5501 msg_type = TMessageType.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)
5509 oprot.writeMessageEnd()
5515 iprot.readMessageEnd()
5518 result.success = self._handler.get_memory(args.session, args.memory_level)
5519 msg_type = TMessageType.REPLY
5520 except TTransport.TTransportException:
5522 except TDBException
as e:
5523 msg_type = TMessageType.REPLY
5525 except TApplicationException
as ex:
5526 logging.exception(
'TApplication exception in handler')
5527 msg_type = TMessageType.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)
5535 oprot.writeMessageEnd()
5541 iprot.readMessageEnd()
5544 self._handler.clear_cpu_memory(args.session)
5545 msg_type = TMessageType.REPLY
5546 except TTransport.TTransportException:
5548 except TDBException
as e:
5549 msg_type = TMessageType.REPLY
5551 except TApplicationException
as ex:
5552 logging.exception(
'TApplication exception in handler')
5553 msg_type = TMessageType.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)
5561 oprot.writeMessageEnd()
5567 iprot.readMessageEnd()
5570 self._handler.clear_gpu_memory(args.session)
5571 msg_type = TMessageType.REPLY
5572 except TTransport.TTransportException:
5574 except TDBException
as e:
5575 msg_type = TMessageType.REPLY
5577 except TApplicationException
as ex:
5578 logging.exception(
'TApplication exception in handler')
5579 msg_type = TMessageType.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)
5587 oprot.writeMessageEnd()
5593 iprot.readMessageEnd()
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:
5600 except TDBException
as e:
5601 msg_type = TMessageType.REPLY
5603 except TApplicationException
as ex:
5604 logging.exception(
'TApplication exception in handler')
5605 msg_type = TMessageType.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)
5613 oprot.writeMessageEnd()
5619 iprot.readMessageEnd()
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:
5626 except TDBException
as e:
5627 msg_type = TMessageType.REPLY
5629 except TApplicationException
as ex:
5630 logging.exception(
'TApplication exception in handler')
5631 msg_type = TMessageType.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)
5639 oprot.writeMessageEnd()
5645 iprot.readMessageEnd()
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:
5652 except TDBException
as e:
5653 msg_type = TMessageType.REPLY
5655 except TApplicationException
as ex:
5656 logging.exception(
'TApplication exception in handler')
5657 msg_type = TMessageType.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)
5665 oprot.writeMessageEnd()
5671 iprot.readMessageEnd()
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:
5678 except TDBException
as e:
5679 msg_type = TMessageType.REPLY
5681 except TApplicationException
as ex:
5682 logging.exception(
'TApplication exception in handler')
5683 msg_type = TMessageType.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)
5691 oprot.writeMessageEnd()
5697 iprot.readMessageEnd()
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:
5704 except TApplicationException
as ex:
5705 logging.exception(
'TApplication exception in handler')
5706 msg_type = TMessageType.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)
5714 oprot.writeMessageEnd()
5720 iprot.readMessageEnd()
5723 result.success = self._handler.get_table_epoch_by_name(args.session, args.table_name)
5724 msg_type = TMessageType.REPLY
5725 except TTransport.TTransportException:
5727 except TApplicationException
as ex:
5728 logging.exception(
'TApplication exception in handler')
5729 msg_type = TMessageType.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)
5737 oprot.writeMessageEnd()
5743 iprot.readMessageEnd()
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:
5750 except TApplicationException
as ex:
5751 logging.exception(
'TApplication exception in handler')
5752 msg_type = TMessageType.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)
5760 oprot.writeMessageEnd()
5766 iprot.readMessageEnd()
5769 self._handler.set_table_epochs(args.session, args.db_id, args.table_epochs)
5770 msg_type = TMessageType.REPLY
5771 except TTransport.TTransportException:
5773 except TApplicationException
as ex:
5774 logging.exception(
'TApplication exception in handler')
5775 msg_type = TMessageType.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)
5783 oprot.writeMessageEnd()
5789 iprot.readMessageEnd()
5792 result.success = self._handler.get_session_info(args.session)
5793 msg_type = TMessageType.REPLY
5794 except TTransport.TTransportException:
5796 except TDBException
as e:
5797 msg_type = TMessageType.REPLY
5799 except TApplicationException
as ex:
5800 logging.exception(
'TApplication exception in handler')
5801 msg_type = TMessageType.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)
5809 oprot.writeMessageEnd()
5815 iprot.readMessageEnd()
5818 result.success = self._handler.get_queries_info(args.session)
5819 msg_type = TMessageType.REPLY
5820 except TTransport.TTransportException:
5822 except TDBException
as e:
5823 msg_type = TMessageType.REPLY
5825 except TApplicationException
as ex:
5826 logging.exception(
'TApplication exception in handler')
5827 msg_type = TMessageType.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)
5835 oprot.writeMessageEnd()
5841 iprot.readMessageEnd()
5844 self._handler.set_leaf_info(args.session, args.leaf_info)
5845 msg_type = TMessageType.REPLY
5846 except TTransport.TTransportException:
5848 except TDBException
as e:
5849 msg_type = TMessageType.REPLY
5851 except TApplicationException
as ex:
5852 logging.exception(
'TApplication exception in handler')
5853 msg_type = TMessageType.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)
5861 oprot.writeMessageEnd()
5867 iprot.readMessageEnd()
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:
5874 except TDBException
as e:
5875 msg_type = TMessageType.REPLY
5877 except TApplicationException
as ex:
5878 logging.exception(
'TApplication exception in handler')
5879 msg_type = TMessageType.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)
5887 oprot.writeMessageEnd()
5893 iprot.readMessageEnd()
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:
5900 except TDBException
as e:
5901 msg_type = TMessageType.REPLY
5903 except TApplicationException
as ex:
5904 logging.exception(
'TApplication exception in handler')
5905 msg_type = TMessageType.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)
5913 oprot.writeMessageEnd()
5919 iprot.readMessageEnd()
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:
5926 except TDBException
as e:
5927 msg_type = TMessageType.REPLY
5929 except TApplicationException
as ex:
5930 logging.exception(
'TApplication exception in handler')
5931 msg_type = TMessageType.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)
5939 oprot.writeMessageEnd()
5945 iprot.readMessageEnd()
5948 self._handler.deallocate_df(args.session, args.df, args.device_type, args.device_id)
5949 msg_type = TMessageType.REPLY
5950 except TTransport.TTransportException:
5952 except TDBException
as e:
5953 msg_type = TMessageType.REPLY
5955 except TApplicationException
as ex:
5956 logging.exception(
'TApplication exception in handler')
5957 msg_type = TMessageType.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)
5965 oprot.writeMessageEnd()
5971 iprot.readMessageEnd()
5974 self._handler.interrupt(args.query_session, args.interrupt_session)
5975 msg_type = TMessageType.REPLY
5976 except TTransport.TTransportException:
5978 except TDBException
as e:
5979 msg_type = TMessageType.REPLY
5981 except TApplicationException
as ex:
5982 logging.exception(
'TApplication exception in handler')
5983 msg_type = TMessageType.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)
5991 oprot.writeMessageEnd()
5997 iprot.readMessageEnd()
6000 result.success = self._handler.sql_validate(args.session, args.query)
6001 msg_type = TMessageType.REPLY
6002 except TTransport.TTransportException:
6004 except TDBException
as e:
6005 msg_type = TMessageType.REPLY
6007 except TApplicationException
as ex:
6008 logging.exception(
'TApplication exception in handler')
6009 msg_type = TMessageType.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)
6017 oprot.writeMessageEnd()
6023 iprot.readMessageEnd()
6026 result.success = self._handler.get_completion_hints(args.session, args.sql, args.cursor)
6027 msg_type = TMessageType.REPLY
6028 except TTransport.TTransportException:
6030 except TDBException
as e:
6031 msg_type = TMessageType.REPLY
6033 except TApplicationException
as ex:
6034 logging.exception(
'TApplication exception in handler')
6035 msg_type = TMessageType.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)
6043 oprot.writeMessageEnd()
6049 iprot.readMessageEnd()
6052 self._handler.set_execution_mode(args.session, args.mode)
6053 msg_type = TMessageType.REPLY
6054 except TTransport.TTransportException:
6056 except TDBException
as e:
6057 msg_type = TMessageType.REPLY
6059 except TApplicationException
as ex:
6060 logging.exception(
'TApplication exception in handler')
6061 msg_type = TMessageType.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)
6069 oprot.writeMessageEnd()
6075 iprot.readMessageEnd()
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:
6082 except TDBException
as e:
6083 msg_type = TMessageType.REPLY
6085 except TApplicationException
as ex:
6086 logging.exception(
'TApplication exception in handler')
6087 msg_type = TMessageType.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)
6095 oprot.writeMessageEnd()
6101 iprot.readMessageEnd()
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:
6108 except TDBException
as e:
6109 msg_type = TMessageType.REPLY
6111 except TApplicationException
as ex:
6112 logging.exception(
'TApplication exception in handler')
6113 msg_type = TMessageType.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)
6121 oprot.writeMessageEnd()
6127 iprot.readMessageEnd()
6130 result.success = self._handler.create_custom_expression(args.session, args.custom_expression)
6131 msg_type = TMessageType.REPLY
6132 except TTransport.TTransportException:
6134 except TDBException
as e:
6135 msg_type = TMessageType.REPLY
6137 except TApplicationException
as ex:
6138 logging.exception(
'TApplication exception in handler')
6139 msg_type = TMessageType.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)
6147 oprot.writeMessageEnd()
6153 iprot.readMessageEnd()
6156 result.success = self._handler.get_custom_expressions(args.session)
6157 msg_type = TMessageType.REPLY
6158 except TTransport.TTransportException:
6160 except TDBException
as e:
6161 msg_type = TMessageType.REPLY
6163 except TApplicationException
as ex:
6164 logging.exception(
'TApplication exception in handler')
6165 msg_type = TMessageType.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)
6173 oprot.writeMessageEnd()
6179 iprot.readMessageEnd()
6182 self._handler.update_custom_expression(args.session, args.id, args.expression_json)
6183 msg_type = TMessageType.REPLY
6184 except TTransport.TTransportException:
6186 except TDBException
as e:
6187 msg_type = TMessageType.REPLY
6189 except TApplicationException
as ex:
6190 logging.exception(
'TApplication exception in handler')
6191 msg_type = TMessageType.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)
6199 oprot.writeMessageEnd()
6205 iprot.readMessageEnd()
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:
6212 except TDBException
as e:
6213 msg_type = TMessageType.REPLY
6215 except TApplicationException
as ex:
6216 logging.exception(
'TApplication exception in handler')
6217 msg_type = TMessageType.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)
6225 oprot.writeMessageEnd()
6231 iprot.readMessageEnd()
6234 result.success = self._handler.get_dashboard(args.session, args.dashboard_id)
6235 msg_type = TMessageType.REPLY
6236 except TTransport.TTransportException:
6238 except TDBException
as e:
6239 msg_type = TMessageType.REPLY
6241 except TApplicationException
as ex:
6242 logging.exception(
'TApplication exception in handler')
6243 msg_type = TMessageType.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)
6251 oprot.writeMessageEnd()
6257 iprot.readMessageEnd()
6260 result.success = self._handler.get_dashboards(args.session)
6261 msg_type = TMessageType.REPLY
6262 except TTransport.TTransportException:
6264 except TDBException
as e:
6265 msg_type = TMessageType.REPLY
6267 except TApplicationException
as ex:
6268 logging.exception(
'TApplication exception in handler')
6269 msg_type = TMessageType.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)
6277 oprot.writeMessageEnd()
6283 iprot.readMessageEnd()
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:
6290 except TDBException
as e:
6291 msg_type = TMessageType.REPLY
6293 except TApplicationException
as ex:
6294 logging.exception(
'TApplication exception in handler')
6295 msg_type = TMessageType.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)
6303 oprot.writeMessageEnd()
6309 iprot.readMessageEnd()
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:
6316 except TDBException
as e:
6317 msg_type = TMessageType.REPLY
6319 except TApplicationException
as ex:
6320 logging.exception(
'TApplication exception in handler')
6321 msg_type = TMessageType.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)
6329 oprot.writeMessageEnd()
6335 iprot.readMessageEnd()
6338 self._handler.delete_dashboard(args.session, args.dashboard_id)
6339 msg_type = TMessageType.REPLY
6340 except TTransport.TTransportException:
6342 except TDBException
as e:
6343 msg_type = TMessageType.REPLY
6345 except TApplicationException
as ex:
6346 logging.exception(
'TApplication exception in handler')
6347 msg_type = TMessageType.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)
6355 oprot.writeMessageEnd()
6361 iprot.readMessageEnd()
6364 self._handler.share_dashboards(args.session, args.dashboard_ids, args.groups, args.permissions)
6365 msg_type = TMessageType.REPLY
6366 except TTransport.TTransportException:
6368 except TDBException
as e:
6369 msg_type = TMessageType.REPLY
6371 except TApplicationException
as ex:
6372 logging.exception(
'TApplication exception in handler')
6373 msg_type = TMessageType.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)
6381 oprot.writeMessageEnd()
6387 iprot.readMessageEnd()
6390 self._handler.delete_dashboards(args.session, args.dashboard_ids)
6391 msg_type = TMessageType.REPLY
6392 except TTransport.TTransportException:
6394 except TDBException
as e:
6395 msg_type = TMessageType.REPLY
6397 except TApplicationException
as ex:
6398 logging.exception(
'TApplication exception in handler')
6399 msg_type = TMessageType.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)
6407 oprot.writeMessageEnd()
6413 iprot.readMessageEnd()
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:
6420 except TDBException
as e:
6421 msg_type = TMessageType.REPLY
6423 except TApplicationException
as ex:
6424 logging.exception(
'TApplication exception in handler')
6425 msg_type = TMessageType.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)
6433 oprot.writeMessageEnd()
6439 iprot.readMessageEnd()
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:
6446 except TDBException
as e:
6447 msg_type = TMessageType.REPLY
6449 except TApplicationException
as ex:
6450 logging.exception(
'TApplication exception in handler')
6451 msg_type = TMessageType.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)
6459 oprot.writeMessageEnd()
6465 iprot.readMessageEnd()
6468 self._handler.unshare_dashboards(args.session, args.dashboard_ids, args.groups, args.permissions)
6469 msg_type = TMessageType.REPLY
6470 except TTransport.TTransportException:
6472 except TDBException
as e:
6473 msg_type = TMessageType.REPLY
6475 except TApplicationException
as ex:
6476 logging.exception(
'TApplication exception in handler')
6477 msg_type = TMessageType.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)
6485 oprot.writeMessageEnd()
6491 iprot.readMessageEnd()
6494 result.success = self._handler.get_dashboard_grantees(args.session, args.dashboard_id)
6495 msg_type = TMessageType.REPLY
6496 except TTransport.TTransportException:
6498 except TDBException
as e:
6499 msg_type = TMessageType.REPLY
6501 except TApplicationException
as ex:
6502 logging.exception(
'TApplication exception in handler')
6503 msg_type = TMessageType.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)
6511 oprot.writeMessageEnd()
6517 iprot.readMessageEnd()
6520 result.success = self._handler.get_link_view(args.session, args.link)
6521 msg_type = TMessageType.REPLY
6522 except TTransport.TTransportException:
6524 except TDBException
as e:
6525 msg_type = TMessageType.REPLY
6527 except TApplicationException
as ex:
6528 logging.exception(
'TApplication exception in handler')
6529 msg_type = TMessageType.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)
6537 oprot.writeMessageEnd()
6543 iprot.readMessageEnd()
6546 result.success = self._handler.create_link(args.session, args.view_state, args.view_metadata)
6547 msg_type = TMessageType.REPLY
6548 except TTransport.TTransportException:
6550 except TDBException
as e:
6551 msg_type = TMessageType.REPLY
6553 except TApplicationException
as ex:
6554 logging.exception(
'TApplication exception in handler')
6555 msg_type = TMessageType.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)
6563 oprot.writeMessageEnd()
6569 iprot.readMessageEnd()
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:
6576 except TDBException
as e:
6577 msg_type = TMessageType.REPLY
6579 except TApplicationException
as ex:
6580 logging.exception(
'TApplication exception in handler')
6581 msg_type = TMessageType.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)
6589 oprot.writeMessageEnd()
6595 iprot.readMessageEnd()
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:
6602 except TDBException
as e:
6603 msg_type = TMessageType.REPLY
6605 except TApplicationException
as ex:
6606 logging.exception(
'TApplication exception in handler')
6607 msg_type = TMessageType.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)
6615 oprot.writeMessageEnd()
6621 iprot.readMessageEnd()
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:
6628 except TDBException
as e:
6629 msg_type = TMessageType.REPLY
6631 except TApplicationException
as ex:
6632 logging.exception(
'TApplication exception in handler')
6633 msg_type = TMessageType.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)
6641 oprot.writeMessageEnd()
6647 iprot.readMessageEnd()
6650 self._handler.load_table(args.session, args.table_name, args.rows, args.column_names)
6651 msg_type = TMessageType.REPLY
6652 except TTransport.TTransportException:
6654 except TDBException
as e:
6655 msg_type = TMessageType.REPLY
6657 except TApplicationException
as ex:
6658 logging.exception(
'TApplication exception in handler')
6659 msg_type = TMessageType.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)
6667 oprot.writeMessageEnd()
6673 iprot.readMessageEnd()
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:
6680 except TDBException
as e:
6681 msg_type = TMessageType.REPLY
6683 except TApplicationException
as ex:
6684 logging.exception(
'TApplication exception in handler')
6685 msg_type = TMessageType.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)
6693 oprot.writeMessageEnd()
6699 iprot.readMessageEnd()
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:
6706 except TDBException
as e:
6707 msg_type = TMessageType.REPLY
6709 except TApplicationException
as ex:
6710 logging.exception(
'TApplication exception in handler')
6711 msg_type = TMessageType.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)
6719 oprot.writeMessageEnd()
6725 iprot.readMessageEnd()
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:
6732 except TDBException
as e:
6733 msg_type = TMessageType.REPLY
6735 except TApplicationException
as ex:
6736 logging.exception(
'TApplication exception in handler')
6737 msg_type = TMessageType.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)
6745 oprot.writeMessageEnd()
6751 iprot.readMessageEnd()
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:
6758 except TDBException
as e:
6759 msg_type = TMessageType.REPLY
6761 except TApplicationException
as ex:
6762 logging.exception(
'TApplication exception in handler')
6763 msg_type = TMessageType.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)
6771 oprot.writeMessageEnd()
6777 iprot.readMessageEnd()
6780 result.success = self._handler.import_table_status(args.session, args.import_id)
6781 msg_type = TMessageType.REPLY
6782 except TTransport.TTransportException:
6784 except TDBException
as e:
6785 msg_type = TMessageType.REPLY
6787 except TApplicationException
as ex:
6788 logging.exception(
'TApplication exception in handler')
6789 msg_type = TMessageType.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)
6797 oprot.writeMessageEnd()
6803 iprot.readMessageEnd()
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:
6810 except TDBException
as e:
6811 msg_type = TMessageType.REPLY
6813 except TApplicationException
as ex:
6814 logging.exception(
'TApplication exception in handler')
6815 msg_type = TMessageType.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)
6823 oprot.writeMessageEnd()
6829 iprot.readMessageEnd()
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:
6836 except TDBException
as e:
6837 msg_type = TMessageType.REPLY
6839 except TApplicationException
as ex:
6840 logging.exception(
'TApplication exception in handler')
6841 msg_type = TMessageType.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)
6849 oprot.writeMessageEnd()
6855 iprot.readMessageEnd()
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:
6862 except TDBException
as e:
6863 msg_type = TMessageType.REPLY
6865 except TApplicationException
as ex:
6866 logging.exception(
'TApplication exception in handler')
6867 msg_type = TMessageType.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)
6875 oprot.writeMessageEnd()
6881 iprot.readMessageEnd()
6884 result.success = self._handler.query_get_outer_fragment_count(args.session, args.query)
6885 msg_type = TMessageType.REPLY
6886 except TTransport.TTransportException:
6888 except TDBException
as e:
6889 msg_type = TMessageType.REPLY
6891 except TApplicationException
as ex:
6892 logging.exception(
'TApplication exception in handler')
6893 msg_type = TMessageType.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)
6901 oprot.writeMessageEnd()
6907 iprot.readMessageEnd()
6910 result.success = self._handler.check_table_consistency(args.session, args.table_id)
6911 msg_type = TMessageType.REPLY
6912 except TTransport.TTransportException:
6914 except TDBException
as e:
6915 msg_type = TMessageType.REPLY
6917 except TApplicationException
as ex:
6918 logging.exception(
'TApplication exception in handler')
6919 msg_type = TMessageType.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)
6927 oprot.writeMessageEnd()
6933 iprot.readMessageEnd()
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:
6940 except TDBException
as e:
6941 msg_type = TMessageType.REPLY
6943 except TApplicationException
as ex:
6944 logging.exception(
'TApplication exception in handler')
6945 msg_type = TMessageType.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)
6953 oprot.writeMessageEnd()
6959 iprot.readMessageEnd()
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:
6966 except TDBException
as e:
6967 msg_type = TMessageType.REPLY
6969 except TApplicationException
as ex:
6970 logging.exception(
'TApplication exception in handler')
6971 msg_type = TMessageType.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)
6979 oprot.writeMessageEnd()
6985 iprot.readMessageEnd()
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:
6992 except TDBException
as e:
6993 msg_type = TMessageType.REPLY
6995 except TApplicationException
as ex:
6996 logging.exception(
'TApplication exception in handler')
6997 msg_type = TMessageType.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)
7005 oprot.writeMessageEnd()
7011 iprot.readMessageEnd()
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:
7018 except TDBException
as e:
7019 msg_type = TMessageType.REPLY
7021 except TApplicationException
as ex:
7022 logging.exception(
'TApplication exception in handler')
7023 msg_type = TMessageType.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)
7031 oprot.writeMessageEnd()
7037 iprot.readMessageEnd()
7040 result.success = self._handler.execute_next_render_step(args.pending_render, args.merged_data)
7041 msg_type = TMessageType.REPLY
7042 except TTransport.TTransportException:
7044 except TDBException
as e:
7045 msg_type = TMessageType.REPLY
7047 except TApplicationException
as ex:
7048 logging.exception(
'TApplication exception in handler')
7049 msg_type = TMessageType.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)
7057 oprot.writeMessageEnd()
7063 iprot.readMessageEnd()
7066 self._handler.insert_data(args.session, args.insert_data)
7067 msg_type = TMessageType.REPLY
7068 except TTransport.TTransportException:
7070 except TDBException
as e:
7071 msg_type = TMessageType.REPLY
7073 except TApplicationException
as ex:
7074 logging.exception(
'TApplication exception in handler')
7075 msg_type = TMessageType.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)
7083 oprot.writeMessageEnd()
7089 iprot.readMessageEnd()
7092 self._handler.insert_chunks(args.session, args.insert_chunks)
7093 msg_type = TMessageType.REPLY
7094 except TTransport.TTransportException:
7096 except TDBException
as e:
7097 msg_type = TMessageType.REPLY
7099 except TApplicationException
as ex:
7100 logging.exception(
'TApplication exception in handler')
7101 msg_type = TMessageType.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)
7109 oprot.writeMessageEnd()
7115 iprot.readMessageEnd()
7118 self._handler.checkpoint(args.session, args.table_id)
7119 msg_type = TMessageType.REPLY
7120 except TTransport.TTransportException:
7122 except TDBException
as e:
7123 msg_type = TMessageType.REPLY
7125 except TApplicationException
as ex:
7126 logging.exception(
'TApplication exception in handler')
7127 msg_type = TMessageType.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)
7135 oprot.writeMessageEnd()
7141 iprot.readMessageEnd()
7144 result.success = self._handler.get_roles(args.session)
7145 msg_type = TMessageType.REPLY
7146 except TTransport.TTransportException:
7148 except TDBException
as e:
7149 msg_type = TMessageType.REPLY
7151 except TApplicationException
as ex:
7152 logging.exception(
'TApplication exception in handler')
7153 msg_type = TMessageType.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)
7161 oprot.writeMessageEnd()
7167 iprot.readMessageEnd()
7170 result.success = self._handler.get_db_objects_for_grantee(args.session, args.roleName)
7171 msg_type = TMessageType.REPLY
7172 except TTransport.TTransportException:
7174 except TDBException
as e:
7175 msg_type = TMessageType.REPLY
7177 except TApplicationException
as ex:
7178 logging.exception(
'TApplication exception in handler')
7179 msg_type = TMessageType.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)
7187 oprot.writeMessageEnd()
7193 iprot.readMessageEnd()
7196 result.success = self._handler.get_db_object_privs(args.session, args.objectName, args.type)
7197 msg_type = TMessageType.REPLY
7198 except TTransport.TTransportException:
7200 except TDBException
as e:
7201 msg_type = TMessageType.REPLY
7203 except TApplicationException
as ex:
7204 logging.exception(
'TApplication exception in handler')
7205 msg_type = TMessageType.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)
7213 oprot.writeMessageEnd()
7219 iprot.readMessageEnd()
7222 result.success = self._handler.get_all_roles_for_user(args.session, args.userName)
7223 msg_type = TMessageType.REPLY
7224 except TTransport.TTransportException:
7226 except TDBException
as e:
7227 msg_type = TMessageType.REPLY
7229 except TApplicationException
as ex:
7230 logging.exception(
'TApplication exception in handler')
7231 msg_type = TMessageType.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)
7239 oprot.writeMessageEnd()
7245 iprot.readMessageEnd()
7248 result.success = self._handler.get_all_effective_roles_for_user(args.session, args.userName)
7249 msg_type = TMessageType.REPLY
7250 except TTransport.TTransportException:
7252 except TDBException
as e:
7253 msg_type = TMessageType.REPLY
7255 except TApplicationException
as ex:
7256 logging.exception(
'TApplication exception in handler')
7257 msg_type = TMessageType.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)
7265 oprot.writeMessageEnd()
7271 iprot.readMessageEnd()
7274 result.success = self._handler.has_role(args.session, args.granteeName, args.roleName)
7275 msg_type = TMessageType.REPLY
7276 except TTransport.TTransportException:
7278 except TDBException
as e:
7279 msg_type = TMessageType.REPLY
7281 except TApplicationException
as ex:
7282 logging.exception(
'TApplication exception in handler')
7283 msg_type = TMessageType.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)
7291 oprot.writeMessageEnd()
7297 iprot.readMessageEnd()
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:
7304 except TDBException
as e:
7305 msg_type = TMessageType.REPLY
7307 except TApplicationException
as ex:
7308 logging.exception(
'TApplication exception in handler')
7309 msg_type = TMessageType.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)
7317 oprot.writeMessageEnd()
7323 iprot.readMessageEnd()
7326 result.success = self._handler.set_license_key(args.session, args.key, args.nonce)
7327 msg_type = TMessageType.REPLY
7328 except TTransport.TTransportException:
7330 except TDBException
as e:
7331 msg_type = TMessageType.REPLY
7333 except TApplicationException
as ex:
7334 logging.exception(
'TApplication exception in handler')
7335 msg_type = TMessageType.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)
7343 oprot.writeMessageEnd()
7349 iprot.readMessageEnd()
7352 result.success = self._handler.get_license_claims(args.session, args.nonce)
7353 msg_type = TMessageType.REPLY
7354 except TTransport.TTransportException:
7356 except TDBException
as e:
7357 msg_type = TMessageType.REPLY
7359 except TApplicationException
as ex:
7360 logging.exception(
'TApplication exception in handler')
7361 msg_type = TMessageType.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)
7369 oprot.writeMessageEnd()
7375 iprot.readMessageEnd()
7378 result.success = self._handler.get_device_parameters(args.session)
7379 msg_type = TMessageType.REPLY
7380 except TTransport.TTransportException:
7382 except TDBException
as e:
7383 msg_type = TMessageType.REPLY
7385 except TApplicationException
as ex:
7386 logging.exception(
'TApplication exception in handler')
7387 msg_type = TMessageType.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)
7395 oprot.writeMessageEnd()
7401 iprot.readMessageEnd()
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:
7408 except TDBException
as e:
7409 msg_type = TMessageType.REPLY
7411 except TApplicationException
as ex:
7412 logging.exception(
'TApplication exception in handler')
7413 msg_type = TMessageType.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)
7421 oprot.writeMessageEnd()
7427 iprot.readMessageEnd()
7430 result.success = self._handler.get_table_function_names(args.session)
7431 msg_type = TMessageType.REPLY
7432 except TTransport.TTransportException:
7434 except TDBException
as e:
7435 msg_type = TMessageType.REPLY
7437 except TApplicationException
as ex:
7438 logging.exception(
'TApplication exception in handler')
7439 msg_type = TMessageType.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)
7447 oprot.writeMessageEnd()
7453 iprot.readMessageEnd()
7456 result.success = self._handler.get_runtime_table_function_names(args.session)
7457 msg_type = TMessageType.REPLY
7458 except TTransport.TTransportException:
7460 except TDBException
as e:
7461 msg_type = TMessageType.REPLY
7463 except TApplicationException
as ex:
7464 logging.exception(
'TApplication exception in handler')
7465 msg_type = TMessageType.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)
7473 oprot.writeMessageEnd()
7479 iprot.readMessageEnd()
7482 result.success = self._handler.get_table_function_details(args.session, args.udtf_names)
7483 msg_type = TMessageType.REPLY
7484 except TTransport.TTransportException:
7486 except TDBException
as e:
7487 msg_type = TMessageType.REPLY
7489 except TApplicationException
as ex:
7490 logging.exception(
'TApplication exception in handler')
7491 msg_type = TMessageType.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)
7499 oprot.writeMessageEnd()
7505 iprot.readMessageEnd()
7508 result.success = self._handler.get_function_names(args.session)
7509 msg_type = TMessageType.REPLY
7510 except TTransport.TTransportException:
7512 except TDBException
as e:
7513 msg_type = TMessageType.REPLY
7515 except TApplicationException
as ex:
7516 logging.exception(
'TApplication exception in handler')
7517 msg_type = TMessageType.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)
7525 oprot.writeMessageEnd()
7531 iprot.readMessageEnd()
7534 result.success = self._handler.get_runtime_function_names(args.session)
7535 msg_type = TMessageType.REPLY
7536 except TTransport.TTransportException:
7538 except TDBException
as e:
7539 msg_type = TMessageType.REPLY
7541 except TApplicationException
as ex:
7542 logging.exception(
'TApplication exception in handler')
7543 msg_type = TMessageType.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)
7551 oprot.writeMessageEnd()
7557 iprot.readMessageEnd()
7560 result.success = self._handler.get_function_details(args.session, args.udf_names)
7561 msg_type = TMessageType.REPLY
7562 except TTransport.TTransportException:
7564 except TDBException
as e:
7565 msg_type = TMessageType.REPLY
7567 except TApplicationException
as ex:
7568 logging.exception(
'TApplication exception in handler')
7569 msg_type = TMessageType.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)
7577 oprot.writeMessageEnd()
7593 def __init__(self, user=None, passwd=None, dbname=None,):
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])
7602 iprot.readStructBegin()
7604 (fname, ftype, fid) = iprot.readFieldBegin()
7605 if ftype == TType.STOP:
7608 if ftype == TType.STRING:
7609 self.
user = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
7613 if ftype == TType.STRING:
7614 self.
passwd = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
7618 if ftype == TType.STRING:
7619 self.
dbname = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
7624 iprot.readFieldEnd()
7625 iprot.readStructEnd()
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]))
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()
7651 L = [
'%s=%r' % (key, value)
7652 for key, value
in self.__dict__.items()]
7653 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
7656 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
7659 return not (self == other)
7660 all_structs.append(connect_args)
7661 connect_args.thrift_spec = (
7663 (1, TType.STRING,
'user',
'UTF8',
None, ),
7664 (2, TType.STRING,
'passwd',
'UTF8',
None, ),
7665 (3, TType.STRING,
'dbname',
'UTF8',
None, ),
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])
7686 iprot.readStructBegin()
7688 (fname, ftype, fid) = iprot.readFieldBegin()
7689 if ftype == TType.STOP:
7692 if ftype == TType.STRING:
7693 self.
success = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
7697 if ftype == TType.STRUCT:
7698 self.
e = TDBException.read(iprot)
7703 iprot.readFieldEnd()
7704 iprot.readStructEnd()
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]))
7710 oprot.writeStructBegin(
'connect_result')
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)
7718 oprot.writeFieldEnd()
7719 oprot.writeFieldStop()
7720 oprot.writeStructEnd()
7726 L = [
'%s=%r' % (key, value)
7727 for key, value
in self.__dict__.items()]
7728 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
7731 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
7734 return not (self == other)
7735 all_structs.append(connect_result)
7736 connect_result.thrift_spec = (
7737 (0, TType.STRING,
'success',
'UTF8',
None, ),
7738 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
7759 iprot.readStructBegin()
7761 (fname, ftype, fid) = iprot.readFieldBegin()
7762 if ftype == TType.STOP:
7765 if ftype == TType.STRING:
7766 self.
inputToken = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
7770 if ftype == TType.STRING:
7771 self.
dbname = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
7776 iprot.readFieldEnd()
7777 iprot.readStructEnd()
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]))
7783 oprot.writeStructBegin(
'krb5_connect_args')
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()
7799 L = [
'%s=%r' % (key, value)
7800 for key, value
in self.__dict__.items()]
7801 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
7804 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
7807 return not (self == other)
7808 all_structs.append(krb5_connect_args)
7809 krb5_connect_args.thrift_spec = (
7811 (1, TType.STRING,
'inputToken',
'UTF8',
None, ),
7812 (2, TType.STRING,
'dbname',
'UTF8',
None, ),
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])
7833 iprot.readStructBegin()
7835 (fname, ftype, fid) = iprot.readFieldBegin()
7836 if ftype == TType.STOP:
7839 if ftype == TType.STRUCT:
7841 self.success.read(iprot)
7845 if ftype == TType.STRUCT:
7846 self.
e = TDBException.read(iprot)
7851 iprot.readFieldEnd()
7852 iprot.readStructEnd()
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]))
7858 oprot.writeStructBegin(
'krb5_connect_result')
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)
7866 oprot.writeFieldEnd()
7867 oprot.writeFieldStop()
7868 oprot.writeStructEnd()
7874 L = [
'%s=%r' % (key, value)
7875 for key, value
in self.__dict__.items()]
7876 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
7879 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
7886 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
7905 iprot.readStructBegin()
7907 (fname, ftype, fid) = iprot.readFieldBegin()
7908 if ftype == TType.STOP:
7911 if ftype == TType.STRING:
7912 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
7917 iprot.readFieldEnd()
7918 iprot.readStructEnd()
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]))
7924 oprot.writeStructBegin(
'disconnect_args')
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()
7936 L = [
'%s=%r' % (key, value)
7937 for key, value
in self.__dict__.items()]
7938 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
7941 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
7944 return not (self == other)
7945 all_structs.append(disconnect_args)
7946 disconnect_args.thrift_spec = (
7948 (1, TType.STRING,
'session',
'UTF8',
None, ),
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])
7967 iprot.readStructBegin()
7969 (fname, ftype, fid) = iprot.readFieldBegin()
7970 if ftype == TType.STOP:
7973 if ftype == TType.STRUCT:
7974 self.
e = TDBException.read(iprot)
7979 iprot.readFieldEnd()
7980 iprot.readStructEnd()
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]))
7986 oprot.writeStructBegin(
'disconnect_result')
7987 if self.
e is not None:
7988 oprot.writeFieldBegin(
'e', TType.STRUCT, 1)
7990 oprot.writeFieldEnd()
7991 oprot.writeFieldStop()
7992 oprot.writeStructEnd()
7998 L = [
'%s=%r' % (key, value)
7999 for key, value
in self.__dict__.items()]
8000 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
8003 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
8006 return not (self == other)
8007 all_structs.append(disconnect_result)
8008 disconnect_result.thrift_spec = (
8010 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
8031 iprot.readStructBegin()
8033 (fname, ftype, fid) = iprot.readFieldBegin()
8034 if ftype == TType.STOP:
8037 if ftype == TType.STRING:
8038 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
8042 if ftype == TType.STRING:
8043 self.
dbname = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
8048 iprot.readFieldEnd()
8049 iprot.readStructEnd()
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]))
8055 oprot.writeStructBegin(
'switch_database_args')
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()
8071 L = [
'%s=%r' % (key, value)
8072 for key, value
in self.__dict__.items()]
8073 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
8076 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
8079 return not (self == other)
8080 all_structs.append(switch_database_args)
8081 switch_database_args.thrift_spec = (
8083 (1, TType.STRING,
'session',
'UTF8',
None, ),
8084 (2, TType.STRING,
'dbname',
'UTF8',
None, ),
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])
8103 iprot.readStructBegin()
8105 (fname, ftype, fid) = iprot.readFieldBegin()
8106 if ftype == TType.STOP:
8109 if ftype == TType.STRUCT:
8110 self.
e = TDBException.read(iprot)
8115 iprot.readFieldEnd()
8116 iprot.readStructEnd()
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]))
8122 oprot.writeStructBegin(
'switch_database_result')
8123 if self.
e is not None:
8124 oprot.writeFieldBegin(
'e', TType.STRUCT, 1)
8126 oprot.writeFieldEnd()
8127 oprot.writeFieldStop()
8128 oprot.writeStructEnd()
8134 L = [
'%s=%r' % (key, value)
8135 for key, value
in self.__dict__.items()]
8136 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
8139 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
8142 return not (self == other)
8143 all_structs.append(switch_database_result)
8144 switch_database_result.thrift_spec = (
8146 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
8165 iprot.readStructBegin()
8167 (fname, ftype, fid) = iprot.readFieldBegin()
8168 if ftype == TType.STOP:
8171 if ftype == TType.STRING:
8172 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
8177 iprot.readFieldEnd()
8178 iprot.readStructEnd()
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]))
8184 oprot.writeStructBegin(
'clone_session_args')
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()
8196 L = [
'%s=%r' % (key, value)
8197 for key, value
in self.__dict__.items()]
8198 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
8201 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
8204 return not (self == other)
8205 all_structs.append(clone_session_args)
8206 clone_session_args.thrift_spec = (
8208 (1, TType.STRING,
'session',
'UTF8',
None, ),
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])
8229 iprot.readStructBegin()
8231 (fname, ftype, fid) = iprot.readFieldBegin()
8232 if ftype == TType.STOP:
8235 if ftype == TType.STRING:
8236 self.
success = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
8240 if ftype == TType.STRUCT:
8241 self.
e = TDBException.read(iprot)
8246 iprot.readFieldEnd()
8247 iprot.readStructEnd()
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]))
8253 oprot.writeStructBegin(
'clone_session_result')
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)
8261 oprot.writeFieldEnd()
8262 oprot.writeFieldStop()
8263 oprot.writeStructEnd()
8269 L = [
'%s=%r' % (key, value)
8270 for key, value
in self.__dict__.items()]
8271 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
8274 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
8281 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
8300 iprot.readStructBegin()
8302 (fname, ftype, fid) = iprot.readFieldBegin()
8303 if ftype == TType.STOP:
8306 if ftype == TType.STRING:
8307 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
8312 iprot.readFieldEnd()
8313 iprot.readStructEnd()
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]))
8319 oprot.writeStructBegin(
'get_server_status_args')
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()
8331 L = [
'%s=%r' % (key, value)
8332 for key, value
in self.__dict__.items()]
8333 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
8336 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
8339 return not (self == other)
8340 all_structs.append(get_server_status_args)
8341 get_server_status_args.thrift_spec = (
8343 (1, TType.STRING,
'session',
'UTF8',
None, ),
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])
8364 iprot.readStructBegin()
8366 (fname, ftype, fid) = iprot.readFieldBegin()
8367 if ftype == TType.STOP:
8370 if ftype == TType.STRUCT:
8371 self.
success = TServerStatus()
8372 self.success.read(iprot)
8376 if ftype == TType.STRUCT:
8377 self.
e = TDBException.read(iprot)
8382 iprot.readFieldEnd()
8383 iprot.readStructEnd()
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]))
8389 oprot.writeStructBegin(
'get_server_status_result')
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)
8397 oprot.writeFieldEnd()
8398 oprot.writeFieldStop()
8399 oprot.writeStructEnd()
8405 L = [
'%s=%r' % (key, value)
8406 for key, value
in self.__dict__.items()]
8407 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
8410 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
8417 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
8436 iprot.readStructBegin()
8438 (fname, ftype, fid) = iprot.readFieldBegin()
8439 if ftype == TType.STOP:
8442 if ftype == TType.STRING:
8443 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
8448 iprot.readFieldEnd()
8449 iprot.readStructEnd()
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]))
8455 oprot.writeStructBegin(
'get_status_args')
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()
8467 L = [
'%s=%r' % (key, value)
8468 for key, value
in self.__dict__.items()]
8469 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
8472 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
8475 return not (self == other)
8476 all_structs.append(get_status_args)
8477 get_status_args.thrift_spec = (
8479 (1, TType.STRING,
'session',
'UTF8',
None, ),
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])
8500 iprot.readStructBegin()
8502 (fname, ftype, fid) = iprot.readFieldBegin()
8503 if ftype == TType.STOP:
8506 if ftype == TType.LIST:
8508 (_etype286, _size283) = iprot.readListBegin()
8509 for _i287
in range(_size283):
8510 _elem288 = TServerStatus()
8511 _elem288.read(iprot)
8512 self.success.append(_elem288)
8517 if ftype == TType.STRUCT:
8518 self.
e = TDBException.read(iprot)
8523 iprot.readFieldEnd()
8524 iprot.readStructEnd()
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]))
8530 oprot.writeStructBegin(
'get_status_result')
8532 oprot.writeFieldBegin(
'success', TType.LIST, 0)
8533 oprot.writeListBegin(TType.STRUCT, len(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)
8541 oprot.writeFieldEnd()
8542 oprot.writeFieldStop()
8543 oprot.writeStructEnd()
8549 L = [
'%s=%r' % (key, value)
8550 for key, value
in self.__dict__.items()]
8551 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
8554 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
8561 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
8580 iprot.readStructBegin()
8582 (fname, ftype, fid) = iprot.readFieldBegin()
8583 if ftype == TType.STOP:
8586 if ftype == TType.STRING:
8587 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
8592 iprot.readFieldEnd()
8593 iprot.readStructEnd()
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]))
8599 oprot.writeStructBegin(
'get_hardware_info_args')
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()
8611 L = [
'%s=%r' % (key, value)
8612 for key, value
in self.__dict__.items()]
8613 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
8616 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
8619 return not (self == other)
8620 all_structs.append(get_hardware_info_args)
8621 get_hardware_info_args.thrift_spec = (
8623 (1, TType.STRING,
'session',
'UTF8',
None, ),
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])
8644 iprot.readStructBegin()
8646 (fname, ftype, fid) = iprot.readFieldBegin()
8647 if ftype == TType.STOP:
8650 if ftype == TType.STRUCT:
8651 self.
success = TClusterHardwareInfo()
8652 self.success.read(iprot)
8656 if ftype == TType.STRUCT:
8657 self.
e = TDBException.read(iprot)
8662 iprot.readFieldEnd()
8663 iprot.readStructEnd()
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]))
8669 oprot.writeStructBegin(
'get_hardware_info_result')
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)
8677 oprot.writeFieldEnd()
8678 oprot.writeFieldStop()
8679 oprot.writeStructEnd()
8685 L = [
'%s=%r' % (key, value)
8686 for key, value
in self.__dict__.items()]
8687 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
8690 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
8697 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
8716 iprot.readStructBegin()
8718 (fname, ftype, fid) = iprot.readFieldBegin()
8719 if ftype == TType.STOP:
8722 if ftype == TType.STRING:
8723 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
8728 iprot.readFieldEnd()
8729 iprot.readStructEnd()
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]))
8735 oprot.writeStructBegin(
'get_tables_args')
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()
8747 L = [
'%s=%r' % (key, value)
8748 for key, value
in self.__dict__.items()]
8749 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
8752 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
8755 return not (self == other)
8756 all_structs.append(get_tables_args)
8757 get_tables_args.thrift_spec = (
8759 (1, TType.STRING,
'session',
'UTF8',
None, ),
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])
8780 iprot.readStructBegin()
8782 (fname, ftype, fid) = iprot.readFieldBegin()
8783 if ftype == TType.STOP:
8786 if ftype == TType.LIST:
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)
8796 if ftype == TType.STRUCT:
8797 self.
e = TDBException.read(iprot)
8802 iprot.readFieldEnd()
8803 iprot.readStructEnd()
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]))
8809 oprot.writeStructBegin(
'get_tables_result')
8811 oprot.writeFieldBegin(
'success', TType.LIST, 0)
8812 oprot.writeListBegin(TType.STRING, len(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)
8820 oprot.writeFieldEnd()
8821 oprot.writeFieldStop()
8822 oprot.writeStructEnd()
8828 L = [
'%s=%r' % (key, value)
8829 for key, value
in self.__dict__.items()]
8830 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
8833 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
8840 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
8861 iprot.readStructBegin()
8863 (fname, ftype, fid) = iprot.readFieldBegin()
8864 if ftype == TType.STOP:
8867 if ftype == TType.STRING:
8868 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
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()
8878 iprot.readFieldEnd()
8879 iprot.readStructEnd()
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]))
8885 oprot.writeStructBegin(
'get_tables_for_database_args')
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()
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()
8901 L = [
'%s=%r' % (key, value)
8902 for key, value
in self.__dict__.items()]
8903 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
8906 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
8909 return not (self == other)
8910 all_structs.append(get_tables_for_database_args)
8911 get_tables_for_database_args.thrift_spec = (
8913 (1, TType.STRING,
'session',
'UTF8',
None, ),
8914 (2, TType.STRING,
'database_name',
'UTF8',
None, ),
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])
8935 iprot.readStructBegin()
8937 (fname, ftype, fid) = iprot.readFieldBegin()
8938 if ftype == TType.STOP:
8941 if ftype == TType.LIST:
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)
8951 if ftype == TType.STRUCT:
8952 self.
e = TDBException.read(iprot)
8957 iprot.readFieldEnd()
8958 iprot.readStructEnd()
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]))
8964 oprot.writeStructBegin(
'get_tables_for_database_result')
8966 oprot.writeFieldBegin(
'success', TType.LIST, 0)
8967 oprot.writeListBegin(TType.STRING, len(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)
8975 oprot.writeFieldEnd()
8976 oprot.writeFieldStop()
8977 oprot.writeStructEnd()
8983 L = [
'%s=%r' % (key, value)
8984 for key, value
in self.__dict__.items()]
8985 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
8988 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
8995 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
9014 iprot.readStructBegin()
9016 (fname, ftype, fid) = iprot.readFieldBegin()
9017 if ftype == TType.STOP:
9020 if ftype == TType.STRING:
9021 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
9026 iprot.readFieldEnd()
9027 iprot.readStructEnd()
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]))
9033 oprot.writeStructBegin(
'get_physical_tables_args')
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()
9045 L = [
'%s=%r' % (key, value)
9046 for key, value
in self.__dict__.items()]
9047 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
9050 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
9053 return not (self == other)
9054 all_structs.append(get_physical_tables_args)
9055 get_physical_tables_args.thrift_spec = (
9057 (1, TType.STRING,
'session',
'UTF8',
None, ),
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])
9078 iprot.readStructBegin()
9080 (fname, ftype, fid) = iprot.readFieldBegin()
9081 if ftype == TType.STOP:
9084 if ftype == TType.LIST:
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)
9094 if ftype == TType.STRUCT:
9095 self.
e = TDBException.read(iprot)
9100 iprot.readFieldEnd()
9101 iprot.readStructEnd()
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]))
9107 oprot.writeStructBegin(
'get_physical_tables_result')
9109 oprot.writeFieldBegin(
'success', TType.LIST, 0)
9110 oprot.writeListBegin(TType.STRING, len(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)
9118 oprot.writeFieldEnd()
9119 oprot.writeFieldStop()
9120 oprot.writeStructEnd()
9126 L = [
'%s=%r' % (key, value)
9127 for key, value
in self.__dict__.items()]
9128 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
9131 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
9138 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
9157 iprot.readStructBegin()
9159 (fname, ftype, fid) = iprot.readFieldBegin()
9160 if ftype == TType.STOP:
9163 if ftype == TType.STRING:
9164 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
9169 iprot.readFieldEnd()
9170 iprot.readStructEnd()
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]))
9176 oprot.writeStructBegin(
'get_views_args')
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()
9188 L = [
'%s=%r' % (key, value)
9189 for key, value
in self.__dict__.items()]
9190 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
9193 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
9196 return not (self == other)
9197 all_structs.append(get_views_args)
9198 get_views_args.thrift_spec = (
9200 (1, TType.STRING,
'session',
'UTF8',
None, ),
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])
9221 iprot.readStructBegin()
9223 (fname, ftype, fid) = iprot.readFieldBegin()
9224 if ftype == TType.STOP:
9227 if ftype == TType.LIST:
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)
9237 if ftype == TType.STRUCT:
9238 self.
e = TDBException.read(iprot)
9243 iprot.readFieldEnd()
9244 iprot.readStructEnd()
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]))
9250 oprot.writeStructBegin(
'get_views_result')
9252 oprot.writeFieldBegin(
'success', TType.LIST, 0)
9253 oprot.writeListBegin(TType.STRING, len(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)
9261 oprot.writeFieldEnd()
9262 oprot.writeFieldStop()
9263 oprot.writeStructEnd()
9269 L = [
'%s=%r' % (key, value)
9270 for key, value
in self.__dict__.items()]
9271 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
9274 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
9281 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
9300 iprot.readStructBegin()
9302 (fname, ftype, fid) = iprot.readFieldBegin()
9303 if ftype == TType.STOP:
9306 if ftype == TType.STRING:
9307 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
9312 iprot.readFieldEnd()
9313 iprot.readStructEnd()
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]))
9319 oprot.writeStructBegin(
'get_tables_meta_args')
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()
9331 L = [
'%s=%r' % (key, value)
9332 for key, value
in self.__dict__.items()]
9333 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
9336 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
9339 return not (self == other)
9340 all_structs.append(get_tables_meta_args)
9341 get_tables_meta_args.thrift_spec = (
9343 (1, TType.STRING,
'session',
'UTF8',
None, ),
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])
9364 iprot.readStructBegin()
9366 (fname, ftype, fid) = iprot.readFieldBegin()
9367 if ftype == TType.STOP:
9370 if ftype == TType.LIST:
9372 (_etype321, _size318) = iprot.readListBegin()
9373 for _i322
in range(_size318):
9374 _elem323 = TTableMeta()
9375 _elem323.read(iprot)
9376 self.success.append(_elem323)
9381 if ftype == TType.STRUCT:
9382 self.
e = TDBException.read(iprot)
9387 iprot.readFieldEnd()
9388 iprot.readStructEnd()
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]))
9394 oprot.writeStructBegin(
'get_tables_meta_result')
9396 oprot.writeFieldBegin(
'success', TType.LIST, 0)
9397 oprot.writeListBegin(TType.STRUCT, len(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)
9405 oprot.writeFieldEnd()
9406 oprot.writeFieldStop()
9407 oprot.writeStructEnd()
9413 L = [
'%s=%r' % (key, value)
9414 for key, value
in self.__dict__.items()]
9415 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
9418 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
9425 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
9446 iprot.readStructBegin()
9448 (fname, ftype, fid) = iprot.readFieldBegin()
9449 if ftype == TType.STOP:
9452 if ftype == TType.STRING:
9453 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
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()
9463 iprot.readFieldEnd()
9464 iprot.readStructEnd()
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]))
9470 oprot.writeStructBegin(
'get_table_details_args')
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()
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()
9486 L = [
'%s=%r' % (key, value)
9487 for key, value
in self.__dict__.items()]
9488 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
9491 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
9494 return not (self == other)
9495 all_structs.append(get_table_details_args)
9496 get_table_details_args.thrift_spec = (
9498 (1, TType.STRING,
'session',
'UTF8',
None, ),
9499 (2, TType.STRING,
'table_name',
'UTF8',
None, ),
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])
9520 iprot.readStructBegin()
9522 (fname, ftype, fid) = iprot.readFieldBegin()
9523 if ftype == TType.STOP:
9526 if ftype == TType.STRUCT:
9527 self.
success = TTableDetails()
9528 self.success.read(iprot)
9532 if ftype == TType.STRUCT:
9533 self.
e = TDBException.read(iprot)
9538 iprot.readFieldEnd()
9539 iprot.readStructEnd()
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]))
9545 oprot.writeStructBegin(
'get_table_details_result')
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)
9553 oprot.writeFieldEnd()
9554 oprot.writeFieldStop()
9555 oprot.writeStructEnd()
9561 L = [
'%s=%r' % (key, value)
9562 for key, value
in self.__dict__.items()]
9563 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
9566 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
9573 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
9587 def __init__(self, session=None, table_name=None, database_name=None,):
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])
9596 iprot.readStructBegin()
9598 (fname, ftype, fid) = iprot.readFieldBegin()
9599 if ftype == TType.STOP:
9602 if ftype == TType.STRING:
9603 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
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()
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()
9618 iprot.readFieldEnd()
9619 iprot.readStructEnd()
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]))
9625 oprot.writeStructBegin(
'get_table_details_for_database_args')
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()
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()
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()
9645 L = [
'%s=%r' % (key, value)
9646 for key, value
in self.__dict__.items()]
9647 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
9650 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
9653 return not (self == other)
9654 all_structs.append(get_table_details_for_database_args)
9655 get_table_details_for_database_args.thrift_spec = (
9657 (1, TType.STRING,
'session',
'UTF8',
None, ),
9658 (2, TType.STRING,
'table_name',
'UTF8',
None, ),
9659 (3, TType.STRING,
'database_name',
'UTF8',
None, ),
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])
9680 iprot.readStructBegin()
9682 (fname, ftype, fid) = iprot.readFieldBegin()
9683 if ftype == TType.STOP:
9686 if ftype == TType.STRUCT:
9687 self.
success = TTableDetails()
9688 self.success.read(iprot)
9692 if ftype == TType.STRUCT:
9693 self.
e = TDBException.read(iprot)
9698 iprot.readFieldEnd()
9699 iprot.readStructEnd()
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]))
9705 oprot.writeStructBegin(
'get_table_details_for_database_result')
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)
9713 oprot.writeFieldEnd()
9714 oprot.writeFieldStop()
9715 oprot.writeStructEnd()
9721 L = [
'%s=%r' % (key, value)
9722 for key, value
in self.__dict__.items()]
9723 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
9726 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
9733 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
9742 - include_system_columns
9747 def __init__(self, session=None, table_name=None, include_system_columns=True,):
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])
9756 iprot.readStructBegin()
9758 (fname, ftype, fid) = iprot.readFieldBegin()
9759 if ftype == TType.STOP:
9762 if ftype == TType.STRING:
9763 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
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()
9772 if ftype == TType.BOOL:
9778 iprot.readFieldEnd()
9779 iprot.readStructEnd()
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]))
9785 oprot.writeStructBegin(
'get_internal_table_details_args')
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()
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()
9795 oprot.writeFieldBegin(
'include_system_columns', TType.BOOL, 3)
9797 oprot.writeFieldEnd()
9798 oprot.writeFieldStop()
9799 oprot.writeStructEnd()
9805 L = [
'%s=%r' % (key, value)
9806 for key, value
in self.__dict__.items()]
9807 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
9810 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
9813 return not (self == other)
9814 all_structs.append(get_internal_table_details_args)
9815 get_internal_table_details_args.thrift_spec = (
9817 (1, TType.STRING,
'session',
'UTF8',
None, ),
9818 (2, TType.STRING,
'table_name',
'UTF8',
None, ),
9819 (3, TType.BOOL,
'include_system_columns',
None,
True, ),
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])
9840 iprot.readStructBegin()
9842 (fname, ftype, fid) = iprot.readFieldBegin()
9843 if ftype == TType.STOP:
9846 if ftype == TType.STRUCT:
9847 self.
success = TTableDetails()
9848 self.success.read(iprot)
9852 if ftype == TType.STRUCT:
9853 self.
e = TDBException.read(iprot)
9858 iprot.readFieldEnd()
9859 iprot.readStructEnd()
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]))
9865 oprot.writeStructBegin(
'get_internal_table_details_result')
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)
9873 oprot.writeFieldEnd()
9874 oprot.writeFieldStop()
9875 oprot.writeStructEnd()
9881 L = [
'%s=%r' % (key, value)
9882 for key, value
in self.__dict__.items()]
9883 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
9886 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
9893 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
9907 def __init__(self, session=None, table_name=None, database_name=None,):
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])
9916 iprot.readStructBegin()
9918 (fname, ftype, fid) = iprot.readFieldBegin()
9919 if ftype == TType.STOP:
9922 if ftype == TType.STRING:
9923 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
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()
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()
9938 iprot.readFieldEnd()
9939 iprot.readStructEnd()
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]))
9945 oprot.writeStructBegin(
'get_internal_table_details_for_database_args')
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()
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()
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()
9965 L = [
'%s=%r' % (key, value)
9966 for key, value
in self.__dict__.items()]
9967 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
9970 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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 = (
9977 (1, TType.STRING,
'session',
'UTF8',
None, ),
9978 (2, TType.STRING,
'table_name',
'UTF8',
None, ),
9979 (3, TType.STRING,
'database_name',
'UTF8',
None, ),
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])
10000 iprot.readStructBegin()
10002 (fname, ftype, fid) = iprot.readFieldBegin()
10003 if ftype == TType.STOP:
10006 if ftype == TType.STRUCT:
10007 self.
success = TTableDetails()
10008 self.success.read(iprot)
10012 if ftype == TType.STRUCT:
10013 self.
e = TDBException.read(iprot)
10018 iprot.readFieldEnd()
10019 iprot.readStructEnd()
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]))
10025 oprot.writeStructBegin(
'get_internal_table_details_for_database_result')
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()
10041 L = [
'%s=%r' % (key, value)
10042 for key, value
in self.__dict__.items()]
10043 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
10046 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
10053 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
10072 iprot.readStructBegin()
10074 (fname, ftype, fid) = iprot.readFieldBegin()
10075 if ftype == TType.STOP:
10078 if ftype == TType.STRING:
10079 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
10084 iprot.readFieldEnd()
10085 iprot.readStructEnd()
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]))
10091 oprot.writeStructBegin(
'get_users_args')
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()
10103 L = [
'%s=%r' % (key, value)
10104 for key, value
in self.__dict__.items()]
10105 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
10108 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
10111 return not (self == other)
10112 all_structs.append(get_users_args)
10113 get_users_args.thrift_spec = (
10115 (1, TType.STRING,
'session',
'UTF8',
None, ),
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])
10136 iprot.readStructBegin()
10138 (fname, ftype, fid) = iprot.readFieldBegin()
10139 if ftype == TType.STOP:
10142 if ftype == TType.LIST:
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()
10152 if ftype == TType.STRUCT:
10153 self.
e = TDBException.read(iprot)
10158 iprot.readFieldEnd()
10159 iprot.readStructEnd()
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]))
10165 oprot.writeStructBegin(
'get_users_result')
10167 oprot.writeFieldBegin(
'success', TType.LIST, 0)
10168 oprot.writeListBegin(TType.STRING, len(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()
10184 L = [
'%s=%r' % (key, value)
10185 for key, value
in self.__dict__.items()]
10186 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
10189 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
10196 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
10215 iprot.readStructBegin()
10217 (fname, ftype, fid) = iprot.readFieldBegin()
10218 if ftype == TType.STOP:
10221 if ftype == TType.STRING:
10222 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
10227 iprot.readFieldEnd()
10228 iprot.readStructEnd()
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]))
10234 oprot.writeStructBegin(
'get_databases_args')
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()
10246 L = [
'%s=%r' % (key, value)
10247 for key, value
in self.__dict__.items()]
10248 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
10251 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
10254 return not (self == other)
10255 all_structs.append(get_databases_args)
10256 get_databases_args.thrift_spec = (
10258 (1, TType.STRING,
'session',
'UTF8',
None, ),
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])
10279 iprot.readStructBegin()
10281 (fname, ftype, fid) = iprot.readFieldBegin()
10282 if ftype == TType.STOP:
10285 if ftype == TType.LIST:
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()
10296 if ftype == TType.STRUCT:
10297 self.
e = TDBException.read(iprot)
10302 iprot.readFieldEnd()
10303 iprot.readStructEnd()
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]))
10309 oprot.writeStructBegin(
'get_databases_result')
10311 oprot.writeFieldBegin(
'success', TType.LIST, 0)
10312 oprot.writeListBegin(TType.STRUCT, len(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()
10328 L = [
'%s=%r' % (key, value)
10329 for key, value
in self.__dict__.items()]
10330 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
10333 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
10340 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
10351 iprot.readStructBegin()
10353 (fname, ftype, fid) = iprot.readFieldBegin()
10354 if ftype == TType.STOP:
10358 iprot.readFieldEnd()
10359 iprot.readStructEnd()
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]))
10365 oprot.writeStructBegin(
'get_version_args')
10366 oprot.writeFieldStop()
10367 oprot.writeStructEnd()
10373 L = [
'%s=%r' % (key, value)
10374 for key, value
in self.__dict__.items()]
10375 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
10378 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
10381 return not (self == other)
10382 all_structs.append(get_version_args)
10383 get_version_args.thrift_spec = (
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])
10404 iprot.readStructBegin()
10406 (fname, ftype, fid) = iprot.readFieldBegin()
10407 if ftype == TType.STOP:
10410 if ftype == TType.STRING:
10411 self.
success = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
10415 if ftype == TType.STRUCT:
10416 self.
e = TDBException.read(iprot)
10421 iprot.readFieldEnd()
10422 iprot.readStructEnd()
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]))
10428 oprot.writeStructBegin(
'get_version_result')
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()
10444 L = [
'%s=%r' % (key, value)
10445 for key, value
in self.__dict__.items()]
10446 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
10449 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
10456 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
10475 iprot.readStructBegin()
10477 (fname, ftype, fid) = iprot.readFieldBegin()
10478 if ftype == TType.STOP:
10481 if ftype == TType.STRING:
10482 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
10487 iprot.readFieldEnd()
10488 iprot.readStructEnd()
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]))
10494 oprot.writeStructBegin(
'start_heap_profile_args')
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()
10506 L = [
'%s=%r' % (key, value)
10507 for key, value
in self.__dict__.items()]
10508 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
10511 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
10514 return not (self == other)
10515 all_structs.append(start_heap_profile_args)
10516 start_heap_profile_args.thrift_spec = (
10518 (1, TType.STRING,
'session',
'UTF8',
None, ),
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])
10537 iprot.readStructBegin()
10539 (fname, ftype, fid) = iprot.readFieldBegin()
10540 if ftype == TType.STOP:
10543 if ftype == TType.STRUCT:
10544 self.
e = TDBException.read(iprot)
10549 iprot.readFieldEnd()
10550 iprot.readStructEnd()
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]))
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()
10568 L = [
'%s=%r' % (key, value)
10569 for key, value
in self.__dict__.items()]
10570 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
10573 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
10576 return not (self == other)
10577 all_structs.append(start_heap_profile_result)
10578 start_heap_profile_result.thrift_spec = (
10580 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
10599 iprot.readStructBegin()
10601 (fname, ftype, fid) = iprot.readFieldBegin()
10602 if ftype == TType.STOP:
10605 if ftype == TType.STRING:
10606 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
10611 iprot.readFieldEnd()
10612 iprot.readStructEnd()
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]))
10618 oprot.writeStructBegin(
'stop_heap_profile_args')
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()
10630 L = [
'%s=%r' % (key, value)
10631 for key, value
in self.__dict__.items()]
10632 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
10635 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
10638 return not (self == other)
10639 all_structs.append(stop_heap_profile_args)
10640 stop_heap_profile_args.thrift_spec = (
10642 (1, TType.STRING,
'session',
'UTF8',
None, ),
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])
10661 iprot.readStructBegin()
10663 (fname, ftype, fid) = iprot.readFieldBegin()
10664 if ftype == TType.STOP:
10667 if ftype == TType.STRUCT:
10668 self.
e = TDBException.read(iprot)
10673 iprot.readFieldEnd()
10674 iprot.readStructEnd()
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]))
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()
10692 L = [
'%s=%r' % (key, value)
10693 for key, value
in self.__dict__.items()]
10694 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
10697 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
10700 return not (self == other)
10701 all_structs.append(stop_heap_profile_result)
10702 stop_heap_profile_result.thrift_spec = (
10704 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
10723 iprot.readStructBegin()
10725 (fname, ftype, fid) = iprot.readFieldBegin()
10726 if ftype == TType.STOP:
10729 if ftype == TType.STRING:
10730 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
10735 iprot.readFieldEnd()
10736 iprot.readStructEnd()
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]))
10742 oprot.writeStructBegin(
'get_heap_profile_args')
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()
10754 L = [
'%s=%r' % (key, value)
10755 for key, value
in self.__dict__.items()]
10756 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
10759 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
10762 return not (self == other)
10763 all_structs.append(get_heap_profile_args)
10764 get_heap_profile_args.thrift_spec = (
10766 (1, TType.STRING,
'session',
'UTF8',
None, ),
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])
10787 iprot.readStructBegin()
10789 (fname, ftype, fid) = iprot.readFieldBegin()
10790 if ftype == TType.STOP:
10793 if ftype == TType.STRING:
10794 self.
success = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
10798 if ftype == TType.STRUCT:
10799 self.
e = TDBException.read(iprot)
10804 iprot.readFieldEnd()
10805 iprot.readStructEnd()
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]))
10811 oprot.writeStructBegin(
'get_heap_profile_result')
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()
10827 L = [
'%s=%r' % (key, value)
10828 for key, value
in self.__dict__.items()]
10829 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
10832 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
10839 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
10860 iprot.readStructBegin()
10862 (fname, ftype, fid) = iprot.readFieldBegin()
10863 if ftype == TType.STOP:
10866 if ftype == TType.STRING:
10867 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
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()
10877 iprot.readFieldEnd()
10878 iprot.readStructEnd()
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]))
10884 oprot.writeStructBegin(
'get_memory_args')
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()
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()
10900 L = [
'%s=%r' % (key, value)
10901 for key, value
in self.__dict__.items()]
10902 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
10905 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
10908 return not (self == other)
10909 all_structs.append(get_memory_args)
10910 get_memory_args.thrift_spec = (
10912 (1, TType.STRING,
'session',
'UTF8',
None, ),
10913 (2, TType.STRING,
'memory_level',
'UTF8',
None, ),
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])
10934 iprot.readStructBegin()
10936 (fname, ftype, fid) = iprot.readFieldBegin()
10937 if ftype == TType.STOP:
10940 if ftype == TType.LIST:
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()
10951 if ftype == TType.STRUCT:
10952 self.
e = TDBException.read(iprot)
10957 iprot.readFieldEnd()
10958 iprot.readStructEnd()
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]))
10964 oprot.writeStructBegin(
'get_memory_result')
10966 oprot.writeFieldBegin(
'success', TType.LIST, 0)
10967 oprot.writeListBegin(TType.STRUCT, len(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()
10983 L = [
'%s=%r' % (key, value)
10984 for key, value
in self.__dict__.items()]
10985 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
10988 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
10995 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
11014 iprot.readStructBegin()
11016 (fname, ftype, fid) = iprot.readFieldBegin()
11017 if ftype == TType.STOP:
11020 if ftype == TType.STRING:
11021 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
11026 iprot.readFieldEnd()
11027 iprot.readStructEnd()
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]))
11033 oprot.writeStructBegin(
'clear_cpu_memory_args')
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()
11045 L = [
'%s=%r' % (key, value)
11046 for key, value
in self.__dict__.items()]
11047 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
11050 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
11053 return not (self == other)
11054 all_structs.append(clear_cpu_memory_args)
11055 clear_cpu_memory_args.thrift_spec = (
11057 (1, TType.STRING,
'session',
'UTF8',
None, ),
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])
11076 iprot.readStructBegin()
11078 (fname, ftype, fid) = iprot.readFieldBegin()
11079 if ftype == TType.STOP:
11082 if ftype == TType.STRUCT:
11083 self.
e = TDBException.read(iprot)
11088 iprot.readFieldEnd()
11089 iprot.readStructEnd()
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]))
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()
11107 L = [
'%s=%r' % (key, value)
11108 for key, value
in self.__dict__.items()]
11109 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
11112 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
11115 return not (self == other)
11116 all_structs.append(clear_cpu_memory_result)
11117 clear_cpu_memory_result.thrift_spec = (
11119 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
11138 iprot.readStructBegin()
11140 (fname, ftype, fid) = iprot.readFieldBegin()
11141 if ftype == TType.STOP:
11144 if ftype == TType.STRING:
11145 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
11150 iprot.readFieldEnd()
11151 iprot.readStructEnd()
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]))
11157 oprot.writeStructBegin(
'clear_gpu_memory_args')
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()
11169 L = [
'%s=%r' % (key, value)
11170 for key, value
in self.__dict__.items()]
11171 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
11174 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
11177 return not (self == other)
11178 all_structs.append(clear_gpu_memory_args)
11179 clear_gpu_memory_args.thrift_spec = (
11181 (1, TType.STRING,
'session',
'UTF8',
None, ),
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])
11200 iprot.readStructBegin()
11202 (fname, ftype, fid) = iprot.readFieldBegin()
11203 if ftype == TType.STOP:
11206 if ftype == TType.STRUCT:
11207 self.
e = TDBException.read(iprot)
11212 iprot.readFieldEnd()
11213 iprot.readStructEnd()
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]))
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()
11231 L = [
'%s=%r' % (key, value)
11232 for key, value
in self.__dict__.items()]
11233 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
11236 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
11239 return not (self == other)
11240 all_structs.append(clear_gpu_memory_result)
11241 clear_gpu_memory_result.thrift_spec = (
11243 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
11254 - for_running_query_kernel
11259 def __init__(self, parent_session=None, leaf_session=None, start_time_str=None, label=None, for_running_query_kernel=None,):
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])
11270 iprot.readStructBegin()
11272 (fname, ftype, fid) = iprot.readFieldBegin()
11273 if ftype == TType.STOP:
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()
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()
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()
11291 if ftype == TType.STRING:
11292 self.
label = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
11296 if ftype == TType.BOOL:
11302 iprot.readFieldEnd()
11303 iprot.readStructEnd()
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]))
11309 oprot.writeStructBegin(
'set_cur_session_args')
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()
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()
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()
11327 oprot.writeFieldBegin(
'for_running_query_kernel', TType.BOOL, 5)
11329 oprot.writeFieldEnd()
11330 oprot.writeFieldStop()
11331 oprot.writeStructEnd()
11337 L = [
'%s=%r' % (key, value)
11338 for key, value
in self.__dict__.items()]
11339 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
11342 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
11345 return not (self == other)
11346 all_structs.append(set_cur_session_args)
11347 set_cur_session_args.thrift_spec = (
11349 (1, TType.STRING,
'parent_session',
'UTF8',
None, ),
11350 (2, TType.STRING,
'leaf_session',
'UTF8',
None, ),
11351 (3, TType.STRING,
'start_time_str',
'UTF8',
None, ),
11352 (4, TType.STRING,
'label',
'UTF8',
None, ),
11353 (5, TType.BOOL,
'for_running_query_kernel',
None,
None, ),
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])
11372 iprot.readStructBegin()
11374 (fname, ftype, fid) = iprot.readFieldBegin()
11375 if ftype == TType.STOP:
11378 if ftype == TType.STRUCT:
11379 self.
e = TDBException.read(iprot)
11384 iprot.readFieldEnd()
11385 iprot.readStructEnd()
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]))
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()
11403 L = [
'%s=%r' % (key, value)
11404 for key, value
in self.__dict__.items()]
11405 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
11408 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
11411 return not (self == other)
11412 all_structs.append(set_cur_session_result)
11413 set_cur_session_result.thrift_spec = (
11415 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
11426 - for_running_query_kernel
11431 def __init__(self, parent_session=None, leaf_session=None, start_time_str=None, label=None, for_running_query_kernel=None,):
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])
11442 iprot.readStructBegin()
11444 (fname, ftype, fid) = iprot.readFieldBegin()
11445 if ftype == TType.STOP:
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()
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()
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()
11463 if ftype == TType.STRING:
11464 self.
label = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
11468 if ftype == TType.BOOL:
11474 iprot.readFieldEnd()
11475 iprot.readStructEnd()
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]))
11481 oprot.writeStructBegin(
'invalidate_cur_session_args')
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()
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()
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()
11499 oprot.writeFieldBegin(
'for_running_query_kernel', TType.BOOL, 5)
11501 oprot.writeFieldEnd()
11502 oprot.writeFieldStop()
11503 oprot.writeStructEnd()
11509 L = [
'%s=%r' % (key, value)
11510 for key, value
in self.__dict__.items()]
11511 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
11514 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
11517 return not (self == other)
11518 all_structs.append(invalidate_cur_session_args)
11519 invalidate_cur_session_args.thrift_spec = (
11521 (1, TType.STRING,
'parent_session',
'UTF8',
None, ),
11522 (2, TType.STRING,
'leaf_session',
'UTF8',
None, ),
11523 (3, TType.STRING,
'start_time_str',
'UTF8',
None, ),
11524 (4, TType.STRING,
'label',
'UTF8',
None, ),
11525 (5, TType.BOOL,
'for_running_query_kernel',
None,
None, ),
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])
11544 iprot.readStructBegin()
11546 (fname, ftype, fid) = iprot.readFieldBegin()
11547 if ftype == TType.STOP:
11550 if ftype == TType.STRUCT:
11551 self.
e = TDBException.read(iprot)
11556 iprot.readFieldEnd()
11557 iprot.readStructEnd()
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]))
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()
11575 L = [
'%s=%r' % (key, value)
11576 for key, value
in self.__dict__.items()]
11577 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
11580 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
11583 return not (self == other)
11584 all_structs.append(invalidate_cur_session_result)
11585 invalidate_cur_session_result.thrift_spec = (
11587 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
11602 def __init__(self, session=None, db_id=None, table_id=None, new_epoch=None,):
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])
11612 iprot.readStructBegin()
11614 (fname, ftype, fid) = iprot.readFieldBegin()
11615 if ftype == TType.STOP:
11618 if ftype == TType.STRING:
11619 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
11623 if ftype == TType.I32:
11624 self.
db_id = iprot.readI32()
11628 if ftype == TType.I32:
11633 if ftype == TType.I32:
11639 iprot.readFieldEnd()
11640 iprot.readStructEnd()
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]))
11646 oprot.writeStructBegin(
'set_table_epoch_args')
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()
11656 oprot.writeFieldBegin(
'table_id', TType.I32, 3)
11658 oprot.writeFieldEnd()
11660 oprot.writeFieldBegin(
'new_epoch', TType.I32, 4)
11662 oprot.writeFieldEnd()
11663 oprot.writeFieldStop()
11664 oprot.writeStructEnd()
11670 L = [
'%s=%r' % (key, value)
11671 for key, value
in self.__dict__.items()]
11672 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
11675 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
11678 return not (self == other)
11679 all_structs.append(set_table_epoch_args)
11680 set_table_epoch_args.thrift_spec = (
11682 (1, TType.STRING,
'session',
'UTF8',
None, ),
11683 (2, TType.I32,
'db_id',
None,
None, ),
11684 (3, TType.I32,
'table_id',
None,
None, ),
11685 (4, TType.I32,
'new_epoch',
None,
None, ),
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])
11704 iprot.readStructBegin()
11706 (fname, ftype, fid) = iprot.readFieldBegin()
11707 if ftype == TType.STOP:
11710 if ftype == TType.STRUCT:
11711 self.
e = TDBException.read(iprot)
11716 iprot.readFieldEnd()
11717 iprot.readStructEnd()
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]))
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()
11735 L = [
'%s=%r' % (key, value)
11736 for key, value
in self.__dict__.items()]
11737 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
11740 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
11743 return not (self == other)
11744 all_structs.append(set_table_epoch_result)
11745 set_table_epoch_result.thrift_spec = (
11747 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
11761 def __init__(self, session=None, table_name=None, new_epoch=None,):
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])
11770 iprot.readStructBegin()
11772 (fname, ftype, fid) = iprot.readFieldBegin()
11773 if ftype == TType.STOP:
11776 if ftype == TType.STRING:
11777 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
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()
11786 if ftype == TType.I32:
11792 iprot.readFieldEnd()
11793 iprot.readStructEnd()
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]))
11799 oprot.writeStructBegin(
'set_table_epoch_by_name_args')
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()
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()
11809 oprot.writeFieldBegin(
'new_epoch', TType.I32, 3)
11811 oprot.writeFieldEnd()
11812 oprot.writeFieldStop()
11813 oprot.writeStructEnd()
11819 L = [
'%s=%r' % (key, value)
11820 for key, value
in self.__dict__.items()]
11821 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
11824 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
11827 return not (self == other)
11828 all_structs.append(set_table_epoch_by_name_args)
11829 set_table_epoch_by_name_args.thrift_spec = (
11831 (1, TType.STRING,
'session',
'UTF8',
None, ),
11832 (2, TType.STRING,
'table_name',
'UTF8',
None, ),
11833 (3, TType.I32,
'new_epoch',
None,
None, ),
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])
11852 iprot.readStructBegin()
11854 (fname, ftype, fid) = iprot.readFieldBegin()
11855 if ftype == TType.STOP:
11858 if ftype == TType.STRUCT:
11859 self.
e = TDBException.read(iprot)
11864 iprot.readFieldEnd()
11865 iprot.readStructEnd()
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]))
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()
11883 L = [
'%s=%r' % (key, value)
11884 for key, value
in self.__dict__.items()]
11885 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
11888 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
11891 return not (self == other)
11892 all_structs.append(set_table_epoch_by_name_result)
11893 set_table_epoch_by_name_result.thrift_spec = (
11895 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
11909 def __init__(self, session=None, db_id=None, table_id=None,):
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])
11918 iprot.readStructBegin()
11920 (fname, ftype, fid) = iprot.readFieldBegin()
11921 if ftype == TType.STOP:
11924 if ftype == TType.STRING:
11925 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
11929 if ftype == TType.I32:
11930 self.
db_id = iprot.readI32()
11934 if ftype == TType.I32:
11940 iprot.readFieldEnd()
11941 iprot.readStructEnd()
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]))
11947 oprot.writeStructBegin(
'get_table_epoch_args')
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()
11957 oprot.writeFieldBegin(
'table_id', TType.I32, 3)
11959 oprot.writeFieldEnd()
11960 oprot.writeFieldStop()
11961 oprot.writeStructEnd()
11967 L = [
'%s=%r' % (key, value)
11968 for key, value
in self.__dict__.items()]
11969 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
11972 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
11975 return not (self == other)
11976 all_structs.append(get_table_epoch_args)
11977 get_table_epoch_args.thrift_spec = (
11979 (1, TType.STRING,
'session',
'UTF8',
None, ),
11980 (2, TType.I32,
'db_id',
None,
None, ),
11981 (3, TType.I32,
'table_id',
None,
None, ),
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])
12000 iprot.readStructBegin()
12002 (fname, ftype, fid) = iprot.readFieldBegin()
12003 if ftype == TType.STOP:
12006 if ftype == TType.I32:
12007 self.
success = iprot.readI32()
12012 iprot.readFieldEnd()
12013 iprot.readStructEnd()
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]))
12019 oprot.writeStructBegin(
'get_table_epoch_result')
12021 oprot.writeFieldBegin(
'success', TType.I32, 0)
12023 oprot.writeFieldEnd()
12024 oprot.writeFieldStop()
12025 oprot.writeStructEnd()
12031 L = [
'%s=%r' % (key, value)
12032 for key, value
in self.__dict__.items()]
12033 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
12036 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
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])
12063 iprot.readStructBegin()
12065 (fname, ftype, fid) = iprot.readFieldBegin()
12066 if ftype == TType.STOP:
12069 if ftype == TType.STRING:
12070 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
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()
12080 iprot.readFieldEnd()
12081 iprot.readStructEnd()
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]))
12087 oprot.writeStructBegin(
'get_table_epoch_by_name_args')
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()
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()
12103 L = [
'%s=%r' % (key, value)
12104 for key, value
in self.__dict__.items()]
12105 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
12108 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
12111 return not (self == other)
12112 all_structs.append(get_table_epoch_by_name_args)
12113 get_table_epoch_by_name_args.thrift_spec = (
12115 (1, TType.STRING,
'session',
'UTF8',
None, ),
12116 (2, TType.STRING,
'table_name',
'UTF8',
None, ),
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])
12135 iprot.readStructBegin()
12137 (fname, ftype, fid) = iprot.readFieldBegin()
12138 if ftype == TType.STOP:
12141 if ftype == TType.I32:
12142 self.
success = iprot.readI32()
12147 iprot.readFieldEnd()
12148 iprot.readStructEnd()
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]))
12154 oprot.writeStructBegin(
'get_table_epoch_by_name_result')
12156 oprot.writeFieldBegin(
'success', TType.I32, 0)
12158 oprot.writeFieldEnd()
12159 oprot.writeFieldStop()
12160 oprot.writeStructEnd()
12166 L = [
'%s=%r' % (key, value)
12167 for key, value
in self.__dict__.items()]
12168 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
12171 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
12191 def __init__(self, session=None, db_id=None, table_id=None,):
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])
12200 iprot.readStructBegin()
12202 (fname, ftype, fid) = iprot.readFieldBegin()
12203 if ftype == TType.STOP:
12206 if ftype == TType.STRING:
12207 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
12211 if ftype == TType.I32:
12212 self.
db_id = iprot.readI32()
12216 if ftype == TType.I32:
12222 iprot.readFieldEnd()
12223 iprot.readStructEnd()
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]))
12229 oprot.writeStructBegin(
'get_table_epochs_args')
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()
12239 oprot.writeFieldBegin(
'table_id', TType.I32, 3)
12241 oprot.writeFieldEnd()
12242 oprot.writeFieldStop()
12243 oprot.writeStructEnd()
12249 L = [
'%s=%r' % (key, value)
12250 for key, value
in self.__dict__.items()]
12251 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
12254 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
12257 return not (self == other)
12258 all_structs.append(get_table_epochs_args)
12259 get_table_epochs_args.thrift_spec = (
12261 (1, TType.STRING,
'session',
'UTF8',
None, ),
12262 (2, TType.I32,
'db_id',
None,
None, ),
12263 (3, TType.I32,
'table_id',
None,
None, ),
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])
12282 iprot.readStructBegin()
12284 (fname, ftype, fid) = iprot.readFieldBegin()
12285 if ftype == TType.STOP:
12288 if ftype == TType.LIST:
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()
12300 iprot.readFieldEnd()
12301 iprot.readStructEnd()
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]))
12307 oprot.writeStructBegin(
'get_table_epochs_result')
12309 oprot.writeFieldBegin(
'success', TType.LIST, 0)
12310 oprot.writeListBegin(TType.STRUCT, len(self.
success))
12312 iter352.write(oprot)
12313 oprot.writeListEnd()
12314 oprot.writeFieldEnd()
12315 oprot.writeFieldStop()
12316 oprot.writeStructEnd()
12322 L = [
'%s=%r' % (key, value)
12323 for key, value
in self.__dict__.items()]
12324 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
12327 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
12347 def __init__(self, session=None, db_id=None, table_epochs=None,):
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])
12356 iprot.readStructBegin()
12358 (fname, ftype, fid) = iprot.readFieldBegin()
12359 if ftype == TType.STOP:
12362 if ftype == TType.STRING:
12363 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
12367 if ftype == TType.I32:
12368 self.
db_id = iprot.readI32()
12372 if ftype == TType.LIST:
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()
12384 iprot.readFieldEnd()
12385 iprot.readStructEnd()
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]))
12391 oprot.writeStructBegin(
'set_table_epochs_args')
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()
12401 oprot.writeFieldBegin(
'table_epochs', TType.LIST, 3)
12402 oprot.writeListBegin(TType.STRUCT, len(self.
table_epochs))
12404 iter359.write(oprot)
12405 oprot.writeListEnd()
12406 oprot.writeFieldEnd()
12407 oprot.writeFieldStop()
12408 oprot.writeStructEnd()
12414 L = [
'%s=%r' % (key, value)
12415 for key, value
in self.__dict__.items()]
12416 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
12419 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
12422 return not (self == other)
12423 all_structs.append(set_table_epochs_args)
12424 set_table_epochs_args.thrift_spec = (
12426 (1, TType.STRING,
'session',
'UTF8',
None, ),
12427 (2, TType.I32,
'db_id',
None,
None, ),
12428 (3, TType.LIST,
'table_epochs', (TType.STRUCT, [TTableEpochInfo,
None],
False),
None, ),
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])
12439 iprot.readStructBegin()
12441 (fname, ftype, fid) = iprot.readFieldBegin()
12442 if ftype == TType.STOP:
12446 iprot.readFieldEnd()
12447 iprot.readStructEnd()
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]))
12453 oprot.writeStructBegin(
'set_table_epochs_result')
12454 oprot.writeFieldStop()
12455 oprot.writeStructEnd()
12461 L = [
'%s=%r' % (key, value)
12462 for key, value
in self.__dict__.items()]
12463 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
12466 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
12469 return not (self == other)
12470 all_structs.append(set_table_epochs_result)
12471 set_table_epochs_result.thrift_spec = (
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])
12490 iprot.readStructBegin()
12492 (fname, ftype, fid) = iprot.readFieldBegin()
12493 if ftype == TType.STOP:
12496 if ftype == TType.STRING:
12497 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
12502 iprot.readFieldEnd()
12503 iprot.readStructEnd()
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]))
12509 oprot.writeStructBegin(
'get_session_info_args')
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()
12521 L = [
'%s=%r' % (key, value)
12522 for key, value
in self.__dict__.items()]
12523 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
12526 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
12529 return not (self == other)
12530 all_structs.append(get_session_info_args)
12531 get_session_info_args.thrift_spec = (
12533 (1, TType.STRING,
'session',
'UTF8',
None, ),
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])
12554 iprot.readStructBegin()
12556 (fname, ftype, fid) = iprot.readFieldBegin()
12557 if ftype == TType.STOP:
12560 if ftype == TType.STRUCT:
12561 self.
success = TSessionInfo()
12562 self.success.read(iprot)
12566 if ftype == TType.STRUCT:
12567 self.
e = TDBException.read(iprot)
12572 iprot.readFieldEnd()
12573 iprot.readStructEnd()
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]))
12579 oprot.writeStructBegin(
'get_session_info_result')
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()
12595 L = [
'%s=%r' % (key, value)
12596 for key, value
in self.__dict__.items()]
12597 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
12600 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
12607 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
12626 iprot.readStructBegin()
12628 (fname, ftype, fid) = iprot.readFieldBegin()
12629 if ftype == TType.STOP:
12632 if ftype == TType.STRING:
12633 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
12638 iprot.readFieldEnd()
12639 iprot.readStructEnd()
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]))
12645 oprot.writeStructBegin(
'get_queries_info_args')
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()
12657 L = [
'%s=%r' % (key, value)
12658 for key, value
in self.__dict__.items()]
12659 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
12662 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
12665 return not (self == other)
12666 all_structs.append(get_queries_info_args)
12667 get_queries_info_args.thrift_spec = (
12669 (1, TType.STRING,
'session',
'UTF8',
None, ),
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])
12690 iprot.readStructBegin()
12692 (fname, ftype, fid) = iprot.readFieldBegin()
12693 if ftype == TType.STOP:
12696 if ftype == TType.LIST:
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()
12707 if ftype == TType.STRUCT:
12708 self.
e = TDBException.read(iprot)
12713 iprot.readFieldEnd()
12714 iprot.readStructEnd()
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]))
12720 oprot.writeStructBegin(
'get_queries_info_result')
12722 oprot.writeFieldBegin(
'success', TType.LIST, 0)
12723 oprot.writeListBegin(TType.STRUCT, len(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()
12739 L = [
'%s=%r' % (key, value)
12740 for key, value
in self.__dict__.items()]
12741 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
12744 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
12751 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
12772 iprot.readStructBegin()
12774 (fname, ftype, fid) = iprot.readFieldBegin()
12775 if ftype == TType.STOP:
12778 if ftype == TType.STRING:
12779 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
12783 if ftype == TType.STRUCT:
12785 self.leaf_info.read(iprot)
12790 iprot.readFieldEnd()
12791 iprot.readStructEnd()
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]))
12797 oprot.writeStructBegin(
'set_leaf_info_args')
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()
12803 oprot.writeFieldBegin(
'leaf_info', TType.STRUCT, 2)
12804 self.leaf_info.write(oprot)
12805 oprot.writeFieldEnd()
12806 oprot.writeFieldStop()
12807 oprot.writeStructEnd()
12813 L = [
'%s=%r' % (key, value)
12814 for key, value
in self.__dict__.items()]
12815 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
12818 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
12821 return not (self == other)
12822 all_structs.append(set_leaf_info_args)
12823 set_leaf_info_args.thrift_spec = (
12825 (1, TType.STRING,
'session',
'UTF8',
None, ),
12826 (2, TType.STRUCT,
'leaf_info', [TLeafInfo,
None],
None, ),
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])
12845 iprot.readStructBegin()
12847 (fname, ftype, fid) = iprot.readFieldBegin()
12848 if ftype == TType.STOP:
12851 if ftype == TType.STRUCT:
12852 self.
e = TDBException.read(iprot)
12857 iprot.readFieldEnd()
12858 iprot.readStructEnd()
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]))
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()
12876 L = [
'%s=%r' % (key, value)
12877 for key, value
in self.__dict__.items()]
12878 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
12881 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
12884 return not (self == other)
12885 all_structs.append(set_leaf_info_result)
12886 set_leaf_info_result.thrift_spec = (
12888 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
12905 def __init__(self, session=None, query=None, column_format=None, nonce=None, first_n=-1, at_most_n=-1,):
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])
12917 iprot.readStructBegin()
12919 (fname, ftype, fid) = iprot.readFieldBegin()
12920 if ftype == TType.STOP:
12923 if ftype == TType.STRING:
12924 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
12928 if ftype == TType.STRING:
12929 self.
query = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
12933 if ftype == TType.BOOL:
12938 if ftype == TType.STRING:
12939 self.
nonce = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
12943 if ftype == TType.I32:
12944 self.
first_n = iprot.readI32()
12948 if ftype == TType.I32:
12954 iprot.readFieldEnd()
12955 iprot.readStructEnd()
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]))
12961 oprot.writeStructBegin(
'sql_execute_args')
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()
12971 oprot.writeFieldBegin(
'column_format', TType.BOOL, 3)
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()
12979 oprot.writeFieldBegin(
'first_n', TType.I32, 5)
12981 oprot.writeFieldEnd()
12983 oprot.writeFieldBegin(
'at_most_n', TType.I32, 6)
12985 oprot.writeFieldEnd()
12986 oprot.writeFieldStop()
12987 oprot.writeStructEnd()
12993 L = [
'%s=%r' % (key, value)
12994 for key, value
in self.__dict__.items()]
12995 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
12998 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
13001 return not (self == other)
13002 all_structs.append(sql_execute_args)
13003 sql_execute_args.thrift_spec = (
13005 (1, TType.STRING,
'session',
'UTF8',
None, ),
13006 (2, TType.STRING,
'query',
'UTF8',
None, ),
13007 (3, TType.BOOL,
'column_format',
None,
None, ),
13008 (4, TType.STRING,
'nonce',
'UTF8',
None, ),
13009 (5, TType.I32,
'first_n',
None, -1, ),
13010 (6, TType.I32,
'at_most_n',
None, -1, ),
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])
13031 iprot.readStructBegin()
13033 (fname, ftype, fid) = iprot.readFieldBegin()
13034 if ftype == TType.STOP:
13037 if ftype == TType.STRUCT:
13038 self.
success = TQueryResult()
13039 self.success.read(iprot)
13043 if ftype == TType.STRUCT:
13044 self.
e = TDBException.read(iprot)
13049 iprot.readFieldEnd()
13050 iprot.readStructEnd()
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]))
13056 oprot.writeStructBegin(
'sql_execute_result')
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()
13072 L = [
'%s=%r' % (key, value)
13073 for key, value
in self.__dict__.items()]
13074 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
13077 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
13084 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
13101 def __init__(self, session=None, query=None, device_type=None, device_id=0, first_n=-1, transport_method=None,):
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])
13113 iprot.readStructBegin()
13115 (fname, ftype, fid) = iprot.readFieldBegin()
13116 if ftype == TType.STOP:
13119 if ftype == TType.STRING:
13120 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
13124 if ftype == TType.STRING:
13125 self.
query = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
13129 if ftype == TType.I32:
13134 if ftype == TType.I32:
13139 if ftype == TType.I32:
13140 self.
first_n = iprot.readI32()
13144 if ftype == TType.I32:
13150 iprot.readFieldEnd()
13151 iprot.readStructEnd()
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]))
13157 oprot.writeStructBegin(
'sql_execute_df_args')
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()
13167 oprot.writeFieldBegin(
'device_type', TType.I32, 3)
13169 oprot.writeFieldEnd()
13171 oprot.writeFieldBegin(
'device_id', TType.I32, 4)
13173 oprot.writeFieldEnd()
13175 oprot.writeFieldBegin(
'first_n', TType.I32, 5)
13177 oprot.writeFieldEnd()
13179 oprot.writeFieldBegin(
'transport_method', TType.I32, 6)
13181 oprot.writeFieldEnd()
13182 oprot.writeFieldStop()
13183 oprot.writeStructEnd()
13189 L = [
'%s=%r' % (key, value)
13190 for key, value
in self.__dict__.items()]
13191 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
13194 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
13197 return not (self == other)
13198 all_structs.append(sql_execute_df_args)
13199 sql_execute_df_args.thrift_spec = (
13201 (1, TType.STRING,
'session',
'UTF8',
None, ),
13202 (2, TType.STRING,
'query',
'UTF8',
None, ),
13203 (3, TType.I32,
'device_type',
None,
None, ),
13204 (4, TType.I32,
'device_id',
None, 0, ),
13205 (5, TType.I32,
'first_n',
None, -1, ),
13206 (6, TType.I32,
'transport_method',
None,
None, ),
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])
13227 iprot.readStructBegin()
13229 (fname, ftype, fid) = iprot.readFieldBegin()
13230 if ftype == TType.STOP:
13233 if ftype == TType.STRUCT:
13235 self.success.read(iprot)
13239 if ftype == TType.STRUCT:
13240 self.
e = TDBException.read(iprot)
13245 iprot.readFieldEnd()
13246 iprot.readStructEnd()
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]))
13252 oprot.writeStructBegin(
'sql_execute_df_result')
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()
13268 L = [
'%s=%r' % (key, value)
13269 for key, value
in self.__dict__.items()]
13270 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
13273 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
13280 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
13295 def __init__(self, session=None, query=None, device_id=0, first_n=-1,):
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])
13305 iprot.readStructBegin()
13307 (fname, ftype, fid) = iprot.readFieldBegin()
13308 if ftype == TType.STOP:
13311 if ftype == TType.STRING:
13312 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
13316 if ftype == TType.STRING:
13317 self.
query = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
13321 if ftype == TType.I32:
13326 if ftype == TType.I32:
13327 self.
first_n = iprot.readI32()
13332 iprot.readFieldEnd()
13333 iprot.readStructEnd()
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]))
13339 oprot.writeStructBegin(
'sql_execute_gdf_args')
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()
13349 oprot.writeFieldBegin(
'device_id', TType.I32, 3)
13351 oprot.writeFieldEnd()
13353 oprot.writeFieldBegin(
'first_n', TType.I32, 4)
13355 oprot.writeFieldEnd()
13356 oprot.writeFieldStop()
13357 oprot.writeStructEnd()
13363 L = [
'%s=%r' % (key, value)
13364 for key, value
in self.__dict__.items()]
13365 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
13368 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
13371 return not (self == other)
13372 all_structs.append(sql_execute_gdf_args)
13373 sql_execute_gdf_args.thrift_spec = (
13375 (1, TType.STRING,
'session',
'UTF8',
None, ),
13376 (2, TType.STRING,
'query',
'UTF8',
None, ),
13377 (3, TType.I32,
'device_id',
None, 0, ),
13378 (4, TType.I32,
'first_n',
None, -1, ),
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])
13399 iprot.readStructBegin()
13401 (fname, ftype, fid) = iprot.readFieldBegin()
13402 if ftype == TType.STOP:
13405 if ftype == TType.STRUCT:
13407 self.success.read(iprot)
13411 if ftype == TType.STRUCT:
13412 self.
e = TDBException.read(iprot)
13417 iprot.readFieldEnd()
13418 iprot.readStructEnd()
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]))
13424 oprot.writeStructBegin(
'sql_execute_gdf_result')
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()
13440 L = [
'%s=%r' % (key, value)
13441 for key, value
in self.__dict__.items()]
13442 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
13445 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
13452 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
13467 def __init__(self, session=None, df=None, device_type=None, device_id=0,):
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])
13477 iprot.readStructBegin()
13479 (fname, ftype, fid) = iprot.readFieldBegin()
13480 if ftype == TType.STOP:
13483 if ftype == TType.STRING:
13484 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
13488 if ftype == TType.STRUCT:
13489 self.
df = TDataFrame()
13490 self.df.read(iprot)
13494 if ftype == TType.I32:
13499 if ftype == TType.I32:
13505 iprot.readFieldEnd()
13506 iprot.readStructEnd()
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]))
13512 oprot.writeStructBegin(
'deallocate_df_args')
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()
13522 oprot.writeFieldBegin(
'device_type', TType.I32, 3)
13524 oprot.writeFieldEnd()
13526 oprot.writeFieldBegin(
'device_id', TType.I32, 4)
13528 oprot.writeFieldEnd()
13529 oprot.writeFieldStop()
13530 oprot.writeStructEnd()
13536 L = [
'%s=%r' % (key, value)
13537 for key, value
in self.__dict__.items()]
13538 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
13541 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
13544 return not (self == other)
13545 all_structs.append(deallocate_df_args)
13546 deallocate_df_args.thrift_spec = (
13548 (1, TType.STRING,
'session',
'UTF8',
None, ),
13549 (2, TType.STRUCT,
'df', [TDataFrame,
None],
None, ),
13550 (3, TType.I32,
'device_type',
None,
None, ),
13551 (4, TType.I32,
'device_id',
None, 0, ),
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])
13570 iprot.readStructBegin()
13572 (fname, ftype, fid) = iprot.readFieldBegin()
13573 if ftype == TType.STOP:
13576 if ftype == TType.STRUCT:
13577 self.
e = TDBException.read(iprot)
13582 iprot.readFieldEnd()
13583 iprot.readStructEnd()
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]))
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()
13601 L = [
'%s=%r' % (key, value)
13602 for key, value
in self.__dict__.items()]
13603 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
13606 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
13609 return not (self == other)
13610 all_structs.append(deallocate_df_result)
13611 deallocate_df_result.thrift_spec = (
13613 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
13621 - interrupt_session
13626 def __init__(self, query_session=None, interrupt_session=None,):
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])
13634 iprot.readStructBegin()
13636 (fname, ftype, fid) = iprot.readFieldBegin()
13637 if ftype == TType.STOP:
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()
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()
13651 iprot.readFieldEnd()
13652 iprot.readStructEnd()
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]))
13658 oprot.writeStructBegin(
'interrupt_args')
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()
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()
13674 L = [
'%s=%r' % (key, value)
13675 for key, value
in self.__dict__.items()]
13676 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
13679 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
13682 return not (self == other)
13683 all_structs.append(interrupt_args)
13684 interrupt_args.thrift_spec = (
13686 (1, TType.STRING,
'query_session',
'UTF8',
None, ),
13687 (2, TType.STRING,
'interrupt_session',
'UTF8',
None, ),
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])
13706 iprot.readStructBegin()
13708 (fname, ftype, fid) = iprot.readFieldBegin()
13709 if ftype == TType.STOP:
13712 if ftype == TType.STRUCT:
13713 self.
e = TDBException.read(iprot)
13718 iprot.readFieldEnd()
13719 iprot.readStructEnd()
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]))
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()
13737 L = [
'%s=%r' % (key, value)
13738 for key, value
in self.__dict__.items()]
13739 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
13742 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
13745 return not (self == other)
13746 all_structs.append(interrupt_result)
13747 interrupt_result.thrift_spec = (
13749 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
13770 iprot.readStructBegin()
13772 (fname, ftype, fid) = iprot.readFieldBegin()
13773 if ftype == TType.STOP:
13776 if ftype == TType.STRING:
13777 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
13781 if ftype == TType.STRING:
13782 self.
query = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
13787 iprot.readFieldEnd()
13788 iprot.readStructEnd()
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]))
13794 oprot.writeStructBegin(
'sql_validate_args')
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()
13810 L = [
'%s=%r' % (key, value)
13811 for key, value
in self.__dict__.items()]
13812 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
13815 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
13818 return not (self == other)
13819 all_structs.append(sql_validate_args)
13820 sql_validate_args.thrift_spec = (
13822 (1, TType.STRING,
'session',
'UTF8',
None, ),
13823 (2, TType.STRING,
'query',
'UTF8',
None, ),
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])
13844 iprot.readStructBegin()
13846 (fname, ftype, fid) = iprot.readFieldBegin()
13847 if ftype == TType.STOP:
13850 if ftype == TType.LIST:
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()
13861 if ftype == TType.STRUCT:
13862 self.
e = TDBException.read(iprot)
13867 iprot.readFieldEnd()
13868 iprot.readStructEnd()
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]))
13874 oprot.writeStructBegin(
'sql_validate_result')
13876 oprot.writeFieldBegin(
'success', TType.LIST, 0)
13877 oprot.writeListBegin(TType.STRUCT, len(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()
13893 L = [
'%s=%r' % (key, value)
13894 for key, value
in self.__dict__.items()]
13895 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
13898 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
13905 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
13928 iprot.readStructBegin()
13930 (fname, ftype, fid) = iprot.readFieldBegin()
13931 if ftype == TType.STOP:
13934 if ftype == TType.STRING:
13935 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
13939 if ftype == TType.STRING:
13940 self.
sql = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
13944 if ftype == TType.I32:
13945 self.
cursor = iprot.readI32()
13950 iprot.readFieldEnd()
13951 iprot.readStructEnd()
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]))
13957 oprot.writeStructBegin(
'get_completion_hints_args')
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()
13977 L = [
'%s=%r' % (key, value)
13978 for key, value
in self.__dict__.items()]
13979 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
13982 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
13985 return not (self == other)
13986 all_structs.append(get_completion_hints_args)
13987 get_completion_hints_args.thrift_spec = (
13989 (1, TType.STRING,
'session',
'UTF8',
None, ),
13990 (2, TType.STRING,
'sql',
'UTF8',
None, ),
13991 (3, TType.I32,
'cursor',
None,
None, ),
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])
14012 iprot.readStructBegin()
14014 (fname, ftype, fid) = iprot.readFieldBegin()
14015 if ftype == TType.STOP:
14018 if ftype == TType.LIST:
14020 (_etype377, _size374) = iprot.readListBegin()
14021 for _i378
in range(_size374):
14023 _elem379.read(iprot)
14024 self.success.append(_elem379)
14025 iprot.readListEnd()
14029 if ftype == TType.STRUCT:
14030 self.
e = TDBException.read(iprot)
14035 iprot.readFieldEnd()
14036 iprot.readStructEnd()
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]))
14042 oprot.writeStructBegin(
'get_completion_hints_result')
14044 oprot.writeFieldBegin(
'success', TType.LIST, 0)
14045 oprot.writeListBegin(TType.STRUCT, len(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()
14061 L = [
'%s=%r' % (key, value)
14062 for key, value
in self.__dict__.items()]
14063 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
14066 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
14069 return not (self == other)
14070 all_structs.append(get_completion_hints_result)
14071 get_completion_hints_result.thrift_spec = (
14073 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
14094 iprot.readStructBegin()
14096 (fname, ftype, fid) = iprot.readFieldBegin()
14097 if ftype == TType.STOP:
14100 if ftype == TType.STRING:
14101 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
14105 if ftype == TType.I32:
14106 self.
mode = iprot.readI32()
14111 iprot.readFieldEnd()
14112 iprot.readStructEnd()
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]))
14118 oprot.writeStructBegin(
'set_execution_mode_args')
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()
14134 L = [
'%s=%r' % (key, value)
14135 for key, value
in self.__dict__.items()]
14136 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
14139 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
14142 return not (self == other)
14143 all_structs.append(set_execution_mode_args)
14144 set_execution_mode_args.thrift_spec = (
14146 (1, TType.STRING,
'session',
'UTF8',
None, ),
14147 (2, TType.I32,
'mode',
None,
None, ),
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])
14166 iprot.readStructBegin()
14168 (fname, ftype, fid) = iprot.readFieldBegin()
14169 if ftype == TType.STOP:
14172 if ftype == TType.STRUCT:
14173 self.
e = TDBException.read(iprot)
14178 iprot.readFieldEnd()
14179 iprot.readStructEnd()
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]))
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()
14197 L = [
'%s=%r' % (key, value)
14198 for key, value
in self.__dict__.items()]
14199 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
14202 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
14205 return not (self == other)
14206 all_structs.append(set_execution_mode_result)
14207 set_execution_mode_result.thrift_spec = (
14209 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
14219 - compression_level
14225 def __init__(self, session=None, widget_id=None, vega_json=None, compression_level=None, nonce=None,):
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])
14236 iprot.readStructBegin()
14238 (fname, ftype, fid) = iprot.readFieldBegin()
14239 if ftype == TType.STOP:
14242 if ftype == TType.STRING:
14243 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
14247 if ftype == TType.I64:
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()
14257 if ftype == TType.I32:
14262 if ftype == TType.STRING:
14263 self.
nonce = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
14268 iprot.readFieldEnd()
14269 iprot.readStructEnd()
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]))
14275 oprot.writeStructBegin(
'render_vega_args')
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()
14281 oprot.writeFieldBegin(
'widget_id', TType.I64, 2)
14283 oprot.writeFieldEnd()
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()
14289 oprot.writeFieldBegin(
'compression_level', TType.I32, 4)
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()
14303 L = [
'%s=%r' % (key, value)
14304 for key, value
in self.__dict__.items()]
14305 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
14308 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
14311 return not (self == other)
14312 all_structs.append(render_vega_args)
14313 render_vega_args.thrift_spec = (
14315 (1, TType.STRING,
'session',
'UTF8',
None, ),
14316 (2, TType.I64,
'widget_id',
None,
None, ),
14317 (3, TType.STRING,
'vega_json',
'UTF8',
None, ),
14318 (4, TType.I32,
'compression_level',
None,
None, ),
14319 (5, TType.STRING,
'nonce',
'UTF8',
None, ),
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])
14340 iprot.readStructBegin()
14342 (fname, ftype, fid) = iprot.readFieldBegin()
14343 if ftype == TType.STOP:
14346 if ftype == TType.STRUCT:
14347 self.
success = TRenderResult()
14348 self.success.read(iprot)
14352 if ftype == TType.STRUCT:
14353 self.
e = TDBException.read(iprot)
14358 iprot.readFieldEnd()
14359 iprot.readStructEnd()
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]))
14365 oprot.writeStructBegin(
'render_vega_result')
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()
14381 L = [
'%s=%r' % (key, value)
14382 for key, value
in self.__dict__.items()]
14383 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
14386 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
14393 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
14411 def __init__(self, session=None, widget_id=None, pixel=None, table_col_names=None, column_format=None, pixelRadius=None, nonce=None,):
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])
14424 iprot.readStructBegin()
14426 (fname, ftype, fid) = iprot.readFieldBegin()
14427 if ftype == TType.STOP:
14430 if ftype == TType.STRING:
14431 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
14435 if ftype == TType.I64:
14440 if ftype == TType.STRUCT:
14441 self.
pixel = TPixel()
14442 self.pixel.read(iprot)
14446 if ftype == TType.MAP:
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()
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()
14462 if ftype == TType.BOOL:
14467 if ftype == TType.I32:
14472 if ftype == TType.STRING:
14473 self.
nonce = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
14478 iprot.readFieldEnd()
14479 iprot.readStructEnd()
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]))
14485 oprot.writeStructBegin(
'get_result_row_for_pixel_args')
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()
14491 oprot.writeFieldBegin(
'widget_id', TType.I64, 2)
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()
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()
14510 oprot.writeFieldBegin(
'column_format', TType.BOOL, 5)
14512 oprot.writeFieldEnd()
14514 oprot.writeFieldBegin(
'pixelRadius', TType.I32, 6)
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()
14528 L = [
'%s=%r' % (key, value)
14529 for key, value
in self.__dict__.items()]
14530 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
14533 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
14536 return not (self == other)
14537 all_structs.append(get_result_row_for_pixel_args)
14538 get_result_row_for_pixel_args.thrift_spec = (
14540 (1, TType.STRING,
'session',
'UTF8',
None, ),
14541 (2, TType.I64,
'widget_id',
None,
None, ),
14542 (3, TType.STRUCT,
'pixel', [TPixel,
None],
None, ),
14543 (4, TType.MAP,
'table_col_names', (TType.STRING,
'UTF8', TType.LIST, (TType.STRING,
'UTF8',
False),
False),
None, ),
14544 (5, TType.BOOL,
'column_format',
None,
None, ),
14545 (6, TType.I32,
'pixelRadius',
None,
None, ),
14546 (7, TType.STRING,
'nonce',
'UTF8',
None, ),
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])
14567 iprot.readStructBegin()
14569 (fname, ftype, fid) = iprot.readFieldBegin()
14570 if ftype == TType.STOP:
14573 if ftype == TType.STRUCT:
14574 self.
success = TPixelTableRowResult()
14575 self.success.read(iprot)
14579 if ftype == TType.STRUCT:
14580 self.
e = TDBException.read(iprot)
14585 iprot.readFieldEnd()
14586 iprot.readStructEnd()
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]))
14592 oprot.writeStructBegin(
'get_result_row_for_pixel_result')
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()
14608 L = [
'%s=%r' % (key, value)
14609 for key, value
in self.__dict__.items()]
14610 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
14613 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
14620 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
14628 - custom_expression
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])
14641 iprot.readStructBegin()
14643 (fname, ftype, fid) = iprot.readFieldBegin()
14644 if ftype == TType.STOP:
14647 if ftype == TType.STRING:
14648 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
14652 if ftype == TType.STRUCT:
14654 self.custom_expression.read(iprot)
14659 iprot.readFieldEnd()
14660 iprot.readStructEnd()
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]))
14666 oprot.writeStructBegin(
'create_custom_expression_args')
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()
14672 oprot.writeFieldBegin(
'custom_expression', TType.STRUCT, 2)
14673 self.custom_expression.write(oprot)
14674 oprot.writeFieldEnd()
14675 oprot.writeFieldStop()
14676 oprot.writeStructEnd()
14682 L = [
'%s=%r' % (key, value)
14683 for key, value
in self.__dict__.items()]
14684 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
14687 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
14690 return not (self == other)
14691 all_structs.append(create_custom_expression_args)
14692 create_custom_expression_args.thrift_spec = (
14694 (1, TType.STRING,
'session',
'UTF8',
None, ),
14695 (2, TType.STRUCT,
'custom_expression', [TCustomExpression,
None],
None, ),
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])
14716 iprot.readStructBegin()
14718 (fname, ftype, fid) = iprot.readFieldBegin()
14719 if ftype == TType.STOP:
14722 if ftype == TType.I32:
14723 self.
success = iprot.readI32()
14727 if ftype == TType.STRUCT:
14728 self.
e = TDBException.read(iprot)
14733 iprot.readFieldEnd()
14734 iprot.readStructEnd()
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]))
14740 oprot.writeStructBegin(
'create_custom_expression_result')
14742 oprot.writeFieldBegin(
'success', TType.I32, 0)
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()
14756 L = [
'%s=%r' % (key, value)
14757 for key, value
in self.__dict__.items()]
14758 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
14761 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
14768 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
14787 iprot.readStructBegin()
14789 (fname, ftype, fid) = iprot.readFieldBegin()
14790 if ftype == TType.STOP:
14793 if ftype == TType.STRING:
14794 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
14799 iprot.readFieldEnd()
14800 iprot.readStructEnd()
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]))
14806 oprot.writeStructBegin(
'get_custom_expressions_args')
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()
14818 L = [
'%s=%r' % (key, value)
14819 for key, value
in self.__dict__.items()]
14820 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
14823 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
14826 return not (self == other)
14827 all_structs.append(get_custom_expressions_args)
14828 get_custom_expressions_args.thrift_spec = (
14830 (1, TType.STRING,
'session',
'UTF8',
None, ),
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])
14851 iprot.readStructBegin()
14853 (fname, ftype, fid) = iprot.readFieldBegin()
14854 if ftype == TType.STOP:
14857 if ftype == TType.LIST:
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()
14868 if ftype == TType.STRUCT:
14869 self.
e = TDBException.read(iprot)
14874 iprot.readFieldEnd()
14875 iprot.readStructEnd()
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]))
14881 oprot.writeStructBegin(
'get_custom_expressions_result')
14883 oprot.writeFieldBegin(
'success', TType.LIST, 0)
14884 oprot.writeListBegin(TType.STRUCT, len(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()
14900 L = [
'%s=%r' % (key, value)
14901 for key, value
in self.__dict__.items()]
14902 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
14905 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
14912 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
14926 def __init__(self, session=None, id=None, expression_json=None,):
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])
14935 iprot.readStructBegin()
14937 (fname, ftype, fid) = iprot.readFieldBegin()
14938 if ftype == TType.STOP:
14941 if ftype == TType.STRING:
14942 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
14946 if ftype == TType.I32:
14947 self.
id = iprot.readI32()
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()
14957 iprot.readFieldEnd()
14958 iprot.readStructEnd()
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]))
14964 oprot.writeStructBegin(
'update_custom_expression_args')
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()
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()
14984 L = [
'%s=%r' % (key, value)
14985 for key, value
in self.__dict__.items()]
14986 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
14989 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
14992 return not (self == other)
14993 all_structs.append(update_custom_expression_args)
14994 update_custom_expression_args.thrift_spec = (
14996 (1, TType.STRING,
'session',
'UTF8',
None, ),
14997 (2, TType.I32,
'id',
None,
None, ),
14998 (3, TType.STRING,
'expression_json',
'UTF8',
None, ),
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])
15017 iprot.readStructBegin()
15019 (fname, ftype, fid) = iprot.readFieldBegin()
15020 if ftype == TType.STOP:
15023 if ftype == TType.STRUCT:
15024 self.
e = TDBException.read(iprot)
15029 iprot.readFieldEnd()
15030 iprot.readStructEnd()
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]))
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()
15048 L = [
'%s=%r' % (key, value)
15049 for key, value
in self.__dict__.items()]
15050 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
15053 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
15056 return not (self == other)
15057 all_structs.append(update_custom_expression_result)
15058 update_custom_expression_result.thrift_spec = (
15060 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
15068 - custom_expression_ids
15074 def __init__(self, session=None, custom_expression_ids=None, do_soft_delete=None,):
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])
15083 iprot.readStructBegin()
15085 (fname, ftype, fid) = iprot.readFieldBegin()
15086 if ftype == TType.STOP:
15089 if ftype == TType.STRING:
15090 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
15094 if ftype == TType.LIST:
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()
15104 if ftype == TType.BOOL:
15110 iprot.readFieldEnd()
15111 iprot.readStructEnd()
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]))
15117 oprot.writeStructBegin(
'delete_custom_expressions_args')
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()
15123 oprot.writeFieldBegin(
'custom_expression_ids', TType.LIST, 2)
15126 oprot.writeI32(iter410)
15127 oprot.writeListEnd()
15128 oprot.writeFieldEnd()
15130 oprot.writeFieldBegin(
'do_soft_delete', TType.BOOL, 3)
15132 oprot.writeFieldEnd()
15133 oprot.writeFieldStop()
15134 oprot.writeStructEnd()
15140 L = [
'%s=%r' % (key, value)
15141 for key, value
in self.__dict__.items()]
15142 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
15145 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
15148 return not (self == other)
15149 all_structs.append(delete_custom_expressions_args)
15150 delete_custom_expressions_args.thrift_spec = (
15152 (1, TType.STRING,
'session',
'UTF8',
None, ),
15153 (2, TType.LIST,
'custom_expression_ids', (TType.I32,
None,
False),
None, ),
15154 (3, TType.BOOL,
'do_soft_delete',
None,
None, ),
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])
15173 iprot.readStructBegin()
15175 (fname, ftype, fid) = iprot.readFieldBegin()
15176 if ftype == TType.STOP:
15179 if ftype == TType.STRUCT:
15180 self.
e = TDBException.read(iprot)
15185 iprot.readFieldEnd()
15186 iprot.readStructEnd()
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]))
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()
15204 L = [
'%s=%r' % (key, value)
15205 for key, value
in self.__dict__.items()]
15206 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
15209 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
15212 return not (self == other)
15213 all_structs.append(delete_custom_expressions_result)
15214 delete_custom_expressions_result.thrift_spec = (
15216 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
15237 iprot.readStructBegin()
15239 (fname, ftype, fid) = iprot.readFieldBegin()
15240 if ftype == TType.STOP:
15243 if ftype == TType.STRING:
15244 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
15248 if ftype == TType.I32:
15254 iprot.readFieldEnd()
15255 iprot.readStructEnd()
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]))
15261 oprot.writeStructBegin(
'get_dashboard_args')
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()
15267 oprot.writeFieldBegin(
'dashboard_id', TType.I32, 2)
15269 oprot.writeFieldEnd()
15270 oprot.writeFieldStop()
15271 oprot.writeStructEnd()
15277 L = [
'%s=%r' % (key, value)
15278 for key, value
in self.__dict__.items()]
15279 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
15282 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
15285 return not (self == other)
15286 all_structs.append(get_dashboard_args)
15287 get_dashboard_args.thrift_spec = (
15289 (1, TType.STRING,
'session',
'UTF8',
None, ),
15290 (2, TType.I32,
'dashboard_id',
None,
None, ),
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])
15311 iprot.readStructBegin()
15313 (fname, ftype, fid) = iprot.readFieldBegin()
15314 if ftype == TType.STOP:
15317 if ftype == TType.STRUCT:
15319 self.success.read(iprot)
15323 if ftype == TType.STRUCT:
15324 self.
e = TDBException.read(iprot)
15329 iprot.readFieldEnd()
15330 iprot.readStructEnd()
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]))
15336 oprot.writeStructBegin(
'get_dashboard_result')
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()
15352 L = [
'%s=%r' % (key, value)
15353 for key, value
in self.__dict__.items()]
15354 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
15357 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
15364 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
15383 iprot.readStructBegin()
15385 (fname, ftype, fid) = iprot.readFieldBegin()
15386 if ftype == TType.STOP:
15389 if ftype == TType.STRING:
15390 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
15395 iprot.readFieldEnd()
15396 iprot.readStructEnd()
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]))
15402 oprot.writeStructBegin(
'get_dashboards_args')
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()
15414 L = [
'%s=%r' % (key, value)
15415 for key, value
in self.__dict__.items()]
15416 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
15419 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
15422 return not (self == other)
15423 all_structs.append(get_dashboards_args)
15424 get_dashboards_args.thrift_spec = (
15426 (1, TType.STRING,
'session',
'UTF8',
None, ),
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])
15447 iprot.readStructBegin()
15449 (fname, ftype, fid) = iprot.readFieldBegin()
15450 if ftype == TType.STOP:
15453 if ftype == TType.LIST:
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()
15464 if ftype == TType.STRUCT:
15465 self.
e = TDBException.read(iprot)
15470 iprot.readFieldEnd()
15471 iprot.readStructEnd()
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]))
15477 oprot.writeStructBegin(
'get_dashboards_result')
15479 oprot.writeFieldBegin(
'success', TType.LIST, 0)
15480 oprot.writeListBegin(TType.STRUCT, len(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()
15496 L = [
'%s=%r' % (key, value)
15497 for key, value
in self.__dict__.items()]
15498 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
15501 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
15508 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
15519 - dashboard_metadata
15524 def __init__(self, session=None, dashboard_name=None, dashboard_state=None, image_hash=None, dashboard_metadata=None,):
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])
15535 iprot.readStructBegin()
15537 (fname, ftype, fid) = iprot.readFieldBegin()
15538 if ftype == TType.STOP:
15541 if ftype == TType.STRING:
15542 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
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()
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()
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()
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()
15567 iprot.readFieldEnd()
15568 iprot.readStructEnd()
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]))
15574 oprot.writeStructBegin(
'create_dashboard_args')
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()
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()
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()
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()
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()
15602 L = [
'%s=%r' % (key, value)
15603 for key, value
in self.__dict__.items()]
15604 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
15607 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
15610 return not (self == other)
15611 all_structs.append(create_dashboard_args)
15612 create_dashboard_args.thrift_spec = (
15614 (1, TType.STRING,
'session',
'UTF8',
None, ),
15615 (2, TType.STRING,
'dashboard_name',
'UTF8',
None, ),
15616 (3, TType.STRING,
'dashboard_state',
'UTF8',
None, ),
15617 (4, TType.STRING,
'image_hash',
'UTF8',
None, ),
15618 (5, TType.STRING,
'dashboard_metadata',
'UTF8',
None, ),
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])
15639 iprot.readStructBegin()
15641 (fname, ftype, fid) = iprot.readFieldBegin()
15642 if ftype == TType.STOP:
15645 if ftype == TType.I32:
15646 self.
success = iprot.readI32()
15650 if ftype == TType.STRUCT:
15651 self.
e = TDBException.read(iprot)
15656 iprot.readFieldEnd()
15657 iprot.readStructEnd()
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]))
15663 oprot.writeStructBegin(
'create_dashboard_result')
15665 oprot.writeFieldBegin(
'success', TType.I32, 0)
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()
15679 L = [
'%s=%r' % (key, value)
15680 for key, value
in self.__dict__.items()]
15681 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
15684 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
15691 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
15704 - dashboard_metadata
15709 def __init__(self, session=None, dashboard_id=None, dashboard_name=None, dashboard_owner=None, dashboard_state=None, image_hash=None, dashboard_metadata=None,):
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])
15722 iprot.readStructBegin()
15724 (fname, ftype, fid) = iprot.readFieldBegin()
15725 if ftype == TType.STOP:
15728 if ftype == TType.STRING:
15729 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
15733 if ftype == TType.I32:
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()
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()
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()
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()
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()
15764 iprot.readFieldEnd()
15765 iprot.readStructEnd()
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]))
15771 oprot.writeStructBegin(
'replace_dashboard_args')
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()
15777 oprot.writeFieldBegin(
'dashboard_id', TType.I32, 2)
15779 oprot.writeFieldEnd()
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()
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()
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()
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()
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()
15807 L = [
'%s=%r' % (key, value)
15808 for key, value
in self.__dict__.items()]
15809 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
15812 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
15815 return not (self == other)
15816 all_structs.append(replace_dashboard_args)
15817 replace_dashboard_args.thrift_spec = (
15819 (1, TType.STRING,
'session',
'UTF8',
None, ),
15820 (2, TType.I32,
'dashboard_id',
None,
None, ),
15821 (3, TType.STRING,
'dashboard_name',
'UTF8',
None, ),
15822 (4, TType.STRING,
'dashboard_owner',
'UTF8',
None, ),
15823 (5, TType.STRING,
'dashboard_state',
'UTF8',
None, ),
15824 (6, TType.STRING,
'image_hash',
'UTF8',
None, ),
15825 (7, TType.STRING,
'dashboard_metadata',
'UTF8',
None, ),
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])
15844 iprot.readStructBegin()
15846 (fname, ftype, fid) = iprot.readFieldBegin()
15847 if ftype == TType.STOP:
15850 if ftype == TType.STRUCT:
15851 self.
e = TDBException.read(iprot)
15856 iprot.readFieldEnd()
15857 iprot.readStructEnd()
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]))
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()
15875 L = [
'%s=%r' % (key, value)
15876 for key, value
in self.__dict__.items()]
15877 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
15880 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
15883 return not (self == other)
15884 all_structs.append(replace_dashboard_result)
15885 replace_dashboard_result.thrift_spec = (
15887 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
15908 iprot.readStructBegin()
15910 (fname, ftype, fid) = iprot.readFieldBegin()
15911 if ftype == TType.STOP:
15914 if ftype == TType.STRING:
15915 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
15919 if ftype == TType.I32:
15925 iprot.readFieldEnd()
15926 iprot.readStructEnd()
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]))
15932 oprot.writeStructBegin(
'delete_dashboard_args')
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()
15938 oprot.writeFieldBegin(
'dashboard_id', TType.I32, 2)
15940 oprot.writeFieldEnd()
15941 oprot.writeFieldStop()
15942 oprot.writeStructEnd()
15948 L = [
'%s=%r' % (key, value)
15949 for key, value
in self.__dict__.items()]
15950 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
15953 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
15956 return not (self == other)
15957 all_structs.append(delete_dashboard_args)
15958 delete_dashboard_args.thrift_spec = (
15960 (1, TType.STRING,
'session',
'UTF8',
None, ),
15961 (2, TType.I32,
'dashboard_id',
None,
None, ),
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])
15980 iprot.readStructBegin()
15982 (fname, ftype, fid) = iprot.readFieldBegin()
15983 if ftype == TType.STOP:
15986 if ftype == TType.STRUCT:
15987 self.
e = TDBException.read(iprot)
15992 iprot.readFieldEnd()
15993 iprot.readStructEnd()
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]))
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()
16011 L = [
'%s=%r' % (key, value)
16012 for key, value
in self.__dict__.items()]
16013 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
16016 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
16019 return not (self == other)
16020 all_structs.append(delete_dashboard_result)
16021 delete_dashboard_result.thrift_spec = (
16023 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
16038 def __init__(self, session=None, dashboard_ids=None, groups=None, permissions=None,):
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])
16048 iprot.readStructBegin()
16050 (fname, ftype, fid) = iprot.readFieldBegin()
16051 if ftype == TType.STOP:
16054 if ftype == TType.STRING:
16055 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
16059 if ftype == TType.LIST:
16061 (_etype421, _size418) = iprot.readListBegin()
16062 for _i422
in range(_size418):
16063 _elem423 = iprot.readI32()
16064 self.dashboard_ids.append(_elem423)
16065 iprot.readListEnd()
16069 if ftype == TType.LIST:
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()
16079 if ftype == TType.STRUCT:
16081 self.permissions.read(iprot)
16086 iprot.readFieldEnd()
16087 iprot.readStructEnd()
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]))
16093 oprot.writeStructBegin(
'share_dashboards_args')
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()
16099 oprot.writeFieldBegin(
'dashboard_ids', TType.LIST, 2)
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()
16113 oprot.writeFieldBegin(
'permissions', TType.STRUCT, 4)
16114 self.permissions.write(oprot)
16115 oprot.writeFieldEnd()
16116 oprot.writeFieldStop()
16117 oprot.writeStructEnd()
16123 L = [
'%s=%r' % (key, value)
16124 for key, value
in self.__dict__.items()]
16125 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
16128 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
16131 return not (self == other)
16132 all_structs.append(share_dashboards_args)
16133 share_dashboards_args.thrift_spec = (
16135 (1, TType.STRING,
'session',
'UTF8',
None, ),
16136 (2, TType.LIST,
'dashboard_ids', (TType.I32,
None,
False),
None, ),
16137 (3, TType.LIST,
'groups', (TType.STRING,
'UTF8',
False),
None, ),
16138 (4, TType.STRUCT,
'permissions', [TDashboardPermissions,
None],
None, ),
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])
16157 iprot.readStructBegin()
16159 (fname, ftype, fid) = iprot.readFieldBegin()
16160 if ftype == TType.STOP:
16163 if ftype == TType.STRUCT:
16164 self.
e = TDBException.read(iprot)
16169 iprot.readFieldEnd()
16170 iprot.readStructEnd()
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]))
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()
16188 L = [
'%s=%r' % (key, value)
16189 for key, value
in self.__dict__.items()]
16190 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
16193 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
16196 return not (self == other)
16197 all_structs.append(share_dashboards_result)
16198 share_dashboards_result.thrift_spec = (
16200 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
16221 iprot.readStructBegin()
16223 (fname, ftype, fid) = iprot.readFieldBegin()
16224 if ftype == TType.STOP:
16227 if ftype == TType.STRING:
16228 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
16232 if ftype == TType.LIST:
16234 (_etype435, _size432) = iprot.readListBegin()
16235 for _i436
in range(_size432):
16236 _elem437 = iprot.readI32()
16237 self.dashboard_ids.append(_elem437)
16238 iprot.readListEnd()
16243 iprot.readFieldEnd()
16244 iprot.readStructEnd()
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]))
16250 oprot.writeStructBegin(
'delete_dashboards_args')
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()
16256 oprot.writeFieldBegin(
'dashboard_ids', TType.LIST, 2)
16259 oprot.writeI32(iter438)
16260 oprot.writeListEnd()
16261 oprot.writeFieldEnd()
16262 oprot.writeFieldStop()
16263 oprot.writeStructEnd()
16269 L = [
'%s=%r' % (key, value)
16270 for key, value
in self.__dict__.items()]
16271 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
16274 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
16277 return not (self == other)
16278 all_structs.append(delete_dashboards_args)
16279 delete_dashboards_args.thrift_spec = (
16281 (1, TType.STRING,
'session',
'UTF8',
None, ),
16282 (2, TType.LIST,
'dashboard_ids', (TType.I32,
None,
False),
None, ),
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])
16301 iprot.readStructBegin()
16303 (fname, ftype, fid) = iprot.readFieldBegin()
16304 if ftype == TType.STOP:
16307 if ftype == TType.STRUCT:
16308 self.
e = TDBException.read(iprot)
16313 iprot.readFieldEnd()
16314 iprot.readStructEnd()
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]))
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()
16332 L = [
'%s=%r' % (key, value)
16333 for key, value
in self.__dict__.items()]
16334 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
16337 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
16340 return not (self == other)
16341 all_structs.append(delete_dashboards_result)
16342 delete_dashboards_result.thrift_spec = (
16344 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
16361 def __init__(self, session=None, dashboard_id=None, groups=None, objects=None, permissions=None, grant_role=False,):
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])
16373 iprot.readStructBegin()
16375 (fname, ftype, fid) = iprot.readFieldBegin()
16376 if ftype == TType.STOP:
16379 if ftype == TType.STRING:
16380 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
16384 if ftype == TType.I32:
16389 if ftype == TType.LIST:
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()
16399 if ftype == TType.LIST:
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()
16409 if ftype == TType.STRUCT:
16411 self.permissions.read(iprot)
16415 if ftype == TType.BOOL:
16421 iprot.readFieldEnd()
16422 iprot.readStructEnd()
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]))
16428 oprot.writeStructBegin(
'share_dashboard_args')
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()
16434 oprot.writeFieldBegin(
'dashboard_id', TType.I32, 2)
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()
16445 oprot.writeFieldBegin(
'objects', TType.LIST, 4)
16446 oprot.writeListBegin(TType.STRING, len(self.
objects))
16448 oprot.writeString(iter452.encode(
'utf-8')
if sys.version_info[0] == 2
else iter452)
16449 oprot.writeListEnd()
16450 oprot.writeFieldEnd()
16452 oprot.writeFieldBegin(
'permissions', TType.STRUCT, 5)
16453 self.permissions.write(oprot)
16454 oprot.writeFieldEnd()
16456 oprot.writeFieldBegin(
'grant_role', TType.BOOL, 6)
16458 oprot.writeFieldEnd()
16459 oprot.writeFieldStop()
16460 oprot.writeStructEnd()
16466 L = [
'%s=%r' % (key, value)
16467 for key, value
in self.__dict__.items()]
16468 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
16471 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
16474 return not (self == other)
16475 all_structs.append(share_dashboard_args)
16476 share_dashboard_args.thrift_spec = (
16478 (1, TType.STRING,
'session',
'UTF8',
None, ),
16479 (2, TType.I32,
'dashboard_id',
None,
None, ),
16480 (3, TType.LIST,
'groups', (TType.STRING,
'UTF8',
False),
None, ),
16481 (4, TType.LIST,
'objects', (TType.STRING,
'UTF8',
False),
None, ),
16482 (5, TType.STRUCT,
'permissions', [TDashboardPermissions,
None],
None, ),
16483 (6, TType.BOOL,
'grant_role',
None,
False, ),
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])
16502 iprot.readStructBegin()
16504 (fname, ftype, fid) = iprot.readFieldBegin()
16505 if ftype == TType.STOP:
16508 if ftype == TType.STRUCT:
16509 self.
e = TDBException.read(iprot)
16514 iprot.readFieldEnd()
16515 iprot.readStructEnd()
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]))
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()
16533 L = [
'%s=%r' % (key, value)
16534 for key, value
in self.__dict__.items()]
16535 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
16538 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
16541 return not (self == other)
16542 all_structs.append(share_dashboard_result)
16543 share_dashboard_result.thrift_spec = (
16545 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
16561 def __init__(self, session=None, dashboard_id=None, groups=None, objects=None, permissions=None,):
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])
16572 iprot.readStructBegin()
16574 (fname, ftype, fid) = iprot.readFieldBegin()
16575 if ftype == TType.STOP:
16578 if ftype == TType.STRING:
16579 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
16583 if ftype == TType.I32:
16588 if ftype == TType.LIST:
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()
16598 if ftype == TType.LIST:
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()
16608 if ftype == TType.STRUCT:
16610 self.permissions.read(iprot)
16615 iprot.readFieldEnd()
16616 iprot.readStructEnd()
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]))
16622 oprot.writeStructBegin(
'unshare_dashboard_args')
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()
16628 oprot.writeFieldBegin(
'dashboard_id', TType.I32, 2)
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()
16639 oprot.writeFieldBegin(
'objects', TType.LIST, 4)
16640 oprot.writeListBegin(TType.STRING, len(self.
objects))
16642 oprot.writeString(iter466.encode(
'utf-8')
if sys.version_info[0] == 2
else iter466)
16643 oprot.writeListEnd()
16644 oprot.writeFieldEnd()
16646 oprot.writeFieldBegin(
'permissions', TType.STRUCT, 5)
16647 self.permissions.write(oprot)
16648 oprot.writeFieldEnd()
16649 oprot.writeFieldStop()
16650 oprot.writeStructEnd()
16656 L = [
'%s=%r' % (key, value)
16657 for key, value
in self.__dict__.items()]
16658 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
16661 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
16664 return not (self == other)
16665 all_structs.append(unshare_dashboard_args)
16666 unshare_dashboard_args.thrift_spec = (
16668 (1, TType.STRING,
'session',
'UTF8',
None, ),
16669 (2, TType.I32,
'dashboard_id',
None,
None, ),
16670 (3, TType.LIST,
'groups', (TType.STRING,
'UTF8',
False),
None, ),
16671 (4, TType.LIST,
'objects', (TType.STRING,
'UTF8',
False),
None, ),
16672 (5, TType.STRUCT,
'permissions', [TDashboardPermissions,
None],
None, ),
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])
16691 iprot.readStructBegin()
16693 (fname, ftype, fid) = iprot.readFieldBegin()
16694 if ftype == TType.STOP:
16697 if ftype == TType.STRUCT:
16698 self.
e = TDBException.read(iprot)
16703 iprot.readFieldEnd()
16704 iprot.readStructEnd()
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]))
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()
16722 L = [
'%s=%r' % (key, value)
16723 for key, value
in self.__dict__.items()]
16724 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
16727 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
16730 return not (self == other)
16731 all_structs.append(unshare_dashboard_result)
16732 unshare_dashboard_result.thrift_spec = (
16734 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
16749 def __init__(self, session=None, dashboard_ids=None, groups=None, permissions=None,):
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])
16759 iprot.readStructBegin()
16761 (fname, ftype, fid) = iprot.readFieldBegin()
16762 if ftype == TType.STOP:
16765 if ftype == TType.STRING:
16766 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
16770 if ftype == TType.LIST:
16772 (_etype470, _size467) = iprot.readListBegin()
16773 for _i471
in range(_size467):
16774 _elem472 = iprot.readI32()
16775 self.dashboard_ids.append(_elem472)
16776 iprot.readListEnd()
16780 if ftype == TType.LIST:
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()
16790 if ftype == TType.STRUCT:
16792 self.permissions.read(iprot)
16797 iprot.readFieldEnd()
16798 iprot.readStructEnd()
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]))
16804 oprot.writeStructBegin(
'unshare_dashboards_args')
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()
16810 oprot.writeFieldBegin(
'dashboard_ids', TType.LIST, 2)
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()
16824 oprot.writeFieldBegin(
'permissions', TType.STRUCT, 4)
16825 self.permissions.write(oprot)
16826 oprot.writeFieldEnd()
16827 oprot.writeFieldStop()
16828 oprot.writeStructEnd()
16834 L = [
'%s=%r' % (key, value)
16835 for key, value
in self.__dict__.items()]
16836 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
16839 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
16842 return not (self == other)
16843 all_structs.append(unshare_dashboards_args)
16844 unshare_dashboards_args.thrift_spec = (
16846 (1, TType.STRING,
'session',
'UTF8',
None, ),
16847 (2, TType.LIST,
'dashboard_ids', (TType.I32,
None,
False),
None, ),
16848 (3, TType.LIST,
'groups', (TType.STRING,
'UTF8',
False),
None, ),
16849 (4, TType.STRUCT,
'permissions', [TDashboardPermissions,
None],
None, ),
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])
16868 iprot.readStructBegin()
16870 (fname, ftype, fid) = iprot.readFieldBegin()
16871 if ftype == TType.STOP:
16874 if ftype == TType.STRUCT:
16875 self.
e = TDBException.read(iprot)
16880 iprot.readFieldEnd()
16881 iprot.readStructEnd()
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]))
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()
16899 L = [
'%s=%r' % (key, value)
16900 for key, value
in self.__dict__.items()]
16901 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
16904 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
16907 return not (self == other)
16908 all_structs.append(unshare_dashboards_result)
16909 unshare_dashboards_result.thrift_spec = (
16911 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
16932 iprot.readStructBegin()
16934 (fname, ftype, fid) = iprot.readFieldBegin()
16935 if ftype == TType.STOP:
16938 if ftype == TType.STRING:
16939 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
16943 if ftype == TType.I32:
16949 iprot.readFieldEnd()
16950 iprot.readStructEnd()
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]))
16956 oprot.writeStructBegin(
'get_dashboard_grantees_args')
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()
16962 oprot.writeFieldBegin(
'dashboard_id', TType.I32, 2)
16964 oprot.writeFieldEnd()
16965 oprot.writeFieldStop()
16966 oprot.writeStructEnd()
16972 L = [
'%s=%r' % (key, value)
16973 for key, value
in self.__dict__.items()]
16974 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
16977 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
16980 return not (self == other)
16981 all_structs.append(get_dashboard_grantees_args)
16982 get_dashboard_grantees_args.thrift_spec = (
16984 (1, TType.STRING,
'session',
'UTF8',
None, ),
16985 (2, TType.I32,
'dashboard_id',
None,
None, ),
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])
17006 iprot.readStructBegin()
17008 (fname, ftype, fid) = iprot.readFieldBegin()
17009 if ftype == TType.STOP:
17012 if ftype == TType.LIST:
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()
17023 if ftype == TType.STRUCT:
17024 self.
e = TDBException.read(iprot)
17029 iprot.readFieldEnd()
17030 iprot.readStructEnd()
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]))
17036 oprot.writeStructBegin(
'get_dashboard_grantees_result')
17038 oprot.writeFieldBegin(
'success', TType.LIST, 0)
17039 oprot.writeListBegin(TType.STRUCT, len(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()
17055 L = [
'%s=%r' % (key, value)
17056 for key, value
in self.__dict__.items()]
17057 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
17060 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
17067 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
17088 iprot.readStructBegin()
17090 (fname, ftype, fid) = iprot.readFieldBegin()
17091 if ftype == TType.STOP:
17094 if ftype == TType.STRING:
17095 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
17099 if ftype == TType.STRING:
17100 self.
link = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
17105 iprot.readFieldEnd()
17106 iprot.readStructEnd()
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]))
17112 oprot.writeStructBegin(
'get_link_view_args')
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()
17128 L = [
'%s=%r' % (key, value)
17129 for key, value
in self.__dict__.items()]
17130 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
17133 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
17136 return not (self == other)
17137 all_structs.append(get_link_view_args)
17138 get_link_view_args.thrift_spec = (
17140 (1, TType.STRING,
'session',
'UTF8',
None, ),
17141 (2, TType.STRING,
'link',
'UTF8',
None, ),
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])
17162 iprot.readStructBegin()
17164 (fname, ftype, fid) = iprot.readFieldBegin()
17165 if ftype == TType.STOP:
17168 if ftype == TType.STRUCT:
17169 self.
success = TFrontendView()
17170 self.success.read(iprot)
17174 if ftype == TType.STRUCT:
17175 self.
e = TDBException.read(iprot)
17180 iprot.readFieldEnd()
17181 iprot.readStructEnd()
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]))
17187 oprot.writeStructBegin(
'get_link_view_result')
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()
17203 L = [
'%s=%r' % (key, value)
17204 for key, value
in self.__dict__.items()]
17205 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
17208 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
17215 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
17229 def __init__(self, session=None, view_state=None, view_metadata=None,):
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])
17238 iprot.readStructBegin()
17240 (fname, ftype, fid) = iprot.readFieldBegin()
17241 if ftype == TType.STOP:
17244 if ftype == TType.STRING:
17245 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
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()
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()
17260 iprot.readFieldEnd()
17261 iprot.readStructEnd()
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]))
17267 oprot.writeStructBegin(
'create_link_args')
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()
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()
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()
17287 L = [
'%s=%r' % (key, value)
17288 for key, value
in self.__dict__.items()]
17289 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
17292 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
17295 return not (self == other)
17296 all_structs.append(create_link_args)
17297 create_link_args.thrift_spec = (
17299 (1, TType.STRING,
'session',
'UTF8',
None, ),
17300 (2, TType.STRING,
'view_state',
'UTF8',
None, ),
17301 (3, TType.STRING,
'view_metadata',
'UTF8',
None, ),
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])
17322 iprot.readStructBegin()
17324 (fname, ftype, fid) = iprot.readFieldBegin()
17325 if ftype == TType.STOP:
17328 if ftype == TType.STRING:
17329 self.
success = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
17333 if ftype == TType.STRUCT:
17334 self.
e = TDBException.read(iprot)
17339 iprot.readFieldEnd()
17340 iprot.readStructEnd()
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]))
17346 oprot.writeStructBegin(
'create_link_result')
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()
17362 L = [
'%s=%r' % (key, value)
17363 for key, value
in self.__dict__.items()]
17364 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
17367 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
17374 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
17389 def __init__(self, session=None, table_name=None, rows=None, column_names=[
17394 if column_names
is self.thrift_spec[4][4]:
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])
17403 iprot.readStructBegin()
17405 (fname, ftype, fid) = iprot.readFieldBegin()
17406 if ftype == TType.STOP:
17409 if ftype == TType.STRING:
17410 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
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()
17419 if ftype == TType.LIST:
17421 (_etype491, _size488) = iprot.readListBegin()
17422 for _i492
in range(_size488):
17424 _elem493.read(iprot)
17425 self.rows.append(_elem493)
17426 iprot.readListEnd()
17430 if ftype == TType.LIST:
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()
17441 iprot.readFieldEnd()
17442 iprot.readStructEnd()
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]))
17448 oprot.writeStructBegin(
'load_table_binary_args')
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()
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()
17465 oprot.writeFieldBegin(
'column_names', TType.LIST, 4)
17466 oprot.writeListBegin(TType.STRING, len(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()
17478 L = [
'%s=%r' % (key, value)
17479 for key, value
in self.__dict__.items()]
17480 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
17483 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
17486 return not (self == other)
17487 all_structs.append(load_table_binary_args)
17488 load_table_binary_args.thrift_spec = (
17490 (1, TType.STRING,
'session',
'UTF8',
None, ),
17491 (2, TType.STRING,
'table_name',
'UTF8',
None, ),
17492 (3, TType.LIST,
'rows', (TType.STRUCT, [TRow,
None],
False),
None, ),
17493 (4, TType.LIST,
'column_names', (TType.STRING,
'UTF8',
False), [
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])
17513 iprot.readStructBegin()
17515 (fname, ftype, fid) = iprot.readFieldBegin()
17516 if ftype == TType.STOP:
17519 if ftype == TType.STRUCT:
17520 self.
e = TDBException.read(iprot)
17525 iprot.readFieldEnd()
17526 iprot.readStructEnd()
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]))
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()
17544 L = [
'%s=%r' % (key, value)
17545 for key, value
in self.__dict__.items()]
17546 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
17549 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
17552 return not (self == other)
17553 all_structs.append(load_table_binary_result)
17554 load_table_binary_result.thrift_spec = (
17556 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
17571 def __init__(self, session=None, table_name=None, cols=None, column_names=[
17576 if column_names
is self.thrift_spec[4][4]:
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])
17585 iprot.readStructBegin()
17587 (fname, ftype, fid) = iprot.readFieldBegin()
17588 if ftype == TType.STOP:
17591 if ftype == TType.STRING:
17592 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
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()
17601 if ftype == TType.LIST:
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()
17612 if ftype == TType.LIST:
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()
17623 iprot.readFieldEnd()
17624 iprot.readStructEnd()
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]))
17630 oprot.writeStructBegin(
'load_table_binary_columnar_args')
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()
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()
17647 oprot.writeFieldBegin(
'column_names', TType.LIST, 4)
17648 oprot.writeListBegin(TType.STRING, len(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()
17660 L = [
'%s=%r' % (key, value)
17661 for key, value
in self.__dict__.items()]
17662 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
17665 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
17668 return not (self == other)
17669 all_structs.append(load_table_binary_columnar_args)
17670 load_table_binary_columnar_args.thrift_spec = (
17672 (1, TType.STRING,
'session',
'UTF8',
None, ),
17673 (2, TType.STRING,
'table_name',
'UTF8',
None, ),
17674 (3, TType.LIST,
'cols', (TType.STRUCT, [TColumn,
None],
False),
None, ),
17675 (4, TType.LIST,
'column_names', (TType.STRING,
'UTF8',
False), [
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])
17695 iprot.readStructBegin()
17697 (fname, ftype, fid) = iprot.readFieldBegin()
17698 if ftype == TType.STOP:
17701 if ftype == TType.STRUCT:
17702 self.
e = TDBException.read(iprot)
17707 iprot.readFieldEnd()
17708 iprot.readStructEnd()
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]))
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()
17726 L = [
'%s=%r' % (key, value)
17727 for key, value
in self.__dict__.items()]
17728 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
17731 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
17734 return not (self == other)
17735 all_structs.append(load_table_binary_columnar_result)
17736 load_table_binary_columnar_result.thrift_spec = (
17738 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
17753 def __init__(self, session=None, table_name=None, arrow_stream=None, use_column_names=False,):
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])
17763 iprot.readStructBegin()
17765 (fname, ftype, fid) = iprot.readFieldBegin()
17766 if ftype == TType.STOP:
17769 if ftype == TType.STRING:
17770 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
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()
17779 if ftype == TType.STRING:
17784 if ftype == TType.BOOL:
17790 iprot.readFieldEnd()
17791 iprot.readStructEnd()
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]))
17797 oprot.writeStructBegin(
'load_table_binary_arrow_args')
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()
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()
17807 oprot.writeFieldBegin(
'arrow_stream', TType.STRING, 3)
17809 oprot.writeFieldEnd()
17811 oprot.writeFieldBegin(
'use_column_names', TType.BOOL, 4)
17813 oprot.writeFieldEnd()
17814 oprot.writeFieldStop()
17815 oprot.writeStructEnd()
17821 L = [
'%s=%r' % (key, value)
17822 for key, value
in self.__dict__.items()]
17823 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
17826 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
17829 return not (self == other)
17830 all_structs.append(load_table_binary_arrow_args)
17831 load_table_binary_arrow_args.thrift_spec = (
17833 (1, TType.STRING,
'session',
'UTF8',
None, ),
17834 (2, TType.STRING,
'table_name',
'UTF8',
None, ),
17835 (3, TType.STRING,
'arrow_stream',
'BINARY',
None, ),
17836 (4, TType.BOOL,
'use_column_names',
None,
False, ),
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])
17855 iprot.readStructBegin()
17857 (fname, ftype, fid) = iprot.readFieldBegin()
17858 if ftype == TType.STOP:
17861 if ftype == TType.STRUCT:
17862 self.
e = TDBException.read(iprot)
17867 iprot.readFieldEnd()
17868 iprot.readStructEnd()
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]))
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()
17886 L = [
'%s=%r' % (key, value)
17887 for key, value
in self.__dict__.items()]
17888 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
17891 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
17894 return not (self == other)
17895 all_structs.append(load_table_binary_arrow_result)
17896 load_table_binary_arrow_result.thrift_spec = (
17898 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
17913 def __init__(self, session=None, table_name=None, rows=None, column_names=[
17918 if column_names
is self.thrift_spec[4][4]:
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])
17927 iprot.readStructBegin()
17929 (fname, ftype, fid) = iprot.readFieldBegin()
17930 if ftype == TType.STOP:
17933 if ftype == TType.STRING:
17934 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
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()
17943 if ftype == TType.LIST:
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()
17954 if ftype == TType.LIST:
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()
17965 iprot.readFieldEnd()
17966 iprot.readStructEnd()
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]))
17972 oprot.writeStructBegin(
'load_table_args')
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()
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()
17989 oprot.writeFieldBegin(
'column_names', TType.LIST, 4)
17990 oprot.writeListBegin(TType.STRING, len(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()
18002 L = [
'%s=%r' % (key, value)
18003 for key, value
in self.__dict__.items()]
18004 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
18007 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
18010 return not (self == other)
18011 all_structs.append(load_table_args)
18012 load_table_args.thrift_spec = (
18014 (1, TType.STRING,
'session',
'UTF8',
None, ),
18015 (2, TType.STRING,
'table_name',
'UTF8',
None, ),
18016 (3, TType.LIST,
'rows', (TType.STRUCT, [TStringRow,
None],
False),
None, ),
18017 (4, TType.LIST,
'column_names', (TType.STRING,
'UTF8',
False), [
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])
18037 iprot.readStructBegin()
18039 (fname, ftype, fid) = iprot.readFieldBegin()
18040 if ftype == TType.STOP:
18043 if ftype == TType.STRUCT:
18044 self.
e = TDBException.read(iprot)
18049 iprot.readFieldEnd()
18050 iprot.readStructEnd()
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]))
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()
18068 L = [
'%s=%r' % (key, value)
18069 for key, value
in self.__dict__.items()]
18070 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
18073 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
18076 return not (self == other)
18077 all_structs.append(load_table_result)
18078 load_table_result.thrift_spec = (
18080 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
18094 def __init__(self, session=None, file_name=None, copy_params=None,):
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])
18103 iprot.readStructBegin()
18105 (fname, ftype, fid) = iprot.readFieldBegin()
18106 if ftype == TType.STOP:
18109 if ftype == TType.STRING:
18110 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
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()
18119 if ftype == TType.STRUCT:
18121 self.copy_params.read(iprot)
18126 iprot.readFieldEnd()
18127 iprot.readStructEnd()
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]))
18133 oprot.writeStructBegin(
'detect_column_types_args')
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()
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()
18143 oprot.writeFieldBegin(
'copy_params', TType.STRUCT, 3)
18144 self.copy_params.write(oprot)
18145 oprot.writeFieldEnd()
18146 oprot.writeFieldStop()
18147 oprot.writeStructEnd()
18153 L = [
'%s=%r' % (key, value)
18154 for key, value
in self.__dict__.items()]
18155 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
18158 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
18161 return not (self == other)
18162 all_structs.append(detect_column_types_args)
18163 detect_column_types_args.thrift_spec = (
18165 (1, TType.STRING,
'session',
'UTF8',
None, ),
18166 (2, TType.STRING,
'file_name',
'UTF8',
None, ),
18167 (3, TType.STRUCT,
'copy_params', [TCopyParams,
None],
None, ),
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])
18188 iprot.readStructBegin()
18190 (fname, ftype, fid) = iprot.readFieldBegin()
18191 if ftype == TType.STOP:
18194 if ftype == TType.STRUCT:
18195 self.
success = TDetectResult()
18196 self.success.read(iprot)
18200 if ftype == TType.STRUCT:
18201 self.
e = TDBException.read(iprot)
18206 iprot.readFieldEnd()
18207 iprot.readStructEnd()
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]))
18213 oprot.writeStructBegin(
'detect_column_types_result')
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()
18229 L = [
'%s=%r' % (key, value)
18230 for key, value
in self.__dict__.items()]
18231 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
18234 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
18241 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
18256 def __init__(self, session=None, table_name=None, row_desc=None, create_params=None,):
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])
18266 iprot.readStructBegin()
18268 (fname, ftype, fid) = iprot.readFieldBegin()
18269 if ftype == TType.STOP:
18272 if ftype == TType.STRING:
18273 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
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()
18282 if ftype == TType.LIST:
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()
18293 if ftype == TType.STRUCT:
18295 self.create_params.read(iprot)
18300 iprot.readFieldEnd()
18301 iprot.readStructEnd()
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]))
18307 oprot.writeStructBegin(
'create_table_args')
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()
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()
18317 oprot.writeFieldBegin(
'row_desc', TType.LIST, 3)
18318 oprot.writeListBegin(TType.STRUCT, len(self.
row_desc))
18320 iter536.write(oprot)
18321 oprot.writeListEnd()
18322 oprot.writeFieldEnd()
18324 oprot.writeFieldBegin(
'create_params', TType.STRUCT, 4)
18325 self.create_params.write(oprot)
18326 oprot.writeFieldEnd()
18327 oprot.writeFieldStop()
18328 oprot.writeStructEnd()
18334 L = [
'%s=%r' % (key, value)
18335 for key, value
in self.__dict__.items()]
18336 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
18339 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
18342 return not (self == other)
18343 all_structs.append(create_table_args)
18344 create_table_args.thrift_spec = (
18346 (1, TType.STRING,
'session',
'UTF8',
None, ),
18347 (2, TType.STRING,
'table_name',
'UTF8',
None, ),
18348 (3, TType.LIST,
'row_desc', (TType.STRUCT, [TColumnType,
None],
False),
None, ),
18349 (4, TType.STRUCT,
'create_params', [TCreateParams,
None],
None, ),
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])
18368 iprot.readStructBegin()
18370 (fname, ftype, fid) = iprot.readFieldBegin()
18371 if ftype == TType.STOP:
18374 if ftype == TType.STRUCT:
18375 self.
e = TDBException.read(iprot)
18380 iprot.readFieldEnd()
18381 iprot.readStructEnd()
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]))
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()
18399 L = [
'%s=%r' % (key, value)
18400 for key, value
in self.__dict__.items()]
18401 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
18404 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
18407 return not (self == other)
18408 all_structs.append(create_table_result)
18409 create_table_result.thrift_spec = (
18411 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
18426 def __init__(self, session=None, table_name=None, file_name=None, copy_params=None,):
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])
18436 iprot.readStructBegin()
18438 (fname, ftype, fid) = iprot.readFieldBegin()
18439 if ftype == TType.STOP:
18442 if ftype == TType.STRING:
18443 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
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()
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()
18457 if ftype == TType.STRUCT:
18459 self.copy_params.read(iprot)
18464 iprot.readFieldEnd()
18465 iprot.readStructEnd()
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]))
18471 oprot.writeStructBegin(
'import_table_args')
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()
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()
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()
18485 oprot.writeFieldBegin(
'copy_params', TType.STRUCT, 4)
18486 self.copy_params.write(oprot)
18487 oprot.writeFieldEnd()
18488 oprot.writeFieldStop()
18489 oprot.writeStructEnd()
18495 L = [
'%s=%r' % (key, value)
18496 for key, value
in self.__dict__.items()]
18497 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
18500 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
18503 return not (self == other)
18504 all_structs.append(import_table_args)
18505 import_table_args.thrift_spec = (
18507 (1, TType.STRING,
'session',
'UTF8',
None, ),
18508 (2, TType.STRING,
'table_name',
'UTF8',
None, ),
18509 (3, TType.STRING,
'file_name',
'UTF8',
None, ),
18510 (4, TType.STRUCT,
'copy_params', [TCopyParams,
None],
None, ),
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])
18529 iprot.readStructBegin()
18531 (fname, ftype, fid) = iprot.readFieldBegin()
18532 if ftype == TType.STOP:
18535 if ftype == TType.STRUCT:
18536 self.
e = TDBException.read(iprot)
18541 iprot.readFieldEnd()
18542 iprot.readStructEnd()
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]))
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()
18560 L = [
'%s=%r' % (key, value)
18561 for key, value
in self.__dict__.items()]
18562 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
18565 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
18568 return not (self == other)
18569 all_structs.append(import_table_result)
18570 import_table_result.thrift_spec = (
18572 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
18589 def __init__(self, session=None, table_name=None, file_name=None, copy_params=None, row_desc=None, create_params=None,):
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])
18601 iprot.readStructBegin()
18603 (fname, ftype, fid) = iprot.readFieldBegin()
18604 if ftype == TType.STOP:
18607 if ftype == TType.STRING:
18608 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
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()
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()
18622 if ftype == TType.STRUCT:
18624 self.copy_params.read(iprot)
18628 if ftype == TType.LIST:
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()
18639 if ftype == TType.STRUCT:
18641 self.create_params.read(iprot)
18646 iprot.readFieldEnd()
18647 iprot.readStructEnd()
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]))
18653 oprot.writeStructBegin(
'import_geo_table_args')
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()
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()
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()
18667 oprot.writeFieldBegin(
'copy_params', TType.STRUCT, 4)
18668 self.copy_params.write(oprot)
18669 oprot.writeFieldEnd()
18671 oprot.writeFieldBegin(
'row_desc', TType.LIST, 5)
18672 oprot.writeListBegin(TType.STRUCT, len(self.
row_desc))
18674 iter543.write(oprot)
18675 oprot.writeListEnd()
18676 oprot.writeFieldEnd()
18678 oprot.writeFieldBegin(
'create_params', TType.STRUCT, 6)
18679 self.create_params.write(oprot)
18680 oprot.writeFieldEnd()
18681 oprot.writeFieldStop()
18682 oprot.writeStructEnd()
18688 L = [
'%s=%r' % (key, value)
18689 for key, value
in self.__dict__.items()]
18690 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
18693 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
18696 return not (self == other)
18697 all_structs.append(import_geo_table_args)
18698 import_geo_table_args.thrift_spec = (
18700 (1, TType.STRING,
'session',
'UTF8',
None, ),
18701 (2, TType.STRING,
'table_name',
'UTF8',
None, ),
18702 (3, TType.STRING,
'file_name',
'UTF8',
None, ),
18703 (4, TType.STRUCT,
'copy_params', [TCopyParams,
None],
None, ),
18704 (5, TType.LIST,
'row_desc', (TType.STRUCT, [TColumnType,
None],
False),
None, ),
18705 (6, TType.STRUCT,
'create_params', [TCreateParams,
None],
None, ),
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])
18724 iprot.readStructBegin()
18726 (fname, ftype, fid) = iprot.readFieldBegin()
18727 if ftype == TType.STOP:
18730 if ftype == TType.STRUCT:
18731 self.
e = TDBException.read(iprot)
18736 iprot.readFieldEnd()
18737 iprot.readStructEnd()
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]))
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()
18755 L = [
'%s=%r' % (key, value)
18756 for key, value
in self.__dict__.items()]
18757 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
18760 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
18763 return not (self == other)
18764 all_structs.append(import_geo_table_result)
18765 import_geo_table_result.thrift_spec = (
18767 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
18788 iprot.readStructBegin()
18790 (fname, ftype, fid) = iprot.readFieldBegin()
18791 if ftype == TType.STOP:
18794 if ftype == TType.STRING:
18795 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
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()
18805 iprot.readFieldEnd()
18806 iprot.readStructEnd()
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]))
18812 oprot.writeStructBegin(
'import_table_status_args')
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()
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()
18828 L = [
'%s=%r' % (key, value)
18829 for key, value
in self.__dict__.items()]
18830 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
18833 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
18836 return not (self == other)
18837 all_structs.append(import_table_status_args)
18838 import_table_status_args.thrift_spec = (
18840 (1, TType.STRING,
'session',
'UTF8',
None, ),
18841 (2, TType.STRING,
'import_id',
'UTF8',
None, ),
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])
18862 iprot.readStructBegin()
18864 (fname, ftype, fid) = iprot.readFieldBegin()
18865 if ftype == TType.STOP:
18868 if ftype == TType.STRUCT:
18869 self.
success = TImportStatus()
18870 self.success.read(iprot)
18874 if ftype == TType.STRUCT:
18875 self.
e = TDBException.read(iprot)
18880 iprot.readFieldEnd()
18881 iprot.readStructEnd()
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]))
18887 oprot.writeStructBegin(
'import_table_status_result')
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()
18903 L = [
'%s=%r' % (key, value)
18904 for key, value
in self.__dict__.items()]
18905 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
18908 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
18915 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
18929 def __init__(self, session=None, archive_path=None, copy_params=None,):
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])
18938 iprot.readStructBegin()
18940 (fname, ftype, fid) = iprot.readFieldBegin()
18941 if ftype == TType.STOP:
18944 if ftype == TType.STRING:
18945 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
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()
18954 if ftype == TType.STRUCT:
18956 self.copy_params.read(iprot)
18961 iprot.readFieldEnd()
18962 iprot.readStructEnd()
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]))
18968 oprot.writeStructBegin(
'get_first_geo_file_in_archive_args')
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()
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()
18978 oprot.writeFieldBegin(
'copy_params', TType.STRUCT, 3)
18979 self.copy_params.write(oprot)
18980 oprot.writeFieldEnd()
18981 oprot.writeFieldStop()
18982 oprot.writeStructEnd()
18988 L = [
'%s=%r' % (key, value)
18989 for key, value
in self.__dict__.items()]
18990 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
18993 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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 = (
19000 (1, TType.STRING,
'session',
'UTF8',
None, ),
19001 (2, TType.STRING,
'archive_path',
'UTF8',
None, ),
19002 (3, TType.STRUCT,
'copy_params', [TCopyParams,
None],
None, ),
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])
19023 iprot.readStructBegin()
19025 (fname, ftype, fid) = iprot.readFieldBegin()
19026 if ftype == TType.STOP:
19029 if ftype == TType.STRING:
19030 self.
success = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
19034 if ftype == TType.STRUCT:
19035 self.
e = TDBException.read(iprot)
19040 iprot.readFieldEnd()
19041 iprot.readStructEnd()
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]))
19047 oprot.writeStructBegin(
'get_first_geo_file_in_archive_result')
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()
19063 L = [
'%s=%r' % (key, value)
19064 for key, value
in self.__dict__.items()]
19065 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
19068 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
19075 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
19089 def __init__(self, session=None, archive_path=None, copy_params=None,):
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])
19098 iprot.readStructBegin()
19100 (fname, ftype, fid) = iprot.readFieldBegin()
19101 if ftype == TType.STOP:
19104 if ftype == TType.STRING:
19105 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
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()
19114 if ftype == TType.STRUCT:
19116 self.copy_params.read(iprot)
19121 iprot.readFieldEnd()
19122 iprot.readStructEnd()
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]))
19128 oprot.writeStructBegin(
'get_all_files_in_archive_args')
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()
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()
19138 oprot.writeFieldBegin(
'copy_params', TType.STRUCT, 3)
19139 self.copy_params.write(oprot)
19140 oprot.writeFieldEnd()
19141 oprot.writeFieldStop()
19142 oprot.writeStructEnd()
19148 L = [
'%s=%r' % (key, value)
19149 for key, value
in self.__dict__.items()]
19150 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
19153 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
19156 return not (self == other)
19157 all_structs.append(get_all_files_in_archive_args)
19158 get_all_files_in_archive_args.thrift_spec = (
19160 (1, TType.STRING,
'session',
'UTF8',
None, ),
19161 (2, TType.STRING,
'archive_path',
'UTF8',
None, ),
19162 (3, TType.STRUCT,
'copy_params', [TCopyParams,
None],
None, ),
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])
19183 iprot.readStructBegin()
19185 (fname, ftype, fid) = iprot.readFieldBegin()
19186 if ftype == TType.STOP:
19189 if ftype == TType.LIST:
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()
19199 if ftype == TType.STRUCT:
19200 self.
e = TDBException.read(iprot)
19205 iprot.readFieldEnd()
19206 iprot.readStructEnd()
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]))
19212 oprot.writeStructBegin(
'get_all_files_in_archive_result')
19214 oprot.writeFieldBegin(
'success', TType.LIST, 0)
19215 oprot.writeListBegin(TType.STRING, len(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()
19231 L = [
'%s=%r' % (key, value)
19232 for key, value
in self.__dict__.items()]
19233 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
19236 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
19243 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
19257 def __init__(self, session=None, file_name=None, copy_params=None,):
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])
19266 iprot.readStructBegin()
19268 (fname, ftype, fid) = iprot.readFieldBegin()
19269 if ftype == TType.STOP:
19272 if ftype == TType.STRING:
19273 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
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()
19282 if ftype == TType.STRUCT:
19284 self.copy_params.read(iprot)
19289 iprot.readFieldEnd()
19290 iprot.readStructEnd()
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]))
19296 oprot.writeStructBegin(
'get_layers_in_geo_file_args')
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()
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()
19306 oprot.writeFieldBegin(
'copy_params', TType.STRUCT, 3)
19307 self.copy_params.write(oprot)
19308 oprot.writeFieldEnd()
19309 oprot.writeFieldStop()
19310 oprot.writeStructEnd()
19316 L = [
'%s=%r' % (key, value)
19317 for key, value
in self.__dict__.items()]
19318 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
19321 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
19324 return not (self == other)
19325 all_structs.append(get_layers_in_geo_file_args)
19326 get_layers_in_geo_file_args.thrift_spec = (
19328 (1, TType.STRING,
'session',
'UTF8',
None, ),
19329 (2, TType.STRING,
'file_name',
'UTF8',
None, ),
19330 (3, TType.STRUCT,
'copy_params', [TCopyParams,
None],
None, ),
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])
19351 iprot.readStructBegin()
19353 (fname, ftype, fid) = iprot.readFieldBegin()
19354 if ftype == TType.STOP:
19357 if ftype == TType.LIST:
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()
19368 if ftype == TType.STRUCT:
19369 self.
e = TDBException.read(iprot)
19374 iprot.readFieldEnd()
19375 iprot.readStructEnd()
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]))
19381 oprot.writeStructBegin(
'get_layers_in_geo_file_result')
19383 oprot.writeFieldBegin(
'success', TType.LIST, 0)
19384 oprot.writeListBegin(TType.STRUCT, len(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()
19400 L = [
'%s=%r' % (key, value)
19401 for key, value
in self.__dict__.items()]
19402 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
19405 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
19412 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
19433 iprot.readStructBegin()
19435 (fname, ftype, fid) = iprot.readFieldBegin()
19436 if ftype == TType.STOP:
19439 if ftype == TType.STRING:
19440 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
19444 if ftype == TType.STRING:
19445 self.
query = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
19450 iprot.readFieldEnd()
19451 iprot.readStructEnd()
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]))
19457 oprot.writeStructBegin(
'query_get_outer_fragment_count_args')
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()
19473 L = [
'%s=%r' % (key, value)
19474 for key, value
in self.__dict__.items()]
19475 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
19478 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
19481 return not (self == other)
19482 all_structs.append(query_get_outer_fragment_count_args)
19483 query_get_outer_fragment_count_args.thrift_spec = (
19485 (1, TType.STRING,
'session',
'UTF8',
None, ),
19486 (2, TType.STRING,
'query',
'UTF8',
None, ),
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])
19507 iprot.readStructBegin()
19509 (fname, ftype, fid) = iprot.readFieldBegin()
19510 if ftype == TType.STOP:
19513 if ftype == TType.I64:
19514 self.
success = iprot.readI64()
19518 if ftype == TType.STRUCT:
19519 self.
e = TDBException.read(iprot)
19524 iprot.readFieldEnd()
19525 iprot.readStructEnd()
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]))
19531 oprot.writeStructBegin(
'query_get_outer_fragment_count_result')
19533 oprot.writeFieldBegin(
'success', TType.I64, 0)
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()
19547 L = [
'%s=%r' % (key, value)
19548 for key, value
in self.__dict__.items()]
19549 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
19552 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
19559 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
19580 iprot.readStructBegin()
19582 (fname, ftype, fid) = iprot.readFieldBegin()
19583 if ftype == TType.STOP:
19586 if ftype == TType.STRING:
19587 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
19591 if ftype == TType.I32:
19597 iprot.readFieldEnd()
19598 iprot.readStructEnd()
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]))
19604 oprot.writeStructBegin(
'check_table_consistency_args')
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()
19610 oprot.writeFieldBegin(
'table_id', TType.I32, 2)
19612 oprot.writeFieldEnd()
19613 oprot.writeFieldStop()
19614 oprot.writeStructEnd()
19620 L = [
'%s=%r' % (key, value)
19621 for key, value
in self.__dict__.items()]
19622 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
19625 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
19628 return not (self == other)
19629 all_structs.append(check_table_consistency_args)
19630 check_table_consistency_args.thrift_spec = (
19632 (1, TType.STRING,
'session',
'UTF8',
None, ),
19633 (2, TType.I32,
'table_id',
None,
None, ),
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])
19654 iprot.readStructBegin()
19656 (fname, ftype, fid) = iprot.readFieldBegin()
19657 if ftype == TType.STOP:
19660 if ftype == TType.STRUCT:
19662 self.success.read(iprot)
19666 if ftype == TType.STRUCT:
19667 self.
e = TDBException.read(iprot)
19672 iprot.readFieldEnd()
19673 iprot.readStructEnd()
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]))
19679 oprot.writeStructBegin(
'check_table_consistency_result')
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()
19695 L = [
'%s=%r' % (key, value)
19696 for key, value
in self.__dict__.items()]
19697 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
19700 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
19707 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
19719 - outer_fragment_indices
19724 def __init__(self, leaf_session=None, parent_session=None, query_ra=None, start_time_str=None, just_explain=None, outer_fragment_indices=None,):
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])
19736 iprot.readStructBegin()
19738 (fname, ftype, fid) = iprot.readFieldBegin()
19739 if ftype == TType.STOP:
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()
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()
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()
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()
19762 if ftype == TType.BOOL:
19767 if ftype == TType.LIST:
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()
19778 iprot.readFieldEnd()
19779 iprot.readStructEnd()
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]))
19785 oprot.writeStructBegin(
'start_query_args')
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()
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()
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()
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()
19803 oprot.writeFieldBegin(
'just_explain', TType.BOOL, 5)
19805 oprot.writeFieldEnd()
19807 oprot.writeFieldBegin(
'outer_fragment_indices', TType.LIST, 6)
19810 oprot.writeI64(iter564)
19811 oprot.writeListEnd()
19812 oprot.writeFieldEnd()
19813 oprot.writeFieldStop()
19814 oprot.writeStructEnd()
19820 L = [
'%s=%r' % (key, value)
19821 for key, value
in self.__dict__.items()]
19822 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
19825 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
19828 return not (self == other)
19829 all_structs.append(start_query_args)
19830 start_query_args.thrift_spec = (
19832 (1, TType.STRING,
'leaf_session',
'UTF8',
None, ),
19833 (2, TType.STRING,
'parent_session',
'UTF8',
None, ),
19834 (3, TType.STRING,
'query_ra',
'UTF8',
None, ),
19835 (4, TType.STRING,
'start_time_str',
'UTF8',
None, ),
19836 (5, TType.BOOL,
'just_explain',
None,
None, ),
19837 (6, TType.LIST,
'outer_fragment_indices', (TType.I64,
None,
False),
None, ),
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])
19858 iprot.readStructBegin()
19860 (fname, ftype, fid) = iprot.readFieldBegin()
19861 if ftype == TType.STOP:
19864 if ftype == TType.STRUCT:
19865 self.
success = TPendingQuery()
19866 self.success.read(iprot)
19870 if ftype == TType.STRUCT:
19871 self.
e = TDBException.read(iprot)
19876 iprot.readFieldEnd()
19877 iprot.readStructEnd()
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]))
19883 oprot.writeStructBegin(
'start_query_result')
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()
19899 L = [
'%s=%r' % (key, value)
19900 for key, value
in self.__dict__.items()]
19901 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
19904 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
19911 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
19925 def __init__(self, pending_query=None, subquery_id=None, start_time_str=None,):
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])
19934 iprot.readStructBegin()
19936 (fname, ftype, fid) = iprot.readFieldBegin()
19937 if ftype == TType.STOP:
19940 if ftype == TType.STRUCT:
19942 self.pending_query.read(iprot)
19946 if ftype == TType.I64:
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()
19957 iprot.readFieldEnd()
19958 iprot.readStructEnd()
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]))
19964 oprot.writeStructBegin(
'execute_query_step_args')
19966 oprot.writeFieldBegin(
'pending_query', TType.STRUCT, 1)
19967 self.pending_query.write(oprot)
19968 oprot.writeFieldEnd()
19970 oprot.writeFieldBegin(
'subquery_id', TType.I64, 2)
19972 oprot.writeFieldEnd()
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()
19984 L = [
'%s=%r' % (key, value)
19985 for key, value
in self.__dict__.items()]
19986 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
19989 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
19992 return not (self == other)
19993 all_structs.append(execute_query_step_args)
19994 execute_query_step_args.thrift_spec = (
19996 (1, TType.STRUCT,
'pending_query', [TPendingQuery,
None],
None, ),
19997 (2, TType.I64,
'subquery_id',
None,
None, ),
19998 (3, TType.STRING,
'start_time_str',
'UTF8',
None, ),
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])
20019 iprot.readStructBegin()
20021 (fname, ftype, fid) = iprot.readFieldBegin()
20022 if ftype == TType.STOP:
20025 if ftype == TType.STRUCT:
20027 self.success.read(iprot)
20031 if ftype == TType.STRUCT:
20032 self.
e = TDBException.read(iprot)
20037 iprot.readFieldEnd()
20038 iprot.readStructEnd()
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]))
20044 oprot.writeStructBegin(
'execute_query_step_result')
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()
20060 L = [
'%s=%r' % (key, value)
20061 for key, value
in self.__dict__.items()]
20062 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
20065 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
20072 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
20083 - is_final_subquery_result
20088 def __init__(self, serialized_rows=None, row_desc=None, query_id=None, subquery_id=None, is_final_subquery_result=None,):
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])
20099 iprot.readStructBegin()
20101 (fname, ftype, fid) = iprot.readFieldBegin()
20102 if ftype == TType.STOP:
20105 if ftype == TType.STRUCT:
20107 self.serialized_rows.read(iprot)
20111 if ftype == TType.LIST:
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()
20122 if ftype == TType.I64:
20127 if ftype == TType.I64:
20132 if ftype == TType.BOOL:
20138 iprot.readFieldEnd()
20139 iprot.readStructEnd()
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]))
20145 oprot.writeStructBegin(
'broadcast_serialized_rows_args')
20147 oprot.writeFieldBegin(
'serialized_rows', TType.STRUCT, 1)
20148 self.serialized_rows.write(oprot)
20149 oprot.writeFieldEnd()
20151 oprot.writeFieldBegin(
'row_desc', TType.LIST, 2)
20152 oprot.writeListBegin(TType.STRUCT, len(self.
row_desc))
20154 iter571.write(oprot)
20155 oprot.writeListEnd()
20156 oprot.writeFieldEnd()
20158 oprot.writeFieldBegin(
'query_id', TType.I64, 3)
20160 oprot.writeFieldEnd()
20162 oprot.writeFieldBegin(
'subquery_id', TType.I64, 4)
20164 oprot.writeFieldEnd()
20166 oprot.writeFieldBegin(
'is_final_subquery_result', TType.BOOL, 5)
20168 oprot.writeFieldEnd()
20169 oprot.writeFieldStop()
20170 oprot.writeStructEnd()
20176 L = [
'%s=%r' % (key, value)
20177 for key, value
in self.__dict__.items()]
20178 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
20181 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
20184 return not (self == other)
20185 all_structs.append(broadcast_serialized_rows_args)
20186 broadcast_serialized_rows_args.thrift_spec = (
20189 (2, TType.LIST,
'row_desc', (TType.STRUCT, [TColumnType,
None],
False),
None, ),
20190 (3, TType.I64,
'query_id',
None,
None, ),
20191 (4, TType.I64,
'subquery_id',
None,
None, ),
20192 (5, TType.BOOL,
'is_final_subquery_result',
None,
None, ),
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])
20211 iprot.readStructBegin()
20213 (fname, ftype, fid) = iprot.readFieldBegin()
20214 if ftype == TType.STOP:
20217 if ftype == TType.STRUCT:
20218 self.
e = TDBException.read(iprot)
20223 iprot.readFieldEnd()
20224 iprot.readStructEnd()
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]))
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()
20242 L = [
'%s=%r' % (key, value)
20243 for key, value
in self.__dict__.items()]
20244 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
20247 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
20250 return not (self == other)
20251 all_structs.append(broadcast_serialized_rows_result)
20252 broadcast_serialized_rows_result.thrift_spec = (
20254 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
20269 def __init__(self, session=None, widget_id=None, node_idx=None, vega_json=None,):
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])
20279 iprot.readStructBegin()
20281 (fname, ftype, fid) = iprot.readFieldBegin()
20282 if ftype == TType.STOP:
20285 if ftype == TType.STRING:
20286 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
20290 if ftype == TType.I64:
20295 if ftype == TType.I16:
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()
20306 iprot.readFieldEnd()
20307 iprot.readStructEnd()
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]))
20313 oprot.writeStructBegin(
'start_render_query_args')
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()
20319 oprot.writeFieldBegin(
'widget_id', TType.I64, 2)
20321 oprot.writeFieldEnd()
20323 oprot.writeFieldBegin(
'node_idx', TType.I16, 3)
20325 oprot.writeFieldEnd()
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()
20337 L = [
'%s=%r' % (key, value)
20338 for key, value
in self.__dict__.items()]
20339 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
20342 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
20345 return not (self == other)
20346 all_structs.append(start_render_query_args)
20347 start_render_query_args.thrift_spec = (
20349 (1, TType.STRING,
'session',
'UTF8',
None, ),
20350 (2, TType.I64,
'widget_id',
None,
None, ),
20351 (3, TType.I16,
'node_idx',
None,
None, ),
20352 (4, TType.STRING,
'vega_json',
'UTF8',
None, ),
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])
20373 iprot.readStructBegin()
20375 (fname, ftype, fid) = iprot.readFieldBegin()
20376 if ftype == TType.STOP:
20379 if ftype == TType.STRUCT:
20380 self.
success = TPendingRenderQuery()
20381 self.success.read(iprot)
20385 if ftype == TType.STRUCT:
20386 self.
e = TDBException.read(iprot)
20391 iprot.readFieldEnd()
20392 iprot.readStructEnd()
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]))
20398 oprot.writeStructBegin(
'start_render_query_result')
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()
20414 L = [
'%s=%r' % (key, value)
20415 for key, value
in self.__dict__.items()]
20416 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
20419 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
20426 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
20439 def __init__(self, pending_render=None, merged_data=None,):
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])
20447 iprot.readStructBegin()
20449 (fname, ftype, fid) = iprot.readFieldBegin()
20450 if ftype == TType.STOP:
20453 if ftype == TType.STRUCT:
20455 self.pending_render.read(iprot)
20459 if ftype == TType.MAP:
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()
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()
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()
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()
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
20485 _val585[_key591] = _val592
20487 _val578[_key584] = _val585
20495 iprot.readFieldEnd()
20496 iprot.readStructEnd()
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]))
20502 oprot.writeStructBegin(
'execute_next_render_step_args')
20504 oprot.writeFieldBegin(
'pending_render', TType.STRUCT, 1)
20505 self.pending_render.write(oprot)
20506 oprot.writeFieldEnd()
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()
20537 L = [
'%s=%r' % (key, value)
20538 for key, value
in self.__dict__.items()]
20539 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
20542 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
20545 return not (self == other)
20546 all_structs.append(execute_next_render_step_args)
20547 execute_next_render_step_args.thrift_spec = (
20549 (1, TType.STRUCT,
'pending_render', [TPendingRenderQuery,
None],
None, ),
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, ),
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])
20571 iprot.readStructBegin()
20573 (fname, ftype, fid) = iprot.readFieldBegin()
20574 if ftype == TType.STOP:
20577 if ftype == TType.STRUCT:
20578 self.
success = TRenderStepResult()
20579 self.success.read(iprot)
20583 if ftype == TType.STRUCT:
20584 self.
e = TDBException.read(iprot)
20589 iprot.readFieldEnd()
20590 iprot.readStructEnd()
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]))
20596 oprot.writeStructBegin(
'execute_next_render_step_result')
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()
20612 L = [
'%s=%r' % (key, value)
20613 for key, value
in self.__dict__.items()]
20614 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
20617 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
20624 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
20645 iprot.readStructBegin()
20647 (fname, ftype, fid) = iprot.readFieldBegin()
20648 if ftype == TType.STOP:
20651 if ftype == TType.STRING:
20652 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
20656 if ftype == TType.STRUCT:
20658 self.insert_data.read(iprot)
20663 iprot.readFieldEnd()
20664 iprot.readStructEnd()
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]))
20670 oprot.writeStructBegin(
'insert_data_args')
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()
20676 oprot.writeFieldBegin(
'insert_data', TType.STRUCT, 2)
20677 self.insert_data.write(oprot)
20678 oprot.writeFieldEnd()
20679 oprot.writeFieldStop()
20680 oprot.writeStructEnd()
20686 L = [
'%s=%r' % (key, value)
20687 for key, value
in self.__dict__.items()]
20688 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
20691 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
20694 return not (self == other)
20695 all_structs.append(insert_data_args)
20696 insert_data_args.thrift_spec = (
20698 (1, TType.STRING,
'session',
'UTF8',
None, ),
20699 (2, TType.STRUCT,
'insert_data', [TInsertData,
None],
None, ),
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])
20718 iprot.readStructBegin()
20720 (fname, ftype, fid) = iprot.readFieldBegin()
20721 if ftype == TType.STOP:
20724 if ftype == TType.STRUCT:
20725 self.
e = TDBException.read(iprot)
20730 iprot.readFieldEnd()
20731 iprot.readStructEnd()
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]))
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()
20749 L = [
'%s=%r' % (key, value)
20750 for key, value
in self.__dict__.items()]
20751 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
20754 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
20757 return not (self == other)
20758 all_structs.append(insert_data_result)
20759 insert_data_result.thrift_spec = (
20761 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
20782 iprot.readStructBegin()
20784 (fname, ftype, fid) = iprot.readFieldBegin()
20785 if ftype == TType.STOP:
20788 if ftype == TType.STRING:
20789 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
20793 if ftype == TType.STRUCT:
20795 self.insert_chunks.read(iprot)
20800 iprot.readFieldEnd()
20801 iprot.readStructEnd()
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]))
20807 oprot.writeStructBegin(
'insert_chunks_args')
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()
20813 oprot.writeFieldBegin(
'insert_chunks', TType.STRUCT, 2)
20814 self.insert_chunks.write(oprot)
20815 oprot.writeFieldEnd()
20816 oprot.writeFieldStop()
20817 oprot.writeStructEnd()
20823 L = [
'%s=%r' % (key, value)
20824 for key, value
in self.__dict__.items()]
20825 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
20828 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
20831 return not (self == other)
20832 all_structs.append(insert_chunks_args)
20833 insert_chunks_args.thrift_spec = (
20835 (1, TType.STRING,
'session',
'UTF8',
None, ),
20836 (2, TType.STRUCT,
'insert_chunks', [TInsertChunks,
None],
None, ),
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])
20855 iprot.readStructBegin()
20857 (fname, ftype, fid) = iprot.readFieldBegin()
20858 if ftype == TType.STOP:
20861 if ftype == TType.STRUCT:
20862 self.
e = TDBException.read(iprot)
20867 iprot.readFieldEnd()
20868 iprot.readStructEnd()
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]))
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()
20886 L = [
'%s=%r' % (key, value)
20887 for key, value
in self.__dict__.items()]
20888 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
20891 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
20894 return not (self == other)
20895 all_structs.append(insert_chunks_result)
20896 insert_chunks_result.thrift_spec = (
20898 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
20919 iprot.readStructBegin()
20921 (fname, ftype, fid) = iprot.readFieldBegin()
20922 if ftype == TType.STOP:
20925 if ftype == TType.STRING:
20926 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
20930 if ftype == TType.I32:
20936 iprot.readFieldEnd()
20937 iprot.readStructEnd()
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]))
20943 oprot.writeStructBegin(
'checkpoint_args')
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()
20949 oprot.writeFieldBegin(
'table_id', TType.I32, 2)
20951 oprot.writeFieldEnd()
20952 oprot.writeFieldStop()
20953 oprot.writeStructEnd()
20959 L = [
'%s=%r' % (key, value)
20960 for key, value
in self.__dict__.items()]
20961 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
20964 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
20967 return not (self == other)
20968 all_structs.append(checkpoint_args)
20969 checkpoint_args.thrift_spec = (
20971 (1, TType.STRING,
'session',
'UTF8',
None, ),
20972 (2, TType.I32,
'table_id',
None,
None, ),
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])
20991 iprot.readStructBegin()
20993 (fname, ftype, fid) = iprot.readFieldBegin()
20994 if ftype == TType.STOP:
20997 if ftype == TType.STRUCT:
20998 self.
e = TDBException.read(iprot)
21003 iprot.readFieldEnd()
21004 iprot.readStructEnd()
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]))
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()
21022 L = [
'%s=%r' % (key, value)
21023 for key, value
in self.__dict__.items()]
21024 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
21027 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
21030 return not (self == other)
21031 all_structs.append(checkpoint_result)
21032 checkpoint_result.thrift_spec = (
21034 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
21053 iprot.readStructBegin()
21055 (fname, ftype, fid) = iprot.readFieldBegin()
21056 if ftype == TType.STOP:
21059 if ftype == TType.STRING:
21060 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
21065 iprot.readFieldEnd()
21066 iprot.readStructEnd()
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]))
21072 oprot.writeStructBegin(
'get_roles_args')
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()
21084 L = [
'%s=%r' % (key, value)
21085 for key, value
in self.__dict__.items()]
21086 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
21089 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
21092 return not (self == other)
21093 all_structs.append(get_roles_args)
21094 get_roles_args.thrift_spec = (
21096 (1, TType.STRING,
'session',
'UTF8',
None, ),
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])
21117 iprot.readStructBegin()
21119 (fname, ftype, fid) = iprot.readFieldBegin()
21120 if ftype == TType.STOP:
21123 if ftype == TType.LIST:
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()
21133 if ftype == TType.STRUCT:
21134 self.
e = TDBException.read(iprot)
21139 iprot.readFieldEnd()
21140 iprot.readStructEnd()
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]))
21146 oprot.writeStructBegin(
'get_roles_result')
21148 oprot.writeFieldBegin(
'success', TType.LIST, 0)
21149 oprot.writeListBegin(TType.STRING, len(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()
21165 L = [
'%s=%r' % (key, value)
21166 for key, value
in self.__dict__.items()]
21167 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
21170 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
21177 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
21198 iprot.readStructBegin()
21200 (fname, ftype, fid) = iprot.readFieldBegin()
21201 if ftype == TType.STOP:
21204 if ftype == TType.STRING:
21205 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
21209 if ftype == TType.STRING:
21210 self.
roleName = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
21215 iprot.readFieldEnd()
21216 iprot.readStructEnd()
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]))
21222 oprot.writeStructBegin(
'get_db_objects_for_grantee_args')
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()
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()
21238 L = [
'%s=%r' % (key, value)
21239 for key, value
in self.__dict__.items()]
21240 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
21243 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
21246 return not (self == other)
21247 all_structs.append(get_db_objects_for_grantee_args)
21248 get_db_objects_for_grantee_args.thrift_spec = (
21250 (1, TType.STRING,
'session',
'UTF8',
None, ),
21251 (2, TType.STRING,
'roleName',
'UTF8',
None, ),
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])
21272 iprot.readStructBegin()
21274 (fname, ftype, fid) = iprot.readFieldBegin()
21275 if ftype == TType.STOP:
21278 if ftype == TType.LIST:
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()
21289 if ftype == TType.STRUCT:
21290 self.
e = TDBException.read(iprot)
21295 iprot.readFieldEnd()
21296 iprot.readStructEnd()
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]))
21302 oprot.writeStructBegin(
'get_db_objects_for_grantee_result')
21304 oprot.writeFieldBegin(
'success', TType.LIST, 0)
21305 oprot.writeListBegin(TType.STRUCT, len(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()
21321 L = [
'%s=%r' % (key, value)
21322 for key, value
in self.__dict__.items()]
21323 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
21326 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
21333 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
21347 def __init__(self, session=None, objectName=None, type=None,):
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])
21356 iprot.readStructBegin()
21358 (fname, ftype, fid) = iprot.readFieldBegin()
21359 if ftype == TType.STOP:
21362 if ftype == TType.STRING:
21363 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
21367 if ftype == TType.STRING:
21368 self.
objectName = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
21372 if ftype == TType.I32:
21373 self.
type = iprot.readI32()
21378 iprot.readFieldEnd()
21379 iprot.readStructEnd()
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]))
21385 oprot.writeStructBegin(
'get_db_object_privs_args')
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()
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()
21405 L = [
'%s=%r' % (key, value)
21406 for key, value
in self.__dict__.items()]
21407 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
21410 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
21413 return not (self == other)
21414 all_structs.append(get_db_object_privs_args)
21415 get_db_object_privs_args.thrift_spec = (
21417 (1, TType.STRING,
'session',
'UTF8',
None, ),
21418 (2, TType.STRING,
'objectName',
'UTF8',
None, ),
21419 (3, TType.I32,
'type',
None,
None, ),
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])
21440 iprot.readStructBegin()
21442 (fname, ftype, fid) = iprot.readFieldBegin()
21443 if ftype == TType.STOP:
21446 if ftype == TType.LIST:
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()
21457 if ftype == TType.STRUCT:
21458 self.
e = TDBException.read(iprot)
21463 iprot.readFieldEnd()
21464 iprot.readStructEnd()
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]))
21470 oprot.writeStructBegin(
'get_db_object_privs_result')
21472 oprot.writeFieldBegin(
'success', TType.LIST, 0)
21473 oprot.writeListBegin(TType.STRUCT, len(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()
21489 L = [
'%s=%r' % (key, value)
21490 for key, value
in self.__dict__.items()]
21491 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
21494 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
21501 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
21522 iprot.readStructBegin()
21524 (fname, ftype, fid) = iprot.readFieldBegin()
21525 if ftype == TType.STOP:
21528 if ftype == TType.STRING:
21529 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
21533 if ftype == TType.STRING:
21534 self.
userName = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
21539 iprot.readFieldEnd()
21540 iprot.readStructEnd()
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]))
21546 oprot.writeStructBegin(
'get_all_roles_for_user_args')
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()
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()
21562 L = [
'%s=%r' % (key, value)
21563 for key, value
in self.__dict__.items()]
21564 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
21567 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
21570 return not (self == other)
21571 all_structs.append(get_all_roles_for_user_args)
21572 get_all_roles_for_user_args.thrift_spec = (
21574 (1, TType.STRING,
'session',
'UTF8',
None, ),
21575 (2, TType.STRING,
'userName',
'UTF8',
None, ),
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])
21596 iprot.readStructBegin()
21598 (fname, ftype, fid) = iprot.readFieldBegin()
21599 if ftype == TType.STOP:
21602 if ftype == TType.LIST:
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()
21612 if ftype == TType.STRUCT:
21613 self.
e = TDBException.read(iprot)
21618 iprot.readFieldEnd()
21619 iprot.readStructEnd()
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]))
21625 oprot.writeStructBegin(
'get_all_roles_for_user_result')
21627 oprot.writeFieldBegin(
'success', TType.LIST, 0)
21628 oprot.writeListBegin(TType.STRING, len(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()
21644 L = [
'%s=%r' % (key, value)
21645 for key, value
in self.__dict__.items()]
21646 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
21649 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
21656 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
21677 iprot.readStructBegin()
21679 (fname, ftype, fid) = iprot.readFieldBegin()
21680 if ftype == TType.STOP:
21683 if ftype == TType.STRING:
21684 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
21688 if ftype == TType.STRING:
21689 self.
userName = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
21694 iprot.readFieldEnd()
21695 iprot.readStructEnd()
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]))
21701 oprot.writeStructBegin(
'get_all_effective_roles_for_user_args')
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()
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()
21717 L = [
'%s=%r' % (key, value)
21718 for key, value
in self.__dict__.items()]
21719 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
21722 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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 = (
21729 (1, TType.STRING,
'session',
'UTF8',
None, ),
21730 (2, TType.STRING,
'userName',
'UTF8',
None, ),
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])
21751 iprot.readStructBegin()
21753 (fname, ftype, fid) = iprot.readFieldBegin()
21754 if ftype == TType.STOP:
21757 if ftype == TType.LIST:
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()
21767 if ftype == TType.STRUCT:
21768 self.
e = TDBException.read(iprot)
21773 iprot.readFieldEnd()
21774 iprot.readStructEnd()
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]))
21780 oprot.writeStructBegin(
'get_all_effective_roles_for_user_result')
21782 oprot.writeFieldBegin(
'success', TType.LIST, 0)
21783 oprot.writeListBegin(TType.STRING, len(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()
21799 L = [
'%s=%r' % (key, value)
21800 for key, value
in self.__dict__.items()]
21801 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
21804 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
21811 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
21825 def __init__(self, session=None, granteeName=None, roleName=None,):
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])
21834 iprot.readStructBegin()
21836 (fname, ftype, fid) = iprot.readFieldBegin()
21837 if ftype == TType.STOP:
21840 if ftype == TType.STRING:
21841 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
21845 if ftype == TType.STRING:
21846 self.
granteeName = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
21850 if ftype == TType.STRING:
21851 self.
roleName = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
21856 iprot.readFieldEnd()
21857 iprot.readStructEnd()
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]))
21863 oprot.writeStructBegin(
'has_role_args')
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()
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()
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()
21883 L = [
'%s=%r' % (key, value)
21884 for key, value
in self.__dict__.items()]
21885 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
21888 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
21891 return not (self == other)
21892 all_structs.append(has_role_args)
21893 has_role_args.thrift_spec = (
21895 (1, TType.STRING,
'session',
'UTF8',
None, ),
21896 (2, TType.STRING,
'granteeName',
'UTF8',
None, ),
21897 (3, TType.STRING,
'roleName',
'UTF8',
None, ),
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])
21918 iprot.readStructBegin()
21920 (fname, ftype, fid) = iprot.readFieldBegin()
21921 if ftype == TType.STOP:
21924 if ftype == TType.BOOL:
21925 self.
success = iprot.readBool()
21929 if ftype == TType.STRUCT:
21930 self.
e = TDBException.read(iprot)
21935 iprot.readFieldEnd()
21936 iprot.readStructEnd()
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]))
21942 oprot.writeStructBegin(
'has_role_result')
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()
21958 L = [
'%s=%r' % (key, value)
21959 for key, value
in self.__dict__.items()]
21960 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
21963 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
21970 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
21986 def __init__(self, session=None, granteeName=None, ObjectName=None, objectType=None, permissions=None,):
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])
21997 iprot.readStructBegin()
21999 (fname, ftype, fid) = iprot.readFieldBegin()
22000 if ftype == TType.STOP:
22003 if ftype == TType.STRING:
22004 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
22008 if ftype == TType.STRING:
22009 self.
granteeName = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
22013 if ftype == TType.STRING:
22014 self.
ObjectName = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
22018 if ftype == TType.I32:
22023 if ftype == TType.STRUCT:
22025 self.permissions.read(iprot)
22030 iprot.readFieldEnd()
22031 iprot.readStructEnd()
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]))
22037 oprot.writeStructBegin(
'has_object_privilege_args')
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()
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()
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()
22051 oprot.writeFieldBegin(
'objectType', TType.I32, 4)
22053 oprot.writeFieldEnd()
22055 oprot.writeFieldBegin(
'permissions', TType.STRUCT, 5)
22056 self.permissions.write(oprot)
22057 oprot.writeFieldEnd()
22058 oprot.writeFieldStop()
22059 oprot.writeStructEnd()
22065 L = [
'%s=%r' % (key, value)
22066 for key, value
in self.__dict__.items()]
22067 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
22070 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
22073 return not (self == other)
22074 all_structs.append(has_object_privilege_args)
22075 has_object_privilege_args.thrift_spec = (
22077 (1, TType.STRING,
'session',
'UTF8',
None, ),
22078 (2, TType.STRING,
'granteeName',
'UTF8',
None, ),
22079 (3, TType.STRING,
'ObjectName',
'UTF8',
None, ),
22080 (4, TType.I32,
'objectType',
None,
None, ),
22081 (5, TType.STRUCT,
'permissions', [TDBObjectPermissions,
None],
None, ),
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])
22102 iprot.readStructBegin()
22104 (fname, ftype, fid) = iprot.readFieldBegin()
22105 if ftype == TType.STOP:
22108 if ftype == TType.BOOL:
22109 self.
success = iprot.readBool()
22113 if ftype == TType.STRUCT:
22114 self.
e = TDBException.read(iprot)
22119 iprot.readFieldEnd()
22120 iprot.readStructEnd()
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]))
22126 oprot.writeStructBegin(
'has_object_privilege_result')
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()
22142 L = [
'%s=%r' % (key, value)
22143 for key, value
in self.__dict__.items()]
22144 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
22147 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
22154 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
22177 iprot.readStructBegin()
22179 (fname, ftype, fid) = iprot.readFieldBegin()
22180 if ftype == TType.STOP:
22183 if ftype == TType.STRING:
22184 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
22188 if ftype == TType.STRING:
22189 self.
key = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
22193 if ftype == TType.STRING:
22194 self.
nonce = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
22199 iprot.readFieldEnd()
22200 iprot.readStructEnd()
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]))
22206 oprot.writeStructBegin(
'set_license_key_args')
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()
22226 L = [
'%s=%r' % (key, value)
22227 for key, value
in self.__dict__.items()]
22228 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
22231 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
22234 return not (self == other)
22235 all_structs.append(set_license_key_args)
22236 set_license_key_args.thrift_spec = (
22238 (1, TType.STRING,
'session',
'UTF8',
None, ),
22239 (2, TType.STRING,
'key',
'UTF8',
None, ),
22240 (3, TType.STRING,
'nonce',
'UTF8',
"", ),
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])
22261 iprot.readStructBegin()
22263 (fname, ftype, fid) = iprot.readFieldBegin()
22264 if ftype == TType.STOP:
22267 if ftype == TType.STRUCT:
22268 self.
success = TLicenseInfo()
22269 self.success.read(iprot)
22273 if ftype == TType.STRUCT:
22274 self.
e = TDBException.read(iprot)
22279 iprot.readFieldEnd()
22280 iprot.readStructEnd()
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]))
22286 oprot.writeStructBegin(
'set_license_key_result')
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()
22302 L = [
'%s=%r' % (key, value)
22303 for key, value
in self.__dict__.items()]
22304 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
22307 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
22314 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
22335 iprot.readStructBegin()
22337 (fname, ftype, fid) = iprot.readFieldBegin()
22338 if ftype == TType.STOP:
22341 if ftype == TType.STRING:
22342 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
22346 if ftype == TType.STRING:
22347 self.
nonce = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
22352 iprot.readFieldEnd()
22353 iprot.readStructEnd()
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]))
22359 oprot.writeStructBegin(
'get_license_claims_args')
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()
22375 L = [
'%s=%r' % (key, value)
22376 for key, value
in self.__dict__.items()]
22377 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
22380 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
22383 return not (self == other)
22384 all_structs.append(get_license_claims_args)
22385 get_license_claims_args.thrift_spec = (
22387 (1, TType.STRING,
'session',
'UTF8',
None, ),
22388 (2, TType.STRING,
'nonce',
'UTF8',
"", ),
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])
22409 iprot.readStructBegin()
22411 (fname, ftype, fid) = iprot.readFieldBegin()
22412 if ftype == TType.STOP:
22415 if ftype == TType.STRUCT:
22416 self.
success = TLicenseInfo()
22417 self.success.read(iprot)
22421 if ftype == TType.STRUCT:
22422 self.
e = TDBException.read(iprot)
22427 iprot.readFieldEnd()
22428 iprot.readStructEnd()
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]))
22434 oprot.writeStructBegin(
'get_license_claims_result')
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()
22450 L = [
'%s=%r' % (key, value)
22451 for key, value
in self.__dict__.items()]
22452 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
22455 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
22462 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
22481 iprot.readStructBegin()
22483 (fname, ftype, fid) = iprot.readFieldBegin()
22484 if ftype == TType.STOP:
22487 if ftype == TType.STRING:
22488 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
22493 iprot.readFieldEnd()
22494 iprot.readStructEnd()
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]))
22500 oprot.writeStructBegin(
'get_device_parameters_args')
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()
22512 L = [
'%s=%r' % (key, value)
22513 for key, value
in self.__dict__.items()]
22514 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
22517 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
22520 return not (self == other)
22521 all_structs.append(get_device_parameters_args)
22522 get_device_parameters_args.thrift_spec = (
22524 (1, TType.STRING,
'session',
'UTF8',
None, ),
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])
22545 iprot.readStructBegin()
22547 (fname, ftype, fid) = iprot.readFieldBegin()
22548 if ftype == TType.STOP:
22551 if ftype == TType.MAP:
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
22562 if ftype == TType.STRUCT:
22563 self.
e = TDBException.read(iprot)
22568 iprot.readFieldEnd()
22569 iprot.readStructEnd()
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]))
22575 oprot.writeStructBegin(
'get_device_parameters_result')
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()
22595 L = [
'%s=%r' % (key, value)
22596 for key, value
in self.__dict__.items()]
22597 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
22600 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
22607 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
22622 def __init__(self, session=None, udfs=None, udtfs=None, device_ir_map=None,):
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])
22632 iprot.readStructBegin()
22634 (fname, ftype, fid) = iprot.readFieldBegin()
22635 if ftype == TType.STOP:
22638 if ftype == TType.STRING:
22639 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
22643 if ftype == TType.LIST:
22645 (_etype662, _size659) = iprot.readListBegin()
22646 for _i663
in range(_size659):
22648 _elem664.read(iprot)
22649 self.udfs.append(_elem664)
22650 iprot.readListEnd()
22654 if ftype == TType.LIST:
22656 (_etype668, _size665) = iprot.readListBegin()
22657 for _i669
in range(_size665):
22659 _elem670.read(iprot)
22660 self.udtfs.append(_elem670)
22661 iprot.readListEnd()
22665 if ftype == TType.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()
22677 iprot.readFieldEnd()
22678 iprot.readStructEnd()
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]))
22684 oprot.writeStructBegin(
'register_runtime_extension_functions_args')
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()
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()
22718 L = [
'%s=%r' % (key, value)
22719 for key, value
in self.__dict__.items()]
22720 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
22723 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
22726 return not (self == other)
22727 all_structs.append(register_runtime_extension_functions_args)
22728 register_runtime_extension_functions_args.thrift_spec = (
22730 (1, TType.STRING,
'session',
'UTF8',
None, ),
22733 (4, TType.MAP,
'device_ir_map', (TType.STRING,
'UTF8', TType.STRING,
'UTF8',
False),
None, ),
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])
22752 iprot.readStructBegin()
22754 (fname, ftype, fid) = iprot.readFieldBegin()
22755 if ftype == TType.STOP:
22758 if ftype == TType.STRUCT:
22759 self.
e = TDBException.read(iprot)
22764 iprot.readFieldEnd()
22765 iprot.readStructEnd()
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]))
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()
22783 L = [
'%s=%r' % (key, value)
22784 for key, value
in self.__dict__.items()]
22785 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
22788 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
22791 return not (self == other)
22792 all_structs.append(register_runtime_extension_functions_result)
22793 register_runtime_extension_functions_result.thrift_spec = (
22795 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
22814 iprot.readStructBegin()
22816 (fname, ftype, fid) = iprot.readFieldBegin()
22817 if ftype == TType.STOP:
22820 if ftype == TType.STRING:
22821 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
22826 iprot.readFieldEnd()
22827 iprot.readStructEnd()
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]))
22833 oprot.writeStructBegin(
'get_table_function_names_args')
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()
22845 L = [
'%s=%r' % (key, value)
22846 for key, value
in self.__dict__.items()]
22847 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
22850 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
22853 return not (self == other)
22854 all_structs.append(get_table_function_names_args)
22855 get_table_function_names_args.thrift_spec = (
22857 (1, TType.STRING,
'session',
'UTF8',
None, ),
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])
22878 iprot.readStructBegin()
22880 (fname, ftype, fid) = iprot.readFieldBegin()
22881 if ftype == TType.STOP:
22884 if ftype == TType.LIST:
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()
22894 if ftype == TType.STRUCT:
22895 self.
e = TDBException.read(iprot)
22900 iprot.readFieldEnd()
22901 iprot.readStructEnd()
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]))
22907 oprot.writeStructBegin(
'get_table_function_names_result')
22909 oprot.writeFieldBegin(
'success', TType.LIST, 0)
22910 oprot.writeListBegin(TType.STRING, len(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()
22926 L = [
'%s=%r' % (key, value)
22927 for key, value
in self.__dict__.items()]
22928 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
22931 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
22938 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
22957 iprot.readStructBegin()
22959 (fname, ftype, fid) = iprot.readFieldBegin()
22960 if ftype == TType.STOP:
22963 if ftype == TType.STRING:
22964 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
22969 iprot.readFieldEnd()
22970 iprot.readStructEnd()
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]))
22976 oprot.writeStructBegin(
'get_runtime_table_function_names_args')
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()
22988 L = [
'%s=%r' % (key, value)
22989 for key, value
in self.__dict__.items()]
22990 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
22993 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
22996 return not (self == other)
22997 all_structs.append(get_runtime_table_function_names_args)
22998 get_runtime_table_function_names_args.thrift_spec = (
23000 (1, TType.STRING,
'session',
'UTF8',
None, ),
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])
23021 iprot.readStructBegin()
23023 (fname, ftype, fid) = iprot.readFieldBegin()
23024 if ftype == TType.STOP:
23027 if ftype == TType.LIST:
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()
23037 if ftype == TType.STRUCT:
23038 self.
e = TDBException.read(iprot)
23043 iprot.readFieldEnd()
23044 iprot.readStructEnd()
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]))
23050 oprot.writeStructBegin(
'get_runtime_table_function_names_result')
23052 oprot.writeFieldBegin(
'success', TType.LIST, 0)
23053 oprot.writeListBegin(TType.STRING, len(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()
23069 L = [
'%s=%r' % (key, value)
23070 for key, value
in self.__dict__.items()]
23071 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
23074 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
23081 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
23102 iprot.readStructBegin()
23104 (fname, ftype, fid) = iprot.readFieldBegin()
23105 if ftype == TType.STOP:
23108 if ftype == TType.STRING:
23109 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
23113 if ftype == TType.LIST:
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()
23124 iprot.readFieldEnd()
23125 iprot.readStructEnd()
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]))
23131 oprot.writeStructBegin(
'get_table_function_details_args')
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()
23137 oprot.writeFieldBegin(
'udtf_names', TType.LIST, 2)
23138 oprot.writeListBegin(TType.STRING, len(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()
23150 L = [
'%s=%r' % (key, value)
23151 for key, value
in self.__dict__.items()]
23152 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
23155 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
23158 return not (self == other)
23159 all_structs.append(get_table_function_details_args)
23160 get_table_function_details_args.thrift_spec = (
23162 (1, TType.STRING,
'session',
'UTF8',
None, ),
23163 (2, TType.LIST,
'udtf_names', (TType.STRING,
'UTF8',
False),
None, ),
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])
23184 iprot.readStructBegin()
23186 (fname, ftype, fid) = iprot.readFieldBegin()
23187 if ftype == TType.STOP:
23190 if ftype == TType.LIST:
23192 (_etype706, _size703) = iprot.readListBegin()
23193 for _i707
in range(_size703):
23195 _elem708.read(iprot)
23196 self.success.append(_elem708)
23197 iprot.readListEnd()
23201 if ftype == TType.STRUCT:
23202 self.
e = TDBException.read(iprot)
23207 iprot.readFieldEnd()
23208 iprot.readStructEnd()
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]))
23214 oprot.writeStructBegin(
'get_table_function_details_result')
23216 oprot.writeFieldBegin(
'success', TType.LIST, 0)
23217 oprot.writeListBegin(TType.STRUCT, len(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()
23233 L = [
'%s=%r' % (key, value)
23234 for key, value
in self.__dict__.items()]
23235 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
23238 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
23241 return not (self == other)
23242 all_structs.append(get_table_function_details_result)
23243 get_table_function_details_result.thrift_spec = (
23245 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
23264 iprot.readStructBegin()
23266 (fname, ftype, fid) = iprot.readFieldBegin()
23267 if ftype == TType.STOP:
23270 if ftype == TType.STRING:
23271 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
23276 iprot.readFieldEnd()
23277 iprot.readStructEnd()
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]))
23283 oprot.writeStructBegin(
'get_function_names_args')
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()
23295 L = [
'%s=%r' % (key, value)
23296 for key, value
in self.__dict__.items()]
23297 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
23300 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
23303 return not (self == other)
23304 all_structs.append(get_function_names_args)
23305 get_function_names_args.thrift_spec = (
23307 (1, TType.STRING,
'session',
'UTF8',
None, ),
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])
23328 iprot.readStructBegin()
23330 (fname, ftype, fid) = iprot.readFieldBegin()
23331 if ftype == TType.STOP:
23334 if ftype == TType.LIST:
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()
23344 if ftype == TType.STRUCT:
23345 self.
e = TDBException.read(iprot)
23350 iprot.readFieldEnd()
23351 iprot.readStructEnd()
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]))
23357 oprot.writeStructBegin(
'get_function_names_result')
23359 oprot.writeFieldBegin(
'success', TType.LIST, 0)
23360 oprot.writeListBegin(TType.STRING, len(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()
23376 L = [
'%s=%r' % (key, value)
23377 for key, value
in self.__dict__.items()]
23378 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
23381 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
23388 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
23407 iprot.readStructBegin()
23409 (fname, ftype, fid) = iprot.readFieldBegin()
23410 if ftype == TType.STOP:
23413 if ftype == TType.STRING:
23414 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
23419 iprot.readFieldEnd()
23420 iprot.readStructEnd()
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]))
23426 oprot.writeStructBegin(
'get_runtime_function_names_args')
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()
23438 L = [
'%s=%r' % (key, value)
23439 for key, value
in self.__dict__.items()]
23440 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
23443 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
23446 return not (self == other)
23447 all_structs.append(get_runtime_function_names_args)
23448 get_runtime_function_names_args.thrift_spec = (
23450 (1, TType.STRING,
'session',
'UTF8',
None, ),
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])
23471 iprot.readStructBegin()
23473 (fname, ftype, fid) = iprot.readFieldBegin()
23474 if ftype == TType.STOP:
23477 if ftype == TType.LIST:
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()
23487 if ftype == TType.STRUCT:
23488 self.
e = TDBException.read(iprot)
23493 iprot.readFieldEnd()
23494 iprot.readStructEnd()
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]))
23500 oprot.writeStructBegin(
'get_runtime_function_names_result')
23502 oprot.writeFieldBegin(
'success', TType.LIST, 0)
23503 oprot.writeListBegin(TType.STRING, len(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()
23519 L = [
'%s=%r' % (key, value)
23520 for key, value
in self.__dict__.items()]
23521 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
23524 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
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, ),
23531 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
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])
23552 iprot.readStructBegin()
23554 (fname, ftype, fid) = iprot.readFieldBegin()
23555 if ftype == TType.STOP:
23558 if ftype == TType.STRING:
23559 self.
session = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
23563 if ftype == TType.LIST:
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()
23574 iprot.readFieldEnd()
23575 iprot.readStructEnd()
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]))
23581 oprot.writeStructBegin(
'get_function_details_args')
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()
23587 oprot.writeFieldBegin(
'udf_names', TType.LIST, 2)
23588 oprot.writeListBegin(TType.STRING, len(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()
23600 L = [
'%s=%r' % (key, value)
23601 for key, value
in self.__dict__.items()]
23602 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
23605 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
23608 return not (self == other)
23609 all_structs.append(get_function_details_args)
23610 get_function_details_args.thrift_spec = (
23612 (1, TType.STRING,
'session',
'UTF8',
None, ),
23613 (2, TType.LIST,
'udf_names', (TType.STRING,
'UTF8',
False),
None, ),
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])
23634 iprot.readStructBegin()
23636 (fname, ftype, fid) = iprot.readFieldBegin()
23637 if ftype == TType.STOP:
23640 if ftype == TType.LIST:
23642 (_etype734, _size731) = iprot.readListBegin()
23643 for _i735
in range(_size731):
23645 _elem736.read(iprot)
23646 self.success.append(_elem736)
23647 iprot.readListEnd()
23651 if ftype == TType.STRUCT:
23652 self.
e = TDBException.read(iprot)
23657 iprot.readFieldEnd()
23658 iprot.readStructEnd()
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]))
23664 oprot.writeStructBegin(
'get_function_details_result')
23666 oprot.writeFieldBegin(
'success', TType.LIST, 0)
23667 oprot.writeListBegin(TType.STRUCT, len(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()
23683 L = [
'%s=%r' % (key, value)
23684 for key, value
in self.__dict__.items()]
23685 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
23688 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
23691 return not (self == other)
23692 all_structs.append(get_function_details_result)
23693 get_function_details_result.thrift_spec = (
23695 (1, TType.STRUCT,
'e', [TDBException,
None],
None, ),
23697 fix_spec(all_structs)
def send_get_table_function_details
def process_get_queries_info
def recv_get_db_object_privs
def recv_load_table_binary_columnar
def recv_unshare_dashboards
def recv_get_layers_in_geo_file
def load_table_binary_arrow
def load_table_binary_columnar
def get_device_parameters
def process_update_custom_expression
def process_get_heap_profile
def process_clone_session
def recv_load_table_binary_arrow
def execute_next_render_step
def process_broadcast_serialized_rows
def process_query_get_outer_fragment_count
def recv_execute_query_step
def send_get_first_geo_file_in_archive
def process_get_table_function_details
def recv_query_get_outer_fragment_count
def recv_get_all_roles_for_user
def send_replace_dashboard
def process_get_server_status
def recv_get_table_function_details
def process_get_table_epoch
def get_result_row_for_pixel
def recv_import_geo_table
def check_table_consistency
def set_table_epoch_by_name
def process_start_render_query
def recv_share_dashboards
def recv_get_function_names
def send_get_all_roles_for_user
def create_custom_expression
def process_get_table_function_names
def send_get_table_details_for_database
def send_check_table_consistency
def send_get_result_row_for_pixel
def get_runtime_function_names
def get_all_effective_roles_for_user
def send_unshare_dashboard
def load_table_binary_arrow
def send_get_all_effective_roles_for_user
def process_get_internal_table_details_for_database
def recv_get_runtime_function_names
def process_execute_query_step
def get_table_function_names
def execute_next_render_step
def process_get_result_row_for_pixel
def process_replace_dashboard
def recv_get_result_row_for_pixel
def process_set_table_epoch
def recv_get_db_objects_for_grantee
def recv_broadcast_serialized_rows
def process_delete_dashboards
def process_get_all_effective_roles_for_user
def send_start_heap_profile
def send_update_custom_expression
def process_get_runtime_function_names
def get_internal_table_details_for_database
def recv_get_server_status
def send_register_runtime_extension_functions
def recv_get_table_function_names
def send_delete_custom_expressions
def get_table_function_details
def recv_has_object_privilege
def get_table_epoch_by_name
def send_get_all_files_in_archive
def query_get_outer_fragment_count
def recv_get_table_epoch_by_name
def recv_get_internal_table_details_for_database
def get_internal_table_details
def get_runtime_table_function_names
def send_create_custom_expression
def send_get_internal_table_details
def get_first_geo_file_in_archive
def recv_get_tables_for_database
def process_clear_cpu_memory
def recv_get_runtime_table_function_names
def recv_get_session_info
def recv_create_dashboard
def process_check_table_consistency
def send_delete_dashboards
def get_table_function_names
def process_get_function_details
def recv_register_runtime_extension_functions
def get_custom_expressions
def get_table_details_for_database
def process_get_session_info
def recv_get_first_geo_file_in_archive
def recv_set_execution_mode
def send_set_execution_mode
def process_set_table_epochs
def process_invalidate_cur_session
def recv_get_completion_hints
def recv_set_table_epochs
def process_deallocate_df
def process_get_tables_meta
def recv_unshare_dashboard
def get_tables_for_database
def get_result_row_for_pixel
def register_runtime_extension_functions
def recv_get_all_files_in_archive
def recv_delete_dashboards
def send_execute_query_step
def invalidate_cur_session
def process_get_layers_in_geo_file
def process_get_dashboard
def process_get_internal_table_details
def send_get_queries_info
def get_device_parameters
def process_get_table_epoch_by_name
def process_load_table_binary
def recv_start_heap_profile
def send_import_geo_table
def send_share_dashboards
def process_create_dashboard
def delete_custom_expressions
def recv_invalidate_cur_session
def send_get_layers_in_geo_file
def get_internal_table_details
def recv_get_internal_table_details
def process_start_heap_profile
def process_get_physical_tables
def send_delete_dashboard
def send_clear_gpu_memory
def recv_stop_heap_profile
def process_set_execution_mode
def process_get_all_roles_for_user
def process_get_function_names
def recv_get_function_details
def process_set_cur_session
def recv_get_custom_expressions
def get_runtime_function_names
def get_all_roles_for_user
def send_detect_column_types
def process_load_table_binary_arrow
def send_load_table_binary_columnar
def send_get_session_info
def send_invalidate_cur_session
def send_get_custom_expressions
def process_sql_execute_gdf
def recv_get_license_claims
def send_get_db_objects_for_grantee
def recv_load_table_binary
def process_insert_chunks
def get_all_files_in_archive
def send_get_table_details
def send_stop_heap_profile
def process_get_custom_expressions
def send_get_table_function_names
def process_create_custom_expression
def send_get_runtime_table_function_names
def get_custom_expressions
def create_custom_expression
def recv_execute_next_render_step
def recv_delete_dashboard
def recv_get_device_parameters
def recv_import_table_status
def send_get_table_epochs
def get_layers_in_geo_file
def recv_get_physical_tables
def recv_get_dashboard_grantees
def process_has_object_privilege
def recv_update_custom_expression
def update_custom_expression
def process_unshare_dashboard
def query_get_outer_fragment_count
def get_table_function_details
def send_has_object_privilege
def send_execute_next_render_step
def broadcast_serialized_rows
def recv_get_queries_info
def process_clear_gpu_memory
def get_db_objects_for_grantee
def send_set_table_epoch_by_name
def send_set_table_epochs
def send_get_heap_profile
def send_get_function_details
def load_table_binary_columnar
def recv_get_heap_profile
def recv_clear_cpu_memory
def get_runtime_table_function_names
def check_table_consistency
def process_import_geo_table
def process_get_db_objects_for_grantee
def send_load_table_binary
def get_all_roles_for_user
def process_get_link_view
def invalidate_cur_session
def process_get_table_details
def get_dashboard_grantees
def process_stop_heap_profile
def get_layers_in_geo_file
def get_table_details_for_database
def get_db_objects_for_grantee
def update_custom_expression
def process_get_completion_hints
def process_share_dashboards
def recv_replace_dashboard
def send_get_function_names
def send_get_completion_hints
def send_start_render_query
def send_get_physical_tables
def process_import_table_status
def send_query_get_outer_fragment_count
def process_get_table_details_for_database
def broadcast_serialized_rows
def process_detect_column_types
def get_table_epoch_by_name
def recv_get_table_epochs
def process_get_license_claims
def process_execute_next_render_step
def register_runtime_extension_functions
def send_load_table_binary_arrow
def send_get_dashboard_grantees
def send_get_internal_table_details_for_database
def get_internal_table_details_for_database
def recv_get_hardware_info
def get_tables_for_database
def get_all_files_in_archive
def recv_start_render_query
def process_get_db_object_privs
def get_first_geo_file_in_archive
def send_get_license_claims
def send_get_tables_for_database
def process_share_dashboard
def process_get_first_geo_file_in_archive
def send_broadcast_serialized_rows
def recv_clear_gpu_memory
def get_all_effective_roles_for_user
def process_load_table_binary_columnar
def recv_get_all_effective_roles_for_user
def process_get_hardware_info
def process_set_leaf_info
def send_create_dashboard
def set_table_epoch_by_name
def process_get_tables_for_database
def process_get_databases
def send_clear_cpu_memory
def process_get_all_files_in_archive
def send_get_table_epoch_by_name
def process_register_runtime_extension_functions
def process_set_table_epoch_by_name
def process_delete_custom_expressions
def recv_delete_custom_expressions
def delete_custom_expressions
def process_get_runtime_table_function_names
def process_get_dashboards
def recv_create_custom_expression
def send_get_hardware_info
def send_get_device_parameters
def send_get_db_object_privs
def send_import_table_status
def process_get_dashboard_grantees
def send_get_runtime_function_names
def process_set_license_key
def process_get_table_epochs
def recv_get_table_details_for_database
def send_unshare_dashboards
def get_dashboard_grantees
def recv_get_table_details
def recv_detect_column_types
def process_sql_execute_df
def process_switch_database
def recv_set_table_epoch_by_name
def process_get_device_parameters
def send_get_server_status
def process_unshare_dashboards
def recv_check_table_consistency
def process_delete_dashboard