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