apache-iotdb 2.0.2__py3-none-any.whl → 2.0.4.dev0__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.
- {apache_iotdb-2.0.2.dist-info → apache_iotdb-2.0.4.dev0.dist-info}/METADATA +6 -6
- {apache_iotdb-2.0.2.dist-info → apache_iotdb-2.0.4.dev0.dist-info}/RECORD +34 -22
- {apache_iotdb-2.0.2.dist-info → apache_iotdb-2.0.4.dev0.dist-info}/WHEEL +1 -1
- iotdb/Session.py +158 -184
- iotdb/SessionPool.py +3 -1
- iotdb/template/MeasurementNode.py +1 -1
- iotdb/template/Template.py +3 -3
- iotdb/thrift/common/ttypes.py +18 -1
- iotdb/thrift/confignode/IConfigNodeRPCService.py +28290 -0
- iotdb/thrift/confignode/__init__.py +1 -0
- iotdb/thrift/confignode/constants.py +14 -0
- iotdb/thrift/confignode/ttypes.py +17249 -0
- iotdb/thrift/datanode/IDataNodeRPCService.py +17960 -0
- iotdb/thrift/datanode/MPPDataExchangeService.py +1071 -0
- iotdb/thrift/datanode/__init__.py +1 -0
- iotdb/thrift/datanode/constants.py +14 -0
- iotdb/thrift/datanode/ttypes.py +10920 -0
- iotdb/tsfile/utils/tsblock_serde.py +266 -0
- iotdb/utils/Field.py +30 -5
- iotdb/utils/NumpyTablet.py +1 -1
- iotdb/utils/SessionDataSet.py +43 -24
- iotdb/utils/Tablet.py +1 -1
- iotdb/utils/{IoTDBConnectionException.py → exception.py} +20 -0
- iotdb/utils/iotdb_rpc_dataset.py +406 -0
- iotdb/utils/rpc_utils.py +110 -0
- tests/integration/tablet_performance_comparison.py +3 -1
- tests/integration/test_new_data_types.py +6 -6
- tests/integration/test_tablemodel_query.py +476 -0
- iotdb/utils/IoTDBRpcDataSet.py +0 -463
- {apache_iotdb-2.0.2.dist-info → apache_iotdb-2.0.4.dev0.dist-info}/entry_points.txt +0 -0
- {apache_iotdb-2.0.2.dist-info → apache_iotdb-2.0.4.dev0.dist-info}/top_level.txt +0 -0
- /iotdb/tsfile/common/constant/{TsFileConstant.py → tsfile_constant.py} +0 -0
- /iotdb/tsfile/utils/{DateUtils.py → date_utils.py} +0 -0
- /iotdb/tsfile/utils/{Pair.py → pair.py} +0 -0
- /iotdb/tsfile/utils/{ReadWriteIOUtils.py → read_write_io_utils.py} +0 -0
|
@@ -0,0 +1,1071 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Autogenerated by Thrift Compiler (0.14.1)
|
|
3
|
+
#
|
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
5
|
+
#
|
|
6
|
+
# options string: py
|
|
7
|
+
#
|
|
8
|
+
|
|
9
|
+
from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
|
|
10
|
+
from thrift.protocol.TProtocol import TProtocolException
|
|
11
|
+
from thrift.TRecursive import fix_spec
|
|
12
|
+
|
|
13
|
+
import sys
|
|
14
|
+
import logging
|
|
15
|
+
from .ttypes import *
|
|
16
|
+
from thrift.Thrift import TProcessor
|
|
17
|
+
from thrift.transport import TTransport
|
|
18
|
+
all_structs = []
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class Iface(object):
|
|
22
|
+
def getDataBlock(self, req):
|
|
23
|
+
"""
|
|
24
|
+
Parameters:
|
|
25
|
+
- req
|
|
26
|
+
|
|
27
|
+
"""
|
|
28
|
+
pass
|
|
29
|
+
|
|
30
|
+
def onAcknowledgeDataBlockEvent(self, e):
|
|
31
|
+
"""
|
|
32
|
+
Parameters:
|
|
33
|
+
- e
|
|
34
|
+
|
|
35
|
+
"""
|
|
36
|
+
pass
|
|
37
|
+
|
|
38
|
+
def onCloseSinkChannelEvent(self, e):
|
|
39
|
+
"""
|
|
40
|
+
Parameters:
|
|
41
|
+
- e
|
|
42
|
+
|
|
43
|
+
"""
|
|
44
|
+
pass
|
|
45
|
+
|
|
46
|
+
def onNewDataBlockEvent(self, e):
|
|
47
|
+
"""
|
|
48
|
+
Parameters:
|
|
49
|
+
- e
|
|
50
|
+
|
|
51
|
+
"""
|
|
52
|
+
pass
|
|
53
|
+
|
|
54
|
+
def onEndOfDataBlockEvent(self, e):
|
|
55
|
+
"""
|
|
56
|
+
Parameters:
|
|
57
|
+
- e
|
|
58
|
+
|
|
59
|
+
"""
|
|
60
|
+
pass
|
|
61
|
+
|
|
62
|
+
def testConnectionEmptyRPC(self):
|
|
63
|
+
"""
|
|
64
|
+
Empty rpc, only for connection test
|
|
65
|
+
|
|
66
|
+
"""
|
|
67
|
+
pass
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
class Client(Iface):
|
|
71
|
+
def __init__(self, iprot, oprot=None):
|
|
72
|
+
self._iprot = self._oprot = iprot
|
|
73
|
+
if oprot is not None:
|
|
74
|
+
self._oprot = oprot
|
|
75
|
+
self._seqid = 0
|
|
76
|
+
|
|
77
|
+
def getDataBlock(self, req):
|
|
78
|
+
"""
|
|
79
|
+
Parameters:
|
|
80
|
+
- req
|
|
81
|
+
|
|
82
|
+
"""
|
|
83
|
+
self.send_getDataBlock(req)
|
|
84
|
+
return self.recv_getDataBlock()
|
|
85
|
+
|
|
86
|
+
def send_getDataBlock(self, req):
|
|
87
|
+
self._oprot.writeMessageBegin('getDataBlock', TMessageType.CALL, self._seqid)
|
|
88
|
+
args = getDataBlock_args()
|
|
89
|
+
args.req = req
|
|
90
|
+
args.write(self._oprot)
|
|
91
|
+
self._oprot.writeMessageEnd()
|
|
92
|
+
self._oprot.trans.flush()
|
|
93
|
+
|
|
94
|
+
def recv_getDataBlock(self):
|
|
95
|
+
iprot = self._iprot
|
|
96
|
+
(fname, mtype, rseqid) = iprot.readMessageBegin()
|
|
97
|
+
if mtype == TMessageType.EXCEPTION:
|
|
98
|
+
x = TApplicationException()
|
|
99
|
+
x.read(iprot)
|
|
100
|
+
iprot.readMessageEnd()
|
|
101
|
+
raise x
|
|
102
|
+
result = getDataBlock_result()
|
|
103
|
+
result.read(iprot)
|
|
104
|
+
iprot.readMessageEnd()
|
|
105
|
+
if result.success is not None:
|
|
106
|
+
return result.success
|
|
107
|
+
raise TApplicationException(TApplicationException.MISSING_RESULT, "getDataBlock failed: unknown result")
|
|
108
|
+
|
|
109
|
+
def onAcknowledgeDataBlockEvent(self, e):
|
|
110
|
+
"""
|
|
111
|
+
Parameters:
|
|
112
|
+
- e
|
|
113
|
+
|
|
114
|
+
"""
|
|
115
|
+
self.send_onAcknowledgeDataBlockEvent(e)
|
|
116
|
+
self.recv_onAcknowledgeDataBlockEvent()
|
|
117
|
+
|
|
118
|
+
def send_onAcknowledgeDataBlockEvent(self, e):
|
|
119
|
+
self._oprot.writeMessageBegin('onAcknowledgeDataBlockEvent', TMessageType.CALL, self._seqid)
|
|
120
|
+
args = onAcknowledgeDataBlockEvent_args()
|
|
121
|
+
args.e = e
|
|
122
|
+
args.write(self._oprot)
|
|
123
|
+
self._oprot.writeMessageEnd()
|
|
124
|
+
self._oprot.trans.flush()
|
|
125
|
+
|
|
126
|
+
def recv_onAcknowledgeDataBlockEvent(self):
|
|
127
|
+
iprot = self._iprot
|
|
128
|
+
(fname, mtype, rseqid) = iprot.readMessageBegin()
|
|
129
|
+
if mtype == TMessageType.EXCEPTION:
|
|
130
|
+
x = TApplicationException()
|
|
131
|
+
x.read(iprot)
|
|
132
|
+
iprot.readMessageEnd()
|
|
133
|
+
raise x
|
|
134
|
+
result = onAcknowledgeDataBlockEvent_result()
|
|
135
|
+
result.read(iprot)
|
|
136
|
+
iprot.readMessageEnd()
|
|
137
|
+
return
|
|
138
|
+
|
|
139
|
+
def onCloseSinkChannelEvent(self, e):
|
|
140
|
+
"""
|
|
141
|
+
Parameters:
|
|
142
|
+
- e
|
|
143
|
+
|
|
144
|
+
"""
|
|
145
|
+
self.send_onCloseSinkChannelEvent(e)
|
|
146
|
+
self.recv_onCloseSinkChannelEvent()
|
|
147
|
+
|
|
148
|
+
def send_onCloseSinkChannelEvent(self, e):
|
|
149
|
+
self._oprot.writeMessageBegin('onCloseSinkChannelEvent', TMessageType.CALL, self._seqid)
|
|
150
|
+
args = onCloseSinkChannelEvent_args()
|
|
151
|
+
args.e = e
|
|
152
|
+
args.write(self._oprot)
|
|
153
|
+
self._oprot.writeMessageEnd()
|
|
154
|
+
self._oprot.trans.flush()
|
|
155
|
+
|
|
156
|
+
def recv_onCloseSinkChannelEvent(self):
|
|
157
|
+
iprot = self._iprot
|
|
158
|
+
(fname, mtype, rseqid) = iprot.readMessageBegin()
|
|
159
|
+
if mtype == TMessageType.EXCEPTION:
|
|
160
|
+
x = TApplicationException()
|
|
161
|
+
x.read(iprot)
|
|
162
|
+
iprot.readMessageEnd()
|
|
163
|
+
raise x
|
|
164
|
+
result = onCloseSinkChannelEvent_result()
|
|
165
|
+
result.read(iprot)
|
|
166
|
+
iprot.readMessageEnd()
|
|
167
|
+
return
|
|
168
|
+
|
|
169
|
+
def onNewDataBlockEvent(self, e):
|
|
170
|
+
"""
|
|
171
|
+
Parameters:
|
|
172
|
+
- e
|
|
173
|
+
|
|
174
|
+
"""
|
|
175
|
+
self.send_onNewDataBlockEvent(e)
|
|
176
|
+
self.recv_onNewDataBlockEvent()
|
|
177
|
+
|
|
178
|
+
def send_onNewDataBlockEvent(self, e):
|
|
179
|
+
self._oprot.writeMessageBegin('onNewDataBlockEvent', TMessageType.CALL, self._seqid)
|
|
180
|
+
args = onNewDataBlockEvent_args()
|
|
181
|
+
args.e = e
|
|
182
|
+
args.write(self._oprot)
|
|
183
|
+
self._oprot.writeMessageEnd()
|
|
184
|
+
self._oprot.trans.flush()
|
|
185
|
+
|
|
186
|
+
def recv_onNewDataBlockEvent(self):
|
|
187
|
+
iprot = self._iprot
|
|
188
|
+
(fname, mtype, rseqid) = iprot.readMessageBegin()
|
|
189
|
+
if mtype == TMessageType.EXCEPTION:
|
|
190
|
+
x = TApplicationException()
|
|
191
|
+
x.read(iprot)
|
|
192
|
+
iprot.readMessageEnd()
|
|
193
|
+
raise x
|
|
194
|
+
result = onNewDataBlockEvent_result()
|
|
195
|
+
result.read(iprot)
|
|
196
|
+
iprot.readMessageEnd()
|
|
197
|
+
return
|
|
198
|
+
|
|
199
|
+
def onEndOfDataBlockEvent(self, e):
|
|
200
|
+
"""
|
|
201
|
+
Parameters:
|
|
202
|
+
- e
|
|
203
|
+
|
|
204
|
+
"""
|
|
205
|
+
self.send_onEndOfDataBlockEvent(e)
|
|
206
|
+
self.recv_onEndOfDataBlockEvent()
|
|
207
|
+
|
|
208
|
+
def send_onEndOfDataBlockEvent(self, e):
|
|
209
|
+
self._oprot.writeMessageBegin('onEndOfDataBlockEvent', TMessageType.CALL, self._seqid)
|
|
210
|
+
args = onEndOfDataBlockEvent_args()
|
|
211
|
+
args.e = e
|
|
212
|
+
args.write(self._oprot)
|
|
213
|
+
self._oprot.writeMessageEnd()
|
|
214
|
+
self._oprot.trans.flush()
|
|
215
|
+
|
|
216
|
+
def recv_onEndOfDataBlockEvent(self):
|
|
217
|
+
iprot = self._iprot
|
|
218
|
+
(fname, mtype, rseqid) = iprot.readMessageBegin()
|
|
219
|
+
if mtype == TMessageType.EXCEPTION:
|
|
220
|
+
x = TApplicationException()
|
|
221
|
+
x.read(iprot)
|
|
222
|
+
iprot.readMessageEnd()
|
|
223
|
+
raise x
|
|
224
|
+
result = onEndOfDataBlockEvent_result()
|
|
225
|
+
result.read(iprot)
|
|
226
|
+
iprot.readMessageEnd()
|
|
227
|
+
return
|
|
228
|
+
|
|
229
|
+
def testConnectionEmptyRPC(self):
|
|
230
|
+
"""
|
|
231
|
+
Empty rpc, only for connection test
|
|
232
|
+
|
|
233
|
+
"""
|
|
234
|
+
self.send_testConnectionEmptyRPC()
|
|
235
|
+
return self.recv_testConnectionEmptyRPC()
|
|
236
|
+
|
|
237
|
+
def send_testConnectionEmptyRPC(self):
|
|
238
|
+
self._oprot.writeMessageBegin('testConnectionEmptyRPC', TMessageType.CALL, self._seqid)
|
|
239
|
+
args = testConnectionEmptyRPC_args()
|
|
240
|
+
args.write(self._oprot)
|
|
241
|
+
self._oprot.writeMessageEnd()
|
|
242
|
+
self._oprot.trans.flush()
|
|
243
|
+
|
|
244
|
+
def recv_testConnectionEmptyRPC(self):
|
|
245
|
+
iprot = self._iprot
|
|
246
|
+
(fname, mtype, rseqid) = iprot.readMessageBegin()
|
|
247
|
+
if mtype == TMessageType.EXCEPTION:
|
|
248
|
+
x = TApplicationException()
|
|
249
|
+
x.read(iprot)
|
|
250
|
+
iprot.readMessageEnd()
|
|
251
|
+
raise x
|
|
252
|
+
result = testConnectionEmptyRPC_result()
|
|
253
|
+
result.read(iprot)
|
|
254
|
+
iprot.readMessageEnd()
|
|
255
|
+
if result.success is not None:
|
|
256
|
+
return result.success
|
|
257
|
+
raise TApplicationException(TApplicationException.MISSING_RESULT, "testConnectionEmptyRPC failed: unknown result")
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
class Processor(Iface, TProcessor):
|
|
261
|
+
def __init__(self, handler):
|
|
262
|
+
self._handler = handler
|
|
263
|
+
self._processMap = {}
|
|
264
|
+
self._processMap["getDataBlock"] = Processor.process_getDataBlock
|
|
265
|
+
self._processMap["onAcknowledgeDataBlockEvent"] = Processor.process_onAcknowledgeDataBlockEvent
|
|
266
|
+
self._processMap["onCloseSinkChannelEvent"] = Processor.process_onCloseSinkChannelEvent
|
|
267
|
+
self._processMap["onNewDataBlockEvent"] = Processor.process_onNewDataBlockEvent
|
|
268
|
+
self._processMap["onEndOfDataBlockEvent"] = Processor.process_onEndOfDataBlockEvent
|
|
269
|
+
self._processMap["testConnectionEmptyRPC"] = Processor.process_testConnectionEmptyRPC
|
|
270
|
+
self._on_message_begin = None
|
|
271
|
+
|
|
272
|
+
def on_message_begin(self, func):
|
|
273
|
+
self._on_message_begin = func
|
|
274
|
+
|
|
275
|
+
def process(self, iprot, oprot):
|
|
276
|
+
(name, type, seqid) = iprot.readMessageBegin()
|
|
277
|
+
if self._on_message_begin:
|
|
278
|
+
self._on_message_begin(name, type, seqid)
|
|
279
|
+
if name not in self._processMap:
|
|
280
|
+
iprot.skip(TType.STRUCT)
|
|
281
|
+
iprot.readMessageEnd()
|
|
282
|
+
x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
|
|
283
|
+
oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
|
|
284
|
+
x.write(oprot)
|
|
285
|
+
oprot.writeMessageEnd()
|
|
286
|
+
oprot.trans.flush()
|
|
287
|
+
return
|
|
288
|
+
else:
|
|
289
|
+
self._processMap[name](self, seqid, iprot, oprot)
|
|
290
|
+
return True
|
|
291
|
+
|
|
292
|
+
def process_getDataBlock(self, seqid, iprot, oprot):
|
|
293
|
+
args = getDataBlock_args()
|
|
294
|
+
args.read(iprot)
|
|
295
|
+
iprot.readMessageEnd()
|
|
296
|
+
result = getDataBlock_result()
|
|
297
|
+
try:
|
|
298
|
+
result.success = self._handler.getDataBlock(args.req)
|
|
299
|
+
msg_type = TMessageType.REPLY
|
|
300
|
+
except TTransport.TTransportException:
|
|
301
|
+
raise
|
|
302
|
+
except TApplicationException as ex:
|
|
303
|
+
logging.exception('TApplication exception in handler')
|
|
304
|
+
msg_type = TMessageType.EXCEPTION
|
|
305
|
+
result = ex
|
|
306
|
+
except Exception:
|
|
307
|
+
logging.exception('Unexpected exception in handler')
|
|
308
|
+
msg_type = TMessageType.EXCEPTION
|
|
309
|
+
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
|
|
310
|
+
oprot.writeMessageBegin("getDataBlock", msg_type, seqid)
|
|
311
|
+
result.write(oprot)
|
|
312
|
+
oprot.writeMessageEnd()
|
|
313
|
+
oprot.trans.flush()
|
|
314
|
+
|
|
315
|
+
def process_onAcknowledgeDataBlockEvent(self, seqid, iprot, oprot):
|
|
316
|
+
args = onAcknowledgeDataBlockEvent_args()
|
|
317
|
+
args.read(iprot)
|
|
318
|
+
iprot.readMessageEnd()
|
|
319
|
+
result = onAcknowledgeDataBlockEvent_result()
|
|
320
|
+
try:
|
|
321
|
+
self._handler.onAcknowledgeDataBlockEvent(args.e)
|
|
322
|
+
msg_type = TMessageType.REPLY
|
|
323
|
+
except TTransport.TTransportException:
|
|
324
|
+
raise
|
|
325
|
+
except TApplicationException as ex:
|
|
326
|
+
logging.exception('TApplication exception in handler')
|
|
327
|
+
msg_type = TMessageType.EXCEPTION
|
|
328
|
+
result = ex
|
|
329
|
+
except Exception:
|
|
330
|
+
logging.exception('Unexpected exception in handler')
|
|
331
|
+
msg_type = TMessageType.EXCEPTION
|
|
332
|
+
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
|
|
333
|
+
oprot.writeMessageBegin("onAcknowledgeDataBlockEvent", msg_type, seqid)
|
|
334
|
+
result.write(oprot)
|
|
335
|
+
oprot.writeMessageEnd()
|
|
336
|
+
oprot.trans.flush()
|
|
337
|
+
|
|
338
|
+
def process_onCloseSinkChannelEvent(self, seqid, iprot, oprot):
|
|
339
|
+
args = onCloseSinkChannelEvent_args()
|
|
340
|
+
args.read(iprot)
|
|
341
|
+
iprot.readMessageEnd()
|
|
342
|
+
result = onCloseSinkChannelEvent_result()
|
|
343
|
+
try:
|
|
344
|
+
self._handler.onCloseSinkChannelEvent(args.e)
|
|
345
|
+
msg_type = TMessageType.REPLY
|
|
346
|
+
except TTransport.TTransportException:
|
|
347
|
+
raise
|
|
348
|
+
except TApplicationException as ex:
|
|
349
|
+
logging.exception('TApplication exception in handler')
|
|
350
|
+
msg_type = TMessageType.EXCEPTION
|
|
351
|
+
result = ex
|
|
352
|
+
except Exception:
|
|
353
|
+
logging.exception('Unexpected exception in handler')
|
|
354
|
+
msg_type = TMessageType.EXCEPTION
|
|
355
|
+
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
|
|
356
|
+
oprot.writeMessageBegin("onCloseSinkChannelEvent", msg_type, seqid)
|
|
357
|
+
result.write(oprot)
|
|
358
|
+
oprot.writeMessageEnd()
|
|
359
|
+
oprot.trans.flush()
|
|
360
|
+
|
|
361
|
+
def process_onNewDataBlockEvent(self, seqid, iprot, oprot):
|
|
362
|
+
args = onNewDataBlockEvent_args()
|
|
363
|
+
args.read(iprot)
|
|
364
|
+
iprot.readMessageEnd()
|
|
365
|
+
result = onNewDataBlockEvent_result()
|
|
366
|
+
try:
|
|
367
|
+
self._handler.onNewDataBlockEvent(args.e)
|
|
368
|
+
msg_type = TMessageType.REPLY
|
|
369
|
+
except TTransport.TTransportException:
|
|
370
|
+
raise
|
|
371
|
+
except TApplicationException as ex:
|
|
372
|
+
logging.exception('TApplication exception in handler')
|
|
373
|
+
msg_type = TMessageType.EXCEPTION
|
|
374
|
+
result = ex
|
|
375
|
+
except Exception:
|
|
376
|
+
logging.exception('Unexpected exception in handler')
|
|
377
|
+
msg_type = TMessageType.EXCEPTION
|
|
378
|
+
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
|
|
379
|
+
oprot.writeMessageBegin("onNewDataBlockEvent", msg_type, seqid)
|
|
380
|
+
result.write(oprot)
|
|
381
|
+
oprot.writeMessageEnd()
|
|
382
|
+
oprot.trans.flush()
|
|
383
|
+
|
|
384
|
+
def process_onEndOfDataBlockEvent(self, seqid, iprot, oprot):
|
|
385
|
+
args = onEndOfDataBlockEvent_args()
|
|
386
|
+
args.read(iprot)
|
|
387
|
+
iprot.readMessageEnd()
|
|
388
|
+
result = onEndOfDataBlockEvent_result()
|
|
389
|
+
try:
|
|
390
|
+
self._handler.onEndOfDataBlockEvent(args.e)
|
|
391
|
+
msg_type = TMessageType.REPLY
|
|
392
|
+
except TTransport.TTransportException:
|
|
393
|
+
raise
|
|
394
|
+
except TApplicationException as ex:
|
|
395
|
+
logging.exception('TApplication exception in handler')
|
|
396
|
+
msg_type = TMessageType.EXCEPTION
|
|
397
|
+
result = ex
|
|
398
|
+
except Exception:
|
|
399
|
+
logging.exception('Unexpected exception in handler')
|
|
400
|
+
msg_type = TMessageType.EXCEPTION
|
|
401
|
+
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
|
|
402
|
+
oprot.writeMessageBegin("onEndOfDataBlockEvent", msg_type, seqid)
|
|
403
|
+
result.write(oprot)
|
|
404
|
+
oprot.writeMessageEnd()
|
|
405
|
+
oprot.trans.flush()
|
|
406
|
+
|
|
407
|
+
def process_testConnectionEmptyRPC(self, seqid, iprot, oprot):
|
|
408
|
+
args = testConnectionEmptyRPC_args()
|
|
409
|
+
args.read(iprot)
|
|
410
|
+
iprot.readMessageEnd()
|
|
411
|
+
result = testConnectionEmptyRPC_result()
|
|
412
|
+
try:
|
|
413
|
+
result.success = self._handler.testConnectionEmptyRPC()
|
|
414
|
+
msg_type = TMessageType.REPLY
|
|
415
|
+
except TTransport.TTransportException:
|
|
416
|
+
raise
|
|
417
|
+
except TApplicationException as ex:
|
|
418
|
+
logging.exception('TApplication exception in handler')
|
|
419
|
+
msg_type = TMessageType.EXCEPTION
|
|
420
|
+
result = ex
|
|
421
|
+
except Exception:
|
|
422
|
+
logging.exception('Unexpected exception in handler')
|
|
423
|
+
msg_type = TMessageType.EXCEPTION
|
|
424
|
+
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
|
|
425
|
+
oprot.writeMessageBegin("testConnectionEmptyRPC", msg_type, seqid)
|
|
426
|
+
result.write(oprot)
|
|
427
|
+
oprot.writeMessageEnd()
|
|
428
|
+
oprot.trans.flush()
|
|
429
|
+
|
|
430
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
class getDataBlock_args(object):
|
|
434
|
+
"""
|
|
435
|
+
Attributes:
|
|
436
|
+
- req
|
|
437
|
+
|
|
438
|
+
"""
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
def __init__(self, req=None,):
|
|
442
|
+
self.req = req
|
|
443
|
+
|
|
444
|
+
def read(self, iprot):
|
|
445
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
446
|
+
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
|
|
447
|
+
return
|
|
448
|
+
iprot.readStructBegin()
|
|
449
|
+
while True:
|
|
450
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
451
|
+
if ftype == TType.STOP:
|
|
452
|
+
break
|
|
453
|
+
if fid == -1:
|
|
454
|
+
if ftype == TType.STRUCT:
|
|
455
|
+
self.req = TGetDataBlockRequest()
|
|
456
|
+
self.req.read(iprot)
|
|
457
|
+
else:
|
|
458
|
+
iprot.skip(ftype)
|
|
459
|
+
else:
|
|
460
|
+
iprot.skip(ftype)
|
|
461
|
+
iprot.readFieldEnd()
|
|
462
|
+
iprot.readStructEnd()
|
|
463
|
+
|
|
464
|
+
def write(self, oprot):
|
|
465
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
466
|
+
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
|
|
467
|
+
return
|
|
468
|
+
oprot.writeStructBegin('getDataBlock_args')
|
|
469
|
+
if self.req is not None:
|
|
470
|
+
oprot.writeFieldBegin('req', TType.STRUCT, -1)
|
|
471
|
+
self.req.write(oprot)
|
|
472
|
+
oprot.writeFieldEnd()
|
|
473
|
+
oprot.writeFieldStop()
|
|
474
|
+
oprot.writeStructEnd()
|
|
475
|
+
|
|
476
|
+
def validate(self):
|
|
477
|
+
return
|
|
478
|
+
|
|
479
|
+
def __repr__(self):
|
|
480
|
+
L = ['%s=%r' % (key, value)
|
|
481
|
+
for key, value in self.__dict__.items()]
|
|
482
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
483
|
+
|
|
484
|
+
def __eq__(self, other):
|
|
485
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
486
|
+
|
|
487
|
+
def __ne__(self, other):
|
|
488
|
+
return not (self == other)
|
|
489
|
+
all_structs.append(getDataBlock_args)
|
|
490
|
+
getDataBlock_args.thrift_spec = ()
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
class getDataBlock_result(object):
|
|
494
|
+
"""
|
|
495
|
+
Attributes:
|
|
496
|
+
- success
|
|
497
|
+
|
|
498
|
+
"""
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
def __init__(self, success=None,):
|
|
502
|
+
self.success = success
|
|
503
|
+
|
|
504
|
+
def read(self, iprot):
|
|
505
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
506
|
+
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
|
|
507
|
+
return
|
|
508
|
+
iprot.readStructBegin()
|
|
509
|
+
while True:
|
|
510
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
511
|
+
if ftype == TType.STOP:
|
|
512
|
+
break
|
|
513
|
+
if fid == 0:
|
|
514
|
+
if ftype == TType.STRUCT:
|
|
515
|
+
self.success = TGetDataBlockResponse()
|
|
516
|
+
self.success.read(iprot)
|
|
517
|
+
else:
|
|
518
|
+
iprot.skip(ftype)
|
|
519
|
+
else:
|
|
520
|
+
iprot.skip(ftype)
|
|
521
|
+
iprot.readFieldEnd()
|
|
522
|
+
iprot.readStructEnd()
|
|
523
|
+
|
|
524
|
+
def write(self, oprot):
|
|
525
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
526
|
+
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
|
|
527
|
+
return
|
|
528
|
+
oprot.writeStructBegin('getDataBlock_result')
|
|
529
|
+
if self.success is not None:
|
|
530
|
+
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
531
|
+
self.success.write(oprot)
|
|
532
|
+
oprot.writeFieldEnd()
|
|
533
|
+
oprot.writeFieldStop()
|
|
534
|
+
oprot.writeStructEnd()
|
|
535
|
+
|
|
536
|
+
def validate(self):
|
|
537
|
+
return
|
|
538
|
+
|
|
539
|
+
def __repr__(self):
|
|
540
|
+
L = ['%s=%r' % (key, value)
|
|
541
|
+
for key, value in self.__dict__.items()]
|
|
542
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
543
|
+
|
|
544
|
+
def __eq__(self, other):
|
|
545
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
546
|
+
|
|
547
|
+
def __ne__(self, other):
|
|
548
|
+
return not (self == other)
|
|
549
|
+
all_structs.append(getDataBlock_result)
|
|
550
|
+
getDataBlock_result.thrift_spec = (
|
|
551
|
+
(0, TType.STRUCT, 'success', [TGetDataBlockResponse, None], None, ), # 0
|
|
552
|
+
)
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
class onAcknowledgeDataBlockEvent_args(object):
|
|
556
|
+
"""
|
|
557
|
+
Attributes:
|
|
558
|
+
- e
|
|
559
|
+
|
|
560
|
+
"""
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
def __init__(self, e=None,):
|
|
564
|
+
self.e = e
|
|
565
|
+
|
|
566
|
+
def read(self, iprot):
|
|
567
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
568
|
+
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
|
|
569
|
+
return
|
|
570
|
+
iprot.readStructBegin()
|
|
571
|
+
while True:
|
|
572
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
573
|
+
if ftype == TType.STOP:
|
|
574
|
+
break
|
|
575
|
+
if fid == -1:
|
|
576
|
+
if ftype == TType.STRUCT:
|
|
577
|
+
self.e = TAcknowledgeDataBlockEvent()
|
|
578
|
+
self.e.read(iprot)
|
|
579
|
+
else:
|
|
580
|
+
iprot.skip(ftype)
|
|
581
|
+
else:
|
|
582
|
+
iprot.skip(ftype)
|
|
583
|
+
iprot.readFieldEnd()
|
|
584
|
+
iprot.readStructEnd()
|
|
585
|
+
|
|
586
|
+
def write(self, oprot):
|
|
587
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
588
|
+
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
|
|
589
|
+
return
|
|
590
|
+
oprot.writeStructBegin('onAcknowledgeDataBlockEvent_args')
|
|
591
|
+
if self.e is not None:
|
|
592
|
+
oprot.writeFieldBegin('e', TType.STRUCT, -1)
|
|
593
|
+
self.e.write(oprot)
|
|
594
|
+
oprot.writeFieldEnd()
|
|
595
|
+
oprot.writeFieldStop()
|
|
596
|
+
oprot.writeStructEnd()
|
|
597
|
+
|
|
598
|
+
def validate(self):
|
|
599
|
+
return
|
|
600
|
+
|
|
601
|
+
def __repr__(self):
|
|
602
|
+
L = ['%s=%r' % (key, value)
|
|
603
|
+
for key, value in self.__dict__.items()]
|
|
604
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
605
|
+
|
|
606
|
+
def __eq__(self, other):
|
|
607
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
608
|
+
|
|
609
|
+
def __ne__(self, other):
|
|
610
|
+
return not (self == other)
|
|
611
|
+
all_structs.append(onAcknowledgeDataBlockEvent_args)
|
|
612
|
+
onAcknowledgeDataBlockEvent_args.thrift_spec = ()
|
|
613
|
+
|
|
614
|
+
|
|
615
|
+
class onAcknowledgeDataBlockEvent_result(object):
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
def read(self, iprot):
|
|
619
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
620
|
+
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
|
|
621
|
+
return
|
|
622
|
+
iprot.readStructBegin()
|
|
623
|
+
while True:
|
|
624
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
625
|
+
if ftype == TType.STOP:
|
|
626
|
+
break
|
|
627
|
+
else:
|
|
628
|
+
iprot.skip(ftype)
|
|
629
|
+
iprot.readFieldEnd()
|
|
630
|
+
iprot.readStructEnd()
|
|
631
|
+
|
|
632
|
+
def write(self, oprot):
|
|
633
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
634
|
+
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
|
|
635
|
+
return
|
|
636
|
+
oprot.writeStructBegin('onAcknowledgeDataBlockEvent_result')
|
|
637
|
+
oprot.writeFieldStop()
|
|
638
|
+
oprot.writeStructEnd()
|
|
639
|
+
|
|
640
|
+
def validate(self):
|
|
641
|
+
return
|
|
642
|
+
|
|
643
|
+
def __repr__(self):
|
|
644
|
+
L = ['%s=%r' % (key, value)
|
|
645
|
+
for key, value in self.__dict__.items()]
|
|
646
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
647
|
+
|
|
648
|
+
def __eq__(self, other):
|
|
649
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
650
|
+
|
|
651
|
+
def __ne__(self, other):
|
|
652
|
+
return not (self == other)
|
|
653
|
+
all_structs.append(onAcknowledgeDataBlockEvent_result)
|
|
654
|
+
onAcknowledgeDataBlockEvent_result.thrift_spec = (
|
|
655
|
+
)
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+
class onCloseSinkChannelEvent_args(object):
|
|
659
|
+
"""
|
|
660
|
+
Attributes:
|
|
661
|
+
- e
|
|
662
|
+
|
|
663
|
+
"""
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
def __init__(self, e=None,):
|
|
667
|
+
self.e = e
|
|
668
|
+
|
|
669
|
+
def read(self, iprot):
|
|
670
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
671
|
+
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
|
|
672
|
+
return
|
|
673
|
+
iprot.readStructBegin()
|
|
674
|
+
while True:
|
|
675
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
676
|
+
if ftype == TType.STOP:
|
|
677
|
+
break
|
|
678
|
+
if fid == -1:
|
|
679
|
+
if ftype == TType.STRUCT:
|
|
680
|
+
self.e = TCloseSinkChannelEvent()
|
|
681
|
+
self.e.read(iprot)
|
|
682
|
+
else:
|
|
683
|
+
iprot.skip(ftype)
|
|
684
|
+
else:
|
|
685
|
+
iprot.skip(ftype)
|
|
686
|
+
iprot.readFieldEnd()
|
|
687
|
+
iprot.readStructEnd()
|
|
688
|
+
|
|
689
|
+
def write(self, oprot):
|
|
690
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
691
|
+
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
|
|
692
|
+
return
|
|
693
|
+
oprot.writeStructBegin('onCloseSinkChannelEvent_args')
|
|
694
|
+
if self.e is not None:
|
|
695
|
+
oprot.writeFieldBegin('e', TType.STRUCT, -1)
|
|
696
|
+
self.e.write(oprot)
|
|
697
|
+
oprot.writeFieldEnd()
|
|
698
|
+
oprot.writeFieldStop()
|
|
699
|
+
oprot.writeStructEnd()
|
|
700
|
+
|
|
701
|
+
def validate(self):
|
|
702
|
+
return
|
|
703
|
+
|
|
704
|
+
def __repr__(self):
|
|
705
|
+
L = ['%s=%r' % (key, value)
|
|
706
|
+
for key, value in self.__dict__.items()]
|
|
707
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
708
|
+
|
|
709
|
+
def __eq__(self, other):
|
|
710
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
711
|
+
|
|
712
|
+
def __ne__(self, other):
|
|
713
|
+
return not (self == other)
|
|
714
|
+
all_structs.append(onCloseSinkChannelEvent_args)
|
|
715
|
+
onCloseSinkChannelEvent_args.thrift_spec = ()
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
class onCloseSinkChannelEvent_result(object):
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
def read(self, iprot):
|
|
722
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
723
|
+
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
|
|
724
|
+
return
|
|
725
|
+
iprot.readStructBegin()
|
|
726
|
+
while True:
|
|
727
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
728
|
+
if ftype == TType.STOP:
|
|
729
|
+
break
|
|
730
|
+
else:
|
|
731
|
+
iprot.skip(ftype)
|
|
732
|
+
iprot.readFieldEnd()
|
|
733
|
+
iprot.readStructEnd()
|
|
734
|
+
|
|
735
|
+
def write(self, oprot):
|
|
736
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
737
|
+
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
|
|
738
|
+
return
|
|
739
|
+
oprot.writeStructBegin('onCloseSinkChannelEvent_result')
|
|
740
|
+
oprot.writeFieldStop()
|
|
741
|
+
oprot.writeStructEnd()
|
|
742
|
+
|
|
743
|
+
def validate(self):
|
|
744
|
+
return
|
|
745
|
+
|
|
746
|
+
def __repr__(self):
|
|
747
|
+
L = ['%s=%r' % (key, value)
|
|
748
|
+
for key, value in self.__dict__.items()]
|
|
749
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
750
|
+
|
|
751
|
+
def __eq__(self, other):
|
|
752
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
753
|
+
|
|
754
|
+
def __ne__(self, other):
|
|
755
|
+
return not (self == other)
|
|
756
|
+
all_structs.append(onCloseSinkChannelEvent_result)
|
|
757
|
+
onCloseSinkChannelEvent_result.thrift_spec = (
|
|
758
|
+
)
|
|
759
|
+
|
|
760
|
+
|
|
761
|
+
class onNewDataBlockEvent_args(object):
|
|
762
|
+
"""
|
|
763
|
+
Attributes:
|
|
764
|
+
- e
|
|
765
|
+
|
|
766
|
+
"""
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
def __init__(self, e=None,):
|
|
770
|
+
self.e = e
|
|
771
|
+
|
|
772
|
+
def read(self, iprot):
|
|
773
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
774
|
+
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
|
|
775
|
+
return
|
|
776
|
+
iprot.readStructBegin()
|
|
777
|
+
while True:
|
|
778
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
779
|
+
if ftype == TType.STOP:
|
|
780
|
+
break
|
|
781
|
+
if fid == -1:
|
|
782
|
+
if ftype == TType.STRUCT:
|
|
783
|
+
self.e = TNewDataBlockEvent()
|
|
784
|
+
self.e.read(iprot)
|
|
785
|
+
else:
|
|
786
|
+
iprot.skip(ftype)
|
|
787
|
+
else:
|
|
788
|
+
iprot.skip(ftype)
|
|
789
|
+
iprot.readFieldEnd()
|
|
790
|
+
iprot.readStructEnd()
|
|
791
|
+
|
|
792
|
+
def write(self, oprot):
|
|
793
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
794
|
+
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
|
|
795
|
+
return
|
|
796
|
+
oprot.writeStructBegin('onNewDataBlockEvent_args')
|
|
797
|
+
if self.e is not None:
|
|
798
|
+
oprot.writeFieldBegin('e', TType.STRUCT, -1)
|
|
799
|
+
self.e.write(oprot)
|
|
800
|
+
oprot.writeFieldEnd()
|
|
801
|
+
oprot.writeFieldStop()
|
|
802
|
+
oprot.writeStructEnd()
|
|
803
|
+
|
|
804
|
+
def validate(self):
|
|
805
|
+
return
|
|
806
|
+
|
|
807
|
+
def __repr__(self):
|
|
808
|
+
L = ['%s=%r' % (key, value)
|
|
809
|
+
for key, value in self.__dict__.items()]
|
|
810
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
811
|
+
|
|
812
|
+
def __eq__(self, other):
|
|
813
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
814
|
+
|
|
815
|
+
def __ne__(self, other):
|
|
816
|
+
return not (self == other)
|
|
817
|
+
all_structs.append(onNewDataBlockEvent_args)
|
|
818
|
+
onNewDataBlockEvent_args.thrift_spec = ()
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
class onNewDataBlockEvent_result(object):
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
def read(self, iprot):
|
|
825
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
826
|
+
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
|
|
827
|
+
return
|
|
828
|
+
iprot.readStructBegin()
|
|
829
|
+
while True:
|
|
830
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
831
|
+
if ftype == TType.STOP:
|
|
832
|
+
break
|
|
833
|
+
else:
|
|
834
|
+
iprot.skip(ftype)
|
|
835
|
+
iprot.readFieldEnd()
|
|
836
|
+
iprot.readStructEnd()
|
|
837
|
+
|
|
838
|
+
def write(self, oprot):
|
|
839
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
840
|
+
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
|
|
841
|
+
return
|
|
842
|
+
oprot.writeStructBegin('onNewDataBlockEvent_result')
|
|
843
|
+
oprot.writeFieldStop()
|
|
844
|
+
oprot.writeStructEnd()
|
|
845
|
+
|
|
846
|
+
def validate(self):
|
|
847
|
+
return
|
|
848
|
+
|
|
849
|
+
def __repr__(self):
|
|
850
|
+
L = ['%s=%r' % (key, value)
|
|
851
|
+
for key, value in self.__dict__.items()]
|
|
852
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
853
|
+
|
|
854
|
+
def __eq__(self, other):
|
|
855
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
856
|
+
|
|
857
|
+
def __ne__(self, other):
|
|
858
|
+
return not (self == other)
|
|
859
|
+
all_structs.append(onNewDataBlockEvent_result)
|
|
860
|
+
onNewDataBlockEvent_result.thrift_spec = (
|
|
861
|
+
)
|
|
862
|
+
|
|
863
|
+
|
|
864
|
+
class onEndOfDataBlockEvent_args(object):
|
|
865
|
+
"""
|
|
866
|
+
Attributes:
|
|
867
|
+
- e
|
|
868
|
+
|
|
869
|
+
"""
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
def __init__(self, e=None,):
|
|
873
|
+
self.e = e
|
|
874
|
+
|
|
875
|
+
def read(self, iprot):
|
|
876
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
877
|
+
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
|
|
878
|
+
return
|
|
879
|
+
iprot.readStructBegin()
|
|
880
|
+
while True:
|
|
881
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
882
|
+
if ftype == TType.STOP:
|
|
883
|
+
break
|
|
884
|
+
if fid == -1:
|
|
885
|
+
if ftype == TType.STRUCT:
|
|
886
|
+
self.e = TEndOfDataBlockEvent()
|
|
887
|
+
self.e.read(iprot)
|
|
888
|
+
else:
|
|
889
|
+
iprot.skip(ftype)
|
|
890
|
+
else:
|
|
891
|
+
iprot.skip(ftype)
|
|
892
|
+
iprot.readFieldEnd()
|
|
893
|
+
iprot.readStructEnd()
|
|
894
|
+
|
|
895
|
+
def write(self, oprot):
|
|
896
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
897
|
+
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
|
|
898
|
+
return
|
|
899
|
+
oprot.writeStructBegin('onEndOfDataBlockEvent_args')
|
|
900
|
+
if self.e is not None:
|
|
901
|
+
oprot.writeFieldBegin('e', TType.STRUCT, -1)
|
|
902
|
+
self.e.write(oprot)
|
|
903
|
+
oprot.writeFieldEnd()
|
|
904
|
+
oprot.writeFieldStop()
|
|
905
|
+
oprot.writeStructEnd()
|
|
906
|
+
|
|
907
|
+
def validate(self):
|
|
908
|
+
return
|
|
909
|
+
|
|
910
|
+
def __repr__(self):
|
|
911
|
+
L = ['%s=%r' % (key, value)
|
|
912
|
+
for key, value in self.__dict__.items()]
|
|
913
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
914
|
+
|
|
915
|
+
def __eq__(self, other):
|
|
916
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
917
|
+
|
|
918
|
+
def __ne__(self, other):
|
|
919
|
+
return not (self == other)
|
|
920
|
+
all_structs.append(onEndOfDataBlockEvent_args)
|
|
921
|
+
onEndOfDataBlockEvent_args.thrift_spec = ()
|
|
922
|
+
|
|
923
|
+
|
|
924
|
+
class onEndOfDataBlockEvent_result(object):
|
|
925
|
+
|
|
926
|
+
|
|
927
|
+
def read(self, iprot):
|
|
928
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
929
|
+
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
|
|
930
|
+
return
|
|
931
|
+
iprot.readStructBegin()
|
|
932
|
+
while True:
|
|
933
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
934
|
+
if ftype == TType.STOP:
|
|
935
|
+
break
|
|
936
|
+
else:
|
|
937
|
+
iprot.skip(ftype)
|
|
938
|
+
iprot.readFieldEnd()
|
|
939
|
+
iprot.readStructEnd()
|
|
940
|
+
|
|
941
|
+
def write(self, oprot):
|
|
942
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
943
|
+
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
|
|
944
|
+
return
|
|
945
|
+
oprot.writeStructBegin('onEndOfDataBlockEvent_result')
|
|
946
|
+
oprot.writeFieldStop()
|
|
947
|
+
oprot.writeStructEnd()
|
|
948
|
+
|
|
949
|
+
def validate(self):
|
|
950
|
+
return
|
|
951
|
+
|
|
952
|
+
def __repr__(self):
|
|
953
|
+
L = ['%s=%r' % (key, value)
|
|
954
|
+
for key, value in self.__dict__.items()]
|
|
955
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
956
|
+
|
|
957
|
+
def __eq__(self, other):
|
|
958
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
959
|
+
|
|
960
|
+
def __ne__(self, other):
|
|
961
|
+
return not (self == other)
|
|
962
|
+
all_structs.append(onEndOfDataBlockEvent_result)
|
|
963
|
+
onEndOfDataBlockEvent_result.thrift_spec = (
|
|
964
|
+
)
|
|
965
|
+
|
|
966
|
+
|
|
967
|
+
class testConnectionEmptyRPC_args(object):
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
def read(self, iprot):
|
|
971
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
972
|
+
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
|
|
973
|
+
return
|
|
974
|
+
iprot.readStructBegin()
|
|
975
|
+
while True:
|
|
976
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
977
|
+
if ftype == TType.STOP:
|
|
978
|
+
break
|
|
979
|
+
else:
|
|
980
|
+
iprot.skip(ftype)
|
|
981
|
+
iprot.readFieldEnd()
|
|
982
|
+
iprot.readStructEnd()
|
|
983
|
+
|
|
984
|
+
def write(self, oprot):
|
|
985
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
986
|
+
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
|
|
987
|
+
return
|
|
988
|
+
oprot.writeStructBegin('testConnectionEmptyRPC_args')
|
|
989
|
+
oprot.writeFieldStop()
|
|
990
|
+
oprot.writeStructEnd()
|
|
991
|
+
|
|
992
|
+
def validate(self):
|
|
993
|
+
return
|
|
994
|
+
|
|
995
|
+
def __repr__(self):
|
|
996
|
+
L = ['%s=%r' % (key, value)
|
|
997
|
+
for key, value in self.__dict__.items()]
|
|
998
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
999
|
+
|
|
1000
|
+
def __eq__(self, other):
|
|
1001
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
1002
|
+
|
|
1003
|
+
def __ne__(self, other):
|
|
1004
|
+
return not (self == other)
|
|
1005
|
+
all_structs.append(testConnectionEmptyRPC_args)
|
|
1006
|
+
testConnectionEmptyRPC_args.thrift_spec = (
|
|
1007
|
+
)
|
|
1008
|
+
|
|
1009
|
+
|
|
1010
|
+
class testConnectionEmptyRPC_result(object):
|
|
1011
|
+
"""
|
|
1012
|
+
Attributes:
|
|
1013
|
+
- success
|
|
1014
|
+
|
|
1015
|
+
"""
|
|
1016
|
+
|
|
1017
|
+
|
|
1018
|
+
def __init__(self, success=None,):
|
|
1019
|
+
self.success = success
|
|
1020
|
+
|
|
1021
|
+
def read(self, iprot):
|
|
1022
|
+
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
1023
|
+
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
|
|
1024
|
+
return
|
|
1025
|
+
iprot.readStructBegin()
|
|
1026
|
+
while True:
|
|
1027
|
+
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
1028
|
+
if ftype == TType.STOP:
|
|
1029
|
+
break
|
|
1030
|
+
if fid == 0:
|
|
1031
|
+
if ftype == TType.STRUCT:
|
|
1032
|
+
self.success = iotdb.thrift.common.ttypes.TSStatus()
|
|
1033
|
+
self.success.read(iprot)
|
|
1034
|
+
else:
|
|
1035
|
+
iprot.skip(ftype)
|
|
1036
|
+
else:
|
|
1037
|
+
iprot.skip(ftype)
|
|
1038
|
+
iprot.readFieldEnd()
|
|
1039
|
+
iprot.readStructEnd()
|
|
1040
|
+
|
|
1041
|
+
def write(self, oprot):
|
|
1042
|
+
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
1043
|
+
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
|
|
1044
|
+
return
|
|
1045
|
+
oprot.writeStructBegin('testConnectionEmptyRPC_result')
|
|
1046
|
+
if self.success is not None:
|
|
1047
|
+
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
1048
|
+
self.success.write(oprot)
|
|
1049
|
+
oprot.writeFieldEnd()
|
|
1050
|
+
oprot.writeFieldStop()
|
|
1051
|
+
oprot.writeStructEnd()
|
|
1052
|
+
|
|
1053
|
+
def validate(self):
|
|
1054
|
+
return
|
|
1055
|
+
|
|
1056
|
+
def __repr__(self):
|
|
1057
|
+
L = ['%s=%r' % (key, value)
|
|
1058
|
+
for key, value in self.__dict__.items()]
|
|
1059
|
+
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
1060
|
+
|
|
1061
|
+
def __eq__(self, other):
|
|
1062
|
+
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
1063
|
+
|
|
1064
|
+
def __ne__(self, other):
|
|
1065
|
+
return not (self == other)
|
|
1066
|
+
all_structs.append(testConnectionEmptyRPC_result)
|
|
1067
|
+
testConnectionEmptyRPC_result.thrift_spec = (
|
|
1068
|
+
(0, TType.STRUCT, 'success', [iotdb.thrift.common.ttypes.TSStatus, None], None, ), # 0
|
|
1069
|
+
)
|
|
1070
|
+
fix_spec(all_structs)
|
|
1071
|
+
del all_structs
|