9 from thrift.Thrift
import TType, TMessageType, TFrozenDict, TException, TApplicationException
10 from thrift.protocol.TProtocol
import TProtocolException
11 from thrift.TRecursive
import fix_spec
19 from thrift.transport
import TTransport
100 "UNSUPPORTED_GEO": 3,
126 STRING_DICTIONARY = 3
132 3:
"STRING_DICTIONARY",
139 "STRING_DICTIONARY": 3,
339 AbstractDBObjectType = 0
340 DatabaseDBObjectType = 1
341 TableDBObjectType = 2
342 DashboardDBObjectType = 3
344 ServerDBObjectType = 5
347 0:
"AbstractDBObjectType",
348 1:
"DatabaseDBObjectType",
349 2:
"TableDBObjectType",
350 3:
"DashboardDBObjectType",
351 4:
"ViewDBObjectType",
352 5:
"ServerDBObjectType",
356 "AbstractDBObjectType": 0,
357 "DatabaseDBObjectType": 1,
358 "TableDBObjectType": 2,
359 "DashboardDBObjectType": 3,
360 "ViewDBObjectType": 4,
361 "ServerDBObjectType": 5,
388 def __init__(self, int_val=None, real_val=None, str_val=None, arr_val=None,):
395 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
396 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
398 iprot.readStructBegin()
400 (fname, ftype, fid) = iprot.readFieldBegin()
401 if ftype == TType.STOP:
404 if ftype == TType.I64:
409 if ftype == TType.DOUBLE:
414 if ftype == TType.STRING:
415 self.
str_val = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
419 if ftype == TType.LIST:
421 (_etype3, _size0) = iprot.readListBegin()
422 for _i4
in range(_size0):
425 self.arr_val.append(_elem5)
432 iprot.readStructEnd()
435 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
436 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
438 oprot.writeStructBegin(
'TDatumVal')
440 oprot.writeFieldBegin(
'int_val', TType.I64, 1)
442 oprot.writeFieldEnd()
444 oprot.writeFieldBegin(
'real_val', TType.DOUBLE, 2)
446 oprot.writeFieldEnd()
448 oprot.writeFieldBegin(
'str_val', TType.STRING, 3)
449 oprot.writeString(self.str_val.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
str_val)
450 oprot.writeFieldEnd()
452 oprot.writeFieldBegin(
'arr_val', TType.LIST, 4)
453 oprot.writeListBegin(TType.STRUCT, len(self.
arr_val))
457 oprot.writeFieldEnd()
458 oprot.writeFieldStop()
459 oprot.writeStructEnd()
465 L = [
'%s=%r' % (key, value)
466 for key, value
in self.__dict__.items()]
467 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
470 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
473 return not (self == other)
490 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
491 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
493 iprot.readStructBegin()
495 (fname, ftype, fid) = iprot.readFieldBegin()
496 if ftype == TType.STOP:
499 if ftype == TType.STRUCT:
505 if ftype == TType.BOOL:
506 self.
is_null = iprot.readBool()
512 iprot.readStructEnd()
515 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
516 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
518 oprot.writeStructBegin(
'TDatum')
519 if self.
val is not None:
520 oprot.writeFieldBegin(
'val', TType.STRUCT, 1)
521 self.val.write(oprot)
522 oprot.writeFieldEnd()
524 oprot.writeFieldBegin(
'is_null', TType.BOOL, 2)
526 oprot.writeFieldEnd()
527 oprot.writeFieldStop()
528 oprot.writeStructEnd()
534 L = [
'%s=%r' % (key, value)
535 for key, value
in self.__dict__.items()]
536 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
539 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
542 return not (self == other)
559 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
560 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
562 iprot.readStructBegin()
564 (fname, ftype, fid) = iprot.readFieldBegin()
565 if ftype == TType.STOP:
568 if ftype == TType.STRING:
569 self.
str_val = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
573 if ftype == TType.BOOL:
574 self.
is_null = iprot.readBool()
580 iprot.readStructEnd()
583 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
584 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
586 oprot.writeStructBegin(
'TStringValue')
588 oprot.writeFieldBegin(
'str_val', TType.STRING, 1)
589 oprot.writeString(self.str_val.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
str_val)
590 oprot.writeFieldEnd()
592 oprot.writeFieldBegin(
'is_null', TType.BOOL, 2)
594 oprot.writeFieldEnd()
595 oprot.writeFieldStop()
596 oprot.writeStructEnd()
602 L = [
'%s=%r' % (key, value)
603 for key, value
in self.__dict__.items()]
604 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
607 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
610 return not (self == other)
618 - is_reserved_keyword
628 def __init__(self, col_name=None, col_type=None, is_reserved_keyword=None, src_name=None, is_system=None, is_physical=None, col_id=None, default_value=None,):
639 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
640 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
642 iprot.readStructBegin()
644 (fname, ftype, fid) = iprot.readFieldBegin()
645 if ftype == TType.STOP:
648 if ftype == TType.STRING:
649 self.
col_name = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
653 if ftype == TType.STRUCT:
655 self.col_type.read(iprot)
659 if ftype == TType.BOOL:
664 if ftype == TType.STRING:
665 self.
src_name = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
669 if ftype == TType.BOOL:
674 if ftype == TType.BOOL:
679 if ftype == TType.I64:
680 self.
col_id = iprot.readI64()
684 if ftype == TType.STRING:
685 self.
default_value = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
691 iprot.readStructEnd()
694 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
695 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
697 oprot.writeStructBegin(
'TColumnType')
699 oprot.writeFieldBegin(
'col_name', TType.STRING, 1)
700 oprot.writeString(self.col_name.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
col_name)
701 oprot.writeFieldEnd()
703 oprot.writeFieldBegin(
'col_type', TType.STRUCT, 2)
704 self.col_type.write(oprot)
705 oprot.writeFieldEnd()
707 oprot.writeFieldBegin(
'is_reserved_keyword', TType.BOOL, 3)
709 oprot.writeFieldEnd()
711 oprot.writeFieldBegin(
'src_name', TType.STRING, 4)
712 oprot.writeString(self.src_name.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
src_name)
713 oprot.writeFieldEnd()
715 oprot.writeFieldBegin(
'is_system', TType.BOOL, 5)
717 oprot.writeFieldEnd()
719 oprot.writeFieldBegin(
'is_physical', TType.BOOL, 6)
721 oprot.writeFieldEnd()
722 if self.
col_id is not None:
723 oprot.writeFieldBegin(
'col_id', TType.I64, 7)
724 oprot.writeI64(self.
col_id)
725 oprot.writeFieldEnd()
727 oprot.writeFieldBegin(
'default_value', TType.STRING, 8)
728 oprot.writeString(self.default_value.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
default_value)
729 oprot.writeFieldEnd()
730 oprot.writeFieldStop()
731 oprot.writeStructEnd()
737 L = [
'%s=%r' % (key, value)
738 for key, value
in self.__dict__.items()]
739 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
742 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
745 return not (self == other)
760 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
761 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
763 iprot.readStructBegin()
765 (fname, ftype, fid) = iprot.readFieldBegin()
766 if ftype == TType.STOP:
769 if ftype == TType.LIST:
771 (_etype10, _size7) = iprot.readListBegin()
772 for _i11
in range(_size7):
775 self.cols.append(_elem12)
782 iprot.readStructEnd()
785 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
786 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
788 oprot.writeStructBegin(
'TRow')
789 if self.
cols is not None:
790 oprot.writeFieldBegin(
'cols', TType.LIST, 1)
791 oprot.writeListBegin(TType.STRUCT, len(self.
cols))
792 for iter13
in self.
cols:
795 oprot.writeFieldEnd()
796 oprot.writeFieldStop()
797 oprot.writeStructEnd()
803 L = [
'%s=%r' % (key, value)
804 for key, value
in self.__dict__.items()]
805 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
808 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
811 return not (self == other)
825 def __init__(self, int_col=None, real_col=None, str_col=None, arr_col=None,):
832 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
833 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
835 iprot.readStructBegin()
837 (fname, ftype, fid) = iprot.readFieldBegin()
838 if ftype == TType.STOP:
841 if ftype == TType.LIST:
843 (_etype17, _size14) = iprot.readListBegin()
844 for _i18
in range(_size14):
845 _elem19 = iprot.readI64()
846 self.int_col.append(_elem19)
851 if ftype == TType.LIST:
853 (_etype23, _size20) = iprot.readListBegin()
854 for _i24
in range(_size20):
855 _elem25 = iprot.readDouble()
856 self.real_col.append(_elem25)
861 if ftype == TType.LIST:
863 (_etype29, _size26) = iprot.readListBegin()
864 for _i30
in range(_size26):
865 _elem31 = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
866 self.str_col.append(_elem31)
871 if ftype == TType.LIST:
873 (_etype35, _size32) = iprot.readListBegin()
874 for _i36
in range(_size32):
877 self.arr_col.append(_elem37)
884 iprot.readStructEnd()
887 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
888 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
890 oprot.writeStructBegin(
'TColumnData')
892 oprot.writeFieldBegin(
'int_col', TType.LIST, 1)
893 oprot.writeListBegin(TType.I64, len(self.
int_col))
895 oprot.writeI64(iter38)
897 oprot.writeFieldEnd()
899 oprot.writeFieldBegin(
'real_col', TType.LIST, 2)
900 oprot.writeListBegin(TType.DOUBLE, len(self.
real_col))
902 oprot.writeDouble(iter39)
904 oprot.writeFieldEnd()
906 oprot.writeFieldBegin(
'str_col', TType.LIST, 3)
907 oprot.writeListBegin(TType.STRING, len(self.
str_col))
909 oprot.writeString(iter40.encode(
'utf-8')
if sys.version_info[0] == 2
else iter40)
911 oprot.writeFieldEnd()
913 oprot.writeFieldBegin(
'arr_col', TType.LIST, 4)
914 oprot.writeListBegin(TType.STRUCT, len(self.
arr_col))
918 oprot.writeFieldEnd()
919 oprot.writeFieldStop()
920 oprot.writeStructEnd()
926 L = [
'%s=%r' % (key, value)
927 for key, value
in self.__dict__.items()]
928 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
931 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
934 return not (self == other)
951 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
952 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
954 iprot.readStructBegin()
956 (fname, ftype, fid) = iprot.readFieldBegin()
957 if ftype == TType.STOP:
960 if ftype == TType.STRUCT:
962 self.data.read(iprot)
966 if ftype == TType.LIST:
968 (_etype45, _size42) = iprot.readListBegin()
969 for _i46
in range(_size42):
970 _elem47 = iprot.readBool()
971 self.nulls.append(_elem47)
978 iprot.readStructEnd()
981 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
982 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
984 oprot.writeStructBegin(
'TColumn')
985 if self.
data is not None:
986 oprot.writeFieldBegin(
'data', TType.STRUCT, 1)
987 self.data.write(oprot)
988 oprot.writeFieldEnd()
989 if self.
nulls is not None:
990 oprot.writeFieldBegin(
'nulls', TType.LIST, 2)
991 oprot.writeListBegin(TType.BOOL, len(self.
nulls))
992 for iter48
in self.
nulls:
993 oprot.writeBool(iter48)
995 oprot.writeFieldEnd()
996 oprot.writeFieldStop()
997 oprot.writeStructEnd()
1003 L = [
'%s=%r' % (key, value)
1004 for key, value
in self.__dict__.items()]
1005 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
1008 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
1011 return not (self == other)
1026 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
1027 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
1029 iprot.readStructBegin()
1031 (fname, ftype, fid) = iprot.readFieldBegin()
1032 if ftype == TType.STOP:
1035 if ftype == TType.LIST:
1037 (_etype52, _size49) = iprot.readListBegin()
1038 for _i53
in range(_size49):
1041 self.cols.append(_elem54)
1047 iprot.readFieldEnd()
1048 iprot.readStructEnd()
1051 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
1052 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
1054 oprot.writeStructBegin(
'TStringRow')
1055 if self.
cols is not None:
1056 oprot.writeFieldBegin(
'cols', TType.LIST, 1)
1057 oprot.writeListBegin(TType.STRUCT, len(self.
cols))
1058 for iter55
in self.
cols:
1060 oprot.writeListEnd()
1061 oprot.writeFieldEnd()
1062 oprot.writeFieldStop()
1063 oprot.writeStructEnd()
1069 L = [
'%s=%r' % (key, value)
1070 for key, value
in self.__dict__.items()]
1071 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
1074 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
1077 return not (self == other)
1094 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
1095 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
1097 iprot.readStructBegin()
1099 (fname, ftype, fid) = iprot.readFieldBegin()
1100 if ftype == TType.STOP:
1103 if ftype == TType.STRING:
1104 self.
sessionId = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
1108 if ftype == TType.STRING:
1109 self.
krbToken = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
1114 iprot.readFieldEnd()
1115 iprot.readStructEnd()
1118 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
1119 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
1121 oprot.writeStructBegin(
'TKrb5Session')
1123 oprot.writeFieldBegin(
'sessionId', TType.STRING, 1)
1124 oprot.writeString(self.sessionId.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
sessionId)
1125 oprot.writeFieldEnd()
1127 oprot.writeFieldBegin(
'krbToken', TType.STRING, 2)
1128 oprot.writeString(self.krbToken.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
krbToken)
1129 oprot.writeFieldEnd()
1130 oprot.writeFieldStop()
1131 oprot.writeStructEnd()
1137 L = [
'%s=%r' % (key, value)
1138 for key, value
in self.__dict__.items()]
1139 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
1142 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
1145 return not (self == other)
1152 - execution_finished
1161 def __init__(self, serialized_rows=None, execution_finished=None, merge_type=None, sharded=None, row_desc=None, node_id=None,):
1170 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
1171 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
1173 iprot.readStructBegin()
1175 (fname, ftype, fid) = iprot.readFieldBegin()
1176 if ftype == TType.STOP:
1179 if ftype == TType.STRUCT:
1181 self.serialized_rows.read(iprot)
1185 if ftype == TType.BOOL:
1190 if ftype == TType.I32:
1195 if ftype == TType.BOOL:
1196 self.
sharded = iprot.readBool()
1200 if ftype == TType.LIST:
1202 (_etype59, _size56) = iprot.readListBegin()
1203 for _i60
in range(_size56):
1206 self.row_desc.append(_elem61)
1211 if ftype == TType.I32:
1212 self.
node_id = iprot.readI32()
1217 iprot.readFieldEnd()
1218 iprot.readStructEnd()
1221 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
1222 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
1224 oprot.writeStructBegin(
'TStepResult')
1226 oprot.writeFieldBegin(
'serialized_rows', TType.STRUCT, 1)
1227 self.serialized_rows.write(oprot)
1228 oprot.writeFieldEnd()
1230 oprot.writeFieldBegin(
'execution_finished', TType.BOOL, 2)
1232 oprot.writeFieldEnd()
1234 oprot.writeFieldBegin(
'merge_type', TType.I32, 3)
1236 oprot.writeFieldEnd()
1238 oprot.writeFieldBegin(
'sharded', TType.BOOL, 4)
1240 oprot.writeFieldEnd()
1242 oprot.writeFieldBegin(
'row_desc', TType.LIST, 5)
1243 oprot.writeListBegin(TType.STRUCT, len(self.
row_desc))
1246 oprot.writeListEnd()
1247 oprot.writeFieldEnd()
1249 oprot.writeFieldBegin(
'node_id', TType.I32, 6)
1251 oprot.writeFieldEnd()
1252 oprot.writeFieldStop()
1253 oprot.writeStructEnd()
1259 L = [
'%s=%r' % (key, value)
1260 for key, value
in self.__dict__.items()]
1261 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
1264 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
1267 return not (self == other)
1281 def __init__(self, row_desc=None, rows=None, columns=None, is_columnar=None,):
1288 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
1289 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
1291 iprot.readStructBegin()
1293 (fname, ftype, fid) = iprot.readFieldBegin()
1294 if ftype == TType.STOP:
1297 if ftype == TType.LIST:
1299 (_etype66, _size63) = iprot.readListBegin()
1300 for _i67
in range(_size63):
1303 self.row_desc.append(_elem68)
1308 if ftype == TType.LIST:
1310 (_etype72, _size69) = iprot.readListBegin()
1311 for _i73
in range(_size69):
1314 self.rows.append(_elem74)
1319 if ftype == TType.LIST:
1321 (_etype78, _size75) = iprot.readListBegin()
1322 for _i79
in range(_size75):
1325 self.columns.append(_elem80)
1330 if ftype == TType.BOOL:
1336 iprot.readFieldEnd()
1337 iprot.readStructEnd()
1340 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
1341 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
1343 oprot.writeStructBegin(
'TRowSet')
1345 oprot.writeFieldBegin(
'row_desc', TType.LIST, 1)
1346 oprot.writeListBegin(TType.STRUCT, len(self.
row_desc))
1349 oprot.writeListEnd()
1350 oprot.writeFieldEnd()
1351 if self.
rows is not None:
1352 oprot.writeFieldBegin(
'rows', TType.LIST, 2)
1353 oprot.writeListBegin(TType.STRUCT, len(self.
rows))
1354 for iter82
in self.
rows:
1356 oprot.writeListEnd()
1357 oprot.writeFieldEnd()
1359 oprot.writeFieldBegin(
'columns', TType.LIST, 3)
1360 oprot.writeListBegin(TType.STRUCT, len(self.
columns))
1363 oprot.writeListEnd()
1364 oprot.writeFieldEnd()
1366 oprot.writeFieldBegin(
'is_columnar', TType.BOOL, 4)
1368 oprot.writeFieldEnd()
1369 oprot.writeFieldStop()
1370 oprot.writeStructEnd()
1376 L = [
'%s=%r' % (key, value)
1377 for key, value
in self.__dict__.items()]
1378 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
1381 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
1384 return not (self == other)
1401 def __init__(self, row_set=None, execution_time_ms=None, total_time_ms=None, nonce=None, debug=None, success=True, query_type=0,):
1411 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
1412 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
1414 iprot.readStructBegin()
1416 (fname, ftype, fid) = iprot.readFieldBegin()
1417 if ftype == TType.STOP:
1420 if ftype == TType.STRUCT:
1422 self.row_set.read(iprot)
1426 if ftype == TType.I64:
1431 if ftype == TType.I64:
1436 if ftype == TType.STRING:
1437 self.
nonce = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
1441 if ftype == TType.STRING:
1442 self.
debug = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
1446 if ftype == TType.BOOL:
1447 self.
success = iprot.readBool()
1451 if ftype == TType.I32:
1457 iprot.readFieldEnd()
1458 iprot.readStructEnd()
1461 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
1462 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
1464 oprot.writeStructBegin(
'TQueryResult')
1466 oprot.writeFieldBegin(
'row_set', TType.STRUCT, 1)
1467 self.row_set.write(oprot)
1468 oprot.writeFieldEnd()
1470 oprot.writeFieldBegin(
'execution_time_ms', TType.I64, 2)
1472 oprot.writeFieldEnd()
1474 oprot.writeFieldBegin(
'total_time_ms', TType.I64, 3)
1476 oprot.writeFieldEnd()
1477 if self.
nonce is not None:
1478 oprot.writeFieldBegin(
'nonce', TType.STRING, 4)
1479 oprot.writeString(self.nonce.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
nonce)
1480 oprot.writeFieldEnd()
1481 if self.
debug is not None:
1482 oprot.writeFieldBegin(
'debug', TType.STRING, 5)
1483 oprot.writeString(self.debug.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
debug)
1484 oprot.writeFieldEnd()
1486 oprot.writeFieldBegin(
'success', TType.BOOL, 6)
1488 oprot.writeFieldEnd()
1490 oprot.writeFieldBegin(
'query_type', TType.I32, 7)
1492 oprot.writeFieldEnd()
1493 oprot.writeFieldStop()
1494 oprot.writeStructEnd()
1500 L = [
'%s=%r' % (key, value)
1501 for key, value
in self.__dict__.items()]
1502 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
1505 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
1508 return not (self == other)
1519 - arrow_conversion_time_ms
1525 def __init__(self, sm_handle=None, sm_size=None, df_handle=None, df_size=None, execution_time_ms=None, arrow_conversion_time_ms=None, df_buffer=None,):
1535 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
1536 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
1538 iprot.readStructBegin()
1540 (fname, ftype, fid) = iprot.readFieldBegin()
1541 if ftype == TType.STOP:
1544 if ftype == TType.STRING:
1549 if ftype == TType.I64:
1550 self.
sm_size = iprot.readI64()
1554 if ftype == TType.STRING:
1559 if ftype == TType.I64:
1560 self.
df_size = iprot.readI64()
1564 if ftype == TType.I64:
1569 if ftype == TType.I64:
1574 if ftype == TType.STRING:
1580 iprot.readFieldEnd()
1581 iprot.readStructEnd()
1584 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
1585 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
1587 oprot.writeStructBegin(
'TDataFrame')
1589 oprot.writeFieldBegin(
'sm_handle', TType.STRING, 1)
1591 oprot.writeFieldEnd()
1593 oprot.writeFieldBegin(
'sm_size', TType.I64, 2)
1595 oprot.writeFieldEnd()
1597 oprot.writeFieldBegin(
'df_handle', TType.STRING, 3)
1599 oprot.writeFieldEnd()
1601 oprot.writeFieldBegin(
'df_size', TType.I64, 4)
1603 oprot.writeFieldEnd()
1605 oprot.writeFieldBegin(
'execution_time_ms', TType.I64, 5)
1607 oprot.writeFieldEnd()
1609 oprot.writeFieldBegin(
'arrow_conversion_time_ms', TType.I64, 6)
1611 oprot.writeFieldEnd()
1613 oprot.writeFieldBegin(
'df_buffer', TType.STRING, 7)
1615 oprot.writeFieldEnd()
1616 oprot.writeFieldStop()
1617 oprot.writeStructEnd()
1623 L = [
'%s=%r' % (key, value)
1624 for key, value
in self.__dict__.items()]
1625 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
1628 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
1631 return not (self == other)
1648 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
1649 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
1651 iprot.readStructBegin()
1653 (fname, ftype, fid) = iprot.readFieldBegin()
1654 if ftype == TType.STOP:
1657 if ftype == TType.STRING:
1658 self.
db_name = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
1662 if ftype == TType.STRING:
1663 self.
db_owner = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
1668 iprot.readFieldEnd()
1669 iprot.readStructEnd()
1672 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
1673 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
1675 oprot.writeStructBegin(
'TDBInfo')
1677 oprot.writeFieldBegin(
'db_name', TType.STRING, 1)
1678 oprot.writeString(self.db_name.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
db_name)
1679 oprot.writeFieldEnd()
1681 oprot.writeFieldBegin(
'db_owner', TType.STRING, 2)
1682 oprot.writeString(self.db_owner.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
db_owner)
1683 oprot.writeFieldEnd()
1684 oprot.writeFieldStop()
1685 oprot.writeStructEnd()
1691 L = [
'%s=%r' % (key, value)
1692 for key, value
in self.__dict__.items()]
1693 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
1696 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
1699 return not (self == other)
1711 super(TDBException, self).
__setattr__(
'error_msg', error_msg)
1714 raise TypeError(
"can't modify immutable instance")
1717 raise TypeError(
"can't modify immutable instance")
1720 return hash(self.__class__) ^ hash((self.error_msg, ))
1724 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and cls.thrift_spec
is not None:
1725 return iprot._fast_decode(
None, iprot, [cls, cls.thrift_spec])
1726 iprot.readStructBegin()
1729 (fname, ftype, fid) = iprot.readFieldBegin()
1730 if ftype == TType.STOP:
1733 if ftype == TType.STRING:
1734 error_msg = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
1739 iprot.readFieldEnd()
1740 iprot.readStructEnd()
1742 error_msg=error_msg,
1746 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
1747 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
1749 oprot.writeStructBegin(
'TDBException')
1750 if self.error_msg
is not None:
1751 oprot.writeFieldBegin(
'error_msg', TType.STRING, 1)
1752 oprot.writeString(self.error_msg.encode(
'utf-8')
if sys.version_info[0] == 2
else self.error_msg)
1753 oprot.writeFieldEnd()
1754 oprot.writeFieldStop()
1755 oprot.writeStructEnd()
1764 L = [
'%s=%r' % (key, value)
1765 for key, value
in self.__dict__.items()]
1766 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
1769 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
1772 return not (self == other)
1793 - geo_coords_encoding
1794 - geo_coords_comp_param
1797 - sanitize_column_names
1800 - geo_assign_render_groups
1801 - geo_explode_collections
1805 - raster_import_bands
1806 - raster_scanlines_per_thread
1807 - raster_point_transform
1808 - raster_point_compute_angle
1809 - raster_import_dimensions
1811 - odbc_connection_string
1816 - odbc_credential_string
1817 - add_metadata_columns
1819 - geo_validate_geometry
1824 def __init__(self, delimiter=None, null_str=None, has_header=0, quoted=None, quote=None, escape=None, line_delim=None, array_delim=None, array_begin=None, array_end=None, threads=None, source_type=0, s3_access_key=None, s3_secret_key=None, s3_region=None, geo_coords_encoding=6, geo_coords_comp_param=32, geo_coords_type=18, geo_coords_srid=4326, sanitize_column_names=True, geo_layer_name=None, s3_endpoint=None, geo_assign_render_groups=False, geo_explode_collections=False, source_srid=0, s3_session_token=None, raster_point_type=1, raster_import_bands=None, raster_scanlines_per_thread=None, raster_point_transform=1, raster_point_compute_angle=False, raster_import_dimensions=None, odbc_dsn=None, odbc_connection_string=None, odbc_sql_select=None, odbc_sql_order_by=None, odbc_username=None, odbc_password=None, odbc_credential_string=None, add_metadata_columns=None, trim_spaces=True, geo_validate_geometry=False,):
1869 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
1870 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
1872 iprot.readStructBegin()
1874 (fname, ftype, fid) = iprot.readFieldBegin()
1875 if ftype == TType.STOP:
1878 if ftype == TType.STRING:
1879 self.
delimiter = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
1883 if ftype == TType.STRING:
1884 self.
null_str = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
1888 if ftype == TType.I32:
1893 if ftype == TType.BOOL:
1894 self.
quoted = iprot.readBool()
1898 if ftype == TType.STRING:
1899 self.
quote = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
1903 if ftype == TType.STRING:
1904 self.
escape = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
1908 if ftype == TType.STRING:
1909 self.
line_delim = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
1913 if ftype == TType.STRING:
1914 self.
array_delim = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
1918 if ftype == TType.STRING:
1919 self.
array_begin = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
1923 if ftype == TType.STRING:
1924 self.
array_end = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
1928 if ftype == TType.I32:
1929 self.
threads = iprot.readI32()
1933 if ftype == TType.I32:
1938 if ftype == TType.STRING:
1939 self.
s3_access_key = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
1943 if ftype == TType.STRING:
1944 self.
s3_secret_key = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
1948 if ftype == TType.STRING:
1949 self.
s3_region = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
1953 if ftype == TType.I32:
1958 if ftype == TType.I32:
1963 if ftype == TType.I32:
1968 if ftype == TType.I32:
1973 if ftype == TType.BOOL:
1978 if ftype == TType.STRING:
1979 self.
geo_layer_name = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
1983 if ftype == TType.STRING:
1984 self.
s3_endpoint = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
1988 if ftype == TType.BOOL:
1993 if ftype == TType.BOOL:
1998 if ftype == TType.I32:
2003 if ftype == TType.STRING:
2004 self.
s3_session_token = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
2008 if ftype == TType.I32:
2013 if ftype == TType.STRING:
2014 self.
raster_import_bands = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
2018 if ftype == TType.I32:
2023 if ftype == TType.I32:
2028 if ftype == TType.BOOL:
2033 if ftype == TType.STRING:
2034 self.
raster_import_dimensions = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
2038 if ftype == TType.STRING:
2039 self.
odbc_dsn = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
2043 if ftype == TType.STRING:
2044 self.
odbc_connection_string = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
2048 if ftype == TType.STRING:
2049 self.
odbc_sql_select = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
2053 if ftype == TType.STRING:
2054 self.
odbc_sql_order_by = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
2058 if ftype == TType.STRING:
2059 self.
odbc_username = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
2063 if ftype == TType.STRING:
2064 self.
odbc_password = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
2068 if ftype == TType.STRING:
2069 self.
odbc_credential_string = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
2073 if ftype == TType.STRING:
2074 self.
add_metadata_columns = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
2078 if ftype == TType.BOOL:
2083 if ftype == TType.BOOL:
2089 iprot.readFieldEnd()
2090 iprot.readStructEnd()
2093 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
2094 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
2096 oprot.writeStructBegin(
'TCopyParams')
2098 oprot.writeFieldBegin(
'delimiter', TType.STRING, 1)
2099 oprot.writeString(self.delimiter.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
delimiter)
2100 oprot.writeFieldEnd()
2102 oprot.writeFieldBegin(
'null_str', TType.STRING, 2)
2103 oprot.writeString(self.null_str.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
null_str)
2104 oprot.writeFieldEnd()
2106 oprot.writeFieldBegin(
'has_header', TType.I32, 3)
2108 oprot.writeFieldEnd()
2109 if self.
quoted is not None:
2110 oprot.writeFieldBegin(
'quoted', TType.BOOL, 4)
2111 oprot.writeBool(self.
quoted)
2112 oprot.writeFieldEnd()
2113 if self.
quote is not None:
2114 oprot.writeFieldBegin(
'quote', TType.STRING, 5)
2115 oprot.writeString(self.quote.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
quote)
2116 oprot.writeFieldEnd()
2117 if self.
escape is not None:
2118 oprot.writeFieldBegin(
'escape', TType.STRING, 6)
2119 oprot.writeString(self.escape.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
escape)
2120 oprot.writeFieldEnd()
2122 oprot.writeFieldBegin(
'line_delim', TType.STRING, 7)
2123 oprot.writeString(self.line_delim.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
line_delim)
2124 oprot.writeFieldEnd()
2126 oprot.writeFieldBegin(
'array_delim', TType.STRING, 8)
2127 oprot.writeString(self.array_delim.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
array_delim)
2128 oprot.writeFieldEnd()
2130 oprot.writeFieldBegin(
'array_begin', TType.STRING, 9)
2131 oprot.writeString(self.array_begin.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
array_begin)
2132 oprot.writeFieldEnd()
2134 oprot.writeFieldBegin(
'array_end', TType.STRING, 10)
2135 oprot.writeString(self.array_end.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
array_end)
2136 oprot.writeFieldEnd()
2138 oprot.writeFieldBegin(
'threads', TType.I32, 11)
2140 oprot.writeFieldEnd()
2142 oprot.writeFieldBegin(
'source_type', TType.I32, 12)
2144 oprot.writeFieldEnd()
2146 oprot.writeFieldBegin(
's3_access_key', TType.STRING, 13)
2147 oprot.writeString(self.s3_access_key.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
s3_access_key)
2148 oprot.writeFieldEnd()
2150 oprot.writeFieldBegin(
's3_secret_key', TType.STRING, 14)
2151 oprot.writeString(self.s3_secret_key.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
s3_secret_key)
2152 oprot.writeFieldEnd()
2154 oprot.writeFieldBegin(
's3_region', TType.STRING, 15)
2155 oprot.writeString(self.s3_region.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
s3_region)
2156 oprot.writeFieldEnd()
2158 oprot.writeFieldBegin(
'geo_coords_encoding', TType.I32, 16)
2160 oprot.writeFieldEnd()
2162 oprot.writeFieldBegin(
'geo_coords_comp_param', TType.I32, 17)
2164 oprot.writeFieldEnd()
2166 oprot.writeFieldBegin(
'geo_coords_type', TType.I32, 18)
2168 oprot.writeFieldEnd()
2170 oprot.writeFieldBegin(
'geo_coords_srid', TType.I32, 19)
2172 oprot.writeFieldEnd()
2174 oprot.writeFieldBegin(
'sanitize_column_names', TType.BOOL, 20)
2176 oprot.writeFieldEnd()
2178 oprot.writeFieldBegin(
'geo_layer_name', TType.STRING, 21)
2179 oprot.writeString(self.geo_layer_name.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
geo_layer_name)
2180 oprot.writeFieldEnd()
2182 oprot.writeFieldBegin(
's3_endpoint', TType.STRING, 22)
2183 oprot.writeString(self.s3_endpoint.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
s3_endpoint)
2184 oprot.writeFieldEnd()
2186 oprot.writeFieldBegin(
'geo_assign_render_groups', TType.BOOL, 23)
2188 oprot.writeFieldEnd()
2190 oprot.writeFieldBegin(
'geo_explode_collections', TType.BOOL, 24)
2192 oprot.writeFieldEnd()
2194 oprot.writeFieldBegin(
'source_srid', TType.I32, 25)
2196 oprot.writeFieldEnd()
2198 oprot.writeFieldBegin(
's3_session_token', TType.STRING, 26)
2199 oprot.writeString(self.s3_session_token.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
s3_session_token)
2200 oprot.writeFieldEnd()
2202 oprot.writeFieldBegin(
'raster_point_type', TType.I32, 27)
2204 oprot.writeFieldEnd()
2206 oprot.writeFieldBegin(
'raster_import_bands', TType.STRING, 28)
2207 oprot.writeString(self.raster_import_bands.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
raster_import_bands)
2208 oprot.writeFieldEnd()
2210 oprot.writeFieldBegin(
'raster_scanlines_per_thread', TType.I32, 29)
2212 oprot.writeFieldEnd()
2214 oprot.writeFieldBegin(
'raster_point_transform', TType.I32, 30)
2216 oprot.writeFieldEnd()
2218 oprot.writeFieldBegin(
'raster_point_compute_angle', TType.BOOL, 31)
2220 oprot.writeFieldEnd()
2222 oprot.writeFieldBegin(
'raster_import_dimensions', TType.STRING, 32)
2223 oprot.writeString(self.raster_import_dimensions.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
raster_import_dimensions)
2224 oprot.writeFieldEnd()
2226 oprot.writeFieldBegin(
'odbc_dsn', TType.STRING, 33)
2227 oprot.writeString(self.odbc_dsn.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
odbc_dsn)
2228 oprot.writeFieldEnd()
2230 oprot.writeFieldBegin(
'odbc_connection_string', TType.STRING, 34)
2231 oprot.writeString(self.odbc_connection_string.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
odbc_connection_string)
2232 oprot.writeFieldEnd()
2234 oprot.writeFieldBegin(
'odbc_sql_select', TType.STRING, 35)
2235 oprot.writeString(self.odbc_sql_select.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
odbc_sql_select)
2236 oprot.writeFieldEnd()
2238 oprot.writeFieldBegin(
'odbc_sql_order_by', TType.STRING, 36)
2239 oprot.writeString(self.odbc_sql_order_by.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
odbc_sql_order_by)
2240 oprot.writeFieldEnd()
2242 oprot.writeFieldBegin(
'odbc_username', TType.STRING, 37)
2243 oprot.writeString(self.odbc_username.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
odbc_username)
2244 oprot.writeFieldEnd()
2246 oprot.writeFieldBegin(
'odbc_password', TType.STRING, 38)
2247 oprot.writeString(self.odbc_password.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
odbc_password)
2248 oprot.writeFieldEnd()
2250 oprot.writeFieldBegin(
'odbc_credential_string', TType.STRING, 39)
2251 oprot.writeString(self.odbc_credential_string.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
odbc_credential_string)
2252 oprot.writeFieldEnd()
2254 oprot.writeFieldBegin(
'add_metadata_columns', TType.STRING, 40)
2255 oprot.writeString(self.add_metadata_columns.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
add_metadata_columns)
2256 oprot.writeFieldEnd()
2258 oprot.writeFieldBegin(
'trim_spaces', TType.BOOL, 41)
2260 oprot.writeFieldEnd()
2262 oprot.writeFieldBegin(
'geo_validate_geometry', TType.BOOL, 42)
2264 oprot.writeFieldEnd()
2265 oprot.writeFieldStop()
2266 oprot.writeStructEnd()
2272 L = [
'%s=%r' % (key, value)
2273 for key, value
in self.__dict__.items()]
2274 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
2277 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
2280 return not (self == other)
2295 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
2296 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
2298 iprot.readStructBegin()
2300 (fname, ftype, fid) = iprot.readFieldBegin()
2301 if ftype == TType.STOP:
2304 if ftype == TType.BOOL:
2310 iprot.readFieldEnd()
2311 iprot.readStructEnd()
2314 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
2315 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
2317 oprot.writeStructBegin(
'TCreateParams')
2319 oprot.writeFieldBegin(
'is_replicated', TType.BOOL, 1)
2321 oprot.writeFieldEnd()
2322 oprot.writeFieldStop()
2323 oprot.writeStructEnd()
2329 L = [
'%s=%r' % (key, value)
2330 for key, value
in self.__dict__.items()]
2331 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
2334 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
2337 return not (self == other)
2354 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
2355 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
2357 iprot.readStructBegin()
2359 (fname, ftype, fid) = iprot.readFieldBegin()
2360 if ftype == TType.STOP:
2363 if ftype == TType.STRUCT:
2365 self.row_set.read(iprot)
2369 if ftype == TType.STRUCT:
2371 self.copy_params.read(iprot)
2376 iprot.readFieldEnd()
2377 iprot.readStructEnd()
2380 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
2381 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
2383 oprot.writeStructBegin(
'TDetectResult')
2385 oprot.writeFieldBegin(
'row_set', TType.STRUCT, 1)
2386 self.row_set.write(oprot)
2387 oprot.writeFieldEnd()
2389 oprot.writeFieldBegin(
'copy_params', TType.STRUCT, 2)
2390 self.copy_params.write(oprot)
2391 oprot.writeFieldEnd()
2392 oprot.writeFieldStop()
2393 oprot.writeStructEnd()
2399 L = [
'%s=%r' % (key, value)
2400 for key, value
in self.__dict__.items()]
2401 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
2404 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
2407 return not (self == other)
2421 def __init__(self, elapsed=None, rows_completed=None, rows_estimated=None, rows_rejected=None,):
2428 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
2429 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
2431 iprot.readStructBegin()
2433 (fname, ftype, fid) = iprot.readFieldBegin()
2434 if ftype == TType.STOP:
2437 if ftype == TType.I64:
2438 self.
elapsed = iprot.readI64()
2442 if ftype == TType.I64:
2447 if ftype == TType.I64:
2452 if ftype == TType.I64:
2458 iprot.readFieldEnd()
2459 iprot.readStructEnd()
2462 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
2463 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
2465 oprot.writeStructBegin(
'TImportStatus')
2467 oprot.writeFieldBegin(
'elapsed', TType.I64, 1)
2469 oprot.writeFieldEnd()
2471 oprot.writeFieldBegin(
'rows_completed', TType.I64, 2)
2473 oprot.writeFieldEnd()
2475 oprot.writeFieldBegin(
'rows_estimated', TType.I64, 3)
2477 oprot.writeFieldEnd()
2479 oprot.writeFieldBegin(
'rows_rejected', TType.I64, 4)
2481 oprot.writeFieldEnd()
2482 oprot.writeFieldStop()
2483 oprot.writeStructEnd()
2489 L = [
'%s=%r' % (key, value)
2490 for key, value
in self.__dict__.items()]
2491 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
2494 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
2497 return not (self == other)
2512 def __init__(self, view_name=None, view_state=None, image_hash=None, update_time=None, view_metadata=None,):
2520 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
2521 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
2523 iprot.readStructBegin()
2525 (fname, ftype, fid) = iprot.readFieldBegin()
2526 if ftype == TType.STOP:
2529 if ftype == TType.STRING:
2530 self.
view_name = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
2534 if ftype == TType.STRING:
2535 self.
view_state = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
2539 if ftype == TType.STRING:
2540 self.
image_hash = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
2544 if ftype == TType.STRING:
2545 self.
update_time = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
2549 if ftype == TType.STRING:
2550 self.
view_metadata = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
2555 iprot.readFieldEnd()
2556 iprot.readStructEnd()
2559 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
2560 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
2562 oprot.writeStructBegin(
'TFrontendView')
2564 oprot.writeFieldBegin(
'view_name', TType.STRING, 1)
2565 oprot.writeString(self.view_name.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
view_name)
2566 oprot.writeFieldEnd()
2568 oprot.writeFieldBegin(
'view_state', TType.STRING, 2)
2569 oprot.writeString(self.view_state.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
view_state)
2570 oprot.writeFieldEnd()
2572 oprot.writeFieldBegin(
'image_hash', TType.STRING, 3)
2573 oprot.writeString(self.image_hash.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
image_hash)
2574 oprot.writeFieldEnd()
2576 oprot.writeFieldBegin(
'update_time', TType.STRING, 4)
2577 oprot.writeString(self.update_time.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
update_time)
2578 oprot.writeFieldEnd()
2580 oprot.writeFieldBegin(
'view_metadata', TType.STRING, 5)
2581 oprot.writeString(self.view_metadata.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
view_metadata)
2582 oprot.writeFieldEnd()
2583 oprot.writeFieldStop()
2584 oprot.writeStructEnd()
2590 L = [
'%s=%r' % (key, value)
2591 for key, value
in self.__dict__.items()]
2592 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
2595 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
2598 return not (self == other)
2610 - poly_rendering_enabled
2612 - renderer_status_json
2618 def __init__(self, read_only=None, version=None, rendering_enabled=None, start_time=None, edition=None, host_name=None, poly_rendering_enabled=None, role=None, renderer_status_json=None, host_id=None,):
2631 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
2632 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
2634 iprot.readStructBegin()
2636 (fname, ftype, fid) = iprot.readFieldBegin()
2637 if ftype == TType.STOP:
2640 if ftype == TType.BOOL:
2645 if ftype == TType.STRING:
2646 self.
version = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
2650 if ftype == TType.BOOL:
2655 if ftype == TType.I64:
2660 if ftype == TType.STRING:
2661 self.
edition = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
2665 if ftype == TType.STRING:
2666 self.
host_name = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
2670 if ftype == TType.BOOL:
2675 if ftype == TType.I32:
2676 self.
role = iprot.readI32()
2680 if ftype == TType.STRING:
2681 self.
renderer_status_json = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
2685 if ftype == TType.STRING:
2686 self.
host_id = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
2691 iprot.readFieldEnd()
2692 iprot.readStructEnd()
2695 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
2696 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
2698 oprot.writeStructBegin(
'TServerStatus')
2700 oprot.writeFieldBegin(
'read_only', TType.BOOL, 1)
2702 oprot.writeFieldEnd()
2704 oprot.writeFieldBegin(
'version', TType.STRING, 2)
2705 oprot.writeString(self.version.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
version)
2706 oprot.writeFieldEnd()
2708 oprot.writeFieldBegin(
'rendering_enabled', TType.BOOL, 3)
2710 oprot.writeFieldEnd()
2712 oprot.writeFieldBegin(
'start_time', TType.I64, 4)
2714 oprot.writeFieldEnd()
2716 oprot.writeFieldBegin(
'edition', TType.STRING, 5)
2717 oprot.writeString(self.edition.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
edition)
2718 oprot.writeFieldEnd()
2720 oprot.writeFieldBegin(
'host_name', TType.STRING, 6)
2721 oprot.writeString(self.host_name.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
host_name)
2722 oprot.writeFieldEnd()
2724 oprot.writeFieldBegin(
'poly_rendering_enabled', TType.BOOL, 7)
2726 oprot.writeFieldEnd()
2727 if self.
role is not None:
2728 oprot.writeFieldBegin(
'role', TType.I32, 8)
2729 oprot.writeI32(self.
role)
2730 oprot.writeFieldEnd()
2732 oprot.writeFieldBegin(
'renderer_status_json', TType.STRING, 9)
2733 oprot.writeString(self.renderer_status_json.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
renderer_status_json)
2734 oprot.writeFieldEnd()
2736 oprot.writeFieldBegin(
'host_id', TType.STRING, 10)
2737 oprot.writeString(self.host_id.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
host_id)
2738 oprot.writeFieldEnd()
2739 oprot.writeFieldStop()
2740 oprot.writeStructEnd()
2746 L = [
'%s=%r' % (key, value)
2747 for key, value
in self.__dict__.items()]
2748 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
2751 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
2754 return not (self == other)
2771 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
2772 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
2774 iprot.readStructBegin()
2776 (fname, ftype, fid) = iprot.readFieldBegin()
2777 if ftype == TType.STOP:
2780 if ftype == TType.I64:
2781 self.
x = iprot.readI64()
2785 if ftype == TType.I64:
2786 self.
y = iprot.readI64()
2791 iprot.readFieldEnd()
2792 iprot.readStructEnd()
2795 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
2796 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
2798 oprot.writeStructBegin(
'TPixel')
2799 if self.
x is not None:
2800 oprot.writeFieldBegin(
'x', TType.I64, 1)
2801 oprot.writeI64(self.
x)
2802 oprot.writeFieldEnd()
2803 if self.
y is not None:
2804 oprot.writeFieldBegin(
'y', TType.I64, 2)
2805 oprot.writeI64(self.
y)
2806 oprot.writeFieldEnd()
2807 oprot.writeFieldStop()
2808 oprot.writeStructEnd()
2814 L = [
'%s=%r' % (key, value)
2815 for key, value
in self.__dict__.items()]
2816 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
2819 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
2822 return not (self == other)
2838 def __init__(self, pixel=None, vega_table_name=None, table_id=None, row_id=None, row_set=None, nonce=None,):
2847 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
2848 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
2850 iprot.readStructBegin()
2852 (fname, ftype, fid) = iprot.readFieldBegin()
2853 if ftype == TType.STOP:
2856 if ftype == TType.STRUCT:
2858 self.pixel.read(iprot)
2862 if ftype == TType.STRING:
2863 self.
vega_table_name = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
2867 if ftype == TType.LIST:
2869 (_etype87, _size84) = iprot.readListBegin()
2870 for _i88
in range(_size84):
2871 _elem89 = iprot.readI64()
2872 self.table_id.append(_elem89)
2877 if ftype == TType.LIST:
2879 (_etype93, _size90) = iprot.readListBegin()
2880 for _i94
in range(_size90):
2881 _elem95 = iprot.readI64()
2882 self.row_id.append(_elem95)
2887 if ftype == TType.STRUCT:
2889 self.row_set.read(iprot)
2893 if ftype == TType.STRING:
2894 self.
nonce = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
2899 iprot.readFieldEnd()
2900 iprot.readStructEnd()
2903 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
2904 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
2906 oprot.writeStructBegin(
'TPixelTableRowResult')
2907 if self.
pixel is not None:
2908 oprot.writeFieldBegin(
'pixel', TType.STRUCT, 1)
2909 self.pixel.write(oprot)
2910 oprot.writeFieldEnd()
2912 oprot.writeFieldBegin(
'vega_table_name', TType.STRING, 2)
2913 oprot.writeString(self.vega_table_name.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
vega_table_name)
2914 oprot.writeFieldEnd()
2916 oprot.writeFieldBegin(
'table_id', TType.LIST, 3)
2917 oprot.writeListBegin(TType.I64, len(self.
table_id))
2919 oprot.writeI64(iter96)
2920 oprot.writeListEnd()
2921 oprot.writeFieldEnd()
2922 if self.
row_id is not None:
2923 oprot.writeFieldBegin(
'row_id', TType.LIST, 4)
2924 oprot.writeListBegin(TType.I64, len(self.
row_id))
2925 for iter97
in self.
row_id:
2926 oprot.writeI64(iter97)
2927 oprot.writeListEnd()
2928 oprot.writeFieldEnd()
2930 oprot.writeFieldBegin(
'row_set', TType.STRUCT, 5)
2931 self.row_set.write(oprot)
2932 oprot.writeFieldEnd()
2933 if self.
nonce is not None:
2934 oprot.writeFieldBegin(
'nonce', TType.STRING, 6)
2935 oprot.writeString(self.nonce.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
nonce)
2936 oprot.writeFieldEnd()
2937 oprot.writeFieldStop()
2938 oprot.writeStructEnd()
2944 L = [
'%s=%r' % (key, value)
2945 for key, value
in self.__dict__.items()]
2946 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
2949 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
2952 return not (self == other)
2968 def __init__(self, image=None, nonce=None, execution_time_ms=None, render_time_ms=None, total_time_ms=None, vega_metadata=None,):
2977 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
2978 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
2980 iprot.readStructBegin()
2982 (fname, ftype, fid) = iprot.readFieldBegin()
2983 if ftype == TType.STOP:
2986 if ftype == TType.STRING:
2987 self.
image = iprot.readBinary()
2991 if ftype == TType.STRING:
2992 self.
nonce = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
2996 if ftype == TType.I64:
3001 if ftype == TType.I64:
3006 if ftype == TType.I64:
3011 if ftype == TType.STRING:
3012 self.
vega_metadata = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
3017 iprot.readFieldEnd()
3018 iprot.readStructEnd()
3021 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
3022 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3024 oprot.writeStructBegin(
'TRenderResult')
3025 if self.
image is not None:
3026 oprot.writeFieldBegin(
'image', TType.STRING, 1)
3027 oprot.writeBinary(self.
image)
3028 oprot.writeFieldEnd()
3029 if self.
nonce is not None:
3030 oprot.writeFieldBegin(
'nonce', TType.STRING, 2)
3031 oprot.writeString(self.nonce.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
nonce)
3032 oprot.writeFieldEnd()
3034 oprot.writeFieldBegin(
'execution_time_ms', TType.I64, 3)
3036 oprot.writeFieldEnd()
3038 oprot.writeFieldBegin(
'render_time_ms', TType.I64, 4)
3040 oprot.writeFieldEnd()
3042 oprot.writeFieldBegin(
'total_time_ms', TType.I64, 5)
3044 oprot.writeFieldEnd()
3046 oprot.writeFieldBegin(
'vega_metadata', TType.STRING, 6)
3047 oprot.writeString(self.vega_metadata.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
vega_metadata)
3048 oprot.writeFieldEnd()
3049 oprot.writeFieldStop()
3050 oprot.writeStructEnd()
3056 L = [
'%s=%r' % (key, value)
3057 for key, value
in self.__dict__.items()]
3058 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
3061 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
3064 return not (self == other)
3071 - clock_frequency_kHz
3073 - compute_capability_major
3074 - compute_capability_minor
3079 def __init__(self, num_sm=None, clock_frequency_kHz=None, memory=None, compute_capability_major=None, compute_capability_minor=None,):
3087 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
3088 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3090 iprot.readStructBegin()
3092 (fname, ftype, fid) = iprot.readFieldBegin()
3093 if ftype == TType.STOP:
3096 if ftype == TType.I32:
3097 self.
num_sm = iprot.readI32()
3101 if ftype == TType.I64:
3106 if ftype == TType.I64:
3107 self.
memory = iprot.readI64()
3111 if ftype == TType.I16:
3116 if ftype == TType.I16:
3122 iprot.readFieldEnd()
3123 iprot.readStructEnd()
3126 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
3127 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3129 oprot.writeStructBegin(
'TGpuSpecification')
3130 if self.
num_sm is not None:
3131 oprot.writeFieldBegin(
'num_sm', TType.I32, 1)
3132 oprot.writeI32(self.
num_sm)
3133 oprot.writeFieldEnd()
3135 oprot.writeFieldBegin(
'clock_frequency_kHz', TType.I64, 2)
3137 oprot.writeFieldEnd()
3138 if self.
memory is not None:
3139 oprot.writeFieldBegin(
'memory', TType.I64, 3)
3140 oprot.writeI64(self.
memory)
3141 oprot.writeFieldEnd()
3143 oprot.writeFieldBegin(
'compute_capability_major', TType.I16, 4)
3145 oprot.writeFieldEnd()
3147 oprot.writeFieldBegin(
'compute_capability_minor', TType.I16, 5)
3149 oprot.writeFieldEnd()
3150 oprot.writeFieldStop()
3151 oprot.writeStructEnd()
3157 L = [
'%s=%r' % (key, value)
3158 for key, value
in self.__dict__.items()]
3159 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
3162 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
3165 return not (self == other)
3181 def __init__(self, num_gpu_hw=None, num_cpu_hw=None, num_gpu_allocated=None, start_gpu=None, host_name=None, gpu_info=None,):
3190 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
3191 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3193 iprot.readStructBegin()
3195 (fname, ftype, fid) = iprot.readFieldBegin()
3196 if ftype == TType.STOP:
3199 if ftype == TType.I16:
3204 if ftype == TType.I16:
3209 if ftype == TType.I16:
3214 if ftype == TType.I16:
3219 if ftype == TType.STRING:
3220 self.
host_name = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
3224 if ftype == TType.LIST:
3226 (_etype101, _size98) = iprot.readListBegin()
3227 for _i102
in range(_size98):
3229 _elem103.read(iprot)
3230 self.gpu_info.append(_elem103)
3236 iprot.readFieldEnd()
3237 iprot.readStructEnd()
3240 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
3241 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3243 oprot.writeStructBegin(
'THardwareInfo')
3245 oprot.writeFieldBegin(
'num_gpu_hw', TType.I16, 1)
3247 oprot.writeFieldEnd()
3249 oprot.writeFieldBegin(
'num_cpu_hw', TType.I16, 2)
3251 oprot.writeFieldEnd()
3253 oprot.writeFieldBegin(
'num_gpu_allocated', TType.I16, 3)
3255 oprot.writeFieldEnd()
3257 oprot.writeFieldBegin(
'start_gpu', TType.I16, 4)
3259 oprot.writeFieldEnd()
3261 oprot.writeFieldBegin(
'host_name', TType.STRING, 5)
3262 oprot.writeString(self.host_name.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
host_name)
3263 oprot.writeFieldEnd()
3265 oprot.writeFieldBegin(
'gpu_info', TType.LIST, 6)
3266 oprot.writeListBegin(TType.STRUCT, len(self.
gpu_info))
3268 iter104.write(oprot)
3269 oprot.writeListEnd()
3270 oprot.writeFieldEnd()
3271 oprot.writeFieldStop()
3272 oprot.writeStructEnd()
3278 L = [
'%s=%r' % (key, value)
3279 for key, value
in self.__dict__.items()]
3280 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
3283 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
3286 return not (self == other)
3301 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
3302 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3304 iprot.readStructBegin()
3306 (fname, ftype, fid) = iprot.readFieldBegin()
3307 if ftype == TType.STOP:
3310 if ftype == TType.LIST:
3312 (_etype108, _size105) = iprot.readListBegin()
3313 for _i109
in range(_size105):
3315 _elem110.read(iprot)
3316 self.hardware_info.append(_elem110)
3322 iprot.readFieldEnd()
3323 iprot.readStructEnd()
3326 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
3327 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3329 oprot.writeStructBegin(
'TClusterHardwareInfo')
3331 oprot.writeFieldBegin(
'hardware_info', TType.LIST, 1)
3334 iter111.write(oprot)
3335 oprot.writeListEnd()
3336 oprot.writeFieldEnd()
3337 oprot.writeFieldStop()
3338 oprot.writeStructEnd()
3344 L = [
'%s=%r' % (key, value)
3345 for key, value
in self.__dict__.items()]
3346 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
3349 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
3352 return not (self == other)
3369 def __init__(self, slab=None, start_page=None, num_pages=None, touch=None, chunk_key=None, buffer_epoch=None, is_free=None,):
3379 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
3380 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3382 iprot.readStructBegin()
3384 (fname, ftype, fid) = iprot.readFieldBegin()
3385 if ftype == TType.STOP:
3388 if ftype == TType.I64:
3389 self.
slab = iprot.readI64()
3393 if ftype == TType.I32:
3398 if ftype == TType.I64:
3403 if ftype == TType.I32:
3404 self.
touch = iprot.readI32()
3408 if ftype == TType.LIST:
3410 (_etype115, _size112) = iprot.readListBegin()
3411 for _i116
in range(_size112):
3412 _elem117 = iprot.readI64()
3413 self.chunk_key.append(_elem117)
3418 if ftype == TType.I32:
3423 if ftype == TType.BOOL:
3424 self.
is_free = iprot.readBool()
3429 iprot.readFieldEnd()
3430 iprot.readStructEnd()
3433 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
3434 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3436 oprot.writeStructBegin(
'TMemoryData')
3437 if self.
slab is not None:
3438 oprot.writeFieldBegin(
'slab', TType.I64, 1)
3439 oprot.writeI64(self.
slab)
3440 oprot.writeFieldEnd()
3442 oprot.writeFieldBegin(
'start_page', TType.I32, 2)
3444 oprot.writeFieldEnd()
3446 oprot.writeFieldBegin(
'num_pages', TType.I64, 3)
3448 oprot.writeFieldEnd()
3449 if self.
touch is not None:
3450 oprot.writeFieldBegin(
'touch', TType.I32, 4)
3451 oprot.writeI32(self.
touch)
3452 oprot.writeFieldEnd()
3454 oprot.writeFieldBegin(
'chunk_key', TType.LIST, 5)
3455 oprot.writeListBegin(TType.I64, len(self.
chunk_key))
3457 oprot.writeI64(iter118)
3458 oprot.writeListEnd()
3459 oprot.writeFieldEnd()
3461 oprot.writeFieldBegin(
'buffer_epoch', TType.I32, 6)
3463 oprot.writeFieldEnd()
3465 oprot.writeFieldBegin(
'is_free', TType.BOOL, 7)
3467 oprot.writeFieldEnd()
3468 oprot.writeFieldStop()
3469 oprot.writeStructEnd()
3475 L = [
'%s=%r' % (key, value)
3476 for key, value
in self.__dict__.items()]
3477 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
3480 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
3483 return not (self == other)
3492 - num_pages_allocated
3493 - is_allocation_capped
3499 def __init__(self, host_name=None, page_size=None, max_num_pages=None, num_pages_allocated=None, is_allocation_capped=None, node_memory_data=None,):
3508 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
3509 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3511 iprot.readStructBegin()
3513 (fname, ftype, fid) = iprot.readFieldBegin()
3514 if ftype == TType.STOP:
3517 if ftype == TType.STRING:
3518 self.
host_name = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
3522 if ftype == TType.I64:
3527 if ftype == TType.I64:
3532 if ftype == TType.I64:
3537 if ftype == TType.BOOL:
3542 if ftype == TType.LIST:
3544 (_etype122, _size119) = iprot.readListBegin()
3545 for _i123
in range(_size119):
3547 _elem124.read(iprot)
3548 self.node_memory_data.append(_elem124)
3554 iprot.readFieldEnd()
3555 iprot.readStructEnd()
3558 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
3559 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3561 oprot.writeStructBegin(
'TNodeMemoryInfo')
3563 oprot.writeFieldBegin(
'host_name', TType.STRING, 1)
3564 oprot.writeString(self.host_name.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
host_name)
3565 oprot.writeFieldEnd()
3567 oprot.writeFieldBegin(
'page_size', TType.I64, 2)
3569 oprot.writeFieldEnd()
3571 oprot.writeFieldBegin(
'max_num_pages', TType.I64, 3)
3573 oprot.writeFieldEnd()
3575 oprot.writeFieldBegin(
'num_pages_allocated', TType.I64, 4)
3577 oprot.writeFieldEnd()
3579 oprot.writeFieldBegin(
'is_allocation_capped', TType.BOOL, 5)
3581 oprot.writeFieldEnd()
3583 oprot.writeFieldBegin(
'node_memory_data', TType.LIST, 6)
3586 iter125.write(oprot)
3587 oprot.writeListEnd()
3588 oprot.writeFieldEnd()
3589 oprot.writeFieldStop()
3590 oprot.writeStructEnd()
3596 L = [
'%s=%r' % (key, value)
3597 for key, value
in self.__dict__.items()]
3598 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
3601 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
3604 return not (self == other)
3624 def __init__(self, table_name=None, num_cols=None, is_view=None, is_replicated=None, shard_count=None, max_rows=None, table_id=None, max_table_id=None, col_types=None, col_names=None,):
3637 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
3638 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3640 iprot.readStructBegin()
3642 (fname, ftype, fid) = iprot.readFieldBegin()
3643 if ftype == TType.STOP:
3646 if ftype == TType.STRING:
3647 self.
table_name = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
3651 if ftype == TType.I64:
3656 if ftype == TType.BOOL:
3657 self.
is_view = iprot.readBool()
3661 if ftype == TType.BOOL:
3666 if ftype == TType.I64:
3671 if ftype == TType.I64:
3676 if ftype == TType.I64:
3681 if ftype == TType.I64:
3686 if ftype == TType.LIST:
3688 (_etype129, _size126) = iprot.readListBegin()
3689 for _i130
in range(_size126):
3691 _elem131.read(iprot)
3692 self.col_types.append(_elem131)
3697 if ftype == TType.LIST:
3699 (_etype135, _size132) = iprot.readListBegin()
3700 for _i136
in range(_size132):
3701 _elem137 = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
3702 self.col_names.append(_elem137)
3708 iprot.readFieldEnd()
3709 iprot.readStructEnd()
3712 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
3713 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3715 oprot.writeStructBegin(
'TTableMeta')
3717 oprot.writeFieldBegin(
'table_name', TType.STRING, 1)
3718 oprot.writeString(self.table_name.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
table_name)
3719 oprot.writeFieldEnd()
3721 oprot.writeFieldBegin(
'num_cols', TType.I64, 2)
3723 oprot.writeFieldEnd()
3725 oprot.writeFieldBegin(
'is_view', TType.BOOL, 4)
3727 oprot.writeFieldEnd()
3729 oprot.writeFieldBegin(
'is_replicated', TType.BOOL, 5)
3731 oprot.writeFieldEnd()
3733 oprot.writeFieldBegin(
'shard_count', TType.I64, 6)
3735 oprot.writeFieldEnd()
3737 oprot.writeFieldBegin(
'max_rows', TType.I64, 7)
3739 oprot.writeFieldEnd()
3741 oprot.writeFieldBegin(
'table_id', TType.I64, 8)
3743 oprot.writeFieldEnd()
3745 oprot.writeFieldBegin(
'max_table_id', TType.I64, 9)
3747 oprot.writeFieldEnd()
3749 oprot.writeFieldBegin(
'col_types', TType.LIST, 10)
3750 oprot.writeListBegin(TType.STRUCT, len(self.
col_types))
3752 iter138.write(oprot)
3753 oprot.writeListEnd()
3754 oprot.writeFieldEnd()
3756 oprot.writeFieldBegin(
'col_names', TType.LIST, 11)
3757 oprot.writeListBegin(TType.STRING, len(self.
col_names))
3759 oprot.writeString(iter139.encode(
'utf-8')
if sys.version_info[0] == 2
else iter139)
3760 oprot.writeListEnd()
3761 oprot.writeFieldEnd()
3762 oprot.writeFieldStop()
3763 oprot.writeStructEnd()
3769 L = [
'%s=%r' % (key, value)
3770 for key, value
in self.__dict__.items()]
3771 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
3774 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
3777 return not (self == other)
3794 def __init__(self, update_type=None, timing_type=None, start_date_time=None, interval_type=None, interval_count=None, last_refresh_time=None, next_refresh_time=None,):
3804 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
3805 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3807 iprot.readStructBegin()
3809 (fname, ftype, fid) = iprot.readFieldBegin()
3810 if ftype == TType.STOP:
3813 if ftype == TType.I32:
3818 if ftype == TType.I32:
3823 if ftype == TType.STRING:
3824 self.
start_date_time = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
3828 if ftype == TType.I32:
3833 if ftype == TType.I64:
3838 if ftype == TType.STRING:
3839 self.
last_refresh_time = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
3843 if ftype == TType.STRING:
3844 self.
next_refresh_time = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
3849 iprot.readFieldEnd()
3850 iprot.readStructEnd()
3853 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
3854 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3856 oprot.writeStructBegin(
'TTableRefreshInfo')
3858 oprot.writeFieldBegin(
'update_type', TType.I32, 1)
3860 oprot.writeFieldEnd()
3862 oprot.writeFieldBegin(
'timing_type', TType.I32, 2)
3864 oprot.writeFieldEnd()
3866 oprot.writeFieldBegin(
'start_date_time', TType.STRING, 3)
3867 oprot.writeString(self.start_date_time.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
start_date_time)
3868 oprot.writeFieldEnd()
3870 oprot.writeFieldBegin(
'interval_type', TType.I32, 4)
3872 oprot.writeFieldEnd()
3874 oprot.writeFieldBegin(
'interval_count', TType.I64, 5)
3876 oprot.writeFieldEnd()
3878 oprot.writeFieldBegin(
'last_refresh_time', TType.STRING, 6)
3879 oprot.writeString(self.last_refresh_time.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
last_refresh_time)
3880 oprot.writeFieldEnd()
3882 oprot.writeFieldBegin(
'next_refresh_time', TType.STRING, 7)
3883 oprot.writeString(self.next_refresh_time.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
next_refresh_time)
3884 oprot.writeFieldEnd()
3885 oprot.writeFieldStop()
3886 oprot.writeStructEnd()
3892 L = [
'%s=%r' % (key, value)
3893 for key, value
in self.__dict__.items()]
3894 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
3897 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
3900 return not (self == other)
3917 - sharded_column_name
3922 def __init__(self, row_desc=None, fragment_size=None, page_size=None, max_rows=None, view_sql=None, shard_count=None, key_metainfo=None, is_temporary=None, partition_detail=None, table_type=None, refresh_info=None, sharded_column_name=None,):
3937 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
3938 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3940 iprot.readStructBegin()
3942 (fname, ftype, fid) = iprot.readFieldBegin()
3943 if ftype == TType.STOP:
3946 if ftype == TType.LIST:
3948 (_etype143, _size140) = iprot.readListBegin()
3949 for _i144
in range(_size140):
3951 _elem145.read(iprot)
3952 self.row_desc.append(_elem145)
3957 if ftype == TType.I64:
3962 if ftype == TType.I64:
3967 if ftype == TType.I64:
3972 if ftype == TType.STRING:
3973 self.
view_sql = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
3977 if ftype == TType.I64:
3982 if ftype == TType.STRING:
3983 self.
key_metainfo = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
3987 if ftype == TType.BOOL:
3992 if ftype == TType.I32:
3997 if ftype == TType.I32:
4002 if ftype == TType.STRUCT:
4004 self.refresh_info.read(iprot)
4008 if ftype == TType.STRING:
4009 self.
sharded_column_name = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
4014 iprot.readFieldEnd()
4015 iprot.readStructEnd()
4018 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
4019 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
4021 oprot.writeStructBegin(
'TTableDetails')
4023 oprot.writeFieldBegin(
'row_desc', TType.LIST, 1)
4024 oprot.writeListBegin(TType.STRUCT, len(self.
row_desc))
4026 iter146.write(oprot)
4027 oprot.writeListEnd()
4028 oprot.writeFieldEnd()
4030 oprot.writeFieldBegin(
'fragment_size', TType.I64, 2)
4032 oprot.writeFieldEnd()
4034 oprot.writeFieldBegin(
'page_size', TType.I64, 3)
4036 oprot.writeFieldEnd()
4038 oprot.writeFieldBegin(
'max_rows', TType.I64, 4)
4040 oprot.writeFieldEnd()
4042 oprot.writeFieldBegin(
'view_sql', TType.STRING, 5)
4043 oprot.writeString(self.view_sql.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
view_sql)
4044 oprot.writeFieldEnd()
4046 oprot.writeFieldBegin(
'shard_count', TType.I64, 6)
4048 oprot.writeFieldEnd()
4050 oprot.writeFieldBegin(
'key_metainfo', TType.STRING, 7)
4051 oprot.writeString(self.key_metainfo.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
key_metainfo)
4052 oprot.writeFieldEnd()
4054 oprot.writeFieldBegin(
'is_temporary', TType.BOOL, 8)
4056 oprot.writeFieldEnd()
4058 oprot.writeFieldBegin(
'partition_detail', TType.I32, 9)
4060 oprot.writeFieldEnd()
4062 oprot.writeFieldBegin(
'table_type', TType.I32, 10)
4064 oprot.writeFieldEnd()
4066 oprot.writeFieldBegin(
'refresh_info', TType.STRUCT, 11)
4067 self.refresh_info.write(oprot)
4068 oprot.writeFieldEnd()
4070 oprot.writeFieldBegin(
'sharded_column_name', TType.STRING, 12)
4071 oprot.writeString(self.sharded_column_name.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
sharded_column_name)
4072 oprot.writeFieldEnd()
4073 oprot.writeFieldStop()
4074 oprot.writeStructEnd()
4080 L = [
'%s=%r' % (key, value)
4081 for key, value
in self.__dict__.items()]
4082 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
4085 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
4088 return not (self == other)
4108 def __init__(self, type=None, col_id=None, table_id=None, has_nulls=None, int_min=None, int_max=None, bucket=None, fp_min=None, fp_max=None, db_id=None,):
4121 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
4122 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
4124 iprot.readStructBegin()
4126 (fname, ftype, fid) = iprot.readFieldBegin()
4127 if ftype == TType.STOP:
4130 if ftype == TType.I32:
4131 self.
type = iprot.readI32()
4135 if ftype == TType.I32:
4136 self.
col_id = iprot.readI32()
4140 if ftype == TType.I32:
4145 if ftype == TType.BOOL:
4150 if ftype == TType.I64:
4151 self.
int_min = iprot.readI64()
4155 if ftype == TType.I64:
4156 self.
int_max = iprot.readI64()
4160 if ftype == TType.I64:
4161 self.
bucket = iprot.readI64()
4165 if ftype == TType.DOUBLE:
4166 self.
fp_min = iprot.readDouble()
4170 if ftype == TType.DOUBLE:
4171 self.
fp_max = iprot.readDouble()
4175 if ftype == TType.I32:
4176 self.
db_id = iprot.readI32()
4181 iprot.readFieldEnd()
4182 iprot.readStructEnd()
4185 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
4186 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
4188 oprot.writeStructBegin(
'TColumnRange')
4189 if self.
type is not None:
4190 oprot.writeFieldBegin(
'type', TType.I32, 1)
4191 oprot.writeI32(self.
type)
4192 oprot.writeFieldEnd()
4193 if self.
col_id is not None:
4194 oprot.writeFieldBegin(
'col_id', TType.I32, 2)
4195 oprot.writeI32(self.
col_id)
4196 oprot.writeFieldEnd()
4198 oprot.writeFieldBegin(
'table_id', TType.I32, 3)
4200 oprot.writeFieldEnd()
4202 oprot.writeFieldBegin(
'has_nulls', TType.BOOL, 4)
4204 oprot.writeFieldEnd()
4206 oprot.writeFieldBegin(
'int_min', TType.I64, 5)
4208 oprot.writeFieldEnd()
4210 oprot.writeFieldBegin(
'int_max', TType.I64, 6)
4212 oprot.writeFieldEnd()
4213 if self.
bucket is not None:
4214 oprot.writeFieldBegin(
'bucket', TType.I64, 7)
4215 oprot.writeI64(self.
bucket)
4216 oprot.writeFieldEnd()
4217 if self.
fp_min is not None:
4218 oprot.writeFieldBegin(
'fp_min', TType.DOUBLE, 8)
4219 oprot.writeDouble(self.
fp_min)
4220 oprot.writeFieldEnd()
4221 if self.
fp_max is not None:
4222 oprot.writeFieldBegin(
'fp_max', TType.DOUBLE, 9)
4223 oprot.writeDouble(self.
fp_max)
4224 oprot.writeFieldEnd()
4225 if self.
db_id is not None:
4226 oprot.writeFieldBegin(
'db_id', TType.I32, 10)
4227 oprot.writeI32(self.
db_id)
4228 oprot.writeFieldEnd()
4229 oprot.writeFieldStop()
4230 oprot.writeStructEnd()
4236 L = [
'%s=%r' % (key, value)
4237 for key, value
in self.__dict__.items()]
4238 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
4241 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
4244 return not (self == other)
4257 def __init__(self, dict_id=None, entry_count=None, db_id=None,):
4263 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
4264 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
4266 iprot.readStructBegin()
4268 (fname, ftype, fid) = iprot.readFieldBegin()
4269 if ftype == TType.STOP:
4272 if ftype == TType.I32:
4273 self.
dict_id = iprot.readI32()
4277 if ftype == TType.I64:
4282 if ftype == TType.I32:
4283 self.
db_id = iprot.readI32()
4288 iprot.readFieldEnd()
4289 iprot.readStructEnd()
4292 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
4293 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
4295 oprot.writeStructBegin(
'TDictionaryGeneration')
4297 oprot.writeFieldBegin(
'dict_id', TType.I32, 1)
4299 oprot.writeFieldEnd()
4301 oprot.writeFieldBegin(
'entry_count', TType.I64, 2)
4303 oprot.writeFieldEnd()
4304 if self.
db_id is not None:
4305 oprot.writeFieldBegin(
'db_id', TType.I32, 3)
4306 oprot.writeI32(self.
db_id)
4307 oprot.writeFieldEnd()
4308 oprot.writeFieldStop()
4309 oprot.writeStructEnd()
4315 L = [
'%s=%r' % (key, value)
4316 for key, value
in self.__dict__.items()]
4317 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
4320 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
4323 return not (self == other)
4337 def __init__(self, table_id=None, tuple_count=None, start_rowid=None, db_id=None,):
4344 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
4345 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
4347 iprot.readStructBegin()
4349 (fname, ftype, fid) = iprot.readFieldBegin()
4350 if ftype == TType.STOP:
4353 if ftype == TType.I32:
4358 if ftype == TType.I64:
4363 if ftype == TType.I64:
4368 if ftype == TType.I32:
4369 self.
db_id = iprot.readI32()
4374 iprot.readFieldEnd()
4375 iprot.readStructEnd()
4378 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
4379 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
4381 oprot.writeStructBegin(
'TTableGeneration')
4383 oprot.writeFieldBegin(
'table_id', TType.I32, 1)
4385 oprot.writeFieldEnd()
4387 oprot.writeFieldBegin(
'tuple_count', TType.I64, 2)
4389 oprot.writeFieldEnd()
4391 oprot.writeFieldBegin(
'start_rowid', TType.I64, 3)
4393 oprot.writeFieldEnd()
4394 if self.
db_id is not None:
4395 oprot.writeFieldBegin(
'db_id', TType.I32, 4)
4396 oprot.writeI32(self.
db_id)
4397 oprot.writeFieldEnd()
4398 oprot.writeFieldStop()
4399 oprot.writeStructEnd()
4405 L = [
'%s=%r' % (key, value)
4406 for key, value
in self.__dict__.items()]
4407 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
4410 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
4413 return not (self == other)
4426 def __init__(self, table_id=None, db_id=None, is_cached_on_disk=None,):
4432 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
4433 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
4435 iprot.readStructBegin()
4437 (fname, ftype, fid) = iprot.readFieldBegin()
4438 if ftype == TType.STOP:
4441 if ftype == TType.I32:
4446 if ftype == TType.I32:
4447 self.
db_id = iprot.readI32()
4451 if ftype == TType.BOOL:
4457 iprot.readFieldEnd()
4458 iprot.readStructEnd()
4461 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
4462 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
4464 oprot.writeStructBegin(
'TTableCacheStatus')
4466 oprot.writeFieldBegin(
'table_id', TType.I32, 1)
4468 oprot.writeFieldEnd()
4469 if self.
db_id is not None:
4470 oprot.writeFieldBegin(
'db_id', TType.I32, 2)
4471 oprot.writeI32(self.
db_id)
4472 oprot.writeFieldEnd()
4474 oprot.writeFieldBegin(
'is_cached_on_disk', TType.BOOL, 3)
4476 oprot.writeFieldEnd()
4477 oprot.writeFieldStop()
4478 oprot.writeStructEnd()
4484 L = [
'%s=%r' % (key, value)
4485 for key, value
in self.__dict__.items()]
4486 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
4489 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
4492 return not (self == other)
4500 - dictionary_generations
4503 - table_cache_status
4508 def __init__(self, id=None, column_ranges=None, dictionary_generations=None, table_generations=None, parent_session_id=None, table_cache_status=None,):
4517 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
4518 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
4520 iprot.readStructBegin()
4522 (fname, ftype, fid) = iprot.readFieldBegin()
4523 if ftype == TType.STOP:
4526 if ftype == TType.I64:
4527 self.
id = iprot.readI64()
4531 if ftype == TType.LIST:
4533 (_etype150, _size147) = iprot.readListBegin()
4534 for _i151
in range(_size147):
4536 _elem152.read(iprot)
4537 self.column_ranges.append(_elem152)
4542 if ftype == TType.LIST:
4544 (_etype156, _size153) = iprot.readListBegin()
4545 for _i157
in range(_size153):
4547 _elem158.read(iprot)
4548 self.dictionary_generations.append(_elem158)
4553 if ftype == TType.LIST:
4555 (_etype162, _size159) = iprot.readListBegin()
4556 for _i163
in range(_size159):
4558 _elem164.read(iprot)
4559 self.table_generations.append(_elem164)
4564 if ftype == TType.STRING:
4565 self.
parent_session_id = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
4569 if ftype == TType.LIST:
4571 (_etype168, _size165) = iprot.readListBegin()
4572 for _i169
in range(_size165):
4574 _elem170.read(iprot)
4575 self.table_cache_status.append(_elem170)
4581 iprot.readFieldEnd()
4582 iprot.readStructEnd()
4585 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
4586 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
4588 oprot.writeStructBegin(
'TPendingQuery')
4589 if self.
id is not None:
4590 oprot.writeFieldBegin(
'id', TType.I64, 1)
4591 oprot.writeI64(self.
id)
4592 oprot.writeFieldEnd()
4594 oprot.writeFieldBegin(
'column_ranges', TType.LIST, 2)
4597 iter171.write(oprot)
4598 oprot.writeListEnd()
4599 oprot.writeFieldEnd()
4601 oprot.writeFieldBegin(
'dictionary_generations', TType.LIST, 3)
4604 iter172.write(oprot)
4605 oprot.writeListEnd()
4606 oprot.writeFieldEnd()
4608 oprot.writeFieldBegin(
'table_generations', TType.LIST, 4)
4611 iter173.write(oprot)
4612 oprot.writeListEnd()
4613 oprot.writeFieldEnd()
4615 oprot.writeFieldBegin(
'parent_session_id', TType.STRING, 5)
4616 oprot.writeString(self.parent_session_id.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
parent_session_id)
4617 oprot.writeFieldEnd()
4619 oprot.writeFieldBegin(
'table_cache_status', TType.LIST, 6)
4622 iter174.write(oprot)
4623 oprot.writeListEnd()
4624 oprot.writeFieldEnd()
4625 oprot.writeFieldStop()
4626 oprot.writeStructEnd()
4632 L = [
'%s=%r' % (key, value)
4633 for key, value
in self.__dict__.items()]
4634 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
4637 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
4640 return not (self == other)
4657 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
4658 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
4660 iprot.readStructBegin()
4662 (fname, ftype, fid) = iprot.readFieldBegin()
4663 if ftype == TType.STOP:
4666 if ftype == TType.STRING:
4667 self.
payload = iprot.readBinary()
4671 if ftype == TType.BOOL:
4672 self.
is_null = iprot.readBool()
4677 iprot.readFieldEnd()
4678 iprot.readStructEnd()
4681 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
4682 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
4684 oprot.writeStructBegin(
'TVarLen')
4686 oprot.writeFieldBegin(
'payload', TType.STRING, 1)
4687 oprot.writeBinary(self.
payload)
4688 oprot.writeFieldEnd()
4690 oprot.writeFieldBegin(
'is_null', TType.BOOL, 2)
4692 oprot.writeFieldEnd()
4693 oprot.writeFieldStop()
4694 oprot.writeStructEnd()
4700 L = [
'%s=%r' % (key, value)
4701 for key, value
in self.__dict__.items()]
4702 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
4705 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
4708 return not (self == other)
4720 def __init__(self, fixed_len_data=None, var_len_data=None,):
4725 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
4726 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
4728 iprot.readStructBegin()
4730 (fname, ftype, fid) = iprot.readFieldBegin()
4731 if ftype == TType.STOP:
4734 if ftype == TType.STRING:
4739 if ftype == TType.LIST:
4741 (_etype178, _size175) = iprot.readListBegin()
4742 for _i179
in range(_size175):
4744 _elem180.read(iprot)
4745 self.var_len_data.append(_elem180)
4751 iprot.readFieldEnd()
4752 iprot.readStructEnd()
4755 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
4756 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
4758 oprot.writeStructBegin(
'TDataBlockPtr')
4760 oprot.writeFieldBegin(
'fixed_len_data', TType.STRING, 1)
4762 oprot.writeFieldEnd()
4764 oprot.writeFieldBegin(
'var_len_data', TType.LIST, 2)
4765 oprot.writeListBegin(TType.STRUCT, len(self.
var_len_data))
4767 iter181.write(oprot)
4768 oprot.writeListEnd()
4769 oprot.writeFieldEnd()
4770 oprot.writeFieldStop()
4771 oprot.writeStructEnd()
4777 L = [
'%s=%r' % (key, value)
4778 for key, value
in self.__dict__.items()]
4779 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
4782 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
4785 return not (self == other)
4801 def __init__(self, db_id=None, table_id=None, column_ids=None, data=None, num_rows=None, is_default=None,):
4810 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
4811 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
4813 iprot.readStructBegin()
4815 (fname, ftype, fid) = iprot.readFieldBegin()
4816 if ftype == TType.STOP:
4819 if ftype == TType.I32:
4820 self.
db_id = iprot.readI32()
4824 if ftype == TType.I32:
4829 if ftype == TType.LIST:
4831 (_etype185, _size182) = iprot.readListBegin()
4832 for _i186
in range(_size182):
4833 _elem187 = iprot.readI32()
4834 self.column_ids.append(_elem187)
4839 if ftype == TType.LIST:
4841 (_etype191, _size188) = iprot.readListBegin()
4842 for _i192
in range(_size188):
4844 _elem193.read(iprot)
4845 self.data.append(_elem193)
4850 if ftype == TType.I64:
4855 if ftype == TType.LIST:
4857 (_etype197, _size194) = iprot.readListBegin()
4858 for _i198
in range(_size194):
4859 _elem199 = iprot.readBool()
4860 self.is_default.append(_elem199)
4866 iprot.readFieldEnd()
4867 iprot.readStructEnd()
4870 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
4871 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
4873 oprot.writeStructBegin(
'TInsertData')
4874 if self.
db_id is not None:
4875 oprot.writeFieldBegin(
'db_id', TType.I32, 1)
4876 oprot.writeI32(self.
db_id)
4877 oprot.writeFieldEnd()
4879 oprot.writeFieldBegin(
'table_id', TType.I32, 2)
4881 oprot.writeFieldEnd()
4883 oprot.writeFieldBegin(
'column_ids', TType.LIST, 3)
4884 oprot.writeListBegin(TType.I32, len(self.
column_ids))
4886 oprot.writeI32(iter200)
4887 oprot.writeListEnd()
4888 oprot.writeFieldEnd()
4889 if self.
data is not None:
4890 oprot.writeFieldBegin(
'data', TType.LIST, 4)
4891 oprot.writeListBegin(TType.STRUCT, len(self.
data))
4892 for iter201
in self.
data:
4893 iter201.write(oprot)
4894 oprot.writeListEnd()
4895 oprot.writeFieldEnd()
4897 oprot.writeFieldBegin(
'num_rows', TType.I64, 5)
4899 oprot.writeFieldEnd()
4901 oprot.writeFieldBegin(
'is_default', TType.LIST, 6)
4902 oprot.writeListBegin(TType.BOOL, len(self.
is_default))
4904 oprot.writeBool(iter202)
4905 oprot.writeListEnd()
4906 oprot.writeFieldEnd()
4907 oprot.writeFieldStop()
4908 oprot.writeStructEnd()
4914 L = [
'%s=%r' % (key, value)
4915 for key, value
in self.__dict__.items()]
4916 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
4919 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
4922 return not (self == other)
4934 def __init__(self, data_buffer=None, index_buffer=None,):
4939 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
4940 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
4942 iprot.readStructBegin()
4944 (fname, ftype, fid) = iprot.readFieldBegin()
4945 if ftype == TType.STOP:
4948 if ftype == TType.STRING:
4953 if ftype == TType.STRING:
4959 iprot.readFieldEnd()
4960 iprot.readStructEnd()
4963 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
4964 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
4966 oprot.writeStructBegin(
'TChunkData')
4968 oprot.writeFieldBegin(
'data_buffer', TType.STRING, 1)
4970 oprot.writeFieldEnd()
4972 oprot.writeFieldBegin(
'index_buffer', TType.STRING, 2)
4974 oprot.writeFieldEnd()
4975 oprot.writeFieldStop()
4976 oprot.writeStructEnd()
4982 L = [
'%s=%r' % (key, value)
4983 for key, value
in self.__dict__.items()]
4984 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
4987 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
4990 return not (self == other)
5005 def __init__(self, db_id=None, table_id=None, data=None, valid_indices=None, num_rows=None,):
5013 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
5014 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5016 iprot.readStructBegin()
5018 (fname, ftype, fid) = iprot.readFieldBegin()
5019 if ftype == TType.STOP:
5022 if ftype == TType.I32:
5023 self.
db_id = iprot.readI32()
5027 if ftype == TType.I32:
5032 if ftype == TType.LIST:
5034 (_etype206, _size203) = iprot.readListBegin()
5035 for _i207
in range(_size203):
5037 _elem208.read(iprot)
5038 self.data.append(_elem208)
5043 if ftype == TType.LIST:
5045 (_etype212, _size209) = iprot.readListBegin()
5046 for _i213
in range(_size209):
5047 _elem214 = iprot.readI64()
5048 self.valid_indices.append(_elem214)
5053 if ftype == TType.I64:
5059 iprot.readFieldEnd()
5060 iprot.readStructEnd()
5063 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
5064 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
5066 oprot.writeStructBegin(
'TInsertChunks')
5067 if self.
db_id is not None:
5068 oprot.writeFieldBegin(
'db_id', TType.I32, 1)
5069 oprot.writeI32(self.
db_id)
5070 oprot.writeFieldEnd()
5072 oprot.writeFieldBegin(
'table_id', TType.I32, 2)
5074 oprot.writeFieldEnd()
5075 if self.
data is not None:
5076 oprot.writeFieldBegin(
'data', TType.LIST, 3)
5077 oprot.writeListBegin(TType.STRUCT, len(self.
data))
5078 for iter215
in self.
data:
5079 iter215.write(oprot)
5080 oprot.writeListEnd()
5081 oprot.writeFieldEnd()
5083 oprot.writeFieldBegin(
'valid_indices', TType.LIST, 4)
5086 oprot.writeI64(iter216)
5087 oprot.writeListEnd()
5088 oprot.writeFieldEnd()
5090 oprot.writeFieldBegin(
'num_rows', TType.I64, 5)
5092 oprot.writeFieldEnd()
5093 oprot.writeFieldStop()
5094 oprot.writeStructEnd()
5100 L = [
'%s=%r' % (key, value)
5101 for key, value
in self.__dict__.items()]
5102 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
5105 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
5108 return not (self == other)
5123 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
5124 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5126 iprot.readStructBegin()
5128 (fname, ftype, fid) = iprot.readFieldBegin()
5129 if ftype == TType.STOP:
5132 if ftype == TType.I64:
5133 self.
id = iprot.readI64()
5138 iprot.readFieldEnd()
5139 iprot.readStructEnd()
5142 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
5143 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
5145 oprot.writeStructBegin(
'TPendingRenderQuery')
5146 if self.
id is not None:
5147 oprot.writeFieldBegin(
'id', TType.I64, 1)
5148 oprot.writeI64(self.
id)
5149 oprot.writeFieldEnd()
5150 oprot.writeFieldStop()
5151 oprot.writeStructEnd()
5157 L = [
'%s=%r' % (key, value)
5158 for key, value
in self.__dict__.items()]
5159 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
5162 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
5165 return not (self == other)
5180 def __init__(self, merge_type=None, node_id=None, execution_time_ms=None, render_time_ms=None, total_time_ms=None,):
5188 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
5189 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5191 iprot.readStructBegin()
5193 (fname, ftype, fid) = iprot.readFieldBegin()
5194 if ftype == TType.STOP:
5197 if ftype == TType.I32:
5202 if ftype == TType.I32:
5203 self.
node_id = iprot.readI32()
5207 if ftype == TType.I64:
5212 if ftype == TType.I64:
5217 if ftype == TType.I64:
5223 iprot.readFieldEnd()
5224 iprot.readStructEnd()
5227 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
5228 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
5230 oprot.writeStructBegin(
'TRenderParseResult')
5232 oprot.writeFieldBegin(
'merge_type', TType.I32, 1)
5234 oprot.writeFieldEnd()
5236 oprot.writeFieldBegin(
'node_id', TType.I32, 2)
5238 oprot.writeFieldEnd()
5240 oprot.writeFieldBegin(
'execution_time_ms', TType.I64, 3)
5242 oprot.writeFieldEnd()
5244 oprot.writeFieldBegin(
'render_time_ms', TType.I64, 4)
5246 oprot.writeFieldEnd()
5248 oprot.writeFieldBegin(
'total_time_ms', TType.I64, 5)
5250 oprot.writeFieldEnd()
5251 oprot.writeFieldStop()
5252 oprot.writeStructEnd()
5258 L = [
'%s=%r' % (key, value)
5259 for key, value
in self.__dict__.items()]
5260 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
5263 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
5266 return not (self == other)
5272 - num_pixel_channels
5284 def __init__(self, num_pixel_channels=None, num_pixel_samples=None, pixels=None, row_ids_A=None, row_ids_B=None, table_ids=None, accum_data=None, accum_depth=None,):
5295 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
5296 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5298 iprot.readStructBegin()
5300 (fname, ftype, fid) = iprot.readFieldBegin()
5301 if ftype == TType.STOP:
5304 if ftype == TType.I32:
5309 if ftype == TType.I32:
5314 if ftype == TType.STRING:
5315 self.
pixels = iprot.readBinary()
5319 if ftype == TType.STRING:
5324 if ftype == TType.STRING:
5329 if ftype == TType.STRING:
5334 if ftype == TType.STRING:
5339 if ftype == TType.I32:
5345 iprot.readFieldEnd()
5346 iprot.readStructEnd()
5349 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
5350 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
5352 oprot.writeStructBegin(
'TRawRenderPassDataResult')
5354 oprot.writeFieldBegin(
'num_pixel_channels', TType.I32, 1)
5356 oprot.writeFieldEnd()
5358 oprot.writeFieldBegin(
'num_pixel_samples', TType.I32, 2)
5360 oprot.writeFieldEnd()
5361 if self.
pixels is not None:
5362 oprot.writeFieldBegin(
'pixels', TType.STRING, 3)
5363 oprot.writeBinary(self.
pixels)
5364 oprot.writeFieldEnd()
5366 oprot.writeFieldBegin(
'row_ids_A', TType.STRING, 4)
5368 oprot.writeFieldEnd()
5370 oprot.writeFieldBegin(
'row_ids_B', TType.STRING, 5)
5372 oprot.writeFieldEnd()
5374 oprot.writeFieldBegin(
'table_ids', TType.STRING, 6)
5376 oprot.writeFieldEnd()
5378 oprot.writeFieldBegin(
'accum_data', TType.STRING, 7)
5380 oprot.writeFieldEnd()
5382 oprot.writeFieldBegin(
'accum_depth', TType.I32, 8)
5384 oprot.writeFieldEnd()
5385 oprot.writeFieldStop()
5386 oprot.writeStructEnd()
5392 L = [
'%s=%r' % (key, value)
5393 for key, value
in self.__dict__.items()]
5394 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
5397 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
5400 return not (self == other)
5413 def __init__(self, width=None, height=None, render_pass_map=None,):
5419 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
5420 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5422 iprot.readStructBegin()
5424 (fname, ftype, fid) = iprot.readFieldBegin()
5425 if ftype == TType.STOP:
5428 if ftype == TType.I32:
5429 self.
width = iprot.readI32()
5433 if ftype == TType.I32:
5434 self.
height = iprot.readI32()
5438 if ftype == TType.MAP:
5440 (_ktype218, _vtype219, _size217) = iprot.readMapBegin()
5441 for _i221
in range(_size217):
5442 _key222 = iprot.readI32()
5451 iprot.readFieldEnd()
5452 iprot.readStructEnd()
5455 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
5456 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
5458 oprot.writeStructBegin(
'TRawPixelData')
5459 if self.
width is not None:
5460 oprot.writeFieldBegin(
'width', TType.I32, 1)
5461 oprot.writeI32(self.
width)
5462 oprot.writeFieldEnd()
5463 if self.
height is not None:
5464 oprot.writeFieldBegin(
'height', TType.I32, 2)
5465 oprot.writeI32(self.
height)
5466 oprot.writeFieldEnd()
5468 oprot.writeFieldBegin(
'render_pass_map', TType.MAP, 3)
5469 oprot.writeMapBegin(TType.I32, TType.STRUCT, len(self.
render_pass_map))
5470 for kiter224, viter225
in self.render_pass_map.items():
5471 oprot.writeI32(kiter224)
5472 viter225.write(oprot)
5474 oprot.writeFieldEnd()
5475 oprot.writeFieldStop()
5476 oprot.writeStructEnd()
5482 L = [
'%s=%r' % (key, value)
5483 for key, value
in self.__dict__.items()]
5484 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
5487 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
5490 return not (self == other)
5509 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
5510 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5512 iprot.readStructBegin()
5514 (fname, ftype, fid) = iprot.readFieldBegin()
5515 if ftype == TType.STOP:
5518 if ftype == TType.I32:
5519 self.
type = iprot.readI32()
5523 if ftype == TType.I32:
5524 self.
cnt = iprot.readI32()
5528 if ftype == TType.STRING:
5529 self.
value = iprot.readBinary()
5534 iprot.readFieldEnd()
5535 iprot.readStructEnd()
5538 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
5539 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
5541 oprot.writeStructBegin(
'TRenderDatum')
5542 if self.
type is not None:
5543 oprot.writeFieldBegin(
'type', TType.I32, 1)
5544 oprot.writeI32(self.
type)
5545 oprot.writeFieldEnd()
5546 if self.
cnt is not None:
5547 oprot.writeFieldBegin(
'cnt', TType.I32, 2)
5548 oprot.writeI32(self.
cnt)
5549 oprot.writeFieldEnd()
5550 if self.
value is not None:
5551 oprot.writeFieldBegin(
'value', TType.STRING, 3)
5552 oprot.writeBinary(self.
value)
5553 oprot.writeFieldEnd()
5554 oprot.writeFieldStop()
5555 oprot.writeStructEnd()
5561 L = [
'%s=%r' % (key, value)
5562 for key, value
in self.__dict__.items()]
5563 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
5566 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
5569 return not (self == other)
5584 def __init__(self, merge_data=None, raw_pixel_data=None, execution_time_ms=None, render_time_ms=None, total_time_ms=None,):
5592 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
5593 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5595 iprot.readStructBegin()
5597 (fname, ftype, fid) = iprot.readFieldBegin()
5598 if ftype == TType.STOP:
5601 if ftype == TType.MAP:
5603 (_ktype227, _vtype228, _size226) = iprot.readMapBegin()
5604 for _i230
in range(_size226):
5605 _key231 = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
5607 (_ktype234, _vtype235, _size233) = iprot.readMapBegin()
5608 for _i237
in range(_size233):
5609 _key238 = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
5611 (_ktype241, _vtype242, _size240) = iprot.readMapBegin()
5612 for _i244
in range(_size240):
5613 _key245 = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
5615 (_ktype248, _vtype249, _size247) = iprot.readMapBegin()
5616 for _i251
in range(_size247):
5617 _key252 = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
5619 (_etype257, _size254) = iprot.readListBegin()
5620 for _i258
in range(_size254):
5622 _elem259.read(iprot)
5623 _val253.append(_elem259)
5625 _val246[_key252] = _val253
5627 _val239[_key245] = _val246
5629 _val232[_key238] = _val239
5636 if ftype == TType.STRUCT:
5638 self.raw_pixel_data.read(iprot)
5642 if ftype == TType.I64:
5647 if ftype == TType.I64:
5652 if ftype == TType.I64:
5658 iprot.readFieldEnd()
5659 iprot.readStructEnd()
5662 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
5663 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
5665 oprot.writeStructBegin(
'TRenderStepResult')
5667 oprot.writeFieldBegin(
'merge_data', TType.MAP, 1)
5668 oprot.writeMapBegin(TType.STRING, TType.MAP, len(self.
merge_data))
5669 for kiter260, viter261
in self.merge_data.items():
5670 oprot.writeString(kiter260.encode(
'utf-8')
if sys.version_info[0] == 2
else kiter260)
5671 oprot.writeMapBegin(TType.STRING, TType.MAP, len(viter261))
5672 for kiter262, viter263
in viter261.items():
5673 oprot.writeString(kiter262.encode(
'utf-8')
if sys.version_info[0] == 2
else kiter262)
5674 oprot.writeMapBegin(TType.STRING, TType.MAP, len(viter263))
5675 for kiter264, viter265
in viter263.items():
5676 oprot.writeString(kiter264.encode(
'utf-8')
if sys.version_info[0] == 2
else kiter264)
5677 oprot.writeMapBegin(TType.STRING, TType.LIST, len(viter265))
5678 for kiter266, viter267
in viter265.items():
5679 oprot.writeString(kiter266.encode(
'utf-8')
if sys.version_info[0] == 2
else kiter266)
5680 oprot.writeListBegin(TType.STRUCT, len(viter267))
5681 for iter268
in viter267:
5682 iter268.write(oprot)
5683 oprot.writeListEnd()
5688 oprot.writeFieldEnd()
5690 oprot.writeFieldBegin(
'raw_pixel_data', TType.STRUCT, 2)
5691 self.raw_pixel_data.write(oprot)
5692 oprot.writeFieldEnd()
5694 oprot.writeFieldBegin(
'execution_time_ms', TType.I64, 3)
5696 oprot.writeFieldEnd()
5698 oprot.writeFieldBegin(
'render_time_ms', TType.I64, 4)
5700 oprot.writeFieldEnd()
5702 oprot.writeFieldBegin(
'total_time_ms', TType.I64, 5)
5704 oprot.writeFieldEnd()
5705 oprot.writeFieldStop()
5706 oprot.writeStructEnd()
5712 L = [
'%s=%r' % (key, value)
5713 for key, value
in self.__dict__.items()]
5714 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
5717 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
5720 return not (self == other)
5734 def __init__(self, create_=None, delete_=None, view_sql_editor_=None, access_=None,):
5741 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
5742 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5744 iprot.readStructBegin()
5746 (fname, ftype, fid) = iprot.readFieldBegin()
5747 if ftype == TType.STOP:
5750 if ftype == TType.BOOL:
5751 self.
create_ = iprot.readBool()
5755 if ftype == TType.BOOL:
5756 self.
delete_ = iprot.readBool()
5760 if ftype == TType.BOOL:
5765 if ftype == TType.BOOL:
5766 self.
access_ = iprot.readBool()
5771 iprot.readFieldEnd()
5772 iprot.readStructEnd()
5775 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
5776 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
5778 oprot.writeStructBegin(
'TDatabasePermissions')
5780 oprot.writeFieldBegin(
'create_', TType.BOOL, 1)
5782 oprot.writeFieldEnd()
5784 oprot.writeFieldBegin(
'delete_', TType.BOOL, 2)
5786 oprot.writeFieldEnd()
5788 oprot.writeFieldBegin(
'view_sql_editor_', TType.BOOL, 3)
5790 oprot.writeFieldEnd()
5792 oprot.writeFieldBegin(
'access_', TType.BOOL, 4)
5794 oprot.writeFieldEnd()
5795 oprot.writeFieldStop()
5796 oprot.writeStructEnd()
5802 L = [
'%s=%r' % (key, value)
5803 for key, value
in self.__dict__.items()]
5804 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
5807 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
5810 return not (self == other)
5828 def __init__(self, create_=None, drop_=None, select_=None, insert_=None, update_=None, delete_=None, truncate_=None, alter_=None,):
5839 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
5840 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5842 iprot.readStructBegin()
5844 (fname, ftype, fid) = iprot.readFieldBegin()
5845 if ftype == TType.STOP:
5848 if ftype == TType.BOOL:
5849 self.
create_ = iprot.readBool()
5853 if ftype == TType.BOOL:
5854 self.
drop_ = iprot.readBool()
5858 if ftype == TType.BOOL:
5859 self.
select_ = iprot.readBool()
5863 if ftype == TType.BOOL:
5864 self.
insert_ = iprot.readBool()
5868 if ftype == TType.BOOL:
5869 self.
update_ = iprot.readBool()
5873 if ftype == TType.BOOL:
5874 self.
delete_ = iprot.readBool()
5878 if ftype == TType.BOOL:
5883 if ftype == TType.BOOL:
5884 self.
alter_ = iprot.readBool()
5889 iprot.readFieldEnd()
5890 iprot.readStructEnd()
5893 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
5894 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
5896 oprot.writeStructBegin(
'TTablePermissions')
5898 oprot.writeFieldBegin(
'create_', TType.BOOL, 1)
5900 oprot.writeFieldEnd()
5901 if self.
drop_ is not None:
5902 oprot.writeFieldBegin(
'drop_', TType.BOOL, 2)
5903 oprot.writeBool(self.
drop_)
5904 oprot.writeFieldEnd()
5906 oprot.writeFieldBegin(
'select_', TType.BOOL, 3)
5908 oprot.writeFieldEnd()
5910 oprot.writeFieldBegin(
'insert_', TType.BOOL, 4)
5912 oprot.writeFieldEnd()
5914 oprot.writeFieldBegin(
'update_', TType.BOOL, 5)
5916 oprot.writeFieldEnd()
5918 oprot.writeFieldBegin(
'delete_', TType.BOOL, 6)
5920 oprot.writeFieldEnd()
5922 oprot.writeFieldBegin(
'truncate_', TType.BOOL, 7)
5924 oprot.writeFieldEnd()
5925 if self.
alter_ is not None:
5926 oprot.writeFieldBegin(
'alter_', TType.BOOL, 8)
5927 oprot.writeBool(self.
alter_)
5928 oprot.writeFieldEnd()
5929 oprot.writeFieldStop()
5930 oprot.writeStructEnd()
5936 L = [
'%s=%r' % (key, value)
5937 for key, value
in self.__dict__.items()]
5938 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
5941 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
5944 return not (self == other)
5958 def __init__(self, create_=None, delete_=None, view_=None, edit_=None,):
5965 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
5966 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5968 iprot.readStructBegin()
5970 (fname, ftype, fid) = iprot.readFieldBegin()
5971 if ftype == TType.STOP:
5974 if ftype == TType.BOOL:
5975 self.
create_ = iprot.readBool()
5979 if ftype == TType.BOOL:
5980 self.
delete_ = iprot.readBool()
5984 if ftype == TType.BOOL:
5985 self.
view_ = iprot.readBool()
5989 if ftype == TType.BOOL:
5990 self.
edit_ = iprot.readBool()
5995 iprot.readFieldEnd()
5996 iprot.readStructEnd()
5999 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
6000 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6002 oprot.writeStructBegin(
'TDashboardPermissions')
6004 oprot.writeFieldBegin(
'create_', TType.BOOL, 1)
6006 oprot.writeFieldEnd()
6008 oprot.writeFieldBegin(
'delete_', TType.BOOL, 2)
6010 oprot.writeFieldEnd()
6011 if self.
view_ is not None:
6012 oprot.writeFieldBegin(
'view_', TType.BOOL, 3)
6013 oprot.writeBool(self.
view_)
6014 oprot.writeFieldEnd()
6015 if self.
edit_ is not None:
6016 oprot.writeFieldBegin(
'edit_', TType.BOOL, 4)
6017 oprot.writeBool(self.
edit_)
6018 oprot.writeFieldEnd()
6019 oprot.writeFieldStop()
6020 oprot.writeStructEnd()
6026 L = [
'%s=%r' % (key, value)
6027 for key, value
in self.__dict__.items()]
6028 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
6031 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
6034 return not (self == other)
6050 def __init__(self, create_=None, drop_=None, select_=None, insert_=None, update_=None, delete_=None,):
6059 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
6060 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6062 iprot.readStructBegin()
6064 (fname, ftype, fid) = iprot.readFieldBegin()
6065 if ftype == TType.STOP:
6068 if ftype == TType.BOOL:
6069 self.
create_ = iprot.readBool()
6073 if ftype == TType.BOOL:
6074 self.
drop_ = iprot.readBool()
6078 if ftype == TType.BOOL:
6079 self.
select_ = iprot.readBool()
6083 if ftype == TType.BOOL:
6084 self.
insert_ = iprot.readBool()
6088 if ftype == TType.BOOL:
6089 self.
update_ = iprot.readBool()
6093 if ftype == TType.BOOL:
6094 self.
delete_ = iprot.readBool()
6099 iprot.readFieldEnd()
6100 iprot.readStructEnd()
6103 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
6104 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6106 oprot.writeStructBegin(
'TViewPermissions')
6108 oprot.writeFieldBegin(
'create_', TType.BOOL, 1)
6110 oprot.writeFieldEnd()
6111 if self.
drop_ is not None:
6112 oprot.writeFieldBegin(
'drop_', TType.BOOL, 2)
6113 oprot.writeBool(self.
drop_)
6114 oprot.writeFieldEnd()
6116 oprot.writeFieldBegin(
'select_', TType.BOOL, 3)
6118 oprot.writeFieldEnd()
6120 oprot.writeFieldBegin(
'insert_', TType.BOOL, 4)
6122 oprot.writeFieldEnd()
6124 oprot.writeFieldBegin(
'update_', TType.BOOL, 5)
6126 oprot.writeFieldEnd()
6128 oprot.writeFieldBegin(
'delete_', TType.BOOL, 6)
6130 oprot.writeFieldEnd()
6131 oprot.writeFieldStop()
6132 oprot.writeStructEnd()
6138 L = [
'%s=%r' % (key, value)
6139 for key, value
in self.__dict__.items()]
6140 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
6143 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
6146 return not (self == other)
6160 def __init__(self, create_=None, drop_=None, alter_=None, usage_=None,):
6167 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
6168 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6170 iprot.readStructBegin()
6172 (fname, ftype, fid) = iprot.readFieldBegin()
6173 if ftype == TType.STOP:
6176 if ftype == TType.BOOL:
6177 self.
create_ = iprot.readBool()
6181 if ftype == TType.BOOL:
6182 self.
drop_ = iprot.readBool()
6186 if ftype == TType.BOOL:
6187 self.
alter_ = iprot.readBool()
6191 if ftype == TType.BOOL:
6192 self.
usage_ = iprot.readBool()
6197 iprot.readFieldEnd()
6198 iprot.readStructEnd()
6201 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
6202 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6204 oprot.writeStructBegin(
'TServerPermissions')
6206 oprot.writeFieldBegin(
'create_', TType.BOOL, 1)
6208 oprot.writeFieldEnd()
6209 if self.
drop_ is not None:
6210 oprot.writeFieldBegin(
'drop_', TType.BOOL, 2)
6211 oprot.writeBool(self.
drop_)
6212 oprot.writeFieldEnd()
6213 if self.
alter_ is not None:
6214 oprot.writeFieldBegin(
'alter_', TType.BOOL, 3)
6215 oprot.writeBool(self.
alter_)
6216 oprot.writeFieldEnd()
6217 if self.
usage_ is not None:
6218 oprot.writeFieldBegin(
'usage_', TType.BOOL, 4)
6219 oprot.writeBool(self.
usage_)
6220 oprot.writeFieldEnd()
6221 oprot.writeFieldStop()
6222 oprot.writeStructEnd()
6228 L = [
'%s=%r' % (key, value)
6229 for key, value
in self.__dict__.items()]
6230 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
6233 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
6236 return not (self == other)
6242 - database_permissions_
6243 - table_permissions_
6244 - dashboard_permissions_
6246 - server_permissions_
6251 def __init__(self, database_permissions_=None, table_permissions_=None, dashboard_permissions_=None, view_permissions_=None, server_permissions_=None,):
6259 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
6260 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6262 iprot.readStructBegin()
6264 (fname, ftype, fid) = iprot.readFieldBegin()
6265 if ftype == TType.STOP:
6268 if ftype == TType.STRUCT:
6270 self.database_permissions_.read(iprot)
6274 if ftype == TType.STRUCT:
6276 self.table_permissions_.read(iprot)
6280 if ftype == TType.STRUCT:
6282 self.dashboard_permissions_.read(iprot)
6286 if ftype == TType.STRUCT:
6288 self.view_permissions_.read(iprot)
6292 if ftype == TType.STRUCT:
6294 self.server_permissions_.read(iprot)
6299 iprot.readFieldEnd()
6300 iprot.readStructEnd()
6303 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
6304 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6306 oprot.writeStructBegin(
'TDBObjectPermissions')
6308 oprot.writeFieldBegin(
'database_permissions_', TType.STRUCT, 1)
6309 self.database_permissions_.write(oprot)
6310 oprot.writeFieldEnd()
6312 oprot.writeFieldBegin(
'table_permissions_', TType.STRUCT, 2)
6313 self.table_permissions_.write(oprot)
6314 oprot.writeFieldEnd()
6316 oprot.writeFieldBegin(
'dashboard_permissions_', TType.STRUCT, 3)
6317 self.dashboard_permissions_.write(oprot)
6318 oprot.writeFieldEnd()
6320 oprot.writeFieldBegin(
'view_permissions_', TType.STRUCT, 4)
6321 self.view_permissions_.write(oprot)
6322 oprot.writeFieldEnd()
6324 oprot.writeFieldBegin(
'server_permissions_', TType.STRUCT, 5)
6325 self.server_permissions_.write(oprot)
6326 oprot.writeFieldEnd()
6327 oprot.writeFieldStop()
6328 oprot.writeStructEnd()
6334 L = [
'%s=%r' % (key, value)
6335 for key, value
in self.__dict__.items()]
6336 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
6339 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
6342 return not (self == other)
6352 - privilegeObjectType
6358 def __init__(self, objectName=None, objectType=None, privs=None, grantee=None, privilegeObjectType=None, objectId=None,):
6367 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
6368 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6370 iprot.readStructBegin()
6372 (fname, ftype, fid) = iprot.readFieldBegin()
6373 if ftype == TType.STOP:
6376 if ftype == TType.STRING:
6377 self.
objectName = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
6381 if ftype == TType.I32:
6386 if ftype == TType.LIST:
6388 (_etype272, _size269) = iprot.readListBegin()
6389 for _i273
in range(_size269):
6390 _elem274 = iprot.readBool()
6391 self.privs.append(_elem274)
6396 if ftype == TType.STRING:
6397 self.
grantee = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
6401 if ftype == TType.I32:
6406 if ftype == TType.I32:
6412 iprot.readFieldEnd()
6413 iprot.readStructEnd()
6416 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
6417 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6419 oprot.writeStructBegin(
'TDBObject')
6421 oprot.writeFieldBegin(
'objectName', TType.STRING, 1)
6422 oprot.writeString(self.objectName.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
objectName)
6423 oprot.writeFieldEnd()
6425 oprot.writeFieldBegin(
'objectType', TType.I32, 2)
6427 oprot.writeFieldEnd()
6428 if self.
privs is not None:
6429 oprot.writeFieldBegin(
'privs', TType.LIST, 3)
6430 oprot.writeListBegin(TType.BOOL, len(self.
privs))
6431 for iter275
in self.
privs:
6432 oprot.writeBool(iter275)
6433 oprot.writeListEnd()
6434 oprot.writeFieldEnd()
6436 oprot.writeFieldBegin(
'grantee', TType.STRING, 4)
6437 oprot.writeString(self.grantee.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
grantee)
6438 oprot.writeFieldEnd()
6440 oprot.writeFieldBegin(
'privilegeObjectType', TType.I32, 5)
6442 oprot.writeFieldEnd()
6444 oprot.writeFieldBegin(
'objectId', TType.I32, 6)
6446 oprot.writeFieldEnd()
6447 oprot.writeFieldStop()
6448 oprot.writeStructEnd()
6454 L = [
'%s=%r' % (key, value)
6455 for key, value
in self.__dict__.items()]
6456 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
6459 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
6462 return not (self == other)
6475 def __init__(self, name=None, is_user=None, permissions=None,):
6481 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
6482 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6484 iprot.readStructBegin()
6486 (fname, ftype, fid) = iprot.readFieldBegin()
6487 if ftype == TType.STOP:
6490 if ftype == TType.STRING:
6491 self.
name = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
6495 if ftype == TType.BOOL:
6496 self.
is_user = iprot.readBool()
6500 if ftype == TType.STRUCT:
6502 self.permissions.read(iprot)
6507 iprot.readFieldEnd()
6508 iprot.readStructEnd()
6511 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
6512 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6514 oprot.writeStructBegin(
'TDashboardGrantees')
6515 if self.
name is not None:
6516 oprot.writeFieldBegin(
'name', TType.STRING, 1)
6517 oprot.writeString(self.name.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
name)
6518 oprot.writeFieldEnd()
6520 oprot.writeFieldBegin(
'is_user', TType.BOOL, 2)
6522 oprot.writeFieldEnd()
6524 oprot.writeFieldBegin(
'permissions', TType.STRUCT, 3)
6525 self.permissions.write(oprot)
6526 oprot.writeFieldEnd()
6527 oprot.writeFieldStop()
6528 oprot.writeStructEnd()
6534 L = [
'%s=%r' % (key, value)
6535 for key, value
in self.__dict__.items()]
6536 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
6539 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
6542 return not (self == other)
6552 - dashboard_metadata
6556 - dashboard_permissions
6561 def __init__(self, dashboard_name=None, dashboard_state=None, image_hash=None, update_time=None, dashboard_metadata=None, dashboard_id=None, dashboard_owner=None, is_dash_shared=None, dashboard_permissions=None,):
6573 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
6574 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6576 iprot.readStructBegin()
6578 (fname, ftype, fid) = iprot.readFieldBegin()
6579 if ftype == TType.STOP:
6582 if ftype == TType.STRING:
6583 self.
dashboard_name = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
6587 if ftype == TType.STRING:
6588 self.
dashboard_state = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
6592 if ftype == TType.STRING:
6593 self.
image_hash = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
6597 if ftype == TType.STRING:
6598 self.
update_time = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
6602 if ftype == TType.STRING:
6603 self.
dashboard_metadata = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
6607 if ftype == TType.I32:
6612 if ftype == TType.STRING:
6613 self.
dashboard_owner = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
6617 if ftype == TType.BOOL:
6622 if ftype == TType.STRUCT:
6624 self.dashboard_permissions.read(iprot)
6629 iprot.readFieldEnd()
6630 iprot.readStructEnd()
6633 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
6634 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6636 oprot.writeStructBegin(
'TDashboard')
6638 oprot.writeFieldBegin(
'dashboard_name', TType.STRING, 1)
6639 oprot.writeString(self.dashboard_name.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
dashboard_name)
6640 oprot.writeFieldEnd()
6642 oprot.writeFieldBegin(
'dashboard_state', TType.STRING, 2)
6643 oprot.writeString(self.dashboard_state.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
dashboard_state)
6644 oprot.writeFieldEnd()
6646 oprot.writeFieldBegin(
'image_hash', TType.STRING, 3)
6647 oprot.writeString(self.image_hash.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
image_hash)
6648 oprot.writeFieldEnd()
6650 oprot.writeFieldBegin(
'update_time', TType.STRING, 4)
6651 oprot.writeString(self.update_time.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
update_time)
6652 oprot.writeFieldEnd()
6654 oprot.writeFieldBegin(
'dashboard_metadata', TType.STRING, 5)
6655 oprot.writeString(self.dashboard_metadata.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
dashboard_metadata)
6656 oprot.writeFieldEnd()
6658 oprot.writeFieldBegin(
'dashboard_id', TType.I32, 6)
6660 oprot.writeFieldEnd()
6662 oprot.writeFieldBegin(
'dashboard_owner', TType.STRING, 7)
6663 oprot.writeString(self.dashboard_owner.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
dashboard_owner)
6664 oprot.writeFieldEnd()
6666 oprot.writeFieldBegin(
'is_dash_shared', TType.BOOL, 8)
6668 oprot.writeFieldEnd()
6670 oprot.writeFieldBegin(
'dashboard_permissions', TType.STRUCT, 9)
6671 self.dashboard_permissions.write(oprot)
6672 oprot.writeFieldEnd()
6673 oprot.writeFieldStop()
6674 oprot.writeStructEnd()
6680 L = [
'%s=%r' % (key, value)
6681 for key, value
in self.__dict__.items()]
6682 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
6685 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
6688 return not (self == other)
6703 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
6704 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6706 iprot.readStructBegin()
6708 (fname, ftype, fid) = iprot.readFieldBegin()
6709 if ftype == TType.STOP:
6712 if ftype == TType.LIST:
6714 (_etype279, _size276) = iprot.readListBegin()
6715 for _i280
in range(_size276):
6716 _elem281 = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
6717 self.claims.append(_elem281)
6723 iprot.readFieldEnd()
6724 iprot.readStructEnd()
6727 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
6728 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6730 oprot.writeStructBegin(
'TLicenseInfo')
6731 if self.
claims is not None:
6732 oprot.writeFieldBegin(
'claims', TType.LIST, 1)
6733 oprot.writeListBegin(TType.STRING, len(self.
claims))
6734 for iter282
in self.
claims:
6735 oprot.writeString(iter282.encode(
'utf-8')
if sys.version_info[0] == 2
else iter282)
6736 oprot.writeListEnd()
6737 oprot.writeFieldEnd()
6738 oprot.writeFieldStop()
6739 oprot.writeStructEnd()
6745 L = [
'%s=%r' % (key, value)
6746 for key, value
in self.__dict__.items()]
6747 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
6750 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
6753 return not (self == other)
6767 def __init__(self, user=None, database=None, start_time=None, is_super=None,):
6774 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
6775 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6777 iprot.readStructBegin()
6779 (fname, ftype, fid) = iprot.readFieldBegin()
6780 if ftype == TType.STOP:
6783 if ftype == TType.STRING:
6784 self.
user = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
6788 if ftype == TType.STRING:
6789 self.
database = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
6793 if ftype == TType.I64:
6798 if ftype == TType.BOOL:
6804 iprot.readFieldEnd()
6805 iprot.readStructEnd()
6808 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
6809 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6811 oprot.writeStructBegin(
'TSessionInfo')
6812 if self.
user is not None:
6813 oprot.writeFieldBegin(
'user', TType.STRING, 1)
6814 oprot.writeString(self.user.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
user)
6815 oprot.writeFieldEnd()
6817 oprot.writeFieldBegin(
'database', TType.STRING, 2)
6818 oprot.writeString(self.database.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
database)
6819 oprot.writeFieldEnd()
6821 oprot.writeFieldBegin(
'start_time', TType.I64, 3)
6823 oprot.writeFieldEnd()
6825 oprot.writeFieldBegin(
'is_super', TType.BOOL, 4)
6827 oprot.writeFieldEnd()
6828 oprot.writeFieldStop()
6829 oprot.writeStructEnd()
6835 L = [
'%s=%r' % (key, value)
6836 for key, value
in self.__dict__.items()]
6837 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
6840 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
6843 return not (self == other)
6860 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
6861 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6863 iprot.readStructBegin()
6865 (fname, ftype, fid) = iprot.readFieldBegin()
6866 if ftype == TType.STOP:
6869 if ftype == TType.STRING:
6870 self.
name = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
6874 if ftype == TType.I32:
6880 iprot.readFieldEnd()
6881 iprot.readStructEnd()
6884 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
6885 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6887 oprot.writeStructBegin(
'TGeoFileLayerInfo')
6888 if self.
name is not None:
6889 oprot.writeFieldBegin(
'name', TType.STRING, 1)
6890 oprot.writeString(self.name.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
name)
6891 oprot.writeFieldEnd()
6893 oprot.writeFieldBegin(
'contents', TType.I32, 2)
6895 oprot.writeFieldEnd()
6896 oprot.writeFieldStop()
6897 oprot.writeStructEnd()
6903 L = [
'%s=%r' % (key, value)
6904 for key, value
in self.__dict__.items()]
6905 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
6908 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
6911 return not (self == other)
6924 def __init__(self, table_id=None, table_epoch=None, leaf_index=None,):
6930 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
6931 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6933 iprot.readStructBegin()
6935 (fname, ftype, fid) = iprot.readFieldBegin()
6936 if ftype == TType.STOP:
6939 if ftype == TType.I32:
6944 if ftype == TType.I32:
6949 if ftype == TType.I32:
6955 iprot.readFieldEnd()
6956 iprot.readStructEnd()
6959 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
6960 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6962 oprot.writeStructBegin(
'TTableEpochInfo')
6964 oprot.writeFieldBegin(
'table_id', TType.I32, 1)
6966 oprot.writeFieldEnd()
6968 oprot.writeFieldBegin(
'table_epoch', TType.I32, 2)
6970 oprot.writeFieldEnd()
6972 oprot.writeFieldBegin(
'leaf_index', TType.I32, 3)
6974 oprot.writeFieldEnd()
6975 oprot.writeFieldStop()
6976 oprot.writeStructEnd()
6982 L = [
'%s=%r' % (key, value)
6983 for key, value
in self.__dict__.items()]
6984 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
6987 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
6990 return not (self == other)
7007 def __init__(self, id=None, name=None, expression_json=None, data_source_type=None, data_source_id=None, is_deleted=None, data_source_name=None,):
7017 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
7018 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
7020 iprot.readStructBegin()
7022 (fname, ftype, fid) = iprot.readFieldBegin()
7023 if ftype == TType.STOP:
7026 if ftype == TType.I32:
7027 self.
id = iprot.readI32()
7031 if ftype == TType.STRING:
7032 self.
name = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
7036 if ftype == TType.STRING:
7037 self.
expression_json = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
7041 if ftype == TType.I32:
7046 if ftype == TType.I32:
7051 if ftype == TType.BOOL:
7056 if ftype == TType.STRING:
7057 self.
data_source_name = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
7062 iprot.readFieldEnd()
7063 iprot.readStructEnd()
7066 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
7067 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
7069 oprot.writeStructBegin(
'TCustomExpression')
7070 if self.
id is not None:
7071 oprot.writeFieldBegin(
'id', TType.I32, 1)
7072 oprot.writeI32(self.
id)
7073 oprot.writeFieldEnd()
7074 if self.
name is not None:
7075 oprot.writeFieldBegin(
'name', TType.STRING, 2)
7076 oprot.writeString(self.name.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
name)
7077 oprot.writeFieldEnd()
7079 oprot.writeFieldBegin(
'expression_json', TType.STRING, 4)
7080 oprot.writeString(self.expression_json.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
expression_json)
7081 oprot.writeFieldEnd()
7083 oprot.writeFieldBegin(
'data_source_type', TType.I32, 5)
7085 oprot.writeFieldEnd()
7087 oprot.writeFieldBegin(
'data_source_id', TType.I32, 6)
7089 oprot.writeFieldEnd()
7091 oprot.writeFieldBegin(
'is_deleted', TType.BOOL, 7)
7093 oprot.writeFieldEnd()
7095 oprot.writeFieldBegin(
'data_source_name', TType.STRING, 8)
7096 oprot.writeString(self.data_source_name.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
data_source_name)
7097 oprot.writeFieldEnd()
7098 oprot.writeFieldStop()
7099 oprot.writeStructEnd()
7105 L = [
'%s=%r' % (key, value)
7106 for key, value
in self.__dict__.items()]
7107 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
7110 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
7113 return not (self == other)
7120 - query_public_session_id
7133 def __init__(self, query_session_id=None, query_public_session_id=None, current_status=None, executor_id=None, submitted=None, query_str=None, login_name=None, client_address=None, db_name=None, exec_device_type=None,):
7146 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
7147 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
7149 iprot.readStructBegin()
7151 (fname, ftype, fid) = iprot.readFieldBegin()
7152 if ftype == TType.STOP:
7155 if ftype == TType.STRING:
7156 self.
query_session_id = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
7160 if ftype == TType.STRING:
7161 self.
query_public_session_id = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
7165 if ftype == TType.STRING:
7166 self.
current_status = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
7170 if ftype == TType.I32:
7175 if ftype == TType.STRING:
7176 self.
submitted = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
7180 if ftype == TType.STRING:
7181 self.
query_str = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
7185 if ftype == TType.STRING:
7186 self.
login_name = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
7190 if ftype == TType.STRING:
7191 self.
client_address = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
7195 if ftype == TType.STRING:
7196 self.
db_name = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
7200 if ftype == TType.STRING:
7201 self.
exec_device_type = iprot.readString().decode(
'utf-8', errors=
'replace')
if sys.version_info[0] == 2
else iprot.readString()
7206 iprot.readFieldEnd()
7207 iprot.readStructEnd()
7210 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
7211 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
7213 oprot.writeStructBegin(
'TQueryInfo')
7215 oprot.writeFieldBegin(
'query_session_id', TType.STRING, 1)
7216 oprot.writeString(self.query_session_id.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
query_session_id)
7217 oprot.writeFieldEnd()
7219 oprot.writeFieldBegin(
'query_public_session_id', TType.STRING, 2)
7220 oprot.writeString(self.query_public_session_id.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
query_public_session_id)
7221 oprot.writeFieldEnd()
7223 oprot.writeFieldBegin(
'current_status', TType.STRING, 3)
7224 oprot.writeString(self.current_status.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
current_status)
7225 oprot.writeFieldEnd()
7227 oprot.writeFieldBegin(
'executor_id', TType.I32, 4)
7229 oprot.writeFieldEnd()
7231 oprot.writeFieldBegin(
'submitted', TType.STRING, 5)
7232 oprot.writeString(self.submitted.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
submitted)
7233 oprot.writeFieldEnd()
7235 oprot.writeFieldBegin(
'query_str', TType.STRING, 6)
7236 oprot.writeString(self.query_str.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
query_str)
7237 oprot.writeFieldEnd()
7239 oprot.writeFieldBegin(
'login_name', TType.STRING, 7)
7240 oprot.writeString(self.login_name.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
login_name)
7241 oprot.writeFieldEnd()
7243 oprot.writeFieldBegin(
'client_address', TType.STRING, 8)
7244 oprot.writeString(self.client_address.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
client_address)
7245 oprot.writeFieldEnd()
7247 oprot.writeFieldBegin(
'db_name', TType.STRING, 9)
7248 oprot.writeString(self.db_name.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
db_name)
7249 oprot.writeFieldEnd()
7251 oprot.writeFieldBegin(
'exec_device_type', TType.STRING, 10)
7252 oprot.writeString(self.exec_device_type.encode(
'utf-8')
if sys.version_info[0] == 2
else self.
exec_device_type)
7253 oprot.writeFieldEnd()
7254 oprot.writeFieldStop()
7255 oprot.writeStructEnd()
7261 L = [
'%s=%r' % (key, value)
7262 for key, value
in self.__dict__.items()]
7263 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
7266 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
7269 return not (self == other)
7286 if iprot._fast_decode
is not None and isinstance(iprot.trans, TTransport.CReadableTransport)
and self.thrift_spec
is not None:
7287 iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
7289 iprot.readStructBegin()
7291 (fname, ftype, fid) = iprot.readFieldBegin()
7292 if ftype == TType.STOP:
7295 if ftype == TType.I32:
7296 self.
leaf_id = iprot.readI32()
7300 if ftype == TType.I32:
7306 iprot.readFieldEnd()
7307 iprot.readStructEnd()
7310 if oprot._fast_encode
is not None and self.thrift_spec
is not None:
7311 oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
7313 oprot.writeStructBegin(
'TLeafInfo')
7315 oprot.writeFieldBegin(
'leaf_id', TType.I32, 1)
7317 oprot.writeFieldEnd()
7319 oprot.writeFieldBegin(
'num_leaves', TType.I32, 2)
7321 oprot.writeFieldEnd()
7322 oprot.writeFieldStop()
7323 oprot.writeStructEnd()
7329 L = [
'%s=%r' % (key, value)
7330 for key, value
in self.__dict__.items()]
7331 return '%s(%s)' % (self.__class__.__name__,
', '.
join(L))
7334 return isinstance(other, self.__class__)
and self.
__dict__ == other.__dict__
7337 return not (self == other)
7338 all_structs.append(TDatumVal)
7339 TDatumVal.thrift_spec = (
7341 (1, TType.I64,
'int_val',
None,
None, ),
7342 (2, TType.DOUBLE,
'real_val',
None,
None, ),
7343 (3, TType.STRING,
'str_val',
'UTF8',
None, ),
7344 (4, TType.LIST,
'arr_val', (TType.STRUCT, [TDatum,
None],
False),
None, ),
7346 all_structs.append(TDatum)
7347 TDatum.thrift_spec = (
7349 (1, TType.STRUCT,
'val', [TDatumVal,
None],
None, ),
7350 (2, TType.BOOL,
'is_null',
None,
None, ),
7352 all_structs.append(TStringValue)
7353 TStringValue.thrift_spec = (
7355 (1, TType.STRING,
'str_val',
'UTF8',
None, ),
7356 (2, TType.BOOL,
'is_null',
None,
None, ),
7358 all_structs.append(TColumnType)
7359 TColumnType.thrift_spec = (
7361 (1, TType.STRING,
'col_name',
'UTF8',
None, ),
7363 (3, TType.BOOL,
'is_reserved_keyword',
None,
None, ),
7364 (4, TType.STRING,
'src_name',
'UTF8',
None, ),
7365 (5, TType.BOOL,
'is_system',
None,
None, ),
7366 (6, TType.BOOL,
'is_physical',
None,
None, ),
7367 (7, TType.I64,
'col_id',
None,
None, ),
7368 (8, TType.STRING,
'default_value',
'UTF8',
None, ),
7370 all_structs.append(TRow)
7371 TRow.thrift_spec = (
7373 (1, TType.LIST,
'cols', (TType.STRUCT, [TDatum,
None],
False),
None, ),
7375 all_structs.append(TColumnData)
7376 TColumnData.thrift_spec = (
7378 (1, TType.LIST,
'int_col', (TType.I64,
None,
False),
None, ),
7379 (2, TType.LIST,
'real_col', (TType.DOUBLE,
None,
False),
None, ),
7380 (3, TType.LIST,
'str_col', (TType.STRING,
'UTF8',
False),
None, ),
7381 (4, TType.LIST,
'arr_col', (TType.STRUCT, [TColumn,
None],
False),
None, ),
7383 all_structs.append(TColumn)
7384 TColumn.thrift_spec = (
7386 (1, TType.STRUCT,
'data', [TColumnData,
None],
None, ),
7387 (2, TType.LIST,
'nulls', (TType.BOOL,
None,
False),
None, ),
7389 all_structs.append(TStringRow)
7390 TStringRow.thrift_spec = (
7392 (1, TType.LIST,
'cols', (TType.STRUCT, [TStringValue,
None],
False),
None, ),
7394 all_structs.append(TKrb5Session)
7395 TKrb5Session.thrift_spec = (
7397 (1, TType.STRING,
'sessionId',
'UTF8',
None, ),
7398 (2, TType.STRING,
'krbToken',
'UTF8',
None, ),
7400 all_structs.append(TStepResult)
7401 TStepResult.thrift_spec = (
7404 (2, TType.BOOL,
'execution_finished',
None,
None, ),
7405 (3, TType.I32,
'merge_type',
None,
None, ),
7406 (4, TType.BOOL,
'sharded',
None,
None, ),
7407 (5, TType.LIST,
'row_desc', (TType.STRUCT, [TColumnType,
None],
False),
None, ),
7408 (6, TType.I32,
'node_id',
None,
None, ),
7410 all_structs.append(TRowSet)
7411 TRowSet.thrift_spec = (
7413 (1, TType.LIST,
'row_desc', (TType.STRUCT, [TColumnType,
None],
False),
None, ),
7414 (2, TType.LIST,
'rows', (TType.STRUCT, [TRow,
None],
False),
None, ),
7415 (3, TType.LIST,
'columns', (TType.STRUCT, [TColumn,
None],
False),
None, ),
7416 (4, TType.BOOL,
'is_columnar',
None,
None, ),
7418 all_structs.append(TQueryResult)
7419 TQueryResult.thrift_spec = (
7421 (1, TType.STRUCT,
'row_set', [TRowSet,
None],
None, ),
7422 (2, TType.I64,
'execution_time_ms',
None,
None, ),
7423 (3, TType.I64,
'total_time_ms',
None,
None, ),
7424 (4, TType.STRING,
'nonce',
'UTF8',
None, ),
7425 (5, TType.STRING,
'debug',
'UTF8',
None, ),
7426 (6, TType.BOOL,
'success',
None,
True, ),
7427 (7, TType.I32,
'query_type',
None, 0, ),
7429 all_structs.append(TDataFrame)
7430 TDataFrame.thrift_spec = (
7432 (1, TType.STRING,
'sm_handle',
'BINARY',
None, ),
7433 (2, TType.I64,
'sm_size',
None,
None, ),
7434 (3, TType.STRING,
'df_handle',
'BINARY',
None, ),
7435 (4, TType.I64,
'df_size',
None,
None, ),
7436 (5, TType.I64,
'execution_time_ms',
None,
None, ),
7437 (6, TType.I64,
'arrow_conversion_time_ms',
None,
None, ),
7438 (7, TType.STRING,
'df_buffer',
'BINARY',
None, ),
7440 all_structs.append(TDBInfo)
7441 TDBInfo.thrift_spec = (
7443 (1, TType.STRING,
'db_name',
'UTF8',
None, ),
7444 (2, TType.STRING,
'db_owner',
'UTF8',
None, ),
7446 all_structs.append(TDBException)
7447 TDBException.thrift_spec = (
7449 (1, TType.STRING,
'error_msg',
'UTF8',
None, ),
7451 all_structs.append(TCopyParams)
7452 TCopyParams.thrift_spec = (
7454 (1, TType.STRING,
'delimiter',
'UTF8',
None, ),
7455 (2, TType.STRING,
'null_str',
'UTF8',
None, ),
7456 (3, TType.I32,
'has_header',
None, 0, ),
7457 (4, TType.BOOL,
'quoted',
None,
None, ),
7458 (5, TType.STRING,
'quote',
'UTF8',
None, ),
7459 (6, TType.STRING,
'escape',
'UTF8',
None, ),
7460 (7, TType.STRING,
'line_delim',
'UTF8',
None, ),
7461 (8, TType.STRING,
'array_delim',
'UTF8',
None, ),
7462 (9, TType.STRING,
'array_begin',
'UTF8',
None, ),
7463 (10, TType.STRING,
'array_end',
'UTF8',
None, ),
7464 (11, TType.I32,
'threads',
None,
None, ),
7465 (12, TType.I32,
'source_type',
None, 0, ),
7466 (13, TType.STRING,
's3_access_key',
'UTF8',
None, ),
7467 (14, TType.STRING,
's3_secret_key',
'UTF8',
None, ),
7468 (15, TType.STRING,
's3_region',
'UTF8',
None, ),
7469 (16, TType.I32,
'geo_coords_encoding',
None, 6, ),
7470 (17, TType.I32,
'geo_coords_comp_param',
None, 32, ),
7471 (18, TType.I32,
'geo_coords_type',
None, 18, ),
7472 (19, TType.I32,
'geo_coords_srid',
None, 4326, ),
7473 (20, TType.BOOL,
'sanitize_column_names',
None,
True, ),
7474 (21, TType.STRING,
'geo_layer_name',
'UTF8',
None, ),
7475 (22, TType.STRING,
's3_endpoint',
'UTF8',
None, ),
7476 (23, TType.BOOL,
'geo_assign_render_groups',
None,
False, ),
7477 (24, TType.BOOL,
'geo_explode_collections',
None,
False, ),
7478 (25, TType.I32,
'source_srid',
None, 0, ),
7479 (26, TType.STRING,
's3_session_token',
'UTF8',
None, ),
7480 (27, TType.I32,
'raster_point_type',
None, 1, ),
7481 (28, TType.STRING,
'raster_import_bands',
'UTF8',
None, ),
7482 (29, TType.I32,
'raster_scanlines_per_thread',
None,
None, ),
7483 (30, TType.I32,
'raster_point_transform',
None, 1, ),
7484 (31, TType.BOOL,
'raster_point_compute_angle',
None,
False, ),
7485 (32, TType.STRING,
'raster_import_dimensions',
'UTF8',
None, ),
7486 (33, TType.STRING,
'odbc_dsn',
'UTF8',
None, ),
7487 (34, TType.STRING,
'odbc_connection_string',
'UTF8',
None, ),
7488 (35, TType.STRING,
'odbc_sql_select',
'UTF8',
None, ),
7489 (36, TType.STRING,
'odbc_sql_order_by',
'UTF8',
None, ),
7490 (37, TType.STRING,
'odbc_username',
'UTF8',
None, ),
7491 (38, TType.STRING,
'odbc_password',
'UTF8',
None, ),
7492 (39, TType.STRING,
'odbc_credential_string',
'UTF8',
None, ),
7493 (40, TType.STRING,
'add_metadata_columns',
'UTF8',
None, ),
7494 (41, TType.BOOL,
'trim_spaces',
None,
True, ),
7495 (42, TType.BOOL,
'geo_validate_geometry',
None,
False, ),
7497 all_structs.append(TCreateParams)
7498 TCreateParams.thrift_spec = (
7500 (1, TType.BOOL,
'is_replicated',
None,
None, ),
7502 all_structs.append(TDetectResult)
7503 TDetectResult.thrift_spec = (
7505 (1, TType.STRUCT,
'row_set', [TRowSet,
None],
None, ),
7506 (2, TType.STRUCT,
'copy_params', [TCopyParams,
None],
None, ),
7508 all_structs.append(TImportStatus)
7509 TImportStatus.thrift_spec = (
7511 (1, TType.I64,
'elapsed',
None,
None, ),
7512 (2, TType.I64,
'rows_completed',
None,
None, ),
7513 (3, TType.I64,
'rows_estimated',
None,
None, ),
7514 (4, TType.I64,
'rows_rejected',
None,
None, ),
7516 all_structs.append(TFrontendView)
7517 TFrontendView.thrift_spec = (
7519 (1, TType.STRING,
'view_name',
'UTF8',
None, ),
7520 (2, TType.STRING,
'view_state',
'UTF8',
None, ),
7521 (3, TType.STRING,
'image_hash',
'UTF8',
None, ),
7522 (4, TType.STRING,
'update_time',
'UTF8',
None, ),
7523 (5, TType.STRING,
'view_metadata',
'UTF8',
None, ),
7525 all_structs.append(TServerStatus)
7526 TServerStatus.thrift_spec = (
7528 (1, TType.BOOL,
'read_only',
None,
None, ),
7529 (2, TType.STRING,
'version',
'UTF8',
None, ),
7530 (3, TType.BOOL,
'rendering_enabled',
None,
None, ),
7531 (4, TType.I64,
'start_time',
None,
None, ),
7532 (5, TType.STRING,
'edition',
'UTF8',
None, ),
7533 (6, TType.STRING,
'host_name',
'UTF8',
None, ),
7534 (7, TType.BOOL,
'poly_rendering_enabled',
None,
None, ),
7535 (8, TType.I32,
'role',
None,
None, ),
7536 (9, TType.STRING,
'renderer_status_json',
'UTF8',
None, ),
7537 (10, TType.STRING,
'host_id',
'UTF8',
None, ),
7539 all_structs.append(TPixel)
7540 TPixel.thrift_spec = (
7542 (1, TType.I64,
'x',
None,
None, ),
7543 (2, TType.I64,
'y',
None,
None, ),
7545 all_structs.append(TPixelTableRowResult)
7546 TPixelTableRowResult.thrift_spec = (
7548 (1, TType.STRUCT,
'pixel', [TPixel,
None],
None, ),
7549 (2, TType.STRING,
'vega_table_name',
'UTF8',
None, ),
7550 (3, TType.LIST,
'table_id', (TType.I64,
None,
False),
None, ),
7551 (4, TType.LIST,
'row_id', (TType.I64,
None,
False),
None, ),
7552 (5, TType.STRUCT,
'row_set', [TRowSet,
None],
None, ),
7553 (6, TType.STRING,
'nonce',
'UTF8',
None, ),
7555 all_structs.append(TRenderResult)
7556 TRenderResult.thrift_spec = (
7558 (1, TType.STRING,
'image',
'BINARY',
None, ),
7559 (2, TType.STRING,
'nonce',
'UTF8',
None, ),
7560 (3, TType.I64,
'execution_time_ms',
None,
None, ),
7561 (4, TType.I64,
'render_time_ms',
None,
None, ),
7562 (5, TType.I64,
'total_time_ms',
None,
None, ),
7563 (6, TType.STRING,
'vega_metadata',
'UTF8',
None, ),
7565 all_structs.append(TGpuSpecification)
7566 TGpuSpecification.thrift_spec = (
7568 (1, TType.I32,
'num_sm',
None,
None, ),
7569 (2, TType.I64,
'clock_frequency_kHz',
None,
None, ),
7570 (3, TType.I64,
'memory',
None,
None, ),
7571 (4, TType.I16,
'compute_capability_major',
None,
None, ),
7572 (5, TType.I16,
'compute_capability_minor',
None,
None, ),
7574 all_structs.append(THardwareInfo)
7575 THardwareInfo.thrift_spec = (
7577 (1, TType.I16,
'num_gpu_hw',
None,
None, ),
7578 (2, TType.I16,
'num_cpu_hw',
None,
None, ),
7579 (3, TType.I16,
'num_gpu_allocated',
None,
None, ),
7580 (4, TType.I16,
'start_gpu',
None,
None, ),
7581 (5, TType.STRING,
'host_name',
'UTF8',
None, ),
7582 (6, TType.LIST,
'gpu_info', (TType.STRUCT, [TGpuSpecification,
None],
False),
None, ),
7584 all_structs.append(TClusterHardwareInfo)
7585 TClusterHardwareInfo.thrift_spec = (
7587 (1, TType.LIST,
'hardware_info', (TType.STRUCT, [THardwareInfo,
None],
False),
None, ),
7589 all_structs.append(TMemoryData)
7590 TMemoryData.thrift_spec = (
7592 (1, TType.I64,
'slab',
None,
None, ),
7593 (2, TType.I32,
'start_page',
None,
None, ),
7594 (3, TType.I64,
'num_pages',
None,
None, ),
7595 (4, TType.I32,
'touch',
None,
None, ),
7596 (5, TType.LIST,
'chunk_key', (TType.I64,
None,
False),
None, ),
7597 (6, TType.I32,
'buffer_epoch',
None,
None, ),
7598 (7, TType.BOOL,
'is_free',
None,
None, ),
7600 all_structs.append(TNodeMemoryInfo)
7601 TNodeMemoryInfo.thrift_spec = (
7603 (1, TType.STRING,
'host_name',
'UTF8',
None, ),
7604 (2, TType.I64,
'page_size',
None,
None, ),
7605 (3, TType.I64,
'max_num_pages',
None,
None, ),
7606 (4, TType.I64,
'num_pages_allocated',
None,
None, ),
7607 (5, TType.BOOL,
'is_allocation_capped',
None,
None, ),
7608 (6, TType.LIST,
'node_memory_data', (TType.STRUCT, [TMemoryData,
None],
False),
None, ),
7610 all_structs.append(TTableMeta)
7611 TTableMeta.thrift_spec = (
7613 (1, TType.STRING,
'table_name',
'UTF8',
None, ),
7614 (2, TType.I64,
'num_cols',
None,
None, ),
7616 (4, TType.BOOL,
'is_view',
None,
None, ),
7617 (5, TType.BOOL,
'is_replicated',
None,
None, ),
7618 (6, TType.I64,
'shard_count',
None,
None, ),
7619 (7, TType.I64,
'max_rows',
None,
None, ),
7620 (8, TType.I64,
'table_id',
None,
None, ),
7621 (9, TType.I64,
'max_table_id',
None,
None, ),
7623 (11, TType.LIST,
'col_names', (TType.STRING,
'UTF8',
False),
None, ),
7625 all_structs.append(TTableRefreshInfo)
7626 TTableRefreshInfo.thrift_spec = (
7628 (1, TType.I32,
'update_type',
None,
None, ),
7629 (2, TType.I32,
'timing_type',
None,
None, ),
7630 (3, TType.STRING,
'start_date_time',
'UTF8',
None, ),
7631 (4, TType.I32,
'interval_type',
None,
None, ),
7632 (5, TType.I64,
'interval_count',
None,
None, ),
7633 (6, TType.STRING,
'last_refresh_time',
'UTF8',
None, ),
7634 (7, TType.STRING,
'next_refresh_time',
'UTF8',
None, ),
7636 all_structs.append(TTableDetails)
7637 TTableDetails.thrift_spec = (
7639 (1, TType.LIST,
'row_desc', (TType.STRUCT, [TColumnType,
None],
False),
None, ),
7640 (2, TType.I64,
'fragment_size',
None,
None, ),
7641 (3, TType.I64,
'page_size',
None,
None, ),
7642 (4, TType.I64,
'max_rows',
None,
None, ),
7643 (5, TType.STRING,
'view_sql',
'UTF8',
None, ),
7644 (6, TType.I64,
'shard_count',
None,
None, ),
7645 (7, TType.STRING,
'key_metainfo',
'UTF8',
None, ),
7646 (8, TType.BOOL,
'is_temporary',
None,
None, ),
7647 (9, TType.I32,
'partition_detail',
None,
None, ),
7648 (10, TType.I32,
'table_type',
None,
None, ),
7649 (11, TType.STRUCT,
'refresh_info', [TTableRefreshInfo,
None],
None, ),
7650 (12, TType.STRING,
'sharded_column_name',
'UTF8',
None, ),
7652 all_structs.append(TColumnRange)
7653 TColumnRange.thrift_spec = (
7655 (1, TType.I32,
'type',
None,
None, ),
7656 (2, TType.I32,
'col_id',
None,
None, ),
7657 (3, TType.I32,
'table_id',
None,
None, ),
7658 (4, TType.BOOL,
'has_nulls',
None,
None, ),
7659 (5, TType.I64,
'int_min',
None,
None, ),
7660 (6, TType.I64,
'int_max',
None,
None, ),
7661 (7, TType.I64,
'bucket',
None,
None, ),
7662 (8, TType.DOUBLE,
'fp_min',
None,
None, ),
7663 (9, TType.DOUBLE,
'fp_max',
None,
None, ),
7664 (10, TType.I32,
'db_id',
None,
None, ),
7666 all_structs.append(TDictionaryGeneration)
7667 TDictionaryGeneration.thrift_spec = (
7669 (1, TType.I32,
'dict_id',
None,
None, ),
7670 (2, TType.I64,
'entry_count',
None,
None, ),
7671 (3, TType.I32,
'db_id',
None,
None, ),
7673 all_structs.append(TTableGeneration)
7674 TTableGeneration.thrift_spec = (
7676 (1, TType.I32,
'table_id',
None,
None, ),
7677 (2, TType.I64,
'tuple_count',
None,
None, ),
7678 (3, TType.I64,
'start_rowid',
None,
None, ),
7679 (4, TType.I32,
'db_id',
None,
None, ),
7681 all_structs.append(TTableCacheStatus)
7682 TTableCacheStatus.thrift_spec = (
7684 (1, TType.I32,
'table_id',
None,
None, ),
7685 (2, TType.I32,
'db_id',
None,
None, ),
7686 (3, TType.BOOL,
'is_cached_on_disk',
None,
None, ),
7688 all_structs.append(TPendingQuery)
7689 TPendingQuery.thrift_spec = (
7691 (1, TType.I64,
'id',
None,
None, ),
7692 (2, TType.LIST,
'column_ranges', (TType.STRUCT, [TColumnRange,
None],
False),
None, ),
7693 (3, TType.LIST,
'dictionary_generations', (TType.STRUCT, [TDictionaryGeneration,
None],
False),
None, ),
7694 (4, TType.LIST,
'table_generations', (TType.STRUCT, [TTableGeneration,
None],
False),
None, ),
7695 (5, TType.STRING,
'parent_session_id',
'UTF8',
None, ),
7696 (6, TType.LIST,
'table_cache_status', (TType.STRUCT, [TTableCacheStatus,
None],
False),
None, ),
7698 all_structs.append(TVarLen)
7699 TVarLen.thrift_spec = (
7701 (1, TType.STRING,
'payload',
'BINARY',
None, ),
7702 (2, TType.BOOL,
'is_null',
None,
None, ),
7704 all_structs.append(TDataBlockPtr)
7705 TDataBlockPtr.thrift_spec = (
7707 (1, TType.STRING,
'fixed_len_data',
'BINARY',
None, ),
7708 (2, TType.LIST,
'var_len_data', (TType.STRUCT, [TVarLen,
None],
False),
None, ),
7710 all_structs.append(TInsertData)
7711 TInsertData.thrift_spec = (
7713 (1, TType.I32,
'db_id',
None,
None, ),
7714 (2, TType.I32,
'table_id',
None,
None, ),
7715 (3, TType.LIST,
'column_ids', (TType.I32,
None,
False),
None, ),
7716 (4, TType.LIST,
'data', (TType.STRUCT, [TDataBlockPtr,
None],
False),
None, ),
7717 (5, TType.I64,
'num_rows',
None,
None, ),
7718 (6, TType.LIST,
'is_default', (TType.BOOL,
None,
False),
None, ),
7720 all_structs.append(TChunkData)
7721 TChunkData.thrift_spec = (
7723 (1, TType.STRING,
'data_buffer',
'BINARY',
None, ),
7724 (2, TType.STRING,
'index_buffer',
'BINARY',
None, ),
7726 all_structs.append(TInsertChunks)
7727 TInsertChunks.thrift_spec = (
7729 (1, TType.I32,
'db_id',
None,
None, ),
7730 (2, TType.I32,
'table_id',
None,
None, ),
7731 (3, TType.LIST,
'data', (TType.STRUCT, [TChunkData,
None],
False),
None, ),
7732 (4, TType.LIST,
'valid_indices', (TType.I64,
None,
False),
None, ),
7733 (5, TType.I64,
'num_rows',
None,
None, ),
7735 all_structs.append(TPendingRenderQuery)
7736 TPendingRenderQuery.thrift_spec = (
7738 (1, TType.I64,
'id',
None,
None, ),
7740 all_structs.append(TRenderParseResult)
7741 TRenderParseResult.thrift_spec = (
7743 (1, TType.I32,
'merge_type',
None,
None, ),
7744 (2, TType.I32,
'node_id',
None,
None, ),
7745 (3, TType.I64,
'execution_time_ms',
None,
None, ),
7746 (4, TType.I64,
'render_time_ms',
None,
None, ),
7747 (5, TType.I64,
'total_time_ms',
None,
None, ),
7749 all_structs.append(TRawRenderPassDataResult)
7750 TRawRenderPassDataResult.thrift_spec = (
7752 (1, TType.I32,
'num_pixel_channels',
None,
None, ),
7753 (2, TType.I32,
'num_pixel_samples',
None,
None, ),
7754 (3, TType.STRING,
'pixels',
'BINARY',
None, ),
7755 (4, TType.STRING,
'row_ids_A',
'BINARY',
None, ),
7756 (5, TType.STRING,
'row_ids_B',
'BINARY',
None, ),
7757 (6, TType.STRING,
'table_ids',
'BINARY',
None, ),
7758 (7, TType.STRING,
'accum_data',
'BINARY',
None, ),
7759 (8, TType.I32,
'accum_depth',
None,
None, ),
7761 all_structs.append(TRawPixelData)
7762 TRawPixelData.thrift_spec = (
7764 (1, TType.I32,
'width',
None,
None, ),
7765 (2, TType.I32,
'height',
None,
None, ),
7766 (3, TType.MAP,
'render_pass_map', (TType.I32,
None, TType.STRUCT, [TRawRenderPassDataResult,
None],
False),
None, ),
7768 all_structs.append(TRenderDatum)
7769 TRenderDatum.thrift_spec = (
7771 (1, TType.I32,
'type',
None,
None, ),
7772 (2, TType.I32,
'cnt',
None,
None, ),
7773 (3, TType.STRING,
'value',
'BINARY',
None, ),
7775 all_structs.append(TRenderStepResult)
7776 TRenderStepResult.thrift_spec = (
7778 (1, TType.MAP,
'merge_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, ),
7779 (2, TType.STRUCT,
'raw_pixel_data', [TRawPixelData,
None],
None, ),
7780 (3, TType.I64,
'execution_time_ms',
None,
None, ),
7781 (4, TType.I64,
'render_time_ms',
None,
None, ),
7782 (5, TType.I64,
'total_time_ms',
None,
None, ),
7784 all_structs.append(TDatabasePermissions)
7785 TDatabasePermissions.thrift_spec = (
7787 (1, TType.BOOL,
'create_',
None,
None, ),
7788 (2, TType.BOOL,
'delete_',
None,
None, ),
7789 (3, TType.BOOL,
'view_sql_editor_',
None,
None, ),
7790 (4, TType.BOOL,
'access_',
None,
None, ),
7792 all_structs.append(TTablePermissions)
7793 TTablePermissions.thrift_spec = (
7795 (1, TType.BOOL,
'create_',
None,
None, ),
7796 (2, TType.BOOL,
'drop_',
None,
None, ),
7797 (3, TType.BOOL,
'select_',
None,
None, ),
7798 (4, TType.BOOL,
'insert_',
None,
None, ),
7799 (5, TType.BOOL,
'update_',
None,
None, ),
7800 (6, TType.BOOL,
'delete_',
None,
None, ),
7801 (7, TType.BOOL,
'truncate_',
None,
None, ),
7802 (8, TType.BOOL,
'alter_',
None,
None, ),
7804 all_structs.append(TDashboardPermissions)
7805 TDashboardPermissions.thrift_spec = (
7807 (1, TType.BOOL,
'create_',
None,
None, ),
7808 (2, TType.BOOL,
'delete_',
None,
None, ),
7809 (3, TType.BOOL,
'view_',
None,
None, ),
7810 (4, TType.BOOL,
'edit_',
None,
None, ),
7812 all_structs.append(TViewPermissions)
7813 TViewPermissions.thrift_spec = (
7815 (1, TType.BOOL,
'create_',
None,
None, ),
7816 (2, TType.BOOL,
'drop_',
None,
None, ),
7817 (3, TType.BOOL,
'select_',
None,
None, ),
7818 (4, TType.BOOL,
'insert_',
None,
None, ),
7819 (5, TType.BOOL,
'update_',
None,
None, ),
7820 (6, TType.BOOL,
'delete_',
None,
None, ),
7822 all_structs.append(TServerPermissions)
7823 TServerPermissions.thrift_spec = (
7825 (1, TType.BOOL,
'create_',
None,
None, ),
7826 (2, TType.BOOL,
'drop_',
None,
None, ),
7827 (3, TType.BOOL,
'alter_',
None,
None, ),
7828 (4, TType.BOOL,
'usage_',
None,
None, ),
7830 all_structs.append(TDBObjectPermissions)
7831 TDBObjectPermissions.thrift_spec = (
7833 (1, TType.STRUCT,
'database_permissions_', [TDatabasePermissions,
None],
None, ),
7834 (2, TType.STRUCT,
'table_permissions_', [TTablePermissions,
None],
None, ),
7835 (3, TType.STRUCT,
'dashboard_permissions_', [TDashboardPermissions,
None],
None, ),
7836 (4, TType.STRUCT,
'view_permissions_', [TViewPermissions,
None],
None, ),
7837 (5, TType.STRUCT,
'server_permissions_', [TServerPermissions,
None],
None, ),
7839 all_structs.append(TDBObject)
7840 TDBObject.thrift_spec = (
7842 (1, TType.STRING,
'objectName',
'UTF8',
None, ),
7843 (2, TType.I32,
'objectType',
None,
None, ),
7844 (3, TType.LIST,
'privs', (TType.BOOL,
None,
False),
None, ),
7845 (4, TType.STRING,
'grantee',
'UTF8',
None, ),
7846 (5, TType.I32,
'privilegeObjectType',
None,
None, ),
7847 (6, TType.I32,
'objectId',
None,
None, ),
7849 all_structs.append(TDashboardGrantees)
7850 TDashboardGrantees.thrift_spec = (
7852 (1, TType.STRING,
'name',
'UTF8',
None, ),
7853 (2, TType.BOOL,
'is_user',
None,
None, ),
7854 (3, TType.STRUCT,
'permissions', [TDashboardPermissions,
None],
None, ),
7856 all_structs.append(TDashboard)
7857 TDashboard.thrift_spec = (
7859 (1, TType.STRING,
'dashboard_name',
'UTF8',
None, ),
7860 (2, TType.STRING,
'dashboard_state',
'UTF8',
None, ),
7861 (3, TType.STRING,
'image_hash',
'UTF8',
None, ),
7862 (4, TType.STRING,
'update_time',
'UTF8',
None, ),
7863 (5, TType.STRING,
'dashboard_metadata',
'UTF8',
None, ),
7864 (6, TType.I32,
'dashboard_id',
None,
None, ),
7865 (7, TType.STRING,
'dashboard_owner',
'UTF8',
None, ),
7866 (8, TType.BOOL,
'is_dash_shared',
None,
None, ),
7867 (9, TType.STRUCT,
'dashboard_permissions', [TDashboardPermissions,
None],
None, ),
7869 all_structs.append(TLicenseInfo)
7870 TLicenseInfo.thrift_spec = (
7872 (1, TType.LIST,
'claims', (TType.STRING,
'UTF8',
False),
None, ),
7874 all_structs.append(TSessionInfo)
7875 TSessionInfo.thrift_spec = (
7877 (1, TType.STRING,
'user',
'UTF8',
None, ),
7878 (2, TType.STRING,
'database',
'UTF8',
None, ),
7879 (3, TType.I64,
'start_time',
None,
None, ),
7880 (4, TType.BOOL,
'is_super',
None,
None, ),
7882 all_structs.append(TGeoFileLayerInfo)
7883 TGeoFileLayerInfo.thrift_spec = (
7885 (1, TType.STRING,
'name',
'UTF8',
None, ),
7886 (2, TType.I32,
'contents',
None,
None, ),
7888 all_structs.append(TTableEpochInfo)
7889 TTableEpochInfo.thrift_spec = (
7891 (1, TType.I32,
'table_id',
None,
None, ),
7892 (2, TType.I32,
'table_epoch',
None,
None, ),
7893 (3, TType.I32,
'leaf_index',
None,
None, ),
7895 all_structs.append(TCustomExpression)
7896 TCustomExpression.thrift_spec = (
7898 (1, TType.I32,
'id',
None,
None, ),
7899 (2, TType.STRING,
'name',
'UTF8',
None, ),
7901 (4, TType.STRING,
'expression_json',
'UTF8',
None, ),
7902 (5, TType.I32,
'data_source_type',
None,
None, ),
7903 (6, TType.I32,
'data_source_id',
None,
None, ),
7904 (7, TType.BOOL,
'is_deleted',
None,
None, ),
7905 (8, TType.STRING,
'data_source_name',
'UTF8',
None, ),
7907 all_structs.append(TQueryInfo)
7908 TQueryInfo.thrift_spec = (
7910 (1, TType.STRING,
'query_session_id',
'UTF8',
None, ),
7911 (2, TType.STRING,
'query_public_session_id',
'UTF8',
None, ),
7912 (3, TType.STRING,
'current_status',
'UTF8',
None, ),
7913 (4, TType.I32,
'executor_id',
None,
None, ),
7914 (5, TType.STRING,
'submitted',
'UTF8',
None, ),
7915 (6, TType.STRING,
'query_str',
'UTF8',
None, ),
7916 (7, TType.STRING,
'login_name',
'UTF8',
None, ),
7917 (8, TType.STRING,
'client_address',
'UTF8',
None, ),
7918 (9, TType.STRING,
'db_name',
'UTF8',
None, ),
7919 (10, TType.STRING,
'exec_device_type',
'UTF8',
None, ),
7921 all_structs.append(TLeafInfo)
7922 TLeafInfo.thrift_spec = (
7924 (1, TType.I32,
'leaf_id',
None,
None, ),
7925 (2, TType.I32,
'num_leaves',
None,
None, ),
7927 fix_spec(all_structs)
raster_point_compute_angle
raster_scanlines_per_thread