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)