OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ttypes.py
Go to the documentation of this file.
1 #
2 # Autogenerated by Thrift Compiler (0.16.0)
3 #
4 # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 #
6 # options string: py
7 #
8 
9 from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
10 from thrift.protocol.TProtocol import TProtocolException
11 from thrift.TRecursive import fix_spec
12 
13 import sys
18 
19 from thrift.transport import TTransport
20 all_structs = []
21 
22 
23 class TExecuteMode(object):
24  GPU = 1
25  CPU = 2
26 
27  _VALUES_TO_NAMES = {
28  1: "GPU",
29  2: "CPU",
30  }
31 
32  _NAMES_TO_VALUES = {
33  "GPU": 1,
34  "CPU": 2,
35  }
36 
37 
38 class TSourceType(object):
39  DELIMITED_FILE = 0
40  GEO_FILE = 1
41  PARQUET_FILE = 2
42  RASTER_FILE = 3
43  ODBC = 4
44 
45  _VALUES_TO_NAMES = {
46  0: "DELIMITED_FILE",
47  1: "GEO_FILE",
48  2: "PARQUET_FILE",
49  3: "RASTER_FILE",
50  4: "ODBC",
51  }
52 
53  _NAMES_TO_VALUES = {
54  "DELIMITED_FILE": 0,
55  "GEO_FILE": 1,
56  "PARQUET_FILE": 2,
57  "RASTER_FILE": 3,
58  "ODBC": 4,
59  }
60 
61 
62 class TPartitionDetail(object):
63  DEFAULT = 0
64  REPLICATED = 1
65  SHARDED = 2
66  OTHER = 3
67 
68  _VALUES_TO_NAMES = {
69  0: "DEFAULT",
70  1: "REPLICATED",
71  2: "SHARDED",
72  3: "OTHER",
73  }
74 
75  _NAMES_TO_VALUES = {
76  "DEFAULT": 0,
77  "REPLICATED": 1,
78  "SHARDED": 2,
79  "OTHER": 3,
80  }
81 
82 
83 class TGeoFileLayerContents(object):
84  EMPTY = 0
85  GEO = 1
86  NON_GEO = 2
87  UNSUPPORTED_GEO = 3
88 
89  _VALUES_TO_NAMES = {
90  0: "EMPTY",
91  1: "GEO",
92  2: "NON_GEO",
93  3: "UNSUPPORTED_GEO",
94  }
95 
96  _NAMES_TO_VALUES = {
97  "EMPTY": 0,
98  "GEO": 1,
99  "NON_GEO": 2,
100  "UNSUPPORTED_GEO": 3,
101  }
102 
103 
104 class TImportHeaderRow(object):
105  AUTODETECT = 0
106  NO_HEADER = 1
107  HAS_HEADER = 2
108 
109  _VALUES_TO_NAMES = {
110  0: "AUTODETECT",
111  1: "NO_HEADER",
112  2: "HAS_HEADER",
113  }
114 
115  _NAMES_TO_VALUES = {
116  "AUTODETECT": 0,
117  "NO_HEADER": 1,
118  "HAS_HEADER": 2,
119  }
120 
121 
122 class TRole(object):
123  SERVER = 0
124  AGGREGATOR = 1
125  LEAF = 2
126  STRING_DICTIONARY = 3
127 
128  _VALUES_TO_NAMES = {
129  0: "SERVER",
130  1: "AGGREGATOR",
131  2: "LEAF",
132  3: "STRING_DICTIONARY",
133  }
134 
135  _NAMES_TO_VALUES = {
136  "SERVER": 0,
137  "AGGREGATOR": 1,
138  "LEAF": 2,
139  "STRING_DICTIONARY": 3,
140  }
141 
142 
143 class TTableType(object):
144  DEFAULT = 0
145  TEMPORARY = 1
146  FOREIGN = 2
147  VIEW = 3
148 
149  _VALUES_TO_NAMES = {
150  0: "DEFAULT",
151  1: "TEMPORARY",
152  2: "FOREIGN",
153  3: "VIEW",
154  }
155 
156  _NAMES_TO_VALUES = {
157  "DEFAULT": 0,
158  "TEMPORARY": 1,
159  "FOREIGN": 2,
160  "VIEW": 3,
161  }
162 
163 
165  ALL = 0
166  APPEND = 1
167 
168  _VALUES_TO_NAMES = {
169  0: "ALL",
170  1: "APPEND",
171  }
172 
173  _NAMES_TO_VALUES = {
174  "ALL": 0,
175  "APPEND": 1,
176  }
177 
178 
180  MANUAL = 0
181  SCHEDULED = 1
182 
183  _VALUES_TO_NAMES = {
184  0: "MANUAL",
185  1: "SCHEDULED",
186  }
187 
188  _NAMES_TO_VALUES = {
189  "MANUAL": 0,
190  "SCHEDULED": 1,
191  }
192 
193 
195  NONE = 0
196  HOUR = 1
197  DAY = 2
198 
199  _VALUES_TO_NAMES = {
200  0: "NONE",
201  1: "HOUR",
202  2: "DAY",
203  }
204 
205  _NAMES_TO_VALUES = {
206  "NONE": 0,
207  "HOUR": 1,
208  "DAY": 2,
209  }
210 
211 
212 class TMergeType(object):
213  UNION = 0
214  REDUCE = 1
215 
216  _VALUES_TO_NAMES = {
217  0: "UNION",
218  1: "REDUCE",
219  }
220 
221  _NAMES_TO_VALUES = {
222  "UNION": 0,
223  "REDUCE": 1,
224  }
225 
226 
227 class TRasterPointType(object):
228  NONE = 0
229  AUTO = 1
230  SMALLINT = 2
231  INT = 3
232  FLOAT = 4
233  DOUBLE = 5
234  POINT = 6
235 
236  _VALUES_TO_NAMES = {
237  0: "NONE",
238  1: "AUTO",
239  2: "SMALLINT",
240  3: "INT",
241  4: "FLOAT",
242  5: "DOUBLE",
243  6: "POINT",
244  }
245 
246  _NAMES_TO_VALUES = {
247  "NONE": 0,
248  "AUTO": 1,
249  "SMALLINT": 2,
250  "INT": 3,
251  "FLOAT": 4,
252  "DOUBLE": 5,
253  "POINT": 6,
254  }
255 
256 
257 class TRasterPointTransform(object):
258  NONE = 0
259  AUTO = 1
260  FILE = 2
261  WORLD = 3
262 
263  _VALUES_TO_NAMES = {
264  0: "NONE",
265  1: "AUTO",
266  2: "FILE",
267  3: "WORLD",
268  }
269 
270  _NAMES_TO_VALUES = {
271  "NONE": 0,
272  "AUTO": 1,
273  "FILE": 2,
274  "WORLD": 3,
275  }
276 
277 
278 class TQueryType(object):
279  UNKNOWN = 0
280  READ = 1
281  WRITE = 2
282  SCHEMA_READ = 3
283  SCHEMA_WRITE = 4
284 
285  _VALUES_TO_NAMES = {
286  0: "UNKNOWN",
287  1: "READ",
288  2: "WRITE",
289  3: "SCHEMA_READ",
290  4: "SCHEMA_WRITE",
291  }
292 
293  _NAMES_TO_VALUES = {
294  "UNKNOWN": 0,
295  "READ": 1,
296  "WRITE": 2,
297  "SCHEMA_READ": 3,
298  "SCHEMA_WRITE": 4,
299  }
300 
301 
302 class TArrowTransport(object):
303  SHARED_MEMORY = 0
304  WIRE = 1
305 
306  _VALUES_TO_NAMES = {
307  0: "SHARED_MEMORY",
308  1: "WIRE",
309  }
310 
311  _NAMES_TO_VALUES = {
312  "SHARED_MEMORY": 0,
313  "WIRE": 1,
314  }
315 
316 
317 class TExpressionRangeType(object):
318  INVALID = 0
319  INTEGER = 1
320  FLOAT = 2
321  DOUBLE = 3
322 
323  _VALUES_TO_NAMES = {
324  0: "INVALID",
325  1: "INTEGER",
326  2: "FLOAT",
327  3: "DOUBLE",
328  }
329 
330  _NAMES_TO_VALUES = {
331  "INVALID": 0,
332  "INTEGER": 1,
333  "FLOAT": 2,
334  "DOUBLE": 3,
335  }
336 
337 
338 class TDBObjectType(object):
339  AbstractDBObjectType = 0
340  DatabaseDBObjectType = 1
341  TableDBObjectType = 2
342  DashboardDBObjectType = 3
343  ViewDBObjectType = 4
344  ServerDBObjectType = 5
345 
346  _VALUES_TO_NAMES = {
347  0: "AbstractDBObjectType",
348  1: "DatabaseDBObjectType",
349  2: "TableDBObjectType",
350  3: "DashboardDBObjectType",
351  4: "ViewDBObjectType",
352  5: "ServerDBObjectType",
353  }
354 
355  _NAMES_TO_VALUES = {
356  "AbstractDBObjectType": 0,
357  "DatabaseDBObjectType": 1,
358  "TableDBObjectType": 2,
359  "DashboardDBObjectType": 3,
360  "ViewDBObjectType": 4,
361  "ServerDBObjectType": 5,
362  }
363 
364 
365 class TDataSourceType(object):
366  TABLE = 0
367 
368  _VALUES_TO_NAMES = {
369  0: "TABLE",
370  }
371 
372  _NAMES_TO_VALUES = {
373  "TABLE": 0,
374  }
375 
376 
377 class TDatumVal(object):
378  """
379  Attributes:
380  - int_val
381  - real_val
382  - str_val
383  - arr_val
384 
385  """
386 
387 
388  def __init__(self, int_val=None, real_val=None, str_val=None, arr_val=None,):
389  self.int_val = int_val
390  self.real_val = real_val
391  self.str_val = str_val
392  self.arr_val = arr_val
393 
394  def read(self, iprot):
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])
397  return
398  iprot.readStructBegin()
399  while True:
400  (fname, ftype, fid) = iprot.readFieldBegin()
401  if ftype == TType.STOP:
402  break
403  if fid == 1:
404  if ftype == TType.I64:
405  self.int_val = iprot.readI64()
406  else:
407  iprot.skip(ftype)
408  elif fid == 2:
409  if ftype == TType.DOUBLE:
410  self.real_val = iprot.readDouble()
411  else:
412  iprot.skip(ftype)
413  elif fid == 3:
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()
416  else:
417  iprot.skip(ftype)
418  elif fid == 4:
419  if ftype == TType.LIST:
420  self.arr_val = []
421  (_etype3, _size0) = iprot.readListBegin()
422  for _i4 in range(_size0):
423  _elem5 = TDatum()
424  _elem5.read(iprot)
425  self.arr_val.append(_elem5)
426  iprot.readListEnd()
427  else:
428  iprot.skip(ftype)
429  else:
430  iprot.skip(ftype)
431  iprot.readFieldEnd()
432  iprot.readStructEnd()
433 
434  def write(self, oprot):
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]))
437  return
438  oprot.writeStructBegin('TDatumVal')
439  if self.int_val is not None:
440  oprot.writeFieldBegin('int_val', TType.I64, 1)
441  oprot.writeI64(self.int_val)
442  oprot.writeFieldEnd()
443  if self.real_val is not None:
444  oprot.writeFieldBegin('real_val', TType.DOUBLE, 2)
445  oprot.writeDouble(self.real_val)
446  oprot.writeFieldEnd()
447  if self.str_val is not None:
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()
451  if self.arr_val is not None:
452  oprot.writeFieldBegin('arr_val', TType.LIST, 4)
453  oprot.writeListBegin(TType.STRUCT, len(self.arr_val))
454  for iter6 in self.arr_val:
455  iter6.write(oprot)
456  oprot.writeListEnd()
457  oprot.writeFieldEnd()
458  oprot.writeFieldStop()
459  oprot.writeStructEnd()
460 
461  def validate(self):
462  return
463 
464  def __repr__(self):
465  L = ['%s=%r' % (key, value)
466  for key, value in self.__dict__.items()]
467  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
468 
469  def __eq__(self, other):
470  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
471 
472  def __ne__(self, other):
473  return not (self == other)
474 
475 
476 class TDatum(object):
477  """
478  Attributes:
479  - val
480  - is_null
481 
482  """
483 
484 
485  def __init__(self, val=None, is_null=None,):
486  self.val = val
487  self.is_null = is_null
488 
489  def read(self, iprot):
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])
492  return
493  iprot.readStructBegin()
494  while True:
495  (fname, ftype, fid) = iprot.readFieldBegin()
496  if ftype == TType.STOP:
497  break
498  if fid == 1:
499  if ftype == TType.STRUCT:
500  self.val = TDatumVal()
501  self.val.read(iprot)
502  else:
503  iprot.skip(ftype)
504  elif fid == 2:
505  if ftype == TType.BOOL:
506  self.is_null = iprot.readBool()
507  else:
508  iprot.skip(ftype)
509  else:
510  iprot.skip(ftype)
511  iprot.readFieldEnd()
512  iprot.readStructEnd()
513 
514  def write(self, oprot):
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]))
517  return
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()
523  if self.is_null is not None:
524  oprot.writeFieldBegin('is_null', TType.BOOL, 2)
525  oprot.writeBool(self.is_null)
526  oprot.writeFieldEnd()
527  oprot.writeFieldStop()
528  oprot.writeStructEnd()
529 
530  def validate(self):
531  return
532 
533  def __repr__(self):
534  L = ['%s=%r' % (key, value)
535  for key, value in self.__dict__.items()]
536  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
537 
538  def __eq__(self, other):
539  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
540 
541  def __ne__(self, other):
542  return not (self == other)
543 
544 
545 class TStringValue(object):
546  """
547  Attributes:
548  - str_val
549  - is_null
550 
551  """
552 
553 
554  def __init__(self, str_val=None, is_null=None,):
555  self.str_val = str_val
556  self.is_null = is_null
557 
558  def read(self, iprot):
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])
561  return
562  iprot.readStructBegin()
563  while True:
564  (fname, ftype, fid) = iprot.readFieldBegin()
565  if ftype == TType.STOP:
566  break
567  if fid == 1:
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()
570  else:
571  iprot.skip(ftype)
572  elif fid == 2:
573  if ftype == TType.BOOL:
574  self.is_null = iprot.readBool()
575  else:
576  iprot.skip(ftype)
577  else:
578  iprot.skip(ftype)
579  iprot.readFieldEnd()
580  iprot.readStructEnd()
581 
582  def write(self, oprot):
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]))
585  return
586  oprot.writeStructBegin('TStringValue')
587  if self.str_val is not None:
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()
591  if self.is_null is not None:
592  oprot.writeFieldBegin('is_null', TType.BOOL, 2)
593  oprot.writeBool(self.is_null)
594  oprot.writeFieldEnd()
595  oprot.writeFieldStop()
596  oprot.writeStructEnd()
597 
598  def validate(self):
599  return
600 
601  def __repr__(self):
602  L = ['%s=%r' % (key, value)
603  for key, value in self.__dict__.items()]
604  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
605 
606  def __eq__(self, other):
607  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
608 
609  def __ne__(self, other):
610  return not (self == other)
611 
612 
613 class TColumnType(object):
614  """
615  Attributes:
616  - col_name
617  - col_type
618  - is_reserved_keyword
619  - src_name
620  - is_system
621  - is_physical
622  - col_id
623  - default_value
624 
625  """
626 
627 
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,):
629  self.col_name = col_name
630  self.col_type = col_type
631  self.is_reserved_keyword = is_reserved_keyword
632  self.src_name = src_name
633  self.is_system = is_system
634  self.is_physical = is_physical
635  self.col_id = col_id
636  self.default_value = default_value
637 
638  def read(self, iprot):
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])
641  return
642  iprot.readStructBegin()
643  while True:
644  (fname, ftype, fid) = iprot.readFieldBegin()
645  if ftype == TType.STOP:
646  break
647  if fid == 1:
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()
650  else:
651  iprot.skip(ftype)
652  elif fid == 2:
653  if ftype == TType.STRUCT:
655  self.col_type.read(iprot)
656  else:
657  iprot.skip(ftype)
658  elif fid == 3:
659  if ftype == TType.BOOL:
660  self.is_reserved_keyword = iprot.readBool()
661  else:
662  iprot.skip(ftype)
663  elif fid == 4:
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()
666  else:
667  iprot.skip(ftype)
668  elif fid == 5:
669  if ftype == TType.BOOL:
670  self.is_system = iprot.readBool()
671  else:
672  iprot.skip(ftype)
673  elif fid == 6:
674  if ftype == TType.BOOL:
675  self.is_physical = iprot.readBool()
676  else:
677  iprot.skip(ftype)
678  elif fid == 7:
679  if ftype == TType.I64:
680  self.col_id = iprot.readI64()
681  else:
682  iprot.skip(ftype)
683  elif fid == 8:
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()
686  else:
687  iprot.skip(ftype)
688  else:
689  iprot.skip(ftype)
690  iprot.readFieldEnd()
691  iprot.readStructEnd()
692 
693  def write(self, oprot):
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]))
696  return
697  oprot.writeStructBegin('TColumnType')
698  if self.col_name is not None:
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()
702  if self.col_type is not None:
703  oprot.writeFieldBegin('col_type', TType.STRUCT, 2)
704  self.col_type.write(oprot)
705  oprot.writeFieldEnd()
706  if self.is_reserved_keyword is not None:
707  oprot.writeFieldBegin('is_reserved_keyword', TType.BOOL, 3)
708  oprot.writeBool(self.is_reserved_keyword)
709  oprot.writeFieldEnd()
710  if self.src_name is not None:
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()
714  if self.is_system is not None:
715  oprot.writeFieldBegin('is_system', TType.BOOL, 5)
716  oprot.writeBool(self.is_system)
717  oprot.writeFieldEnd()
718  if self.is_physical is not None:
719  oprot.writeFieldBegin('is_physical', TType.BOOL, 6)
720  oprot.writeBool(self.is_physical)
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()
726  if self.default_value is not None:
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()
732 
733  def validate(self):
734  return
735 
736  def __repr__(self):
737  L = ['%s=%r' % (key, value)
738  for key, value in self.__dict__.items()]
739  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
740 
741  def __eq__(self, other):
742  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
743 
744  def __ne__(self, other):
745  return not (self == other)
746 
747 
748 class TRow(object):
749  """
750  Attributes:
751  - cols
752 
753  """
754 
755 
756  def __init__(self, cols=None,):
757  self.cols = cols
758 
759  def read(self, iprot):
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])
762  return
763  iprot.readStructBegin()
764  while True:
765  (fname, ftype, fid) = iprot.readFieldBegin()
766  if ftype == TType.STOP:
767  break
768  if fid == 1:
769  if ftype == TType.LIST:
770  self.cols = []
771  (_etype10, _size7) = iprot.readListBegin()
772  for _i11 in range(_size7):
773  _elem12 = TDatum()
774  _elem12.read(iprot)
775  self.cols.append(_elem12)
776  iprot.readListEnd()
777  else:
778  iprot.skip(ftype)
779  else:
780  iprot.skip(ftype)
781  iprot.readFieldEnd()
782  iprot.readStructEnd()
783 
784  def write(self, oprot):
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]))
787  return
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:
793  iter13.write(oprot)
794  oprot.writeListEnd()
795  oprot.writeFieldEnd()
796  oprot.writeFieldStop()
797  oprot.writeStructEnd()
798 
799  def validate(self):
800  return
801 
802  def __repr__(self):
803  L = ['%s=%r' % (key, value)
804  for key, value in self.__dict__.items()]
805  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
806 
807  def __eq__(self, other):
808  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
809 
810  def __ne__(self, other):
811  return not (self == other)
812 
813 
814 class TColumnData(object):
815  """
816  Attributes:
817  - int_col
818  - real_col
819  - str_col
820  - arr_col
821 
822  """
823 
824 
825  def __init__(self, int_col=None, real_col=None, str_col=None, arr_col=None,):
826  self.int_col = int_col
827  self.real_col = real_col
828  self.str_col = str_col
829  self.arr_col = arr_col
830 
831  def read(self, iprot):
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])
834  return
835  iprot.readStructBegin()
836  while True:
837  (fname, ftype, fid) = iprot.readFieldBegin()
838  if ftype == TType.STOP:
839  break
840  if fid == 1:
841  if ftype == TType.LIST:
842  self.int_col = []
843  (_etype17, _size14) = iprot.readListBegin()
844  for _i18 in range(_size14):
845  _elem19 = iprot.readI64()
846  self.int_col.append(_elem19)
847  iprot.readListEnd()
848  else:
849  iprot.skip(ftype)
850  elif fid == 2:
851  if ftype == TType.LIST:
852  self.real_col = []
853  (_etype23, _size20) = iprot.readListBegin()
854  for _i24 in range(_size20):
855  _elem25 = iprot.readDouble()
856  self.real_col.append(_elem25)
857  iprot.readListEnd()
858  else:
859  iprot.skip(ftype)
860  elif fid == 3:
861  if ftype == TType.LIST:
862  self.str_col = []
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)
867  iprot.readListEnd()
868  else:
869  iprot.skip(ftype)
870  elif fid == 4:
871  if ftype == TType.LIST:
872  self.arr_col = []
873  (_etype35, _size32) = iprot.readListBegin()
874  for _i36 in range(_size32):
875  _elem37 = TColumn()
876  _elem37.read(iprot)
877  self.arr_col.append(_elem37)
878  iprot.readListEnd()
879  else:
880  iprot.skip(ftype)
881  else:
882  iprot.skip(ftype)
883  iprot.readFieldEnd()
884  iprot.readStructEnd()
885 
886  def write(self, oprot):
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]))
889  return
890  oprot.writeStructBegin('TColumnData')
891  if self.int_col is not None:
892  oprot.writeFieldBegin('int_col', TType.LIST, 1)
893  oprot.writeListBegin(TType.I64, len(self.int_col))
894  for iter38 in self.int_col:
895  oprot.writeI64(iter38)
896  oprot.writeListEnd()
897  oprot.writeFieldEnd()
898  if self.real_col is not None:
899  oprot.writeFieldBegin('real_col', TType.LIST, 2)
900  oprot.writeListBegin(TType.DOUBLE, len(self.real_col))
901  for iter39 in self.real_col:
902  oprot.writeDouble(iter39)
903  oprot.writeListEnd()
904  oprot.writeFieldEnd()
905  if self.str_col is not None:
906  oprot.writeFieldBegin('str_col', TType.LIST, 3)
907  oprot.writeListBegin(TType.STRING, len(self.str_col))
908  for iter40 in self.str_col:
909  oprot.writeString(iter40.encode('utf-8') if sys.version_info[0] == 2 else iter40)
910  oprot.writeListEnd()
911  oprot.writeFieldEnd()
912  if self.arr_col is not None:
913  oprot.writeFieldBegin('arr_col', TType.LIST, 4)
914  oprot.writeListBegin(TType.STRUCT, len(self.arr_col))
915  for iter41 in self.arr_col:
916  iter41.write(oprot)
917  oprot.writeListEnd()
918  oprot.writeFieldEnd()
919  oprot.writeFieldStop()
920  oprot.writeStructEnd()
921 
922  def validate(self):
923  return
924 
925  def __repr__(self):
926  L = ['%s=%r' % (key, value)
927  for key, value in self.__dict__.items()]
928  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
929 
930  def __eq__(self, other):
931  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
932 
933  def __ne__(self, other):
934  return not (self == other)
935 
936 
937 class TColumn(object):
938  """
939  Attributes:
940  - data
941  - nulls
942 
943  """
944 
945 
946  def __init__(self, data=None, nulls=None,):
947  self.data = data
948  self.nulls = nulls
949 
950  def read(self, iprot):
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])
953  return
954  iprot.readStructBegin()
955  while True:
956  (fname, ftype, fid) = iprot.readFieldBegin()
957  if ftype == TType.STOP:
958  break
959  if fid == 1:
960  if ftype == TType.STRUCT:
961  self.data = TColumnData()
962  self.data.read(iprot)
963  else:
964  iprot.skip(ftype)
965  elif fid == 2:
966  if ftype == TType.LIST:
967  self.nulls = []
968  (_etype45, _size42) = iprot.readListBegin()
969  for _i46 in range(_size42):
970  _elem47 = iprot.readBool()
971  self.nulls.append(_elem47)
972  iprot.readListEnd()
973  else:
974  iprot.skip(ftype)
975  else:
976  iprot.skip(ftype)
977  iprot.readFieldEnd()
978  iprot.readStructEnd()
979 
980  def write(self, oprot):
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]))
983  return
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)
994  oprot.writeListEnd()
995  oprot.writeFieldEnd()
996  oprot.writeFieldStop()
997  oprot.writeStructEnd()
998 
999  def validate(self):
1000  return
1001 
1002  def __repr__(self):
1003  L = ['%s=%r' % (key, value)
1004  for key, value in self.__dict__.items()]
1005  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1006 
1007  def __eq__(self, other):
1008  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1009 
1010  def __ne__(self, other):
1011  return not (self == other)
1012 
1013 
1014 class TStringRow(object):
1015  """
1016  Attributes:
1017  - cols
1018 
1019  """
1020 
1021 
1022  def __init__(self, cols=None,):
1023  self.cols = cols
1024 
1025  def read(self, iprot):
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])
1028  return
1029  iprot.readStructBegin()
1030  while True:
1031  (fname, ftype, fid) = iprot.readFieldBegin()
1032  if ftype == TType.STOP:
1033  break
1034  if fid == 1:
1035  if ftype == TType.LIST:
1036  self.cols = []
1037  (_etype52, _size49) = iprot.readListBegin()
1038  for _i53 in range(_size49):
1039  _elem54 = TStringValue()
1040  _elem54.read(iprot)
1041  self.cols.append(_elem54)
1042  iprot.readListEnd()
1043  else:
1044  iprot.skip(ftype)
1045  else:
1046  iprot.skip(ftype)
1047  iprot.readFieldEnd()
1048  iprot.readStructEnd()
1049 
1050  def write(self, oprot):
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]))
1053  return
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:
1059  iter55.write(oprot)
1060  oprot.writeListEnd()
1061  oprot.writeFieldEnd()
1062  oprot.writeFieldStop()
1063  oprot.writeStructEnd()
1064 
1065  def validate(self):
1066  return
1067 
1068  def __repr__(self):
1069  L = ['%s=%r' % (key, value)
1070  for key, value in self.__dict__.items()]
1071  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1072 
1073  def __eq__(self, other):
1074  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1075 
1076  def __ne__(self, other):
1077  return not (self == other)
1078 
1079 
1080 class TKrb5Session(object):
1081  """
1082  Attributes:
1083  - sessionId
1084  - krbToken
1085 
1086  """
1087 
1088 
1089  def __init__(self, sessionId=None, krbToken=None,):
1090  self.sessionId = sessionId
1091  self.krbToken = krbToken
1092 
1093  def read(self, iprot):
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])
1096  return
1097  iprot.readStructBegin()
1098  while True:
1099  (fname, ftype, fid) = iprot.readFieldBegin()
1100  if ftype == TType.STOP:
1101  break
1102  if fid == 1:
1103  if ftype == TType.STRING:
1104  self.sessionId = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1105  else:
1106  iprot.skip(ftype)
1107  elif fid == 2:
1108  if ftype == TType.STRING:
1109  self.krbToken = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1110  else:
1111  iprot.skip(ftype)
1112  else:
1113  iprot.skip(ftype)
1114  iprot.readFieldEnd()
1115  iprot.readStructEnd()
1116 
1117  def write(self, oprot):
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]))
1120  return
1121  oprot.writeStructBegin('TKrb5Session')
1122  if self.sessionId is not None:
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()
1126  if self.krbToken is not None:
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()
1132 
1133  def validate(self):
1134  return
1135 
1136  def __repr__(self):
1137  L = ['%s=%r' % (key, value)
1138  for key, value in self.__dict__.items()]
1139  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1140 
1141  def __eq__(self, other):
1142  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1143 
1144  def __ne__(self, other):
1145  return not (self == other)
1146 
1147 
1148 class TStepResult(object):
1149  """
1150  Attributes:
1151  - serialized_rows
1152  - execution_finished
1153  - merge_type
1154  - sharded
1155  - row_desc
1156  - node_id
1157 
1158  """
1159 
1160 
1161  def __init__(self, serialized_rows=None, execution_finished=None, merge_type=None, sharded=None, row_desc=None, node_id=None,):
1162  self.serialized_rows = serialized_rows
1163  self.execution_finished = execution_finished
1164  self.merge_type = merge_type
1165  self.sharded = sharded
1166  self.row_desc = row_desc
1167  self.node_id = node_id
1168 
1169  def read(self, iprot):
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])
1172  return
1173  iprot.readStructBegin()
1174  while True:
1175  (fname, ftype, fid) = iprot.readFieldBegin()
1176  if ftype == TType.STOP:
1177  break
1178  if fid == 1:
1179  if ftype == TType.STRUCT:
1181  self.serialized_rows.read(iprot)
1182  else:
1183  iprot.skip(ftype)
1184  elif fid == 2:
1185  if ftype == TType.BOOL:
1186  self.execution_finished = iprot.readBool()
1187  else:
1188  iprot.skip(ftype)
1189  elif fid == 3:
1190  if ftype == TType.I32:
1191  self.merge_type = iprot.readI32()
1192  else:
1193  iprot.skip(ftype)
1194  elif fid == 4:
1195  if ftype == TType.BOOL:
1196  self.sharded = iprot.readBool()
1197  else:
1198  iprot.skip(ftype)
1199  elif fid == 5:
1200  if ftype == TType.LIST:
1201  self.row_desc = []
1202  (_etype59, _size56) = iprot.readListBegin()
1203  for _i60 in range(_size56):
1204  _elem61 = TColumnType()
1205  _elem61.read(iprot)
1206  self.row_desc.append(_elem61)
1207  iprot.readListEnd()
1208  else:
1209  iprot.skip(ftype)
1210  elif fid == 6:
1211  if ftype == TType.I32:
1212  self.node_id = iprot.readI32()
1213  else:
1214  iprot.skip(ftype)
1215  else:
1216  iprot.skip(ftype)
1217  iprot.readFieldEnd()
1218  iprot.readStructEnd()
1219 
1220  def write(self, oprot):
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]))
1223  return
1224  oprot.writeStructBegin('TStepResult')
1225  if self.serialized_rows is not None:
1226  oprot.writeFieldBegin('serialized_rows', TType.STRUCT, 1)
1227  self.serialized_rows.write(oprot)
1228  oprot.writeFieldEnd()
1229  if self.execution_finished is not None:
1230  oprot.writeFieldBegin('execution_finished', TType.BOOL, 2)
1231  oprot.writeBool(self.execution_finished)
1232  oprot.writeFieldEnd()
1233  if self.merge_type is not None:
1234  oprot.writeFieldBegin('merge_type', TType.I32, 3)
1235  oprot.writeI32(self.merge_type)
1236  oprot.writeFieldEnd()
1237  if self.sharded is not None:
1238  oprot.writeFieldBegin('sharded', TType.BOOL, 4)
1239  oprot.writeBool(self.sharded)
1240  oprot.writeFieldEnd()
1241  if self.row_desc is not None:
1242  oprot.writeFieldBegin('row_desc', TType.LIST, 5)
1243  oprot.writeListBegin(TType.STRUCT, len(self.row_desc))
1244  for iter62 in self.row_desc:
1245  iter62.write(oprot)
1246  oprot.writeListEnd()
1247  oprot.writeFieldEnd()
1248  if self.node_id is not None:
1249  oprot.writeFieldBegin('node_id', TType.I32, 6)
1250  oprot.writeI32(self.node_id)
1251  oprot.writeFieldEnd()
1252  oprot.writeFieldStop()
1253  oprot.writeStructEnd()
1254 
1255  def validate(self):
1256  return
1257 
1258  def __repr__(self):
1259  L = ['%s=%r' % (key, value)
1260  for key, value in self.__dict__.items()]
1261  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1262 
1263  def __eq__(self, other):
1264  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1265 
1266  def __ne__(self, other):
1267  return not (self == other)
1268 
1269 
1270 class TRowSet(object):
1271  """
1272  Attributes:
1273  - row_desc
1274  - rows
1275  - columns
1276  - is_columnar
1277 
1278  """
1279 
1280 
1281  def __init__(self, row_desc=None, rows=None, columns=None, is_columnar=None,):
1282  self.row_desc = row_desc
1283  self.rows = rows
1284  self.columns = columns
1285  self.is_columnar = is_columnar
1286 
1287  def read(self, iprot):
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])
1290  return
1291  iprot.readStructBegin()
1292  while True:
1293  (fname, ftype, fid) = iprot.readFieldBegin()
1294  if ftype == TType.STOP:
1295  break
1296  if fid == 1:
1297  if ftype == TType.LIST:
1298  self.row_desc = []
1299  (_etype66, _size63) = iprot.readListBegin()
1300  for _i67 in range(_size63):
1301  _elem68 = TColumnType()
1302  _elem68.read(iprot)
1303  self.row_desc.append(_elem68)
1304  iprot.readListEnd()
1305  else:
1306  iprot.skip(ftype)
1307  elif fid == 2:
1308  if ftype == TType.LIST:
1309  self.rows = []
1310  (_etype72, _size69) = iprot.readListBegin()
1311  for _i73 in range(_size69):
1312  _elem74 = TRow()
1313  _elem74.read(iprot)
1314  self.rows.append(_elem74)
1315  iprot.readListEnd()
1316  else:
1317  iprot.skip(ftype)
1318  elif fid == 3:
1319  if ftype == TType.LIST:
1320  self.columns = []
1321  (_etype78, _size75) = iprot.readListBegin()
1322  for _i79 in range(_size75):
1323  _elem80 = TColumn()
1324  _elem80.read(iprot)
1325  self.columns.append(_elem80)
1326  iprot.readListEnd()
1327  else:
1328  iprot.skip(ftype)
1329  elif fid == 4:
1330  if ftype == TType.BOOL:
1331  self.is_columnar = iprot.readBool()
1332  else:
1333  iprot.skip(ftype)
1334  else:
1335  iprot.skip(ftype)
1336  iprot.readFieldEnd()
1337  iprot.readStructEnd()
1338 
1339  def write(self, oprot):
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]))
1342  return
1343  oprot.writeStructBegin('TRowSet')
1344  if self.row_desc is not None:
1345  oprot.writeFieldBegin('row_desc', TType.LIST, 1)
1346  oprot.writeListBegin(TType.STRUCT, len(self.row_desc))
1347  for iter81 in self.row_desc:
1348  iter81.write(oprot)
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:
1355  iter82.write(oprot)
1356  oprot.writeListEnd()
1357  oprot.writeFieldEnd()
1358  if self.columns is not None:
1359  oprot.writeFieldBegin('columns', TType.LIST, 3)
1360  oprot.writeListBegin(TType.STRUCT, len(self.columns))
1361  for iter83 in self.columns:
1362  iter83.write(oprot)
1363  oprot.writeListEnd()
1364  oprot.writeFieldEnd()
1365  if self.is_columnar is not None:
1366  oprot.writeFieldBegin('is_columnar', TType.BOOL, 4)
1367  oprot.writeBool(self.is_columnar)
1368  oprot.writeFieldEnd()
1369  oprot.writeFieldStop()
1370  oprot.writeStructEnd()
1371 
1372  def validate(self):
1373  return
1374 
1375  def __repr__(self):
1376  L = ['%s=%r' % (key, value)
1377  for key, value in self.__dict__.items()]
1378  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1379 
1380  def __eq__(self, other):
1381  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1382 
1383  def __ne__(self, other):
1384  return not (self == other)
1385 
1386 
1387 class TQueryResult(object):
1388  """
1389  Attributes:
1390  - row_set
1391  - execution_time_ms
1392  - total_time_ms
1393  - nonce
1394  - debug
1395  - success
1396  - query_type
1397 
1398  """
1399 
1400 
1401  def __init__(self, row_set=None, execution_time_ms=None, total_time_ms=None, nonce=None, debug=None, success=True, query_type=0,):
1402  self.row_set = row_set
1403  self.execution_time_ms = execution_time_ms
1404  self.total_time_ms = total_time_ms
1405  self.nonce = nonce
1406  self.debug = debug
1407  self.success = success
1408  self.query_type = query_type
1409 
1410  def read(self, iprot):
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])
1413  return
1414  iprot.readStructBegin()
1415  while True:
1416  (fname, ftype, fid) = iprot.readFieldBegin()
1417  if ftype == TType.STOP:
1418  break
1419  if fid == 1:
1420  if ftype == TType.STRUCT:
1421  self.row_set = TRowSet()
1422  self.row_set.read(iprot)
1423  else:
1424  iprot.skip(ftype)
1425  elif fid == 2:
1426  if ftype == TType.I64:
1427  self.execution_time_ms = iprot.readI64()
1428  else:
1429  iprot.skip(ftype)
1430  elif fid == 3:
1431  if ftype == TType.I64:
1432  self.total_time_ms = iprot.readI64()
1433  else:
1434  iprot.skip(ftype)
1435  elif fid == 4:
1436  if ftype == TType.STRING:
1437  self.nonce = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1438  else:
1439  iprot.skip(ftype)
1440  elif fid == 5:
1441  if ftype == TType.STRING:
1442  self.debug = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1443  else:
1444  iprot.skip(ftype)
1445  elif fid == 6:
1446  if ftype == TType.BOOL:
1447  self.success = iprot.readBool()
1448  else:
1449  iprot.skip(ftype)
1450  elif fid == 7:
1451  if ftype == TType.I32:
1452  self.query_type = iprot.readI32()
1453  else:
1454  iprot.skip(ftype)
1455  else:
1456  iprot.skip(ftype)
1457  iprot.readFieldEnd()
1458  iprot.readStructEnd()
1459 
1460  def write(self, oprot):
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]))
1463  return
1464  oprot.writeStructBegin('TQueryResult')
1465  if self.row_set is not None:
1466  oprot.writeFieldBegin('row_set', TType.STRUCT, 1)
1467  self.row_set.write(oprot)
1468  oprot.writeFieldEnd()
1469  if self.execution_time_ms is not None:
1470  oprot.writeFieldBegin('execution_time_ms', TType.I64, 2)
1471  oprot.writeI64(self.execution_time_ms)
1472  oprot.writeFieldEnd()
1473  if self.total_time_ms is not None:
1474  oprot.writeFieldBegin('total_time_ms', TType.I64, 3)
1475  oprot.writeI64(self.total_time_ms)
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()
1485  if self.success is not None:
1486  oprot.writeFieldBegin('success', TType.BOOL, 6)
1487  oprot.writeBool(self.success)
1488  oprot.writeFieldEnd()
1489  if self.query_type is not None:
1490  oprot.writeFieldBegin('query_type', TType.I32, 7)
1491  oprot.writeI32(self.query_type)
1492  oprot.writeFieldEnd()
1493  oprot.writeFieldStop()
1494  oprot.writeStructEnd()
1495 
1496  def validate(self):
1497  return
1498 
1499  def __repr__(self):
1500  L = ['%s=%r' % (key, value)
1501  for key, value in self.__dict__.items()]
1502  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1503 
1504  def __eq__(self, other):
1505  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1506 
1507  def __ne__(self, other):
1508  return not (self == other)
1509 
1510 
1511 class TDataFrame(object):
1512  """
1513  Attributes:
1514  - sm_handle
1515  - sm_size
1516  - df_handle
1517  - df_size
1518  - execution_time_ms
1519  - arrow_conversion_time_ms
1520  - df_buffer
1521 
1522  """
1523 
1524 
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,):
1526  self.sm_handle = sm_handle
1527  self.sm_size = sm_size
1528  self.df_handle = df_handle
1529  self.df_size = df_size
1530  self.execution_time_ms = execution_time_ms
1531  self.arrow_conversion_time_ms = arrow_conversion_time_ms
1532  self.df_buffer = df_buffer
1533 
1534  def read(self, iprot):
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])
1537  return
1538  iprot.readStructBegin()
1539  while True:
1540  (fname, ftype, fid) = iprot.readFieldBegin()
1541  if ftype == TType.STOP:
1542  break
1543  if fid == 1:
1544  if ftype == TType.STRING:
1545  self.sm_handle = iprot.readBinary()
1546  else:
1547  iprot.skip(ftype)
1548  elif fid == 2:
1549  if ftype == TType.I64:
1550  self.sm_size = iprot.readI64()
1551  else:
1552  iprot.skip(ftype)
1553  elif fid == 3:
1554  if ftype == TType.STRING:
1555  self.df_handle = iprot.readBinary()
1556  else:
1557  iprot.skip(ftype)
1558  elif fid == 4:
1559  if ftype == TType.I64:
1560  self.df_size = iprot.readI64()
1561  else:
1562  iprot.skip(ftype)
1563  elif fid == 5:
1564  if ftype == TType.I64:
1565  self.execution_time_ms = iprot.readI64()
1566  else:
1567  iprot.skip(ftype)
1568  elif fid == 6:
1569  if ftype == TType.I64:
1570  self.arrow_conversion_time_ms = iprot.readI64()
1571  else:
1572  iprot.skip(ftype)
1573  elif fid == 7:
1574  if ftype == TType.STRING:
1575  self.df_buffer = iprot.readBinary()
1576  else:
1577  iprot.skip(ftype)
1578  else:
1579  iprot.skip(ftype)
1580  iprot.readFieldEnd()
1581  iprot.readStructEnd()
1582 
1583  def write(self, oprot):
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]))
1586  return
1587  oprot.writeStructBegin('TDataFrame')
1588  if self.sm_handle is not None:
1589  oprot.writeFieldBegin('sm_handle', TType.STRING, 1)
1590  oprot.writeBinary(self.sm_handle)
1591  oprot.writeFieldEnd()
1592  if self.sm_size is not None:
1593  oprot.writeFieldBegin('sm_size', TType.I64, 2)
1594  oprot.writeI64(self.sm_size)
1595  oprot.writeFieldEnd()
1596  if self.df_handle is not None:
1597  oprot.writeFieldBegin('df_handle', TType.STRING, 3)
1598  oprot.writeBinary(self.df_handle)
1599  oprot.writeFieldEnd()
1600  if self.df_size is not None:
1601  oprot.writeFieldBegin('df_size', TType.I64, 4)
1602  oprot.writeI64(self.df_size)
1603  oprot.writeFieldEnd()
1604  if self.execution_time_ms is not None:
1605  oprot.writeFieldBegin('execution_time_ms', TType.I64, 5)
1606  oprot.writeI64(self.execution_time_ms)
1607  oprot.writeFieldEnd()
1608  if self.arrow_conversion_time_ms is not None:
1609  oprot.writeFieldBegin('arrow_conversion_time_ms', TType.I64, 6)
1610  oprot.writeI64(self.arrow_conversion_time_ms)
1611  oprot.writeFieldEnd()
1612  if self.df_buffer is not None:
1613  oprot.writeFieldBegin('df_buffer', TType.STRING, 7)
1614  oprot.writeBinary(self.df_buffer)
1615  oprot.writeFieldEnd()
1616  oprot.writeFieldStop()
1617  oprot.writeStructEnd()
1618 
1619  def validate(self):
1620  return
1621 
1622  def __repr__(self):
1623  L = ['%s=%r' % (key, value)
1624  for key, value in self.__dict__.items()]
1625  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1626 
1627  def __eq__(self, other):
1628  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1629 
1630  def __ne__(self, other):
1631  return not (self == other)
1632 
1633 
1634 class TDBInfo(object):
1635  """
1636  Attributes:
1637  - db_name
1638  - db_owner
1639 
1640  """
1641 
1642 
1643  def __init__(self, db_name=None, db_owner=None,):
1644  self.db_name = db_name
1645  self.db_owner = db_owner
1646 
1647  def read(self, iprot):
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])
1650  return
1651  iprot.readStructBegin()
1652  while True:
1653  (fname, ftype, fid) = iprot.readFieldBegin()
1654  if ftype == TType.STOP:
1655  break
1656  if fid == 1:
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()
1659  else:
1660  iprot.skip(ftype)
1661  elif fid == 2:
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()
1664  else:
1665  iprot.skip(ftype)
1666  else:
1667  iprot.skip(ftype)
1668  iprot.readFieldEnd()
1669  iprot.readStructEnd()
1670 
1671  def write(self, oprot):
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]))
1674  return
1675  oprot.writeStructBegin('TDBInfo')
1676  if self.db_name is not None:
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()
1680  if self.db_owner is not None:
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()
1686 
1687  def validate(self):
1688  return
1689 
1690  def __repr__(self):
1691  L = ['%s=%r' % (key, value)
1692  for key, value in self.__dict__.items()]
1693  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1694 
1695  def __eq__(self, other):
1696  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1697 
1698  def __ne__(self, other):
1699  return not (self == other)
1700 
1701 
1702 class TDBException(TException):
1703  """
1704  Attributes:
1705  - error_msg
1706 
1707  """
1708 
1709 
1710  def __init__(self, error_msg=None,):
1711  super(TDBException, self).__setattr__('error_msg', error_msg)
1712 
1713  def __setattr__(self, *args):
1714  raise TypeError("can't modify immutable instance")
1715 
1716  def __delattr__(self, *args):
1717  raise TypeError("can't modify immutable instance")
1718 
1719  def __hash__(self):
1720  return hash(self.__class__) ^ hash((self.error_msg, ))
1721 
1722  @classmethod
1723  def read(cls, iprot):
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()
1727  error_msg = None
1728  while True:
1729  (fname, ftype, fid) = iprot.readFieldBegin()
1730  if ftype == TType.STOP:
1731  break
1732  if fid == 1:
1733  if ftype == TType.STRING:
1734  error_msg = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1735  else:
1736  iprot.skip(ftype)
1737  else:
1738  iprot.skip(ftype)
1739  iprot.readFieldEnd()
1740  iprot.readStructEnd()
1741  return cls(
1742  error_msg=error_msg,
1743  )
1744 
1745  def write(self, oprot):
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]))
1748  return
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()
1756 
1757  def validate(self):
1758  return
1759 
1760  def __str__(self):
1761  return repr(self)
1762 
1763  def __repr__(self):
1764  L = ['%s=%r' % (key, value)
1765  for key, value in self.__dict__.items()]
1766  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1767 
1768  def __eq__(self, other):
1769  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1770 
1771  def __ne__(self, other):
1772  return not (self == other)
1773 
1774 
1775 class TCopyParams(object):
1776  """
1777  Attributes:
1778  - delimiter
1779  - null_str
1780  - has_header
1781  - quoted
1782  - quote
1783  - escape
1784  - line_delim
1785  - array_delim
1786  - array_begin
1787  - array_end
1788  - threads
1789  - source_type
1790  - s3_access_key
1791  - s3_secret_key
1792  - s3_region
1793  - geo_coords_encoding
1794  - geo_coords_comp_param
1795  - geo_coords_type
1796  - geo_coords_srid
1797  - sanitize_column_names
1798  - geo_layer_name
1799  - s3_endpoint
1800  - geo_assign_render_groups
1801  - geo_explode_collections
1802  - source_srid
1803  - s3_session_token
1804  - raster_point_type
1805  - raster_import_bands
1806  - raster_scanlines_per_thread
1807  - raster_point_transform
1808  - raster_point_compute_angle
1809  - raster_import_dimensions
1810  - odbc_dsn
1811  - odbc_connection_string
1812  - odbc_sql_select
1813  - odbc_sql_order_by
1814  - odbc_username
1815  - odbc_password
1816  - odbc_credential_string
1817  - add_metadata_columns
1818  - trim_spaces
1819  - geo_validate_geometry
1820 
1821  """
1822 
1823 
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,):
1825  self.delimiter = delimiter
1826  self.null_str = null_str
1827  self.has_header = has_header
1828  self.quoted = quoted
1829  self.quote = quote
1830  self.escape = escape
1831  self.line_delim = line_delim
1832  self.array_delim = array_delim
1833  self.array_begin = array_begin
1834  self.array_end = array_end
1835  self.threads = threads
1836  self.source_type = source_type
1837  self.s3_access_key = s3_access_key
1838  self.s3_secret_key = s3_secret_key
1839  self.s3_region = s3_region
1840  self.geo_coords_encoding = geo_coords_encoding
1841  self.geo_coords_comp_param = geo_coords_comp_param
1842  self.geo_coords_type = geo_coords_type
1843  self.geo_coords_srid = geo_coords_srid
1844  self.sanitize_column_names = sanitize_column_names
1845  self.geo_layer_name = geo_layer_name
1846  self.s3_endpoint = s3_endpoint
1847  self.geo_assign_render_groups = geo_assign_render_groups
1848  self.geo_explode_collections = geo_explode_collections
1849  self.source_srid = source_srid
1850  self.s3_session_token = s3_session_token
1851  self.raster_point_type = raster_point_type
1852  self.raster_import_bands = raster_import_bands
1853  self.raster_scanlines_per_thread = raster_scanlines_per_thread
1854  self.raster_point_transform = raster_point_transform
1855  self.raster_point_compute_angle = raster_point_compute_angle
1856  self.raster_import_dimensions = raster_import_dimensions
1857  self.odbc_dsn = odbc_dsn
1858  self.odbc_connection_string = odbc_connection_string
1859  self.odbc_sql_select = odbc_sql_select
1860  self.odbc_sql_order_by = odbc_sql_order_by
1861  self.odbc_username = odbc_username
1862  self.odbc_password = odbc_password
1863  self.odbc_credential_string = odbc_credential_string
1864  self.add_metadata_columns = add_metadata_columns
1865  self.trim_spaces = trim_spaces
1866  self.geo_validate_geometry = geo_validate_geometry
1867 
1868  def read(self, iprot):
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])
1871  return
1872  iprot.readStructBegin()
1873  while True:
1874  (fname, ftype, fid) = iprot.readFieldBegin()
1875  if ftype == TType.STOP:
1876  break
1877  if fid == 1:
1878  if ftype == TType.STRING:
1879  self.delimiter = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1880  else:
1881  iprot.skip(ftype)
1882  elif fid == 2:
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()
1885  else:
1886  iprot.skip(ftype)
1887  elif fid == 3:
1888  if ftype == TType.I32:
1889  self.has_header = iprot.readI32()
1890  else:
1891  iprot.skip(ftype)
1892  elif fid == 4:
1893  if ftype == TType.BOOL:
1894  self.quoted = iprot.readBool()
1895  else:
1896  iprot.skip(ftype)
1897  elif fid == 5:
1898  if ftype == TType.STRING:
1899  self.quote = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1900  else:
1901  iprot.skip(ftype)
1902  elif fid == 6:
1903  if ftype == TType.STRING:
1904  self.escape = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1905  else:
1906  iprot.skip(ftype)
1907  elif fid == 7:
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()
1910  else:
1911  iprot.skip(ftype)
1912  elif fid == 8:
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()
1915  else:
1916  iprot.skip(ftype)
1917  elif fid == 9:
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()
1920  else:
1921  iprot.skip(ftype)
1922  elif fid == 10:
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()
1925  else:
1926  iprot.skip(ftype)
1927  elif fid == 11:
1928  if ftype == TType.I32:
1929  self.threads = iprot.readI32()
1930  else:
1931  iprot.skip(ftype)
1932  elif fid == 12:
1933  if ftype == TType.I32:
1934  self.source_type = iprot.readI32()
1935  else:
1936  iprot.skip(ftype)
1937  elif fid == 13:
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()
1940  else:
1941  iprot.skip(ftype)
1942  elif fid == 14:
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()
1945  else:
1946  iprot.skip(ftype)
1947  elif fid == 15:
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()
1950  else:
1951  iprot.skip(ftype)
1952  elif fid == 16:
1953  if ftype == TType.I32:
1954  self.geo_coords_encoding = iprot.readI32()
1955  else:
1956  iprot.skip(ftype)
1957  elif fid == 17:
1958  if ftype == TType.I32:
1959  self.geo_coords_comp_param = iprot.readI32()
1960  else:
1961  iprot.skip(ftype)
1962  elif fid == 18:
1963  if ftype == TType.I32:
1964  self.geo_coords_type = iprot.readI32()
1965  else:
1966  iprot.skip(ftype)
1967  elif fid == 19:
1968  if ftype == TType.I32:
1969  self.geo_coords_srid = iprot.readI32()
1970  else:
1971  iprot.skip(ftype)
1972  elif fid == 20:
1973  if ftype == TType.BOOL:
1974  self.sanitize_column_names = iprot.readBool()
1975  else:
1976  iprot.skip(ftype)
1977  elif fid == 21:
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()
1980  else:
1981  iprot.skip(ftype)
1982  elif fid == 22:
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()
1985  else:
1986  iprot.skip(ftype)
1987  elif fid == 23:
1988  if ftype == TType.BOOL:
1989  self.geo_assign_render_groups = iprot.readBool()
1990  else:
1991  iprot.skip(ftype)
1992  elif fid == 24:
1993  if ftype == TType.BOOL:
1994  self.geo_explode_collections = iprot.readBool()
1995  else:
1996  iprot.skip(ftype)
1997  elif fid == 25:
1998  if ftype == TType.I32:
1999  self.source_srid = iprot.readI32()
2000  else:
2001  iprot.skip(ftype)
2002  elif fid == 26:
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()
2005  else:
2006  iprot.skip(ftype)
2007  elif fid == 27:
2008  if ftype == TType.I32:
2009  self.raster_point_type = iprot.readI32()
2010  else:
2011  iprot.skip(ftype)
2012  elif fid == 28:
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()
2015  else:
2016  iprot.skip(ftype)
2017  elif fid == 29:
2018  if ftype == TType.I32:
2019  self.raster_scanlines_per_thread = iprot.readI32()
2020  else:
2021  iprot.skip(ftype)
2022  elif fid == 30:
2023  if ftype == TType.I32:
2024  self.raster_point_transform = iprot.readI32()
2025  else:
2026  iprot.skip(ftype)
2027  elif fid == 31:
2028  if ftype == TType.BOOL:
2029  self.raster_point_compute_angle = iprot.readBool()
2030  else:
2031  iprot.skip(ftype)
2032  elif fid == 32:
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()
2035  else:
2036  iprot.skip(ftype)
2037  elif fid == 33:
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()
2040  else:
2041  iprot.skip(ftype)
2042  elif fid == 34:
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()
2045  else:
2046  iprot.skip(ftype)
2047  elif fid == 35:
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()
2050  else:
2051  iprot.skip(ftype)
2052  elif fid == 36:
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()
2055  else:
2056  iprot.skip(ftype)
2057  elif fid == 37:
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()
2060  else:
2061  iprot.skip(ftype)
2062  elif fid == 38:
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()
2065  else:
2066  iprot.skip(ftype)
2067  elif fid == 39:
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()
2070  else:
2071  iprot.skip(ftype)
2072  elif fid == 40:
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()
2075  else:
2076  iprot.skip(ftype)
2077  elif fid == 41:
2078  if ftype == TType.BOOL:
2079  self.trim_spaces = iprot.readBool()
2080  else:
2081  iprot.skip(ftype)
2082  elif fid == 42:
2083  if ftype == TType.BOOL:
2084  self.geo_validate_geometry = iprot.readBool()
2085  else:
2086  iprot.skip(ftype)
2087  else:
2088  iprot.skip(ftype)
2089  iprot.readFieldEnd()
2090  iprot.readStructEnd()
2091 
2092  def write(self, oprot):
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]))
2095  return
2096  oprot.writeStructBegin('TCopyParams')
2097  if self.delimiter is not None:
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()
2101  if self.null_str is not None:
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()
2105  if self.has_header is not None:
2106  oprot.writeFieldBegin('has_header', TType.I32, 3)
2107  oprot.writeI32(self.has_header)
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()
2121  if self.line_delim is not None:
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()
2125  if self.array_delim is not None:
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()
2129  if self.array_begin is not None:
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()
2133  if self.array_end is not None:
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()
2137  if self.threads is not None:
2138  oprot.writeFieldBegin('threads', TType.I32, 11)
2139  oprot.writeI32(self.threads)
2140  oprot.writeFieldEnd()
2141  if self.source_type is not None:
2142  oprot.writeFieldBegin('source_type', TType.I32, 12)
2143  oprot.writeI32(self.source_type)
2144  oprot.writeFieldEnd()
2145  if self.s3_access_key is not None:
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()
2149  if self.s3_secret_key is not None:
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()
2153  if self.s3_region is not None:
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()
2157  if self.geo_coords_encoding is not None:
2158  oprot.writeFieldBegin('geo_coords_encoding', TType.I32, 16)
2159  oprot.writeI32(self.geo_coords_encoding)
2160  oprot.writeFieldEnd()
2161  if self.geo_coords_comp_param is not None:
2162  oprot.writeFieldBegin('geo_coords_comp_param', TType.I32, 17)
2163  oprot.writeI32(self.geo_coords_comp_param)
2164  oprot.writeFieldEnd()
2165  if self.geo_coords_type is not None:
2166  oprot.writeFieldBegin('geo_coords_type', TType.I32, 18)
2167  oprot.writeI32(self.geo_coords_type)
2168  oprot.writeFieldEnd()
2169  if self.geo_coords_srid is not None:
2170  oprot.writeFieldBegin('geo_coords_srid', TType.I32, 19)
2171  oprot.writeI32(self.geo_coords_srid)
2172  oprot.writeFieldEnd()
2173  if self.sanitize_column_names is not None:
2174  oprot.writeFieldBegin('sanitize_column_names', TType.BOOL, 20)
2175  oprot.writeBool(self.sanitize_column_names)
2176  oprot.writeFieldEnd()
2177  if self.geo_layer_name is not None:
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()
2181  if self.s3_endpoint is not None:
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()
2185  if self.geo_assign_render_groups is not None:
2186  oprot.writeFieldBegin('geo_assign_render_groups', TType.BOOL, 23)
2187  oprot.writeBool(self.geo_assign_render_groups)
2188  oprot.writeFieldEnd()
2189  if self.geo_explode_collections is not None:
2190  oprot.writeFieldBegin('geo_explode_collections', TType.BOOL, 24)
2191  oprot.writeBool(self.geo_explode_collections)
2192  oprot.writeFieldEnd()
2193  if self.source_srid is not None:
2194  oprot.writeFieldBegin('source_srid', TType.I32, 25)
2195  oprot.writeI32(self.source_srid)
2196  oprot.writeFieldEnd()
2197  if self.s3_session_token is not None:
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()
2201  if self.raster_point_type is not None:
2202  oprot.writeFieldBegin('raster_point_type', TType.I32, 27)
2203  oprot.writeI32(self.raster_point_type)
2204  oprot.writeFieldEnd()
2205  if self.raster_import_bands is not None:
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()
2209  if self.raster_scanlines_per_thread is not None:
2210  oprot.writeFieldBegin('raster_scanlines_per_thread', TType.I32, 29)
2211  oprot.writeI32(self.raster_scanlines_per_thread)
2212  oprot.writeFieldEnd()
2213  if self.raster_point_transform is not None:
2214  oprot.writeFieldBegin('raster_point_transform', TType.I32, 30)
2215  oprot.writeI32(self.raster_point_transform)
2216  oprot.writeFieldEnd()
2217  if self.raster_point_compute_angle is not None:
2218  oprot.writeFieldBegin('raster_point_compute_angle', TType.BOOL, 31)
2219  oprot.writeBool(self.raster_point_compute_angle)
2220  oprot.writeFieldEnd()
2221  if self.raster_import_dimensions is not None:
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()
2225  if self.odbc_dsn is not None:
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()
2229  if self.odbc_connection_string is not None:
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()
2233  if self.odbc_sql_select is not None:
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()
2237  if self.odbc_sql_order_by is not None:
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()
2241  if self.odbc_username is not None:
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()
2245  if self.odbc_password is not None:
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()
2249  if self.odbc_credential_string is not None:
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()
2253  if self.add_metadata_columns is not None:
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()
2257  if self.trim_spaces is not None:
2258  oprot.writeFieldBegin('trim_spaces', TType.BOOL, 41)
2259  oprot.writeBool(self.trim_spaces)
2260  oprot.writeFieldEnd()
2261  if self.geo_validate_geometry is not None:
2262  oprot.writeFieldBegin('geo_validate_geometry', TType.BOOL, 42)
2263  oprot.writeBool(self.geo_validate_geometry)
2264  oprot.writeFieldEnd()
2265  oprot.writeFieldStop()
2266  oprot.writeStructEnd()
2267 
2268  def validate(self):
2269  return
2270 
2271  def __repr__(self):
2272  L = ['%s=%r' % (key, value)
2273  for key, value in self.__dict__.items()]
2274  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2275 
2276  def __eq__(self, other):
2277  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2278 
2279  def __ne__(self, other):
2280  return not (self == other)
2281 
2282 
2283 class TCreateParams(object):
2284  """
2285  Attributes:
2286  - is_replicated
2287 
2288  """
2289 
2290 
2291  def __init__(self, is_replicated=None,):
2292  self.is_replicated = is_replicated
2293 
2294  def read(self, iprot):
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])
2297  return
2298  iprot.readStructBegin()
2299  while True:
2300  (fname, ftype, fid) = iprot.readFieldBegin()
2301  if ftype == TType.STOP:
2302  break
2303  if fid == 1:
2304  if ftype == TType.BOOL:
2305  self.is_replicated = iprot.readBool()
2306  else:
2307  iprot.skip(ftype)
2308  else:
2309  iprot.skip(ftype)
2310  iprot.readFieldEnd()
2311  iprot.readStructEnd()
2312 
2313  def write(self, oprot):
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]))
2316  return
2317  oprot.writeStructBegin('TCreateParams')
2318  if self.is_replicated is not None:
2319  oprot.writeFieldBegin('is_replicated', TType.BOOL, 1)
2320  oprot.writeBool(self.is_replicated)
2321  oprot.writeFieldEnd()
2322  oprot.writeFieldStop()
2323  oprot.writeStructEnd()
2324 
2325  def validate(self):
2326  return
2327 
2328  def __repr__(self):
2329  L = ['%s=%r' % (key, value)
2330  for key, value in self.__dict__.items()]
2331  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2332 
2333  def __eq__(self, other):
2334  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2335 
2336  def __ne__(self, other):
2337  return not (self == other)
2338 
2339 
2340 class TDetectResult(object):
2341  """
2342  Attributes:
2343  - row_set
2344  - copy_params
2345 
2346  """
2347 
2348 
2349  def __init__(self, row_set=None, copy_params=None,):
2350  self.row_set = row_set
2351  self.copy_params = copy_params
2352 
2353  def read(self, iprot):
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])
2356  return
2357  iprot.readStructBegin()
2358  while True:
2359  (fname, ftype, fid) = iprot.readFieldBegin()
2360  if ftype == TType.STOP:
2361  break
2362  if fid == 1:
2363  if ftype == TType.STRUCT:
2364  self.row_set = TRowSet()
2365  self.row_set.read(iprot)
2366  else:
2367  iprot.skip(ftype)
2368  elif fid == 2:
2369  if ftype == TType.STRUCT:
2370  self.copy_params = TCopyParams()
2371  self.copy_params.read(iprot)
2372  else:
2373  iprot.skip(ftype)
2374  else:
2375  iprot.skip(ftype)
2376  iprot.readFieldEnd()
2377  iprot.readStructEnd()
2378 
2379  def write(self, oprot):
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]))
2382  return
2383  oprot.writeStructBegin('TDetectResult')
2384  if self.row_set is not None:
2385  oprot.writeFieldBegin('row_set', TType.STRUCT, 1)
2386  self.row_set.write(oprot)
2387  oprot.writeFieldEnd()
2388  if self.copy_params is not None:
2389  oprot.writeFieldBegin('copy_params', TType.STRUCT, 2)
2390  self.copy_params.write(oprot)
2391  oprot.writeFieldEnd()
2392  oprot.writeFieldStop()
2393  oprot.writeStructEnd()
2394 
2395  def validate(self):
2396  return
2397 
2398  def __repr__(self):
2399  L = ['%s=%r' % (key, value)
2400  for key, value in self.__dict__.items()]
2401  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2402 
2403  def __eq__(self, other):
2404  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2405 
2406  def __ne__(self, other):
2407  return not (self == other)
2408 
2409 
2410 class TImportStatus(object):
2411  """
2412  Attributes:
2413  - elapsed
2414  - rows_completed
2415  - rows_estimated
2416  - rows_rejected
2417 
2418  """
2419 
2420 
2421  def __init__(self, elapsed=None, rows_completed=None, rows_estimated=None, rows_rejected=None,):
2422  self.elapsed = elapsed
2423  self.rows_completed = rows_completed
2424  self.rows_estimated = rows_estimated
2425  self.rows_rejected = rows_rejected
2426 
2427  def read(self, iprot):
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])
2430  return
2431  iprot.readStructBegin()
2432  while True:
2433  (fname, ftype, fid) = iprot.readFieldBegin()
2434  if ftype == TType.STOP:
2435  break
2436  if fid == 1:
2437  if ftype == TType.I64:
2438  self.elapsed = iprot.readI64()
2439  else:
2440  iprot.skip(ftype)
2441  elif fid == 2:
2442  if ftype == TType.I64:
2443  self.rows_completed = iprot.readI64()
2444  else:
2445  iprot.skip(ftype)
2446  elif fid == 3:
2447  if ftype == TType.I64:
2448  self.rows_estimated = iprot.readI64()
2449  else:
2450  iprot.skip(ftype)
2451  elif fid == 4:
2452  if ftype == TType.I64:
2453  self.rows_rejected = iprot.readI64()
2454  else:
2455  iprot.skip(ftype)
2456  else:
2457  iprot.skip(ftype)
2458  iprot.readFieldEnd()
2459  iprot.readStructEnd()
2460 
2461  def write(self, oprot):
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]))
2464  return
2465  oprot.writeStructBegin('TImportStatus')
2466  if self.elapsed is not None:
2467  oprot.writeFieldBegin('elapsed', TType.I64, 1)
2468  oprot.writeI64(self.elapsed)
2469  oprot.writeFieldEnd()
2470  if self.rows_completed is not None:
2471  oprot.writeFieldBegin('rows_completed', TType.I64, 2)
2472  oprot.writeI64(self.rows_completed)
2473  oprot.writeFieldEnd()
2474  if self.rows_estimated is not None:
2475  oprot.writeFieldBegin('rows_estimated', TType.I64, 3)
2476  oprot.writeI64(self.rows_estimated)
2477  oprot.writeFieldEnd()
2478  if self.rows_rejected is not None:
2479  oprot.writeFieldBegin('rows_rejected', TType.I64, 4)
2480  oprot.writeI64(self.rows_rejected)
2481  oprot.writeFieldEnd()
2482  oprot.writeFieldStop()
2483  oprot.writeStructEnd()
2484 
2485  def validate(self):
2486  return
2487 
2488  def __repr__(self):
2489  L = ['%s=%r' % (key, value)
2490  for key, value in self.__dict__.items()]
2491  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2492 
2493  def __eq__(self, other):
2494  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2495 
2496  def __ne__(self, other):
2497  return not (self == other)
2498 
2499 
2500 class TFrontendView(object):
2501  """
2502  Attributes:
2503  - view_name
2504  - view_state
2505  - image_hash
2506  - update_time
2507  - view_metadata
2508 
2509  """
2510 
2511 
2512  def __init__(self, view_name=None, view_state=None, image_hash=None, update_time=None, view_metadata=None,):
2513  self.view_name = view_name
2514  self.view_state = view_state
2515  self.image_hash = image_hash
2516  self.update_time = update_time
2517  self.view_metadata = view_metadata
2518 
2519  def read(self, iprot):
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])
2522  return
2523  iprot.readStructBegin()
2524  while True:
2525  (fname, ftype, fid) = iprot.readFieldBegin()
2526  if ftype == TType.STOP:
2527  break
2528  if fid == 1:
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()
2531  else:
2532  iprot.skip(ftype)
2533  elif fid == 2:
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()
2536  else:
2537  iprot.skip(ftype)
2538  elif fid == 3:
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()
2541  else:
2542  iprot.skip(ftype)
2543  elif fid == 4:
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()
2546  else:
2547  iprot.skip(ftype)
2548  elif fid == 5:
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()
2551  else:
2552  iprot.skip(ftype)
2553  else:
2554  iprot.skip(ftype)
2555  iprot.readFieldEnd()
2556  iprot.readStructEnd()
2557 
2558  def write(self, oprot):
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]))
2561  return
2562  oprot.writeStructBegin('TFrontendView')
2563  if self.view_name is not None:
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()
2567  if self.view_state is not None:
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()
2571  if self.image_hash is not None:
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()
2575  if self.update_time is not None:
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()
2579  if self.view_metadata is not None:
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()
2585 
2586  def validate(self):
2587  return
2588 
2589  def __repr__(self):
2590  L = ['%s=%r' % (key, value)
2591  for key, value in self.__dict__.items()]
2592  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2593 
2594  def __eq__(self, other):
2595  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2596 
2597  def __ne__(self, other):
2598  return not (self == other)
2599 
2600 
2601 class TServerStatus(object):
2602  """
2603  Attributes:
2604  - read_only
2605  - version
2606  - rendering_enabled
2607  - start_time
2608  - edition
2609  - host_name
2610  - poly_rendering_enabled
2611  - role
2612  - renderer_status_json
2613  - host_id
2614 
2615  """
2616 
2617 
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,):
2619  self.read_only = read_only
2620  self.version = version
2621  self.rendering_enabled = rendering_enabled
2622  self.start_time = start_time
2623  self.edition = edition
2624  self.host_name = host_name
2625  self.poly_rendering_enabled = poly_rendering_enabled
2626  self.role = role
2627  self.renderer_status_json = renderer_status_json
2628  self.host_id = host_id
2629 
2630  def read(self, iprot):
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])
2633  return
2634  iprot.readStructBegin()
2635  while True:
2636  (fname, ftype, fid) = iprot.readFieldBegin()
2637  if ftype == TType.STOP:
2638  break
2639  if fid == 1:
2640  if ftype == TType.BOOL:
2641  self.read_only = iprot.readBool()
2642  else:
2643  iprot.skip(ftype)
2644  elif fid == 2:
2645  if ftype == TType.STRING:
2646  self.version = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
2647  else:
2648  iprot.skip(ftype)
2649  elif fid == 3:
2650  if ftype == TType.BOOL:
2651  self.rendering_enabled = iprot.readBool()
2652  else:
2653  iprot.skip(ftype)
2654  elif fid == 4:
2655  if ftype == TType.I64:
2656  self.start_time = iprot.readI64()
2657  else:
2658  iprot.skip(ftype)
2659  elif fid == 5:
2660  if ftype == TType.STRING:
2661  self.edition = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
2662  else:
2663  iprot.skip(ftype)
2664  elif fid == 6:
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()
2667  else:
2668  iprot.skip(ftype)
2669  elif fid == 7:
2670  if ftype == TType.BOOL:
2671  self.poly_rendering_enabled = iprot.readBool()
2672  else:
2673  iprot.skip(ftype)
2674  elif fid == 8:
2675  if ftype == TType.I32:
2676  self.role = iprot.readI32()
2677  else:
2678  iprot.skip(ftype)
2679  elif fid == 9:
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()
2682  else:
2683  iprot.skip(ftype)
2684  elif fid == 10:
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()
2687  else:
2688  iprot.skip(ftype)
2689  else:
2690  iprot.skip(ftype)
2691  iprot.readFieldEnd()
2692  iprot.readStructEnd()
2693 
2694  def write(self, oprot):
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]))
2697  return
2698  oprot.writeStructBegin('TServerStatus')
2699  if self.read_only is not None:
2700  oprot.writeFieldBegin('read_only', TType.BOOL, 1)
2701  oprot.writeBool(self.read_only)
2702  oprot.writeFieldEnd()
2703  if self.version is not None:
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()
2707  if self.rendering_enabled is not None:
2708  oprot.writeFieldBegin('rendering_enabled', TType.BOOL, 3)
2709  oprot.writeBool(self.rendering_enabled)
2710  oprot.writeFieldEnd()
2711  if self.start_time is not None:
2712  oprot.writeFieldBegin('start_time', TType.I64, 4)
2713  oprot.writeI64(self.start_time)
2714  oprot.writeFieldEnd()
2715  if self.edition is not None:
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()
2719  if self.host_name is not None:
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()
2723  if self.poly_rendering_enabled is not None:
2724  oprot.writeFieldBegin('poly_rendering_enabled', TType.BOOL, 7)
2725  oprot.writeBool(self.poly_rendering_enabled)
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()
2731  if self.renderer_status_json is not None:
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()
2735  if self.host_id is not None:
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()
2741 
2742  def validate(self):
2743  return
2744 
2745  def __repr__(self):
2746  L = ['%s=%r' % (key, value)
2747  for key, value in self.__dict__.items()]
2748  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2749 
2750  def __eq__(self, other):
2751  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2752 
2753  def __ne__(self, other):
2754  return not (self == other)
2755 
2756 
2757 class TPixel(object):
2758  """
2759  Attributes:
2760  - x
2761  - y
2762 
2763  """
2764 
2765 
2766  def __init__(self, x=None, y=None,):
2767  self.x = x
2768  self.y = y
2769 
2770  def read(self, iprot):
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])
2773  return
2774  iprot.readStructBegin()
2775  while True:
2776  (fname, ftype, fid) = iprot.readFieldBegin()
2777  if ftype == TType.STOP:
2778  break
2779  if fid == 1:
2780  if ftype == TType.I64:
2781  self.x = iprot.readI64()
2782  else:
2783  iprot.skip(ftype)
2784  elif fid == 2:
2785  if ftype == TType.I64:
2786  self.y = iprot.readI64()
2787  else:
2788  iprot.skip(ftype)
2789  else:
2790  iprot.skip(ftype)
2791  iprot.readFieldEnd()
2792  iprot.readStructEnd()
2793 
2794  def write(self, oprot):
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]))
2797  return
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()
2809 
2810  def validate(self):
2811  return
2812 
2813  def __repr__(self):
2814  L = ['%s=%r' % (key, value)
2815  for key, value in self.__dict__.items()]
2816  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2817 
2818  def __eq__(self, other):
2819  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2820 
2821  def __ne__(self, other):
2822  return not (self == other)
2823 
2824 
2825 class TPixelTableRowResult(object):
2826  """
2827  Attributes:
2828  - pixel
2829  - vega_table_name
2830  - table_id
2831  - row_id
2832  - row_set
2833  - nonce
2834 
2835  """
2836 
2837 
2838  def __init__(self, pixel=None, vega_table_name=None, table_id=None, row_id=None, row_set=None, nonce=None,):
2839  self.pixel = pixel
2840  self.vega_table_name = vega_table_name
2841  self.table_id = table_id
2842  self.row_id = row_id
2843  self.row_set = row_set
2844  self.nonce = nonce
2845 
2846  def read(self, iprot):
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])
2849  return
2850  iprot.readStructBegin()
2851  while True:
2852  (fname, ftype, fid) = iprot.readFieldBegin()
2853  if ftype == TType.STOP:
2854  break
2855  if fid == 1:
2856  if ftype == TType.STRUCT:
2857  self.pixel = TPixel()
2858  self.pixel.read(iprot)
2859  else:
2860  iprot.skip(ftype)
2861  elif fid == 2:
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()
2864  else:
2865  iprot.skip(ftype)
2866  elif fid == 3:
2867  if ftype == TType.LIST:
2868  self.table_id = []
2869  (_etype87, _size84) = iprot.readListBegin()
2870  for _i88 in range(_size84):
2871  _elem89 = iprot.readI64()
2872  self.table_id.append(_elem89)
2873  iprot.readListEnd()
2874  else:
2875  iprot.skip(ftype)
2876  elif fid == 4:
2877  if ftype == TType.LIST:
2878  self.row_id = []
2879  (_etype93, _size90) = iprot.readListBegin()
2880  for _i94 in range(_size90):
2881  _elem95 = iprot.readI64()
2882  self.row_id.append(_elem95)
2883  iprot.readListEnd()
2884  else:
2885  iprot.skip(ftype)
2886  elif fid == 5:
2887  if ftype == TType.STRUCT:
2888  self.row_set = TRowSet()
2889  self.row_set.read(iprot)
2890  else:
2891  iprot.skip(ftype)
2892  elif fid == 6:
2893  if ftype == TType.STRING:
2894  self.nonce = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
2895  else:
2896  iprot.skip(ftype)
2897  else:
2898  iprot.skip(ftype)
2899  iprot.readFieldEnd()
2900  iprot.readStructEnd()
2901 
2902  def write(self, oprot):
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]))
2905  return
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()
2911  if self.vega_table_name is not None:
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()
2915  if self.table_id is not None:
2916  oprot.writeFieldBegin('table_id', TType.LIST, 3)
2917  oprot.writeListBegin(TType.I64, len(self.table_id))
2918  for iter96 in 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()
2929  if self.row_set is not None:
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()
2939 
2940  def validate(self):
2941  return
2942 
2943  def __repr__(self):
2944  L = ['%s=%r' % (key, value)
2945  for key, value in self.__dict__.items()]
2946  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2947 
2948  def __eq__(self, other):
2949  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2950 
2951  def __ne__(self, other):
2952  return not (self == other)
2953 
2954 
2955 class TRenderResult(object):
2956  """
2957  Attributes:
2958  - image
2959  - nonce
2960  - execution_time_ms
2961  - render_time_ms
2962  - total_time_ms
2963  - vega_metadata
2964 
2965  """
2966 
2967 
2968  def __init__(self, image=None, nonce=None, execution_time_ms=None, render_time_ms=None, total_time_ms=None, vega_metadata=None,):
2969  self.image = image
2970  self.nonce = nonce
2971  self.execution_time_ms = execution_time_ms
2972  self.render_time_ms = render_time_ms
2973  self.total_time_ms = total_time_ms
2974  self.vega_metadata = vega_metadata
2975 
2976  def read(self, iprot):
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])
2979  return
2980  iprot.readStructBegin()
2981  while True:
2982  (fname, ftype, fid) = iprot.readFieldBegin()
2983  if ftype == TType.STOP:
2984  break
2985  if fid == 1:
2986  if ftype == TType.STRING:
2987  self.image = iprot.readBinary()
2988  else:
2989  iprot.skip(ftype)
2990  elif fid == 2:
2991  if ftype == TType.STRING:
2992  self.nonce = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
2993  else:
2994  iprot.skip(ftype)
2995  elif fid == 3:
2996  if ftype == TType.I64:
2997  self.execution_time_ms = iprot.readI64()
2998  else:
2999  iprot.skip(ftype)
3000  elif fid == 4:
3001  if ftype == TType.I64:
3002  self.render_time_ms = iprot.readI64()
3003  else:
3004  iprot.skip(ftype)
3005  elif fid == 5:
3006  if ftype == TType.I64:
3007  self.total_time_ms = iprot.readI64()
3008  else:
3009  iprot.skip(ftype)
3010  elif fid == 6:
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()
3013  else:
3014  iprot.skip(ftype)
3015  else:
3016  iprot.skip(ftype)
3017  iprot.readFieldEnd()
3018  iprot.readStructEnd()
3019 
3020  def write(self, oprot):
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]))
3023  return
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()
3033  if self.execution_time_ms is not None:
3034  oprot.writeFieldBegin('execution_time_ms', TType.I64, 3)
3035  oprot.writeI64(self.execution_time_ms)
3036  oprot.writeFieldEnd()
3037  if self.render_time_ms is not None:
3038  oprot.writeFieldBegin('render_time_ms', TType.I64, 4)
3039  oprot.writeI64(self.render_time_ms)
3040  oprot.writeFieldEnd()
3041  if self.total_time_ms is not None:
3042  oprot.writeFieldBegin('total_time_ms', TType.I64, 5)
3043  oprot.writeI64(self.total_time_ms)
3044  oprot.writeFieldEnd()
3045  if self.vega_metadata is not None:
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()
3051 
3052  def validate(self):
3053  return
3054 
3055  def __repr__(self):
3056  L = ['%s=%r' % (key, value)
3057  for key, value in self.__dict__.items()]
3058  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3059 
3060  def __eq__(self, other):
3061  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3062 
3063  def __ne__(self, other):
3064  return not (self == other)
3065 
3066 
3067 class TGpuSpecification(object):
3068  """
3069  Attributes:
3070  - num_sm
3071  - clock_frequency_kHz
3072  - memory
3073  - compute_capability_major
3074  - compute_capability_minor
3075 
3076  """
3077 
3078 
3079  def __init__(self, num_sm=None, clock_frequency_kHz=None, memory=None, compute_capability_major=None, compute_capability_minor=None,):
3080  self.num_sm = num_sm
3081  self.clock_frequency_kHz = clock_frequency_kHz
3082  self.memory = memory
3083  self.compute_capability_major = compute_capability_major
3084  self.compute_capability_minor = compute_capability_minor
3085 
3086  def read(self, iprot):
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])
3089  return
3090  iprot.readStructBegin()
3091  while True:
3092  (fname, ftype, fid) = iprot.readFieldBegin()
3093  if ftype == TType.STOP:
3094  break
3095  if fid == 1:
3096  if ftype == TType.I32:
3097  self.num_sm = iprot.readI32()
3098  else:
3099  iprot.skip(ftype)
3100  elif fid == 2:
3101  if ftype == TType.I64:
3102  self.clock_frequency_kHz = iprot.readI64()
3103  else:
3104  iprot.skip(ftype)
3105  elif fid == 3:
3106  if ftype == TType.I64:
3107  self.memory = iprot.readI64()
3108  else:
3109  iprot.skip(ftype)
3110  elif fid == 4:
3111  if ftype == TType.I16:
3112  self.compute_capability_major = iprot.readI16()
3113  else:
3114  iprot.skip(ftype)
3115  elif fid == 5:
3116  if ftype == TType.I16:
3117  self.compute_capability_minor = iprot.readI16()
3118  else:
3119  iprot.skip(ftype)
3120  else:
3121  iprot.skip(ftype)
3122  iprot.readFieldEnd()
3123  iprot.readStructEnd()
3124 
3125  def write(self, oprot):
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]))
3128  return
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()
3134  if self.clock_frequency_kHz is not None:
3135  oprot.writeFieldBegin('clock_frequency_kHz', TType.I64, 2)
3136  oprot.writeI64(self.clock_frequency_kHz)
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()
3142  if self.compute_capability_major is not None:
3143  oprot.writeFieldBegin('compute_capability_major', TType.I16, 4)
3144  oprot.writeI16(self.compute_capability_major)
3145  oprot.writeFieldEnd()
3146  if self.compute_capability_minor is not None:
3147  oprot.writeFieldBegin('compute_capability_minor', TType.I16, 5)
3148  oprot.writeI16(self.compute_capability_minor)
3149  oprot.writeFieldEnd()
3150  oprot.writeFieldStop()
3151  oprot.writeStructEnd()
3152 
3153  def validate(self):
3154  return
3155 
3156  def __repr__(self):
3157  L = ['%s=%r' % (key, value)
3158  for key, value in self.__dict__.items()]
3159  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3160 
3161  def __eq__(self, other):
3162  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3163 
3164  def __ne__(self, other):
3165  return not (self == other)
3166 
3167 
3168 class THardwareInfo(object):
3169  """
3170  Attributes:
3171  - num_gpu_hw
3172  - num_cpu_hw
3173  - num_gpu_allocated
3174  - start_gpu
3175  - host_name
3176  - gpu_info
3177 
3178  """
3179 
3180 
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,):
3182  self.num_gpu_hw = num_gpu_hw
3183  self.num_cpu_hw = num_cpu_hw
3184  self.num_gpu_allocated = num_gpu_allocated
3185  self.start_gpu = start_gpu
3186  self.host_name = host_name
3187  self.gpu_info = gpu_info
3188 
3189  def read(self, iprot):
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])
3192  return
3193  iprot.readStructBegin()
3194  while True:
3195  (fname, ftype, fid) = iprot.readFieldBegin()
3196  if ftype == TType.STOP:
3197  break
3198  if fid == 1:
3199  if ftype == TType.I16:
3200  self.num_gpu_hw = iprot.readI16()
3201  else:
3202  iprot.skip(ftype)
3203  elif fid == 2:
3204  if ftype == TType.I16:
3205  self.num_cpu_hw = iprot.readI16()
3206  else:
3207  iprot.skip(ftype)
3208  elif fid == 3:
3209  if ftype == TType.I16:
3210  self.num_gpu_allocated = iprot.readI16()
3211  else:
3212  iprot.skip(ftype)
3213  elif fid == 4:
3214  if ftype == TType.I16:
3215  self.start_gpu = iprot.readI16()
3216  else:
3217  iprot.skip(ftype)
3218  elif fid == 5:
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()
3221  else:
3222  iprot.skip(ftype)
3223  elif fid == 6:
3224  if ftype == TType.LIST:
3225  self.gpu_info = []
3226  (_etype101, _size98) = iprot.readListBegin()
3227  for _i102 in range(_size98):
3228  _elem103 = TGpuSpecification()
3229  _elem103.read(iprot)
3230  self.gpu_info.append(_elem103)
3231  iprot.readListEnd()
3232  else:
3233  iprot.skip(ftype)
3234  else:
3235  iprot.skip(ftype)
3236  iprot.readFieldEnd()
3237  iprot.readStructEnd()
3238 
3239  def write(self, oprot):
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]))
3242  return
3243  oprot.writeStructBegin('THardwareInfo')
3244  if self.num_gpu_hw is not None:
3245  oprot.writeFieldBegin('num_gpu_hw', TType.I16, 1)
3246  oprot.writeI16(self.num_gpu_hw)
3247  oprot.writeFieldEnd()
3248  if self.num_cpu_hw is not None:
3249  oprot.writeFieldBegin('num_cpu_hw', TType.I16, 2)
3250  oprot.writeI16(self.num_cpu_hw)
3251  oprot.writeFieldEnd()
3252  if self.num_gpu_allocated is not None:
3253  oprot.writeFieldBegin('num_gpu_allocated', TType.I16, 3)
3254  oprot.writeI16(self.num_gpu_allocated)
3255  oprot.writeFieldEnd()
3256  if self.start_gpu is not None:
3257  oprot.writeFieldBegin('start_gpu', TType.I16, 4)
3258  oprot.writeI16(self.start_gpu)
3259  oprot.writeFieldEnd()
3260  if self.host_name is not None:
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()
3264  if self.gpu_info is not None:
3265  oprot.writeFieldBegin('gpu_info', TType.LIST, 6)
3266  oprot.writeListBegin(TType.STRUCT, len(self.gpu_info))
3267  for iter104 in self.gpu_info:
3268  iter104.write(oprot)
3269  oprot.writeListEnd()
3270  oprot.writeFieldEnd()
3271  oprot.writeFieldStop()
3272  oprot.writeStructEnd()
3273 
3274  def validate(self):
3275  return
3276 
3277  def __repr__(self):
3278  L = ['%s=%r' % (key, value)
3279  for key, value in self.__dict__.items()]
3280  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3281 
3282  def __eq__(self, other):
3283  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3284 
3285  def __ne__(self, other):
3286  return not (self == other)
3287 
3288 
3289 class TClusterHardwareInfo(object):
3290  """
3291  Attributes:
3292  - hardware_info
3293 
3294  """
3295 
3296 
3297  def __init__(self, hardware_info=None,):
3298  self.hardware_info = hardware_info
3299 
3300  def read(self, iprot):
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])
3303  return
3304  iprot.readStructBegin()
3305  while True:
3306  (fname, ftype, fid) = iprot.readFieldBegin()
3307  if ftype == TType.STOP:
3308  break
3309  if fid == 1:
3310  if ftype == TType.LIST:
3311  self.hardware_info = []
3312  (_etype108, _size105) = iprot.readListBegin()
3313  for _i109 in range(_size105):
3314  _elem110 = THardwareInfo()
3315  _elem110.read(iprot)
3316  self.hardware_info.append(_elem110)
3317  iprot.readListEnd()
3318  else:
3319  iprot.skip(ftype)
3320  else:
3321  iprot.skip(ftype)
3322  iprot.readFieldEnd()
3323  iprot.readStructEnd()
3324 
3325  def write(self, oprot):
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]))
3328  return
3329  oprot.writeStructBegin('TClusterHardwareInfo')
3330  if self.hardware_info is not None:
3331  oprot.writeFieldBegin('hardware_info', TType.LIST, 1)
3332  oprot.writeListBegin(TType.STRUCT, len(self.hardware_info))
3333  for iter111 in self.hardware_info:
3334  iter111.write(oprot)
3335  oprot.writeListEnd()
3336  oprot.writeFieldEnd()
3337  oprot.writeFieldStop()
3338  oprot.writeStructEnd()
3339 
3340  def validate(self):
3341  return
3342 
3343  def __repr__(self):
3344  L = ['%s=%r' % (key, value)
3345  for key, value in self.__dict__.items()]
3346  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3347 
3348  def __eq__(self, other):
3349  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3350 
3351  def __ne__(self, other):
3352  return not (self == other)
3353 
3354 
3355 class TMemoryData(object):
3356  """
3357  Attributes:
3358  - slab
3359  - start_page
3360  - num_pages
3361  - touch
3362  - chunk_key
3363  - buffer_epoch
3364  - is_free
3365 
3366  """
3367 
3368 
3369  def __init__(self, slab=None, start_page=None, num_pages=None, touch=None, chunk_key=None, buffer_epoch=None, is_free=None,):
3370  self.slab = slab
3371  self.start_page = start_page
3372  self.num_pages = num_pages
3373  self.touch = touch
3374  self.chunk_key = chunk_key
3375  self.buffer_epoch = buffer_epoch
3376  self.is_free = is_free
3377 
3378  def read(self, iprot):
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])
3381  return
3382  iprot.readStructBegin()
3383  while True:
3384  (fname, ftype, fid) = iprot.readFieldBegin()
3385  if ftype == TType.STOP:
3386  break
3387  if fid == 1:
3388  if ftype == TType.I64:
3389  self.slab = iprot.readI64()
3390  else:
3391  iprot.skip(ftype)
3392  elif fid == 2:
3393  if ftype == TType.I32:
3394  self.start_page = iprot.readI32()
3395  else:
3396  iprot.skip(ftype)
3397  elif fid == 3:
3398  if ftype == TType.I64:
3399  self.num_pages = iprot.readI64()
3400  else:
3401  iprot.skip(ftype)
3402  elif fid == 4:
3403  if ftype == TType.I32:
3404  self.touch = iprot.readI32()
3405  else:
3406  iprot.skip(ftype)
3407  elif fid == 5:
3408  if ftype == TType.LIST:
3409  self.chunk_key = []
3410  (_etype115, _size112) = iprot.readListBegin()
3411  for _i116 in range(_size112):
3412  _elem117 = iprot.readI64()
3413  self.chunk_key.append(_elem117)
3414  iprot.readListEnd()
3415  else:
3416  iprot.skip(ftype)
3417  elif fid == 6:
3418  if ftype == TType.I32:
3419  self.buffer_epoch = iprot.readI32()
3420  else:
3421  iprot.skip(ftype)
3422  elif fid == 7:
3423  if ftype == TType.BOOL:
3424  self.is_free = iprot.readBool()
3425  else:
3426  iprot.skip(ftype)
3427  else:
3428  iprot.skip(ftype)
3429  iprot.readFieldEnd()
3430  iprot.readStructEnd()
3431 
3432  def write(self, oprot):
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]))
3435  return
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()
3441  if self.start_page is not None:
3442  oprot.writeFieldBegin('start_page', TType.I32, 2)
3443  oprot.writeI32(self.start_page)
3444  oprot.writeFieldEnd()
3445  if self.num_pages is not None:
3446  oprot.writeFieldBegin('num_pages', TType.I64, 3)
3447  oprot.writeI64(self.num_pages)
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()
3453  if self.chunk_key is not None:
3454  oprot.writeFieldBegin('chunk_key', TType.LIST, 5)
3455  oprot.writeListBegin(TType.I64, len(self.chunk_key))
3456  for iter118 in self.chunk_key:
3457  oprot.writeI64(iter118)
3458  oprot.writeListEnd()
3459  oprot.writeFieldEnd()
3460  if self.buffer_epoch is not None:
3461  oprot.writeFieldBegin('buffer_epoch', TType.I32, 6)
3462  oprot.writeI32(self.buffer_epoch)
3463  oprot.writeFieldEnd()
3464  if self.is_free is not None:
3465  oprot.writeFieldBegin('is_free', TType.BOOL, 7)
3466  oprot.writeBool(self.is_free)
3467  oprot.writeFieldEnd()
3468  oprot.writeFieldStop()
3469  oprot.writeStructEnd()
3470 
3471  def validate(self):
3472  return
3473 
3474  def __repr__(self):
3475  L = ['%s=%r' % (key, value)
3476  for key, value in self.__dict__.items()]
3477  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3478 
3479  def __eq__(self, other):
3480  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3481 
3482  def __ne__(self, other):
3483  return not (self == other)
3484 
3485 
3486 class TNodeMemoryInfo(object):
3487  """
3488  Attributes:
3489  - host_name
3490  - page_size
3491  - max_num_pages
3492  - num_pages_allocated
3493  - is_allocation_capped
3494  - node_memory_data
3495 
3496  """
3497 
3498 
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,):
3500  self.host_name = host_name
3501  self.page_size = page_size
3502  self.max_num_pages = max_num_pages
3503  self.num_pages_allocated = num_pages_allocated
3504  self.is_allocation_capped = is_allocation_capped
3505  self.node_memory_data = node_memory_data
3506 
3507  def read(self, iprot):
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])
3510  return
3511  iprot.readStructBegin()
3512  while True:
3513  (fname, ftype, fid) = iprot.readFieldBegin()
3514  if ftype == TType.STOP:
3515  break
3516  if fid == 1:
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()
3519  else:
3520  iprot.skip(ftype)
3521  elif fid == 2:
3522  if ftype == TType.I64:
3523  self.page_size = iprot.readI64()
3524  else:
3525  iprot.skip(ftype)
3526  elif fid == 3:
3527  if ftype == TType.I64:
3528  self.max_num_pages = iprot.readI64()
3529  else:
3530  iprot.skip(ftype)
3531  elif fid == 4:
3532  if ftype == TType.I64:
3533  self.num_pages_allocated = iprot.readI64()
3534  else:
3535  iprot.skip(ftype)
3536  elif fid == 5:
3537  if ftype == TType.BOOL:
3538  self.is_allocation_capped = iprot.readBool()
3539  else:
3540  iprot.skip(ftype)
3541  elif fid == 6:
3542  if ftype == TType.LIST:
3543  self.node_memory_data = []
3544  (_etype122, _size119) = iprot.readListBegin()
3545  for _i123 in range(_size119):
3546  _elem124 = TMemoryData()
3547  _elem124.read(iprot)
3548  self.node_memory_data.append(_elem124)
3549  iprot.readListEnd()
3550  else:
3551  iprot.skip(ftype)
3552  else:
3553  iprot.skip(ftype)
3554  iprot.readFieldEnd()
3555  iprot.readStructEnd()
3556 
3557  def write(self, oprot):
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]))
3560  return
3561  oprot.writeStructBegin('TNodeMemoryInfo')
3562  if self.host_name is not None:
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()
3566  if self.page_size is not None:
3567  oprot.writeFieldBegin('page_size', TType.I64, 2)
3568  oprot.writeI64(self.page_size)
3569  oprot.writeFieldEnd()
3570  if self.max_num_pages is not None:
3571  oprot.writeFieldBegin('max_num_pages', TType.I64, 3)
3572  oprot.writeI64(self.max_num_pages)
3573  oprot.writeFieldEnd()
3574  if self.num_pages_allocated is not None:
3575  oprot.writeFieldBegin('num_pages_allocated', TType.I64, 4)
3576  oprot.writeI64(self.num_pages_allocated)
3577  oprot.writeFieldEnd()
3578  if self.is_allocation_capped is not None:
3579  oprot.writeFieldBegin('is_allocation_capped', TType.BOOL, 5)
3580  oprot.writeBool(self.is_allocation_capped)
3581  oprot.writeFieldEnd()
3582  if self.node_memory_data is not None:
3583  oprot.writeFieldBegin('node_memory_data', TType.LIST, 6)
3584  oprot.writeListBegin(TType.STRUCT, len(self.node_memory_data))
3585  for iter125 in self.node_memory_data:
3586  iter125.write(oprot)
3587  oprot.writeListEnd()
3588  oprot.writeFieldEnd()
3589  oprot.writeFieldStop()
3590  oprot.writeStructEnd()
3591 
3592  def validate(self):
3593  return
3594 
3595  def __repr__(self):
3596  L = ['%s=%r' % (key, value)
3597  for key, value in self.__dict__.items()]
3598  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3599 
3600  def __eq__(self, other):
3601  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3602 
3603  def __ne__(self, other):
3604  return not (self == other)
3605 
3606 
3607 class TTableMeta(object):
3608  """
3609  Attributes:
3610  - table_name
3611  - num_cols
3612  - is_view
3613  - is_replicated
3614  - shard_count
3615  - max_rows
3616  - table_id
3617  - max_table_id
3618  - col_types
3619  - col_names
3620 
3621  """
3622 
3623 
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,):
3625  self.table_name = table_name
3626  self.num_cols = num_cols
3627  self.is_view = is_view
3628  self.is_replicated = is_replicated
3629  self.shard_count = shard_count
3630  self.max_rows = max_rows
3631  self.table_id = table_id
3632  self.max_table_id = max_table_id
3633  self.col_types = col_types
3634  self.col_names = col_names
3635 
3636  def read(self, iprot):
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])
3639  return
3640  iprot.readStructBegin()
3641  while True:
3642  (fname, ftype, fid) = iprot.readFieldBegin()
3643  if ftype == TType.STOP:
3644  break
3645  if fid == 1:
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()
3648  else:
3649  iprot.skip(ftype)
3650  elif fid == 2:
3651  if ftype == TType.I64:
3652  self.num_cols = iprot.readI64()
3653  else:
3654  iprot.skip(ftype)
3655  elif fid == 4:
3656  if ftype == TType.BOOL:
3657  self.is_view = iprot.readBool()
3658  else:
3659  iprot.skip(ftype)
3660  elif fid == 5:
3661  if ftype == TType.BOOL:
3662  self.is_replicated = iprot.readBool()
3663  else:
3664  iprot.skip(ftype)
3665  elif fid == 6:
3666  if ftype == TType.I64:
3667  self.shard_count = iprot.readI64()
3668  else:
3669  iprot.skip(ftype)
3670  elif fid == 7:
3671  if ftype == TType.I64:
3672  self.max_rows = iprot.readI64()
3673  else:
3674  iprot.skip(ftype)
3675  elif fid == 8:
3676  if ftype == TType.I64:
3677  self.table_id = iprot.readI64()
3678  else:
3679  iprot.skip(ftype)
3680  elif fid == 9:
3681  if ftype == TType.I64:
3682  self.max_table_id = iprot.readI64()
3683  else:
3684  iprot.skip(ftype)
3685  elif fid == 10:
3686  if ftype == TType.LIST:
3687  self.col_types = []
3688  (_etype129, _size126) = iprot.readListBegin()
3689  for _i130 in range(_size126):
3690  _elem131 = heavydb.common.ttypes.TTypeInfo()
3691  _elem131.read(iprot)
3692  self.col_types.append(_elem131)
3693  iprot.readListEnd()
3694  else:
3695  iprot.skip(ftype)
3696  elif fid == 11:
3697  if ftype == TType.LIST:
3698  self.col_names = []
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)
3703  iprot.readListEnd()
3704  else:
3705  iprot.skip(ftype)
3706  else:
3707  iprot.skip(ftype)
3708  iprot.readFieldEnd()
3709  iprot.readStructEnd()
3710 
3711  def write(self, oprot):
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]))
3714  return
3715  oprot.writeStructBegin('TTableMeta')
3716  if self.table_name is not None:
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()
3720  if self.num_cols is not None:
3721  oprot.writeFieldBegin('num_cols', TType.I64, 2)
3722  oprot.writeI64(self.num_cols)
3723  oprot.writeFieldEnd()
3724  if self.is_view is not None:
3725  oprot.writeFieldBegin('is_view', TType.BOOL, 4)
3726  oprot.writeBool(self.is_view)
3727  oprot.writeFieldEnd()
3728  if self.is_replicated is not None:
3729  oprot.writeFieldBegin('is_replicated', TType.BOOL, 5)
3730  oprot.writeBool(self.is_replicated)
3731  oprot.writeFieldEnd()
3732  if self.shard_count is not None:
3733  oprot.writeFieldBegin('shard_count', TType.I64, 6)
3734  oprot.writeI64(self.shard_count)
3735  oprot.writeFieldEnd()
3736  if self.max_rows is not None:
3737  oprot.writeFieldBegin('max_rows', TType.I64, 7)
3738  oprot.writeI64(self.max_rows)
3739  oprot.writeFieldEnd()
3740  if self.table_id is not None:
3741  oprot.writeFieldBegin('table_id', TType.I64, 8)
3742  oprot.writeI64(self.table_id)
3743  oprot.writeFieldEnd()
3744  if self.max_table_id is not None:
3745  oprot.writeFieldBegin('max_table_id', TType.I64, 9)
3746  oprot.writeI64(self.max_table_id)
3747  oprot.writeFieldEnd()
3748  if self.col_types is not None:
3749  oprot.writeFieldBegin('col_types', TType.LIST, 10)
3750  oprot.writeListBegin(TType.STRUCT, len(self.col_types))
3751  for iter138 in self.col_types:
3752  iter138.write(oprot)
3753  oprot.writeListEnd()
3754  oprot.writeFieldEnd()
3755  if self.col_names is not None:
3756  oprot.writeFieldBegin('col_names', TType.LIST, 11)
3757  oprot.writeListBegin(TType.STRING, len(self.col_names))
3758  for iter139 in 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()
3764 
3765  def validate(self):
3766  return
3767 
3768  def __repr__(self):
3769  L = ['%s=%r' % (key, value)
3770  for key, value in self.__dict__.items()]
3771  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3772 
3773  def __eq__(self, other):
3774  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3775 
3776  def __ne__(self, other):
3777  return not (self == other)
3778 
3779 
3780 class TTableRefreshInfo(object):
3781  """
3782  Attributes:
3783  - update_type
3784  - timing_type
3785  - start_date_time
3786  - interval_type
3787  - interval_count
3788  - last_refresh_time
3789  - next_refresh_time
3790 
3791  """
3792 
3793 
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,):
3795  self.update_type = update_type
3796  self.timing_type = timing_type
3797  self.start_date_time = start_date_time
3798  self.interval_type = interval_type
3799  self.interval_count = interval_count
3800  self.last_refresh_time = last_refresh_time
3801  self.next_refresh_time = next_refresh_time
3802 
3803  def read(self, iprot):
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])
3806  return
3807  iprot.readStructBegin()
3808  while True:
3809  (fname, ftype, fid) = iprot.readFieldBegin()
3810  if ftype == TType.STOP:
3811  break
3812  if fid == 1:
3813  if ftype == TType.I32:
3814  self.update_type = iprot.readI32()
3815  else:
3816  iprot.skip(ftype)
3817  elif fid == 2:
3818  if ftype == TType.I32:
3819  self.timing_type = iprot.readI32()
3820  else:
3821  iprot.skip(ftype)
3822  elif fid == 3:
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()
3825  else:
3826  iprot.skip(ftype)
3827  elif fid == 4:
3828  if ftype == TType.I32:
3829  self.interval_type = iprot.readI32()
3830  else:
3831  iprot.skip(ftype)
3832  elif fid == 5:
3833  if ftype == TType.I64:
3834  self.interval_count = iprot.readI64()
3835  else:
3836  iprot.skip(ftype)
3837  elif fid == 6:
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()
3840  else:
3841  iprot.skip(ftype)
3842  elif fid == 7:
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()
3845  else:
3846  iprot.skip(ftype)
3847  else:
3848  iprot.skip(ftype)
3849  iprot.readFieldEnd()
3850  iprot.readStructEnd()
3851 
3852  def write(self, oprot):
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]))
3855  return
3856  oprot.writeStructBegin('TTableRefreshInfo')
3857  if self.update_type is not None:
3858  oprot.writeFieldBegin('update_type', TType.I32, 1)
3859  oprot.writeI32(self.update_type)
3860  oprot.writeFieldEnd()
3861  if self.timing_type is not None:
3862  oprot.writeFieldBegin('timing_type', TType.I32, 2)
3863  oprot.writeI32(self.timing_type)
3864  oprot.writeFieldEnd()
3865  if self.start_date_time is not None:
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()
3869  if self.interval_type is not None:
3870  oprot.writeFieldBegin('interval_type', TType.I32, 4)
3871  oprot.writeI32(self.interval_type)
3872  oprot.writeFieldEnd()
3873  if self.interval_count is not None:
3874  oprot.writeFieldBegin('interval_count', TType.I64, 5)
3875  oprot.writeI64(self.interval_count)
3876  oprot.writeFieldEnd()
3877  if self.last_refresh_time is not None:
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()
3881  if self.next_refresh_time is not None:
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()
3887 
3888  def validate(self):
3889  return
3890 
3891  def __repr__(self):
3892  L = ['%s=%r' % (key, value)
3893  for key, value in self.__dict__.items()]
3894  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3895 
3896  def __eq__(self, other):
3897  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3898 
3899  def __ne__(self, other):
3900  return not (self == other)
3901 
3902 
3903 class TTableDetails(object):
3904  """
3905  Attributes:
3906  - row_desc
3907  - fragment_size
3908  - page_size
3909  - max_rows
3910  - view_sql
3911  - shard_count
3912  - key_metainfo
3913  - is_temporary
3914  - partition_detail
3915  - table_type
3916  - refresh_info
3917  - sharded_column_name
3918 
3919  """
3920 
3921 
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,):
3923  self.row_desc = row_desc
3924  self.fragment_size = fragment_size
3925  self.page_size = page_size
3926  self.max_rows = max_rows
3927  self.view_sql = view_sql
3928  self.shard_count = shard_count
3929  self.key_metainfo = key_metainfo
3930  self.is_temporary = is_temporary
3931  self.partition_detail = partition_detail
3932  self.table_type = table_type
3933  self.refresh_info = refresh_info
3934  self.sharded_column_name = sharded_column_name
3935 
3936  def read(self, iprot):
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])
3939  return
3940  iprot.readStructBegin()
3941  while True:
3942  (fname, ftype, fid) = iprot.readFieldBegin()
3943  if ftype == TType.STOP:
3944  break
3945  if fid == 1:
3946  if ftype == TType.LIST:
3947  self.row_desc = []
3948  (_etype143, _size140) = iprot.readListBegin()
3949  for _i144 in range(_size140):
3950  _elem145 = TColumnType()
3951  _elem145.read(iprot)
3952  self.row_desc.append(_elem145)
3953  iprot.readListEnd()
3954  else:
3955  iprot.skip(ftype)
3956  elif fid == 2:
3957  if ftype == TType.I64:
3958  self.fragment_size = iprot.readI64()
3959  else:
3960  iprot.skip(ftype)
3961  elif fid == 3:
3962  if ftype == TType.I64:
3963  self.page_size = iprot.readI64()
3964  else:
3965  iprot.skip(ftype)
3966  elif fid == 4:
3967  if ftype == TType.I64:
3968  self.max_rows = iprot.readI64()
3969  else:
3970  iprot.skip(ftype)
3971  elif fid == 5:
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()
3974  else:
3975  iprot.skip(ftype)
3976  elif fid == 6:
3977  if ftype == TType.I64:
3978  self.shard_count = iprot.readI64()
3979  else:
3980  iprot.skip(ftype)
3981  elif fid == 7:
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()
3984  else:
3985  iprot.skip(ftype)
3986  elif fid == 8:
3987  if ftype == TType.BOOL:
3988  self.is_temporary = iprot.readBool()
3989  else:
3990  iprot.skip(ftype)
3991  elif fid == 9:
3992  if ftype == TType.I32:
3993  self.partition_detail = iprot.readI32()
3994  else:
3995  iprot.skip(ftype)
3996  elif fid == 10:
3997  if ftype == TType.I32:
3998  self.table_type = iprot.readI32()
3999  else:
4000  iprot.skip(ftype)
4001  elif fid == 11:
4002  if ftype == TType.STRUCT:
4004  self.refresh_info.read(iprot)
4005  else:
4006  iprot.skip(ftype)
4007  elif fid == 12:
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()
4010  else:
4011  iprot.skip(ftype)
4012  else:
4013  iprot.skip(ftype)
4014  iprot.readFieldEnd()
4015  iprot.readStructEnd()
4016 
4017  def write(self, oprot):
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]))
4020  return
4021  oprot.writeStructBegin('TTableDetails')
4022  if self.row_desc is not None:
4023  oprot.writeFieldBegin('row_desc', TType.LIST, 1)
4024  oprot.writeListBegin(TType.STRUCT, len(self.row_desc))
4025  for iter146 in self.row_desc:
4026  iter146.write(oprot)
4027  oprot.writeListEnd()
4028  oprot.writeFieldEnd()
4029  if self.fragment_size is not None:
4030  oprot.writeFieldBegin('fragment_size', TType.I64, 2)
4031  oprot.writeI64(self.fragment_size)
4032  oprot.writeFieldEnd()
4033  if self.page_size is not None:
4034  oprot.writeFieldBegin('page_size', TType.I64, 3)
4035  oprot.writeI64(self.page_size)
4036  oprot.writeFieldEnd()
4037  if self.max_rows is not None:
4038  oprot.writeFieldBegin('max_rows', TType.I64, 4)
4039  oprot.writeI64(self.max_rows)
4040  oprot.writeFieldEnd()
4041  if self.view_sql is not None:
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()
4045  if self.shard_count is not None:
4046  oprot.writeFieldBegin('shard_count', TType.I64, 6)
4047  oprot.writeI64(self.shard_count)
4048  oprot.writeFieldEnd()
4049  if self.key_metainfo is not None:
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()
4053  if self.is_temporary is not None:
4054  oprot.writeFieldBegin('is_temporary', TType.BOOL, 8)
4055  oprot.writeBool(self.is_temporary)
4056  oprot.writeFieldEnd()
4057  if self.partition_detail is not None:
4058  oprot.writeFieldBegin('partition_detail', TType.I32, 9)
4059  oprot.writeI32(self.partition_detail)
4060  oprot.writeFieldEnd()
4061  if self.table_type is not None:
4062  oprot.writeFieldBegin('table_type', TType.I32, 10)
4063  oprot.writeI32(self.table_type)
4064  oprot.writeFieldEnd()
4065  if self.refresh_info is not None:
4066  oprot.writeFieldBegin('refresh_info', TType.STRUCT, 11)
4067  self.refresh_info.write(oprot)
4068  oprot.writeFieldEnd()
4069  if self.sharded_column_name is not None:
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()
4075 
4076  def validate(self):
4077  return
4078 
4079  def __repr__(self):
4080  L = ['%s=%r' % (key, value)
4081  for key, value in self.__dict__.items()]
4082  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4083 
4084  def __eq__(self, other):
4085  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4086 
4087  def __ne__(self, other):
4088  return not (self == other)
4089 
4090 
4091 class TColumnRange(object):
4092  """
4093  Attributes:
4094  - type
4095  - col_id
4096  - table_id
4097  - has_nulls
4098  - int_min
4099  - int_max
4100  - bucket
4101  - fp_min
4102  - fp_max
4103  - db_id
4104 
4105  """
4106 
4107 
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,):
4109  self.type = type
4110  self.col_id = col_id
4111  self.table_id = table_id
4112  self.has_nulls = has_nulls
4113  self.int_min = int_min
4114  self.int_max = int_max
4115  self.bucket = bucket
4116  self.fp_min = fp_min
4117  self.fp_max = fp_max
4118  self.db_id = db_id
4119 
4120  def read(self, iprot):
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])
4123  return
4124  iprot.readStructBegin()
4125  while True:
4126  (fname, ftype, fid) = iprot.readFieldBegin()
4127  if ftype == TType.STOP:
4128  break
4129  if fid == 1:
4130  if ftype == TType.I32:
4131  self.type = iprot.readI32()
4132  else:
4133  iprot.skip(ftype)
4134  elif fid == 2:
4135  if ftype == TType.I32:
4136  self.col_id = iprot.readI32()
4137  else:
4138  iprot.skip(ftype)
4139  elif fid == 3:
4140  if ftype == TType.I32:
4141  self.table_id = iprot.readI32()
4142  else:
4143  iprot.skip(ftype)
4144  elif fid == 4:
4145  if ftype == TType.BOOL:
4146  self.has_nulls = iprot.readBool()
4147  else:
4148  iprot.skip(ftype)
4149  elif fid == 5:
4150  if ftype == TType.I64:
4151  self.int_min = iprot.readI64()
4152  else:
4153  iprot.skip(ftype)
4154  elif fid == 6:
4155  if ftype == TType.I64:
4156  self.int_max = iprot.readI64()
4157  else:
4158  iprot.skip(ftype)
4159  elif fid == 7:
4160  if ftype == TType.I64:
4161  self.bucket = iprot.readI64()
4162  else:
4163  iprot.skip(ftype)
4164  elif fid == 8:
4165  if ftype == TType.DOUBLE:
4166  self.fp_min = iprot.readDouble()
4167  else:
4168  iprot.skip(ftype)
4169  elif fid == 9:
4170  if ftype == TType.DOUBLE:
4171  self.fp_max = iprot.readDouble()
4172  else:
4173  iprot.skip(ftype)
4174  elif fid == 10:
4175  if ftype == TType.I32:
4176  self.db_id = iprot.readI32()
4177  else:
4178  iprot.skip(ftype)
4179  else:
4180  iprot.skip(ftype)
4181  iprot.readFieldEnd()
4182  iprot.readStructEnd()
4183 
4184  def write(self, oprot):
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]))
4187  return
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()
4197  if self.table_id is not None:
4198  oprot.writeFieldBegin('table_id', TType.I32, 3)
4199  oprot.writeI32(self.table_id)
4200  oprot.writeFieldEnd()
4201  if self.has_nulls is not None:
4202  oprot.writeFieldBegin('has_nulls', TType.BOOL, 4)
4203  oprot.writeBool(self.has_nulls)
4204  oprot.writeFieldEnd()
4205  if self.int_min is not None:
4206  oprot.writeFieldBegin('int_min', TType.I64, 5)
4207  oprot.writeI64(self.int_min)
4208  oprot.writeFieldEnd()
4209  if self.int_max is not None:
4210  oprot.writeFieldBegin('int_max', TType.I64, 6)
4211  oprot.writeI64(self.int_max)
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()
4231 
4232  def validate(self):
4233  return
4234 
4235  def __repr__(self):
4236  L = ['%s=%r' % (key, value)
4237  for key, value in self.__dict__.items()]
4238  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4239 
4240  def __eq__(self, other):
4241  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4242 
4243  def __ne__(self, other):
4244  return not (self == other)
4245 
4246 
4248  """
4249  Attributes:
4250  - dict_id
4251  - entry_count
4252  - db_id
4253 
4254  """
4255 
4256 
4257  def __init__(self, dict_id=None, entry_count=None, db_id=None,):
4258  self.dict_id = dict_id
4259  self.entry_count = entry_count
4260  self.db_id = db_id
4261 
4262  def read(self, iprot):
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])
4265  return
4266  iprot.readStructBegin()
4267  while True:
4268  (fname, ftype, fid) = iprot.readFieldBegin()
4269  if ftype == TType.STOP:
4270  break
4271  if fid == 1:
4272  if ftype == TType.I32:
4273  self.dict_id = iprot.readI32()
4274  else:
4275  iprot.skip(ftype)
4276  elif fid == 2:
4277  if ftype == TType.I64:
4278  self.entry_count = iprot.readI64()
4279  else:
4280  iprot.skip(ftype)
4281  elif fid == 3:
4282  if ftype == TType.I32:
4283  self.db_id = iprot.readI32()
4284  else:
4285  iprot.skip(ftype)
4286  else:
4287  iprot.skip(ftype)
4288  iprot.readFieldEnd()
4289  iprot.readStructEnd()
4290 
4291  def write(self, oprot):
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]))
4294  return
4295  oprot.writeStructBegin('TDictionaryGeneration')
4296  if self.dict_id is not None:
4297  oprot.writeFieldBegin('dict_id', TType.I32, 1)
4298  oprot.writeI32(self.dict_id)
4299  oprot.writeFieldEnd()
4300  if self.entry_count is not None:
4301  oprot.writeFieldBegin('entry_count', TType.I64, 2)
4302  oprot.writeI64(self.entry_count)
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()
4310 
4311  def validate(self):
4312  return
4313 
4314  def __repr__(self):
4315  L = ['%s=%r' % (key, value)
4316  for key, value in self.__dict__.items()]
4317  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4318 
4319  def __eq__(self, other):
4320  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4321 
4322  def __ne__(self, other):
4323  return not (self == other)
4324 
4325 
4326 class TTableGeneration(object):
4327  """
4328  Attributes:
4329  - table_id
4330  - tuple_count
4331  - start_rowid
4332  - db_id
4333 
4334  """
4335 
4336 
4337  def __init__(self, table_id=None, tuple_count=None, start_rowid=None, db_id=None,):
4338  self.table_id = table_id
4339  self.tuple_count = tuple_count
4340  self.start_rowid = start_rowid
4341  self.db_id = db_id
4342 
4343  def read(self, iprot):
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])
4346  return
4347  iprot.readStructBegin()
4348  while True:
4349  (fname, ftype, fid) = iprot.readFieldBegin()
4350  if ftype == TType.STOP:
4351  break
4352  if fid == 1:
4353  if ftype == TType.I32:
4354  self.table_id = iprot.readI32()
4355  else:
4356  iprot.skip(ftype)
4357  elif fid == 2:
4358  if ftype == TType.I64:
4359  self.tuple_count = iprot.readI64()
4360  else:
4361  iprot.skip(ftype)
4362  elif fid == 3:
4363  if ftype == TType.I64:
4364  self.start_rowid = iprot.readI64()
4365  else:
4366  iprot.skip(ftype)
4367  elif fid == 4:
4368  if ftype == TType.I32:
4369  self.db_id = iprot.readI32()
4370  else:
4371  iprot.skip(ftype)
4372  else:
4373  iprot.skip(ftype)
4374  iprot.readFieldEnd()
4375  iprot.readStructEnd()
4376 
4377  def write(self, oprot):
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]))
4380  return
4381  oprot.writeStructBegin('TTableGeneration')
4382  if self.table_id is not None:
4383  oprot.writeFieldBegin('table_id', TType.I32, 1)
4384  oprot.writeI32(self.table_id)
4385  oprot.writeFieldEnd()
4386  if self.tuple_count is not None:
4387  oprot.writeFieldBegin('tuple_count', TType.I64, 2)
4388  oprot.writeI64(self.tuple_count)
4389  oprot.writeFieldEnd()
4390  if self.start_rowid is not None:
4391  oprot.writeFieldBegin('start_rowid', TType.I64, 3)
4392  oprot.writeI64(self.start_rowid)
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()
4400 
4401  def validate(self):
4402  return
4403 
4404  def __repr__(self):
4405  L = ['%s=%r' % (key, value)
4406  for key, value in self.__dict__.items()]
4407  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4408 
4409  def __eq__(self, other):
4410  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4411 
4412  def __ne__(self, other):
4413  return not (self == other)
4414 
4415 
4416 class TTableCacheStatus(object):
4417  """
4418  Attributes:
4419  - table_id
4420  - db_id
4421  - is_cached_on_disk
4422 
4423  """
4424 
4425 
4426  def __init__(self, table_id=None, db_id=None, is_cached_on_disk=None,):
4427  self.table_id = table_id
4428  self.db_id = db_id
4429  self.is_cached_on_disk = is_cached_on_disk
4430 
4431  def read(self, iprot):
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])
4434  return
4435  iprot.readStructBegin()
4436  while True:
4437  (fname, ftype, fid) = iprot.readFieldBegin()
4438  if ftype == TType.STOP:
4439  break
4440  if fid == 1:
4441  if ftype == TType.I32:
4442  self.table_id = iprot.readI32()
4443  else:
4444  iprot.skip(ftype)
4445  elif fid == 2:
4446  if ftype == TType.I32:
4447  self.db_id = iprot.readI32()
4448  else:
4449  iprot.skip(ftype)
4450  elif fid == 3:
4451  if ftype == TType.BOOL:
4452  self.is_cached_on_disk = iprot.readBool()
4453  else:
4454  iprot.skip(ftype)
4455  else:
4456  iprot.skip(ftype)
4457  iprot.readFieldEnd()
4458  iprot.readStructEnd()
4459 
4460  def write(self, oprot):
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]))
4463  return
4464  oprot.writeStructBegin('TTableCacheStatus')
4465  if self.table_id is not None:
4466  oprot.writeFieldBegin('table_id', TType.I32, 1)
4467  oprot.writeI32(self.table_id)
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()
4473  if self.is_cached_on_disk is not None:
4474  oprot.writeFieldBegin('is_cached_on_disk', TType.BOOL, 3)
4475  oprot.writeBool(self.is_cached_on_disk)
4476  oprot.writeFieldEnd()
4477  oprot.writeFieldStop()
4478  oprot.writeStructEnd()
4479 
4480  def validate(self):
4481  return
4482 
4483  def __repr__(self):
4484  L = ['%s=%r' % (key, value)
4485  for key, value in self.__dict__.items()]
4486  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4487 
4488  def __eq__(self, other):
4489  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4490 
4491  def __ne__(self, other):
4492  return not (self == other)
4493 
4494 
4495 class TPendingQuery(object):
4496  """
4497  Attributes:
4498  - id
4499  - column_ranges
4500  - dictionary_generations
4501  - table_generations
4502  - parent_session_id
4503  - table_cache_status
4504 
4505  """
4506 
4507 
4508  def __init__(self, id=None, column_ranges=None, dictionary_generations=None, table_generations=None, parent_session_id=None, table_cache_status=None,):
4509  self.id = id
4510  self.column_ranges = column_ranges
4511  self.dictionary_generations = dictionary_generations
4512  self.table_generations = table_generations
4513  self.parent_session_id = parent_session_id
4514  self.table_cache_status = table_cache_status
4515 
4516  def read(self, iprot):
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])
4519  return
4520  iprot.readStructBegin()
4521  while True:
4522  (fname, ftype, fid) = iprot.readFieldBegin()
4523  if ftype == TType.STOP:
4524  break
4525  if fid == 1:
4526  if ftype == TType.I64:
4527  self.id = iprot.readI64()
4528  else:
4529  iprot.skip(ftype)
4530  elif fid == 2:
4531  if ftype == TType.LIST:
4532  self.column_ranges = []
4533  (_etype150, _size147) = iprot.readListBegin()
4534  for _i151 in range(_size147):
4535  _elem152 = TColumnRange()
4536  _elem152.read(iprot)
4537  self.column_ranges.append(_elem152)
4538  iprot.readListEnd()
4539  else:
4540  iprot.skip(ftype)
4541  elif fid == 3:
4542  if ftype == TType.LIST:
4543  self.dictionary_generations = []
4544  (_etype156, _size153) = iprot.readListBegin()
4545  for _i157 in range(_size153):
4546  _elem158 = TDictionaryGeneration()
4547  _elem158.read(iprot)
4548  self.dictionary_generations.append(_elem158)
4549  iprot.readListEnd()
4550  else:
4551  iprot.skip(ftype)
4552  elif fid == 4:
4553  if ftype == TType.LIST:
4554  self.table_generations = []
4555  (_etype162, _size159) = iprot.readListBegin()
4556  for _i163 in range(_size159):
4557  _elem164 = TTableGeneration()
4558  _elem164.read(iprot)
4559  self.table_generations.append(_elem164)
4560  iprot.readListEnd()
4561  else:
4562  iprot.skip(ftype)
4563  elif fid == 5:
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()
4566  else:
4567  iprot.skip(ftype)
4568  elif fid == 6:
4569  if ftype == TType.LIST:
4570  self.table_cache_status = []
4571  (_etype168, _size165) = iprot.readListBegin()
4572  for _i169 in range(_size165):
4573  _elem170 = TTableCacheStatus()
4574  _elem170.read(iprot)
4575  self.table_cache_status.append(_elem170)
4576  iprot.readListEnd()
4577  else:
4578  iprot.skip(ftype)
4579  else:
4580  iprot.skip(ftype)
4581  iprot.readFieldEnd()
4582  iprot.readStructEnd()
4583 
4584  def write(self, oprot):
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]))
4587  return
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()
4593  if self.column_ranges is not None:
4594  oprot.writeFieldBegin('column_ranges', TType.LIST, 2)
4595  oprot.writeListBegin(TType.STRUCT, len(self.column_ranges))
4596  for iter171 in self.column_ranges:
4597  iter171.write(oprot)
4598  oprot.writeListEnd()
4599  oprot.writeFieldEnd()
4600  if self.dictionary_generations is not None:
4601  oprot.writeFieldBegin('dictionary_generations', TType.LIST, 3)
4602  oprot.writeListBegin(TType.STRUCT, len(self.dictionary_generations))
4603  for iter172 in self.dictionary_generations:
4604  iter172.write(oprot)
4605  oprot.writeListEnd()
4606  oprot.writeFieldEnd()
4607  if self.table_generations is not None:
4608  oprot.writeFieldBegin('table_generations', TType.LIST, 4)
4609  oprot.writeListBegin(TType.STRUCT, len(self.table_generations))
4610  for iter173 in self.table_generations:
4611  iter173.write(oprot)
4612  oprot.writeListEnd()
4613  oprot.writeFieldEnd()
4614  if self.parent_session_id is not None:
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()
4618  if self.table_cache_status is not None:
4619  oprot.writeFieldBegin('table_cache_status', TType.LIST, 6)
4620  oprot.writeListBegin(TType.STRUCT, len(self.table_cache_status))
4621  for iter174 in self.table_cache_status:
4622  iter174.write(oprot)
4623  oprot.writeListEnd()
4624  oprot.writeFieldEnd()
4625  oprot.writeFieldStop()
4626  oprot.writeStructEnd()
4627 
4628  def validate(self):
4629  return
4630 
4631  def __repr__(self):
4632  L = ['%s=%r' % (key, value)
4633  for key, value in self.__dict__.items()]
4634  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4635 
4636  def __eq__(self, other):
4637  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4638 
4639  def __ne__(self, other):
4640  return not (self == other)
4641 
4642 
4643 class TVarLen(object):
4644  """
4645  Attributes:
4646  - payload
4647  - is_null
4648 
4649  """
4650 
4651 
4652  def __init__(self, payload=None, is_null=None,):
4653  self.payload = payload
4654  self.is_null = is_null
4655 
4656  def read(self, iprot):
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])
4659  return
4660  iprot.readStructBegin()
4661  while True:
4662  (fname, ftype, fid) = iprot.readFieldBegin()
4663  if ftype == TType.STOP:
4664  break
4665  if fid == 1:
4666  if ftype == TType.STRING:
4667  self.payload = iprot.readBinary()
4668  else:
4669  iprot.skip(ftype)
4670  elif fid == 2:
4671  if ftype == TType.BOOL:
4672  self.is_null = iprot.readBool()
4673  else:
4674  iprot.skip(ftype)
4675  else:
4676  iprot.skip(ftype)
4677  iprot.readFieldEnd()
4678  iprot.readStructEnd()
4679 
4680  def write(self, oprot):
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]))
4683  return
4684  oprot.writeStructBegin('TVarLen')
4685  if self.payload is not None:
4686  oprot.writeFieldBegin('payload', TType.STRING, 1)
4687  oprot.writeBinary(self.payload)
4688  oprot.writeFieldEnd()
4689  if self.is_null is not None:
4690  oprot.writeFieldBegin('is_null', TType.BOOL, 2)
4691  oprot.writeBool(self.is_null)
4692  oprot.writeFieldEnd()
4693  oprot.writeFieldStop()
4694  oprot.writeStructEnd()
4695 
4696  def validate(self):
4697  return
4698 
4699  def __repr__(self):
4700  L = ['%s=%r' % (key, value)
4701  for key, value in self.__dict__.items()]
4702  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4703 
4704  def __eq__(self, other):
4705  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4706 
4707  def __ne__(self, other):
4708  return not (self == other)
4709 
4710 
4711 class TDataBlockPtr(object):
4712  """
4713  Attributes:
4714  - fixed_len_data
4715  - var_len_data
4716 
4717  """
4718 
4719 
4720  def __init__(self, fixed_len_data=None, var_len_data=None,):
4721  self.fixed_len_data = fixed_len_data
4722  self.var_len_data = var_len_data
4723 
4724  def read(self, iprot):
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])
4727  return
4728  iprot.readStructBegin()
4729  while True:
4730  (fname, ftype, fid) = iprot.readFieldBegin()
4731  if ftype == TType.STOP:
4732  break
4733  if fid == 1:
4734  if ftype == TType.STRING:
4735  self.fixed_len_data = iprot.readBinary()
4736  else:
4737  iprot.skip(ftype)
4738  elif fid == 2:
4739  if ftype == TType.LIST:
4740  self.var_len_data = []
4741  (_etype178, _size175) = iprot.readListBegin()
4742  for _i179 in range(_size175):
4743  _elem180 = TVarLen()
4744  _elem180.read(iprot)
4745  self.var_len_data.append(_elem180)
4746  iprot.readListEnd()
4747  else:
4748  iprot.skip(ftype)
4749  else:
4750  iprot.skip(ftype)
4751  iprot.readFieldEnd()
4752  iprot.readStructEnd()
4753 
4754  def write(self, oprot):
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]))
4757  return
4758  oprot.writeStructBegin('TDataBlockPtr')
4759  if self.fixed_len_data is not None:
4760  oprot.writeFieldBegin('fixed_len_data', TType.STRING, 1)
4761  oprot.writeBinary(self.fixed_len_data)
4762  oprot.writeFieldEnd()
4763  if self.var_len_data is not None:
4764  oprot.writeFieldBegin('var_len_data', TType.LIST, 2)
4765  oprot.writeListBegin(TType.STRUCT, len(self.var_len_data))
4766  for iter181 in self.var_len_data:
4767  iter181.write(oprot)
4768  oprot.writeListEnd()
4769  oprot.writeFieldEnd()
4770  oprot.writeFieldStop()
4771  oprot.writeStructEnd()
4772 
4773  def validate(self):
4774  return
4775 
4776  def __repr__(self):
4777  L = ['%s=%r' % (key, value)
4778  for key, value in self.__dict__.items()]
4779  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4780 
4781  def __eq__(self, other):
4782  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4783 
4784  def __ne__(self, other):
4785  return not (self == other)
4786 
4787 
4788 class TInsertData(object):
4789  """
4790  Attributes:
4791  - db_id
4792  - table_id
4793  - column_ids
4794  - data
4795  - num_rows
4796  - is_default
4797 
4798  """
4799 
4800 
4801  def __init__(self, db_id=None, table_id=None, column_ids=None, data=None, num_rows=None, is_default=None,):
4802  self.db_id = db_id
4803  self.table_id = table_id
4804  self.column_ids = column_ids
4805  self.data = data
4806  self.num_rows = num_rows
4807  self.is_default = is_default
4808 
4809  def read(self, iprot):
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])
4812  return
4813  iprot.readStructBegin()
4814  while True:
4815  (fname, ftype, fid) = iprot.readFieldBegin()
4816  if ftype == TType.STOP:
4817  break
4818  if fid == 1:
4819  if ftype == TType.I32:
4820  self.db_id = iprot.readI32()
4821  else:
4822  iprot.skip(ftype)
4823  elif fid == 2:
4824  if ftype == TType.I32:
4825  self.table_id = iprot.readI32()
4826  else:
4827  iprot.skip(ftype)
4828  elif fid == 3:
4829  if ftype == TType.LIST:
4830  self.column_ids = []
4831  (_etype185, _size182) = iprot.readListBegin()
4832  for _i186 in range(_size182):
4833  _elem187 = iprot.readI32()
4834  self.column_ids.append(_elem187)
4835  iprot.readListEnd()
4836  else:
4837  iprot.skip(ftype)
4838  elif fid == 4:
4839  if ftype == TType.LIST:
4840  self.data = []
4841  (_etype191, _size188) = iprot.readListBegin()
4842  for _i192 in range(_size188):
4843  _elem193 = TDataBlockPtr()
4844  _elem193.read(iprot)
4845  self.data.append(_elem193)
4846  iprot.readListEnd()
4847  else:
4848  iprot.skip(ftype)
4849  elif fid == 5:
4850  if ftype == TType.I64:
4851  self.num_rows = iprot.readI64()
4852  else:
4853  iprot.skip(ftype)
4854  elif fid == 6:
4855  if ftype == TType.LIST:
4856  self.is_default = []
4857  (_etype197, _size194) = iprot.readListBegin()
4858  for _i198 in range(_size194):
4859  _elem199 = iprot.readBool()
4860  self.is_default.append(_elem199)
4861  iprot.readListEnd()
4862  else:
4863  iprot.skip(ftype)
4864  else:
4865  iprot.skip(ftype)
4866  iprot.readFieldEnd()
4867  iprot.readStructEnd()
4868 
4869  def write(self, oprot):
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]))
4872  return
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()
4878  if self.table_id is not None:
4879  oprot.writeFieldBegin('table_id', TType.I32, 2)
4880  oprot.writeI32(self.table_id)
4881  oprot.writeFieldEnd()
4882  if self.column_ids is not None:
4883  oprot.writeFieldBegin('column_ids', TType.LIST, 3)
4884  oprot.writeListBegin(TType.I32, len(self.column_ids))
4885  for iter200 in 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()
4896  if self.num_rows is not None:
4897  oprot.writeFieldBegin('num_rows', TType.I64, 5)
4898  oprot.writeI64(self.num_rows)
4899  oprot.writeFieldEnd()
4900  if self.is_default is not None:
4901  oprot.writeFieldBegin('is_default', TType.LIST, 6)
4902  oprot.writeListBegin(TType.BOOL, len(self.is_default))
4903  for iter202 in self.is_default:
4904  oprot.writeBool(iter202)
4905  oprot.writeListEnd()
4906  oprot.writeFieldEnd()
4907  oprot.writeFieldStop()
4908  oprot.writeStructEnd()
4909 
4910  def validate(self):
4911  return
4912 
4913  def __repr__(self):
4914  L = ['%s=%r' % (key, value)
4915  for key, value in self.__dict__.items()]
4916  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4917 
4918  def __eq__(self, other):
4919  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4920 
4921  def __ne__(self, other):
4922  return not (self == other)
4923 
4924 
4925 class TChunkData(object):
4926  """
4927  Attributes:
4928  - data_buffer
4929  - index_buffer
4930 
4931  """
4932 
4933 
4934  def __init__(self, data_buffer=None, index_buffer=None,):
4935  self.data_buffer = data_buffer
4936  self.index_buffer = index_buffer
4937 
4938  def read(self, iprot):
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])
4941  return
4942  iprot.readStructBegin()
4943  while True:
4944  (fname, ftype, fid) = iprot.readFieldBegin()
4945  if ftype == TType.STOP:
4946  break
4947  if fid == 1:
4948  if ftype == TType.STRING:
4949  self.data_buffer = iprot.readBinary()
4950  else:
4951  iprot.skip(ftype)
4952  elif fid == 2:
4953  if ftype == TType.STRING:
4954  self.index_buffer = iprot.readBinary()
4955  else:
4956  iprot.skip(ftype)
4957  else:
4958  iprot.skip(ftype)
4959  iprot.readFieldEnd()
4960  iprot.readStructEnd()
4961 
4962  def write(self, oprot):
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]))
4965  return
4966  oprot.writeStructBegin('TChunkData')
4967  if self.data_buffer is not None:
4968  oprot.writeFieldBegin('data_buffer', TType.STRING, 1)
4969  oprot.writeBinary(self.data_buffer)
4970  oprot.writeFieldEnd()
4971  if self.index_buffer is not None:
4972  oprot.writeFieldBegin('index_buffer', TType.STRING, 2)
4973  oprot.writeBinary(self.index_buffer)
4974  oprot.writeFieldEnd()
4975  oprot.writeFieldStop()
4976  oprot.writeStructEnd()
4977 
4978  def validate(self):
4979  return
4980 
4981  def __repr__(self):
4982  L = ['%s=%r' % (key, value)
4983  for key, value in self.__dict__.items()]
4984  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4985 
4986  def __eq__(self, other):
4987  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4988 
4989  def __ne__(self, other):
4990  return not (self == other)
4991 
4992 
4993 class TInsertChunks(object):
4994  """
4995  Attributes:
4996  - db_id
4997  - table_id
4998  - data
4999  - valid_indices
5000  - num_rows
5001 
5002  """
5003 
5004 
5005  def __init__(self, db_id=None, table_id=None, data=None, valid_indices=None, num_rows=None,):
5006  self.db_id = db_id
5007  self.table_id = table_id
5008  self.data = data
5009  self.valid_indices = valid_indices
5010  self.num_rows = num_rows
5011 
5012  def read(self, iprot):
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])
5015  return
5016  iprot.readStructBegin()
5017  while True:
5018  (fname, ftype, fid) = iprot.readFieldBegin()
5019  if ftype == TType.STOP:
5020  break
5021  if fid == 1:
5022  if ftype == TType.I32:
5023  self.db_id = iprot.readI32()
5024  else:
5025  iprot.skip(ftype)
5026  elif fid == 2:
5027  if ftype == TType.I32:
5028  self.table_id = iprot.readI32()
5029  else:
5030  iprot.skip(ftype)
5031  elif fid == 3:
5032  if ftype == TType.LIST:
5033  self.data = []
5034  (_etype206, _size203) = iprot.readListBegin()
5035  for _i207 in range(_size203):
5036  _elem208 = TChunkData()
5037  _elem208.read(iprot)
5038  self.data.append(_elem208)
5039  iprot.readListEnd()
5040  else:
5041  iprot.skip(ftype)
5042  elif fid == 4:
5043  if ftype == TType.LIST:
5044  self.valid_indices = []
5045  (_etype212, _size209) = iprot.readListBegin()
5046  for _i213 in range(_size209):
5047  _elem214 = iprot.readI64()
5048  self.valid_indices.append(_elem214)
5049  iprot.readListEnd()
5050  else:
5051  iprot.skip(ftype)
5052  elif fid == 5:
5053  if ftype == TType.I64:
5054  self.num_rows = iprot.readI64()
5055  else:
5056  iprot.skip(ftype)
5057  else:
5058  iprot.skip(ftype)
5059  iprot.readFieldEnd()
5060  iprot.readStructEnd()
5061 
5062  def write(self, oprot):
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]))
5065  return
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()
5071  if self.table_id is not None:
5072  oprot.writeFieldBegin('table_id', TType.I32, 2)
5073  oprot.writeI32(self.table_id)
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()
5082  if self.valid_indices is not None:
5083  oprot.writeFieldBegin('valid_indices', TType.LIST, 4)
5084  oprot.writeListBegin(TType.I64, len(self.valid_indices))
5085  for iter216 in self.valid_indices:
5086  oprot.writeI64(iter216)
5087  oprot.writeListEnd()
5088  oprot.writeFieldEnd()
5089  if self.num_rows is not None:
5090  oprot.writeFieldBegin('num_rows', TType.I64, 5)
5091  oprot.writeI64(self.num_rows)
5092  oprot.writeFieldEnd()
5093  oprot.writeFieldStop()
5094  oprot.writeStructEnd()
5095 
5096  def validate(self):
5097  return
5098 
5099  def __repr__(self):
5100  L = ['%s=%r' % (key, value)
5101  for key, value in self.__dict__.items()]
5102  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5103 
5104  def __eq__(self, other):
5105  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5106 
5107  def __ne__(self, other):
5108  return not (self == other)
5109 
5110 
5111 class TPendingRenderQuery(object):
5112  """
5113  Attributes:
5114  - id
5115 
5116  """
5117 
5118 
5119  def __init__(self, id=None,):
5120  self.id = id
5121 
5122  def read(self, iprot):
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])
5125  return
5126  iprot.readStructBegin()
5127  while True:
5128  (fname, ftype, fid) = iprot.readFieldBegin()
5129  if ftype == TType.STOP:
5130  break
5131  if fid == 1:
5132  if ftype == TType.I64:
5133  self.id = iprot.readI64()
5134  else:
5135  iprot.skip(ftype)
5136  else:
5137  iprot.skip(ftype)
5138  iprot.readFieldEnd()
5139  iprot.readStructEnd()
5140 
5141  def write(self, oprot):
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]))
5144  return
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()
5152 
5153  def validate(self):
5154  return
5155 
5156  def __repr__(self):
5157  L = ['%s=%r' % (key, value)
5158  for key, value in self.__dict__.items()]
5159  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5160 
5161  def __eq__(self, other):
5162  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5163 
5164  def __ne__(self, other):
5165  return not (self == other)
5166 
5167 
5168 class TRenderParseResult(object):
5169  """
5170  Attributes:
5171  - merge_type
5172  - node_id
5173  - execution_time_ms
5174  - render_time_ms
5175  - total_time_ms
5176 
5177  """
5178 
5179 
5180  def __init__(self, merge_type=None, node_id=None, execution_time_ms=None, render_time_ms=None, total_time_ms=None,):
5181  self.merge_type = merge_type
5182  self.node_id = node_id
5183  self.execution_time_ms = execution_time_ms
5184  self.render_time_ms = render_time_ms
5185  self.total_time_ms = total_time_ms
5186 
5187  def read(self, iprot):
5188  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
5189  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5190  return
5191  iprot.readStructBegin()
5192  while True:
5193  (fname, ftype, fid) = iprot.readFieldBegin()
5194  if ftype == TType.STOP:
5195  break
5196  if fid == 1:
5197  if ftype == TType.I32:
5198  self.merge_type = iprot.readI32()
5199  else:
5200  iprot.skip(ftype)
5201  elif fid == 2:
5202  if ftype == TType.I32:
5203  self.node_id = iprot.readI32()
5204  else:
5205  iprot.skip(ftype)
5206  elif fid == 3:
5207  if ftype == TType.I64:
5208  self.execution_time_ms = iprot.readI64()
5209  else:
5210  iprot.skip(ftype)
5211  elif fid == 4:
5212  if ftype == TType.I64:
5213  self.render_time_ms = iprot.readI64()
5214  else:
5215  iprot.skip(ftype)
5216  elif fid == 5:
5217  if ftype == TType.I64:
5218  self.total_time_ms = iprot.readI64()
5219  else:
5220  iprot.skip(ftype)
5221  else:
5222  iprot.skip(ftype)
5223  iprot.readFieldEnd()
5224  iprot.readStructEnd()
5225 
5226  def write(self, oprot):
5227  if oprot._fast_encode is not None and self.thrift_spec is not None:
5228  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
5229  return
5230  oprot.writeStructBegin('TRenderParseResult')
5231  if self.merge_type is not None:
5232  oprot.writeFieldBegin('merge_type', TType.I32, 1)
5233  oprot.writeI32(self.merge_type)
5234  oprot.writeFieldEnd()
5235  if self.node_id is not None:
5236  oprot.writeFieldBegin('node_id', TType.I32, 2)
5237  oprot.writeI32(self.node_id)
5238  oprot.writeFieldEnd()
5239  if self.execution_time_ms is not None:
5240  oprot.writeFieldBegin('execution_time_ms', TType.I64, 3)
5241  oprot.writeI64(self.execution_time_ms)
5242  oprot.writeFieldEnd()
5243  if self.render_time_ms is not None:
5244  oprot.writeFieldBegin('render_time_ms', TType.I64, 4)
5245  oprot.writeI64(self.render_time_ms)
5246  oprot.writeFieldEnd()
5247  if self.total_time_ms is not None:
5248  oprot.writeFieldBegin('total_time_ms', TType.I64, 5)
5249  oprot.writeI64(self.total_time_ms)
5250  oprot.writeFieldEnd()
5251  oprot.writeFieldStop()
5252  oprot.writeStructEnd()
5253 
5254  def validate(self):
5255  return
5256 
5257  def __repr__(self):
5258  L = ['%s=%r' % (key, value)
5259  for key, value in self.__dict__.items()]
5260  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5261 
5262  def __eq__(self, other):
5263  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5264 
5265  def __ne__(self, other):
5266  return not (self == other)
5267 
5268 
5270  """
5271  Attributes:
5272  - num_pixel_channels
5273  - num_pixel_samples
5274  - pixels
5275  - row_ids_A
5276  - row_ids_B
5277  - table_ids
5278  - accum_data
5279  - accum_depth
5280 
5281  """
5282 
5283 
5284  def __init__(self, num_pixel_channels=None, num_pixel_samples=None, pixels=None, row_ids_A=None, row_ids_B=None, table_ids=None, accum_data=None, accum_depth=None,):
5285  self.num_pixel_channels = num_pixel_channels
5286  self.num_pixel_samples = num_pixel_samples
5287  self.pixels = pixels
5288  self.row_ids_A = row_ids_A
5289  self.row_ids_B = row_ids_B
5290  self.table_ids = table_ids
5291  self.accum_data = accum_data
5292  self.accum_depth = accum_depth
5293 
5294  def read(self, iprot):
5295  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
5296  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5297  return
5298  iprot.readStructBegin()
5299  while True:
5300  (fname, ftype, fid) = iprot.readFieldBegin()
5301  if ftype == TType.STOP:
5302  break
5303  if fid == 1:
5304  if ftype == TType.I32:
5305  self.num_pixel_channels = iprot.readI32()
5306  else:
5307  iprot.skip(ftype)
5308  elif fid == 2:
5309  if ftype == TType.I32:
5310  self.num_pixel_samples = iprot.readI32()
5311  else:
5312  iprot.skip(ftype)
5313  elif fid == 3:
5314  if ftype == TType.STRING:
5315  self.pixels = iprot.readBinary()
5316  else:
5317  iprot.skip(ftype)
5318  elif fid == 4:
5319  if ftype == TType.STRING:
5320  self.row_ids_A = iprot.readBinary()
5321  else:
5322  iprot.skip(ftype)
5323  elif fid == 5:
5324  if ftype == TType.STRING:
5325  self.row_ids_B = iprot.readBinary()
5326  else:
5327  iprot.skip(ftype)
5328  elif fid == 6:
5329  if ftype == TType.STRING:
5330  self.table_ids = iprot.readBinary()
5331  else:
5332  iprot.skip(ftype)
5333  elif fid == 7:
5334  if ftype == TType.STRING:
5335  self.accum_data = iprot.readBinary()
5336  else:
5337  iprot.skip(ftype)
5338  elif fid == 8:
5339  if ftype == TType.I32:
5340  self.accum_depth = iprot.readI32()
5341  else:
5342  iprot.skip(ftype)
5343  else:
5344  iprot.skip(ftype)
5345  iprot.readFieldEnd()
5346  iprot.readStructEnd()
5347 
5348  def write(self, oprot):
5349  if oprot._fast_encode is not None and self.thrift_spec is not None:
5350  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
5351  return
5352  oprot.writeStructBegin('TRawRenderPassDataResult')
5353  if self.num_pixel_channels is not None:
5354  oprot.writeFieldBegin('num_pixel_channels', TType.I32, 1)
5355  oprot.writeI32(self.num_pixel_channels)
5356  oprot.writeFieldEnd()
5357  if self.num_pixel_samples is not None:
5358  oprot.writeFieldBegin('num_pixel_samples', TType.I32, 2)
5359  oprot.writeI32(self.num_pixel_samples)
5360  oprot.writeFieldEnd()
5361  if self.pixels is not None:
5362  oprot.writeFieldBegin('pixels', TType.STRING, 3)
5363  oprot.writeBinary(self.pixels)
5364  oprot.writeFieldEnd()
5365  if self.row_ids_A is not None:
5366  oprot.writeFieldBegin('row_ids_A', TType.STRING, 4)
5367  oprot.writeBinary(self.row_ids_A)
5368  oprot.writeFieldEnd()
5369  if self.row_ids_B is not None:
5370  oprot.writeFieldBegin('row_ids_B', TType.STRING, 5)
5371  oprot.writeBinary(self.row_ids_B)
5372  oprot.writeFieldEnd()
5373  if self.table_ids is not None:
5374  oprot.writeFieldBegin('table_ids', TType.STRING, 6)
5375  oprot.writeBinary(self.table_ids)
5376  oprot.writeFieldEnd()
5377  if self.accum_data is not None:
5378  oprot.writeFieldBegin('accum_data', TType.STRING, 7)
5379  oprot.writeBinary(self.accum_data)
5380  oprot.writeFieldEnd()
5381  if self.accum_depth is not None:
5382  oprot.writeFieldBegin('accum_depth', TType.I32, 8)
5383  oprot.writeI32(self.accum_depth)
5384  oprot.writeFieldEnd()
5385  oprot.writeFieldStop()
5386  oprot.writeStructEnd()
5387 
5388  def validate(self):
5389  return
5390 
5391  def __repr__(self):
5392  L = ['%s=%r' % (key, value)
5393  for key, value in self.__dict__.items()]
5394  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5395 
5396  def __eq__(self, other):
5397  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5398 
5399  def __ne__(self, other):
5400  return not (self == other)
5401 
5402 
5403 class TRawPixelData(object):
5404  """
5405  Attributes:
5406  - width
5407  - height
5408  - render_pass_map
5409 
5410  """
5411 
5412 
5413  def __init__(self, width=None, height=None, render_pass_map=None,):
5414  self.width = width
5415  self.height = height
5416  self.render_pass_map = render_pass_map
5417 
5418  def read(self, iprot):
5419  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
5420  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5421  return
5422  iprot.readStructBegin()
5423  while True:
5424  (fname, ftype, fid) = iprot.readFieldBegin()
5425  if ftype == TType.STOP:
5426  break
5427  if fid == 1:
5428  if ftype == TType.I32:
5429  self.width = iprot.readI32()
5430  else:
5431  iprot.skip(ftype)
5432  elif fid == 2:
5433  if ftype == TType.I32:
5434  self.height = iprot.readI32()
5435  else:
5436  iprot.skip(ftype)
5437  elif fid == 3:
5438  if ftype == TType.MAP:
5439  self.render_pass_map = {}
5440  (_ktype218, _vtype219, _size217) = iprot.readMapBegin()
5441  for _i221 in range(_size217):
5442  _key222 = iprot.readI32()
5443  _val223 = TRawRenderPassDataResult()
5444  _val223.read(iprot)
5445  self.render_pass_map[_key222] = _val223
5446  iprot.readMapEnd()
5447  else:
5448  iprot.skip(ftype)
5449  else:
5450  iprot.skip(ftype)
5451  iprot.readFieldEnd()
5452  iprot.readStructEnd()
5453 
5454  def write(self, oprot):
5455  if oprot._fast_encode is not None and self.thrift_spec is not None:
5456  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
5457  return
5458  oprot.writeStructBegin('TRawPixelData')
5459  if self.width is not None:
5460  oprot.writeFieldBegin('width', TType.I32, 1)
5461  oprot.writeI32(self.width)
5462  oprot.writeFieldEnd()
5463  if self.height is not None:
5464  oprot.writeFieldBegin('height', TType.I32, 2)
5465  oprot.writeI32(self.height)
5466  oprot.writeFieldEnd()
5467  if self.render_pass_map is not None:
5468  oprot.writeFieldBegin('render_pass_map', TType.MAP, 3)
5469  oprot.writeMapBegin(TType.I32, TType.STRUCT, len(self.render_pass_map))
5470  for kiter224, viter225 in self.render_pass_map.items():
5471  oprot.writeI32(kiter224)
5472  viter225.write(oprot)
5473  oprot.writeMapEnd()
5474  oprot.writeFieldEnd()
5475  oprot.writeFieldStop()
5476  oprot.writeStructEnd()
5477 
5478  def validate(self):
5479  return
5480 
5481  def __repr__(self):
5482  L = ['%s=%r' % (key, value)
5483  for key, value in self.__dict__.items()]
5484  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5485 
5486  def __eq__(self, other):
5487  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5488 
5489  def __ne__(self, other):
5490  return not (self == other)
5491 
5492 
5493 class TRenderDatum(object):
5494  """
5495  Attributes:
5496  - type
5497  - cnt
5498  - value
5499 
5500  """
5501 
5502 
5503  def __init__(self, type=None, cnt=None, value=None,):
5504  self.type = type
5505  self.cnt = cnt
5506  self.value = value
5507 
5508  def read(self, iprot):
5509  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
5510  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5511  return
5512  iprot.readStructBegin()
5513  while True:
5514  (fname, ftype, fid) = iprot.readFieldBegin()
5515  if ftype == TType.STOP:
5516  break
5517  if fid == 1:
5518  if ftype == TType.I32:
5519  self.type = iprot.readI32()
5520  else:
5521  iprot.skip(ftype)
5522  elif fid == 2:
5523  if ftype == TType.I32:
5524  self.cnt = iprot.readI32()
5525  else:
5526  iprot.skip(ftype)
5527  elif fid == 3:
5528  if ftype == TType.STRING:
5529  self.value = iprot.readBinary()
5530  else:
5531  iprot.skip(ftype)
5532  else:
5533  iprot.skip(ftype)
5534  iprot.readFieldEnd()
5535  iprot.readStructEnd()
5536 
5537  def write(self, oprot):
5538  if oprot._fast_encode is not None and self.thrift_spec is not None:
5539  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
5540  return
5541  oprot.writeStructBegin('TRenderDatum')
5542  if self.type is not None:
5543  oprot.writeFieldBegin('type', TType.I32, 1)
5544  oprot.writeI32(self.type)
5545  oprot.writeFieldEnd()
5546  if self.cnt is not None:
5547  oprot.writeFieldBegin('cnt', TType.I32, 2)
5548  oprot.writeI32(self.cnt)
5549  oprot.writeFieldEnd()
5550  if self.value is not None:
5551  oprot.writeFieldBegin('value', TType.STRING, 3)
5552  oprot.writeBinary(self.value)
5553  oprot.writeFieldEnd()
5554  oprot.writeFieldStop()
5555  oprot.writeStructEnd()
5556 
5557  def validate(self):
5558  return
5559 
5560  def __repr__(self):
5561  L = ['%s=%r' % (key, value)
5562  for key, value in self.__dict__.items()]
5563  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5564 
5565  def __eq__(self, other):
5566  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5567 
5568  def __ne__(self, other):
5569  return not (self == other)
5570 
5571 
5572 class TRenderStepResult(object):
5573  """
5574  Attributes:
5575  - merge_data
5576  - raw_pixel_data
5577  - execution_time_ms
5578  - render_time_ms
5579  - total_time_ms
5580 
5581  """
5582 
5583 
5584  def __init__(self, merge_data=None, raw_pixel_data=None, execution_time_ms=None, render_time_ms=None, total_time_ms=None,):
5585  self.merge_data = merge_data
5586  self.raw_pixel_data = raw_pixel_data
5587  self.execution_time_ms = execution_time_ms
5588  self.render_time_ms = render_time_ms
5589  self.total_time_ms = total_time_ms
5590 
5591  def read(self, iprot):
5592  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
5593  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5594  return
5595  iprot.readStructBegin()
5596  while True:
5597  (fname, ftype, fid) = iprot.readFieldBegin()
5598  if ftype == TType.STOP:
5599  break
5600  if fid == 1:
5601  if ftype == TType.MAP:
5602  self.merge_data = {}
5603  (_ktype227, _vtype228, _size226) = iprot.readMapBegin()
5604  for _i230 in range(_size226):
5605  _key231 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
5606  _val232 = {}
5607  (_ktype234, _vtype235, _size233) = iprot.readMapBegin()
5608  for _i237 in range(_size233):
5609  _key238 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
5610  _val239 = {}
5611  (_ktype241, _vtype242, _size240) = iprot.readMapBegin()
5612  for _i244 in range(_size240):
5613  _key245 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
5614  _val246 = {}
5615  (_ktype248, _vtype249, _size247) = iprot.readMapBegin()
5616  for _i251 in range(_size247):
5617  _key252 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
5618  _val253 = []
5619  (_etype257, _size254) = iprot.readListBegin()
5620  for _i258 in range(_size254):
5621  _elem259 = TRenderDatum()
5622  _elem259.read(iprot)
5623  _val253.append(_elem259)
5624  iprot.readListEnd()
5625  _val246[_key252] = _val253
5626  iprot.readMapEnd()
5627  _val239[_key245] = _val246
5628  iprot.readMapEnd()
5629  _val232[_key238] = _val239
5630  iprot.readMapEnd()
5631  self.merge_data[_key231] = _val232
5632  iprot.readMapEnd()
5633  else:
5634  iprot.skip(ftype)
5635  elif fid == 2:
5636  if ftype == TType.STRUCT:
5637  self.raw_pixel_data = TRawPixelData()
5638  self.raw_pixel_data.read(iprot)
5639  else:
5640  iprot.skip(ftype)
5641  elif fid == 3:
5642  if ftype == TType.I64:
5643  self.execution_time_ms = iprot.readI64()
5644  else:
5645  iprot.skip(ftype)
5646  elif fid == 4:
5647  if ftype == TType.I64:
5648  self.render_time_ms = iprot.readI64()
5649  else:
5650  iprot.skip(ftype)
5651  elif fid == 5:
5652  if ftype == TType.I64:
5653  self.total_time_ms = iprot.readI64()
5654  else:
5655  iprot.skip(ftype)
5656  else:
5657  iprot.skip(ftype)
5658  iprot.readFieldEnd()
5659  iprot.readStructEnd()
5660 
5661  def write(self, oprot):
5662  if oprot._fast_encode is not None and self.thrift_spec is not None:
5663  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
5664  return
5665  oprot.writeStructBegin('TRenderStepResult')
5666  if self.merge_data is not None:
5667  oprot.writeFieldBegin('merge_data', TType.MAP, 1)
5668  oprot.writeMapBegin(TType.STRING, TType.MAP, len(self.merge_data))
5669  for kiter260, viter261 in self.merge_data.items():
5670  oprot.writeString(kiter260.encode('utf-8') if sys.version_info[0] == 2 else kiter260)
5671  oprot.writeMapBegin(TType.STRING, TType.MAP, len(viter261))
5672  for kiter262, viter263 in viter261.items():
5673  oprot.writeString(kiter262.encode('utf-8') if sys.version_info[0] == 2 else kiter262)
5674  oprot.writeMapBegin(TType.STRING, TType.MAP, len(viter263))
5675  for kiter264, viter265 in viter263.items():
5676  oprot.writeString(kiter264.encode('utf-8') if sys.version_info[0] == 2 else kiter264)
5677  oprot.writeMapBegin(TType.STRING, TType.LIST, len(viter265))
5678  for kiter266, viter267 in viter265.items():
5679  oprot.writeString(kiter266.encode('utf-8') if sys.version_info[0] == 2 else kiter266)
5680  oprot.writeListBegin(TType.STRUCT, len(viter267))
5681  for iter268 in viter267:
5682  iter268.write(oprot)
5683  oprot.writeListEnd()
5684  oprot.writeMapEnd()
5685  oprot.writeMapEnd()
5686  oprot.writeMapEnd()
5687  oprot.writeMapEnd()
5688  oprot.writeFieldEnd()
5689  if self.raw_pixel_data is not None:
5690  oprot.writeFieldBegin('raw_pixel_data', TType.STRUCT, 2)
5691  self.raw_pixel_data.write(oprot)
5692  oprot.writeFieldEnd()
5693  if self.execution_time_ms is not None:
5694  oprot.writeFieldBegin('execution_time_ms', TType.I64, 3)
5695  oprot.writeI64(self.execution_time_ms)
5696  oprot.writeFieldEnd()
5697  if self.render_time_ms is not None:
5698  oprot.writeFieldBegin('render_time_ms', TType.I64, 4)
5699  oprot.writeI64(self.render_time_ms)
5700  oprot.writeFieldEnd()
5701  if self.total_time_ms is not None:
5702  oprot.writeFieldBegin('total_time_ms', TType.I64, 5)
5703  oprot.writeI64(self.total_time_ms)
5704  oprot.writeFieldEnd()
5705  oprot.writeFieldStop()
5706  oprot.writeStructEnd()
5707 
5708  def validate(self):
5709  return
5710 
5711  def __repr__(self):
5712  L = ['%s=%r' % (key, value)
5713  for key, value in self.__dict__.items()]
5714  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5715 
5716  def __eq__(self, other):
5717  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5718 
5719  def __ne__(self, other):
5720  return not (self == other)
5721 
5722 
5723 class TDatabasePermissions(object):
5724  """
5725  Attributes:
5726  - create_
5727  - delete_
5728  - view_sql_editor_
5729  - access_
5730 
5731  """
5732 
5733 
5734  def __init__(self, create_=None, delete_=None, view_sql_editor_=None, access_=None,):
5735  self.create_ = create_
5736  self.delete_ = delete_
5737  self.view_sql_editor_ = view_sql_editor_
5738  self.access_ = access_
5739 
5740  def read(self, iprot):
5741  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
5742  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5743  return
5744  iprot.readStructBegin()
5745  while True:
5746  (fname, ftype, fid) = iprot.readFieldBegin()
5747  if ftype == TType.STOP:
5748  break
5749  if fid == 1:
5750  if ftype == TType.BOOL:
5751  self.create_ = iprot.readBool()
5752  else:
5753  iprot.skip(ftype)
5754  elif fid == 2:
5755  if ftype == TType.BOOL:
5756  self.delete_ = iprot.readBool()
5757  else:
5758  iprot.skip(ftype)
5759  elif fid == 3:
5760  if ftype == TType.BOOL:
5761  self.view_sql_editor_ = iprot.readBool()
5762  else:
5763  iprot.skip(ftype)
5764  elif fid == 4:
5765  if ftype == TType.BOOL:
5766  self.access_ = iprot.readBool()
5767  else:
5768  iprot.skip(ftype)
5769  else:
5770  iprot.skip(ftype)
5771  iprot.readFieldEnd()
5772  iprot.readStructEnd()
5773 
5774  def write(self, oprot):
5775  if oprot._fast_encode is not None and self.thrift_spec is not None:
5776  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
5777  return
5778  oprot.writeStructBegin('TDatabasePermissions')
5779  if self.create_ is not None:
5780  oprot.writeFieldBegin('create_', TType.BOOL, 1)
5781  oprot.writeBool(self.create_)
5782  oprot.writeFieldEnd()
5783  if self.delete_ is not None:
5784  oprot.writeFieldBegin('delete_', TType.BOOL, 2)
5785  oprot.writeBool(self.delete_)
5786  oprot.writeFieldEnd()
5787  if self.view_sql_editor_ is not None:
5788  oprot.writeFieldBegin('view_sql_editor_', TType.BOOL, 3)
5789  oprot.writeBool(self.view_sql_editor_)
5790  oprot.writeFieldEnd()
5791  if self.access_ is not None:
5792  oprot.writeFieldBegin('access_', TType.BOOL, 4)
5793  oprot.writeBool(self.access_)
5794  oprot.writeFieldEnd()
5795  oprot.writeFieldStop()
5796  oprot.writeStructEnd()
5797 
5798  def validate(self):
5799  return
5800 
5801  def __repr__(self):
5802  L = ['%s=%r' % (key, value)
5803  for key, value in self.__dict__.items()]
5804  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5805 
5806  def __eq__(self, other):
5807  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5808 
5809  def __ne__(self, other):
5810  return not (self == other)
5811 
5812 
5813 class TTablePermissions(object):
5814  """
5815  Attributes:
5816  - create_
5817  - drop_
5818  - select_
5819  - insert_
5820  - update_
5821  - delete_
5822  - truncate_
5823  - alter_
5824 
5825  """
5826 
5827 
5828  def __init__(self, create_=None, drop_=None, select_=None, insert_=None, update_=None, delete_=None, truncate_=None, alter_=None,):
5829  self.create_ = create_
5830  self.drop_ = drop_
5831  self.select_ = select_
5832  self.insert_ = insert_
5833  self.update_ = update_
5834  self.delete_ = delete_
5835  self.truncate_ = truncate_
5836  self.alter_ = alter_
5837 
5838  def read(self, iprot):
5839  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
5840  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5841  return
5842  iprot.readStructBegin()
5843  while True:
5844  (fname, ftype, fid) = iprot.readFieldBegin()
5845  if ftype == TType.STOP:
5846  break
5847  if fid == 1:
5848  if ftype == TType.BOOL:
5849  self.create_ = iprot.readBool()
5850  else:
5851  iprot.skip(ftype)
5852  elif fid == 2:
5853  if ftype == TType.BOOL:
5854  self.drop_ = iprot.readBool()
5855  else:
5856  iprot.skip(ftype)
5857  elif fid == 3:
5858  if ftype == TType.BOOL:
5859  self.select_ = iprot.readBool()
5860  else:
5861  iprot.skip(ftype)
5862  elif fid == 4:
5863  if ftype == TType.BOOL:
5864  self.insert_ = iprot.readBool()
5865  else:
5866  iprot.skip(ftype)
5867  elif fid == 5:
5868  if ftype == TType.BOOL:
5869  self.update_ = iprot.readBool()
5870  else:
5871  iprot.skip(ftype)
5872  elif fid == 6:
5873  if ftype == TType.BOOL:
5874  self.delete_ = iprot.readBool()
5875  else:
5876  iprot.skip(ftype)
5877  elif fid == 7:
5878  if ftype == TType.BOOL:
5879  self.truncate_ = iprot.readBool()
5880  else:
5881  iprot.skip(ftype)
5882  elif fid == 8:
5883  if ftype == TType.BOOL:
5884  self.alter_ = iprot.readBool()
5885  else:
5886  iprot.skip(ftype)
5887  else:
5888  iprot.skip(ftype)
5889  iprot.readFieldEnd()
5890  iprot.readStructEnd()
5891 
5892  def write(self, oprot):
5893  if oprot._fast_encode is not None and self.thrift_spec is not None:
5894  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
5895  return
5896  oprot.writeStructBegin('TTablePermissions')
5897  if self.create_ is not None:
5898  oprot.writeFieldBegin('create_', TType.BOOL, 1)
5899  oprot.writeBool(self.create_)
5900  oprot.writeFieldEnd()
5901  if self.drop_ is not None:
5902  oprot.writeFieldBegin('drop_', TType.BOOL, 2)
5903  oprot.writeBool(self.drop_)
5904  oprot.writeFieldEnd()
5905  if self.select_ is not None:
5906  oprot.writeFieldBegin('select_', TType.BOOL, 3)
5907  oprot.writeBool(self.select_)
5908  oprot.writeFieldEnd()
5909  if self.insert_ is not None:
5910  oprot.writeFieldBegin('insert_', TType.BOOL, 4)
5911  oprot.writeBool(self.insert_)
5912  oprot.writeFieldEnd()
5913  if self.update_ is not None:
5914  oprot.writeFieldBegin('update_', TType.BOOL, 5)
5915  oprot.writeBool(self.update_)
5916  oprot.writeFieldEnd()
5917  if self.delete_ is not None:
5918  oprot.writeFieldBegin('delete_', TType.BOOL, 6)
5919  oprot.writeBool(self.delete_)
5920  oprot.writeFieldEnd()
5921  if self.truncate_ is not None:
5922  oprot.writeFieldBegin('truncate_', TType.BOOL, 7)
5923  oprot.writeBool(self.truncate_)
5924  oprot.writeFieldEnd()
5925  if self.alter_ is not None:
5926  oprot.writeFieldBegin('alter_', TType.BOOL, 8)
5927  oprot.writeBool(self.alter_)
5928  oprot.writeFieldEnd()
5929  oprot.writeFieldStop()
5930  oprot.writeStructEnd()
5931 
5932  def validate(self):
5933  return
5934 
5935  def __repr__(self):
5936  L = ['%s=%r' % (key, value)
5937  for key, value in self.__dict__.items()]
5938  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5939 
5940  def __eq__(self, other):
5941  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5942 
5943  def __ne__(self, other):
5944  return not (self == other)
5945 
5946 
5948  """
5949  Attributes:
5950  - create_
5951  - delete_
5952  - view_
5953  - edit_
5954 
5955  """
5956 
5957 
5958  def __init__(self, create_=None, delete_=None, view_=None, edit_=None,):
5959  self.create_ = create_
5960  self.delete_ = delete_
5961  self.view_ = view_
5962  self.edit_ = edit_
5963 
5964  def read(self, iprot):
5965  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
5966  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
5967  return
5968  iprot.readStructBegin()
5969  while True:
5970  (fname, ftype, fid) = iprot.readFieldBegin()
5971  if ftype == TType.STOP:
5972  break
5973  if fid == 1:
5974  if ftype == TType.BOOL:
5975  self.create_ = iprot.readBool()
5976  else:
5977  iprot.skip(ftype)
5978  elif fid == 2:
5979  if ftype == TType.BOOL:
5980  self.delete_ = iprot.readBool()
5981  else:
5982  iprot.skip(ftype)
5983  elif fid == 3:
5984  if ftype == TType.BOOL:
5985  self.view_ = iprot.readBool()
5986  else:
5987  iprot.skip(ftype)
5988  elif fid == 4:
5989  if ftype == TType.BOOL:
5990  self.edit_ = iprot.readBool()
5991  else:
5992  iprot.skip(ftype)
5993  else:
5994  iprot.skip(ftype)
5995  iprot.readFieldEnd()
5996  iprot.readStructEnd()
5997 
5998  def write(self, oprot):
5999  if oprot._fast_encode is not None and self.thrift_spec is not None:
6000  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6001  return
6002  oprot.writeStructBegin('TDashboardPermissions')
6003  if self.create_ is not None:
6004  oprot.writeFieldBegin('create_', TType.BOOL, 1)
6005  oprot.writeBool(self.create_)
6006  oprot.writeFieldEnd()
6007  if self.delete_ is not None:
6008  oprot.writeFieldBegin('delete_', TType.BOOL, 2)
6009  oprot.writeBool(self.delete_)
6010  oprot.writeFieldEnd()
6011  if self.view_ is not None:
6012  oprot.writeFieldBegin('view_', TType.BOOL, 3)
6013  oprot.writeBool(self.view_)
6014  oprot.writeFieldEnd()
6015  if self.edit_ is not None:
6016  oprot.writeFieldBegin('edit_', TType.BOOL, 4)
6017  oprot.writeBool(self.edit_)
6018  oprot.writeFieldEnd()
6019  oprot.writeFieldStop()
6020  oprot.writeStructEnd()
6021 
6022  def validate(self):
6023  return
6024 
6025  def __repr__(self):
6026  L = ['%s=%r' % (key, value)
6027  for key, value in self.__dict__.items()]
6028  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6029 
6030  def __eq__(self, other):
6031  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6032 
6033  def __ne__(self, other):
6034  return not (self == other)
6035 
6036 
6037 class TViewPermissions(object):
6038  """
6039  Attributes:
6040  - create_
6041  - drop_
6042  - select_
6043  - insert_
6044  - update_
6045  - delete_
6046 
6047  """
6048 
6049 
6050  def __init__(self, create_=None, drop_=None, select_=None, insert_=None, update_=None, delete_=None,):
6051  self.create_ = create_
6052  self.drop_ = drop_
6053  self.select_ = select_
6054  self.insert_ = insert_
6055  self.update_ = update_
6056  self.delete_ = delete_
6057 
6058  def read(self, iprot):
6059  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
6060  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6061  return
6062  iprot.readStructBegin()
6063  while True:
6064  (fname, ftype, fid) = iprot.readFieldBegin()
6065  if ftype == TType.STOP:
6066  break
6067  if fid == 1:
6068  if ftype == TType.BOOL:
6069  self.create_ = iprot.readBool()
6070  else:
6071  iprot.skip(ftype)
6072  elif fid == 2:
6073  if ftype == TType.BOOL:
6074  self.drop_ = iprot.readBool()
6075  else:
6076  iprot.skip(ftype)
6077  elif fid == 3:
6078  if ftype == TType.BOOL:
6079  self.select_ = iprot.readBool()
6080  else:
6081  iprot.skip(ftype)
6082  elif fid == 4:
6083  if ftype == TType.BOOL:
6084  self.insert_ = iprot.readBool()
6085  else:
6086  iprot.skip(ftype)
6087  elif fid == 5:
6088  if ftype == TType.BOOL:
6089  self.update_ = iprot.readBool()
6090  else:
6091  iprot.skip(ftype)
6092  elif fid == 6:
6093  if ftype == TType.BOOL:
6094  self.delete_ = iprot.readBool()
6095  else:
6096  iprot.skip(ftype)
6097  else:
6098  iprot.skip(ftype)
6099  iprot.readFieldEnd()
6100  iprot.readStructEnd()
6101 
6102  def write(self, oprot):
6103  if oprot._fast_encode is not None and self.thrift_spec is not None:
6104  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6105  return
6106  oprot.writeStructBegin('TViewPermissions')
6107  if self.create_ is not None:
6108  oprot.writeFieldBegin('create_', TType.BOOL, 1)
6109  oprot.writeBool(self.create_)
6110  oprot.writeFieldEnd()
6111  if self.drop_ is not None:
6112  oprot.writeFieldBegin('drop_', TType.BOOL, 2)
6113  oprot.writeBool(self.drop_)
6114  oprot.writeFieldEnd()
6115  if self.select_ is not None:
6116  oprot.writeFieldBegin('select_', TType.BOOL, 3)
6117  oprot.writeBool(self.select_)
6118  oprot.writeFieldEnd()
6119  if self.insert_ is not None:
6120  oprot.writeFieldBegin('insert_', TType.BOOL, 4)
6121  oprot.writeBool(self.insert_)
6122  oprot.writeFieldEnd()
6123  if self.update_ is not None:
6124  oprot.writeFieldBegin('update_', TType.BOOL, 5)
6125  oprot.writeBool(self.update_)
6126  oprot.writeFieldEnd()
6127  if self.delete_ is not None:
6128  oprot.writeFieldBegin('delete_', TType.BOOL, 6)
6129  oprot.writeBool(self.delete_)
6130  oprot.writeFieldEnd()
6131  oprot.writeFieldStop()
6132  oprot.writeStructEnd()
6133 
6134  def validate(self):
6135  return
6136 
6137  def __repr__(self):
6138  L = ['%s=%r' % (key, value)
6139  for key, value in self.__dict__.items()]
6140  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6141 
6142  def __eq__(self, other):
6143  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6144 
6145  def __ne__(self, other):
6146  return not (self == other)
6147 
6148 
6149 class TServerPermissions(object):
6150  """
6151  Attributes:
6152  - create_
6153  - drop_
6154  - alter_
6155  - usage_
6156 
6157  """
6158 
6159 
6160  def __init__(self, create_=None, drop_=None, alter_=None, usage_=None,):
6161  self.create_ = create_
6162  self.drop_ = drop_
6163  self.alter_ = alter_
6164  self.usage_ = usage_
6165 
6166  def read(self, iprot):
6167  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
6168  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6169  return
6170  iprot.readStructBegin()
6171  while True:
6172  (fname, ftype, fid) = iprot.readFieldBegin()
6173  if ftype == TType.STOP:
6174  break
6175  if fid == 1:
6176  if ftype == TType.BOOL:
6177  self.create_ = iprot.readBool()
6178  else:
6179  iprot.skip(ftype)
6180  elif fid == 2:
6181  if ftype == TType.BOOL:
6182  self.drop_ = iprot.readBool()
6183  else:
6184  iprot.skip(ftype)
6185  elif fid == 3:
6186  if ftype == TType.BOOL:
6187  self.alter_ = iprot.readBool()
6188  else:
6189  iprot.skip(ftype)
6190  elif fid == 4:
6191  if ftype == TType.BOOL:
6192  self.usage_ = iprot.readBool()
6193  else:
6194  iprot.skip(ftype)
6195  else:
6196  iprot.skip(ftype)
6197  iprot.readFieldEnd()
6198  iprot.readStructEnd()
6199 
6200  def write(self, oprot):
6201  if oprot._fast_encode is not None and self.thrift_spec is not None:
6202  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6203  return
6204  oprot.writeStructBegin('TServerPermissions')
6205  if self.create_ is not None:
6206  oprot.writeFieldBegin('create_', TType.BOOL, 1)
6207  oprot.writeBool(self.create_)
6208  oprot.writeFieldEnd()
6209  if self.drop_ is not None:
6210  oprot.writeFieldBegin('drop_', TType.BOOL, 2)
6211  oprot.writeBool(self.drop_)
6212  oprot.writeFieldEnd()
6213  if self.alter_ is not None:
6214  oprot.writeFieldBegin('alter_', TType.BOOL, 3)
6215  oprot.writeBool(self.alter_)
6216  oprot.writeFieldEnd()
6217  if self.usage_ is not None:
6218  oprot.writeFieldBegin('usage_', TType.BOOL, 4)
6219  oprot.writeBool(self.usage_)
6220  oprot.writeFieldEnd()
6221  oprot.writeFieldStop()
6222  oprot.writeStructEnd()
6223 
6224  def validate(self):
6225  return
6226 
6227  def __repr__(self):
6228  L = ['%s=%r' % (key, value)
6229  for key, value in self.__dict__.items()]
6230  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6231 
6232  def __eq__(self, other):
6233  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6234 
6235  def __ne__(self, other):
6236  return not (self == other)
6237 
6238 
6239 class TDBObjectPermissions(object):
6240  """
6241  Attributes:
6242  - database_permissions_
6243  - table_permissions_
6244  - dashboard_permissions_
6245  - view_permissions_
6246  - server_permissions_
6247 
6248  """
6249 
6250 
6251  def __init__(self, database_permissions_=None, table_permissions_=None, dashboard_permissions_=None, view_permissions_=None, server_permissions_=None,):
6252  self.database_permissions_ = database_permissions_
6253  self.table_permissions_ = table_permissions_
6254  self.dashboard_permissions_ = dashboard_permissions_
6255  self.view_permissions_ = view_permissions_
6256  self.server_permissions_ = server_permissions_
6257 
6258  def read(self, iprot):
6259  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
6260  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6261  return
6262  iprot.readStructBegin()
6263  while True:
6264  (fname, ftype, fid) = iprot.readFieldBegin()
6265  if ftype == TType.STOP:
6266  break
6267  if fid == 1:
6268  if ftype == TType.STRUCT:
6270  self.database_permissions_.read(iprot)
6271  else:
6272  iprot.skip(ftype)
6273  elif fid == 2:
6274  if ftype == TType.STRUCT:
6276  self.table_permissions_.read(iprot)
6277  else:
6278  iprot.skip(ftype)
6279  elif fid == 3:
6280  if ftype == TType.STRUCT:
6282  self.dashboard_permissions_.read(iprot)
6283  else:
6284  iprot.skip(ftype)
6285  elif fid == 4:
6286  if ftype == TType.STRUCT:
6288  self.view_permissions_.read(iprot)
6289  else:
6290  iprot.skip(ftype)
6291  elif fid == 5:
6292  if ftype == TType.STRUCT:
6294  self.server_permissions_.read(iprot)
6295  else:
6296  iprot.skip(ftype)
6297  else:
6298  iprot.skip(ftype)
6299  iprot.readFieldEnd()
6300  iprot.readStructEnd()
6301 
6302  def write(self, oprot):
6303  if oprot._fast_encode is not None and self.thrift_spec is not None:
6304  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6305  return
6306  oprot.writeStructBegin('TDBObjectPermissions')
6307  if self.database_permissions_ is not None:
6308  oprot.writeFieldBegin('database_permissions_', TType.STRUCT, 1)
6309  self.database_permissions_.write(oprot)
6310  oprot.writeFieldEnd()
6311  if self.table_permissions_ is not None:
6312  oprot.writeFieldBegin('table_permissions_', TType.STRUCT, 2)
6313  self.table_permissions_.write(oprot)
6314  oprot.writeFieldEnd()
6315  if self.dashboard_permissions_ is not None:
6316  oprot.writeFieldBegin('dashboard_permissions_', TType.STRUCT, 3)
6317  self.dashboard_permissions_.write(oprot)
6318  oprot.writeFieldEnd()
6319  if self.view_permissions_ is not None:
6320  oprot.writeFieldBegin('view_permissions_', TType.STRUCT, 4)
6321  self.view_permissions_.write(oprot)
6322  oprot.writeFieldEnd()
6323  if self.server_permissions_ is not None:
6324  oprot.writeFieldBegin('server_permissions_', TType.STRUCT, 5)
6325  self.server_permissions_.write(oprot)
6326  oprot.writeFieldEnd()
6327  oprot.writeFieldStop()
6328  oprot.writeStructEnd()
6329 
6330  def validate(self):
6331  return
6332 
6333  def __repr__(self):
6334  L = ['%s=%r' % (key, value)
6335  for key, value in self.__dict__.items()]
6336  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6337 
6338  def __eq__(self, other):
6339  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6340 
6341  def __ne__(self, other):
6342  return not (self == other)
6343 
6344 
6345 class TDBObject(object):
6346  """
6347  Attributes:
6348  - objectName
6349  - objectType
6350  - privs
6351  - grantee
6352  - privilegeObjectType
6353  - objectId
6354 
6355  """
6356 
6357 
6358  def __init__(self, objectName=None, objectType=None, privs=None, grantee=None, privilegeObjectType=None, objectId=None,):
6359  self.objectName = objectName
6360  self.objectType = objectType
6361  self.privs = privs
6362  self.grantee = grantee
6363  self.privilegeObjectType = privilegeObjectType
6364  self.objectId = objectId
6365 
6366  def read(self, iprot):
6367  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
6368  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6369  return
6370  iprot.readStructBegin()
6371  while True:
6372  (fname, ftype, fid) = iprot.readFieldBegin()
6373  if ftype == TType.STOP:
6374  break
6375  if fid == 1:
6376  if ftype == TType.STRING:
6377  self.objectName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
6378  else:
6379  iprot.skip(ftype)
6380  elif fid == 2:
6381  if ftype == TType.I32:
6382  self.objectType = iprot.readI32()
6383  else:
6384  iprot.skip(ftype)
6385  elif fid == 3:
6386  if ftype == TType.LIST:
6387  self.privs = []
6388  (_etype272, _size269) = iprot.readListBegin()
6389  for _i273 in range(_size269):
6390  _elem274 = iprot.readBool()
6391  self.privs.append(_elem274)
6392  iprot.readListEnd()
6393  else:
6394  iprot.skip(ftype)
6395  elif fid == 4:
6396  if ftype == TType.STRING:
6397  self.grantee = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
6398  else:
6399  iprot.skip(ftype)
6400  elif fid == 5:
6401  if ftype == TType.I32:
6402  self.privilegeObjectType = iprot.readI32()
6403  else:
6404  iprot.skip(ftype)
6405  elif fid == 6:
6406  if ftype == TType.I32:
6407  self.objectId = iprot.readI32()
6408  else:
6409  iprot.skip(ftype)
6410  else:
6411  iprot.skip(ftype)
6412  iprot.readFieldEnd()
6413  iprot.readStructEnd()
6414 
6415  def write(self, oprot):
6416  if oprot._fast_encode is not None and self.thrift_spec is not None:
6417  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6418  return
6419  oprot.writeStructBegin('TDBObject')
6420  if self.objectName is not None:
6421  oprot.writeFieldBegin('objectName', TType.STRING, 1)
6422  oprot.writeString(self.objectName.encode('utf-8') if sys.version_info[0] == 2 else self.objectName)
6423  oprot.writeFieldEnd()
6424  if self.objectType is not None:
6425  oprot.writeFieldBegin('objectType', TType.I32, 2)
6426  oprot.writeI32(self.objectType)
6427  oprot.writeFieldEnd()
6428  if self.privs is not None:
6429  oprot.writeFieldBegin('privs', TType.LIST, 3)
6430  oprot.writeListBegin(TType.BOOL, len(self.privs))
6431  for iter275 in self.privs:
6432  oprot.writeBool(iter275)
6433  oprot.writeListEnd()
6434  oprot.writeFieldEnd()
6435  if self.grantee is not None:
6436  oprot.writeFieldBegin('grantee', TType.STRING, 4)
6437  oprot.writeString(self.grantee.encode('utf-8') if sys.version_info[0] == 2 else self.grantee)
6438  oprot.writeFieldEnd()
6439  if self.privilegeObjectType is not None:
6440  oprot.writeFieldBegin('privilegeObjectType', TType.I32, 5)
6441  oprot.writeI32(self.privilegeObjectType)
6442  oprot.writeFieldEnd()
6443  if self.objectId is not None:
6444  oprot.writeFieldBegin('objectId', TType.I32, 6)
6445  oprot.writeI32(self.objectId)
6446  oprot.writeFieldEnd()
6447  oprot.writeFieldStop()
6448  oprot.writeStructEnd()
6449 
6450  def validate(self):
6451  return
6452 
6453  def __repr__(self):
6454  L = ['%s=%r' % (key, value)
6455  for key, value in self.__dict__.items()]
6456  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6457 
6458  def __eq__(self, other):
6459  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6460 
6461  def __ne__(self, other):
6462  return not (self == other)
6463 
6464 
6465 class TDashboardGrantees(object):
6466  """
6467  Attributes:
6468  - name
6469  - is_user
6470  - permissions
6471 
6472  """
6473 
6474 
6475  def __init__(self, name=None, is_user=None, permissions=None,):
6476  self.name = name
6477  self.is_user = is_user
6478  self.permissions = permissions
6479 
6480  def read(self, iprot):
6481  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
6482  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6483  return
6484  iprot.readStructBegin()
6485  while True:
6486  (fname, ftype, fid) = iprot.readFieldBegin()
6487  if ftype == TType.STOP:
6488  break
6489  if fid == 1:
6490  if ftype == TType.STRING:
6491  self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
6492  else:
6493  iprot.skip(ftype)
6494  elif fid == 2:
6495  if ftype == TType.BOOL:
6496  self.is_user = iprot.readBool()
6497  else:
6498  iprot.skip(ftype)
6499  elif fid == 3:
6500  if ftype == TType.STRUCT:
6502  self.permissions.read(iprot)
6503  else:
6504  iprot.skip(ftype)
6505  else:
6506  iprot.skip(ftype)
6507  iprot.readFieldEnd()
6508  iprot.readStructEnd()
6509 
6510  def write(self, oprot):
6511  if oprot._fast_encode is not None and self.thrift_spec is not None:
6512  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6513  return
6514  oprot.writeStructBegin('TDashboardGrantees')
6515  if self.name is not None:
6516  oprot.writeFieldBegin('name', TType.STRING, 1)
6517  oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name)
6518  oprot.writeFieldEnd()
6519  if self.is_user is not None:
6520  oprot.writeFieldBegin('is_user', TType.BOOL, 2)
6521  oprot.writeBool(self.is_user)
6522  oprot.writeFieldEnd()
6523  if self.permissions is not None:
6524  oprot.writeFieldBegin('permissions', TType.STRUCT, 3)
6525  self.permissions.write(oprot)
6526  oprot.writeFieldEnd()
6527  oprot.writeFieldStop()
6528  oprot.writeStructEnd()
6529 
6530  def validate(self):
6531  return
6532 
6533  def __repr__(self):
6534  L = ['%s=%r' % (key, value)
6535  for key, value in self.__dict__.items()]
6536  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6537 
6538  def __eq__(self, other):
6539  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6540 
6541  def __ne__(self, other):
6542  return not (self == other)
6543 
6544 
6545 class TDashboard(object):
6546  """
6547  Attributes:
6548  - dashboard_name
6549  - dashboard_state
6550  - image_hash
6551  - update_time
6552  - dashboard_metadata
6553  - dashboard_id
6554  - dashboard_owner
6555  - is_dash_shared
6556  - dashboard_permissions
6557 
6558  """
6559 
6560 
6561  def __init__(self, dashboard_name=None, dashboard_state=None, image_hash=None, update_time=None, dashboard_metadata=None, dashboard_id=None, dashboard_owner=None, is_dash_shared=None, dashboard_permissions=None,):
6562  self.dashboard_name = dashboard_name
6563  self.dashboard_state = dashboard_state
6564  self.image_hash = image_hash
6565  self.update_time = update_time
6566  self.dashboard_metadata = dashboard_metadata
6567  self.dashboard_id = dashboard_id
6568  self.dashboard_owner = dashboard_owner
6569  self.is_dash_shared = is_dash_shared
6570  self.dashboard_permissions = dashboard_permissions
6571 
6572  def read(self, iprot):
6573  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
6574  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6575  return
6576  iprot.readStructBegin()
6577  while True:
6578  (fname, ftype, fid) = iprot.readFieldBegin()
6579  if ftype == TType.STOP:
6580  break
6581  if fid == 1:
6582  if ftype == TType.STRING:
6583  self.dashboard_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
6584  else:
6585  iprot.skip(ftype)
6586  elif fid == 2:
6587  if ftype == TType.STRING:
6588  self.dashboard_state = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
6589  else:
6590  iprot.skip(ftype)
6591  elif fid == 3:
6592  if ftype == TType.STRING:
6593  self.image_hash = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
6594  else:
6595  iprot.skip(ftype)
6596  elif fid == 4:
6597  if ftype == TType.STRING:
6598  self.update_time = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
6599  else:
6600  iprot.skip(ftype)
6601  elif fid == 5:
6602  if ftype == TType.STRING:
6603  self.dashboard_metadata = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
6604  else:
6605  iprot.skip(ftype)
6606  elif fid == 6:
6607  if ftype == TType.I32:
6608  self.dashboard_id = iprot.readI32()
6609  else:
6610  iprot.skip(ftype)
6611  elif fid == 7:
6612  if ftype == TType.STRING:
6613  self.dashboard_owner = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
6614  else:
6615  iprot.skip(ftype)
6616  elif fid == 8:
6617  if ftype == TType.BOOL:
6618  self.is_dash_shared = iprot.readBool()
6619  else:
6620  iprot.skip(ftype)
6621  elif fid == 9:
6622  if ftype == TType.STRUCT:
6624  self.dashboard_permissions.read(iprot)
6625  else:
6626  iprot.skip(ftype)
6627  else:
6628  iprot.skip(ftype)
6629  iprot.readFieldEnd()
6630  iprot.readStructEnd()
6631 
6632  def write(self, oprot):
6633  if oprot._fast_encode is not None and self.thrift_spec is not None:
6634  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6635  return
6636  oprot.writeStructBegin('TDashboard')
6637  if self.dashboard_name is not None:
6638  oprot.writeFieldBegin('dashboard_name', TType.STRING, 1)
6639  oprot.writeString(self.dashboard_name.encode('utf-8') if sys.version_info[0] == 2 else self.dashboard_name)
6640  oprot.writeFieldEnd()
6641  if self.dashboard_state is not None:
6642  oprot.writeFieldBegin('dashboard_state', TType.STRING, 2)
6643  oprot.writeString(self.dashboard_state.encode('utf-8') if sys.version_info[0] == 2 else self.dashboard_state)
6644  oprot.writeFieldEnd()
6645  if self.image_hash is not None:
6646  oprot.writeFieldBegin('image_hash', TType.STRING, 3)
6647  oprot.writeString(self.image_hash.encode('utf-8') if sys.version_info[0] == 2 else self.image_hash)
6648  oprot.writeFieldEnd()
6649  if self.update_time is not None:
6650  oprot.writeFieldBegin('update_time', TType.STRING, 4)
6651  oprot.writeString(self.update_time.encode('utf-8') if sys.version_info[0] == 2 else self.update_time)
6652  oprot.writeFieldEnd()
6653  if self.dashboard_metadata is not None:
6654  oprot.writeFieldBegin('dashboard_metadata', TType.STRING, 5)
6655  oprot.writeString(self.dashboard_metadata.encode('utf-8') if sys.version_info[0] == 2 else self.dashboard_metadata)
6656  oprot.writeFieldEnd()
6657  if self.dashboard_id is not None:
6658  oprot.writeFieldBegin('dashboard_id', TType.I32, 6)
6659  oprot.writeI32(self.dashboard_id)
6660  oprot.writeFieldEnd()
6661  if self.dashboard_owner is not None:
6662  oprot.writeFieldBegin('dashboard_owner', TType.STRING, 7)
6663  oprot.writeString(self.dashboard_owner.encode('utf-8') if sys.version_info[0] == 2 else self.dashboard_owner)
6664  oprot.writeFieldEnd()
6665  if self.is_dash_shared is not None:
6666  oprot.writeFieldBegin('is_dash_shared', TType.BOOL, 8)
6667  oprot.writeBool(self.is_dash_shared)
6668  oprot.writeFieldEnd()
6669  if self.dashboard_permissions is not None:
6670  oprot.writeFieldBegin('dashboard_permissions', TType.STRUCT, 9)
6671  self.dashboard_permissions.write(oprot)
6672  oprot.writeFieldEnd()
6673  oprot.writeFieldStop()
6674  oprot.writeStructEnd()
6675 
6676  def validate(self):
6677  return
6678 
6679  def __repr__(self):
6680  L = ['%s=%r' % (key, value)
6681  for key, value in self.__dict__.items()]
6682  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6683 
6684  def __eq__(self, other):
6685  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6686 
6687  def __ne__(self, other):
6688  return not (self == other)
6689 
6690 
6691 class TLicenseInfo(object):
6692  """
6693  Attributes:
6694  - claims
6695 
6696  """
6697 
6698 
6699  def __init__(self, claims=None,):
6700  self.claims = claims
6701 
6702  def read(self, iprot):
6703  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
6704  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6705  return
6706  iprot.readStructBegin()
6707  while True:
6708  (fname, ftype, fid) = iprot.readFieldBegin()
6709  if ftype == TType.STOP:
6710  break
6711  if fid == 1:
6712  if ftype == TType.LIST:
6713  self.claims = []
6714  (_etype279, _size276) = iprot.readListBegin()
6715  for _i280 in range(_size276):
6716  _elem281 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
6717  self.claims.append(_elem281)
6718  iprot.readListEnd()
6719  else:
6720  iprot.skip(ftype)
6721  else:
6722  iprot.skip(ftype)
6723  iprot.readFieldEnd()
6724  iprot.readStructEnd()
6725 
6726  def write(self, oprot):
6727  if oprot._fast_encode is not None and self.thrift_spec is not None:
6728  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6729  return
6730  oprot.writeStructBegin('TLicenseInfo')
6731  if self.claims is not None:
6732  oprot.writeFieldBegin('claims', TType.LIST, 1)
6733  oprot.writeListBegin(TType.STRING, len(self.claims))
6734  for iter282 in self.claims:
6735  oprot.writeString(iter282.encode('utf-8') if sys.version_info[0] == 2 else iter282)
6736  oprot.writeListEnd()
6737  oprot.writeFieldEnd()
6738  oprot.writeFieldStop()
6739  oprot.writeStructEnd()
6740 
6741  def validate(self):
6742  return
6743 
6744  def __repr__(self):
6745  L = ['%s=%r' % (key, value)
6746  for key, value in self.__dict__.items()]
6747  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6748 
6749  def __eq__(self, other):
6750  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6751 
6752  def __ne__(self, other):
6753  return not (self == other)
6754 
6755 
6756 class TSessionInfo(object):
6757  """
6758  Attributes:
6759  - user
6760  - database
6761  - start_time
6762  - is_super
6763 
6764  """
6765 
6766 
6767  def __init__(self, user=None, database=None, start_time=None, is_super=None,):
6768  self.user = user
6769  self.database = database
6770  self.start_time = start_time
6771  self.is_super = is_super
6772 
6773  def read(self, iprot):
6774  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
6775  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6776  return
6777  iprot.readStructBegin()
6778  while True:
6779  (fname, ftype, fid) = iprot.readFieldBegin()
6780  if ftype == TType.STOP:
6781  break
6782  if fid == 1:
6783  if ftype == TType.STRING:
6784  self.user = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
6785  else:
6786  iprot.skip(ftype)
6787  elif fid == 2:
6788  if ftype == TType.STRING:
6789  self.database = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
6790  else:
6791  iprot.skip(ftype)
6792  elif fid == 3:
6793  if ftype == TType.I64:
6794  self.start_time = iprot.readI64()
6795  else:
6796  iprot.skip(ftype)
6797  elif fid == 4:
6798  if ftype == TType.BOOL:
6799  self.is_super = iprot.readBool()
6800  else:
6801  iprot.skip(ftype)
6802  else:
6803  iprot.skip(ftype)
6804  iprot.readFieldEnd()
6805  iprot.readStructEnd()
6806 
6807  def write(self, oprot):
6808  if oprot._fast_encode is not None and self.thrift_spec is not None:
6809  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6810  return
6811  oprot.writeStructBegin('TSessionInfo')
6812  if self.user is not None:
6813  oprot.writeFieldBegin('user', TType.STRING, 1)
6814  oprot.writeString(self.user.encode('utf-8') if sys.version_info[0] == 2 else self.user)
6815  oprot.writeFieldEnd()
6816  if self.database is not None:
6817  oprot.writeFieldBegin('database', TType.STRING, 2)
6818  oprot.writeString(self.database.encode('utf-8') if sys.version_info[0] == 2 else self.database)
6819  oprot.writeFieldEnd()
6820  if self.start_time is not None:
6821  oprot.writeFieldBegin('start_time', TType.I64, 3)
6822  oprot.writeI64(self.start_time)
6823  oprot.writeFieldEnd()
6824  if self.is_super is not None:
6825  oprot.writeFieldBegin('is_super', TType.BOOL, 4)
6826  oprot.writeBool(self.is_super)
6827  oprot.writeFieldEnd()
6828  oprot.writeFieldStop()
6829  oprot.writeStructEnd()
6830 
6831  def validate(self):
6832  return
6833 
6834  def __repr__(self):
6835  L = ['%s=%r' % (key, value)
6836  for key, value in self.__dict__.items()]
6837  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6838 
6839  def __eq__(self, other):
6840  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6841 
6842  def __ne__(self, other):
6843  return not (self == other)
6844 
6845 
6846 class TGeoFileLayerInfo(object):
6847  """
6848  Attributes:
6849  - name
6850  - contents
6851 
6852  """
6853 
6854 
6855  def __init__(self, name=None, contents=None,):
6856  self.name = name
6857  self.contents = contents
6858 
6859  def read(self, iprot):
6860  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
6861  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6862  return
6863  iprot.readStructBegin()
6864  while True:
6865  (fname, ftype, fid) = iprot.readFieldBegin()
6866  if ftype == TType.STOP:
6867  break
6868  if fid == 1:
6869  if ftype == TType.STRING:
6870  self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
6871  else:
6872  iprot.skip(ftype)
6873  elif fid == 2:
6874  if ftype == TType.I32:
6875  self.contents = iprot.readI32()
6876  else:
6877  iprot.skip(ftype)
6878  else:
6879  iprot.skip(ftype)
6880  iprot.readFieldEnd()
6881  iprot.readStructEnd()
6882 
6883  def write(self, oprot):
6884  if oprot._fast_encode is not None and self.thrift_spec is not None:
6885  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6886  return
6887  oprot.writeStructBegin('TGeoFileLayerInfo')
6888  if self.name is not None:
6889  oprot.writeFieldBegin('name', TType.STRING, 1)
6890  oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name)
6891  oprot.writeFieldEnd()
6892  if self.contents is not None:
6893  oprot.writeFieldBegin('contents', TType.I32, 2)
6894  oprot.writeI32(self.contents)
6895  oprot.writeFieldEnd()
6896  oprot.writeFieldStop()
6897  oprot.writeStructEnd()
6898 
6899  def validate(self):
6900  return
6901 
6902  def __repr__(self):
6903  L = ['%s=%r' % (key, value)
6904  for key, value in self.__dict__.items()]
6905  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6906 
6907  def __eq__(self, other):
6908  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6909 
6910  def __ne__(self, other):
6911  return not (self == other)
6912 
6913 
6914 class TTableEpochInfo(object):
6915  """
6916  Attributes:
6917  - table_id
6918  - table_epoch
6919  - leaf_index
6920 
6921  """
6922 
6923 
6924  def __init__(self, table_id=None, table_epoch=None, leaf_index=None,):
6925  self.table_id = table_id
6926  self.table_epoch = table_epoch
6927  self.leaf_index = leaf_index
6928 
6929  def read(self, iprot):
6930  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
6931  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6932  return
6933  iprot.readStructBegin()
6934  while True:
6935  (fname, ftype, fid) = iprot.readFieldBegin()
6936  if ftype == TType.STOP:
6937  break
6938  if fid == 1:
6939  if ftype == TType.I32:
6940  self.table_id = iprot.readI32()
6941  else:
6942  iprot.skip(ftype)
6943  elif fid == 2:
6944  if ftype == TType.I32:
6945  self.table_epoch = iprot.readI32()
6946  else:
6947  iprot.skip(ftype)
6948  elif fid == 3:
6949  if ftype == TType.I32:
6950  self.leaf_index = iprot.readI32()
6951  else:
6952  iprot.skip(ftype)
6953  else:
6954  iprot.skip(ftype)
6955  iprot.readFieldEnd()
6956  iprot.readStructEnd()
6957 
6958  def write(self, oprot):
6959  if oprot._fast_encode is not None and self.thrift_spec is not None:
6960  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6961  return
6962  oprot.writeStructBegin('TTableEpochInfo')
6963  if self.table_id is not None:
6964  oprot.writeFieldBegin('table_id', TType.I32, 1)
6965  oprot.writeI32(self.table_id)
6966  oprot.writeFieldEnd()
6967  if self.table_epoch is not None:
6968  oprot.writeFieldBegin('table_epoch', TType.I32, 2)
6969  oprot.writeI32(self.table_epoch)
6970  oprot.writeFieldEnd()
6971  if self.leaf_index is not None:
6972  oprot.writeFieldBegin('leaf_index', TType.I32, 3)
6973  oprot.writeI32(self.leaf_index)
6974  oprot.writeFieldEnd()
6975  oprot.writeFieldStop()
6976  oprot.writeStructEnd()
6977 
6978  def validate(self):
6979  return
6980 
6981  def __repr__(self):
6982  L = ['%s=%r' % (key, value)
6983  for key, value in self.__dict__.items()]
6984  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6985 
6986  def __eq__(self, other):
6987  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6988 
6989  def __ne__(self, other):
6990  return not (self == other)
6991 
6992 
6993 class TCustomExpression(object):
6994  """
6995  Attributes:
6996  - id
6997  - name
6998  - expression_json
6999  - data_source_type
7000  - data_source_id
7001  - is_deleted
7002  - data_source_name
7003 
7004  """
7005 
7006 
7007  def __init__(self, id=None, name=None, expression_json=None, data_source_type=None, data_source_id=None, is_deleted=None, data_source_name=None,):
7008  self.id = id
7009  self.name = name
7010  self.expression_json = expression_json
7011  self.data_source_type = data_source_type
7012  self.data_source_id = data_source_id
7013  self.is_deleted = is_deleted
7014  self.data_source_name = data_source_name
7015 
7016  def read(self, iprot):
7017  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
7018  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
7019  return
7020  iprot.readStructBegin()
7021  while True:
7022  (fname, ftype, fid) = iprot.readFieldBegin()
7023  if ftype == TType.STOP:
7024  break
7025  if fid == 1:
7026  if ftype == TType.I32:
7027  self.id = iprot.readI32()
7028  else:
7029  iprot.skip(ftype)
7030  elif fid == 2:
7031  if ftype == TType.STRING:
7032  self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
7033  else:
7034  iprot.skip(ftype)
7035  elif fid == 4:
7036  if ftype == TType.STRING:
7037  self.expression_json = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
7038  else:
7039  iprot.skip(ftype)
7040  elif fid == 5:
7041  if ftype == TType.I32:
7042  self.data_source_type = iprot.readI32()
7043  else:
7044  iprot.skip(ftype)
7045  elif fid == 6:
7046  if ftype == TType.I32:
7047  self.data_source_id = iprot.readI32()
7048  else:
7049  iprot.skip(ftype)
7050  elif fid == 7:
7051  if ftype == TType.BOOL:
7052  self.is_deleted = iprot.readBool()
7053  else:
7054  iprot.skip(ftype)
7055  elif fid == 8:
7056  if ftype == TType.STRING:
7057  self.data_source_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
7058  else:
7059  iprot.skip(ftype)
7060  else:
7061  iprot.skip(ftype)
7062  iprot.readFieldEnd()
7063  iprot.readStructEnd()
7064 
7065  def write(self, oprot):
7066  if oprot._fast_encode is not None and self.thrift_spec is not None:
7067  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
7068  return
7069  oprot.writeStructBegin('TCustomExpression')
7070  if self.id is not None:
7071  oprot.writeFieldBegin('id', TType.I32, 1)
7072  oprot.writeI32(self.id)
7073  oprot.writeFieldEnd()
7074  if self.name is not None:
7075  oprot.writeFieldBegin('name', TType.STRING, 2)
7076  oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name)
7077  oprot.writeFieldEnd()
7078  if self.expression_json is not None:
7079  oprot.writeFieldBegin('expression_json', TType.STRING, 4)
7080  oprot.writeString(self.expression_json.encode('utf-8') if sys.version_info[0] == 2 else self.expression_json)
7081  oprot.writeFieldEnd()
7082  if self.data_source_type is not None:
7083  oprot.writeFieldBegin('data_source_type', TType.I32, 5)
7084  oprot.writeI32(self.data_source_type)
7085  oprot.writeFieldEnd()
7086  if self.data_source_id is not None:
7087  oprot.writeFieldBegin('data_source_id', TType.I32, 6)
7088  oprot.writeI32(self.data_source_id)
7089  oprot.writeFieldEnd()
7090  if self.is_deleted is not None:
7091  oprot.writeFieldBegin('is_deleted', TType.BOOL, 7)
7092  oprot.writeBool(self.is_deleted)
7093  oprot.writeFieldEnd()
7094  if self.data_source_name is not None:
7095  oprot.writeFieldBegin('data_source_name', TType.STRING, 8)
7096  oprot.writeString(self.data_source_name.encode('utf-8') if sys.version_info[0] == 2 else self.data_source_name)
7097  oprot.writeFieldEnd()
7098  oprot.writeFieldStop()
7099  oprot.writeStructEnd()
7100 
7101  def validate(self):
7102  return
7103 
7104  def __repr__(self):
7105  L = ['%s=%r' % (key, value)
7106  for key, value in self.__dict__.items()]
7107  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7108 
7109  def __eq__(self, other):
7110  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7111 
7112  def __ne__(self, other):
7113  return not (self == other)
7114 
7115 
7116 class TQueryInfo(object):
7117  """
7118  Attributes:
7119  - query_session_id
7120  - query_public_session_id
7121  - current_status
7122  - executor_id
7123  - submitted
7124  - query_str
7125  - login_name
7126  - client_address
7127  - db_name
7128  - exec_device_type
7129 
7130  """
7131 
7132 
7133  def __init__(self, query_session_id=None, query_public_session_id=None, current_status=None, executor_id=None, submitted=None, query_str=None, login_name=None, client_address=None, db_name=None, exec_device_type=None,):
7134  self.query_session_id = query_session_id
7135  self.query_public_session_id = query_public_session_id
7136  self.current_status = current_status
7137  self.executor_id = executor_id
7138  self.submitted = submitted
7139  self.query_str = query_str
7140  self.login_name = login_name
7141  self.client_address = client_address
7142  self.db_name = db_name
7143  self.exec_device_type = exec_device_type
7144 
7145  def read(self, iprot):
7146  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
7147  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
7148  return
7149  iprot.readStructBegin()
7150  while True:
7151  (fname, ftype, fid) = iprot.readFieldBegin()
7152  if ftype == TType.STOP:
7153  break
7154  if fid == 1:
7155  if ftype == TType.STRING:
7156  self.query_session_id = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
7157  else:
7158  iprot.skip(ftype)
7159  elif fid == 2:
7160  if ftype == TType.STRING:
7161  self.query_public_session_id = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
7162  else:
7163  iprot.skip(ftype)
7164  elif fid == 3:
7165  if ftype == TType.STRING:
7166  self.current_status = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
7167  else:
7168  iprot.skip(ftype)
7169  elif fid == 4:
7170  if ftype == TType.I32:
7171  self.executor_id = iprot.readI32()
7172  else:
7173  iprot.skip(ftype)
7174  elif fid == 5:
7175  if ftype == TType.STRING:
7176  self.submitted = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
7177  else:
7178  iprot.skip(ftype)
7179  elif fid == 6:
7180  if ftype == TType.STRING:
7181  self.query_str = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
7182  else:
7183  iprot.skip(ftype)
7184  elif fid == 7:
7185  if ftype == TType.STRING:
7186  self.login_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
7187  else:
7188  iprot.skip(ftype)
7189  elif fid == 8:
7190  if ftype == TType.STRING:
7191  self.client_address = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
7192  else:
7193  iprot.skip(ftype)
7194  elif fid == 9:
7195  if ftype == TType.STRING:
7196  self.db_name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
7197  else:
7198  iprot.skip(ftype)
7199  elif fid == 10:
7200  if ftype == TType.STRING:
7201  self.exec_device_type = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
7202  else:
7203  iprot.skip(ftype)
7204  else:
7205  iprot.skip(ftype)
7206  iprot.readFieldEnd()
7207  iprot.readStructEnd()
7208 
7209  def write(self, oprot):
7210  if oprot._fast_encode is not None and self.thrift_spec is not None:
7211  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
7212  return
7213  oprot.writeStructBegin('TQueryInfo')
7214  if self.query_session_id is not None:
7215  oprot.writeFieldBegin('query_session_id', TType.STRING, 1)
7216  oprot.writeString(self.query_session_id.encode('utf-8') if sys.version_info[0] == 2 else self.query_session_id)
7217  oprot.writeFieldEnd()
7218  if self.query_public_session_id is not None:
7219  oprot.writeFieldBegin('query_public_session_id', TType.STRING, 2)
7220  oprot.writeString(self.query_public_session_id.encode('utf-8') if sys.version_info[0] == 2 else self.query_public_session_id)
7221  oprot.writeFieldEnd()
7222  if self.current_status is not None:
7223  oprot.writeFieldBegin('current_status', TType.STRING, 3)
7224  oprot.writeString(self.current_status.encode('utf-8') if sys.version_info[0] == 2 else self.current_status)
7225  oprot.writeFieldEnd()
7226  if self.executor_id is not None:
7227  oprot.writeFieldBegin('executor_id', TType.I32, 4)
7228  oprot.writeI32(self.executor_id)
7229  oprot.writeFieldEnd()
7230  if self.submitted is not None:
7231  oprot.writeFieldBegin('submitted', TType.STRING, 5)
7232  oprot.writeString(self.submitted.encode('utf-8') if sys.version_info[0] == 2 else self.submitted)
7233  oprot.writeFieldEnd()
7234  if self.query_str is not None:
7235  oprot.writeFieldBegin('query_str', TType.STRING, 6)
7236  oprot.writeString(self.query_str.encode('utf-8') if sys.version_info[0] == 2 else self.query_str)
7237  oprot.writeFieldEnd()
7238  if self.login_name is not None:
7239  oprot.writeFieldBegin('login_name', TType.STRING, 7)
7240  oprot.writeString(self.login_name.encode('utf-8') if sys.version_info[0] == 2 else self.login_name)
7241  oprot.writeFieldEnd()
7242  if self.client_address is not None:
7243  oprot.writeFieldBegin('client_address', TType.STRING, 8)
7244  oprot.writeString(self.client_address.encode('utf-8') if sys.version_info[0] == 2 else self.client_address)
7245  oprot.writeFieldEnd()
7246  if self.db_name is not None:
7247  oprot.writeFieldBegin('db_name', TType.STRING, 9)
7248  oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
7249  oprot.writeFieldEnd()
7250  if self.exec_device_type is not None:
7251  oprot.writeFieldBegin('exec_device_type', TType.STRING, 10)
7252  oprot.writeString(self.exec_device_type.encode('utf-8') if sys.version_info[0] == 2 else self.exec_device_type)
7253  oprot.writeFieldEnd()
7254  oprot.writeFieldStop()
7255  oprot.writeStructEnd()
7256 
7257  def validate(self):
7258  return
7259 
7260  def __repr__(self):
7261  L = ['%s=%r' % (key, value)
7262  for key, value in self.__dict__.items()]
7263  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7264 
7265  def __eq__(self, other):
7266  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7267 
7268  def __ne__(self, other):
7269  return not (self == other)
7270 
7271 
7272 class TLeafInfo(object):
7273  """
7274  Attributes:
7275  - leaf_id
7276  - num_leaves
7277 
7278  """
7279 
7280 
7281  def __init__(self, leaf_id=None, num_leaves=None,):
7282  self.leaf_id = leaf_id
7283  self.num_leaves = num_leaves
7284 
7285  def read(self, iprot):
7286  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
7287  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
7288  return
7289  iprot.readStructBegin()
7290  while True:
7291  (fname, ftype, fid) = iprot.readFieldBegin()
7292  if ftype == TType.STOP:
7293  break
7294  if fid == 1:
7295  if ftype == TType.I32:
7296  self.leaf_id = iprot.readI32()
7297  else:
7298  iprot.skip(ftype)
7299  elif fid == 2:
7300  if ftype == TType.I32:
7301  self.num_leaves = iprot.readI32()
7302  else:
7303  iprot.skip(ftype)
7304  else:
7305  iprot.skip(ftype)
7306  iprot.readFieldEnd()
7307  iprot.readStructEnd()
7308 
7309  def write(self, oprot):
7310  if oprot._fast_encode is not None and self.thrift_spec is not None:
7311  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
7312  return
7313  oprot.writeStructBegin('TLeafInfo')
7314  if self.leaf_id is not None:
7315  oprot.writeFieldBegin('leaf_id', TType.I32, 1)
7316  oprot.writeI32(self.leaf_id)
7317  oprot.writeFieldEnd()
7318  if self.num_leaves is not None:
7319  oprot.writeFieldBegin('num_leaves', TType.I32, 2)
7320  oprot.writeI32(self.num_leaves)
7321  oprot.writeFieldEnd()
7322  oprot.writeFieldStop()
7323  oprot.writeStructEnd()
7324 
7325  def validate(self):
7326  return
7327 
7328  def __repr__(self):
7329  L = ['%s=%r' % (key, value)
7330  for key, value in self.__dict__.items()]
7331  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7332 
7333  def __eq__(self, other):
7334  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7335 
7336  def __ne__(self, other):
7337  return not (self == other)
7338 all_structs.append(TDatumVal)
7339 TDatumVal.thrift_spec = (
7340  None, # 0
7341  (1, TType.I64, 'int_val', None, None, ), # 1
7342  (2, TType.DOUBLE, 'real_val', None, None, ), # 2
7343  (3, TType.STRING, 'str_val', 'UTF8', None, ), # 3
7344  (4, TType.LIST, 'arr_val', (TType.STRUCT, [TDatum, None], False), None, ), # 4
7345 )
7346 all_structs.append(TDatum)
7347 TDatum.thrift_spec = (
7348  None, # 0
7349  (1, TType.STRUCT, 'val', [TDatumVal, None], None, ), # 1
7350  (2, TType.BOOL, 'is_null', None, None, ), # 2
7351 )
7352 all_structs.append(TStringValue)
7353 TStringValue.thrift_spec = (
7354  None, # 0
7355  (1, TType.STRING, 'str_val', 'UTF8', None, ), # 1
7356  (2, TType.BOOL, 'is_null', None, None, ), # 2
7357 )
7358 all_structs.append(TColumnType)
7359 TColumnType.thrift_spec = (
7360  None, # 0
7361  (1, TType.STRING, 'col_name', 'UTF8', None, ), # 1
7362  (2, TType.STRUCT, 'col_type', [heavydb.common.ttypes.TTypeInfo, None], None, ), # 2
7363  (3, TType.BOOL, 'is_reserved_keyword', None, None, ), # 3
7364  (4, TType.STRING, 'src_name', 'UTF8', None, ), # 4
7365  (5, TType.BOOL, 'is_system', None, None, ), # 5
7366  (6, TType.BOOL, 'is_physical', None, None, ), # 6
7367  (7, TType.I64, 'col_id', None, None, ), # 7
7368  (8, TType.STRING, 'default_value', 'UTF8', None, ), # 8
7369 )
7370 all_structs.append(TRow)
7371 TRow.thrift_spec = (
7372  None, # 0
7373  (1, TType.LIST, 'cols', (TType.STRUCT, [TDatum, None], False), None, ), # 1
7374 )
7375 all_structs.append(TColumnData)
7376 TColumnData.thrift_spec = (
7377  None, # 0
7378  (1, TType.LIST, 'int_col', (TType.I64, None, False), None, ), # 1
7379  (2, TType.LIST, 'real_col', (TType.DOUBLE, None, False), None, ), # 2
7380  (3, TType.LIST, 'str_col', (TType.STRING, 'UTF8', False), None, ), # 3
7381  (4, TType.LIST, 'arr_col', (TType.STRUCT, [TColumn, None], False), None, ), # 4
7382 )
7383 all_structs.append(TColumn)
7384 TColumn.thrift_spec = (
7385  None, # 0
7386  (1, TType.STRUCT, 'data', [TColumnData, None], None, ), # 1
7387  (2, TType.LIST, 'nulls', (TType.BOOL, None, False), None, ), # 2
7388 )
7389 all_structs.append(TStringRow)
7390 TStringRow.thrift_spec = (
7391  None, # 0
7392  (1, TType.LIST, 'cols', (TType.STRUCT, [TStringValue, None], False), None, ), # 1
7393 )
7394 all_structs.append(TKrb5Session)
7395 TKrb5Session.thrift_spec = (
7396  None, # 0
7397  (1, TType.STRING, 'sessionId', 'UTF8', None, ), # 1
7398  (2, TType.STRING, 'krbToken', 'UTF8', None, ), # 2
7399 )
7400 all_structs.append(TStepResult)
7401 TStepResult.thrift_spec = (
7402  None, # 0
7403  (1, TType.STRUCT, 'serialized_rows', [heavydb.serialized_result_set.ttypes.TSerializedRows, None], None, ), # 1
7404  (2, TType.BOOL, 'execution_finished', None, None, ), # 2
7405  (3, TType.I32, 'merge_type', None, None, ), # 3
7406  (4, TType.BOOL, 'sharded', None, None, ), # 4
7407  (5, TType.LIST, 'row_desc', (TType.STRUCT, [TColumnType, None], False), None, ), # 5
7408  (6, TType.I32, 'node_id', None, None, ), # 6
7409 )
7410 all_structs.append(TRowSet)
7411 TRowSet.thrift_spec = (
7412  None, # 0
7413  (1, TType.LIST, 'row_desc', (TType.STRUCT, [TColumnType, None], False), None, ), # 1
7414  (2, TType.LIST, 'rows', (TType.STRUCT, [TRow, None], False), None, ), # 2
7415  (3, TType.LIST, 'columns', (TType.STRUCT, [TColumn, None], False), None, ), # 3
7416  (4, TType.BOOL, 'is_columnar', None, None, ), # 4
7417 )
7418 all_structs.append(TQueryResult)
7419 TQueryResult.thrift_spec = (
7420  None, # 0
7421  (1, TType.STRUCT, 'row_set', [TRowSet, None], None, ), # 1
7422  (2, TType.I64, 'execution_time_ms', None, None, ), # 2
7423  (3, TType.I64, 'total_time_ms', None, None, ), # 3
7424  (4, TType.STRING, 'nonce', 'UTF8', None, ), # 4
7425  (5, TType.STRING, 'debug', 'UTF8', None, ), # 5
7426  (6, TType.BOOL, 'success', None, True, ), # 6
7427  (7, TType.I32, 'query_type', None, 0, ), # 7
7428 )
7429 all_structs.append(TDataFrame)
7430 TDataFrame.thrift_spec = (
7431  None, # 0
7432  (1, TType.STRING, 'sm_handle', 'BINARY', None, ), # 1
7433  (2, TType.I64, 'sm_size', None, None, ), # 2
7434  (3, TType.STRING, 'df_handle', 'BINARY', None, ), # 3
7435  (4, TType.I64, 'df_size', None, None, ), # 4
7436  (5, TType.I64, 'execution_time_ms', None, None, ), # 5
7437  (6, TType.I64, 'arrow_conversion_time_ms', None, None, ), # 6
7438  (7, TType.STRING, 'df_buffer', 'BINARY', None, ), # 7
7439 )
7440 all_structs.append(TDBInfo)
7441 TDBInfo.thrift_spec = (
7442  None, # 0
7443  (1, TType.STRING, 'db_name', 'UTF8', None, ), # 1
7444  (2, TType.STRING, 'db_owner', 'UTF8', None, ), # 2
7445 )
7446 all_structs.append(TDBException)
7447 TDBException.thrift_spec = (
7448  None, # 0
7449  (1, TType.STRING, 'error_msg', 'UTF8', None, ), # 1
7450 )
7451 all_structs.append(TCopyParams)
7452 TCopyParams.thrift_spec = (
7453  None, # 0
7454  (1, TType.STRING, 'delimiter', 'UTF8', None, ), # 1
7455  (2, TType.STRING, 'null_str', 'UTF8', None, ), # 2
7456  (3, TType.I32, 'has_header', None, 0, ), # 3
7457  (4, TType.BOOL, 'quoted', None, None, ), # 4
7458  (5, TType.STRING, 'quote', 'UTF8', None, ), # 5
7459  (6, TType.STRING, 'escape', 'UTF8', None, ), # 6
7460  (7, TType.STRING, 'line_delim', 'UTF8', None, ), # 7
7461  (8, TType.STRING, 'array_delim', 'UTF8', None, ), # 8
7462  (9, TType.STRING, 'array_begin', 'UTF8', None, ), # 9
7463  (10, TType.STRING, 'array_end', 'UTF8', None, ), # 10
7464  (11, TType.I32, 'threads', None, None, ), # 11
7465  (12, TType.I32, 'source_type', None, 0, ), # 12
7466  (13, TType.STRING, 's3_access_key', 'UTF8', None, ), # 13
7467  (14, TType.STRING, 's3_secret_key', 'UTF8', None, ), # 14
7468  (15, TType.STRING, 's3_region', 'UTF8', None, ), # 15
7469  (16, TType.I32, 'geo_coords_encoding', None, 6, ), # 16
7470  (17, TType.I32, 'geo_coords_comp_param', None, 32, ), # 17
7471  (18, TType.I32, 'geo_coords_type', None, 18, ), # 18
7472  (19, TType.I32, 'geo_coords_srid', None, 4326, ), # 19
7473  (20, TType.BOOL, 'sanitize_column_names', None, True, ), # 20
7474  (21, TType.STRING, 'geo_layer_name', 'UTF8', None, ), # 21
7475  (22, TType.STRING, 's3_endpoint', 'UTF8', None, ), # 22
7476  (23, TType.BOOL, 'geo_assign_render_groups', None, False, ), # 23
7477  (24, TType.BOOL, 'geo_explode_collections', None, False, ), # 24
7478  (25, TType.I32, 'source_srid', None, 0, ), # 25
7479  (26, TType.STRING, 's3_session_token', 'UTF8', None, ), # 26
7480  (27, TType.I32, 'raster_point_type', None, 1, ), # 27
7481  (28, TType.STRING, 'raster_import_bands', 'UTF8', None, ), # 28
7482  (29, TType.I32, 'raster_scanlines_per_thread', None, None, ), # 29
7483  (30, TType.I32, 'raster_point_transform', None, 1, ), # 30
7484  (31, TType.BOOL, 'raster_point_compute_angle', None, False, ), # 31
7485  (32, TType.STRING, 'raster_import_dimensions', 'UTF8', None, ), # 32
7486  (33, TType.STRING, 'odbc_dsn', 'UTF8', None, ), # 33
7487  (34, TType.STRING, 'odbc_connection_string', 'UTF8', None, ), # 34
7488  (35, TType.STRING, 'odbc_sql_select', 'UTF8', None, ), # 35
7489  (36, TType.STRING, 'odbc_sql_order_by', 'UTF8', None, ), # 36
7490  (37, TType.STRING, 'odbc_username', 'UTF8', None, ), # 37
7491  (38, TType.STRING, 'odbc_password', 'UTF8', None, ), # 38
7492  (39, TType.STRING, 'odbc_credential_string', 'UTF8', None, ), # 39
7493  (40, TType.STRING, 'add_metadata_columns', 'UTF8', None, ), # 40
7494  (41, TType.BOOL, 'trim_spaces', None, True, ), # 41
7495  (42, TType.BOOL, 'geo_validate_geometry', None, False, ), # 42
7496 )
7497 all_structs.append(TCreateParams)
7498 TCreateParams.thrift_spec = (
7499  None, # 0
7500  (1, TType.BOOL, 'is_replicated', None, None, ), # 1
7501 )
7502 all_structs.append(TDetectResult)
7503 TDetectResult.thrift_spec = (
7504  None, # 0
7505  (1, TType.STRUCT, 'row_set', [TRowSet, None], None, ), # 1
7506  (2, TType.STRUCT, 'copy_params', [TCopyParams, None], None, ), # 2
7507 )
7508 all_structs.append(TImportStatus)
7509 TImportStatus.thrift_spec = (
7510  None, # 0
7511  (1, TType.I64, 'elapsed', None, None, ), # 1
7512  (2, TType.I64, 'rows_completed', None, None, ), # 2
7513  (3, TType.I64, 'rows_estimated', None, None, ), # 3
7514  (4, TType.I64, 'rows_rejected', None, None, ), # 4
7515 )
7516 all_structs.append(TFrontendView)
7517 TFrontendView.thrift_spec = (
7518  None, # 0
7519  (1, TType.STRING, 'view_name', 'UTF8', None, ), # 1
7520  (2, TType.STRING, 'view_state', 'UTF8', None, ), # 2
7521  (3, TType.STRING, 'image_hash', 'UTF8', None, ), # 3
7522  (4, TType.STRING, 'update_time', 'UTF8', None, ), # 4
7523  (5, TType.STRING, 'view_metadata', 'UTF8', None, ), # 5
7524 )
7525 all_structs.append(TServerStatus)
7526 TServerStatus.thrift_spec = (
7527  None, # 0
7528  (1, TType.BOOL, 'read_only', None, None, ), # 1
7529  (2, TType.STRING, 'version', 'UTF8', None, ), # 2
7530  (3, TType.BOOL, 'rendering_enabled', None, None, ), # 3
7531  (4, TType.I64, 'start_time', None, None, ), # 4
7532  (5, TType.STRING, 'edition', 'UTF8', None, ), # 5
7533  (6, TType.STRING, 'host_name', 'UTF8', None, ), # 6
7534  (7, TType.BOOL, 'poly_rendering_enabled', None, None, ), # 7
7535  (8, TType.I32, 'role', None, None, ), # 8
7536  (9, TType.STRING, 'renderer_status_json', 'UTF8', None, ), # 9
7537  (10, TType.STRING, 'host_id', 'UTF8', None, ), # 10
7538 )
7539 all_structs.append(TPixel)
7540 TPixel.thrift_spec = (
7541  None, # 0
7542  (1, TType.I64, 'x', None, None, ), # 1
7543  (2, TType.I64, 'y', None, None, ), # 2
7544 )
7545 all_structs.append(TPixelTableRowResult)
7546 TPixelTableRowResult.thrift_spec = (
7547  None, # 0
7548  (1, TType.STRUCT, 'pixel', [TPixel, None], None, ), # 1
7549  (2, TType.STRING, 'vega_table_name', 'UTF8', None, ), # 2
7550  (3, TType.LIST, 'table_id', (TType.I64, None, False), None, ), # 3
7551  (4, TType.LIST, 'row_id', (TType.I64, None, False), None, ), # 4
7552  (5, TType.STRUCT, 'row_set', [TRowSet, None], None, ), # 5
7553  (6, TType.STRING, 'nonce', 'UTF8', None, ), # 6
7554 )
7555 all_structs.append(TRenderResult)
7556 TRenderResult.thrift_spec = (
7557  None, # 0
7558  (1, TType.STRING, 'image', 'BINARY', None, ), # 1
7559  (2, TType.STRING, 'nonce', 'UTF8', None, ), # 2
7560  (3, TType.I64, 'execution_time_ms', None, None, ), # 3
7561  (4, TType.I64, 'render_time_ms', None, None, ), # 4
7562  (5, TType.I64, 'total_time_ms', None, None, ), # 5
7563  (6, TType.STRING, 'vega_metadata', 'UTF8', None, ), # 6
7564 )
7565 all_structs.append(TGpuSpecification)
7566 TGpuSpecification.thrift_spec = (
7567  None, # 0
7568  (1, TType.I32, 'num_sm', None, None, ), # 1
7569  (2, TType.I64, 'clock_frequency_kHz', None, None, ), # 2
7570  (3, TType.I64, 'memory', None, None, ), # 3
7571  (4, TType.I16, 'compute_capability_major', None, None, ), # 4
7572  (5, TType.I16, 'compute_capability_minor', None, None, ), # 5
7573 )
7574 all_structs.append(THardwareInfo)
7575 THardwareInfo.thrift_spec = (
7576  None, # 0
7577  (1, TType.I16, 'num_gpu_hw', None, None, ), # 1
7578  (2, TType.I16, 'num_cpu_hw', None, None, ), # 2
7579  (3, TType.I16, 'num_gpu_allocated', None, None, ), # 3
7580  (4, TType.I16, 'start_gpu', None, None, ), # 4
7581  (5, TType.STRING, 'host_name', 'UTF8', None, ), # 5
7582  (6, TType.LIST, 'gpu_info', (TType.STRUCT, [TGpuSpecification, None], False), None, ), # 6
7583 )
7584 all_structs.append(TClusterHardwareInfo)
7585 TClusterHardwareInfo.thrift_spec = (
7586  None, # 0
7587  (1, TType.LIST, 'hardware_info', (TType.STRUCT, [THardwareInfo, None], False), None, ), # 1
7588 )
7589 all_structs.append(TMemoryData)
7590 TMemoryData.thrift_spec = (
7591  None, # 0
7592  (1, TType.I64, 'slab', None, None, ), # 1
7593  (2, TType.I32, 'start_page', None, None, ), # 2
7594  (3, TType.I64, 'num_pages', None, None, ), # 3
7595  (4, TType.I32, 'touch', None, None, ), # 4
7596  (5, TType.LIST, 'chunk_key', (TType.I64, None, False), None, ), # 5
7597  (6, TType.I32, 'buffer_epoch', None, None, ), # 6
7598  (7, TType.BOOL, 'is_free', None, None, ), # 7
7599 )
7600 all_structs.append(TNodeMemoryInfo)
7601 TNodeMemoryInfo.thrift_spec = (
7602  None, # 0
7603  (1, TType.STRING, 'host_name', 'UTF8', None, ), # 1
7604  (2, TType.I64, 'page_size', None, None, ), # 2
7605  (3, TType.I64, 'max_num_pages', None, None, ), # 3
7606  (4, TType.I64, 'num_pages_allocated', None, None, ), # 4
7607  (5, TType.BOOL, 'is_allocation_capped', None, None, ), # 5
7608  (6, TType.LIST, 'node_memory_data', (TType.STRUCT, [TMemoryData, None], False), None, ), # 6
7609 )
7610 all_structs.append(TTableMeta)
7611 TTableMeta.thrift_spec = (
7612  None, # 0
7613  (1, TType.STRING, 'table_name', 'UTF8', None, ), # 1
7614  (2, TType.I64, 'num_cols', None, None, ), # 2
7615  None, # 3
7616  (4, TType.BOOL, 'is_view', None, None, ), # 4
7617  (5, TType.BOOL, 'is_replicated', None, None, ), # 5
7618  (6, TType.I64, 'shard_count', None, None, ), # 6
7619  (7, TType.I64, 'max_rows', None, None, ), # 7
7620  (8, TType.I64, 'table_id', None, None, ), # 8
7621  (9, TType.I64, 'max_table_id', None, None, ), # 9
7622  (10, TType.LIST, 'col_types', (TType.STRUCT, [heavydb.common.ttypes.TTypeInfo, None], False), None, ), # 10
7623  (11, TType.LIST, 'col_names', (TType.STRING, 'UTF8', False), None, ), # 11
7624 )
7625 all_structs.append(TTableRefreshInfo)
7626 TTableRefreshInfo.thrift_spec = (
7627  None, # 0
7628  (1, TType.I32, 'update_type', None, None, ), # 1
7629  (2, TType.I32, 'timing_type', None, None, ), # 2
7630  (3, TType.STRING, 'start_date_time', 'UTF8', None, ), # 3
7631  (4, TType.I32, 'interval_type', None, None, ), # 4
7632  (5, TType.I64, 'interval_count', None, None, ), # 5
7633  (6, TType.STRING, 'last_refresh_time', 'UTF8', None, ), # 6
7634  (7, TType.STRING, 'next_refresh_time', 'UTF8', None, ), # 7
7635 )
7636 all_structs.append(TTableDetails)
7637 TTableDetails.thrift_spec = (
7638  None, # 0
7639  (1, TType.LIST, 'row_desc', (TType.STRUCT, [TColumnType, None], False), None, ), # 1
7640  (2, TType.I64, 'fragment_size', None, None, ), # 2
7641  (3, TType.I64, 'page_size', None, None, ), # 3
7642  (4, TType.I64, 'max_rows', None, None, ), # 4
7643  (5, TType.STRING, 'view_sql', 'UTF8', None, ), # 5
7644  (6, TType.I64, 'shard_count', None, None, ), # 6
7645  (7, TType.STRING, 'key_metainfo', 'UTF8', None, ), # 7
7646  (8, TType.BOOL, 'is_temporary', None, None, ), # 8
7647  (9, TType.I32, 'partition_detail', None, None, ), # 9
7648  (10, TType.I32, 'table_type', None, None, ), # 10
7649  (11, TType.STRUCT, 'refresh_info', [TTableRefreshInfo, None], None, ), # 11
7650  (12, TType.STRING, 'sharded_column_name', 'UTF8', None, ), # 12
7651 )
7652 all_structs.append(TColumnRange)
7653 TColumnRange.thrift_spec = (
7654  None, # 0
7655  (1, TType.I32, 'type', None, None, ), # 1
7656  (2, TType.I32, 'col_id', None, None, ), # 2
7657  (3, TType.I32, 'table_id', None, None, ), # 3
7658  (4, TType.BOOL, 'has_nulls', None, None, ), # 4
7659  (5, TType.I64, 'int_min', None, None, ), # 5
7660  (6, TType.I64, 'int_max', None, None, ), # 6
7661  (7, TType.I64, 'bucket', None, None, ), # 7
7662  (8, TType.DOUBLE, 'fp_min', None, None, ), # 8
7663  (9, TType.DOUBLE, 'fp_max', None, None, ), # 9
7664  (10, TType.I32, 'db_id', None, None, ), # 10
7665 )
7666 all_structs.append(TDictionaryGeneration)
7667 TDictionaryGeneration.thrift_spec = (
7668  None, # 0
7669  (1, TType.I32, 'dict_id', None, None, ), # 1
7670  (2, TType.I64, 'entry_count', None, None, ), # 2
7671  (3, TType.I32, 'db_id', None, None, ), # 3
7672 )
7673 all_structs.append(TTableGeneration)
7674 TTableGeneration.thrift_spec = (
7675  None, # 0
7676  (1, TType.I32, 'table_id', None, None, ), # 1
7677  (2, TType.I64, 'tuple_count', None, None, ), # 2
7678  (3, TType.I64, 'start_rowid', None, None, ), # 3
7679  (4, TType.I32, 'db_id', None, None, ), # 4
7680 )
7681 all_structs.append(TTableCacheStatus)
7682 TTableCacheStatus.thrift_spec = (
7683  None, # 0
7684  (1, TType.I32, 'table_id', None, None, ), # 1
7685  (2, TType.I32, 'db_id', None, None, ), # 2
7686  (3, TType.BOOL, 'is_cached_on_disk', None, None, ), # 3
7687 )
7688 all_structs.append(TPendingQuery)
7689 TPendingQuery.thrift_spec = (
7690  None, # 0
7691  (1, TType.I64, 'id', None, None, ), # 1
7692  (2, TType.LIST, 'column_ranges', (TType.STRUCT, [TColumnRange, None], False), None, ), # 2
7693  (3, TType.LIST, 'dictionary_generations', (TType.STRUCT, [TDictionaryGeneration, None], False), None, ), # 3
7694  (4, TType.LIST, 'table_generations', (TType.STRUCT, [TTableGeneration, None], False), None, ), # 4
7695  (5, TType.STRING, 'parent_session_id', 'UTF8', None, ), # 5
7696  (6, TType.LIST, 'table_cache_status', (TType.STRUCT, [TTableCacheStatus, None], False), None, ), # 6
7697 )
7698 all_structs.append(TVarLen)
7699 TVarLen.thrift_spec = (
7700  None, # 0
7701  (1, TType.STRING, 'payload', 'BINARY', None, ), # 1
7702  (2, TType.BOOL, 'is_null', None, None, ), # 2
7703 )
7704 all_structs.append(TDataBlockPtr)
7705 TDataBlockPtr.thrift_spec = (
7706  None, # 0
7707  (1, TType.STRING, 'fixed_len_data', 'BINARY', None, ), # 1
7708  (2, TType.LIST, 'var_len_data', (TType.STRUCT, [TVarLen, None], False), None, ), # 2
7709 )
7710 all_structs.append(TInsertData)
7711 TInsertData.thrift_spec = (
7712  None, # 0
7713  (1, TType.I32, 'db_id', None, None, ), # 1
7714  (2, TType.I32, 'table_id', None, None, ), # 2
7715  (3, TType.LIST, 'column_ids', (TType.I32, None, False), None, ), # 3
7716  (4, TType.LIST, 'data', (TType.STRUCT, [TDataBlockPtr, None], False), None, ), # 4
7717  (5, TType.I64, 'num_rows', None, None, ), # 5
7718  (6, TType.LIST, 'is_default', (TType.BOOL, None, False), None, ), # 6
7719 )
7720 all_structs.append(TChunkData)
7721 TChunkData.thrift_spec = (
7722  None, # 0
7723  (1, TType.STRING, 'data_buffer', 'BINARY', None, ), # 1
7724  (2, TType.STRING, 'index_buffer', 'BINARY', None, ), # 2
7725 )
7726 all_structs.append(TInsertChunks)
7727 TInsertChunks.thrift_spec = (
7728  None, # 0
7729  (1, TType.I32, 'db_id', None, None, ), # 1
7730  (2, TType.I32, 'table_id', None, None, ), # 2
7731  (3, TType.LIST, 'data', (TType.STRUCT, [TChunkData, None], False), None, ), # 3
7732  (4, TType.LIST, 'valid_indices', (TType.I64, None, False), None, ), # 4
7733  (5, TType.I64, 'num_rows', None, None, ), # 5
7734 )
7735 all_structs.append(TPendingRenderQuery)
7736 TPendingRenderQuery.thrift_spec = (
7737  None, # 0
7738  (1, TType.I64, 'id', None, None, ), # 1
7739 )
7740 all_structs.append(TRenderParseResult)
7741 TRenderParseResult.thrift_spec = (
7742  None, # 0
7743  (1, TType.I32, 'merge_type', None, None, ), # 1
7744  (2, TType.I32, 'node_id', None, None, ), # 2
7745  (3, TType.I64, 'execution_time_ms', None, None, ), # 3
7746  (4, TType.I64, 'render_time_ms', None, None, ), # 4
7747  (5, TType.I64, 'total_time_ms', None, None, ), # 5
7748 )
7749 all_structs.append(TRawRenderPassDataResult)
7750 TRawRenderPassDataResult.thrift_spec = (
7751  None, # 0
7752  (1, TType.I32, 'num_pixel_channels', None, None, ), # 1
7753  (2, TType.I32, 'num_pixel_samples', None, None, ), # 2
7754  (3, TType.STRING, 'pixels', 'BINARY', None, ), # 3
7755  (4, TType.STRING, 'row_ids_A', 'BINARY', None, ), # 4
7756  (5, TType.STRING, 'row_ids_B', 'BINARY', None, ), # 5
7757  (6, TType.STRING, 'table_ids', 'BINARY', None, ), # 6
7758  (7, TType.STRING, 'accum_data', 'BINARY', None, ), # 7
7759  (8, TType.I32, 'accum_depth', None, None, ), # 8
7760 )
7761 all_structs.append(TRawPixelData)
7762 TRawPixelData.thrift_spec = (
7763  None, # 0
7764  (1, TType.I32, 'width', None, None, ), # 1
7765  (2, TType.I32, 'height', None, None, ), # 2
7766  (3, TType.MAP, 'render_pass_map', (TType.I32, None, TType.STRUCT, [TRawRenderPassDataResult, None], False), None, ), # 3
7767 )
7768 all_structs.append(TRenderDatum)
7769 TRenderDatum.thrift_spec = (
7770  None, # 0
7771  (1, TType.I32, 'type', None, None, ), # 1
7772  (2, TType.I32, 'cnt', None, None, ), # 2
7773  (3, TType.STRING, 'value', 'BINARY', None, ), # 3
7774 )
7775 all_structs.append(TRenderStepResult)
7776 TRenderStepResult.thrift_spec = (
7777  None, # 0
7778  (1, TType.MAP, 'merge_data', (TType.STRING, 'UTF8', TType.MAP, (TType.STRING, 'UTF8', TType.MAP, (TType.STRING, 'UTF8', TType.MAP, (TType.STRING, 'UTF8', TType.LIST, (TType.STRUCT, [TRenderDatum, None], False), False), False), False), False), None, ), # 1
7779  (2, TType.STRUCT, 'raw_pixel_data', [TRawPixelData, None], None, ), # 2
7780  (3, TType.I64, 'execution_time_ms', None, None, ), # 3
7781  (4, TType.I64, 'render_time_ms', None, None, ), # 4
7782  (5, TType.I64, 'total_time_ms', None, None, ), # 5
7783 )
7784 all_structs.append(TDatabasePermissions)
7785 TDatabasePermissions.thrift_spec = (
7786  None, # 0
7787  (1, TType.BOOL, 'create_', None, None, ), # 1
7788  (2, TType.BOOL, 'delete_', None, None, ), # 2
7789  (3, TType.BOOL, 'view_sql_editor_', None, None, ), # 3
7790  (4, TType.BOOL, 'access_', None, None, ), # 4
7791 )
7792 all_structs.append(TTablePermissions)
7793 TTablePermissions.thrift_spec = (
7794  None, # 0
7795  (1, TType.BOOL, 'create_', None, None, ), # 1
7796  (2, TType.BOOL, 'drop_', None, None, ), # 2
7797  (3, TType.BOOL, 'select_', None, None, ), # 3
7798  (4, TType.BOOL, 'insert_', None, None, ), # 4
7799  (5, TType.BOOL, 'update_', None, None, ), # 5
7800  (6, TType.BOOL, 'delete_', None, None, ), # 6
7801  (7, TType.BOOL, 'truncate_', None, None, ), # 7
7802  (8, TType.BOOL, 'alter_', None, None, ), # 8
7803 )
7804 all_structs.append(TDashboardPermissions)
7805 TDashboardPermissions.thrift_spec = (
7806  None, # 0
7807  (1, TType.BOOL, 'create_', None, None, ), # 1
7808  (2, TType.BOOL, 'delete_', None, None, ), # 2
7809  (3, TType.BOOL, 'view_', None, None, ), # 3
7810  (4, TType.BOOL, 'edit_', None, None, ), # 4
7811 )
7812 all_structs.append(TViewPermissions)
7813 TViewPermissions.thrift_spec = (
7814  None, # 0
7815  (1, TType.BOOL, 'create_', None, None, ), # 1
7816  (2, TType.BOOL, 'drop_', None, None, ), # 2
7817  (3, TType.BOOL, 'select_', None, None, ), # 3
7818  (4, TType.BOOL, 'insert_', None, None, ), # 4
7819  (5, TType.BOOL, 'update_', None, None, ), # 5
7820  (6, TType.BOOL, 'delete_', None, None, ), # 6
7821 )
7822 all_structs.append(TServerPermissions)
7823 TServerPermissions.thrift_spec = (
7824  None, # 0
7825  (1, TType.BOOL, 'create_', None, None, ), # 1
7826  (2, TType.BOOL, 'drop_', None, None, ), # 2
7827  (3, TType.BOOL, 'alter_', None, None, ), # 3
7828  (4, TType.BOOL, 'usage_', None, None, ), # 4
7829 )
7830 all_structs.append(TDBObjectPermissions)
7831 TDBObjectPermissions.thrift_spec = (
7832  None, # 0
7833  (1, TType.STRUCT, 'database_permissions_', [TDatabasePermissions, None], None, ), # 1
7834  (2, TType.STRUCT, 'table_permissions_', [TTablePermissions, None], None, ), # 2
7835  (3, TType.STRUCT, 'dashboard_permissions_', [TDashboardPermissions, None], None, ), # 3
7836  (4, TType.STRUCT, 'view_permissions_', [TViewPermissions, None], None, ), # 4
7837  (5, TType.STRUCT, 'server_permissions_', [TServerPermissions, None], None, ), # 5
7838 )
7839 all_structs.append(TDBObject)
7840 TDBObject.thrift_spec = (
7841  None, # 0
7842  (1, TType.STRING, 'objectName', 'UTF8', None, ), # 1
7843  (2, TType.I32, 'objectType', None, None, ), # 2
7844  (3, TType.LIST, 'privs', (TType.BOOL, None, False), None, ), # 3
7845  (4, TType.STRING, 'grantee', 'UTF8', None, ), # 4
7846  (5, TType.I32, 'privilegeObjectType', None, None, ), # 5
7847  (6, TType.I32, 'objectId', None, None, ), # 6
7848 )
7849 all_structs.append(TDashboardGrantees)
7850 TDashboardGrantees.thrift_spec = (
7851  None, # 0
7852  (1, TType.STRING, 'name', 'UTF8', None, ), # 1
7853  (2, TType.BOOL, 'is_user', None, None, ), # 2
7854  (3, TType.STRUCT, 'permissions', [TDashboardPermissions, None], None, ), # 3
7855 )
7856 all_structs.append(TDashboard)
7857 TDashboard.thrift_spec = (
7858  None, # 0
7859  (1, TType.STRING, 'dashboard_name', 'UTF8', None, ), # 1
7860  (2, TType.STRING, 'dashboard_state', 'UTF8', None, ), # 2
7861  (3, TType.STRING, 'image_hash', 'UTF8', None, ), # 3
7862  (4, TType.STRING, 'update_time', 'UTF8', None, ), # 4
7863  (5, TType.STRING, 'dashboard_metadata', 'UTF8', None, ), # 5
7864  (6, TType.I32, 'dashboard_id', None, None, ), # 6
7865  (7, TType.STRING, 'dashboard_owner', 'UTF8', None, ), # 7
7866  (8, TType.BOOL, 'is_dash_shared', None, None, ), # 8
7867  (9, TType.STRUCT, 'dashboard_permissions', [TDashboardPermissions, None], None, ), # 9
7868 )
7869 all_structs.append(TLicenseInfo)
7870 TLicenseInfo.thrift_spec = (
7871  None, # 0
7872  (1, TType.LIST, 'claims', (TType.STRING, 'UTF8', False), None, ), # 1
7873 )
7874 all_structs.append(TSessionInfo)
7875 TSessionInfo.thrift_spec = (
7876  None, # 0
7877  (1, TType.STRING, 'user', 'UTF8', None, ), # 1
7878  (2, TType.STRING, 'database', 'UTF8', None, ), # 2
7879  (3, TType.I64, 'start_time', None, None, ), # 3
7880  (4, TType.BOOL, 'is_super', None, None, ), # 4
7881 )
7882 all_structs.append(TGeoFileLayerInfo)
7883 TGeoFileLayerInfo.thrift_spec = (
7884  None, # 0
7885  (1, TType.STRING, 'name', 'UTF8', None, ), # 1
7886  (2, TType.I32, 'contents', None, None, ), # 2
7887 )
7888 all_structs.append(TTableEpochInfo)
7889 TTableEpochInfo.thrift_spec = (
7890  None, # 0
7891  (1, TType.I32, 'table_id', None, None, ), # 1
7892  (2, TType.I32, 'table_epoch', None, None, ), # 2
7893  (3, TType.I32, 'leaf_index', None, None, ), # 3
7894 )
7895 all_structs.append(TCustomExpression)
7896 TCustomExpression.thrift_spec = (
7897  None, # 0
7898  (1, TType.I32, 'id', None, None, ), # 1
7899  (2, TType.STRING, 'name', 'UTF8', None, ), # 2
7900  None, # 3
7901  (4, TType.STRING, 'expression_json', 'UTF8', None, ), # 4
7902  (5, TType.I32, 'data_source_type', None, None, ), # 5
7903  (6, TType.I32, 'data_source_id', None, None, ), # 6
7904  (7, TType.BOOL, 'is_deleted', None, None, ), # 7
7905  (8, TType.STRING, 'data_source_name', 'UTF8', None, ), # 8
7906 )
7907 all_structs.append(TQueryInfo)
7908 TQueryInfo.thrift_spec = (
7909  None, # 0
7910  (1, TType.STRING, 'query_session_id', 'UTF8', None, ), # 1
7911  (2, TType.STRING, 'query_public_session_id', 'UTF8', None, ), # 2
7912  (3, TType.STRING, 'current_status', 'UTF8', None, ), # 3
7913  (4, TType.I32, 'executor_id', None, None, ), # 4
7914  (5, TType.STRING, 'submitted', 'UTF8', None, ), # 5
7915  (6, TType.STRING, 'query_str', 'UTF8', None, ), # 6
7916  (7, TType.STRING, 'login_name', 'UTF8', None, ), # 7
7917  (8, TType.STRING, 'client_address', 'UTF8', None, ), # 8
7918  (9, TType.STRING, 'db_name', 'UTF8', None, ), # 9
7919  (10, TType.STRING, 'exec_device_type', 'UTF8', None, ), # 10
7920 )
7921 all_structs.append(TLeafInfo)
7922 TLeafInfo.thrift_spec = (
7923  None, # 0
7924  (1, TType.I32, 'leaf_id', None, None, ), # 1
7925  (2, TType.I32, 'num_leaves', None, None, ), # 2
7926 )
7927 fix_spec(all_structs)
7928 del all_structs
std::string join(T const &container, std::string const &delim)