awx-zipline-ai 0.2.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. agent/__init__.py +1 -0
  2. agent/constants.py +15 -0
  3. agent/ttypes.py +1684 -0
  4. ai/__init__.py +0 -0
  5. ai/chronon/__init__.py +0 -0
  6. ai/chronon/airflow_helpers.py +251 -0
  7. ai/chronon/api/__init__.py +1 -0
  8. ai/chronon/api/common/__init__.py +1 -0
  9. ai/chronon/api/common/constants.py +15 -0
  10. ai/chronon/api/common/ttypes.py +1844 -0
  11. ai/chronon/api/constants.py +15 -0
  12. ai/chronon/api/ttypes.py +3624 -0
  13. ai/chronon/cli/compile/column_hashing.py +313 -0
  14. ai/chronon/cli/compile/compile_context.py +177 -0
  15. ai/chronon/cli/compile/compiler.py +160 -0
  16. ai/chronon/cli/compile/conf_validator.py +590 -0
  17. ai/chronon/cli/compile/display/class_tracker.py +112 -0
  18. ai/chronon/cli/compile/display/compile_status.py +95 -0
  19. ai/chronon/cli/compile/display/compiled_obj.py +12 -0
  20. ai/chronon/cli/compile/display/console.py +3 -0
  21. ai/chronon/cli/compile/display/diff_result.py +46 -0
  22. ai/chronon/cli/compile/fill_templates.py +40 -0
  23. ai/chronon/cli/compile/parse_configs.py +141 -0
  24. ai/chronon/cli/compile/parse_teams.py +238 -0
  25. ai/chronon/cli/compile/serializer.py +115 -0
  26. ai/chronon/cli/git_utils.py +156 -0
  27. ai/chronon/cli/logger.py +61 -0
  28. ai/chronon/constants.py +3 -0
  29. ai/chronon/eval/__init__.py +122 -0
  30. ai/chronon/eval/query_parsing.py +19 -0
  31. ai/chronon/eval/sample_tables.py +100 -0
  32. ai/chronon/eval/table_scan.py +186 -0
  33. ai/chronon/fetcher/__init__.py +1 -0
  34. ai/chronon/fetcher/constants.py +15 -0
  35. ai/chronon/fetcher/ttypes.py +127 -0
  36. ai/chronon/group_by.py +692 -0
  37. ai/chronon/hub/__init__.py +1 -0
  38. ai/chronon/hub/constants.py +15 -0
  39. ai/chronon/hub/ttypes.py +1228 -0
  40. ai/chronon/join.py +566 -0
  41. ai/chronon/logger.py +24 -0
  42. ai/chronon/model.py +35 -0
  43. ai/chronon/observability/__init__.py +1 -0
  44. ai/chronon/observability/constants.py +15 -0
  45. ai/chronon/observability/ttypes.py +2192 -0
  46. ai/chronon/orchestration/__init__.py +1 -0
  47. ai/chronon/orchestration/constants.py +15 -0
  48. ai/chronon/orchestration/ttypes.py +4406 -0
  49. ai/chronon/planner/__init__.py +1 -0
  50. ai/chronon/planner/constants.py +15 -0
  51. ai/chronon/planner/ttypes.py +1686 -0
  52. ai/chronon/query.py +126 -0
  53. ai/chronon/repo/__init__.py +40 -0
  54. ai/chronon/repo/aws.py +298 -0
  55. ai/chronon/repo/cluster.py +65 -0
  56. ai/chronon/repo/compile.py +56 -0
  57. ai/chronon/repo/constants.py +164 -0
  58. ai/chronon/repo/default_runner.py +291 -0
  59. ai/chronon/repo/explore.py +421 -0
  60. ai/chronon/repo/extract_objects.py +137 -0
  61. ai/chronon/repo/gcp.py +585 -0
  62. ai/chronon/repo/gitpython_utils.py +14 -0
  63. ai/chronon/repo/hub_runner.py +171 -0
  64. ai/chronon/repo/hub_uploader.py +108 -0
  65. ai/chronon/repo/init.py +53 -0
  66. ai/chronon/repo/join_backfill.py +105 -0
  67. ai/chronon/repo/run.py +293 -0
  68. ai/chronon/repo/serializer.py +141 -0
  69. ai/chronon/repo/team_json_utils.py +46 -0
  70. ai/chronon/repo/utils.py +472 -0
  71. ai/chronon/repo/zipline.py +51 -0
  72. ai/chronon/repo/zipline_hub.py +105 -0
  73. ai/chronon/resources/gcp/README.md +174 -0
  74. ai/chronon/resources/gcp/group_bys/test/__init__.py +0 -0
  75. ai/chronon/resources/gcp/group_bys/test/data.py +34 -0
  76. ai/chronon/resources/gcp/joins/test/__init__.py +0 -0
  77. ai/chronon/resources/gcp/joins/test/data.py +30 -0
  78. ai/chronon/resources/gcp/sources/test/__init__.py +0 -0
  79. ai/chronon/resources/gcp/sources/test/data.py +23 -0
  80. ai/chronon/resources/gcp/teams.py +70 -0
  81. ai/chronon/resources/gcp/zipline-cli-install.sh +54 -0
  82. ai/chronon/source.py +88 -0
  83. ai/chronon/staging_query.py +185 -0
  84. ai/chronon/types.py +57 -0
  85. ai/chronon/utils.py +557 -0
  86. ai/chronon/windows.py +50 -0
  87. awx_zipline_ai-0.2.0.dist-info/METADATA +173 -0
  88. awx_zipline_ai-0.2.0.dist-info/RECORD +93 -0
  89. awx_zipline_ai-0.2.0.dist-info/WHEEL +5 -0
  90. awx_zipline_ai-0.2.0.dist-info/entry_points.txt +2 -0
  91. awx_zipline_ai-0.2.0.dist-info/licenses/LICENSE +202 -0
  92. awx_zipline_ai-0.2.0.dist-info/top_level.txt +3 -0
  93. jars/__init__.py +0 -0
@@ -0,0 +1,4406 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.22.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
+ from uuid import UUID
13
+
14
+ import sys
15
+ import ai.chronon.api.common.ttypes
16
+ import ai.chronon.api.ttypes
17
+
18
+ from thrift.transport import TTransport
19
+ all_structs = []
20
+
21
+
22
+ class TabularDataType(object):
23
+ EVENT = 1
24
+ ENTITY = 2
25
+ CUMULATIVE_EVENTS = 3
26
+
27
+ _VALUES_TO_NAMES = {
28
+ 1: "EVENT",
29
+ 2: "ENTITY",
30
+ 3: "CUMULATIVE_EVENTS",
31
+ }
32
+
33
+ _NAMES_TO_VALUES = {
34
+ "EVENT": 1,
35
+ "ENTITY": 2,
36
+ "CUMULATIVE_EVENTS": 3,
37
+ }
38
+
39
+
40
+ class ConfType(object):
41
+ GROUP_BY = 0
42
+ JOIN = 1
43
+ STAGING_QUERY = 2
44
+ MODEL = 3
45
+
46
+ _VALUES_TO_NAMES = {
47
+ 0: "GROUP_BY",
48
+ 1: "JOIN",
49
+ 2: "STAGING_QUERY",
50
+ 3: "MODEL",
51
+ }
52
+
53
+ _NAMES_TO_VALUES = {
54
+ "GROUP_BY": 0,
55
+ "JOIN": 1,
56
+ "STAGING_QUERY": 2,
57
+ "MODEL": 3,
58
+ }
59
+
60
+
61
+ class GroupByNodeType(object):
62
+ PARTIAL_IR = 1
63
+ SAWTOOTH_IR = 2
64
+ SNAPSHOT = 3
65
+ PREPARE_UPLOAD = 10
66
+ UPLOAD = 11
67
+ STREAMING = 12
68
+
69
+ _VALUES_TO_NAMES = {
70
+ 1: "PARTIAL_IR",
71
+ 2: "SAWTOOTH_IR",
72
+ 3: "SNAPSHOT",
73
+ 10: "PREPARE_UPLOAD",
74
+ 11: "UPLOAD",
75
+ 12: "STREAMING",
76
+ }
77
+
78
+ _NAMES_TO_VALUES = {
79
+ "PARTIAL_IR": 1,
80
+ "SAWTOOTH_IR": 2,
81
+ "SNAPSHOT": 3,
82
+ "PREPARE_UPLOAD": 10,
83
+ "UPLOAD": 11,
84
+ "STREAMING": 12,
85
+ }
86
+
87
+
88
+ class JoinNodeType(object):
89
+ LEFT_SOURCE = 1
90
+ BOOTSTRAP = 2
91
+ RIGHT_PART = 3
92
+ MERGE = 4
93
+ DERIVE = 5
94
+ LABEL_PART = 6
95
+ LABEL_JOIN = 7
96
+ METADATA_UPLOAD = 20
97
+ PREPARE_LOGS = 21
98
+ SUMMARIZE = 40
99
+ DRIFT = 41
100
+ DRIFT_UPLOAD = 42
101
+
102
+ _VALUES_TO_NAMES = {
103
+ 1: "LEFT_SOURCE",
104
+ 2: "BOOTSTRAP",
105
+ 3: "RIGHT_PART",
106
+ 4: "MERGE",
107
+ 5: "DERIVE",
108
+ 6: "LABEL_PART",
109
+ 7: "LABEL_JOIN",
110
+ 20: "METADATA_UPLOAD",
111
+ 21: "PREPARE_LOGS",
112
+ 40: "SUMMARIZE",
113
+ 41: "DRIFT",
114
+ 42: "DRIFT_UPLOAD",
115
+ }
116
+
117
+ _NAMES_TO_VALUES = {
118
+ "LEFT_SOURCE": 1,
119
+ "BOOTSTRAP": 2,
120
+ "RIGHT_PART": 3,
121
+ "MERGE": 4,
122
+ "DERIVE": 5,
123
+ "LABEL_PART": 6,
124
+ "LABEL_JOIN": 7,
125
+ "METADATA_UPLOAD": 20,
126
+ "PREPARE_LOGS": 21,
127
+ "SUMMARIZE": 40,
128
+ "DRIFT": 41,
129
+ "DRIFT_UPLOAD": 42,
130
+ }
131
+
132
+
133
+ class StagingQueryNodeType(object):
134
+ BACKFILL = 1
135
+
136
+ _VALUES_TO_NAMES = {
137
+ 1: "BACKFILL",
138
+ }
139
+
140
+ _NAMES_TO_VALUES = {
141
+ "BACKFILL": 1,
142
+ }
143
+
144
+
145
+ class ModelNodeType(object):
146
+ TRAINING = 300
147
+ BULK_INFERENCE = 301
148
+
149
+ _VALUES_TO_NAMES = {
150
+ 300: "TRAINING",
151
+ 301: "BULK_INFERENCE",
152
+ }
153
+
154
+ _NAMES_TO_VALUES = {
155
+ "TRAINING": 300,
156
+ "BULK_INFERENCE": 301,
157
+ }
158
+
159
+
160
+ class TableNodeType(object):
161
+ MATERIALIZED = 1
162
+ VIEW = 2
163
+
164
+ _VALUES_TO_NAMES = {
165
+ 1: "MATERIALIZED",
166
+ 2: "VIEW",
167
+ }
168
+
169
+ _NAMES_TO_VALUES = {
170
+ "MATERIALIZED": 1,
171
+ "VIEW": 2,
172
+ }
173
+
174
+
175
+ class NodeRunStatus(object):
176
+ UNKNOWN = 0
177
+ WAITING = 1
178
+ RUNNING = 2
179
+ SUCCEEDED = 3
180
+ FAILED = 4
181
+
182
+ _VALUES_TO_NAMES = {
183
+ 0: "UNKNOWN",
184
+ 1: "WAITING",
185
+ 2: "RUNNING",
186
+ 3: "SUCCEEDED",
187
+ 4: "FAILED",
188
+ }
189
+
190
+ _NAMES_TO_VALUES = {
191
+ "UNKNOWN": 0,
192
+ "WAITING": 1,
193
+ "RUNNING": 2,
194
+ "SUCCEEDED": 3,
195
+ "FAILED": 4,
196
+ }
197
+
198
+
199
+ class WorkflowStatus(object):
200
+ UNKNOWN = 0
201
+ SUBMITTED = 1
202
+ RUNNING = 2
203
+ SUCCEEDED = 3
204
+ FAILED = 4
205
+
206
+ _VALUES_TO_NAMES = {
207
+ 0: "UNKNOWN",
208
+ 1: "SUBMITTED",
209
+ 2: "RUNNING",
210
+ 3: "SUCCEEDED",
211
+ 4: "FAILED",
212
+ }
213
+
214
+ _NAMES_TO_VALUES = {
215
+ "UNKNOWN": 0,
216
+ "SUBMITTED": 1,
217
+ "RUNNING": 2,
218
+ "SUCCEEDED": 3,
219
+ "FAILED": 4,
220
+ }
221
+
222
+
223
+ class CheckResult(object):
224
+ SUCCESS = 0
225
+ FAILURE = 1
226
+ SKIPPED = 2
227
+
228
+ _VALUES_TO_NAMES = {
229
+ 0: "SUCCESS",
230
+ 1: "FAILURE",
231
+ 2: "SKIPPED",
232
+ }
233
+
234
+ _NAMES_TO_VALUES = {
235
+ "SUCCESS": 0,
236
+ "FAILURE": 1,
237
+ "SKIPPED": 2,
238
+ }
239
+
240
+
241
+ class TabularData(object):
242
+ """
243
+ Represents a group of structured data assets that the same data flows through
244
+ just a normalized version of Events + Entity sources.
245
+
246
+
247
+ Attributes:
248
+ - table
249
+ - topic
250
+ - mutationTable
251
+ - type
252
+
253
+ """
254
+ thrift_spec = None
255
+
256
+
257
+ def __init__(self, table = None, topic = None, mutationTable = None, type = None,):
258
+ self.table = table
259
+ self.topic = topic
260
+ self.mutationTable = mutationTable
261
+ self.type = type
262
+
263
+ def read(self, iprot):
264
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
265
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
266
+ return
267
+ iprot.readStructBegin()
268
+ while True:
269
+ (fname, ftype, fid) = iprot.readFieldBegin()
270
+ if ftype == TType.STOP:
271
+ break
272
+ if fid == 1:
273
+ if ftype == TType.STRING:
274
+ self.table = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
275
+ else:
276
+ iprot.skip(ftype)
277
+ elif fid == 2:
278
+ if ftype == TType.STRING:
279
+ self.topic = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
280
+ else:
281
+ iprot.skip(ftype)
282
+ elif fid == 3:
283
+ if ftype == TType.STRING:
284
+ self.mutationTable = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
285
+ else:
286
+ iprot.skip(ftype)
287
+ elif fid == 4:
288
+ if ftype == TType.I32:
289
+ self.type = iprot.readI32()
290
+ else:
291
+ iprot.skip(ftype)
292
+ else:
293
+ iprot.skip(ftype)
294
+ iprot.readFieldEnd()
295
+ iprot.readStructEnd()
296
+
297
+ def write(self, oprot):
298
+ self.validate()
299
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
300
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
301
+ return
302
+ oprot.writeStructBegin('TabularData')
303
+ if self.table is not None:
304
+ oprot.writeFieldBegin('table', TType.STRING, 1)
305
+ oprot.writeString(self.table.encode('utf-8') if sys.version_info[0] == 2 else self.table)
306
+ oprot.writeFieldEnd()
307
+ if self.topic is not None:
308
+ oprot.writeFieldBegin('topic', TType.STRING, 2)
309
+ oprot.writeString(self.topic.encode('utf-8') if sys.version_info[0] == 2 else self.topic)
310
+ oprot.writeFieldEnd()
311
+ if self.mutationTable is not None:
312
+ oprot.writeFieldBegin('mutationTable', TType.STRING, 3)
313
+ oprot.writeString(self.mutationTable.encode('utf-8') if sys.version_info[0] == 2 else self.mutationTable)
314
+ oprot.writeFieldEnd()
315
+ if self.type is not None:
316
+ oprot.writeFieldBegin('type', TType.I32, 4)
317
+ oprot.writeI32(self.type)
318
+ oprot.writeFieldEnd()
319
+ oprot.writeFieldStop()
320
+ oprot.writeStructEnd()
321
+
322
+ def validate(self):
323
+ return
324
+
325
+ def __repr__(self):
326
+ L = ['%s=%r' % (key, value)
327
+ for key, value in self.__dict__.items()]
328
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
329
+
330
+ def __eq__(self, other):
331
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
332
+
333
+ def __ne__(self, other):
334
+ return not (self == other)
335
+
336
+
337
+ class LogicalNode(object):
338
+ """
339
+ Attributes:
340
+ - stagingQuery
341
+ - join
342
+ - groupBy
343
+ - model
344
+ - tabularData
345
+
346
+ """
347
+ thrift_spec = None
348
+
349
+
350
+ def __init__(self, stagingQuery = None, join = None, groupBy = None, model = None, tabularData = None,):
351
+ self.stagingQuery = stagingQuery
352
+ self.join = join
353
+ self.groupBy = groupBy
354
+ self.model = model
355
+ self.tabularData = tabularData
356
+
357
+ def read(self, iprot):
358
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
359
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
360
+ return
361
+ iprot.readStructBegin()
362
+ while True:
363
+ (fname, ftype, fid) = iprot.readFieldBegin()
364
+ if ftype == TType.STOP:
365
+ break
366
+ if fid == 1:
367
+ if ftype == TType.STRUCT:
368
+ self.stagingQuery = ai.chronon.api.ttypes.StagingQuery()
369
+ self.stagingQuery.read(iprot)
370
+ else:
371
+ iprot.skip(ftype)
372
+ elif fid == 2:
373
+ if ftype == TType.STRUCT:
374
+ self.join = ai.chronon.api.ttypes.Join()
375
+ self.join.read(iprot)
376
+ else:
377
+ iprot.skip(ftype)
378
+ elif fid == 3:
379
+ if ftype == TType.STRUCT:
380
+ self.groupBy = ai.chronon.api.ttypes.GroupBy()
381
+ self.groupBy.read(iprot)
382
+ else:
383
+ iprot.skip(ftype)
384
+ elif fid == 4:
385
+ if ftype == TType.STRUCT:
386
+ self.model = ai.chronon.api.ttypes.Model()
387
+ self.model.read(iprot)
388
+ else:
389
+ iprot.skip(ftype)
390
+ elif fid == 5:
391
+ if ftype == TType.STRUCT:
392
+ self.tabularData = TabularData()
393
+ self.tabularData.read(iprot)
394
+ else:
395
+ iprot.skip(ftype)
396
+ else:
397
+ iprot.skip(ftype)
398
+ iprot.readFieldEnd()
399
+ iprot.readStructEnd()
400
+
401
+ def write(self, oprot):
402
+ self.validate()
403
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
404
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
405
+ return
406
+ oprot.writeStructBegin('LogicalNode')
407
+ if self.stagingQuery is not None:
408
+ oprot.writeFieldBegin('stagingQuery', TType.STRUCT, 1)
409
+ self.stagingQuery.write(oprot)
410
+ oprot.writeFieldEnd()
411
+ if self.join is not None:
412
+ oprot.writeFieldBegin('join', TType.STRUCT, 2)
413
+ self.join.write(oprot)
414
+ oprot.writeFieldEnd()
415
+ if self.groupBy is not None:
416
+ oprot.writeFieldBegin('groupBy', TType.STRUCT, 3)
417
+ self.groupBy.write(oprot)
418
+ oprot.writeFieldEnd()
419
+ if self.model is not None:
420
+ oprot.writeFieldBegin('model', TType.STRUCT, 4)
421
+ self.model.write(oprot)
422
+ oprot.writeFieldEnd()
423
+ if self.tabularData is not None:
424
+ oprot.writeFieldBegin('tabularData', TType.STRUCT, 5)
425
+ self.tabularData.write(oprot)
426
+ oprot.writeFieldEnd()
427
+ oprot.writeFieldStop()
428
+ oprot.writeStructEnd()
429
+
430
+ def validate(self):
431
+ return
432
+
433
+ def __repr__(self):
434
+ L = ['%s=%r' % (key, value)
435
+ for key, value in self.__dict__.items()]
436
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
437
+
438
+ def __eq__(self, other):
439
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
440
+
441
+ def __ne__(self, other):
442
+ return not (self == other)
443
+
444
+
445
+ class NodeKey(object):
446
+ """
447
+ Attributes:
448
+ - name
449
+ - logicalType
450
+ - physicalType
451
+
452
+ """
453
+ thrift_spec = None
454
+
455
+
456
+ def __init__(self, name = None, logicalType = None, physicalType = None,):
457
+ self.name = name
458
+ self.logicalType = logicalType
459
+ self.physicalType = physicalType
460
+
461
+ def read(self, iprot):
462
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
463
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
464
+ return
465
+ iprot.readStructBegin()
466
+ while True:
467
+ (fname, ftype, fid) = iprot.readFieldBegin()
468
+ if ftype == TType.STOP:
469
+ break
470
+ if fid == 1:
471
+ if ftype == TType.STRING:
472
+ self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
473
+ else:
474
+ iprot.skip(ftype)
475
+ elif fid == 2:
476
+ if ftype == TType.I32:
477
+ self.logicalType = iprot.readI32()
478
+ else:
479
+ iprot.skip(ftype)
480
+ elif fid == 3:
481
+ if ftype == TType.STRUCT:
482
+ self.physicalType = PhysicalNodeType()
483
+ self.physicalType.read(iprot)
484
+ else:
485
+ iprot.skip(ftype)
486
+ else:
487
+ iprot.skip(ftype)
488
+ iprot.readFieldEnd()
489
+ iprot.readStructEnd()
490
+
491
+ def write(self, oprot):
492
+ self.validate()
493
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
494
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
495
+ return
496
+ oprot.writeStructBegin('NodeKey')
497
+ if self.name is not None:
498
+ oprot.writeFieldBegin('name', TType.STRING, 1)
499
+ oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name)
500
+ oprot.writeFieldEnd()
501
+ if self.logicalType is not None:
502
+ oprot.writeFieldBegin('logicalType', TType.I32, 2)
503
+ oprot.writeI32(self.logicalType)
504
+ oprot.writeFieldEnd()
505
+ if self.physicalType is not None:
506
+ oprot.writeFieldBegin('physicalType', TType.STRUCT, 3)
507
+ self.physicalType.write(oprot)
508
+ oprot.writeFieldEnd()
509
+ oprot.writeFieldStop()
510
+ oprot.writeStructEnd()
511
+
512
+ def validate(self):
513
+ return
514
+
515
+ def __repr__(self):
516
+ L = ['%s=%r' % (key, value)
517
+ for key, value in self.__dict__.items()]
518
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
519
+
520
+ def __eq__(self, other):
521
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
522
+
523
+ def __ne__(self, other):
524
+ return not (self == other)
525
+
526
+
527
+ class NodeInfo(object):
528
+ """
529
+ Attributes:
530
+ - semanticHash: represents the computation that a node does
531
+ direct changes to conf that change output will affect semantic hash
532
+ changing spark params etc shouldn't affect this
533
+
534
+ - confHash: simple hash of the entire conf (that is TSimpleJsonProtocol serialized),
535
+ computed by cli and used to check if new conf_json need to be pushed from user's machine
536
+
537
+ - branch: when new/updated conf's are pushed the branch is also set from the cli
538
+ upon merging the branch will be unset
539
+
540
+ - author: will be set to the author of the last semantic change to node
541
+ (non-semantic changes like code-mods or spark params don't affect this)
542
+
543
+ - conf: contents of the conf itself
544
+
545
+
546
+ """
547
+ thrift_spec = None
548
+
549
+
550
+ def __init__(self, semanticHash = None, confHash = None, branch = None, author = None, conf = None,):
551
+ self.semanticHash = semanticHash
552
+ self.confHash = confHash
553
+ self.branch = branch
554
+ self.author = author
555
+ self.conf = conf
556
+
557
+ def read(self, iprot):
558
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
559
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
560
+ return
561
+ iprot.readStructBegin()
562
+ while True:
563
+ (fname, ftype, fid) = iprot.readFieldBegin()
564
+ if ftype == TType.STOP:
565
+ break
566
+ if fid == 11:
567
+ if ftype == TType.STRING:
568
+ self.semanticHash = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
569
+ else:
570
+ iprot.skip(ftype)
571
+ elif fid == 12:
572
+ if ftype == TType.STRING:
573
+ self.confHash = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
574
+ else:
575
+ iprot.skip(ftype)
576
+ elif fid == 20:
577
+ if ftype == TType.STRING:
578
+ self.branch = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
579
+ else:
580
+ iprot.skip(ftype)
581
+ elif fid == 21:
582
+ if ftype == TType.STRING:
583
+ self.author = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
584
+ else:
585
+ iprot.skip(ftype)
586
+ elif fid == 30:
587
+ if ftype == TType.STRUCT:
588
+ self.conf = LogicalNode()
589
+ self.conf.read(iprot)
590
+ else:
591
+ iprot.skip(ftype)
592
+ else:
593
+ iprot.skip(ftype)
594
+ iprot.readFieldEnd()
595
+ iprot.readStructEnd()
596
+
597
+ def write(self, oprot):
598
+ self.validate()
599
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
600
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
601
+ return
602
+ oprot.writeStructBegin('NodeInfo')
603
+ if self.semanticHash is not None:
604
+ oprot.writeFieldBegin('semanticHash', TType.STRING, 11)
605
+ oprot.writeString(self.semanticHash.encode('utf-8') if sys.version_info[0] == 2 else self.semanticHash)
606
+ oprot.writeFieldEnd()
607
+ if self.confHash is not None:
608
+ oprot.writeFieldBegin('confHash', TType.STRING, 12)
609
+ oprot.writeString(self.confHash.encode('utf-8') if sys.version_info[0] == 2 else self.confHash)
610
+ oprot.writeFieldEnd()
611
+ if self.branch is not None:
612
+ oprot.writeFieldBegin('branch', TType.STRING, 20)
613
+ oprot.writeString(self.branch.encode('utf-8') if sys.version_info[0] == 2 else self.branch)
614
+ oprot.writeFieldEnd()
615
+ if self.author is not None:
616
+ oprot.writeFieldBegin('author', TType.STRING, 21)
617
+ oprot.writeString(self.author.encode('utf-8') if sys.version_info[0] == 2 else self.author)
618
+ oprot.writeFieldEnd()
619
+ if self.conf is not None:
620
+ oprot.writeFieldBegin('conf', TType.STRUCT, 30)
621
+ self.conf.write(oprot)
622
+ oprot.writeFieldEnd()
623
+ oprot.writeFieldStop()
624
+ oprot.writeStructEnd()
625
+
626
+ def validate(self):
627
+ return
628
+
629
+ def __repr__(self):
630
+ L = ['%s=%r' % (key, value)
631
+ for key, value in self.__dict__.items()]
632
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
633
+
634
+ def __eq__(self, other):
635
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
636
+
637
+ def __ne__(self, other):
638
+ return not (self == other)
639
+
640
+
641
+ class NodeConnections(object):
642
+ """
643
+ Attributes:
644
+ - parents
645
+ - children
646
+
647
+ """
648
+ thrift_spec = None
649
+
650
+
651
+ def __init__(self, parents = None, children = None,):
652
+ self.parents = parents
653
+ self.children = children
654
+
655
+ def read(self, iprot):
656
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
657
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
658
+ return
659
+ iprot.readStructBegin()
660
+ while True:
661
+ (fname, ftype, fid) = iprot.readFieldBegin()
662
+ if ftype == TType.STOP:
663
+ break
664
+ if fid == 1:
665
+ if ftype == TType.LIST:
666
+ self.parents = []
667
+ (_etype3, _size0) = iprot.readListBegin()
668
+ for _i4 in range(_size0):
669
+ _elem5 = NodeKey()
670
+ _elem5.read(iprot)
671
+ self.parents.append(_elem5)
672
+ iprot.readListEnd()
673
+ else:
674
+ iprot.skip(ftype)
675
+ elif fid == 2:
676
+ if ftype == TType.LIST:
677
+ self.children = []
678
+ (_etype9, _size6) = iprot.readListBegin()
679
+ for _i10 in range(_size6):
680
+ _elem11 = NodeKey()
681
+ _elem11.read(iprot)
682
+ self.children.append(_elem11)
683
+ iprot.readListEnd()
684
+ else:
685
+ iprot.skip(ftype)
686
+ else:
687
+ iprot.skip(ftype)
688
+ iprot.readFieldEnd()
689
+ iprot.readStructEnd()
690
+
691
+ def write(self, oprot):
692
+ self.validate()
693
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
694
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
695
+ return
696
+ oprot.writeStructBegin('NodeConnections')
697
+ if self.parents is not None:
698
+ oprot.writeFieldBegin('parents', TType.LIST, 1)
699
+ oprot.writeListBegin(TType.STRUCT, len(self.parents))
700
+ for iter12 in self.parents:
701
+ iter12.write(oprot)
702
+ oprot.writeListEnd()
703
+ oprot.writeFieldEnd()
704
+ if self.children is not None:
705
+ oprot.writeFieldBegin('children', TType.LIST, 2)
706
+ oprot.writeListBegin(TType.STRUCT, len(self.children))
707
+ for iter13 in self.children:
708
+ iter13.write(oprot)
709
+ oprot.writeListEnd()
710
+ oprot.writeFieldEnd()
711
+ oprot.writeFieldStop()
712
+ oprot.writeStructEnd()
713
+
714
+ def validate(self):
715
+ return
716
+
717
+ def __repr__(self):
718
+ L = ['%s=%r' % (key, value)
719
+ for key, value in self.__dict__.items()]
720
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
721
+
722
+ def __eq__(self, other):
723
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
724
+
725
+ def __ne__(self, other):
726
+ return not (self == other)
727
+
728
+
729
+ class NodeGraph(object):
730
+ """
731
+ Attributes:
732
+ - connections
733
+ - infoMap
734
+
735
+ """
736
+ thrift_spec = None
737
+
738
+
739
+ def __init__(self, connections = None, infoMap = None,):
740
+ self.connections = connections
741
+ self.infoMap = infoMap
742
+
743
+ def read(self, iprot):
744
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
745
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
746
+ return
747
+ iprot.readStructBegin()
748
+ while True:
749
+ (fname, ftype, fid) = iprot.readFieldBegin()
750
+ if ftype == TType.STOP:
751
+ break
752
+ if fid == 1:
753
+ if ftype == TType.MAP:
754
+ self.connections = {}
755
+ (_ktype15, _vtype16, _size14) = iprot.readMapBegin()
756
+ for _i18 in range(_size14):
757
+ _key19 = NodeKey()
758
+ _key19.read(iprot)
759
+ _val20 = NodeConnections()
760
+ _val20.read(iprot)
761
+ self.connections[_key19] = _val20
762
+ iprot.readMapEnd()
763
+ else:
764
+ iprot.skip(ftype)
765
+ elif fid == 2:
766
+ if ftype == TType.MAP:
767
+ self.infoMap = {}
768
+ (_ktype22, _vtype23, _size21) = iprot.readMapBegin()
769
+ for _i25 in range(_size21):
770
+ _key26 = NodeKey()
771
+ _key26.read(iprot)
772
+ _val27 = NodeInfo()
773
+ _val27.read(iprot)
774
+ self.infoMap[_key26] = _val27
775
+ iprot.readMapEnd()
776
+ else:
777
+ iprot.skip(ftype)
778
+ else:
779
+ iprot.skip(ftype)
780
+ iprot.readFieldEnd()
781
+ iprot.readStructEnd()
782
+
783
+ def write(self, oprot):
784
+ self.validate()
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('NodeGraph')
789
+ if self.connections is not None:
790
+ oprot.writeFieldBegin('connections', TType.MAP, 1)
791
+ oprot.writeMapBegin(TType.STRUCT, TType.STRUCT, len(self.connections))
792
+ for kiter28, viter29 in self.connections.items():
793
+ kiter28.write(oprot)
794
+ viter29.write(oprot)
795
+ oprot.writeMapEnd()
796
+ oprot.writeFieldEnd()
797
+ if self.infoMap is not None:
798
+ oprot.writeFieldBegin('infoMap', TType.MAP, 2)
799
+ oprot.writeMapBegin(TType.STRUCT, TType.STRUCT, len(self.infoMap))
800
+ for kiter30, viter31 in self.infoMap.items():
801
+ kiter30.write(oprot)
802
+ viter31.write(oprot)
803
+ oprot.writeMapEnd()
804
+ oprot.writeFieldEnd()
805
+ oprot.writeFieldStop()
806
+ oprot.writeStructEnd()
807
+
808
+ def validate(self):
809
+ return
810
+
811
+ def __repr__(self):
812
+ L = ['%s=%r' % (key, value)
813
+ for key, value in self.__dict__.items()]
814
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
815
+
816
+ def __eq__(self, other):
817
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
818
+
819
+ def __ne__(self, other):
820
+ return not (self == other)
821
+
822
+
823
+ class PhysicalNodeType(object):
824
+ """
825
+ Attributes:
826
+ - groupByNodeType
827
+ - joinNodeType
828
+ - stagingNodeType
829
+ - modelNodeType
830
+ - tableNodeType
831
+
832
+ """
833
+ thrift_spec = None
834
+
835
+
836
+ def __init__(self, groupByNodeType = None, joinNodeType = None, stagingNodeType = None, modelNodeType = None, tableNodeType = None,):
837
+ self.groupByNodeType = groupByNodeType
838
+ self.joinNodeType = joinNodeType
839
+ self.stagingNodeType = stagingNodeType
840
+ self.modelNodeType = modelNodeType
841
+ self.tableNodeType = tableNodeType
842
+
843
+ def read(self, iprot):
844
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
845
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
846
+ return
847
+ iprot.readStructBegin()
848
+ while True:
849
+ (fname, ftype, fid) = iprot.readFieldBegin()
850
+ if ftype == TType.STOP:
851
+ break
852
+ if fid == 1:
853
+ if ftype == TType.I32:
854
+ self.groupByNodeType = iprot.readI32()
855
+ else:
856
+ iprot.skip(ftype)
857
+ elif fid == 2:
858
+ if ftype == TType.I32:
859
+ self.joinNodeType = iprot.readI32()
860
+ else:
861
+ iprot.skip(ftype)
862
+ elif fid == 3:
863
+ if ftype == TType.I32:
864
+ self.stagingNodeType = iprot.readI32()
865
+ else:
866
+ iprot.skip(ftype)
867
+ elif fid == 4:
868
+ if ftype == TType.I32:
869
+ self.modelNodeType = iprot.readI32()
870
+ else:
871
+ iprot.skip(ftype)
872
+ elif fid == 5:
873
+ if ftype == TType.I32:
874
+ self.tableNodeType = iprot.readI32()
875
+ else:
876
+ iprot.skip(ftype)
877
+ else:
878
+ iprot.skip(ftype)
879
+ iprot.readFieldEnd()
880
+ iprot.readStructEnd()
881
+
882
+ def write(self, oprot):
883
+ self.validate()
884
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
885
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
886
+ return
887
+ oprot.writeStructBegin('PhysicalNodeType')
888
+ if self.groupByNodeType is not None:
889
+ oprot.writeFieldBegin('groupByNodeType', TType.I32, 1)
890
+ oprot.writeI32(self.groupByNodeType)
891
+ oprot.writeFieldEnd()
892
+ if self.joinNodeType is not None:
893
+ oprot.writeFieldBegin('joinNodeType', TType.I32, 2)
894
+ oprot.writeI32(self.joinNodeType)
895
+ oprot.writeFieldEnd()
896
+ if self.stagingNodeType is not None:
897
+ oprot.writeFieldBegin('stagingNodeType', TType.I32, 3)
898
+ oprot.writeI32(self.stagingNodeType)
899
+ oprot.writeFieldEnd()
900
+ if self.modelNodeType is not None:
901
+ oprot.writeFieldBegin('modelNodeType', TType.I32, 4)
902
+ oprot.writeI32(self.modelNodeType)
903
+ oprot.writeFieldEnd()
904
+ if self.tableNodeType is not None:
905
+ oprot.writeFieldBegin('tableNodeType', TType.I32, 5)
906
+ oprot.writeI32(self.tableNodeType)
907
+ oprot.writeFieldEnd()
908
+ oprot.writeFieldStop()
909
+ oprot.writeStructEnd()
910
+
911
+ def validate(self):
912
+ return
913
+
914
+ def __repr__(self):
915
+ L = ['%s=%r' % (key, value)
916
+ for key, value in self.__dict__.items()]
917
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
918
+
919
+ def __eq__(self, other):
920
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
921
+
922
+ def __ne__(self, other):
923
+ return not (self == other)
924
+
925
+
926
+ class PhysicalNode(object):
927
+ """
928
+ Attributes:
929
+ - name
930
+ - nodeType
931
+ - logicalNode
932
+ - confHash
933
+ - tableDependencies
934
+ - outputColumns
935
+ - outputTable
936
+
937
+ """
938
+ thrift_spec = None
939
+
940
+
941
+ def __init__(self, name = None, nodeType = None, logicalNode = None, confHash = None, tableDependencies = None, outputColumns = None, outputTable = None,):
942
+ self.name = name
943
+ self.nodeType = nodeType
944
+ self.logicalNode = logicalNode
945
+ self.confHash = confHash
946
+ self.tableDependencies = tableDependencies
947
+ self.outputColumns = outputColumns
948
+ self.outputTable = outputTable
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.STRING:
961
+ self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
962
+ else:
963
+ iprot.skip(ftype)
964
+ elif fid == 2:
965
+ if ftype == TType.STRUCT:
966
+ self.nodeType = PhysicalNodeType()
967
+ self.nodeType.read(iprot)
968
+ else:
969
+ iprot.skip(ftype)
970
+ elif fid == 3:
971
+ if ftype == TType.STRUCT:
972
+ self.logicalNode = LogicalNode()
973
+ self.logicalNode.read(iprot)
974
+ else:
975
+ iprot.skip(ftype)
976
+ elif fid == 4:
977
+ if ftype == TType.STRING:
978
+ self.confHash = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
979
+ else:
980
+ iprot.skip(ftype)
981
+ elif fid == 100:
982
+ if ftype == TType.LIST:
983
+ self.tableDependencies = []
984
+ (_etype35, _size32) = iprot.readListBegin()
985
+ for _i36 in range(_size32):
986
+ _elem37 = ai.chronon.api.common.ttypes.TableDependency()
987
+ _elem37.read(iprot)
988
+ self.tableDependencies.append(_elem37)
989
+ iprot.readListEnd()
990
+ else:
991
+ iprot.skip(ftype)
992
+ elif fid == 101:
993
+ if ftype == TType.LIST:
994
+ self.outputColumns = []
995
+ (_etype41, _size38) = iprot.readListBegin()
996
+ for _i42 in range(_size38):
997
+ _elem43 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
998
+ self.outputColumns.append(_elem43)
999
+ iprot.readListEnd()
1000
+ else:
1001
+ iprot.skip(ftype)
1002
+ elif fid == 102:
1003
+ if ftype == TType.STRING:
1004
+ self.outputTable = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1005
+ else:
1006
+ iprot.skip(ftype)
1007
+ else:
1008
+ iprot.skip(ftype)
1009
+ iprot.readFieldEnd()
1010
+ iprot.readStructEnd()
1011
+
1012
+ def write(self, oprot):
1013
+ self.validate()
1014
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
1015
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
1016
+ return
1017
+ oprot.writeStructBegin('PhysicalNode')
1018
+ if self.name is not None:
1019
+ oprot.writeFieldBegin('name', TType.STRING, 1)
1020
+ oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name)
1021
+ oprot.writeFieldEnd()
1022
+ if self.nodeType is not None:
1023
+ oprot.writeFieldBegin('nodeType', TType.STRUCT, 2)
1024
+ self.nodeType.write(oprot)
1025
+ oprot.writeFieldEnd()
1026
+ if self.logicalNode is not None:
1027
+ oprot.writeFieldBegin('logicalNode', TType.STRUCT, 3)
1028
+ self.logicalNode.write(oprot)
1029
+ oprot.writeFieldEnd()
1030
+ if self.confHash is not None:
1031
+ oprot.writeFieldBegin('confHash', TType.STRING, 4)
1032
+ oprot.writeString(self.confHash.encode('utf-8') if sys.version_info[0] == 2 else self.confHash)
1033
+ oprot.writeFieldEnd()
1034
+ if self.tableDependencies is not None:
1035
+ oprot.writeFieldBegin('tableDependencies', TType.LIST, 100)
1036
+ oprot.writeListBegin(TType.STRUCT, len(self.tableDependencies))
1037
+ for iter44 in self.tableDependencies:
1038
+ iter44.write(oprot)
1039
+ oprot.writeListEnd()
1040
+ oprot.writeFieldEnd()
1041
+ if self.outputColumns is not None:
1042
+ oprot.writeFieldBegin('outputColumns', TType.LIST, 101)
1043
+ oprot.writeListBegin(TType.STRING, len(self.outputColumns))
1044
+ for iter45 in self.outputColumns:
1045
+ oprot.writeString(iter45.encode('utf-8') if sys.version_info[0] == 2 else iter45)
1046
+ oprot.writeListEnd()
1047
+ oprot.writeFieldEnd()
1048
+ if self.outputTable is not None:
1049
+ oprot.writeFieldBegin('outputTable', TType.STRING, 102)
1050
+ oprot.writeString(self.outputTable.encode('utf-8') if sys.version_info[0] == 2 else self.outputTable)
1051
+ oprot.writeFieldEnd()
1052
+ oprot.writeFieldStop()
1053
+ oprot.writeStructEnd()
1054
+
1055
+ def validate(self):
1056
+ return
1057
+
1058
+ def __repr__(self):
1059
+ L = ['%s=%r' % (key, value)
1060
+ for key, value in self.__dict__.items()]
1061
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1062
+
1063
+ def __eq__(self, other):
1064
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1065
+
1066
+ def __ne__(self, other):
1067
+ return not (self == other)
1068
+
1069
+
1070
+ class PhysicalGraph(object):
1071
+ """
1072
+ Attributes:
1073
+ - node
1074
+ - dependencies
1075
+ - range
1076
+
1077
+ """
1078
+ thrift_spec = None
1079
+
1080
+
1081
+ def __init__(self, node = None, dependencies = None, range = None,):
1082
+ self.node = node
1083
+ self.dependencies = dependencies
1084
+ self.range = range
1085
+
1086
+ def read(self, iprot):
1087
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
1088
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
1089
+ return
1090
+ iprot.readStructBegin()
1091
+ while True:
1092
+ (fname, ftype, fid) = iprot.readFieldBegin()
1093
+ if ftype == TType.STOP:
1094
+ break
1095
+ if fid == 1:
1096
+ if ftype == TType.STRUCT:
1097
+ self.node = PhysicalNode()
1098
+ self.node.read(iprot)
1099
+ else:
1100
+ iprot.skip(ftype)
1101
+ elif fid == 2:
1102
+ if ftype == TType.LIST:
1103
+ self.dependencies = []
1104
+ (_etype49, _size46) = iprot.readListBegin()
1105
+ for _i50 in range(_size46):
1106
+ _elem51 = PhysicalGraph()
1107
+ _elem51.read(iprot)
1108
+ self.dependencies.append(_elem51)
1109
+ iprot.readListEnd()
1110
+ else:
1111
+ iprot.skip(ftype)
1112
+ elif fid == 3:
1113
+ if ftype == TType.STRUCT:
1114
+ self.range = ai.chronon.api.common.ttypes.DateRange()
1115
+ self.range.read(iprot)
1116
+ else:
1117
+ iprot.skip(ftype)
1118
+ else:
1119
+ iprot.skip(ftype)
1120
+ iprot.readFieldEnd()
1121
+ iprot.readStructEnd()
1122
+
1123
+ def write(self, oprot):
1124
+ self.validate()
1125
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
1126
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
1127
+ return
1128
+ oprot.writeStructBegin('PhysicalGraph')
1129
+ if self.node is not None:
1130
+ oprot.writeFieldBegin('node', TType.STRUCT, 1)
1131
+ self.node.write(oprot)
1132
+ oprot.writeFieldEnd()
1133
+ if self.dependencies is not None:
1134
+ oprot.writeFieldBegin('dependencies', TType.LIST, 2)
1135
+ oprot.writeListBegin(TType.STRUCT, len(self.dependencies))
1136
+ for iter52 in self.dependencies:
1137
+ iter52.write(oprot)
1138
+ oprot.writeListEnd()
1139
+ oprot.writeFieldEnd()
1140
+ if self.range is not None:
1141
+ oprot.writeFieldBegin('range', TType.STRUCT, 3)
1142
+ self.range.write(oprot)
1143
+ oprot.writeFieldEnd()
1144
+ oprot.writeFieldStop()
1145
+ oprot.writeStructEnd()
1146
+
1147
+ def validate(self):
1148
+ return
1149
+
1150
+ def __repr__(self):
1151
+ L = ['%s=%r' % (key, value)
1152
+ for key, value in self.__dict__.items()]
1153
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1154
+
1155
+ def __eq__(self, other):
1156
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1157
+
1158
+ def __ne__(self, other):
1159
+ return not (self == other)
1160
+
1161
+
1162
+ class PhysicalNodeKey(object):
1163
+ """
1164
+ Multiple logical nodes could share the same physical node
1165
+ For that reason we don't have a 1-1 mapping between logical and physical nodes
1166
+ TODO -- kill this (typescript dependency)
1167
+
1168
+
1169
+ Attributes:
1170
+ - name
1171
+ - nodeType
1172
+
1173
+ """
1174
+ thrift_spec = None
1175
+
1176
+
1177
+ def __init__(self, name = None, nodeType = None,):
1178
+ self.name = name
1179
+ self.nodeType = nodeType
1180
+
1181
+ def read(self, iprot):
1182
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
1183
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
1184
+ return
1185
+ iprot.readStructBegin()
1186
+ while True:
1187
+ (fname, ftype, fid) = iprot.readFieldBegin()
1188
+ if ftype == TType.STOP:
1189
+ break
1190
+ if fid == 1:
1191
+ if ftype == TType.STRING:
1192
+ self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1193
+ else:
1194
+ iprot.skip(ftype)
1195
+ elif fid == 2:
1196
+ if ftype == TType.STRUCT:
1197
+ self.nodeType = PhysicalNodeType()
1198
+ self.nodeType.read(iprot)
1199
+ else:
1200
+ iprot.skip(ftype)
1201
+ else:
1202
+ iprot.skip(ftype)
1203
+ iprot.readFieldEnd()
1204
+ iprot.readStructEnd()
1205
+
1206
+ def write(self, oprot):
1207
+ self.validate()
1208
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
1209
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
1210
+ return
1211
+ oprot.writeStructBegin('PhysicalNodeKey')
1212
+ if self.name is not None:
1213
+ oprot.writeFieldBegin('name', TType.STRING, 1)
1214
+ oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name)
1215
+ oprot.writeFieldEnd()
1216
+ if self.nodeType is not None:
1217
+ oprot.writeFieldBegin('nodeType', TType.STRUCT, 2)
1218
+ self.nodeType.write(oprot)
1219
+ oprot.writeFieldEnd()
1220
+ oprot.writeFieldStop()
1221
+ oprot.writeStructEnd()
1222
+
1223
+ def validate(self):
1224
+ return
1225
+
1226
+ def __repr__(self):
1227
+ L = ['%s=%r' % (key, value)
1228
+ for key, value in self.__dict__.items()]
1229
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1230
+
1231
+ def __eq__(self, other):
1232
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1233
+
1234
+ def __ne__(self, other):
1235
+ return not (self == other)
1236
+
1237
+
1238
+ class Conf(object):
1239
+ """
1240
+ Attributes:
1241
+ - name
1242
+ - hash
1243
+ - contents
1244
+ - confType
1245
+
1246
+ """
1247
+ thrift_spec = None
1248
+
1249
+
1250
+ def __init__(self, name = None, hash = None, contents = None, confType = None,):
1251
+ self.name = name
1252
+ self.hash = hash
1253
+ self.contents = contents
1254
+ self.confType = confType
1255
+
1256
+ def read(self, iprot):
1257
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
1258
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
1259
+ return
1260
+ iprot.readStructBegin()
1261
+ while True:
1262
+ (fname, ftype, fid) = iprot.readFieldBegin()
1263
+ if ftype == TType.STOP:
1264
+ break
1265
+ if fid == 1:
1266
+ if ftype == TType.STRING:
1267
+ self.name = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1268
+ else:
1269
+ iprot.skip(ftype)
1270
+ elif fid == 2:
1271
+ if ftype == TType.STRING:
1272
+ self.hash = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1273
+ else:
1274
+ iprot.skip(ftype)
1275
+ elif fid == 3:
1276
+ if ftype == TType.STRING:
1277
+ self.contents = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1278
+ else:
1279
+ iprot.skip(ftype)
1280
+ elif fid == 4:
1281
+ if ftype == TType.I32:
1282
+ self.confType = iprot.readI32()
1283
+ else:
1284
+ iprot.skip(ftype)
1285
+ else:
1286
+ iprot.skip(ftype)
1287
+ iprot.readFieldEnd()
1288
+ iprot.readStructEnd()
1289
+
1290
+ def write(self, oprot):
1291
+ self.validate()
1292
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
1293
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
1294
+ return
1295
+ oprot.writeStructBegin('Conf')
1296
+ if self.name is not None:
1297
+ oprot.writeFieldBegin('name', TType.STRING, 1)
1298
+ oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name)
1299
+ oprot.writeFieldEnd()
1300
+ if self.hash is not None:
1301
+ oprot.writeFieldBegin('hash', TType.STRING, 2)
1302
+ oprot.writeString(self.hash.encode('utf-8') if sys.version_info[0] == 2 else self.hash)
1303
+ oprot.writeFieldEnd()
1304
+ if self.contents is not None:
1305
+ oprot.writeFieldBegin('contents', TType.STRING, 3)
1306
+ oprot.writeString(self.contents.encode('utf-8') if sys.version_info[0] == 2 else self.contents)
1307
+ oprot.writeFieldEnd()
1308
+ if self.confType is not None:
1309
+ oprot.writeFieldBegin('confType', TType.I32, 4)
1310
+ oprot.writeI32(self.confType)
1311
+ oprot.writeFieldEnd()
1312
+ oprot.writeFieldStop()
1313
+ oprot.writeStructEnd()
1314
+
1315
+ def validate(self):
1316
+ return
1317
+
1318
+ def __repr__(self):
1319
+ L = ['%s=%r' % (key, value)
1320
+ for key, value in self.__dict__.items()]
1321
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1322
+
1323
+ def __eq__(self, other):
1324
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1325
+
1326
+ def __ne__(self, other):
1327
+ return not (self == other)
1328
+
1329
+
1330
+ class DiffRequest(object):
1331
+ """
1332
+ Attributes:
1333
+ - namesToHashes
1334
+
1335
+ """
1336
+ thrift_spec = None
1337
+
1338
+
1339
+ def __init__(self, namesToHashes = None,):
1340
+ self.namesToHashes = namesToHashes
1341
+
1342
+ def read(self, iprot):
1343
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
1344
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
1345
+ return
1346
+ iprot.readStructBegin()
1347
+ while True:
1348
+ (fname, ftype, fid) = iprot.readFieldBegin()
1349
+ if ftype == TType.STOP:
1350
+ break
1351
+ if fid == 1:
1352
+ if ftype == TType.MAP:
1353
+ self.namesToHashes = {}
1354
+ (_ktype54, _vtype55, _size53) = iprot.readMapBegin()
1355
+ for _i57 in range(_size53):
1356
+ _key58 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1357
+ _val59 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1358
+ self.namesToHashes[_key58] = _val59
1359
+ iprot.readMapEnd()
1360
+ else:
1361
+ iprot.skip(ftype)
1362
+ else:
1363
+ iprot.skip(ftype)
1364
+ iprot.readFieldEnd()
1365
+ iprot.readStructEnd()
1366
+
1367
+ def write(self, oprot):
1368
+ self.validate()
1369
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
1370
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
1371
+ return
1372
+ oprot.writeStructBegin('DiffRequest')
1373
+ if self.namesToHashes is not None:
1374
+ oprot.writeFieldBegin('namesToHashes', TType.MAP, 1)
1375
+ oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.namesToHashes))
1376
+ for kiter60, viter61 in self.namesToHashes.items():
1377
+ oprot.writeString(kiter60.encode('utf-8') if sys.version_info[0] == 2 else kiter60)
1378
+ oprot.writeString(viter61.encode('utf-8') if sys.version_info[0] == 2 else viter61)
1379
+ oprot.writeMapEnd()
1380
+ oprot.writeFieldEnd()
1381
+ oprot.writeFieldStop()
1382
+ oprot.writeStructEnd()
1383
+
1384
+ def validate(self):
1385
+ return
1386
+
1387
+ def __repr__(self):
1388
+ L = ['%s=%r' % (key, value)
1389
+ for key, value in self.__dict__.items()]
1390
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1391
+
1392
+ def __eq__(self, other):
1393
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1394
+
1395
+ def __ne__(self, other):
1396
+ return not (self == other)
1397
+
1398
+
1399
+ class DiffResponse(object):
1400
+ """
1401
+ Attributes:
1402
+ - diff
1403
+
1404
+ """
1405
+ thrift_spec = None
1406
+
1407
+
1408
+ def __init__(self, diff = None,):
1409
+ self.diff = diff
1410
+
1411
+ def read(self, iprot):
1412
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
1413
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
1414
+ return
1415
+ iprot.readStructBegin()
1416
+ while True:
1417
+ (fname, ftype, fid) = iprot.readFieldBegin()
1418
+ if ftype == TType.STOP:
1419
+ break
1420
+ if fid == 1:
1421
+ if ftype == TType.LIST:
1422
+ self.diff = []
1423
+ (_etype65, _size62) = iprot.readListBegin()
1424
+ for _i66 in range(_size62):
1425
+ _elem67 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1426
+ self.diff.append(_elem67)
1427
+ iprot.readListEnd()
1428
+ else:
1429
+ iprot.skip(ftype)
1430
+ else:
1431
+ iprot.skip(ftype)
1432
+ iprot.readFieldEnd()
1433
+ iprot.readStructEnd()
1434
+
1435
+ def write(self, oprot):
1436
+ self.validate()
1437
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
1438
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
1439
+ return
1440
+ oprot.writeStructBegin('DiffResponse')
1441
+ if self.diff is not None:
1442
+ oprot.writeFieldBegin('diff', TType.LIST, 1)
1443
+ oprot.writeListBegin(TType.STRING, len(self.diff))
1444
+ for iter68 in self.diff:
1445
+ oprot.writeString(iter68.encode('utf-8') if sys.version_info[0] == 2 else iter68)
1446
+ oprot.writeListEnd()
1447
+ oprot.writeFieldEnd()
1448
+ oprot.writeFieldStop()
1449
+ oprot.writeStructEnd()
1450
+
1451
+ def validate(self):
1452
+ return
1453
+
1454
+ def __repr__(self):
1455
+ L = ['%s=%r' % (key, value)
1456
+ for key, value in self.__dict__.items()]
1457
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1458
+
1459
+ def __eq__(self, other):
1460
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1461
+
1462
+ def __ne__(self, other):
1463
+ return not (self == other)
1464
+
1465
+
1466
+ class UploadRequest(object):
1467
+ """
1468
+ Attributes:
1469
+ - diffConfs
1470
+ - branch
1471
+
1472
+ """
1473
+ thrift_spec = None
1474
+
1475
+
1476
+ def __init__(self, diffConfs = None, branch = None,):
1477
+ self.diffConfs = diffConfs
1478
+ self.branch = branch
1479
+
1480
+ def read(self, iprot):
1481
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
1482
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
1483
+ return
1484
+ iprot.readStructBegin()
1485
+ while True:
1486
+ (fname, ftype, fid) = iprot.readFieldBegin()
1487
+ if ftype == TType.STOP:
1488
+ break
1489
+ if fid == 1:
1490
+ if ftype == TType.LIST:
1491
+ self.diffConfs = []
1492
+ (_etype72, _size69) = iprot.readListBegin()
1493
+ for _i73 in range(_size69):
1494
+ _elem74 = Conf()
1495
+ _elem74.read(iprot)
1496
+ self.diffConfs.append(_elem74)
1497
+ iprot.readListEnd()
1498
+ else:
1499
+ iprot.skip(ftype)
1500
+ elif fid == 2:
1501
+ if ftype == TType.STRING:
1502
+ self.branch = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1503
+ else:
1504
+ iprot.skip(ftype)
1505
+ else:
1506
+ iprot.skip(ftype)
1507
+ iprot.readFieldEnd()
1508
+ iprot.readStructEnd()
1509
+
1510
+ def write(self, oprot):
1511
+ self.validate()
1512
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
1513
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
1514
+ return
1515
+ oprot.writeStructBegin('UploadRequest')
1516
+ if self.diffConfs is not None:
1517
+ oprot.writeFieldBegin('diffConfs', TType.LIST, 1)
1518
+ oprot.writeListBegin(TType.STRUCT, len(self.diffConfs))
1519
+ for iter75 in self.diffConfs:
1520
+ iter75.write(oprot)
1521
+ oprot.writeListEnd()
1522
+ oprot.writeFieldEnd()
1523
+ if self.branch is not None:
1524
+ oprot.writeFieldBegin('branch', TType.STRING, 2)
1525
+ oprot.writeString(self.branch.encode('utf-8') if sys.version_info[0] == 2 else self.branch)
1526
+ oprot.writeFieldEnd()
1527
+ oprot.writeFieldStop()
1528
+ oprot.writeStructEnd()
1529
+
1530
+ def validate(self):
1531
+ return
1532
+
1533
+ def __repr__(self):
1534
+ L = ['%s=%r' % (key, value)
1535
+ for key, value in self.__dict__.items()]
1536
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1537
+
1538
+ def __eq__(self, other):
1539
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1540
+
1541
+ def __ne__(self, other):
1542
+ return not (self == other)
1543
+
1544
+
1545
+ class UploadResponse(object):
1546
+ """
1547
+ Attributes:
1548
+ - message
1549
+
1550
+ """
1551
+ thrift_spec = None
1552
+
1553
+
1554
+ def __init__(self, message = None,):
1555
+ self.message = message
1556
+
1557
+ def read(self, iprot):
1558
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
1559
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
1560
+ return
1561
+ iprot.readStructBegin()
1562
+ while True:
1563
+ (fname, ftype, fid) = iprot.readFieldBegin()
1564
+ if ftype == TType.STOP:
1565
+ break
1566
+ if fid == 1:
1567
+ if ftype == TType.STRING:
1568
+ self.message = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1569
+ else:
1570
+ iprot.skip(ftype)
1571
+ else:
1572
+ iprot.skip(ftype)
1573
+ iprot.readFieldEnd()
1574
+ iprot.readStructEnd()
1575
+
1576
+ def write(self, oprot):
1577
+ self.validate()
1578
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
1579
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
1580
+ return
1581
+ oprot.writeStructBegin('UploadResponse')
1582
+ if self.message is not None:
1583
+ oprot.writeFieldBegin('message', TType.STRING, 1)
1584
+ oprot.writeString(self.message.encode('utf-8') if sys.version_info[0] == 2 else self.message)
1585
+ oprot.writeFieldEnd()
1586
+ oprot.writeFieldStop()
1587
+ oprot.writeStructEnd()
1588
+
1589
+ def validate(self):
1590
+ return
1591
+
1592
+ def __repr__(self):
1593
+ L = ['%s=%r' % (key, value)
1594
+ for key, value in self.__dict__.items()]
1595
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1596
+
1597
+ def __eq__(self, other):
1598
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1599
+
1600
+ def __ne__(self, other):
1601
+ return not (self == other)
1602
+
1603
+
1604
+ class WorkflowStartRequest(object):
1605
+ """
1606
+ Attributes:
1607
+ - confName
1608
+ - mode
1609
+ - branch
1610
+ - user
1611
+ - start
1612
+ - end
1613
+ - confHash
1614
+
1615
+ """
1616
+ thrift_spec = None
1617
+
1618
+
1619
+ def __init__(self, confName = None, mode = None, branch = None, user = None, start = None, end = None, confHash = None,):
1620
+ self.confName = confName
1621
+ self.mode = mode
1622
+ self.branch = branch
1623
+ self.user = user
1624
+ self.start = start
1625
+ self.end = end
1626
+ self.confHash = confHash
1627
+
1628
+ def read(self, iprot):
1629
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
1630
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
1631
+ return
1632
+ iprot.readStructBegin()
1633
+ while True:
1634
+ (fname, ftype, fid) = iprot.readFieldBegin()
1635
+ if ftype == TType.STOP:
1636
+ break
1637
+ if fid == 1:
1638
+ if ftype == TType.STRING:
1639
+ self.confName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1640
+ else:
1641
+ iprot.skip(ftype)
1642
+ elif fid == 2:
1643
+ if ftype == TType.STRING:
1644
+ self.mode = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1645
+ else:
1646
+ iprot.skip(ftype)
1647
+ elif fid == 3:
1648
+ if ftype == TType.STRING:
1649
+ self.branch = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1650
+ else:
1651
+ iprot.skip(ftype)
1652
+ elif fid == 4:
1653
+ if ftype == TType.STRING:
1654
+ self.user = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1655
+ else:
1656
+ iprot.skip(ftype)
1657
+ elif fid == 5:
1658
+ if ftype == TType.STRING:
1659
+ self.start = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1660
+ else:
1661
+ iprot.skip(ftype)
1662
+ elif fid == 6:
1663
+ if ftype == TType.STRING:
1664
+ self.end = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1665
+ else:
1666
+ iprot.skip(ftype)
1667
+ elif fid == 7:
1668
+ if ftype == TType.STRING:
1669
+ self.confHash = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1670
+ else:
1671
+ iprot.skip(ftype)
1672
+ else:
1673
+ iprot.skip(ftype)
1674
+ iprot.readFieldEnd()
1675
+ iprot.readStructEnd()
1676
+
1677
+ def write(self, oprot):
1678
+ self.validate()
1679
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
1680
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
1681
+ return
1682
+ oprot.writeStructBegin('WorkflowStartRequest')
1683
+ if self.confName is not None:
1684
+ oprot.writeFieldBegin('confName', TType.STRING, 1)
1685
+ oprot.writeString(self.confName.encode('utf-8') if sys.version_info[0] == 2 else self.confName)
1686
+ oprot.writeFieldEnd()
1687
+ if self.mode is not None:
1688
+ oprot.writeFieldBegin('mode', TType.STRING, 2)
1689
+ oprot.writeString(self.mode.encode('utf-8') if sys.version_info[0] == 2 else self.mode)
1690
+ oprot.writeFieldEnd()
1691
+ if self.branch is not None:
1692
+ oprot.writeFieldBegin('branch', TType.STRING, 3)
1693
+ oprot.writeString(self.branch.encode('utf-8') if sys.version_info[0] == 2 else self.branch)
1694
+ oprot.writeFieldEnd()
1695
+ if self.user is not None:
1696
+ oprot.writeFieldBegin('user', TType.STRING, 4)
1697
+ oprot.writeString(self.user.encode('utf-8') if sys.version_info[0] == 2 else self.user)
1698
+ oprot.writeFieldEnd()
1699
+ if self.start is not None:
1700
+ oprot.writeFieldBegin('start', TType.STRING, 5)
1701
+ oprot.writeString(self.start.encode('utf-8') if sys.version_info[0] == 2 else self.start)
1702
+ oprot.writeFieldEnd()
1703
+ if self.end is not None:
1704
+ oprot.writeFieldBegin('end', TType.STRING, 6)
1705
+ oprot.writeString(self.end.encode('utf-8') if sys.version_info[0] == 2 else self.end)
1706
+ oprot.writeFieldEnd()
1707
+ if self.confHash is not None:
1708
+ oprot.writeFieldBegin('confHash', TType.STRING, 7)
1709
+ oprot.writeString(self.confHash.encode('utf-8') if sys.version_info[0] == 2 else self.confHash)
1710
+ oprot.writeFieldEnd()
1711
+ oprot.writeFieldStop()
1712
+ oprot.writeStructEnd()
1713
+
1714
+ def validate(self):
1715
+ return
1716
+
1717
+ def __repr__(self):
1718
+ L = ['%s=%r' % (key, value)
1719
+ for key, value in self.__dict__.items()]
1720
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1721
+
1722
+ def __eq__(self, other):
1723
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1724
+
1725
+ def __ne__(self, other):
1726
+ return not (self == other)
1727
+
1728
+
1729
+ class WorkflowStartResponse(object):
1730
+ """
1731
+ Attributes:
1732
+ - workflowId
1733
+
1734
+ """
1735
+ thrift_spec = None
1736
+
1737
+
1738
+ def __init__(self, workflowId = None,):
1739
+ self.workflowId = workflowId
1740
+
1741
+ def read(self, iprot):
1742
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
1743
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
1744
+ return
1745
+ iprot.readStructBegin()
1746
+ while True:
1747
+ (fname, ftype, fid) = iprot.readFieldBegin()
1748
+ if ftype == TType.STOP:
1749
+ break
1750
+ if fid == 1:
1751
+ if ftype == TType.STRING:
1752
+ self.workflowId = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1753
+ else:
1754
+ iprot.skip(ftype)
1755
+ else:
1756
+ iprot.skip(ftype)
1757
+ iprot.readFieldEnd()
1758
+ iprot.readStructEnd()
1759
+
1760
+ def write(self, oprot):
1761
+ self.validate()
1762
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
1763
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
1764
+ return
1765
+ oprot.writeStructBegin('WorkflowStartResponse')
1766
+ if self.workflowId is not None:
1767
+ oprot.writeFieldBegin('workflowId', TType.STRING, 1)
1768
+ oprot.writeString(self.workflowId.encode('utf-8') if sys.version_info[0] == 2 else self.workflowId)
1769
+ oprot.writeFieldEnd()
1770
+ oprot.writeFieldStop()
1771
+ oprot.writeStructEnd()
1772
+
1773
+ def validate(self):
1774
+ return
1775
+
1776
+ def __repr__(self):
1777
+ L = ['%s=%r' % (key, value)
1778
+ for key, value in self.__dict__.items()]
1779
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1780
+
1781
+ def __eq__(self, other):
1782
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1783
+
1784
+ def __ne__(self, other):
1785
+ return not (self == other)
1786
+
1787
+
1788
+ class NodeExecutionInfo(object):
1789
+ """
1790
+ Attributes:
1791
+ - nodeName
1792
+ - nodeHash
1793
+ - startPartition
1794
+ - endPartition
1795
+ - dependencies
1796
+ - stepRuns
1797
+
1798
+ """
1799
+ thrift_spec = None
1800
+
1801
+
1802
+ def __init__(self, nodeName = None, nodeHash = None, startPartition = None, endPartition = None, dependencies = None, stepRuns = None,):
1803
+ self.nodeName = nodeName
1804
+ self.nodeHash = nodeHash
1805
+ self.startPartition = startPartition
1806
+ self.endPartition = endPartition
1807
+ self.dependencies = dependencies
1808
+ self.stepRuns = stepRuns
1809
+
1810
+ def read(self, iprot):
1811
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
1812
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
1813
+ return
1814
+ iprot.readStructBegin()
1815
+ while True:
1816
+ (fname, ftype, fid) = iprot.readFieldBegin()
1817
+ if ftype == TType.STOP:
1818
+ break
1819
+ if fid == 1:
1820
+ if ftype == TType.STRING:
1821
+ self.nodeName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1822
+ else:
1823
+ iprot.skip(ftype)
1824
+ elif fid == 2:
1825
+ if ftype == TType.STRING:
1826
+ self.nodeHash = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1827
+ else:
1828
+ iprot.skip(ftype)
1829
+ elif fid == 3:
1830
+ if ftype == TType.STRING:
1831
+ self.startPartition = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1832
+ else:
1833
+ iprot.skip(ftype)
1834
+ elif fid == 4:
1835
+ if ftype == TType.STRING:
1836
+ self.endPartition = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1837
+ else:
1838
+ iprot.skip(ftype)
1839
+ elif fid == 5:
1840
+ if ftype == TType.LIST:
1841
+ self.dependencies = []
1842
+ (_etype79, _size76) = iprot.readListBegin()
1843
+ for _i80 in range(_size76):
1844
+ _elem81 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1845
+ self.dependencies.append(_elem81)
1846
+ iprot.readListEnd()
1847
+ else:
1848
+ iprot.skip(ftype)
1849
+ elif fid == 6:
1850
+ if ftype == TType.LIST:
1851
+ self.stepRuns = []
1852
+ (_etype85, _size82) = iprot.readListBegin()
1853
+ for _i86 in range(_size82):
1854
+ _elem87 = NodeStepRunInfo()
1855
+ _elem87.read(iprot)
1856
+ self.stepRuns.append(_elem87)
1857
+ iprot.readListEnd()
1858
+ else:
1859
+ iprot.skip(ftype)
1860
+ else:
1861
+ iprot.skip(ftype)
1862
+ iprot.readFieldEnd()
1863
+ iprot.readStructEnd()
1864
+
1865
+ def write(self, oprot):
1866
+ self.validate()
1867
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
1868
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
1869
+ return
1870
+ oprot.writeStructBegin('NodeExecutionInfo')
1871
+ if self.nodeName is not None:
1872
+ oprot.writeFieldBegin('nodeName', TType.STRING, 1)
1873
+ oprot.writeString(self.nodeName.encode('utf-8') if sys.version_info[0] == 2 else self.nodeName)
1874
+ oprot.writeFieldEnd()
1875
+ if self.nodeHash is not None:
1876
+ oprot.writeFieldBegin('nodeHash', TType.STRING, 2)
1877
+ oprot.writeString(self.nodeHash.encode('utf-8') if sys.version_info[0] == 2 else self.nodeHash)
1878
+ oprot.writeFieldEnd()
1879
+ if self.startPartition is not None:
1880
+ oprot.writeFieldBegin('startPartition', TType.STRING, 3)
1881
+ oprot.writeString(self.startPartition.encode('utf-8') if sys.version_info[0] == 2 else self.startPartition)
1882
+ oprot.writeFieldEnd()
1883
+ if self.endPartition is not None:
1884
+ oprot.writeFieldBegin('endPartition', TType.STRING, 4)
1885
+ oprot.writeString(self.endPartition.encode('utf-8') if sys.version_info[0] == 2 else self.endPartition)
1886
+ oprot.writeFieldEnd()
1887
+ if self.dependencies is not None:
1888
+ oprot.writeFieldBegin('dependencies', TType.LIST, 5)
1889
+ oprot.writeListBegin(TType.STRING, len(self.dependencies))
1890
+ for iter88 in self.dependencies:
1891
+ oprot.writeString(iter88.encode('utf-8') if sys.version_info[0] == 2 else iter88)
1892
+ oprot.writeListEnd()
1893
+ oprot.writeFieldEnd()
1894
+ if self.stepRuns is not None:
1895
+ oprot.writeFieldBegin('stepRuns', TType.LIST, 6)
1896
+ oprot.writeListBegin(TType.STRUCT, len(self.stepRuns))
1897
+ for iter89 in self.stepRuns:
1898
+ iter89.write(oprot)
1899
+ oprot.writeListEnd()
1900
+ oprot.writeFieldEnd()
1901
+ oprot.writeFieldStop()
1902
+ oprot.writeStructEnd()
1903
+
1904
+ def validate(self):
1905
+ return
1906
+
1907
+ def __repr__(self):
1908
+ L = ['%s=%r' % (key, value)
1909
+ for key, value in self.__dict__.items()]
1910
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1911
+
1912
+ def __eq__(self, other):
1913
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1914
+
1915
+ def __ne__(self, other):
1916
+ return not (self == other)
1917
+
1918
+
1919
+ class JobTrackingInfo(object):
1920
+ """
1921
+ Attributes:
1922
+ - jobUrl
1923
+ - sparkUrl
1924
+ - flinkUrl
1925
+
1926
+ """
1927
+ thrift_spec = None
1928
+
1929
+
1930
+ def __init__(self, jobUrl = None, sparkUrl = None, flinkUrl = None,):
1931
+ self.jobUrl = jobUrl
1932
+ self.sparkUrl = sparkUrl
1933
+ self.flinkUrl = flinkUrl
1934
+
1935
+ def read(self, iprot):
1936
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
1937
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
1938
+ return
1939
+ iprot.readStructBegin()
1940
+ while True:
1941
+ (fname, ftype, fid) = iprot.readFieldBegin()
1942
+ if ftype == TType.STOP:
1943
+ break
1944
+ if fid == 1:
1945
+ if ftype == TType.STRING:
1946
+ self.jobUrl = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1947
+ else:
1948
+ iprot.skip(ftype)
1949
+ elif fid == 2:
1950
+ if ftype == TType.STRING:
1951
+ self.sparkUrl = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1952
+ else:
1953
+ iprot.skip(ftype)
1954
+ elif fid == 3:
1955
+ if ftype == TType.STRING:
1956
+ self.flinkUrl = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1957
+ else:
1958
+ iprot.skip(ftype)
1959
+ else:
1960
+ iprot.skip(ftype)
1961
+ iprot.readFieldEnd()
1962
+ iprot.readStructEnd()
1963
+
1964
+ def write(self, oprot):
1965
+ self.validate()
1966
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
1967
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
1968
+ return
1969
+ oprot.writeStructBegin('JobTrackingInfo')
1970
+ if self.jobUrl is not None:
1971
+ oprot.writeFieldBegin('jobUrl', TType.STRING, 1)
1972
+ oprot.writeString(self.jobUrl.encode('utf-8') if sys.version_info[0] == 2 else self.jobUrl)
1973
+ oprot.writeFieldEnd()
1974
+ if self.sparkUrl is not None:
1975
+ oprot.writeFieldBegin('sparkUrl', TType.STRING, 2)
1976
+ oprot.writeString(self.sparkUrl.encode('utf-8') if sys.version_info[0] == 2 else self.sparkUrl)
1977
+ oprot.writeFieldEnd()
1978
+ if self.flinkUrl is not None:
1979
+ oprot.writeFieldBegin('flinkUrl', TType.STRING, 3)
1980
+ oprot.writeString(self.flinkUrl.encode('utf-8') if sys.version_info[0] == 2 else self.flinkUrl)
1981
+ oprot.writeFieldEnd()
1982
+ oprot.writeFieldStop()
1983
+ oprot.writeStructEnd()
1984
+
1985
+ def validate(self):
1986
+ return
1987
+
1988
+ def __repr__(self):
1989
+ L = ['%s=%r' % (key, value)
1990
+ for key, value in self.__dict__.items()]
1991
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1992
+
1993
+ def __eq__(self, other):
1994
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1995
+
1996
+ def __ne__(self, other):
1997
+ return not (self == other)
1998
+
1999
+
2000
+ class NodeStepRunInfo(object):
2001
+ """
2002
+ Attributes:
2003
+ - runId
2004
+ - startPartition
2005
+ - endPartition
2006
+ - startTime
2007
+ - endTime
2008
+ - status
2009
+ - dependentStepRunIds
2010
+ - workflowId
2011
+ - jobTrackingInfo
2012
+
2013
+ """
2014
+ thrift_spec = None
2015
+
2016
+
2017
+ def __init__(self, runId = None, startPartition = None, endPartition = None, startTime = None, endTime = None, status = None, dependentStepRunIds = None, workflowId = None, jobTrackingInfo = None,):
2018
+ self.runId = runId
2019
+ self.startPartition = startPartition
2020
+ self.endPartition = endPartition
2021
+ self.startTime = startTime
2022
+ self.endTime = endTime
2023
+ self.status = status
2024
+ self.dependentStepRunIds = dependentStepRunIds
2025
+ self.workflowId = workflowId
2026
+ self.jobTrackingInfo = jobTrackingInfo
2027
+
2028
+ def read(self, iprot):
2029
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
2030
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
2031
+ return
2032
+ iprot.readStructBegin()
2033
+ while True:
2034
+ (fname, ftype, fid) = iprot.readFieldBegin()
2035
+ if ftype == TType.STOP:
2036
+ break
2037
+ if fid == 1:
2038
+ if ftype == TType.STRING:
2039
+ self.runId = 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 == 2:
2043
+ if ftype == TType.STRING:
2044
+ self.startPartition = 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 == 3:
2048
+ if ftype == TType.STRING:
2049
+ self.endPartition = 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 == 4:
2053
+ if ftype == TType.STRING:
2054
+ self.startTime = 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 == 5:
2058
+ if ftype == TType.STRING:
2059
+ self.endTime = 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 == 6:
2063
+ if ftype == TType.I32:
2064
+ self.status = iprot.readI32()
2065
+ else:
2066
+ iprot.skip(ftype)
2067
+ elif fid == 7:
2068
+ if ftype == TType.LIST:
2069
+ self.dependentStepRunIds = []
2070
+ (_etype93, _size90) = iprot.readListBegin()
2071
+ for _i94 in range(_size90):
2072
+ _elem95 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
2073
+ self.dependentStepRunIds.append(_elem95)
2074
+ iprot.readListEnd()
2075
+ else:
2076
+ iprot.skip(ftype)
2077
+ elif fid == 8:
2078
+ if ftype == TType.STRING:
2079
+ self.workflowId = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
2080
+ else:
2081
+ iprot.skip(ftype)
2082
+ elif fid == 9:
2083
+ if ftype == TType.STRUCT:
2084
+ self.jobTrackingInfo = JobTrackingInfo()
2085
+ self.jobTrackingInfo.read(iprot)
2086
+ else:
2087
+ iprot.skip(ftype)
2088
+ else:
2089
+ iprot.skip(ftype)
2090
+ iprot.readFieldEnd()
2091
+ iprot.readStructEnd()
2092
+
2093
+ def write(self, oprot):
2094
+ self.validate()
2095
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
2096
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
2097
+ return
2098
+ oprot.writeStructBegin('NodeStepRunInfo')
2099
+ if self.runId is not None:
2100
+ oprot.writeFieldBegin('runId', TType.STRING, 1)
2101
+ oprot.writeString(self.runId.encode('utf-8') if sys.version_info[0] == 2 else self.runId)
2102
+ oprot.writeFieldEnd()
2103
+ if self.startPartition is not None:
2104
+ oprot.writeFieldBegin('startPartition', TType.STRING, 2)
2105
+ oprot.writeString(self.startPartition.encode('utf-8') if sys.version_info[0] == 2 else self.startPartition)
2106
+ oprot.writeFieldEnd()
2107
+ if self.endPartition is not None:
2108
+ oprot.writeFieldBegin('endPartition', TType.STRING, 3)
2109
+ oprot.writeString(self.endPartition.encode('utf-8') if sys.version_info[0] == 2 else self.endPartition)
2110
+ oprot.writeFieldEnd()
2111
+ if self.startTime is not None:
2112
+ oprot.writeFieldBegin('startTime', TType.STRING, 4)
2113
+ oprot.writeString(self.startTime.encode('utf-8') if sys.version_info[0] == 2 else self.startTime)
2114
+ oprot.writeFieldEnd()
2115
+ if self.endTime is not None:
2116
+ oprot.writeFieldBegin('endTime', TType.STRING, 5)
2117
+ oprot.writeString(self.endTime.encode('utf-8') if sys.version_info[0] == 2 else self.endTime)
2118
+ oprot.writeFieldEnd()
2119
+ if self.status is not None:
2120
+ oprot.writeFieldBegin('status', TType.I32, 6)
2121
+ oprot.writeI32(self.status)
2122
+ oprot.writeFieldEnd()
2123
+ if self.dependentStepRunIds is not None:
2124
+ oprot.writeFieldBegin('dependentStepRunIds', TType.LIST, 7)
2125
+ oprot.writeListBegin(TType.STRING, len(self.dependentStepRunIds))
2126
+ for iter96 in self.dependentStepRunIds:
2127
+ oprot.writeString(iter96.encode('utf-8') if sys.version_info[0] == 2 else iter96)
2128
+ oprot.writeListEnd()
2129
+ oprot.writeFieldEnd()
2130
+ if self.workflowId is not None:
2131
+ oprot.writeFieldBegin('workflowId', TType.STRING, 8)
2132
+ oprot.writeString(self.workflowId.encode('utf-8') if sys.version_info[0] == 2 else self.workflowId)
2133
+ oprot.writeFieldEnd()
2134
+ if self.jobTrackingInfo is not None:
2135
+ oprot.writeFieldBegin('jobTrackingInfo', TType.STRUCT, 9)
2136
+ self.jobTrackingInfo.write(oprot)
2137
+ oprot.writeFieldEnd()
2138
+ oprot.writeFieldStop()
2139
+ oprot.writeStructEnd()
2140
+
2141
+ def validate(self):
2142
+ return
2143
+
2144
+ def __repr__(self):
2145
+ L = ['%s=%r' % (key, value)
2146
+ for key, value in self.__dict__.items()]
2147
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2148
+
2149
+ def __eq__(self, other):
2150
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2151
+
2152
+ def __ne__(self, other):
2153
+ return not (self == other)
2154
+
2155
+
2156
+ class WorkflowStatusResponse(object):
2157
+ """
2158
+ Attributes:
2159
+ - workflowId
2160
+ - confName
2161
+ - mode
2162
+ - branch
2163
+ - user
2164
+ - status
2165
+ - startPartition
2166
+ - endPartition
2167
+ - nodeExecutions
2168
+ - terminalNodes
2169
+
2170
+ """
2171
+ thrift_spec = None
2172
+
2173
+
2174
+ def __init__(self, workflowId = None, confName = None, mode = None, branch = None, user = None, status = None, startPartition = None, endPartition = None, nodeExecutions = None, terminalNodes = None,):
2175
+ self.workflowId = workflowId
2176
+ self.confName = confName
2177
+ self.mode = mode
2178
+ self.branch = branch
2179
+ self.user = user
2180
+ self.status = status
2181
+ self.startPartition = startPartition
2182
+ self.endPartition = endPartition
2183
+ self.nodeExecutions = nodeExecutions
2184
+ self.terminalNodes = terminalNodes
2185
+
2186
+ def read(self, iprot):
2187
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
2188
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
2189
+ return
2190
+ iprot.readStructBegin()
2191
+ while True:
2192
+ (fname, ftype, fid) = iprot.readFieldBegin()
2193
+ if ftype == TType.STOP:
2194
+ break
2195
+ if fid == 1:
2196
+ if ftype == TType.STRING:
2197
+ self.workflowId = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
2198
+ else:
2199
+ iprot.skip(ftype)
2200
+ elif fid == 2:
2201
+ if ftype == TType.STRING:
2202
+ self.confName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
2203
+ else:
2204
+ iprot.skip(ftype)
2205
+ elif fid == 3:
2206
+ if ftype == TType.STRING:
2207
+ self.mode = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
2208
+ else:
2209
+ iprot.skip(ftype)
2210
+ elif fid == 4:
2211
+ if ftype == TType.STRING:
2212
+ self.branch = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
2213
+ else:
2214
+ iprot.skip(ftype)
2215
+ elif fid == 5:
2216
+ if ftype == TType.STRING:
2217
+ self.user = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
2218
+ else:
2219
+ iprot.skip(ftype)
2220
+ elif fid == 6:
2221
+ if ftype == TType.I32:
2222
+ self.status = iprot.readI32()
2223
+ else:
2224
+ iprot.skip(ftype)
2225
+ elif fid == 7:
2226
+ if ftype == TType.STRING:
2227
+ self.startPartition = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
2228
+ else:
2229
+ iprot.skip(ftype)
2230
+ elif fid == 8:
2231
+ if ftype == TType.STRING:
2232
+ self.endPartition = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
2233
+ else:
2234
+ iprot.skip(ftype)
2235
+ elif fid == 9:
2236
+ if ftype == TType.LIST:
2237
+ self.nodeExecutions = []
2238
+ (_etype100, _size97) = iprot.readListBegin()
2239
+ for _i101 in range(_size97):
2240
+ _elem102 = NodeExecutionInfo()
2241
+ _elem102.read(iprot)
2242
+ self.nodeExecutions.append(_elem102)
2243
+ iprot.readListEnd()
2244
+ else:
2245
+ iprot.skip(ftype)
2246
+ elif fid == 10:
2247
+ if ftype == TType.LIST:
2248
+ self.terminalNodes = []
2249
+ (_etype106, _size103) = iprot.readListBegin()
2250
+ for _i107 in range(_size103):
2251
+ _elem108 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
2252
+ self.terminalNodes.append(_elem108)
2253
+ iprot.readListEnd()
2254
+ else:
2255
+ iprot.skip(ftype)
2256
+ else:
2257
+ iprot.skip(ftype)
2258
+ iprot.readFieldEnd()
2259
+ iprot.readStructEnd()
2260
+
2261
+ def write(self, oprot):
2262
+ self.validate()
2263
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
2264
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
2265
+ return
2266
+ oprot.writeStructBegin('WorkflowStatusResponse')
2267
+ if self.workflowId is not None:
2268
+ oprot.writeFieldBegin('workflowId', TType.STRING, 1)
2269
+ oprot.writeString(self.workflowId.encode('utf-8') if sys.version_info[0] == 2 else self.workflowId)
2270
+ oprot.writeFieldEnd()
2271
+ if self.confName is not None:
2272
+ oprot.writeFieldBegin('confName', TType.STRING, 2)
2273
+ oprot.writeString(self.confName.encode('utf-8') if sys.version_info[0] == 2 else self.confName)
2274
+ oprot.writeFieldEnd()
2275
+ if self.mode is not None:
2276
+ oprot.writeFieldBegin('mode', TType.STRING, 3)
2277
+ oprot.writeString(self.mode.encode('utf-8') if sys.version_info[0] == 2 else self.mode)
2278
+ oprot.writeFieldEnd()
2279
+ if self.branch is not None:
2280
+ oprot.writeFieldBegin('branch', TType.STRING, 4)
2281
+ oprot.writeString(self.branch.encode('utf-8') if sys.version_info[0] == 2 else self.branch)
2282
+ oprot.writeFieldEnd()
2283
+ if self.user is not None:
2284
+ oprot.writeFieldBegin('user', TType.STRING, 5)
2285
+ oprot.writeString(self.user.encode('utf-8') if sys.version_info[0] == 2 else self.user)
2286
+ oprot.writeFieldEnd()
2287
+ if self.status is not None:
2288
+ oprot.writeFieldBegin('status', TType.I32, 6)
2289
+ oprot.writeI32(self.status)
2290
+ oprot.writeFieldEnd()
2291
+ if self.startPartition is not None:
2292
+ oprot.writeFieldBegin('startPartition', TType.STRING, 7)
2293
+ oprot.writeString(self.startPartition.encode('utf-8') if sys.version_info[0] == 2 else self.startPartition)
2294
+ oprot.writeFieldEnd()
2295
+ if self.endPartition is not None:
2296
+ oprot.writeFieldBegin('endPartition', TType.STRING, 8)
2297
+ oprot.writeString(self.endPartition.encode('utf-8') if sys.version_info[0] == 2 else self.endPartition)
2298
+ oprot.writeFieldEnd()
2299
+ if self.nodeExecutions is not None:
2300
+ oprot.writeFieldBegin('nodeExecutions', TType.LIST, 9)
2301
+ oprot.writeListBegin(TType.STRUCT, len(self.nodeExecutions))
2302
+ for iter109 in self.nodeExecutions:
2303
+ iter109.write(oprot)
2304
+ oprot.writeListEnd()
2305
+ oprot.writeFieldEnd()
2306
+ if self.terminalNodes is not None:
2307
+ oprot.writeFieldBegin('terminalNodes', TType.LIST, 10)
2308
+ oprot.writeListBegin(TType.STRING, len(self.terminalNodes))
2309
+ for iter110 in self.terminalNodes:
2310
+ oprot.writeString(iter110.encode('utf-8') if sys.version_info[0] == 2 else iter110)
2311
+ oprot.writeListEnd()
2312
+ oprot.writeFieldEnd()
2313
+ oprot.writeFieldStop()
2314
+ oprot.writeStructEnd()
2315
+
2316
+ def validate(self):
2317
+ return
2318
+
2319
+ def __repr__(self):
2320
+ L = ['%s=%r' % (key, value)
2321
+ for key, value in self.__dict__.items()]
2322
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2323
+
2324
+ def __eq__(self, other):
2325
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2326
+
2327
+ def __ne__(self, other):
2328
+ return not (self == other)
2329
+
2330
+
2331
+ class WorkflowStatusRequest(object):
2332
+ """
2333
+ Attributes:
2334
+ - workflowId
2335
+
2336
+ """
2337
+ thrift_spec = None
2338
+
2339
+
2340
+ def __init__(self, workflowId = None,):
2341
+ self.workflowId = workflowId
2342
+
2343
+ def read(self, iprot):
2344
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
2345
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
2346
+ return
2347
+ iprot.readStructBegin()
2348
+ while True:
2349
+ (fname, ftype, fid) = iprot.readFieldBegin()
2350
+ if ftype == TType.STOP:
2351
+ break
2352
+ if fid == 1:
2353
+ if ftype == TType.STRING:
2354
+ self.workflowId = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
2355
+ else:
2356
+ iprot.skip(ftype)
2357
+ else:
2358
+ iprot.skip(ftype)
2359
+ iprot.readFieldEnd()
2360
+ iprot.readStructEnd()
2361
+
2362
+ def write(self, oprot):
2363
+ self.validate()
2364
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
2365
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
2366
+ return
2367
+ oprot.writeStructBegin('WorkflowStatusRequest')
2368
+ if self.workflowId is not None:
2369
+ oprot.writeFieldBegin('workflowId', TType.STRING, 1)
2370
+ oprot.writeString(self.workflowId.encode('utf-8') if sys.version_info[0] == 2 else self.workflowId)
2371
+ oprot.writeFieldEnd()
2372
+ oprot.writeFieldStop()
2373
+ oprot.writeStructEnd()
2374
+
2375
+ def validate(self):
2376
+ return
2377
+
2378
+ def __repr__(self):
2379
+ L = ['%s=%r' % (key, value)
2380
+ for key, value in self.__dict__.items()]
2381
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2382
+
2383
+ def __eq__(self, other):
2384
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2385
+
2386
+ def __ne__(self, other):
2387
+ return not (self == other)
2388
+
2389
+
2390
+ class NodeStatusRequest(object):
2391
+ """
2392
+ Attributes:
2393
+ - nodeName
2394
+ - start
2395
+ - end
2396
+
2397
+ """
2398
+ thrift_spec = None
2399
+
2400
+
2401
+ def __init__(self, nodeName = None, start = None, end = None,):
2402
+ self.nodeName = nodeName
2403
+ self.start = start
2404
+ self.end = end
2405
+
2406
+ def read(self, iprot):
2407
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
2408
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
2409
+ return
2410
+ iprot.readStructBegin()
2411
+ while True:
2412
+ (fname, ftype, fid) = iprot.readFieldBegin()
2413
+ if ftype == TType.STOP:
2414
+ break
2415
+ if fid == 1:
2416
+ if ftype == TType.STRING:
2417
+ self.nodeName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
2418
+ else:
2419
+ iprot.skip(ftype)
2420
+ elif fid == 2:
2421
+ if ftype == TType.STRING:
2422
+ self.start = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
2423
+ else:
2424
+ iprot.skip(ftype)
2425
+ elif fid == 3:
2426
+ if ftype == TType.STRING:
2427
+ self.end = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
2428
+ else:
2429
+ iprot.skip(ftype)
2430
+ else:
2431
+ iprot.skip(ftype)
2432
+ iprot.readFieldEnd()
2433
+ iprot.readStructEnd()
2434
+
2435
+ def write(self, oprot):
2436
+ self.validate()
2437
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
2438
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
2439
+ return
2440
+ oprot.writeStructBegin('NodeStatusRequest')
2441
+ if self.nodeName is not None:
2442
+ oprot.writeFieldBegin('nodeName', TType.STRING, 1)
2443
+ oprot.writeString(self.nodeName.encode('utf-8') if sys.version_info[0] == 2 else self.nodeName)
2444
+ oprot.writeFieldEnd()
2445
+ if self.start is not None:
2446
+ oprot.writeFieldBegin('start', TType.STRING, 2)
2447
+ oprot.writeString(self.start.encode('utf-8') if sys.version_info[0] == 2 else self.start)
2448
+ oprot.writeFieldEnd()
2449
+ if self.end is not None:
2450
+ oprot.writeFieldBegin('end', TType.STRING, 3)
2451
+ oprot.writeString(self.end.encode('utf-8') if sys.version_info[0] == 2 else self.end)
2452
+ oprot.writeFieldEnd()
2453
+ oprot.writeFieldStop()
2454
+ oprot.writeStructEnd()
2455
+
2456
+ def validate(self):
2457
+ return
2458
+
2459
+ def __repr__(self):
2460
+ L = ['%s=%r' % (key, value)
2461
+ for key, value in self.__dict__.items()]
2462
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2463
+
2464
+ def __eq__(self, other):
2465
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2466
+
2467
+ def __ne__(self, other):
2468
+ return not (self == other)
2469
+
2470
+
2471
+ class NodeStatusResponse(object):
2472
+ """
2473
+ Attributes:
2474
+ - nodeExecutions
2475
+
2476
+ """
2477
+ thrift_spec = None
2478
+
2479
+
2480
+ def __init__(self, nodeExecutions = None,):
2481
+ self.nodeExecutions = nodeExecutions
2482
+
2483
+ def read(self, iprot):
2484
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
2485
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
2486
+ return
2487
+ iprot.readStructBegin()
2488
+ while True:
2489
+ (fname, ftype, fid) = iprot.readFieldBegin()
2490
+ if ftype == TType.STOP:
2491
+ break
2492
+ if fid == 1:
2493
+ if ftype == TType.LIST:
2494
+ self.nodeExecutions = []
2495
+ (_etype114, _size111) = iprot.readListBegin()
2496
+ for _i115 in range(_size111):
2497
+ _elem116 = NodeExecutionInfo()
2498
+ _elem116.read(iprot)
2499
+ self.nodeExecutions.append(_elem116)
2500
+ iprot.readListEnd()
2501
+ else:
2502
+ iprot.skip(ftype)
2503
+ else:
2504
+ iprot.skip(ftype)
2505
+ iprot.readFieldEnd()
2506
+ iprot.readStructEnd()
2507
+
2508
+ def write(self, oprot):
2509
+ self.validate()
2510
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
2511
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
2512
+ return
2513
+ oprot.writeStructBegin('NodeStatusResponse')
2514
+ if self.nodeExecutions is not None:
2515
+ oprot.writeFieldBegin('nodeExecutions', TType.LIST, 1)
2516
+ oprot.writeListBegin(TType.STRUCT, len(self.nodeExecutions))
2517
+ for iter117 in self.nodeExecutions:
2518
+ iter117.write(oprot)
2519
+ oprot.writeListEnd()
2520
+ oprot.writeFieldEnd()
2521
+ oprot.writeFieldStop()
2522
+ oprot.writeStructEnd()
2523
+
2524
+ def validate(self):
2525
+ return
2526
+
2527
+ def __repr__(self):
2528
+ L = ['%s=%r' % (key, value)
2529
+ for key, value in self.__dict__.items()]
2530
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2531
+
2532
+ def __eq__(self, other):
2533
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2534
+
2535
+ def __ne__(self, other):
2536
+ return not (self == other)
2537
+
2538
+
2539
+ class ConfStatusRequest(object):
2540
+ """
2541
+ Attributes:
2542
+ - confName
2543
+ - start
2544
+ - end
2545
+ - confHash
2546
+
2547
+ """
2548
+ thrift_spec = None
2549
+
2550
+
2551
+ def __init__(self, confName = None, start = None, end = None, confHash = None,):
2552
+ self.confName = confName
2553
+ self.start = start
2554
+ self.end = end
2555
+ self.confHash = confHash
2556
+
2557
+ def read(self, iprot):
2558
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
2559
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
2560
+ return
2561
+ iprot.readStructBegin()
2562
+ while True:
2563
+ (fname, ftype, fid) = iprot.readFieldBegin()
2564
+ if ftype == TType.STOP:
2565
+ break
2566
+ if fid == 1:
2567
+ if ftype == TType.STRING:
2568
+ self.confName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
2569
+ else:
2570
+ iprot.skip(ftype)
2571
+ elif fid == 2:
2572
+ if ftype == TType.STRING:
2573
+ self.start = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
2574
+ else:
2575
+ iprot.skip(ftype)
2576
+ elif fid == 3:
2577
+ if ftype == TType.STRING:
2578
+ self.end = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
2579
+ else:
2580
+ iprot.skip(ftype)
2581
+ elif fid == 4:
2582
+ if ftype == TType.STRING:
2583
+ self.confHash = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
2584
+ else:
2585
+ iprot.skip(ftype)
2586
+ else:
2587
+ iprot.skip(ftype)
2588
+ iprot.readFieldEnd()
2589
+ iprot.readStructEnd()
2590
+
2591
+ def write(self, oprot):
2592
+ self.validate()
2593
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
2594
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
2595
+ return
2596
+ oprot.writeStructBegin('ConfStatusRequest')
2597
+ if self.confName is not None:
2598
+ oprot.writeFieldBegin('confName', TType.STRING, 1)
2599
+ oprot.writeString(self.confName.encode('utf-8') if sys.version_info[0] == 2 else self.confName)
2600
+ oprot.writeFieldEnd()
2601
+ if self.start is not None:
2602
+ oprot.writeFieldBegin('start', TType.STRING, 2)
2603
+ oprot.writeString(self.start.encode('utf-8') if sys.version_info[0] == 2 else self.start)
2604
+ oprot.writeFieldEnd()
2605
+ if self.end is not None:
2606
+ oprot.writeFieldBegin('end', TType.STRING, 3)
2607
+ oprot.writeString(self.end.encode('utf-8') if sys.version_info[0] == 2 else self.end)
2608
+ oprot.writeFieldEnd()
2609
+ if self.confHash is not None:
2610
+ oprot.writeFieldBegin('confHash', TType.STRING, 4)
2611
+ oprot.writeString(self.confHash.encode('utf-8') if sys.version_info[0] == 2 else self.confHash)
2612
+ oprot.writeFieldEnd()
2613
+ oprot.writeFieldStop()
2614
+ oprot.writeStructEnd()
2615
+
2616
+ def validate(self):
2617
+ return
2618
+
2619
+ def __repr__(self):
2620
+ L = ['%s=%r' % (key, value)
2621
+ for key, value in self.__dict__.items()]
2622
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2623
+
2624
+ def __eq__(self, other):
2625
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2626
+
2627
+ def __ne__(self, other):
2628
+ return not (self == other)
2629
+
2630
+
2631
+ class ConfStatusResponse(object):
2632
+ """
2633
+ Attributes:
2634
+ - nodeExecutions
2635
+ - terminalNodes
2636
+
2637
+ """
2638
+ thrift_spec = None
2639
+
2640
+
2641
+ def __init__(self, nodeExecutions = None, terminalNodes = None,):
2642
+ self.nodeExecutions = nodeExecutions
2643
+ self.terminalNodes = terminalNodes
2644
+
2645
+ def read(self, iprot):
2646
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
2647
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
2648
+ return
2649
+ iprot.readStructBegin()
2650
+ while True:
2651
+ (fname, ftype, fid) = iprot.readFieldBegin()
2652
+ if ftype == TType.STOP:
2653
+ break
2654
+ if fid == 1:
2655
+ if ftype == TType.LIST:
2656
+ self.nodeExecutions = []
2657
+ (_etype121, _size118) = iprot.readListBegin()
2658
+ for _i122 in range(_size118):
2659
+ _elem123 = NodeExecutionInfo()
2660
+ _elem123.read(iprot)
2661
+ self.nodeExecutions.append(_elem123)
2662
+ iprot.readListEnd()
2663
+ else:
2664
+ iprot.skip(ftype)
2665
+ elif fid == 2:
2666
+ if ftype == TType.LIST:
2667
+ self.terminalNodes = []
2668
+ (_etype127, _size124) = iprot.readListBegin()
2669
+ for _i128 in range(_size124):
2670
+ _elem129 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
2671
+ self.terminalNodes.append(_elem129)
2672
+ iprot.readListEnd()
2673
+ else:
2674
+ iprot.skip(ftype)
2675
+ else:
2676
+ iprot.skip(ftype)
2677
+ iprot.readFieldEnd()
2678
+ iprot.readStructEnd()
2679
+
2680
+ def write(self, oprot):
2681
+ self.validate()
2682
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
2683
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
2684
+ return
2685
+ oprot.writeStructBegin('ConfStatusResponse')
2686
+ if self.nodeExecutions is not None:
2687
+ oprot.writeFieldBegin('nodeExecutions', TType.LIST, 1)
2688
+ oprot.writeListBegin(TType.STRUCT, len(self.nodeExecutions))
2689
+ for iter130 in self.nodeExecutions:
2690
+ iter130.write(oprot)
2691
+ oprot.writeListEnd()
2692
+ oprot.writeFieldEnd()
2693
+ if self.terminalNodes is not None:
2694
+ oprot.writeFieldBegin('terminalNodes', TType.LIST, 2)
2695
+ oprot.writeListBegin(TType.STRING, len(self.terminalNodes))
2696
+ for iter131 in self.terminalNodes:
2697
+ oprot.writeString(iter131.encode('utf-8') if sys.version_info[0] == 2 else iter131)
2698
+ oprot.writeListEnd()
2699
+ oprot.writeFieldEnd()
2700
+ oprot.writeFieldStop()
2701
+ oprot.writeStructEnd()
2702
+
2703
+ def validate(self):
2704
+ return
2705
+
2706
+ def __repr__(self):
2707
+ L = ['%s=%r' % (key, value)
2708
+ for key, value in self.__dict__.items()]
2709
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2710
+
2711
+ def __eq__(self, other):
2712
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2713
+
2714
+ def __ne__(self, other):
2715
+ return not (self == other)
2716
+
2717
+
2718
+ class WorkflowResponse(object):
2719
+ """
2720
+ Attributes:
2721
+ - workflowId
2722
+ - confName
2723
+ - mode
2724
+ - branch
2725
+ - user
2726
+ - status
2727
+ - startPartition
2728
+ - endPartition
2729
+ - terminalNodes
2730
+ - confType
2731
+
2732
+ """
2733
+ thrift_spec = None
2734
+
2735
+
2736
+ def __init__(self, workflowId = None, confName = None, mode = None, branch = None, user = None, status = None, startPartition = None, endPartition = None, terminalNodes = None, confType = None,):
2737
+ self.workflowId = workflowId
2738
+ self.confName = confName
2739
+ self.mode = mode
2740
+ self.branch = branch
2741
+ self.user = user
2742
+ self.status = status
2743
+ self.startPartition = startPartition
2744
+ self.endPartition = endPartition
2745
+ self.terminalNodes = terminalNodes
2746
+ self.confType = confType
2747
+
2748
+ def read(self, iprot):
2749
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
2750
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
2751
+ return
2752
+ iprot.readStructBegin()
2753
+ while True:
2754
+ (fname, ftype, fid) = iprot.readFieldBegin()
2755
+ if ftype == TType.STOP:
2756
+ break
2757
+ if fid == 1:
2758
+ if ftype == TType.STRING:
2759
+ self.workflowId = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
2760
+ else:
2761
+ iprot.skip(ftype)
2762
+ elif fid == 2:
2763
+ if ftype == TType.STRING:
2764
+ self.confName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
2765
+ else:
2766
+ iprot.skip(ftype)
2767
+ elif fid == 3:
2768
+ if ftype == TType.STRING:
2769
+ self.mode = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
2770
+ else:
2771
+ iprot.skip(ftype)
2772
+ elif fid == 4:
2773
+ if ftype == TType.STRING:
2774
+ self.branch = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
2775
+ else:
2776
+ iprot.skip(ftype)
2777
+ elif fid == 5:
2778
+ if ftype == TType.STRING:
2779
+ self.user = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
2780
+ else:
2781
+ iprot.skip(ftype)
2782
+ elif fid == 6:
2783
+ if ftype == TType.I32:
2784
+ self.status = iprot.readI32()
2785
+ else:
2786
+ iprot.skip(ftype)
2787
+ elif fid == 7:
2788
+ if ftype == TType.STRING:
2789
+ self.startPartition = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
2790
+ else:
2791
+ iprot.skip(ftype)
2792
+ elif fid == 8:
2793
+ if ftype == TType.STRING:
2794
+ self.endPartition = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
2795
+ else:
2796
+ iprot.skip(ftype)
2797
+ elif fid == 10:
2798
+ if ftype == TType.LIST:
2799
+ self.terminalNodes = []
2800
+ (_etype135, _size132) = iprot.readListBegin()
2801
+ for _i136 in range(_size132):
2802
+ _elem137 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
2803
+ self.terminalNodes.append(_elem137)
2804
+ iprot.readListEnd()
2805
+ else:
2806
+ iprot.skip(ftype)
2807
+ elif fid == 11:
2808
+ if ftype == TType.I32:
2809
+ self.confType = iprot.readI32()
2810
+ else:
2811
+ iprot.skip(ftype)
2812
+ else:
2813
+ iprot.skip(ftype)
2814
+ iprot.readFieldEnd()
2815
+ iprot.readStructEnd()
2816
+
2817
+ def write(self, oprot):
2818
+ self.validate()
2819
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
2820
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
2821
+ return
2822
+ oprot.writeStructBegin('WorkflowResponse')
2823
+ if self.workflowId is not None:
2824
+ oprot.writeFieldBegin('workflowId', TType.STRING, 1)
2825
+ oprot.writeString(self.workflowId.encode('utf-8') if sys.version_info[0] == 2 else self.workflowId)
2826
+ oprot.writeFieldEnd()
2827
+ if self.confName is not None:
2828
+ oprot.writeFieldBegin('confName', TType.STRING, 2)
2829
+ oprot.writeString(self.confName.encode('utf-8') if sys.version_info[0] == 2 else self.confName)
2830
+ oprot.writeFieldEnd()
2831
+ if self.mode is not None:
2832
+ oprot.writeFieldBegin('mode', TType.STRING, 3)
2833
+ oprot.writeString(self.mode.encode('utf-8') if sys.version_info[0] == 2 else self.mode)
2834
+ oprot.writeFieldEnd()
2835
+ if self.branch is not None:
2836
+ oprot.writeFieldBegin('branch', TType.STRING, 4)
2837
+ oprot.writeString(self.branch.encode('utf-8') if sys.version_info[0] == 2 else self.branch)
2838
+ oprot.writeFieldEnd()
2839
+ if self.user is not None:
2840
+ oprot.writeFieldBegin('user', TType.STRING, 5)
2841
+ oprot.writeString(self.user.encode('utf-8') if sys.version_info[0] == 2 else self.user)
2842
+ oprot.writeFieldEnd()
2843
+ if self.status is not None:
2844
+ oprot.writeFieldBegin('status', TType.I32, 6)
2845
+ oprot.writeI32(self.status)
2846
+ oprot.writeFieldEnd()
2847
+ if self.startPartition is not None:
2848
+ oprot.writeFieldBegin('startPartition', TType.STRING, 7)
2849
+ oprot.writeString(self.startPartition.encode('utf-8') if sys.version_info[0] == 2 else self.startPartition)
2850
+ oprot.writeFieldEnd()
2851
+ if self.endPartition is not None:
2852
+ oprot.writeFieldBegin('endPartition', TType.STRING, 8)
2853
+ oprot.writeString(self.endPartition.encode('utf-8') if sys.version_info[0] == 2 else self.endPartition)
2854
+ oprot.writeFieldEnd()
2855
+ if self.terminalNodes is not None:
2856
+ oprot.writeFieldBegin('terminalNodes', TType.LIST, 10)
2857
+ oprot.writeListBegin(TType.STRING, len(self.terminalNodes))
2858
+ for iter138 in self.terminalNodes:
2859
+ oprot.writeString(iter138.encode('utf-8') if sys.version_info[0] == 2 else iter138)
2860
+ oprot.writeListEnd()
2861
+ oprot.writeFieldEnd()
2862
+ if self.confType is not None:
2863
+ oprot.writeFieldBegin('confType', TType.I32, 11)
2864
+ oprot.writeI32(self.confType)
2865
+ oprot.writeFieldEnd()
2866
+ oprot.writeFieldStop()
2867
+ oprot.writeStructEnd()
2868
+
2869
+ def validate(self):
2870
+ return
2871
+
2872
+ def __repr__(self):
2873
+ L = ['%s=%r' % (key, value)
2874
+ for key, value in self.__dict__.items()]
2875
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2876
+
2877
+ def __eq__(self, other):
2878
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2879
+
2880
+ def __ne__(self, other):
2881
+ return not (self == other)
2882
+
2883
+
2884
+ class WorkflowListRequest(object):
2885
+ """
2886
+ Attributes:
2887
+ - limit
2888
+ - numOfWorkflows
2889
+
2890
+ """
2891
+ thrift_spec = None
2892
+
2893
+
2894
+ def __init__(self, limit = None, numOfWorkflows = None,):
2895
+ self.limit = limit
2896
+ self.numOfWorkflows = numOfWorkflows
2897
+
2898
+ def read(self, iprot):
2899
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
2900
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
2901
+ return
2902
+ iprot.readStructBegin()
2903
+ while True:
2904
+ (fname, ftype, fid) = iprot.readFieldBegin()
2905
+ if ftype == TType.STOP:
2906
+ break
2907
+ if fid == 1:
2908
+ if ftype == TType.I32:
2909
+ self.limit = iprot.readI32()
2910
+ else:
2911
+ iprot.skip(ftype)
2912
+ elif fid == 2:
2913
+ if ftype == TType.I32:
2914
+ self.numOfWorkflows = iprot.readI32()
2915
+ else:
2916
+ iprot.skip(ftype)
2917
+ else:
2918
+ iprot.skip(ftype)
2919
+ iprot.readFieldEnd()
2920
+ iprot.readStructEnd()
2921
+
2922
+ def write(self, oprot):
2923
+ self.validate()
2924
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
2925
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
2926
+ return
2927
+ oprot.writeStructBegin('WorkflowListRequest')
2928
+ if self.limit is not None:
2929
+ oprot.writeFieldBegin('limit', TType.I32, 1)
2930
+ oprot.writeI32(self.limit)
2931
+ oprot.writeFieldEnd()
2932
+ if self.numOfWorkflows is not None:
2933
+ oprot.writeFieldBegin('numOfWorkflows', TType.I32, 2)
2934
+ oprot.writeI32(self.numOfWorkflows)
2935
+ oprot.writeFieldEnd()
2936
+ oprot.writeFieldStop()
2937
+ oprot.writeStructEnd()
2938
+
2939
+ def validate(self):
2940
+ return
2941
+
2942
+ def __repr__(self):
2943
+ L = ['%s=%r' % (key, value)
2944
+ for key, value in self.__dict__.items()]
2945
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2946
+
2947
+ def __eq__(self, other):
2948
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2949
+
2950
+ def __ne__(self, other):
2951
+ return not (self == other)
2952
+
2953
+
2954
+ class WorkflowListResponse(object):
2955
+ """
2956
+ Attributes:
2957
+ - workflows
2958
+
2959
+ """
2960
+ thrift_spec = None
2961
+
2962
+
2963
+ def __init__(self, workflows = None,):
2964
+ self.workflows = workflows
2965
+
2966
+ def read(self, iprot):
2967
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
2968
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
2969
+ return
2970
+ iprot.readStructBegin()
2971
+ while True:
2972
+ (fname, ftype, fid) = iprot.readFieldBegin()
2973
+ if ftype == TType.STOP:
2974
+ break
2975
+ if fid == 1:
2976
+ if ftype == TType.LIST:
2977
+ self.workflows = []
2978
+ (_etype142, _size139) = iprot.readListBegin()
2979
+ for _i143 in range(_size139):
2980
+ _elem144 = WorkflowResponse()
2981
+ _elem144.read(iprot)
2982
+ self.workflows.append(_elem144)
2983
+ iprot.readListEnd()
2984
+ else:
2985
+ iprot.skip(ftype)
2986
+ else:
2987
+ iprot.skip(ftype)
2988
+ iprot.readFieldEnd()
2989
+ iprot.readStructEnd()
2990
+
2991
+ def write(self, oprot):
2992
+ self.validate()
2993
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
2994
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
2995
+ return
2996
+ oprot.writeStructBegin('WorkflowListResponse')
2997
+ if self.workflows is not None:
2998
+ oprot.writeFieldBegin('workflows', TType.LIST, 1)
2999
+ oprot.writeListBegin(TType.STRUCT, len(self.workflows))
3000
+ for iter145 in self.workflows:
3001
+ iter145.write(oprot)
3002
+ oprot.writeListEnd()
3003
+ oprot.writeFieldEnd()
3004
+ oprot.writeFieldStop()
3005
+ oprot.writeStructEnd()
3006
+
3007
+ def validate(self):
3008
+ return
3009
+
3010
+ def __repr__(self):
3011
+ L = ['%s=%r' % (key, value)
3012
+ for key, value in self.__dict__.items()]
3013
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3014
+
3015
+ def __eq__(self, other):
3016
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3017
+
3018
+ def __ne__(self, other):
3019
+ return not (self == other)
3020
+
3021
+
3022
+ class ConfListRequest(object):
3023
+ """
3024
+ lists all confs of the specified type
3025
+
3026
+ Attributes:
3027
+ - confType
3028
+ - branch
3029
+
3030
+ """
3031
+ thrift_spec = None
3032
+
3033
+
3034
+ def __init__(self, confType = None, branch = None,):
3035
+ self.confType = confType
3036
+ self.branch = branch
3037
+
3038
+ def read(self, iprot):
3039
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3040
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3041
+ return
3042
+ iprot.readStructBegin()
3043
+ while True:
3044
+ (fname, ftype, fid) = iprot.readFieldBegin()
3045
+ if ftype == TType.STOP:
3046
+ break
3047
+ if fid == 1:
3048
+ if ftype == TType.I32:
3049
+ self.confType = iprot.readI32()
3050
+ else:
3051
+ iprot.skip(ftype)
3052
+ elif fid == 2:
3053
+ if ftype == TType.STRING:
3054
+ self.branch = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3055
+ else:
3056
+ iprot.skip(ftype)
3057
+ else:
3058
+ iprot.skip(ftype)
3059
+ iprot.readFieldEnd()
3060
+ iprot.readStructEnd()
3061
+
3062
+ def write(self, oprot):
3063
+ self.validate()
3064
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
3065
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3066
+ return
3067
+ oprot.writeStructBegin('ConfListRequest')
3068
+ if self.confType is not None:
3069
+ oprot.writeFieldBegin('confType', TType.I32, 1)
3070
+ oprot.writeI32(self.confType)
3071
+ oprot.writeFieldEnd()
3072
+ if self.branch is not None:
3073
+ oprot.writeFieldBegin('branch', TType.STRING, 2)
3074
+ oprot.writeString(self.branch.encode('utf-8') if sys.version_info[0] == 2 else self.branch)
3075
+ oprot.writeFieldEnd()
3076
+ oprot.writeFieldStop()
3077
+ oprot.writeStructEnd()
3078
+
3079
+ def validate(self):
3080
+ return
3081
+
3082
+ def __repr__(self):
3083
+ L = ['%s=%r' % (key, value)
3084
+ for key, value in self.__dict__.items()]
3085
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3086
+
3087
+ def __eq__(self, other):
3088
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3089
+
3090
+ def __ne__(self, other):
3091
+ return not (self == other)
3092
+
3093
+
3094
+ class ConfListItemResponse(object):
3095
+ """
3096
+ Response for listing configurations of a specific type
3097
+
3098
+ Attributes:
3099
+ - confName
3100
+ - confType
3101
+ - confHash
3102
+
3103
+ """
3104
+ thrift_spec = None
3105
+
3106
+
3107
+ def __init__(self, confName = None, confType = None, confHash = None,):
3108
+ self.confName = confName
3109
+ self.confType = confType
3110
+ self.confHash = confHash
3111
+
3112
+ def read(self, iprot):
3113
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3114
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3115
+ return
3116
+ iprot.readStructBegin()
3117
+ while True:
3118
+ (fname, ftype, fid) = iprot.readFieldBegin()
3119
+ if ftype == TType.STOP:
3120
+ break
3121
+ if fid == 1:
3122
+ if ftype == TType.STRING:
3123
+ self.confName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3124
+ else:
3125
+ iprot.skip(ftype)
3126
+ elif fid == 2:
3127
+ if ftype == TType.I32:
3128
+ self.confType = iprot.readI32()
3129
+ else:
3130
+ iprot.skip(ftype)
3131
+ elif fid == 3:
3132
+ if ftype == TType.STRING:
3133
+ self.confHash = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3134
+ else:
3135
+ iprot.skip(ftype)
3136
+ else:
3137
+ iprot.skip(ftype)
3138
+ iprot.readFieldEnd()
3139
+ iprot.readStructEnd()
3140
+
3141
+ def write(self, oprot):
3142
+ self.validate()
3143
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
3144
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3145
+ return
3146
+ oprot.writeStructBegin('ConfListItemResponse')
3147
+ if self.confName is not None:
3148
+ oprot.writeFieldBegin('confName', TType.STRING, 1)
3149
+ oprot.writeString(self.confName.encode('utf-8') if sys.version_info[0] == 2 else self.confName)
3150
+ oprot.writeFieldEnd()
3151
+ if self.confType is not None:
3152
+ oprot.writeFieldBegin('confType', TType.I32, 2)
3153
+ oprot.writeI32(self.confType)
3154
+ oprot.writeFieldEnd()
3155
+ if self.confHash is not None:
3156
+ oprot.writeFieldBegin('confHash', TType.STRING, 3)
3157
+ oprot.writeString(self.confHash.encode('utf-8') if sys.version_info[0] == 2 else self.confHash)
3158
+ oprot.writeFieldEnd()
3159
+ oprot.writeFieldStop()
3160
+ oprot.writeStructEnd()
3161
+
3162
+ def validate(self):
3163
+ return
3164
+
3165
+ def __repr__(self):
3166
+ L = ['%s=%r' % (key, value)
3167
+ for key, value in self.__dict__.items()]
3168
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3169
+
3170
+ def __eq__(self, other):
3171
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3172
+
3173
+ def __ne__(self, other):
3174
+ return not (self == other)
3175
+
3176
+
3177
+ class ConfListResponse(object):
3178
+ """
3179
+ Attributes:
3180
+ - confs
3181
+
3182
+ """
3183
+ thrift_spec = None
3184
+
3185
+
3186
+ def __init__(self, confs = None,):
3187
+ self.confs = confs
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.LIST:
3200
+ self.confs = []
3201
+ (_etype149, _size146) = iprot.readListBegin()
3202
+ for _i150 in range(_size146):
3203
+ _elem151 = ConfListItemResponse()
3204
+ _elem151.read(iprot)
3205
+ self.confs.append(_elem151)
3206
+ iprot.readListEnd()
3207
+ else:
3208
+ iprot.skip(ftype)
3209
+ else:
3210
+ iprot.skip(ftype)
3211
+ iprot.readFieldEnd()
3212
+ iprot.readStructEnd()
3213
+
3214
+ def write(self, oprot):
3215
+ self.validate()
3216
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
3217
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3218
+ return
3219
+ oprot.writeStructBegin('ConfListResponse')
3220
+ if self.confs is not None:
3221
+ oprot.writeFieldBegin('confs', TType.LIST, 1)
3222
+ oprot.writeListBegin(TType.STRUCT, len(self.confs))
3223
+ for iter152 in self.confs:
3224
+ iter152.write(oprot)
3225
+ oprot.writeListEnd()
3226
+ oprot.writeFieldEnd()
3227
+ oprot.writeFieldStop()
3228
+ oprot.writeStructEnd()
3229
+
3230
+ def validate(self):
3231
+ return
3232
+
3233
+ def __repr__(self):
3234
+ L = ['%s=%r' % (key, value)
3235
+ for key, value in self.__dict__.items()]
3236
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3237
+
3238
+ def __eq__(self, other):
3239
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3240
+
3241
+ def __ne__(self, other):
3242
+ return not (self == other)
3243
+
3244
+
3245
+ class ConfGetRequest(object):
3246
+ """
3247
+ Attributes:
3248
+ - confName
3249
+ - confType
3250
+
3251
+ """
3252
+ thrift_spec = None
3253
+
3254
+
3255
+ def __init__(self, confName = None, confType = None,):
3256
+ self.confName = confName
3257
+ self.confType = confType
3258
+
3259
+ def read(self, iprot):
3260
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3261
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3262
+ return
3263
+ iprot.readStructBegin()
3264
+ while True:
3265
+ (fname, ftype, fid) = iprot.readFieldBegin()
3266
+ if ftype == TType.STOP:
3267
+ break
3268
+ if fid == 1:
3269
+ if ftype == TType.STRING:
3270
+ self.confName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3271
+ else:
3272
+ iprot.skip(ftype)
3273
+ elif fid == 2:
3274
+ if ftype == TType.I32:
3275
+ self.confType = iprot.readI32()
3276
+ else:
3277
+ iprot.skip(ftype)
3278
+ else:
3279
+ iprot.skip(ftype)
3280
+ iprot.readFieldEnd()
3281
+ iprot.readStructEnd()
3282
+
3283
+ def write(self, oprot):
3284
+ self.validate()
3285
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
3286
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3287
+ return
3288
+ oprot.writeStructBegin('ConfGetRequest')
3289
+ if self.confName is not None:
3290
+ oprot.writeFieldBegin('confName', TType.STRING, 1)
3291
+ oprot.writeString(self.confName.encode('utf-8') if sys.version_info[0] == 2 else self.confName)
3292
+ oprot.writeFieldEnd()
3293
+ if self.confType is not None:
3294
+ oprot.writeFieldBegin('confType', TType.I32, 2)
3295
+ oprot.writeI32(self.confType)
3296
+ oprot.writeFieldEnd()
3297
+ oprot.writeFieldStop()
3298
+ oprot.writeStructEnd()
3299
+
3300
+ def validate(self):
3301
+ return
3302
+
3303
+ def __repr__(self):
3304
+ L = ['%s=%r' % (key, value)
3305
+ for key, value in self.__dict__.items()]
3306
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3307
+
3308
+ def __eq__(self, other):
3309
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3310
+
3311
+ def __ne__(self, other):
3312
+ return not (self == other)
3313
+
3314
+
3315
+ class ConfGetResponse(object):
3316
+ """
3317
+ Attributes:
3318
+ - confName
3319
+ - confHash
3320
+ - confType
3321
+ - confContents
3322
+
3323
+ """
3324
+ thrift_spec = None
3325
+
3326
+
3327
+ def __init__(self, confName = None, confHash = None, confType = None, confContents = None,):
3328
+ self.confName = confName
3329
+ self.confHash = confHash
3330
+ self.confType = confType
3331
+ self.confContents = confContents
3332
+
3333
+ def read(self, iprot):
3334
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3335
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3336
+ return
3337
+ iprot.readStructBegin()
3338
+ while True:
3339
+ (fname, ftype, fid) = iprot.readFieldBegin()
3340
+ if ftype == TType.STOP:
3341
+ break
3342
+ if fid == 1:
3343
+ if ftype == TType.STRING:
3344
+ self.confName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3345
+ else:
3346
+ iprot.skip(ftype)
3347
+ elif fid == 2:
3348
+ if ftype == TType.STRING:
3349
+ self.confHash = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3350
+ else:
3351
+ iprot.skip(ftype)
3352
+ elif fid == 3:
3353
+ if ftype == TType.I32:
3354
+ self.confType = iprot.readI32()
3355
+ else:
3356
+ iprot.skip(ftype)
3357
+ elif fid == 4:
3358
+ if ftype == TType.STRUCT:
3359
+ self.confContents = LogicalNode()
3360
+ self.confContents.read(iprot)
3361
+ else:
3362
+ iprot.skip(ftype)
3363
+ else:
3364
+ iprot.skip(ftype)
3365
+ iprot.readFieldEnd()
3366
+ iprot.readStructEnd()
3367
+
3368
+ def write(self, oprot):
3369
+ self.validate()
3370
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
3371
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3372
+ return
3373
+ oprot.writeStructBegin('ConfGetResponse')
3374
+ if self.confName is not None:
3375
+ oprot.writeFieldBegin('confName', TType.STRING, 1)
3376
+ oprot.writeString(self.confName.encode('utf-8') if sys.version_info[0] == 2 else self.confName)
3377
+ oprot.writeFieldEnd()
3378
+ if self.confHash is not None:
3379
+ oprot.writeFieldBegin('confHash', TType.STRING, 2)
3380
+ oprot.writeString(self.confHash.encode('utf-8') if sys.version_info[0] == 2 else self.confHash)
3381
+ oprot.writeFieldEnd()
3382
+ if self.confType is not None:
3383
+ oprot.writeFieldBegin('confType', TType.I32, 3)
3384
+ oprot.writeI32(self.confType)
3385
+ oprot.writeFieldEnd()
3386
+ if self.confContents is not None:
3387
+ oprot.writeFieldBegin('confContents', TType.STRUCT, 4)
3388
+ self.confContents.write(oprot)
3389
+ oprot.writeFieldEnd()
3390
+ oprot.writeFieldStop()
3391
+ oprot.writeStructEnd()
3392
+
3393
+ def validate(self):
3394
+ return
3395
+
3396
+ def __repr__(self):
3397
+ L = ['%s=%r' % (key, value)
3398
+ for key, value in self.__dict__.items()]
3399
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3400
+
3401
+ def __eq__(self, other):
3402
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3403
+
3404
+ def __ne__(self, other):
3405
+ return not (self == other)
3406
+
3407
+
3408
+ class BaseEvalResult(object):
3409
+ """
3410
+ Attributes:
3411
+ - checkResult
3412
+ - message
3413
+
3414
+ """
3415
+ thrift_spec = None
3416
+
3417
+
3418
+ def __init__(self, checkResult = None, message = None,):
3419
+ self.checkResult = checkResult
3420
+ self.message = message
3421
+
3422
+ def read(self, iprot):
3423
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3424
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3425
+ return
3426
+ iprot.readStructBegin()
3427
+ while True:
3428
+ (fname, ftype, fid) = iprot.readFieldBegin()
3429
+ if ftype == TType.STOP:
3430
+ break
3431
+ if fid == 1:
3432
+ if ftype == TType.I32:
3433
+ self.checkResult = iprot.readI32()
3434
+ else:
3435
+ iprot.skip(ftype)
3436
+ elif fid == 2:
3437
+ if ftype == TType.STRING:
3438
+ self.message = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3439
+ else:
3440
+ iprot.skip(ftype)
3441
+ else:
3442
+ iprot.skip(ftype)
3443
+ iprot.readFieldEnd()
3444
+ iprot.readStructEnd()
3445
+
3446
+ def write(self, oprot):
3447
+ self.validate()
3448
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
3449
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3450
+ return
3451
+ oprot.writeStructBegin('BaseEvalResult')
3452
+ if self.checkResult is not None:
3453
+ oprot.writeFieldBegin('checkResult', TType.I32, 1)
3454
+ oprot.writeI32(self.checkResult)
3455
+ oprot.writeFieldEnd()
3456
+ if self.message is not None:
3457
+ oprot.writeFieldBegin('message', TType.STRING, 2)
3458
+ oprot.writeString(self.message.encode('utf-8') if sys.version_info[0] == 2 else self.message)
3459
+ oprot.writeFieldEnd()
3460
+ oprot.writeFieldStop()
3461
+ oprot.writeStructEnd()
3462
+
3463
+ def validate(self):
3464
+ return
3465
+
3466
+ def __repr__(self):
3467
+ L = ['%s=%r' % (key, value)
3468
+ for key, value in self.__dict__.items()]
3469
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3470
+
3471
+ def __eq__(self, other):
3472
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3473
+
3474
+ def __ne__(self, other):
3475
+ return not (self == other)
3476
+
3477
+
3478
+ class JoinPartEvalResult(object):
3479
+ """
3480
+ Attributes:
3481
+ - partName
3482
+ - gbEvalResult
3483
+ - keySchemaCheck
3484
+
3485
+ """
3486
+ thrift_spec = None
3487
+
3488
+
3489
+ def __init__(self, partName = None, gbEvalResult = None, keySchemaCheck = None,):
3490
+ self.partName = partName
3491
+ self.gbEvalResult = gbEvalResult
3492
+ self.keySchemaCheck = keySchemaCheck
3493
+
3494
+ def read(self, iprot):
3495
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3496
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3497
+ return
3498
+ iprot.readStructBegin()
3499
+ while True:
3500
+ (fname, ftype, fid) = iprot.readFieldBegin()
3501
+ if ftype == TType.STOP:
3502
+ break
3503
+ if fid == 1:
3504
+ if ftype == TType.STRING:
3505
+ self.partName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3506
+ else:
3507
+ iprot.skip(ftype)
3508
+ elif fid == 2:
3509
+ if ftype == TType.STRUCT:
3510
+ self.gbEvalResult = GroupByEvalResult()
3511
+ self.gbEvalResult.read(iprot)
3512
+ else:
3513
+ iprot.skip(ftype)
3514
+ elif fid == 3:
3515
+ if ftype == TType.STRUCT:
3516
+ self.keySchemaCheck = BaseEvalResult()
3517
+ self.keySchemaCheck.read(iprot)
3518
+ else:
3519
+ iprot.skip(ftype)
3520
+ else:
3521
+ iprot.skip(ftype)
3522
+ iprot.readFieldEnd()
3523
+ iprot.readStructEnd()
3524
+
3525
+ def write(self, oprot):
3526
+ self.validate()
3527
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
3528
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3529
+ return
3530
+ oprot.writeStructBegin('JoinPartEvalResult')
3531
+ if self.partName is not None:
3532
+ oprot.writeFieldBegin('partName', TType.STRING, 1)
3533
+ oprot.writeString(self.partName.encode('utf-8') if sys.version_info[0] == 2 else self.partName)
3534
+ oprot.writeFieldEnd()
3535
+ if self.gbEvalResult is not None:
3536
+ oprot.writeFieldBegin('gbEvalResult', TType.STRUCT, 2)
3537
+ self.gbEvalResult.write(oprot)
3538
+ oprot.writeFieldEnd()
3539
+ if self.keySchemaCheck is not None:
3540
+ oprot.writeFieldBegin('keySchemaCheck', TType.STRUCT, 3)
3541
+ self.keySchemaCheck.write(oprot)
3542
+ oprot.writeFieldEnd()
3543
+ oprot.writeFieldStop()
3544
+ oprot.writeStructEnd()
3545
+
3546
+ def validate(self):
3547
+ return
3548
+
3549
+ def __repr__(self):
3550
+ L = ['%s=%r' % (key, value)
3551
+ for key, value in self.__dict__.items()]
3552
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3553
+
3554
+ def __eq__(self, other):
3555
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3556
+
3557
+ def __ne__(self, other):
3558
+ return not (self == other)
3559
+
3560
+
3561
+ class JoinEvalResult(object):
3562
+ """
3563
+ Attributes:
3564
+ - leftExpressionCheck
3565
+ - leftTimestampCheck
3566
+ - joinPartChecks
3567
+ - derivationValidityCheck
3568
+ - leftQuerySchema
3569
+ - rightPartsSchema
3570
+ - derivationsSchema
3571
+ - externalPartsSchema
3572
+
3573
+ """
3574
+ thrift_spec = None
3575
+
3576
+
3577
+ def __init__(self, leftExpressionCheck = None, leftTimestampCheck = None, joinPartChecks = None, derivationValidityCheck = None, leftQuerySchema = None, rightPartsSchema = None, derivationsSchema = None, externalPartsSchema = None,):
3578
+ self.leftExpressionCheck = leftExpressionCheck
3579
+ self.leftTimestampCheck = leftTimestampCheck
3580
+ self.joinPartChecks = joinPartChecks
3581
+ self.derivationValidityCheck = derivationValidityCheck
3582
+ self.leftQuerySchema = leftQuerySchema
3583
+ self.rightPartsSchema = rightPartsSchema
3584
+ self.derivationsSchema = derivationsSchema
3585
+ self.externalPartsSchema = externalPartsSchema
3586
+
3587
+ def read(self, iprot):
3588
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3589
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3590
+ return
3591
+ iprot.readStructBegin()
3592
+ while True:
3593
+ (fname, ftype, fid) = iprot.readFieldBegin()
3594
+ if ftype == TType.STOP:
3595
+ break
3596
+ if fid == 1:
3597
+ if ftype == TType.STRUCT:
3598
+ self.leftExpressionCheck = BaseEvalResult()
3599
+ self.leftExpressionCheck.read(iprot)
3600
+ else:
3601
+ iprot.skip(ftype)
3602
+ elif fid == 2:
3603
+ if ftype == TType.STRUCT:
3604
+ self.leftTimestampCheck = BaseEvalResult()
3605
+ self.leftTimestampCheck.read(iprot)
3606
+ else:
3607
+ iprot.skip(ftype)
3608
+ elif fid == 3:
3609
+ if ftype == TType.LIST:
3610
+ self.joinPartChecks = []
3611
+ (_etype156, _size153) = iprot.readListBegin()
3612
+ for _i157 in range(_size153):
3613
+ _elem158 = JoinPartEvalResult()
3614
+ _elem158.read(iprot)
3615
+ self.joinPartChecks.append(_elem158)
3616
+ iprot.readListEnd()
3617
+ else:
3618
+ iprot.skip(ftype)
3619
+ elif fid == 4:
3620
+ if ftype == TType.STRUCT:
3621
+ self.derivationValidityCheck = BaseEvalResult()
3622
+ self.derivationValidityCheck.read(iprot)
3623
+ else:
3624
+ iprot.skip(ftype)
3625
+ elif fid == 5:
3626
+ if ftype == TType.MAP:
3627
+ self.leftQuerySchema = {}
3628
+ (_ktype160, _vtype161, _size159) = iprot.readMapBegin()
3629
+ for _i163 in range(_size159):
3630
+ _key164 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3631
+ _val165 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3632
+ self.leftQuerySchema[_key164] = _val165
3633
+ iprot.readMapEnd()
3634
+ else:
3635
+ iprot.skip(ftype)
3636
+ elif fid == 6:
3637
+ if ftype == TType.MAP:
3638
+ self.rightPartsSchema = {}
3639
+ (_ktype167, _vtype168, _size166) = iprot.readMapBegin()
3640
+ for _i170 in range(_size166):
3641
+ _key171 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3642
+ _val172 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3643
+ self.rightPartsSchema[_key171] = _val172
3644
+ iprot.readMapEnd()
3645
+ else:
3646
+ iprot.skip(ftype)
3647
+ elif fid == 7:
3648
+ if ftype == TType.MAP:
3649
+ self.derivationsSchema = {}
3650
+ (_ktype174, _vtype175, _size173) = iprot.readMapBegin()
3651
+ for _i177 in range(_size173):
3652
+ _key178 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3653
+ _val179 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3654
+ self.derivationsSchema[_key178] = _val179
3655
+ iprot.readMapEnd()
3656
+ else:
3657
+ iprot.skip(ftype)
3658
+ elif fid == 8:
3659
+ if ftype == TType.MAP:
3660
+ self.externalPartsSchema = {}
3661
+ (_ktype181, _vtype182, _size180) = iprot.readMapBegin()
3662
+ for _i184 in range(_size180):
3663
+ _key185 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3664
+ _val186 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3665
+ self.externalPartsSchema[_key185] = _val186
3666
+ iprot.readMapEnd()
3667
+ else:
3668
+ iprot.skip(ftype)
3669
+ else:
3670
+ iprot.skip(ftype)
3671
+ iprot.readFieldEnd()
3672
+ iprot.readStructEnd()
3673
+
3674
+ def write(self, oprot):
3675
+ self.validate()
3676
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
3677
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3678
+ return
3679
+ oprot.writeStructBegin('JoinEvalResult')
3680
+ if self.leftExpressionCheck is not None:
3681
+ oprot.writeFieldBegin('leftExpressionCheck', TType.STRUCT, 1)
3682
+ self.leftExpressionCheck.write(oprot)
3683
+ oprot.writeFieldEnd()
3684
+ if self.leftTimestampCheck is not None:
3685
+ oprot.writeFieldBegin('leftTimestampCheck', TType.STRUCT, 2)
3686
+ self.leftTimestampCheck.write(oprot)
3687
+ oprot.writeFieldEnd()
3688
+ if self.joinPartChecks is not None:
3689
+ oprot.writeFieldBegin('joinPartChecks', TType.LIST, 3)
3690
+ oprot.writeListBegin(TType.STRUCT, len(self.joinPartChecks))
3691
+ for iter187 in self.joinPartChecks:
3692
+ iter187.write(oprot)
3693
+ oprot.writeListEnd()
3694
+ oprot.writeFieldEnd()
3695
+ if self.derivationValidityCheck is not None:
3696
+ oprot.writeFieldBegin('derivationValidityCheck', TType.STRUCT, 4)
3697
+ self.derivationValidityCheck.write(oprot)
3698
+ oprot.writeFieldEnd()
3699
+ if self.leftQuerySchema is not None:
3700
+ oprot.writeFieldBegin('leftQuerySchema', TType.MAP, 5)
3701
+ oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.leftQuerySchema))
3702
+ for kiter188, viter189 in self.leftQuerySchema.items():
3703
+ oprot.writeString(kiter188.encode('utf-8') if sys.version_info[0] == 2 else kiter188)
3704
+ oprot.writeString(viter189.encode('utf-8') if sys.version_info[0] == 2 else viter189)
3705
+ oprot.writeMapEnd()
3706
+ oprot.writeFieldEnd()
3707
+ if self.rightPartsSchema is not None:
3708
+ oprot.writeFieldBegin('rightPartsSchema', TType.MAP, 6)
3709
+ oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.rightPartsSchema))
3710
+ for kiter190, viter191 in self.rightPartsSchema.items():
3711
+ oprot.writeString(kiter190.encode('utf-8') if sys.version_info[0] == 2 else kiter190)
3712
+ oprot.writeString(viter191.encode('utf-8') if sys.version_info[0] == 2 else viter191)
3713
+ oprot.writeMapEnd()
3714
+ oprot.writeFieldEnd()
3715
+ if self.derivationsSchema is not None:
3716
+ oprot.writeFieldBegin('derivationsSchema', TType.MAP, 7)
3717
+ oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.derivationsSchema))
3718
+ for kiter192, viter193 in self.derivationsSchema.items():
3719
+ oprot.writeString(kiter192.encode('utf-8') if sys.version_info[0] == 2 else kiter192)
3720
+ oprot.writeString(viter193.encode('utf-8') if sys.version_info[0] == 2 else viter193)
3721
+ oprot.writeMapEnd()
3722
+ oprot.writeFieldEnd()
3723
+ if self.externalPartsSchema is not None:
3724
+ oprot.writeFieldBegin('externalPartsSchema', TType.MAP, 8)
3725
+ oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.externalPartsSchema))
3726
+ for kiter194, viter195 in self.externalPartsSchema.items():
3727
+ oprot.writeString(kiter194.encode('utf-8') if sys.version_info[0] == 2 else kiter194)
3728
+ oprot.writeString(viter195.encode('utf-8') if sys.version_info[0] == 2 else viter195)
3729
+ oprot.writeMapEnd()
3730
+ oprot.writeFieldEnd()
3731
+ oprot.writeFieldStop()
3732
+ oprot.writeStructEnd()
3733
+
3734
+ def validate(self):
3735
+ return
3736
+
3737
+ def __repr__(self):
3738
+ L = ['%s=%r' % (key, value)
3739
+ for key, value in self.__dict__.items()]
3740
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3741
+
3742
+ def __eq__(self, other):
3743
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3744
+
3745
+ def __ne__(self, other):
3746
+ return not (self == other)
3747
+
3748
+
3749
+ class GroupByEvalResult(object):
3750
+ """
3751
+ Attributes:
3752
+ - sourceExpressionCheck
3753
+ - sourceTimestampCheck
3754
+ - aggExpressionCheck
3755
+ - derivationsExpressionCheck
3756
+ - keySchema
3757
+ - aggSchema
3758
+ - derivationsSchema
3759
+
3760
+ """
3761
+ thrift_spec = None
3762
+
3763
+
3764
+ def __init__(self, sourceExpressionCheck = None, sourceTimestampCheck = None, aggExpressionCheck = None, derivationsExpressionCheck = None, keySchema = None, aggSchema = None, derivationsSchema = None,):
3765
+ self.sourceExpressionCheck = sourceExpressionCheck
3766
+ self.sourceTimestampCheck = sourceTimestampCheck
3767
+ self.aggExpressionCheck = aggExpressionCheck
3768
+ self.derivationsExpressionCheck = derivationsExpressionCheck
3769
+ self.keySchema = keySchema
3770
+ self.aggSchema = aggSchema
3771
+ self.derivationsSchema = derivationsSchema
3772
+
3773
+ def read(self, iprot):
3774
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3775
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3776
+ return
3777
+ iprot.readStructBegin()
3778
+ while True:
3779
+ (fname, ftype, fid) = iprot.readFieldBegin()
3780
+ if ftype == TType.STOP:
3781
+ break
3782
+ if fid == 1:
3783
+ if ftype == TType.STRUCT:
3784
+ self.sourceExpressionCheck = BaseEvalResult()
3785
+ self.sourceExpressionCheck.read(iprot)
3786
+ else:
3787
+ iprot.skip(ftype)
3788
+ elif fid == 2:
3789
+ if ftype == TType.STRUCT:
3790
+ self.sourceTimestampCheck = BaseEvalResult()
3791
+ self.sourceTimestampCheck.read(iprot)
3792
+ else:
3793
+ iprot.skip(ftype)
3794
+ elif fid == 3:
3795
+ if ftype == TType.STRUCT:
3796
+ self.aggExpressionCheck = BaseEvalResult()
3797
+ self.aggExpressionCheck.read(iprot)
3798
+ else:
3799
+ iprot.skip(ftype)
3800
+ elif fid == 4:
3801
+ if ftype == TType.STRUCT:
3802
+ self.derivationsExpressionCheck = BaseEvalResult()
3803
+ self.derivationsExpressionCheck.read(iprot)
3804
+ else:
3805
+ iprot.skip(ftype)
3806
+ elif fid == 5:
3807
+ if ftype == TType.MAP:
3808
+ self.keySchema = {}
3809
+ (_ktype197, _vtype198, _size196) = iprot.readMapBegin()
3810
+ for _i200 in range(_size196):
3811
+ _key201 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3812
+ _val202 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3813
+ self.keySchema[_key201] = _val202
3814
+ iprot.readMapEnd()
3815
+ else:
3816
+ iprot.skip(ftype)
3817
+ elif fid == 6:
3818
+ if ftype == TType.MAP:
3819
+ self.aggSchema = {}
3820
+ (_ktype204, _vtype205, _size203) = iprot.readMapBegin()
3821
+ for _i207 in range(_size203):
3822
+ _key208 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3823
+ _val209 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3824
+ self.aggSchema[_key208] = _val209
3825
+ iprot.readMapEnd()
3826
+ else:
3827
+ iprot.skip(ftype)
3828
+ elif fid == 7:
3829
+ if ftype == TType.MAP:
3830
+ self.derivationsSchema = {}
3831
+ (_ktype211, _vtype212, _size210) = iprot.readMapBegin()
3832
+ for _i214 in range(_size210):
3833
+ _key215 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3834
+ _val216 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3835
+ self.derivationsSchema[_key215] = _val216
3836
+ iprot.readMapEnd()
3837
+ else:
3838
+ iprot.skip(ftype)
3839
+ else:
3840
+ iprot.skip(ftype)
3841
+ iprot.readFieldEnd()
3842
+ iprot.readStructEnd()
3843
+
3844
+ def write(self, oprot):
3845
+ self.validate()
3846
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
3847
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3848
+ return
3849
+ oprot.writeStructBegin('GroupByEvalResult')
3850
+ if self.sourceExpressionCheck is not None:
3851
+ oprot.writeFieldBegin('sourceExpressionCheck', TType.STRUCT, 1)
3852
+ self.sourceExpressionCheck.write(oprot)
3853
+ oprot.writeFieldEnd()
3854
+ if self.sourceTimestampCheck is not None:
3855
+ oprot.writeFieldBegin('sourceTimestampCheck', TType.STRUCT, 2)
3856
+ self.sourceTimestampCheck.write(oprot)
3857
+ oprot.writeFieldEnd()
3858
+ if self.aggExpressionCheck is not None:
3859
+ oprot.writeFieldBegin('aggExpressionCheck', TType.STRUCT, 3)
3860
+ self.aggExpressionCheck.write(oprot)
3861
+ oprot.writeFieldEnd()
3862
+ if self.derivationsExpressionCheck is not None:
3863
+ oprot.writeFieldBegin('derivationsExpressionCheck', TType.STRUCT, 4)
3864
+ self.derivationsExpressionCheck.write(oprot)
3865
+ oprot.writeFieldEnd()
3866
+ if self.keySchema is not None:
3867
+ oprot.writeFieldBegin('keySchema', TType.MAP, 5)
3868
+ oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.keySchema))
3869
+ for kiter217, viter218 in self.keySchema.items():
3870
+ oprot.writeString(kiter217.encode('utf-8') if sys.version_info[0] == 2 else kiter217)
3871
+ oprot.writeString(viter218.encode('utf-8') if sys.version_info[0] == 2 else viter218)
3872
+ oprot.writeMapEnd()
3873
+ oprot.writeFieldEnd()
3874
+ if self.aggSchema is not None:
3875
+ oprot.writeFieldBegin('aggSchema', TType.MAP, 6)
3876
+ oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.aggSchema))
3877
+ for kiter219, viter220 in self.aggSchema.items():
3878
+ oprot.writeString(kiter219.encode('utf-8') if sys.version_info[0] == 2 else kiter219)
3879
+ oprot.writeString(viter220.encode('utf-8') if sys.version_info[0] == 2 else viter220)
3880
+ oprot.writeMapEnd()
3881
+ oprot.writeFieldEnd()
3882
+ if self.derivationsSchema is not None:
3883
+ oprot.writeFieldBegin('derivationsSchema', TType.MAP, 7)
3884
+ oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.derivationsSchema))
3885
+ for kiter221, viter222 in self.derivationsSchema.items():
3886
+ oprot.writeString(kiter221.encode('utf-8') if sys.version_info[0] == 2 else kiter221)
3887
+ oprot.writeString(viter222.encode('utf-8') if sys.version_info[0] == 2 else viter222)
3888
+ oprot.writeMapEnd()
3889
+ oprot.writeFieldEnd()
3890
+ oprot.writeFieldStop()
3891
+ oprot.writeStructEnd()
3892
+
3893
+ def validate(self):
3894
+ return
3895
+
3896
+ def __repr__(self):
3897
+ L = ['%s=%r' % (key, value)
3898
+ for key, value in self.__dict__.items()]
3899
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3900
+
3901
+ def __eq__(self, other):
3902
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3903
+
3904
+ def __ne__(self, other):
3905
+ return not (self == other)
3906
+
3907
+
3908
+ class StagingQueryEvalResult(object):
3909
+ """
3910
+ Attributes:
3911
+ - queryCheck
3912
+ - outputSchema
3913
+
3914
+ """
3915
+ thrift_spec = None
3916
+
3917
+
3918
+ def __init__(self, queryCheck = None, outputSchema = None,):
3919
+ self.queryCheck = queryCheck
3920
+ self.outputSchema = outputSchema
3921
+
3922
+ def read(self, iprot):
3923
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3924
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3925
+ return
3926
+ iprot.readStructBegin()
3927
+ while True:
3928
+ (fname, ftype, fid) = iprot.readFieldBegin()
3929
+ if ftype == TType.STOP:
3930
+ break
3931
+ if fid == 1:
3932
+ if ftype == TType.STRUCT:
3933
+ self.queryCheck = BaseEvalResult()
3934
+ self.queryCheck.read(iprot)
3935
+ else:
3936
+ iprot.skip(ftype)
3937
+ elif fid == 2:
3938
+ if ftype == TType.MAP:
3939
+ self.outputSchema = {}
3940
+ (_ktype224, _vtype225, _size223) = iprot.readMapBegin()
3941
+ for _i227 in range(_size223):
3942
+ _key228 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3943
+ _val229 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3944
+ self.outputSchema[_key228] = _val229
3945
+ iprot.readMapEnd()
3946
+ else:
3947
+ iprot.skip(ftype)
3948
+ else:
3949
+ iprot.skip(ftype)
3950
+ iprot.readFieldEnd()
3951
+ iprot.readStructEnd()
3952
+
3953
+ def write(self, oprot):
3954
+ self.validate()
3955
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
3956
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3957
+ return
3958
+ oprot.writeStructBegin('StagingQueryEvalResult')
3959
+ if self.queryCheck is not None:
3960
+ oprot.writeFieldBegin('queryCheck', TType.STRUCT, 1)
3961
+ self.queryCheck.write(oprot)
3962
+ oprot.writeFieldEnd()
3963
+ if self.outputSchema is not None:
3964
+ oprot.writeFieldBegin('outputSchema', TType.MAP, 2)
3965
+ oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.outputSchema))
3966
+ for kiter230, viter231 in self.outputSchema.items():
3967
+ oprot.writeString(kiter230.encode('utf-8') if sys.version_info[0] == 2 else kiter230)
3968
+ oprot.writeString(viter231.encode('utf-8') if sys.version_info[0] == 2 else viter231)
3969
+ oprot.writeMapEnd()
3970
+ oprot.writeFieldEnd()
3971
+ oprot.writeFieldStop()
3972
+ oprot.writeStructEnd()
3973
+
3974
+ def validate(self):
3975
+ return
3976
+
3977
+ def __repr__(self):
3978
+ L = ['%s=%r' % (key, value)
3979
+ for key, value in self.__dict__.items()]
3980
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3981
+
3982
+ def __eq__(self, other):
3983
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3984
+
3985
+ def __ne__(self, other):
3986
+ return not (self == other)
3987
+ all_structs.append(TabularData)
3988
+ TabularData.thrift_spec = (
3989
+ None, # 0
3990
+ (1, TType.STRING, 'table', 'UTF8', None, ), # 1
3991
+ (2, TType.STRING, 'topic', 'UTF8', None, ), # 2
3992
+ (3, TType.STRING, 'mutationTable', 'UTF8', None, ), # 3
3993
+ (4, TType.I32, 'type', None, None, ), # 4
3994
+ )
3995
+ all_structs.append(LogicalNode)
3996
+ LogicalNode.thrift_spec = (
3997
+ None, # 0
3998
+ (1, TType.STRUCT, 'stagingQuery', [ai.chronon.api.ttypes.StagingQuery, None], None, ), # 1
3999
+ (2, TType.STRUCT, 'join', [ai.chronon.api.ttypes.Join, None], None, ), # 2
4000
+ (3, TType.STRUCT, 'groupBy', [ai.chronon.api.ttypes.GroupBy, None], None, ), # 3
4001
+ (4, TType.STRUCT, 'model', [ai.chronon.api.ttypes.Model, None], None, ), # 4
4002
+ (5, TType.STRUCT, 'tabularData', [TabularData, None], None, ), # 5
4003
+ )
4004
+ all_structs.append(NodeKey)
4005
+ NodeKey.thrift_spec = (
4006
+ None, # 0
4007
+ (1, TType.STRING, 'name', 'UTF8', None, ), # 1
4008
+ (2, TType.I32, 'logicalType', None, None, ), # 2
4009
+ (3, TType.STRUCT, 'physicalType', [PhysicalNodeType, None], None, ), # 3
4010
+ )
4011
+ all_structs.append(NodeInfo)
4012
+ NodeInfo.thrift_spec = (
4013
+ None, # 0
4014
+ None, # 1
4015
+ None, # 2
4016
+ None, # 3
4017
+ None, # 4
4018
+ None, # 5
4019
+ None, # 6
4020
+ None, # 7
4021
+ None, # 8
4022
+ None, # 9
4023
+ None, # 10
4024
+ (11, TType.STRING, 'semanticHash', 'UTF8', None, ), # 11
4025
+ (12, TType.STRING, 'confHash', 'UTF8', None, ), # 12
4026
+ None, # 13
4027
+ None, # 14
4028
+ None, # 15
4029
+ None, # 16
4030
+ None, # 17
4031
+ None, # 18
4032
+ None, # 19
4033
+ (20, TType.STRING, 'branch', 'UTF8', None, ), # 20
4034
+ (21, TType.STRING, 'author', 'UTF8', None, ), # 21
4035
+ None, # 22
4036
+ None, # 23
4037
+ None, # 24
4038
+ None, # 25
4039
+ None, # 26
4040
+ None, # 27
4041
+ None, # 28
4042
+ None, # 29
4043
+ (30, TType.STRUCT, 'conf', [LogicalNode, None], None, ), # 30
4044
+ )
4045
+ all_structs.append(NodeConnections)
4046
+ NodeConnections.thrift_spec = (
4047
+ None, # 0
4048
+ (1, TType.LIST, 'parents', (TType.STRUCT, [NodeKey, None], False), None, ), # 1
4049
+ (2, TType.LIST, 'children', (TType.STRUCT, [NodeKey, None], False), None, ), # 2
4050
+ )
4051
+ all_structs.append(NodeGraph)
4052
+ NodeGraph.thrift_spec = (
4053
+ None, # 0
4054
+ (1, TType.MAP, 'connections', (TType.STRUCT, [NodeKey, None], TType.STRUCT, [NodeConnections, None], False), None, ), # 1
4055
+ (2, TType.MAP, 'infoMap', (TType.STRUCT, [NodeKey, None], TType.STRUCT, [NodeInfo, None], False), None, ), # 2
4056
+ )
4057
+ all_structs.append(PhysicalNodeType)
4058
+ PhysicalNodeType.thrift_spec = (
4059
+ None, # 0
4060
+ (1, TType.I32, 'groupByNodeType', None, None, ), # 1
4061
+ (2, TType.I32, 'joinNodeType', None, None, ), # 2
4062
+ (3, TType.I32, 'stagingNodeType', None, None, ), # 3
4063
+ (4, TType.I32, 'modelNodeType', None, None, ), # 4
4064
+ (5, TType.I32, 'tableNodeType', None, None, ), # 5
4065
+ )
4066
+ all_structs.append(PhysicalNode)
4067
+ PhysicalNode.thrift_spec = (
4068
+ None, # 0
4069
+ (1, TType.STRING, 'name', 'UTF8', None, ), # 1
4070
+ (2, TType.STRUCT, 'nodeType', [PhysicalNodeType, None], None, ), # 2
4071
+ (3, TType.STRUCT, 'logicalNode', [LogicalNode, None], None, ), # 3
4072
+ (4, TType.STRING, 'confHash', 'UTF8', None, ), # 4
4073
+ None, # 5
4074
+ None, # 6
4075
+ None, # 7
4076
+ None, # 8
4077
+ None, # 9
4078
+ None, # 10
4079
+ None, # 11
4080
+ None, # 12
4081
+ None, # 13
4082
+ None, # 14
4083
+ None, # 15
4084
+ None, # 16
4085
+ None, # 17
4086
+ None, # 18
4087
+ None, # 19
4088
+ None, # 20
4089
+ None, # 21
4090
+ None, # 22
4091
+ None, # 23
4092
+ None, # 24
4093
+ None, # 25
4094
+ None, # 26
4095
+ None, # 27
4096
+ None, # 28
4097
+ None, # 29
4098
+ None, # 30
4099
+ None, # 31
4100
+ None, # 32
4101
+ None, # 33
4102
+ None, # 34
4103
+ None, # 35
4104
+ None, # 36
4105
+ None, # 37
4106
+ None, # 38
4107
+ None, # 39
4108
+ None, # 40
4109
+ None, # 41
4110
+ None, # 42
4111
+ None, # 43
4112
+ None, # 44
4113
+ None, # 45
4114
+ None, # 46
4115
+ None, # 47
4116
+ None, # 48
4117
+ None, # 49
4118
+ None, # 50
4119
+ None, # 51
4120
+ None, # 52
4121
+ None, # 53
4122
+ None, # 54
4123
+ None, # 55
4124
+ None, # 56
4125
+ None, # 57
4126
+ None, # 58
4127
+ None, # 59
4128
+ None, # 60
4129
+ None, # 61
4130
+ None, # 62
4131
+ None, # 63
4132
+ None, # 64
4133
+ None, # 65
4134
+ None, # 66
4135
+ None, # 67
4136
+ None, # 68
4137
+ None, # 69
4138
+ None, # 70
4139
+ None, # 71
4140
+ None, # 72
4141
+ None, # 73
4142
+ None, # 74
4143
+ None, # 75
4144
+ None, # 76
4145
+ None, # 77
4146
+ None, # 78
4147
+ None, # 79
4148
+ None, # 80
4149
+ None, # 81
4150
+ None, # 82
4151
+ None, # 83
4152
+ None, # 84
4153
+ None, # 85
4154
+ None, # 86
4155
+ None, # 87
4156
+ None, # 88
4157
+ None, # 89
4158
+ None, # 90
4159
+ None, # 91
4160
+ None, # 92
4161
+ None, # 93
4162
+ None, # 94
4163
+ None, # 95
4164
+ None, # 96
4165
+ None, # 97
4166
+ None, # 98
4167
+ None, # 99
4168
+ (100, TType.LIST, 'tableDependencies', (TType.STRUCT, [ai.chronon.api.common.ttypes.TableDependency, None], False), None, ), # 100
4169
+ (101, TType.LIST, 'outputColumns', (TType.STRING, 'UTF8', False), None, ), # 101
4170
+ (102, TType.STRING, 'outputTable', 'UTF8', None, ), # 102
4171
+ )
4172
+ all_structs.append(PhysicalGraph)
4173
+ PhysicalGraph.thrift_spec = (
4174
+ None, # 0
4175
+ (1, TType.STRUCT, 'node', [PhysicalNode, None], None, ), # 1
4176
+ (2, TType.LIST, 'dependencies', (TType.STRUCT, [PhysicalGraph, None], False), None, ), # 2
4177
+ (3, TType.STRUCT, 'range', [ai.chronon.api.common.ttypes.DateRange, None], None, ), # 3
4178
+ )
4179
+ all_structs.append(PhysicalNodeKey)
4180
+ PhysicalNodeKey.thrift_spec = (
4181
+ None, # 0
4182
+ (1, TType.STRING, 'name', 'UTF8', None, ), # 1
4183
+ (2, TType.STRUCT, 'nodeType', [PhysicalNodeType, None], None, ), # 2
4184
+ )
4185
+ all_structs.append(Conf)
4186
+ Conf.thrift_spec = (
4187
+ None, # 0
4188
+ (1, TType.STRING, 'name', 'UTF8', None, ), # 1
4189
+ (2, TType.STRING, 'hash', 'UTF8', None, ), # 2
4190
+ (3, TType.STRING, 'contents', 'UTF8', None, ), # 3
4191
+ (4, TType.I32, 'confType', None, None, ), # 4
4192
+ )
4193
+ all_structs.append(DiffRequest)
4194
+ DiffRequest.thrift_spec = (
4195
+ None, # 0
4196
+ (1, TType.MAP, 'namesToHashes', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 1
4197
+ )
4198
+ all_structs.append(DiffResponse)
4199
+ DiffResponse.thrift_spec = (
4200
+ None, # 0
4201
+ (1, TType.LIST, 'diff', (TType.STRING, 'UTF8', False), None, ), # 1
4202
+ )
4203
+ all_structs.append(UploadRequest)
4204
+ UploadRequest.thrift_spec = (
4205
+ None, # 0
4206
+ (1, TType.LIST, 'diffConfs', (TType.STRUCT, [Conf, None], False), None, ), # 1
4207
+ (2, TType.STRING, 'branch', 'UTF8', None, ), # 2
4208
+ )
4209
+ all_structs.append(UploadResponse)
4210
+ UploadResponse.thrift_spec = (
4211
+ None, # 0
4212
+ (1, TType.STRING, 'message', 'UTF8', None, ), # 1
4213
+ )
4214
+ all_structs.append(WorkflowStartRequest)
4215
+ WorkflowStartRequest.thrift_spec = (
4216
+ None, # 0
4217
+ (1, TType.STRING, 'confName', 'UTF8', None, ), # 1
4218
+ (2, TType.STRING, 'mode', 'UTF8', None, ), # 2
4219
+ (3, TType.STRING, 'branch', 'UTF8', None, ), # 3
4220
+ (4, TType.STRING, 'user', 'UTF8', None, ), # 4
4221
+ (5, TType.STRING, 'start', 'UTF8', None, ), # 5
4222
+ (6, TType.STRING, 'end', 'UTF8', None, ), # 6
4223
+ (7, TType.STRING, 'confHash', 'UTF8', None, ), # 7
4224
+ )
4225
+ all_structs.append(WorkflowStartResponse)
4226
+ WorkflowStartResponse.thrift_spec = (
4227
+ None, # 0
4228
+ (1, TType.STRING, 'workflowId', 'UTF8', None, ), # 1
4229
+ )
4230
+ all_structs.append(NodeExecutionInfo)
4231
+ NodeExecutionInfo.thrift_spec = (
4232
+ None, # 0
4233
+ (1, TType.STRING, 'nodeName', 'UTF8', None, ), # 1
4234
+ (2, TType.STRING, 'nodeHash', 'UTF8', None, ), # 2
4235
+ (3, TType.STRING, 'startPartition', 'UTF8', None, ), # 3
4236
+ (4, TType.STRING, 'endPartition', 'UTF8', None, ), # 4
4237
+ (5, TType.LIST, 'dependencies', (TType.STRING, 'UTF8', False), None, ), # 5
4238
+ (6, TType.LIST, 'stepRuns', (TType.STRUCT, [NodeStepRunInfo, None], False), None, ), # 6
4239
+ )
4240
+ all_structs.append(JobTrackingInfo)
4241
+ JobTrackingInfo.thrift_spec = (
4242
+ None, # 0
4243
+ (1, TType.STRING, 'jobUrl', 'UTF8', None, ), # 1
4244
+ (2, TType.STRING, 'sparkUrl', 'UTF8', None, ), # 2
4245
+ (3, TType.STRING, 'flinkUrl', 'UTF8', None, ), # 3
4246
+ )
4247
+ all_structs.append(NodeStepRunInfo)
4248
+ NodeStepRunInfo.thrift_spec = (
4249
+ None, # 0
4250
+ (1, TType.STRING, 'runId', 'UTF8', None, ), # 1
4251
+ (2, TType.STRING, 'startPartition', 'UTF8', None, ), # 2
4252
+ (3, TType.STRING, 'endPartition', 'UTF8', None, ), # 3
4253
+ (4, TType.STRING, 'startTime', 'UTF8', None, ), # 4
4254
+ (5, TType.STRING, 'endTime', 'UTF8', None, ), # 5
4255
+ (6, TType.I32, 'status', None, None, ), # 6
4256
+ (7, TType.LIST, 'dependentStepRunIds', (TType.STRING, 'UTF8', False), None, ), # 7
4257
+ (8, TType.STRING, 'workflowId', 'UTF8', None, ), # 8
4258
+ (9, TType.STRUCT, 'jobTrackingInfo', [JobTrackingInfo, None], None, ), # 9
4259
+ )
4260
+ all_structs.append(WorkflowStatusResponse)
4261
+ WorkflowStatusResponse.thrift_spec = (
4262
+ None, # 0
4263
+ (1, TType.STRING, 'workflowId', 'UTF8', None, ), # 1
4264
+ (2, TType.STRING, 'confName', 'UTF8', None, ), # 2
4265
+ (3, TType.STRING, 'mode', 'UTF8', None, ), # 3
4266
+ (4, TType.STRING, 'branch', 'UTF8', None, ), # 4
4267
+ (5, TType.STRING, 'user', 'UTF8', None, ), # 5
4268
+ (6, TType.I32, 'status', None, None, ), # 6
4269
+ (7, TType.STRING, 'startPartition', 'UTF8', None, ), # 7
4270
+ (8, TType.STRING, 'endPartition', 'UTF8', None, ), # 8
4271
+ (9, TType.LIST, 'nodeExecutions', (TType.STRUCT, [NodeExecutionInfo, None], False), None, ), # 9
4272
+ (10, TType.LIST, 'terminalNodes', (TType.STRING, 'UTF8', False), None, ), # 10
4273
+ )
4274
+ all_structs.append(WorkflowStatusRequest)
4275
+ WorkflowStatusRequest.thrift_spec = (
4276
+ None, # 0
4277
+ (1, TType.STRING, 'workflowId', 'UTF8', None, ), # 1
4278
+ )
4279
+ all_structs.append(NodeStatusRequest)
4280
+ NodeStatusRequest.thrift_spec = (
4281
+ None, # 0
4282
+ (1, TType.STRING, 'nodeName', 'UTF8', None, ), # 1
4283
+ (2, TType.STRING, 'start', 'UTF8', None, ), # 2
4284
+ (3, TType.STRING, 'end', 'UTF8', None, ), # 3
4285
+ )
4286
+ all_structs.append(NodeStatusResponse)
4287
+ NodeStatusResponse.thrift_spec = (
4288
+ None, # 0
4289
+ (1, TType.LIST, 'nodeExecutions', (TType.STRUCT, [NodeExecutionInfo, None], False), None, ), # 1
4290
+ )
4291
+ all_structs.append(ConfStatusRequest)
4292
+ ConfStatusRequest.thrift_spec = (
4293
+ None, # 0
4294
+ (1, TType.STRING, 'confName', 'UTF8', None, ), # 1
4295
+ (2, TType.STRING, 'start', 'UTF8', None, ), # 2
4296
+ (3, TType.STRING, 'end', 'UTF8', None, ), # 3
4297
+ (4, TType.STRING, 'confHash', 'UTF8', None, ), # 4
4298
+ )
4299
+ all_structs.append(ConfStatusResponse)
4300
+ ConfStatusResponse.thrift_spec = (
4301
+ None, # 0
4302
+ (1, TType.LIST, 'nodeExecutions', (TType.STRUCT, [NodeExecutionInfo, None], False), None, ), # 1
4303
+ (2, TType.LIST, 'terminalNodes', (TType.STRING, 'UTF8', False), None, ), # 2
4304
+ )
4305
+ all_structs.append(WorkflowResponse)
4306
+ WorkflowResponse.thrift_spec = (
4307
+ None, # 0
4308
+ (1, TType.STRING, 'workflowId', 'UTF8', None, ), # 1
4309
+ (2, TType.STRING, 'confName', 'UTF8', None, ), # 2
4310
+ (3, TType.STRING, 'mode', 'UTF8', None, ), # 3
4311
+ (4, TType.STRING, 'branch', 'UTF8', None, ), # 4
4312
+ (5, TType.STRING, 'user', 'UTF8', None, ), # 5
4313
+ (6, TType.I32, 'status', None, None, ), # 6
4314
+ (7, TType.STRING, 'startPartition', 'UTF8', None, ), # 7
4315
+ (8, TType.STRING, 'endPartition', 'UTF8', None, ), # 8
4316
+ None, # 9
4317
+ (10, TType.LIST, 'terminalNodes', (TType.STRING, 'UTF8', False), None, ), # 10
4318
+ (11, TType.I32, 'confType', None, None, ), # 11
4319
+ )
4320
+ all_structs.append(WorkflowListRequest)
4321
+ WorkflowListRequest.thrift_spec = (
4322
+ None, # 0
4323
+ (1, TType.I32, 'limit', None, None, ), # 1
4324
+ (2, TType.I32, 'numOfWorkflows', None, None, ), # 2
4325
+ )
4326
+ all_structs.append(WorkflowListResponse)
4327
+ WorkflowListResponse.thrift_spec = (
4328
+ None, # 0
4329
+ (1, TType.LIST, 'workflows', (TType.STRUCT, [WorkflowResponse, None], False), None, ), # 1
4330
+ )
4331
+ all_structs.append(ConfListRequest)
4332
+ ConfListRequest.thrift_spec = (
4333
+ None, # 0
4334
+ (1, TType.I32, 'confType', None, None, ), # 1
4335
+ (2, TType.STRING, 'branch', 'UTF8', None, ), # 2
4336
+ )
4337
+ all_structs.append(ConfListItemResponse)
4338
+ ConfListItemResponse.thrift_spec = (
4339
+ None, # 0
4340
+ (1, TType.STRING, 'confName', 'UTF8', None, ), # 1
4341
+ (2, TType.I32, 'confType', None, None, ), # 2
4342
+ (3, TType.STRING, 'confHash', 'UTF8', None, ), # 3
4343
+ )
4344
+ all_structs.append(ConfListResponse)
4345
+ ConfListResponse.thrift_spec = (
4346
+ None, # 0
4347
+ (1, TType.LIST, 'confs', (TType.STRUCT, [ConfListItemResponse, None], False), None, ), # 1
4348
+ )
4349
+ all_structs.append(ConfGetRequest)
4350
+ ConfGetRequest.thrift_spec = (
4351
+ None, # 0
4352
+ (1, TType.STRING, 'confName', 'UTF8', None, ), # 1
4353
+ (2, TType.I32, 'confType', None, None, ), # 2
4354
+ )
4355
+ all_structs.append(ConfGetResponse)
4356
+ ConfGetResponse.thrift_spec = (
4357
+ None, # 0
4358
+ (1, TType.STRING, 'confName', 'UTF8', None, ), # 1
4359
+ (2, TType.STRING, 'confHash', 'UTF8', None, ), # 2
4360
+ (3, TType.I32, 'confType', None, None, ), # 3
4361
+ (4, TType.STRUCT, 'confContents', [LogicalNode, None], None, ), # 4
4362
+ )
4363
+ all_structs.append(BaseEvalResult)
4364
+ BaseEvalResult.thrift_spec = (
4365
+ None, # 0
4366
+ (1, TType.I32, 'checkResult', None, None, ), # 1
4367
+ (2, TType.STRING, 'message', 'UTF8', None, ), # 2
4368
+ )
4369
+ all_structs.append(JoinPartEvalResult)
4370
+ JoinPartEvalResult.thrift_spec = (
4371
+ None, # 0
4372
+ (1, TType.STRING, 'partName', 'UTF8', None, ), # 1
4373
+ (2, TType.STRUCT, 'gbEvalResult', [GroupByEvalResult, None], None, ), # 2
4374
+ (3, TType.STRUCT, 'keySchemaCheck', [BaseEvalResult, None], None, ), # 3
4375
+ )
4376
+ all_structs.append(JoinEvalResult)
4377
+ JoinEvalResult.thrift_spec = (
4378
+ None, # 0
4379
+ (1, TType.STRUCT, 'leftExpressionCheck', [BaseEvalResult, None], None, ), # 1
4380
+ (2, TType.STRUCT, 'leftTimestampCheck', [BaseEvalResult, None], None, ), # 2
4381
+ (3, TType.LIST, 'joinPartChecks', (TType.STRUCT, [JoinPartEvalResult, None], False), None, ), # 3
4382
+ (4, TType.STRUCT, 'derivationValidityCheck', [BaseEvalResult, None], None, ), # 4
4383
+ (5, TType.MAP, 'leftQuerySchema', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 5
4384
+ (6, TType.MAP, 'rightPartsSchema', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 6
4385
+ (7, TType.MAP, 'derivationsSchema', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 7
4386
+ (8, TType.MAP, 'externalPartsSchema', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 8
4387
+ )
4388
+ all_structs.append(GroupByEvalResult)
4389
+ GroupByEvalResult.thrift_spec = (
4390
+ None, # 0
4391
+ (1, TType.STRUCT, 'sourceExpressionCheck', [BaseEvalResult, None], None, ), # 1
4392
+ (2, TType.STRUCT, 'sourceTimestampCheck', [BaseEvalResult, None], None, ), # 2
4393
+ (3, TType.STRUCT, 'aggExpressionCheck', [BaseEvalResult, None], None, ), # 3
4394
+ (4, TType.STRUCT, 'derivationsExpressionCheck', [BaseEvalResult, None], None, ), # 4
4395
+ (5, TType.MAP, 'keySchema', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 5
4396
+ (6, TType.MAP, 'aggSchema', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 6
4397
+ (7, TType.MAP, 'derivationsSchema', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 7
4398
+ )
4399
+ all_structs.append(StagingQueryEvalResult)
4400
+ StagingQueryEvalResult.thrift_spec = (
4401
+ None, # 0
4402
+ (1, TType.STRUCT, 'queryCheck', [BaseEvalResult, None], None, ), # 1
4403
+ (2, TType.MAP, 'outputSchema', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 2
4404
+ )
4405
+ fix_spec(all_structs)
4406
+ del all_structs