apache-iotdb 2.0.4.dev0__py3-none-any.whl → 2.0.5__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.
@@ -143,7 +143,7 @@ class Iface(object):
143
143
 
144
144
  def setDatabase(self, databaseSchema):
145
145
  """
146
- Set a new Databse, all fields in TDatabaseSchema can be customized
146
+ Set a new Database, all fields in TDatabaseSchema can be customized
147
147
  while the undefined fields will automatically use default values
148
148
 
149
149
  @return SUCCESS_STATUS if the new Database set successfully
@@ -879,6 +879,13 @@ class Iface(object):
879
879
  """
880
880
  pass
881
881
 
882
+ def showDataNodes4InformationSchema(self):
883
+ """
884
+ Show cluster DataNodes' information for information schema
885
+
886
+ """
887
+ pass
888
+
882
889
  def showConfigNodes(self):
883
890
  """
884
891
  Show cluster ConfigNodes' information
@@ -886,6 +893,13 @@ class Iface(object):
886
893
  """
887
894
  pass
888
895
 
896
+ def showConfigNodes4InformationSchema(self):
897
+ """
898
+ Show cluster ConfigNodes' information for information schema
899
+
900
+ """
901
+ pass
902
+
889
903
  def showDatabase(self, req):
890
904
  """
891
905
  Show cluster Databases' information
@@ -1245,7 +1259,17 @@ class Iface(object):
1245
1259
 
1246
1260
  def dropSubscription(self, req):
1247
1261
  """
1248
- Close subscription
1262
+ Close subscription by consumer
1263
+
1264
+ Parameters:
1265
+ - req
1266
+
1267
+ """
1268
+ pass
1269
+
1270
+ def dropSubscriptionById(self, req):
1271
+ """
1272
+ Close subscription by session
1249
1273
 
1250
1274
  Parameters:
1251
1275
  - req
@@ -1453,6 +1477,17 @@ class Iface(object):
1453
1477
  """
1454
1478
  pass
1455
1479
 
1480
+ def pushHeartbeat(self, dataNodeId, resp):
1481
+ """
1482
+ Push heartbeat in shutdown
1483
+
1484
+ Parameters:
1485
+ - dataNodeId
1486
+ - resp
1487
+
1488
+ """
1489
+ pass
1490
+
1456
1491
  def createTable(self, tableInfo):
1457
1492
  """
1458
1493
  Parameters:
@@ -1510,6 +1545,14 @@ class Iface(object):
1510
1545
  """
1511
1546
  pass
1512
1547
 
1548
+ def createTableView(self, req):
1549
+ """
1550
+ Parameters:
1551
+ - req
1552
+
1553
+ """
1554
+ pass
1555
+
1513
1556
 
1514
1557
  class Client(Iface):
1515
1558
  def __init__(self, iprot, oprot=None):
@@ -1927,7 +1970,7 @@ class Client(Iface):
1927
1970
 
1928
1971
  def setDatabase(self, databaseSchema):
1929
1972
  """
1930
- Set a new Databse, all fields in TDatabaseSchema can be customized
1973
+ Set a new Database, all fields in TDatabaseSchema can be customized
1931
1974
  while the undefined fields will automatically use default values
1932
1975
 
1933
1976
  @return SUCCESS_STATUS if the new Database set successfully
@@ -4331,6 +4374,36 @@ class Client(Iface):
4331
4374
  return result.success
4332
4375
  raise TApplicationException(TApplicationException.MISSING_RESULT, "showDataNodes failed: unknown result")
4333
4376
 
4377
+ def showDataNodes4InformationSchema(self):
4378
+ """
4379
+ Show cluster DataNodes' information for information schema
4380
+
4381
+ """
4382
+ self.send_showDataNodes4InformationSchema()
4383
+ return self.recv_showDataNodes4InformationSchema()
4384
+
4385
+ def send_showDataNodes4InformationSchema(self):
4386
+ self._oprot.writeMessageBegin('showDataNodes4InformationSchema', TMessageType.CALL, self._seqid)
4387
+ args = showDataNodes4InformationSchema_args()
4388
+ args.write(self._oprot)
4389
+ self._oprot.writeMessageEnd()
4390
+ self._oprot.trans.flush()
4391
+
4392
+ def recv_showDataNodes4InformationSchema(self):
4393
+ iprot = self._iprot
4394
+ (fname, mtype, rseqid) = iprot.readMessageBegin()
4395
+ if mtype == TMessageType.EXCEPTION:
4396
+ x = TApplicationException()
4397
+ x.read(iprot)
4398
+ iprot.readMessageEnd()
4399
+ raise x
4400
+ result = showDataNodes4InformationSchema_result()
4401
+ result.read(iprot)
4402
+ iprot.readMessageEnd()
4403
+ if result.success is not None:
4404
+ return result.success
4405
+ raise TApplicationException(TApplicationException.MISSING_RESULT, "showDataNodes4InformationSchema failed: unknown result")
4406
+
4334
4407
  def showConfigNodes(self):
4335
4408
  """
4336
4409
  Show cluster ConfigNodes' information
@@ -4361,6 +4434,36 @@ class Client(Iface):
4361
4434
  return result.success
4362
4435
  raise TApplicationException(TApplicationException.MISSING_RESULT, "showConfigNodes failed: unknown result")
4363
4436
 
4437
+ def showConfigNodes4InformationSchema(self):
4438
+ """
4439
+ Show cluster ConfigNodes' information for information schema
4440
+
4441
+ """
4442
+ self.send_showConfigNodes4InformationSchema()
4443
+ return self.recv_showConfigNodes4InformationSchema()
4444
+
4445
+ def send_showConfigNodes4InformationSchema(self):
4446
+ self._oprot.writeMessageBegin('showConfigNodes4InformationSchema', TMessageType.CALL, self._seqid)
4447
+ args = showConfigNodes4InformationSchema_args()
4448
+ args.write(self._oprot)
4449
+ self._oprot.writeMessageEnd()
4450
+ self._oprot.trans.flush()
4451
+
4452
+ def recv_showConfigNodes4InformationSchema(self):
4453
+ iprot = self._iprot
4454
+ (fname, mtype, rseqid) = iprot.readMessageBegin()
4455
+ if mtype == TMessageType.EXCEPTION:
4456
+ x = TApplicationException()
4457
+ x.read(iprot)
4458
+ iprot.readMessageEnd()
4459
+ raise x
4460
+ result = showConfigNodes4InformationSchema_result()
4461
+ result.read(iprot)
4462
+ iprot.readMessageEnd()
4463
+ if result.success is not None:
4464
+ return result.success
4465
+ raise TApplicationException(TApplicationException.MISSING_RESULT, "showConfigNodes4InformationSchema failed: unknown result")
4466
+
4364
4467
  def showDatabase(self, req):
4365
4468
  """
4366
4469
  Show cluster Databases' information
@@ -5626,7 +5729,7 @@ class Client(Iface):
5626
5729
 
5627
5730
  def dropSubscription(self, req):
5628
5731
  """
5629
- Close subscription
5732
+ Close subscription by consumer
5630
5733
 
5631
5734
  Parameters:
5632
5735
  - req
@@ -5658,6 +5761,40 @@ class Client(Iface):
5658
5761
  return result.success
5659
5762
  raise TApplicationException(TApplicationException.MISSING_RESULT, "dropSubscription failed: unknown result")
5660
5763
 
5764
+ def dropSubscriptionById(self, req):
5765
+ """
5766
+ Close subscription by session
5767
+
5768
+ Parameters:
5769
+ - req
5770
+
5771
+ """
5772
+ self.send_dropSubscriptionById(req)
5773
+ return self.recv_dropSubscriptionById()
5774
+
5775
+ def send_dropSubscriptionById(self, req):
5776
+ self._oprot.writeMessageBegin('dropSubscriptionById', TMessageType.CALL, self._seqid)
5777
+ args = dropSubscriptionById_args()
5778
+ args.req = req
5779
+ args.write(self._oprot)
5780
+ self._oprot.writeMessageEnd()
5781
+ self._oprot.trans.flush()
5782
+
5783
+ def recv_dropSubscriptionById(self):
5784
+ iprot = self._iprot
5785
+ (fname, mtype, rseqid) = iprot.readMessageBegin()
5786
+ if mtype == TMessageType.EXCEPTION:
5787
+ x = TApplicationException()
5788
+ x.read(iprot)
5789
+ iprot.readMessageEnd()
5790
+ raise x
5791
+ result = dropSubscriptionById_result()
5792
+ result.read(iprot)
5793
+ iprot.readMessageEnd()
5794
+ if result.success is not None:
5795
+ return result.success
5796
+ raise TApplicationException(TApplicationException.MISSING_RESULT, "dropSubscriptionById failed: unknown result")
5797
+
5661
5798
  def showSubscription(self, req):
5662
5799
  """
5663
5800
  Show Subscription on topic name, if name is empty, show all subscriptions
@@ -6358,6 +6495,42 @@ class Client(Iface):
6358
6495
  return result.success
6359
6496
  raise TApplicationException(TApplicationException.MISSING_RESULT, "getThrottleQuota failed: unknown result")
6360
6497
 
6498
+ def pushHeartbeat(self, dataNodeId, resp):
6499
+ """
6500
+ Push heartbeat in shutdown
6501
+
6502
+ Parameters:
6503
+ - dataNodeId
6504
+ - resp
6505
+
6506
+ """
6507
+ self.send_pushHeartbeat(dataNodeId, resp)
6508
+ return self.recv_pushHeartbeat()
6509
+
6510
+ def send_pushHeartbeat(self, dataNodeId, resp):
6511
+ self._oprot.writeMessageBegin('pushHeartbeat', TMessageType.CALL, self._seqid)
6512
+ args = pushHeartbeat_args()
6513
+ args.dataNodeId = dataNodeId
6514
+ args.resp = resp
6515
+ args.write(self._oprot)
6516
+ self._oprot.writeMessageEnd()
6517
+ self._oprot.trans.flush()
6518
+
6519
+ def recv_pushHeartbeat(self):
6520
+ iprot = self._iprot
6521
+ (fname, mtype, rseqid) = iprot.readMessageBegin()
6522
+ if mtype == TMessageType.EXCEPTION:
6523
+ x = TApplicationException()
6524
+ x.read(iprot)
6525
+ iprot.readMessageEnd()
6526
+ raise x
6527
+ result = pushHeartbeat_result()
6528
+ result.read(iprot)
6529
+ iprot.readMessageEnd()
6530
+ if result.success is not None:
6531
+ return result.success
6532
+ raise TApplicationException(TApplicationException.MISSING_RESULT, "pushHeartbeat failed: unknown result")
6533
+
6361
6534
  def createTable(self, tableInfo):
6362
6535
  """
6363
6536
  Parameters:
@@ -6608,6 +6781,38 @@ class Client(Iface):
6608
6781
  return result.success
6609
6782
  raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteDevice failed: unknown result")
6610
6783
 
6784
+ def createTableView(self, req):
6785
+ """
6786
+ Parameters:
6787
+ - req
6788
+
6789
+ """
6790
+ self.send_createTableView(req)
6791
+ return self.recv_createTableView()
6792
+
6793
+ def send_createTableView(self, req):
6794
+ self._oprot.writeMessageBegin('createTableView', TMessageType.CALL, self._seqid)
6795
+ args = createTableView_args()
6796
+ args.req = req
6797
+ args.write(self._oprot)
6798
+ self._oprot.writeMessageEnd()
6799
+ self._oprot.trans.flush()
6800
+
6801
+ def recv_createTableView(self):
6802
+ iprot = self._iprot
6803
+ (fname, mtype, rseqid) = iprot.readMessageBegin()
6804
+ if mtype == TMessageType.EXCEPTION:
6805
+ x = TApplicationException()
6806
+ x.read(iprot)
6807
+ iprot.readMessageEnd()
6808
+ raise x
6809
+ result = createTableView_result()
6810
+ result.read(iprot)
6811
+ iprot.readMessageEnd()
6812
+ if result.success is not None:
6813
+ return result.success
6814
+ raise TApplicationException(TApplicationException.MISSING_RESULT, "createTableView failed: unknown result")
6815
+
6611
6816
 
6612
6817
  class Processor(Iface, TProcessor):
6613
6818
  def __init__(self, handler):
@@ -6695,7 +6900,9 @@ class Processor(Iface, TProcessor):
6695
6900
  self._processMap["showCluster"] = Processor.process_showCluster
6696
6901
  self._processMap["showVariables"] = Processor.process_showVariables
6697
6902
  self._processMap["showDataNodes"] = Processor.process_showDataNodes
6903
+ self._processMap["showDataNodes4InformationSchema"] = Processor.process_showDataNodes4InformationSchema
6698
6904
  self._processMap["showConfigNodes"] = Processor.process_showConfigNodes
6905
+ self._processMap["showConfigNodes4InformationSchema"] = Processor.process_showConfigNodes4InformationSchema
6699
6906
  self._processMap["showDatabase"] = Processor.process_showDatabase
6700
6907
  self._processMap["submitTestConnectionTask"] = Processor.process_submitTestConnectionTask
6701
6908
  self._processMap["submitTestConnectionTaskToLeader"] = Processor.process_submitTestConnectionTaskToLeader
@@ -6735,6 +6942,7 @@ class Processor(Iface, TProcessor):
6735
6942
  self._processMap["closeConsumer"] = Processor.process_closeConsumer
6736
6943
  self._processMap["createSubscription"] = Processor.process_createSubscription
6737
6944
  self._processMap["dropSubscription"] = Processor.process_dropSubscription
6945
+ self._processMap["dropSubscriptionById"] = Processor.process_dropSubscriptionById
6738
6946
  self._processMap["showSubscription"] = Processor.process_showSubscription
6739
6947
  self._processMap["getAllSubscriptionInfo"] = Processor.process_getAllSubscriptionInfo
6740
6948
  self._processMap["getRegionId"] = Processor.process_getRegionId
@@ -6756,6 +6964,7 @@ class Processor(Iface, TProcessor):
6756
6964
  self._processMap["setThrottleQuota"] = Processor.process_setThrottleQuota
6757
6965
  self._processMap["showThrottleQuota"] = Processor.process_showThrottleQuota
6758
6966
  self._processMap["getThrottleQuota"] = Processor.process_getThrottleQuota
6967
+ self._processMap["pushHeartbeat"] = Processor.process_pushHeartbeat
6759
6968
  self._processMap["createTable"] = Processor.process_createTable
6760
6969
  self._processMap["alterOrDropTable"] = Processor.process_alterOrDropTable
6761
6970
  self._processMap["showTables"] = Processor.process_showTables
@@ -6764,6 +6973,7 @@ class Processor(Iface, TProcessor):
6764
6973
  self._processMap["descTables4InformationSchema"] = Processor.process_descTables4InformationSchema
6765
6974
  self._processMap["fetchTables"] = Processor.process_fetchTables
6766
6975
  self._processMap["deleteDevice"] = Processor.process_deleteDevice
6976
+ self._processMap["createTableView"] = Processor.process_createTableView
6767
6977
  self._on_message_begin = None
6768
6978
 
6769
6979
  def on_message_begin(self, func):
@@ -8672,6 +8882,29 @@ class Processor(Iface, TProcessor):
8672
8882
  oprot.writeMessageEnd()
8673
8883
  oprot.trans.flush()
8674
8884
 
8885
+ def process_showDataNodes4InformationSchema(self, seqid, iprot, oprot):
8886
+ args = showDataNodes4InformationSchema_args()
8887
+ args.read(iprot)
8888
+ iprot.readMessageEnd()
8889
+ result = showDataNodes4InformationSchema_result()
8890
+ try:
8891
+ result.success = self._handler.showDataNodes4InformationSchema()
8892
+ msg_type = TMessageType.REPLY
8893
+ except TTransport.TTransportException:
8894
+ raise
8895
+ except TApplicationException as ex:
8896
+ logging.exception('TApplication exception in handler')
8897
+ msg_type = TMessageType.EXCEPTION
8898
+ result = ex
8899
+ except Exception:
8900
+ logging.exception('Unexpected exception in handler')
8901
+ msg_type = TMessageType.EXCEPTION
8902
+ result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
8903
+ oprot.writeMessageBegin("showDataNodes4InformationSchema", msg_type, seqid)
8904
+ result.write(oprot)
8905
+ oprot.writeMessageEnd()
8906
+ oprot.trans.flush()
8907
+
8675
8908
  def process_showConfigNodes(self, seqid, iprot, oprot):
8676
8909
  args = showConfigNodes_args()
8677
8910
  args.read(iprot)
@@ -8695,6 +8928,29 @@ class Processor(Iface, TProcessor):
8695
8928
  oprot.writeMessageEnd()
8696
8929
  oprot.trans.flush()
8697
8930
 
8931
+ def process_showConfigNodes4InformationSchema(self, seqid, iprot, oprot):
8932
+ args = showConfigNodes4InformationSchema_args()
8933
+ args.read(iprot)
8934
+ iprot.readMessageEnd()
8935
+ result = showConfigNodes4InformationSchema_result()
8936
+ try:
8937
+ result.success = self._handler.showConfigNodes4InformationSchema()
8938
+ msg_type = TMessageType.REPLY
8939
+ except TTransport.TTransportException:
8940
+ raise
8941
+ except TApplicationException as ex:
8942
+ logging.exception('TApplication exception in handler')
8943
+ msg_type = TMessageType.EXCEPTION
8944
+ result = ex
8945
+ except Exception:
8946
+ logging.exception('Unexpected exception in handler')
8947
+ msg_type = TMessageType.EXCEPTION
8948
+ result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
8949
+ oprot.writeMessageBegin("showConfigNodes4InformationSchema", msg_type, seqid)
8950
+ result.write(oprot)
8951
+ oprot.writeMessageEnd()
8952
+ oprot.trans.flush()
8953
+
8698
8954
  def process_showDatabase(self, seqid, iprot, oprot):
8699
8955
  args = showDatabase_args()
8700
8956
  args.read(iprot)
@@ -9592,6 +9848,29 @@ class Processor(Iface, TProcessor):
9592
9848
  oprot.writeMessageEnd()
9593
9849
  oprot.trans.flush()
9594
9850
 
9851
+ def process_dropSubscriptionById(self, seqid, iprot, oprot):
9852
+ args = dropSubscriptionById_args()
9853
+ args.read(iprot)
9854
+ iprot.readMessageEnd()
9855
+ result = dropSubscriptionById_result()
9856
+ try:
9857
+ result.success = self._handler.dropSubscriptionById(args.req)
9858
+ msg_type = TMessageType.REPLY
9859
+ except TTransport.TTransportException:
9860
+ raise
9861
+ except TApplicationException as ex:
9862
+ logging.exception('TApplication exception in handler')
9863
+ msg_type = TMessageType.EXCEPTION
9864
+ result = ex
9865
+ except Exception:
9866
+ logging.exception('Unexpected exception in handler')
9867
+ msg_type = TMessageType.EXCEPTION
9868
+ result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
9869
+ oprot.writeMessageBegin("dropSubscriptionById", msg_type, seqid)
9870
+ result.write(oprot)
9871
+ oprot.writeMessageEnd()
9872
+ oprot.trans.flush()
9873
+
9595
9874
  def process_showSubscription(self, seqid, iprot, oprot):
9596
9875
  args = showSubscription_args()
9597
9876
  args.read(iprot)
@@ -10075,6 +10354,29 @@ class Processor(Iface, TProcessor):
10075
10354
  oprot.writeMessageEnd()
10076
10355
  oprot.trans.flush()
10077
10356
 
10357
+ def process_pushHeartbeat(self, seqid, iprot, oprot):
10358
+ args = pushHeartbeat_args()
10359
+ args.read(iprot)
10360
+ iprot.readMessageEnd()
10361
+ result = pushHeartbeat_result()
10362
+ try:
10363
+ result.success = self._handler.pushHeartbeat(args.dataNodeId, args.resp)
10364
+ msg_type = TMessageType.REPLY
10365
+ except TTransport.TTransportException:
10366
+ raise
10367
+ except TApplicationException as ex:
10368
+ logging.exception('TApplication exception in handler')
10369
+ msg_type = TMessageType.EXCEPTION
10370
+ result = ex
10371
+ except Exception:
10372
+ logging.exception('Unexpected exception in handler')
10373
+ msg_type = TMessageType.EXCEPTION
10374
+ result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
10375
+ oprot.writeMessageBegin("pushHeartbeat", msg_type, seqid)
10376
+ result.write(oprot)
10377
+ oprot.writeMessageEnd()
10378
+ oprot.trans.flush()
10379
+
10078
10380
  def process_createTable(self, seqid, iprot, oprot):
10079
10381
  args = createTable_args()
10080
10382
  args.read(iprot)
@@ -10259,6 +10561,29 @@ class Processor(Iface, TProcessor):
10259
10561
  oprot.writeMessageEnd()
10260
10562
  oprot.trans.flush()
10261
10563
 
10564
+ def process_createTableView(self, seqid, iprot, oprot):
10565
+ args = createTableView_args()
10566
+ args.read(iprot)
10567
+ iprot.readMessageEnd()
10568
+ result = createTableView_result()
10569
+ try:
10570
+ result.success = self._handler.createTableView(args.req)
10571
+ msg_type = TMessageType.REPLY
10572
+ except TTransport.TTransportException:
10573
+ raise
10574
+ except TApplicationException as ex:
10575
+ logging.exception('TApplication exception in handler')
10576
+ msg_type = TMessageType.EXCEPTION
10577
+ result = ex
10578
+ except Exception:
10579
+ logging.exception('Unexpected exception in handler')
10580
+ msg_type = TMessageType.EXCEPTION
10581
+ result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
10582
+ oprot.writeMessageBegin("createTableView", msg_type, seqid)
10583
+ result.write(oprot)
10584
+ oprot.writeMessageEnd()
10585
+ oprot.trans.flush()
10586
+
10262
10587
  # HELPER FUNCTIONS AND STRUCTURES
10263
10588
 
10264
10589
 
@@ -13037,17 +13362,17 @@ class getSchemaPartitionTableWithSlots_args(object):
13037
13362
  if fid == -1:
13038
13363
  if ftype == TType.MAP:
13039
13364
  self.dbSlotMap = {}
13040
- (_ktype863, _vtype864, _size862) = iprot.readMapBegin()
13041
- for _i866 in range(_size862):
13042
- _key867 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
13043
- _val868 = []
13044
- (_etype872, _size869) = iprot.readListBegin()
13045
- for _i873 in range(_size869):
13046
- _elem874 = iotdb.thrift.common.ttypes.TSeriesPartitionSlot()
13047
- _elem874.read(iprot)
13048
- _val868.append(_elem874)
13365
+ (_ktype890, _vtype891, _size889) = iprot.readMapBegin()
13366
+ for _i893 in range(_size889):
13367
+ _key894 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
13368
+ _val895 = []
13369
+ (_etype899, _size896) = iprot.readListBegin()
13370
+ for _i900 in range(_size896):
13371
+ _elem901 = iotdb.thrift.common.ttypes.TSeriesPartitionSlot()
13372
+ _elem901.read(iprot)
13373
+ _val895.append(_elem901)
13049
13374
  iprot.readListEnd()
13050
- self.dbSlotMap[_key867] = _val868
13375
+ self.dbSlotMap[_key894] = _val895
13051
13376
  iprot.readMapEnd()
13052
13377
  else:
13053
13378
  iprot.skip(ftype)
@@ -13064,11 +13389,11 @@ class getSchemaPartitionTableWithSlots_args(object):
13064
13389
  if self.dbSlotMap is not None:
13065
13390
  oprot.writeFieldBegin('dbSlotMap', TType.MAP, -1)
13066
13391
  oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.dbSlotMap))
13067
- for kiter875, viter876 in self.dbSlotMap.items():
13068
- oprot.writeString(kiter875.encode('utf-8') if sys.version_info[0] == 2 else kiter875)
13069
- oprot.writeListBegin(TType.STRUCT, len(viter876))
13070
- for iter877 in viter876:
13071
- iter877.write(oprot)
13392
+ for kiter902, viter903 in self.dbSlotMap.items():
13393
+ oprot.writeString(kiter902.encode('utf-8') if sys.version_info[0] == 2 else kiter902)
13394
+ oprot.writeListBegin(TType.STRUCT, len(viter903))
13395
+ for iter904 in viter903:
13396
+ iter904.write(oprot)
13072
13397
  oprot.writeListEnd()
13073
13398
  oprot.writeMapEnd()
13074
13399
  oprot.writeFieldEnd()
@@ -13299,17 +13624,17 @@ class getOrCreateSchemaPartitionTableWithSlots_args(object):
13299
13624
  if fid == -1:
13300
13625
  if ftype == TType.MAP:
13301
13626
  self.dbSlotMap = {}
13302
- (_ktype879, _vtype880, _size878) = iprot.readMapBegin()
13303
- for _i882 in range(_size878):
13304
- _key883 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
13305
- _val884 = []
13306
- (_etype888, _size885) = iprot.readListBegin()
13307
- for _i889 in range(_size885):
13308
- _elem890 = iotdb.thrift.common.ttypes.TSeriesPartitionSlot()
13309
- _elem890.read(iprot)
13310
- _val884.append(_elem890)
13627
+ (_ktype906, _vtype907, _size905) = iprot.readMapBegin()
13628
+ for _i909 in range(_size905):
13629
+ _key910 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
13630
+ _val911 = []
13631
+ (_etype915, _size912) = iprot.readListBegin()
13632
+ for _i916 in range(_size912):
13633
+ _elem917 = iotdb.thrift.common.ttypes.TSeriesPartitionSlot()
13634
+ _elem917.read(iprot)
13635
+ _val911.append(_elem917)
13311
13636
  iprot.readListEnd()
13312
- self.dbSlotMap[_key883] = _val884
13637
+ self.dbSlotMap[_key910] = _val911
13313
13638
  iprot.readMapEnd()
13314
13639
  else:
13315
13640
  iprot.skip(ftype)
@@ -13326,11 +13651,11 @@ class getOrCreateSchemaPartitionTableWithSlots_args(object):
13326
13651
  if self.dbSlotMap is not None:
13327
13652
  oprot.writeFieldBegin('dbSlotMap', TType.MAP, -1)
13328
13653
  oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.dbSlotMap))
13329
- for kiter891, viter892 in self.dbSlotMap.items():
13330
- oprot.writeString(kiter891.encode('utf-8') if sys.version_info[0] == 2 else kiter891)
13331
- oprot.writeListBegin(TType.STRUCT, len(viter892))
13332
- for iter893 in viter892:
13333
- iter893.write(oprot)
13654
+ for kiter918, viter919 in self.dbSlotMap.items():
13655
+ oprot.writeString(kiter918.encode('utf-8') if sys.version_info[0] == 2 else kiter918)
13656
+ oprot.writeListBegin(TType.STRUCT, len(viter919))
13657
+ for iter920 in viter919:
13658
+ iter920.write(oprot)
13334
13659
  oprot.writeListEnd()
13335
13660
  oprot.writeMapEnd()
13336
13661
  oprot.writeFieldEnd()
@@ -17989,10 +18314,10 @@ class clearCache_args(object):
17989
18314
  if fid == -1:
17990
18315
  if ftype == TType.SET:
17991
18316
  self.cacheClearOptions = set()
17992
- (_etype897, _size894) = iprot.readSetBegin()
17993
- for _i898 in range(_size894):
17994
- _elem899 = iprot.readI32()
17995
- self.cacheClearOptions.add(_elem899)
18317
+ (_etype924, _size921) = iprot.readSetBegin()
18318
+ for _i925 in range(_size921):
18319
+ _elem926 = iprot.readI32()
18320
+ self.cacheClearOptions.add(_elem926)
17996
18321
  iprot.readSetEnd()
17997
18322
  else:
17998
18323
  iprot.skip(ftype)
@@ -18009,8 +18334,8 @@ class clearCache_args(object):
18009
18334
  if self.cacheClearOptions is not None:
18010
18335
  oprot.writeFieldBegin('cacheClearOptions', TType.SET, -1)
18011
18336
  oprot.writeSetBegin(TType.I32, len(self.cacheClearOptions))
18012
- for iter900 in self.cacheClearOptions:
18013
- oprot.writeI32(iter900)
18337
+ for iter927 in self.cacheClearOptions:
18338
+ oprot.writeI32(iter927)
18014
18339
  oprot.writeSetEnd()
18015
18340
  oprot.writeFieldEnd()
18016
18341
  oprot.writeFieldStop()
@@ -20044,7 +20369,7 @@ showDataNodes_result.thrift_spec = (
20044
20369
  )
20045
20370
 
20046
20371
 
20047
- class showConfigNodes_args(object):
20372
+ class showDataNodes4InformationSchema_args(object):
20048
20373
 
20049
20374
 
20050
20375
  def read(self, iprot):
@@ -20065,7 +20390,7 @@ class showConfigNodes_args(object):
20065
20390
  if oprot._fast_encode is not None and self.thrift_spec is not None:
20066
20391
  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
20067
20392
  return
20068
- oprot.writeStructBegin('showConfigNodes_args')
20393
+ oprot.writeStructBegin('showDataNodes4InformationSchema_args')
20069
20394
  oprot.writeFieldStop()
20070
20395
  oprot.writeStructEnd()
20071
20396
 
@@ -20082,12 +20407,12 @@ class showConfigNodes_args(object):
20082
20407
 
20083
20408
  def __ne__(self, other):
20084
20409
  return not (self == other)
20085
- all_structs.append(showConfigNodes_args)
20086
- showConfigNodes_args.thrift_spec = (
20410
+ all_structs.append(showDataNodes4InformationSchema_args)
20411
+ showDataNodes4InformationSchema_args.thrift_spec = (
20087
20412
  )
20088
20413
 
20089
20414
 
20090
- class showConfigNodes_result(object):
20415
+ class showDataNodes4InformationSchema_result(object):
20091
20416
  """
20092
20417
  Attributes:
20093
20418
  - success
@@ -20109,7 +20434,7 @@ class showConfigNodes_result(object):
20109
20434
  break
20110
20435
  if fid == 0:
20111
20436
  if ftype == TType.STRUCT:
20112
- self.success = TShowConfigNodesResp()
20437
+ self.success = TShowDataNodes4InformationSchemaResp()
20113
20438
  self.success.read(iprot)
20114
20439
  else:
20115
20440
  iprot.skip(ftype)
@@ -20122,7 +20447,7 @@ class showConfigNodes_result(object):
20122
20447
  if oprot._fast_encode is not None and self.thrift_spec is not None:
20123
20448
  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
20124
20449
  return
20125
- oprot.writeStructBegin('showConfigNodes_result')
20450
+ oprot.writeStructBegin('showDataNodes4InformationSchema_result')
20126
20451
  if self.success is not None:
20127
20452
  oprot.writeFieldBegin('success', TType.STRUCT, 0)
20128
20453
  self.success.write(oprot)
@@ -20143,22 +20468,14 @@ class showConfigNodes_result(object):
20143
20468
 
20144
20469
  def __ne__(self, other):
20145
20470
  return not (self == other)
20146
- all_structs.append(showConfigNodes_result)
20147
- showConfigNodes_result.thrift_spec = (
20148
- (0, TType.STRUCT, 'success', [TShowConfigNodesResp, None], None, ), # 0
20471
+ all_structs.append(showDataNodes4InformationSchema_result)
20472
+ showDataNodes4InformationSchema_result.thrift_spec = (
20473
+ (0, TType.STRUCT, 'success', [TShowDataNodes4InformationSchemaResp, None], None, ), # 0
20149
20474
  )
20150
20475
 
20151
20476
 
20152
- class showDatabase_args(object):
20153
- """
20154
- Attributes:
20155
- - req
20156
-
20157
- """
20158
-
20477
+ class showConfigNodes_args(object):
20159
20478
 
20160
- def __init__(self, req=None,):
20161
- self.req = req
20162
20479
 
20163
20480
  def read(self, iprot):
20164
20481
  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
@@ -20169,8 +20486,226 @@ class showDatabase_args(object):
20169
20486
  (fname, ftype, fid) = iprot.readFieldBegin()
20170
20487
  if ftype == TType.STOP:
20171
20488
  break
20172
- if fid == -1:
20173
- if ftype == TType.STRUCT:
20489
+ else:
20490
+ iprot.skip(ftype)
20491
+ iprot.readFieldEnd()
20492
+ iprot.readStructEnd()
20493
+
20494
+ def write(self, oprot):
20495
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
20496
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
20497
+ return
20498
+ oprot.writeStructBegin('showConfigNodes_args')
20499
+ oprot.writeFieldStop()
20500
+ oprot.writeStructEnd()
20501
+
20502
+ def validate(self):
20503
+ return
20504
+
20505
+ def __repr__(self):
20506
+ L = ['%s=%r' % (key, value)
20507
+ for key, value in self.__dict__.items()]
20508
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20509
+
20510
+ def __eq__(self, other):
20511
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20512
+
20513
+ def __ne__(self, other):
20514
+ return not (self == other)
20515
+ all_structs.append(showConfigNodes_args)
20516
+ showConfigNodes_args.thrift_spec = (
20517
+ )
20518
+
20519
+
20520
+ class showConfigNodes_result(object):
20521
+ """
20522
+ Attributes:
20523
+ - success
20524
+
20525
+ """
20526
+
20527
+
20528
+ def __init__(self, success=None,):
20529
+ self.success = success
20530
+
20531
+ def read(self, iprot):
20532
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
20533
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
20534
+ return
20535
+ iprot.readStructBegin()
20536
+ while True:
20537
+ (fname, ftype, fid) = iprot.readFieldBegin()
20538
+ if ftype == TType.STOP:
20539
+ break
20540
+ if fid == 0:
20541
+ if ftype == TType.STRUCT:
20542
+ self.success = TShowConfigNodesResp()
20543
+ self.success.read(iprot)
20544
+ else:
20545
+ iprot.skip(ftype)
20546
+ else:
20547
+ iprot.skip(ftype)
20548
+ iprot.readFieldEnd()
20549
+ iprot.readStructEnd()
20550
+
20551
+ def write(self, oprot):
20552
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
20553
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
20554
+ return
20555
+ oprot.writeStructBegin('showConfigNodes_result')
20556
+ if self.success is not None:
20557
+ oprot.writeFieldBegin('success', TType.STRUCT, 0)
20558
+ self.success.write(oprot)
20559
+ oprot.writeFieldEnd()
20560
+ oprot.writeFieldStop()
20561
+ oprot.writeStructEnd()
20562
+
20563
+ def validate(self):
20564
+ return
20565
+
20566
+ def __repr__(self):
20567
+ L = ['%s=%r' % (key, value)
20568
+ for key, value in self.__dict__.items()]
20569
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20570
+
20571
+ def __eq__(self, other):
20572
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20573
+
20574
+ def __ne__(self, other):
20575
+ return not (self == other)
20576
+ all_structs.append(showConfigNodes_result)
20577
+ showConfigNodes_result.thrift_spec = (
20578
+ (0, TType.STRUCT, 'success', [TShowConfigNodesResp, None], None, ), # 0
20579
+ )
20580
+
20581
+
20582
+ class showConfigNodes4InformationSchema_args(object):
20583
+
20584
+
20585
+ def read(self, iprot):
20586
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
20587
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
20588
+ return
20589
+ iprot.readStructBegin()
20590
+ while True:
20591
+ (fname, ftype, fid) = iprot.readFieldBegin()
20592
+ if ftype == TType.STOP:
20593
+ break
20594
+ else:
20595
+ iprot.skip(ftype)
20596
+ iprot.readFieldEnd()
20597
+ iprot.readStructEnd()
20598
+
20599
+ def write(self, oprot):
20600
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
20601
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
20602
+ return
20603
+ oprot.writeStructBegin('showConfigNodes4InformationSchema_args')
20604
+ oprot.writeFieldStop()
20605
+ oprot.writeStructEnd()
20606
+
20607
+ def validate(self):
20608
+ return
20609
+
20610
+ def __repr__(self):
20611
+ L = ['%s=%r' % (key, value)
20612
+ for key, value in self.__dict__.items()]
20613
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20614
+
20615
+ def __eq__(self, other):
20616
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20617
+
20618
+ def __ne__(self, other):
20619
+ return not (self == other)
20620
+ all_structs.append(showConfigNodes4InformationSchema_args)
20621
+ showConfigNodes4InformationSchema_args.thrift_spec = (
20622
+ )
20623
+
20624
+
20625
+ class showConfigNodes4InformationSchema_result(object):
20626
+ """
20627
+ Attributes:
20628
+ - success
20629
+
20630
+ """
20631
+
20632
+
20633
+ def __init__(self, success=None,):
20634
+ self.success = success
20635
+
20636
+ def read(self, iprot):
20637
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
20638
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
20639
+ return
20640
+ iprot.readStructBegin()
20641
+ while True:
20642
+ (fname, ftype, fid) = iprot.readFieldBegin()
20643
+ if ftype == TType.STOP:
20644
+ break
20645
+ if fid == 0:
20646
+ if ftype == TType.STRUCT:
20647
+ self.success = TShowConfigNodes4InformationSchemaResp()
20648
+ self.success.read(iprot)
20649
+ else:
20650
+ iprot.skip(ftype)
20651
+ else:
20652
+ iprot.skip(ftype)
20653
+ iprot.readFieldEnd()
20654
+ iprot.readStructEnd()
20655
+
20656
+ def write(self, oprot):
20657
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
20658
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
20659
+ return
20660
+ oprot.writeStructBegin('showConfigNodes4InformationSchema_result')
20661
+ if self.success is not None:
20662
+ oprot.writeFieldBegin('success', TType.STRUCT, 0)
20663
+ self.success.write(oprot)
20664
+ oprot.writeFieldEnd()
20665
+ oprot.writeFieldStop()
20666
+ oprot.writeStructEnd()
20667
+
20668
+ def validate(self):
20669
+ return
20670
+
20671
+ def __repr__(self):
20672
+ L = ['%s=%r' % (key, value)
20673
+ for key, value in self.__dict__.items()]
20674
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20675
+
20676
+ def __eq__(self, other):
20677
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20678
+
20679
+ def __ne__(self, other):
20680
+ return not (self == other)
20681
+ all_structs.append(showConfigNodes4InformationSchema_result)
20682
+ showConfigNodes4InformationSchema_result.thrift_spec = (
20683
+ (0, TType.STRUCT, 'success', [TShowConfigNodes4InformationSchemaResp, None], None, ), # 0
20684
+ )
20685
+
20686
+
20687
+ class showDatabase_args(object):
20688
+ """
20689
+ Attributes:
20690
+ - req
20691
+
20692
+ """
20693
+
20694
+
20695
+ def __init__(self, req=None,):
20696
+ self.req = req
20697
+
20698
+ def read(self, iprot):
20699
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
20700
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
20701
+ return
20702
+ iprot.readStructBegin()
20703
+ while True:
20704
+ (fname, ftype, fid) = iprot.readFieldBegin()
20705
+ if ftype == TType.STOP:
20706
+ break
20707
+ if fid == -1:
20708
+ if ftype == TType.STRUCT:
20174
20709
  self.req = TGetDatabaseReq()
20175
20710
  self.req.read(iprot)
20176
20711
  else:
@@ -24798,7 +25333,7 @@ dropSubscription_result.thrift_spec = (
24798
25333
  )
24799
25334
 
24800
25335
 
24801
- class showSubscription_args(object):
25336
+ class dropSubscriptionById_args(object):
24802
25337
  """
24803
25338
  Attributes:
24804
25339
  - req
@@ -24820,7 +25355,7 @@ class showSubscription_args(object):
24820
25355
  break
24821
25356
  if fid == -1:
24822
25357
  if ftype == TType.STRUCT:
24823
- self.req = TShowSubscriptionReq()
25358
+ self.req = TDropSubscriptionReq()
24824
25359
  self.req.read(iprot)
24825
25360
  else:
24826
25361
  iprot.skip(ftype)
@@ -24833,7 +25368,7 @@ class showSubscription_args(object):
24833
25368
  if oprot._fast_encode is not None and self.thrift_spec is not None:
24834
25369
  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
24835
25370
  return
24836
- oprot.writeStructBegin('showSubscription_args')
25371
+ oprot.writeStructBegin('dropSubscriptionById_args')
24837
25372
  if self.req is not None:
24838
25373
  oprot.writeFieldBegin('req', TType.STRUCT, -1)
24839
25374
  self.req.write(oprot)
@@ -24854,11 +25389,11 @@ class showSubscription_args(object):
24854
25389
 
24855
25390
  def __ne__(self, other):
24856
25391
  return not (self == other)
24857
- all_structs.append(showSubscription_args)
24858
- showSubscription_args.thrift_spec = ()
25392
+ all_structs.append(dropSubscriptionById_args)
25393
+ dropSubscriptionById_args.thrift_spec = ()
24859
25394
 
24860
25395
 
24861
- class showSubscription_result(object):
25396
+ class dropSubscriptionById_result(object):
24862
25397
  """
24863
25398
  Attributes:
24864
25399
  - success
@@ -24880,7 +25415,7 @@ class showSubscription_result(object):
24880
25415
  break
24881
25416
  if fid == 0:
24882
25417
  if ftype == TType.STRUCT:
24883
- self.success = TShowSubscriptionResp()
25418
+ self.success = iotdb.thrift.common.ttypes.TSStatus()
24884
25419
  self.success.read(iprot)
24885
25420
  else:
24886
25421
  iprot.skip(ftype)
@@ -24893,7 +25428,7 @@ class showSubscription_result(object):
24893
25428
  if oprot._fast_encode is not None and self.thrift_spec is not None:
24894
25429
  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
24895
25430
  return
24896
- oprot.writeStructBegin('showSubscription_result')
25431
+ oprot.writeStructBegin('dropSubscriptionById_result')
24897
25432
  if self.success is not None:
24898
25433
  oprot.writeFieldBegin('success', TType.STRUCT, 0)
24899
25434
  self.success.write(oprot)
@@ -24914,14 +25449,22 @@ class showSubscription_result(object):
24914
25449
 
24915
25450
  def __ne__(self, other):
24916
25451
  return not (self == other)
24917
- all_structs.append(showSubscription_result)
24918
- showSubscription_result.thrift_spec = (
24919
- (0, TType.STRUCT, 'success', [TShowSubscriptionResp, None], None, ), # 0
25452
+ all_structs.append(dropSubscriptionById_result)
25453
+ dropSubscriptionById_result.thrift_spec = (
25454
+ (0, TType.STRUCT, 'success', [iotdb.thrift.common.ttypes.TSStatus, None], None, ), # 0
24920
25455
  )
24921
25456
 
24922
25457
 
24923
- class getAllSubscriptionInfo_args(object):
25458
+ class showSubscription_args(object):
25459
+ """
25460
+ Attributes:
25461
+ - req
24924
25462
 
25463
+ """
25464
+
25465
+
25466
+ def __init__(self, req=None,):
25467
+ self.req = req
24925
25468
 
24926
25469
  def read(self, iprot):
24927
25470
  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
@@ -24932,6 +25475,12 @@ class getAllSubscriptionInfo_args(object):
24932
25475
  (fname, ftype, fid) = iprot.readFieldBegin()
24933
25476
  if ftype == TType.STOP:
24934
25477
  break
25478
+ if fid == -1:
25479
+ if ftype == TType.STRUCT:
25480
+ self.req = TShowSubscriptionReq()
25481
+ self.req.read(iprot)
25482
+ else:
25483
+ iprot.skip(ftype)
24935
25484
  else:
24936
25485
  iprot.skip(ftype)
24937
25486
  iprot.readFieldEnd()
@@ -24941,7 +25490,11 @@ class getAllSubscriptionInfo_args(object):
24941
25490
  if oprot._fast_encode is not None and self.thrift_spec is not None:
24942
25491
  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
24943
25492
  return
24944
- oprot.writeStructBegin('getAllSubscriptionInfo_args')
25493
+ oprot.writeStructBegin('showSubscription_args')
25494
+ if self.req is not None:
25495
+ oprot.writeFieldBegin('req', TType.STRUCT, -1)
25496
+ self.req.write(oprot)
25497
+ oprot.writeFieldEnd()
24945
25498
  oprot.writeFieldStop()
24946
25499
  oprot.writeStructEnd()
24947
25500
 
@@ -24958,12 +25511,11 @@ class getAllSubscriptionInfo_args(object):
24958
25511
 
24959
25512
  def __ne__(self, other):
24960
25513
  return not (self == other)
24961
- all_structs.append(getAllSubscriptionInfo_args)
24962
- getAllSubscriptionInfo_args.thrift_spec = (
24963
- )
25514
+ all_structs.append(showSubscription_args)
25515
+ showSubscription_args.thrift_spec = ()
24964
25516
 
24965
25517
 
24966
- class getAllSubscriptionInfo_result(object):
25518
+ class showSubscription_result(object):
24967
25519
  """
24968
25520
  Attributes:
24969
25521
  - success
@@ -24985,7 +25537,7 @@ class getAllSubscriptionInfo_result(object):
24985
25537
  break
24986
25538
  if fid == 0:
24987
25539
  if ftype == TType.STRUCT:
24988
- self.success = TGetAllSubscriptionInfoResp()
25540
+ self.success = TShowSubscriptionResp()
24989
25541
  self.success.read(iprot)
24990
25542
  else:
24991
25543
  iprot.skip(ftype)
@@ -24998,7 +25550,112 @@ class getAllSubscriptionInfo_result(object):
24998
25550
  if oprot._fast_encode is not None and self.thrift_spec is not None:
24999
25551
  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
25000
25552
  return
25001
- oprot.writeStructBegin('getAllSubscriptionInfo_result')
25553
+ oprot.writeStructBegin('showSubscription_result')
25554
+ if self.success is not None:
25555
+ oprot.writeFieldBegin('success', TType.STRUCT, 0)
25556
+ self.success.write(oprot)
25557
+ oprot.writeFieldEnd()
25558
+ oprot.writeFieldStop()
25559
+ oprot.writeStructEnd()
25560
+
25561
+ def validate(self):
25562
+ return
25563
+
25564
+ def __repr__(self):
25565
+ L = ['%s=%r' % (key, value)
25566
+ for key, value in self.__dict__.items()]
25567
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25568
+
25569
+ def __eq__(self, other):
25570
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25571
+
25572
+ def __ne__(self, other):
25573
+ return not (self == other)
25574
+ all_structs.append(showSubscription_result)
25575
+ showSubscription_result.thrift_spec = (
25576
+ (0, TType.STRUCT, 'success', [TShowSubscriptionResp, None], None, ), # 0
25577
+ )
25578
+
25579
+
25580
+ class getAllSubscriptionInfo_args(object):
25581
+
25582
+
25583
+ def read(self, iprot):
25584
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
25585
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
25586
+ return
25587
+ iprot.readStructBegin()
25588
+ while True:
25589
+ (fname, ftype, fid) = iprot.readFieldBegin()
25590
+ if ftype == TType.STOP:
25591
+ break
25592
+ else:
25593
+ iprot.skip(ftype)
25594
+ iprot.readFieldEnd()
25595
+ iprot.readStructEnd()
25596
+
25597
+ def write(self, oprot):
25598
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
25599
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
25600
+ return
25601
+ oprot.writeStructBegin('getAllSubscriptionInfo_args')
25602
+ oprot.writeFieldStop()
25603
+ oprot.writeStructEnd()
25604
+
25605
+ def validate(self):
25606
+ return
25607
+
25608
+ def __repr__(self):
25609
+ L = ['%s=%r' % (key, value)
25610
+ for key, value in self.__dict__.items()]
25611
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25612
+
25613
+ def __eq__(self, other):
25614
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25615
+
25616
+ def __ne__(self, other):
25617
+ return not (self == other)
25618
+ all_structs.append(getAllSubscriptionInfo_args)
25619
+ getAllSubscriptionInfo_args.thrift_spec = (
25620
+ )
25621
+
25622
+
25623
+ class getAllSubscriptionInfo_result(object):
25624
+ """
25625
+ Attributes:
25626
+ - success
25627
+
25628
+ """
25629
+
25630
+
25631
+ def __init__(self, success=None,):
25632
+ self.success = success
25633
+
25634
+ def read(self, iprot):
25635
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
25636
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
25637
+ return
25638
+ iprot.readStructBegin()
25639
+ while True:
25640
+ (fname, ftype, fid) = iprot.readFieldBegin()
25641
+ if ftype == TType.STOP:
25642
+ break
25643
+ if fid == 0:
25644
+ if ftype == TType.STRUCT:
25645
+ self.success = TGetAllSubscriptionInfoResp()
25646
+ self.success.read(iprot)
25647
+ else:
25648
+ iprot.skip(ftype)
25649
+ else:
25650
+ iprot.skip(ftype)
25651
+ iprot.readFieldEnd()
25652
+ iprot.readStructEnd()
25653
+
25654
+ def write(self, oprot):
25655
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
25656
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
25657
+ return
25658
+ oprot.writeStructBegin('getAllSubscriptionInfo_result')
25002
25659
  if self.success is not None:
25003
25660
  oprot.writeFieldBegin('success', TType.STRUCT, 0)
25004
25661
  self.success.write(oprot)
@@ -26739,10 +27396,10 @@ class showSpaceQuota_args(object):
26739
27396
  if fid == -1:
26740
27397
  if ftype == TType.LIST:
26741
27398
  self.databases = []
26742
- (_etype904, _size901) = iprot.readListBegin()
26743
- for _i905 in range(_size901):
26744
- _elem906 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
26745
- self.databases.append(_elem906)
27399
+ (_etype931, _size928) = iprot.readListBegin()
27400
+ for _i932 in range(_size928):
27401
+ _elem933 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
27402
+ self.databases.append(_elem933)
26746
27403
  iprot.readListEnd()
26747
27404
  else:
26748
27405
  iprot.skip(ftype)
@@ -26759,8 +27416,8 @@ class showSpaceQuota_args(object):
26759
27416
  if self.databases is not None:
26760
27417
  oprot.writeFieldBegin('databases', TType.LIST, -1)
26761
27418
  oprot.writeListBegin(TType.STRING, len(self.databases))
26762
- for iter907 in self.databases:
26763
- oprot.writeString(iter907.encode('utf-8') if sys.version_info[0] == 2 else iter907)
27419
+ for iter934 in self.databases:
27420
+ oprot.writeString(iter934.encode('utf-8') if sys.version_info[0] == 2 else iter934)
26764
27421
  oprot.writeListEnd()
26765
27422
  oprot.writeFieldEnd()
26766
27423
  oprot.writeFieldStop()
@@ -27299,6 +27956,139 @@ getThrottleQuota_result.thrift_spec = (
27299
27956
  )
27300
27957
 
27301
27958
 
27959
+ class pushHeartbeat_args(object):
27960
+ """
27961
+ Attributes:
27962
+ - dataNodeId
27963
+ - resp
27964
+
27965
+ """
27966
+
27967
+
27968
+ def __init__(self, dataNodeId=None, resp=None,):
27969
+ self.dataNodeId = dataNodeId
27970
+ self.resp = resp
27971
+
27972
+ def read(self, iprot):
27973
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
27974
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
27975
+ return
27976
+ iprot.readStructBegin()
27977
+ while True:
27978
+ (fname, ftype, fid) = iprot.readFieldBegin()
27979
+ if ftype == TType.STOP:
27980
+ break
27981
+ if fid == -1:
27982
+ if ftype == TType.I32:
27983
+ self.dataNodeId = iprot.readI32()
27984
+ else:
27985
+ iprot.skip(ftype)
27986
+ elif fid == -2:
27987
+ if ftype == TType.STRUCT:
27988
+ self.resp = iotdb.thrift.common.ttypes.TPipeHeartbeatResp()
27989
+ self.resp.read(iprot)
27990
+ else:
27991
+ iprot.skip(ftype)
27992
+ else:
27993
+ iprot.skip(ftype)
27994
+ iprot.readFieldEnd()
27995
+ iprot.readStructEnd()
27996
+
27997
+ def write(self, oprot):
27998
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
27999
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
28000
+ return
28001
+ oprot.writeStructBegin('pushHeartbeat_args')
28002
+ if self.resp is not None:
28003
+ oprot.writeFieldBegin('resp', TType.STRUCT, -2)
28004
+ self.resp.write(oprot)
28005
+ oprot.writeFieldEnd()
28006
+ if self.dataNodeId is not None:
28007
+ oprot.writeFieldBegin('dataNodeId', TType.I32, -1)
28008
+ oprot.writeI32(self.dataNodeId)
28009
+ oprot.writeFieldEnd()
28010
+ oprot.writeFieldStop()
28011
+ oprot.writeStructEnd()
28012
+
28013
+ def validate(self):
28014
+ return
28015
+
28016
+ def __repr__(self):
28017
+ L = ['%s=%r' % (key, value)
28018
+ for key, value in self.__dict__.items()]
28019
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28020
+
28021
+ def __eq__(self, other):
28022
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28023
+
28024
+ def __ne__(self, other):
28025
+ return not (self == other)
28026
+ all_structs.append(pushHeartbeat_args)
28027
+ pushHeartbeat_args.thrift_spec = ()
28028
+
28029
+
28030
+ class pushHeartbeat_result(object):
28031
+ """
28032
+ Attributes:
28033
+ - success
28034
+
28035
+ """
28036
+
28037
+
28038
+ def __init__(self, success=None,):
28039
+ self.success = success
28040
+
28041
+ def read(self, iprot):
28042
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
28043
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
28044
+ return
28045
+ iprot.readStructBegin()
28046
+ while True:
28047
+ (fname, ftype, fid) = iprot.readFieldBegin()
28048
+ if ftype == TType.STOP:
28049
+ break
28050
+ if fid == 0:
28051
+ if ftype == TType.STRUCT:
28052
+ self.success = iotdb.thrift.common.ttypes.TSStatus()
28053
+ self.success.read(iprot)
28054
+ else:
28055
+ iprot.skip(ftype)
28056
+ else:
28057
+ iprot.skip(ftype)
28058
+ iprot.readFieldEnd()
28059
+ iprot.readStructEnd()
28060
+
28061
+ def write(self, oprot):
28062
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
28063
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
28064
+ return
28065
+ oprot.writeStructBegin('pushHeartbeat_result')
28066
+ if self.success is not None:
28067
+ oprot.writeFieldBegin('success', TType.STRUCT, 0)
28068
+ self.success.write(oprot)
28069
+ oprot.writeFieldEnd()
28070
+ oprot.writeFieldStop()
28071
+ oprot.writeStructEnd()
28072
+
28073
+ def validate(self):
28074
+ return
28075
+
28076
+ def __repr__(self):
28077
+ L = ['%s=%r' % (key, value)
28078
+ for key, value in self.__dict__.items()]
28079
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28080
+
28081
+ def __eq__(self, other):
28082
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28083
+
28084
+ def __ne__(self, other):
28085
+ return not (self == other)
28086
+ all_structs.append(pushHeartbeat_result)
28087
+ pushHeartbeat_result.thrift_spec = (
28088
+ (0, TType.STRUCT, 'success', [iotdb.thrift.common.ttypes.TSStatus, None], None, ), # 0
28089
+ )
28090
+
28091
+
27302
28092
  class createTable_args(object):
27303
28093
  """
27304
28094
  Attributes:
@@ -28050,16 +28840,16 @@ class fetchTables_args(object):
28050
28840
  if fid == -1:
28051
28841
  if ftype == TType.MAP:
28052
28842
  self.fetchTableMap = {}
28053
- (_ktype909, _vtype910, _size908) = iprot.readMapBegin()
28054
- for _i912 in range(_size908):
28055
- _key913 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
28056
- _val914 = set()
28057
- (_etype918, _size915) = iprot.readSetBegin()
28058
- for _i919 in range(_size915):
28059
- _elem920 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
28060
- _val914.add(_elem920)
28843
+ (_ktype936, _vtype937, _size935) = iprot.readMapBegin()
28844
+ for _i939 in range(_size935):
28845
+ _key940 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
28846
+ _val941 = set()
28847
+ (_etype945, _size942) = iprot.readSetBegin()
28848
+ for _i946 in range(_size942):
28849
+ _elem947 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
28850
+ _val941.add(_elem947)
28061
28851
  iprot.readSetEnd()
28062
- self.fetchTableMap[_key913] = _val914
28852
+ self.fetchTableMap[_key940] = _val941
28063
28853
  iprot.readMapEnd()
28064
28854
  else:
28065
28855
  iprot.skip(ftype)
@@ -28076,11 +28866,11 @@ class fetchTables_args(object):
28076
28866
  if self.fetchTableMap is not None:
28077
28867
  oprot.writeFieldBegin('fetchTableMap', TType.MAP, -1)
28078
28868
  oprot.writeMapBegin(TType.STRING, TType.SET, len(self.fetchTableMap))
28079
- for kiter921, viter922 in self.fetchTableMap.items():
28080
- oprot.writeString(kiter921.encode('utf-8') if sys.version_info[0] == 2 else kiter921)
28081
- oprot.writeSetBegin(TType.STRING, len(viter922))
28082
- for iter923 in viter922:
28083
- oprot.writeString(iter923.encode('utf-8') if sys.version_info[0] == 2 else iter923)
28869
+ for kiter948, viter949 in self.fetchTableMap.items():
28870
+ oprot.writeString(kiter948.encode('utf-8') if sys.version_info[0] == 2 else kiter948)
28871
+ oprot.writeSetBegin(TType.STRING, len(viter949))
28872
+ for iter950 in viter949:
28873
+ oprot.writeString(iter950.encode('utf-8') if sys.version_info[0] == 2 else iter950)
28084
28874
  oprot.writeSetEnd()
28085
28875
  oprot.writeMapEnd()
28086
28876
  oprot.writeFieldEnd()
@@ -28286,5 +29076,127 @@ all_structs.append(deleteDevice_result)
28286
29076
  deleteDevice_result.thrift_spec = (
28287
29077
  (0, TType.STRUCT, 'success', [TDeleteTableDeviceResp, None], None, ), # 0
28288
29078
  )
29079
+
29080
+
29081
+ class createTableView_args(object):
29082
+ """
29083
+ Attributes:
29084
+ - req
29085
+
29086
+ """
29087
+
29088
+
29089
+ def __init__(self, req=None,):
29090
+ self.req = req
29091
+
29092
+ def read(self, iprot):
29093
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
29094
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
29095
+ return
29096
+ iprot.readStructBegin()
29097
+ while True:
29098
+ (fname, ftype, fid) = iprot.readFieldBegin()
29099
+ if ftype == TType.STOP:
29100
+ break
29101
+ if fid == -1:
29102
+ if ftype == TType.STRUCT:
29103
+ self.req = TCreateTableViewReq()
29104
+ self.req.read(iprot)
29105
+ else:
29106
+ iprot.skip(ftype)
29107
+ else:
29108
+ iprot.skip(ftype)
29109
+ iprot.readFieldEnd()
29110
+ iprot.readStructEnd()
29111
+
29112
+ def write(self, oprot):
29113
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
29114
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
29115
+ return
29116
+ oprot.writeStructBegin('createTableView_args')
29117
+ if self.req is not None:
29118
+ oprot.writeFieldBegin('req', TType.STRUCT, -1)
29119
+ self.req.write(oprot)
29120
+ oprot.writeFieldEnd()
29121
+ oprot.writeFieldStop()
29122
+ oprot.writeStructEnd()
29123
+
29124
+ def validate(self):
29125
+ return
29126
+
29127
+ def __repr__(self):
29128
+ L = ['%s=%r' % (key, value)
29129
+ for key, value in self.__dict__.items()]
29130
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29131
+
29132
+ def __eq__(self, other):
29133
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29134
+
29135
+ def __ne__(self, other):
29136
+ return not (self == other)
29137
+ all_structs.append(createTableView_args)
29138
+ createTableView_args.thrift_spec = ()
29139
+
29140
+
29141
+ class createTableView_result(object):
29142
+ """
29143
+ Attributes:
29144
+ - success
29145
+
29146
+ """
29147
+
29148
+
29149
+ def __init__(self, success=None,):
29150
+ self.success = success
29151
+
29152
+ def read(self, iprot):
29153
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
29154
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
29155
+ return
29156
+ iprot.readStructBegin()
29157
+ while True:
29158
+ (fname, ftype, fid) = iprot.readFieldBegin()
29159
+ if ftype == TType.STOP:
29160
+ break
29161
+ if fid == 0:
29162
+ if ftype == TType.STRUCT:
29163
+ self.success = iotdb.thrift.common.ttypes.TSStatus()
29164
+ self.success.read(iprot)
29165
+ else:
29166
+ iprot.skip(ftype)
29167
+ else:
29168
+ iprot.skip(ftype)
29169
+ iprot.readFieldEnd()
29170
+ iprot.readStructEnd()
29171
+
29172
+ def write(self, oprot):
29173
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
29174
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
29175
+ return
29176
+ oprot.writeStructBegin('createTableView_result')
29177
+ if self.success is not None:
29178
+ oprot.writeFieldBegin('success', TType.STRUCT, 0)
29179
+ self.success.write(oprot)
29180
+ oprot.writeFieldEnd()
29181
+ oprot.writeFieldStop()
29182
+ oprot.writeStructEnd()
29183
+
29184
+ def validate(self):
29185
+ return
29186
+
29187
+ def __repr__(self):
29188
+ L = ['%s=%r' % (key, value)
29189
+ for key, value in self.__dict__.items()]
29190
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29191
+
29192
+ def __eq__(self, other):
29193
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29194
+
29195
+ def __ne__(self, other):
29196
+ return not (self == other)
29197
+ all_structs.append(createTableView_result)
29198
+ createTableView_result.thrift_spec = (
29199
+ (0, TType.STRUCT, 'success', [iotdb.thrift.common.ttypes.TSStatus, None], None, ), # 0
29200
+ )
28289
29201
  fix_spec(all_structs)
28290
29202
  del all_structs