apache-iotdb 2.0.6__tar.gz → 2.0.10__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/PKG-INFO +3 -1
  2. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/README.md +2 -0
  3. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/apache_iotdb.egg-info/PKG-INFO +3 -1
  4. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/apache_iotdb.egg-info/SOURCES.txt +0 -4
  5. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/Session.py +7 -1
  6. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/thrift/common/ttypes.py +311 -1
  7. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/thrift/confignode/IConfigNodeRPCService.py +1244 -294
  8. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/thrift/confignode/ttypes.py +1690 -1496
  9. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/thrift/datanode/IDataNodeRPCService.py +1798 -178
  10. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/thrift/datanode/MPPDataExchangeService.py +10 -0
  11. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/thrift/datanode/ttypes.py +1358 -396
  12. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/thrift/rpc/IClientRPCService.py +578 -200
  13. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/thrift/rpc/ttypes.py +390 -219
  14. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/tsfile/utils/tsblock_serde.py +2 -3
  15. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/utils/SessionDataSet.py +19 -0
  16. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/utils/iotdb_rpc_dataset.py +68 -0
  17. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/utils/rpc_utils.py +53 -3
  18. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/pyproject.toml +1 -1
  19. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/tests/integration/sqlalchemy/test_dialect.py +1 -1
  20. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/tests/integration/test_dataframe.py +50 -0
  21. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/tests/integration/test_todf.py +1 -1
  22. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/tests/integration/test_treemodel_insert.py +1 -2
  23. apache_iotdb-2.0.6/iotdb/thrift/ainode/IAINodeRPCService.py +0 -803
  24. apache_iotdb-2.0.6/iotdb/thrift/ainode/__init__.py +0 -1
  25. apache_iotdb-2.0.6/iotdb/thrift/ainode/ttypes.py +0 -916
  26. apache_iotdb-2.0.6/iotdb/thrift/rpc/constants.py +0 -14
  27. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/apache_iotdb.egg-info/dependency_links.txt +0 -0
  28. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/apache_iotdb.egg-info/entry_points.txt +0 -0
  29. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/apache_iotdb.egg-info/requires.txt +0 -0
  30. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/apache_iotdb.egg-info/top_level.txt +0 -0
  31. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/SessionPool.py +0 -0
  32. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/__init__.py +0 -0
  33. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/dbapi/Connection.py +0 -0
  34. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/dbapi/Cursor.py +0 -0
  35. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/dbapi/Exceptions.py +0 -0
  36. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/dbapi/__init__.py +0 -0
  37. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/sqlalchemy/IoTDBDialect.py +0 -0
  38. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/sqlalchemy/IoTDBIdentifierPreparer.py +0 -0
  39. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/sqlalchemy/IoTDBSQLCompiler.py +0 -0
  40. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/sqlalchemy/IoTDBTypeCompiler.py +0 -0
  41. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/sqlalchemy/__init__.py +0 -0
  42. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/table_session.py +0 -0
  43. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/table_session_pool.py +0 -0
  44. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/template/MeasurementNode.py +0 -0
  45. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/template/Template.py +0 -0
  46. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/template/TemplateNode.py +0 -0
  47. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/template/TemplateQueryType.py +0 -0
  48. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/template/__init__.py +0 -0
  49. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/thrift/__init__.py +0 -0
  50. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/thrift/common/__init__.py +0 -0
  51. {apache_iotdb-2.0.6/iotdb/thrift/ainode → apache_iotdb-2.0.10/iotdb/thrift/common}/constants.py +0 -0
  52. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/thrift/confignode/__init__.py +0 -0
  53. {apache_iotdb-2.0.6/iotdb/thrift/common → apache_iotdb-2.0.10/iotdb/thrift/confignode}/constants.py +0 -0
  54. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/thrift/datanode/__init__.py +0 -0
  55. {apache_iotdb-2.0.6/iotdb/thrift/confignode → apache_iotdb-2.0.10/iotdb/thrift/datanode}/constants.py +0 -0
  56. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/thrift/rpc/__init__.py +0 -0
  57. {apache_iotdb-2.0.6/iotdb/thrift/datanode → apache_iotdb-2.0.10/iotdb/thrift/rpc}/constants.py +0 -0
  58. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/tsfile/__init__.py +0 -0
  59. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/tsfile/common/__init__.py +0 -0
  60. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/tsfile/common/constant/__init__.py +0 -0
  61. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/tsfile/common/constant/tsfile_constant.py +0 -0
  62. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/tsfile/utils/__init__.py +0 -0
  63. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/tsfile/utils/date_utils.py +0 -0
  64. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/tsfile/utils/pair.py +0 -0
  65. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/tsfile/utils/read_write_io_utils.py +0 -0
  66. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/utils/BitMap.py +0 -0
  67. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/utils/Field.py +0 -0
  68. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/utils/IoTDBConstants.py +0 -0
  69. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/utils/NumpyTablet.py +0 -0
  70. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/utils/RowRecord.py +0 -0
  71. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/utils/Tablet.py +0 -0
  72. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/utils/__init__.py +0 -0
  73. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/iotdb/utils/exception.py +0 -0
  74. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/setup.cfg +0 -0
  75. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/tests/__init__.py +0 -0
  76. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/tests/integration/__init__.py +0 -0
  77. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/tests/integration/dbapi/__init__.py +0 -0
  78. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/tests/integration/dbapi/test_connection.py +0 -0
  79. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/tests/integration/dbapi/test_cursor.py +0 -0
  80. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/tests/integration/iotdb_container.py +0 -0
  81. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/tests/integration/sqlalchemy/__init__.py +0 -0
  82. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/tests/integration/tablet_performance_comparison.py +0 -0
  83. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/tests/integration/test_aligned_timeseries.py +0 -0
  84. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/tests/integration/test_delete_data.py +0 -0
  85. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/tests/integration/test_new_data_types.py +0 -0
  86. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/tests/integration/test_one_device.py +0 -0
  87. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/tests/integration/test_relational_session.py +0 -0
  88. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/tests/integration/test_session.py +0 -0
  89. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/tests/integration/test_session_pool.py +0 -0
  90. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/tests/integration/test_tablemodel_insert.py +0 -0
  91. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/tests/integration/test_tablemodel_query.py +0 -0
  92. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/tests/integration/test_tablet.py +0 -0
  93. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/tests/unit/__init__.py +0 -0
  94. {apache_iotdb-2.0.6 → apache_iotdb-2.0.10}/tests/unit/test_numpy_tablet.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apache-iotdb
3
- Version: 2.0.6
3
+ Version: 2.0.10
4
4
  Summary: Apache IoTDB client API
5
5
  Author-email: Apache IoTDB <dev@iotdb.apache.org>
6
6
  License-Expression: Apache-2.0
@@ -628,3 +628,5 @@ Namely, these are
628
628
  * Release to pypi
629
629
 
630
630
 
631
+
632
+
@@ -606,3 +606,5 @@ Namely, these are
606
606
  * Release to pypi
607
607
 
608
608
 
609
+
610
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apache-iotdb
3
- Version: 2.0.6
3
+ Version: 2.0.10
4
4
  Summary: Apache IoTDB client API
5
5
  Author-email: Apache IoTDB <dev@iotdb.apache.org>
6
6
  License-Expression: Apache-2.0
@@ -628,3 +628,5 @@ Namely, these are
628
628
  * Release to pypi
629
629
 
630
630
 
631
+
632
+
@@ -26,10 +26,6 @@ iotdb/template/TemplateNode.py
26
26
  iotdb/template/TemplateQueryType.py
27
27
  iotdb/template/__init__.py
28
28
  iotdb/thrift/__init__.py
29
- iotdb/thrift/ainode/IAINodeRPCService.py
30
- iotdb/thrift/ainode/__init__.py
31
- iotdb/thrift/ainode/constants.py
32
- iotdb/thrift/ainode/ttypes.py
33
29
  iotdb/thrift/common/__init__.py
34
30
  iotdb/thrift/common/constants.py
35
31
  iotdb/thrift/common/ttypes.py
@@ -95,7 +95,13 @@ class Session(object):
95
95
  self.__default_endpoint = TEndPoint(self.__host, self.__port)
96
96
  self.__user = user
97
97
  self.__password = password
98
- self.__fetch_size = fetch_size
98
+ if fetch_size > 0:
99
+ self.__fetch_size = fetch_size
100
+ else:
101
+ logger.warning(
102
+ f"fetch_size {fetch_size} is illegal, use default fetch_size {self.DEFAULT_FETCH_SIZE}"
103
+ )
104
+ self.__fetch_size = self.DEFAULT_FETCH_SIZE
99
105
  self.__is_close = True
100
106
  self.__client = None
101
107
  self.__default_connection = None
@@ -163,6 +163,7 @@ class TAggregationType(object):
163
163
  COUNT_ALL = 29
164
164
  APPROX_COUNT_DISTINCT = 30
165
165
  APPROX_MOST_FREQUENT = 31
166
+ APPROX_PERCENTILE = 32
166
167
 
167
168
  _VALUES_TO_NAMES = {
168
169
  0: "COUNT",
@@ -197,6 +198,7 @@ class TAggregationType(object):
197
198
  29: "COUNT_ALL",
198
199
  30: "APPROX_COUNT_DISTINCT",
199
200
  31: "APPROX_MOST_FREQUENT",
201
+ 32: "APPROX_PERCENTILE",
200
202
  }
201
203
 
202
204
  _NAMES_TO_VALUES = {
@@ -232,6 +234,7 @@ class TAggregationType(object):
232
234
  "COUNT_ALL": 29,
233
235
  "APPROX_COUNT_DISTINCT": 30,
234
236
  "APPROX_MOST_FREQUENT": 31,
237
+ "APPROX_PERCENTILE": 32,
235
238
  }
236
239
 
237
240
 
@@ -375,16 +378,18 @@ class TSStatus(object):
375
378
  - subStatus
376
379
  - redirectNode
377
380
  - needRetry
381
+ - responseData
378
382
 
379
383
  """
380
384
 
381
385
 
382
- def __init__(self, code=None, message=None, subStatus=None, redirectNode=None, needRetry=None,):
386
+ def __init__(self, code=None, message=None, subStatus=None, redirectNode=None, needRetry=None, responseData=None,):
383
387
  self.code = code
384
388
  self.message = message
385
389
  self.subStatus = subStatus
386
390
  self.redirectNode = redirectNode
387
391
  self.needRetry = needRetry
392
+ self.responseData = responseData
388
393
 
389
394
  def read(self, iprot):
390
395
  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
@@ -427,6 +432,11 @@ class TSStatus(object):
427
432
  self.needRetry = iprot.readBool()
428
433
  else:
429
434
  iprot.skip(ftype)
435
+ elif fid == 6:
436
+ if ftype == TType.STRING:
437
+ self.responseData = iprot.readBinary()
438
+ else:
439
+ iprot.skip(ftype)
430
440
  else:
431
441
  iprot.skip(ftype)
432
442
  iprot.readFieldEnd()
@@ -460,6 +470,10 @@ class TSStatus(object):
460
470
  oprot.writeFieldBegin('needRetry', TType.BOOL, 5)
461
471
  oprot.writeBool(self.needRetry)
462
472
  oprot.writeFieldEnd()
473
+ if self.responseData is not None:
474
+ oprot.writeFieldBegin('responseData', TType.STRING, 6)
475
+ oprot.writeBinary(self.responseData)
476
+ oprot.writeFieldEnd()
463
477
  oprot.writeFieldStop()
464
478
  oprot.writeStructEnd()
465
479
 
@@ -3080,6 +3094,199 @@ class TNodeLocations(object):
3080
3094
  return not (self == other)
3081
3095
 
3082
3096
 
3097
+ class TExternalServiceListResp(object):
3098
+ """
3099
+ Attributes:
3100
+ - status
3101
+ - externalServiceInfos
3102
+
3103
+ """
3104
+
3105
+
3106
+ def __init__(self, status=None, externalServiceInfos=None,):
3107
+ self.status = status
3108
+ self.externalServiceInfos = externalServiceInfos
3109
+
3110
+ def read(self, iprot):
3111
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3112
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3113
+ return
3114
+ iprot.readStructBegin()
3115
+ while True:
3116
+ (fname, ftype, fid) = iprot.readFieldBegin()
3117
+ if ftype == TType.STOP:
3118
+ break
3119
+ if fid == 1:
3120
+ if ftype == TType.STRUCT:
3121
+ self.status = TSStatus()
3122
+ self.status.read(iprot)
3123
+ else:
3124
+ iprot.skip(ftype)
3125
+ elif fid == 2:
3126
+ if ftype == TType.LIST:
3127
+ self.externalServiceInfos = []
3128
+ (_etype133, _size130) = iprot.readListBegin()
3129
+ for _i134 in range(_size130):
3130
+ _elem135 = TExternalServiceEntry()
3131
+ _elem135.read(iprot)
3132
+ self.externalServiceInfos.append(_elem135)
3133
+ iprot.readListEnd()
3134
+ else:
3135
+ iprot.skip(ftype)
3136
+ else:
3137
+ iprot.skip(ftype)
3138
+ iprot.readFieldEnd()
3139
+ iprot.readStructEnd()
3140
+
3141
+ def write(self, oprot):
3142
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
3143
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3144
+ return
3145
+ oprot.writeStructBegin('TExternalServiceListResp')
3146
+ if self.status is not None:
3147
+ oprot.writeFieldBegin('status', TType.STRUCT, 1)
3148
+ self.status.write(oprot)
3149
+ oprot.writeFieldEnd()
3150
+ if self.externalServiceInfos is not None:
3151
+ oprot.writeFieldBegin('externalServiceInfos', TType.LIST, 2)
3152
+ oprot.writeListBegin(TType.STRUCT, len(self.externalServiceInfos))
3153
+ for iter136 in self.externalServiceInfos:
3154
+ iter136.write(oprot)
3155
+ oprot.writeListEnd()
3156
+ oprot.writeFieldEnd()
3157
+ oprot.writeFieldStop()
3158
+ oprot.writeStructEnd()
3159
+
3160
+ def validate(self):
3161
+ if self.status is None:
3162
+ raise TProtocolException(message='Required field status is unset!')
3163
+ if self.externalServiceInfos is None:
3164
+ raise TProtocolException(message='Required field externalServiceInfos is unset!')
3165
+ return
3166
+
3167
+ def __repr__(self):
3168
+ L = ['%s=%r' % (key, value)
3169
+ for key, value in self.__dict__.items()]
3170
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3171
+
3172
+ def __eq__(self, other):
3173
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3174
+
3175
+ def __ne__(self, other):
3176
+ return not (self == other)
3177
+
3178
+
3179
+ class TExternalServiceEntry(object):
3180
+ """
3181
+ Attributes:
3182
+ - serviceName
3183
+ - className
3184
+ - state
3185
+ - dataNodeId
3186
+ - serviceType
3187
+
3188
+ """
3189
+
3190
+
3191
+ def __init__(self, serviceName=None, className=None, state=None, dataNodeId=None, serviceType=None,):
3192
+ self.serviceName = serviceName
3193
+ self.className = className
3194
+ self.state = state
3195
+ self.dataNodeId = dataNodeId
3196
+ self.serviceType = serviceType
3197
+
3198
+ def read(self, iprot):
3199
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3200
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3201
+ return
3202
+ iprot.readStructBegin()
3203
+ while True:
3204
+ (fname, ftype, fid) = iprot.readFieldBegin()
3205
+ if ftype == TType.STOP:
3206
+ break
3207
+ if fid == 1:
3208
+ if ftype == TType.STRING:
3209
+ self.serviceName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3210
+ else:
3211
+ iprot.skip(ftype)
3212
+ elif fid == 2:
3213
+ if ftype == TType.STRING:
3214
+ self.className = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3215
+ else:
3216
+ iprot.skip(ftype)
3217
+ elif fid == 3:
3218
+ if ftype == TType.BYTE:
3219
+ self.state = iprot.readByte()
3220
+ else:
3221
+ iprot.skip(ftype)
3222
+ elif fid == 4:
3223
+ if ftype == TType.I32:
3224
+ self.dataNodeId = iprot.readI32()
3225
+ else:
3226
+ iprot.skip(ftype)
3227
+ elif fid == 5:
3228
+ if ftype == TType.BYTE:
3229
+ self.serviceType = iprot.readByte()
3230
+ else:
3231
+ iprot.skip(ftype)
3232
+ else:
3233
+ iprot.skip(ftype)
3234
+ iprot.readFieldEnd()
3235
+ iprot.readStructEnd()
3236
+
3237
+ def write(self, oprot):
3238
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
3239
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3240
+ return
3241
+ oprot.writeStructBegin('TExternalServiceEntry')
3242
+ if self.serviceName is not None:
3243
+ oprot.writeFieldBegin('serviceName', TType.STRING, 1)
3244
+ oprot.writeString(self.serviceName.encode('utf-8') if sys.version_info[0] == 2 else self.serviceName)
3245
+ oprot.writeFieldEnd()
3246
+ if self.className is not None:
3247
+ oprot.writeFieldBegin('className', TType.STRING, 2)
3248
+ oprot.writeString(self.className.encode('utf-8') if sys.version_info[0] == 2 else self.className)
3249
+ oprot.writeFieldEnd()
3250
+ if self.state is not None:
3251
+ oprot.writeFieldBegin('state', TType.BYTE, 3)
3252
+ oprot.writeByte(self.state)
3253
+ oprot.writeFieldEnd()
3254
+ if self.dataNodeId is not None:
3255
+ oprot.writeFieldBegin('dataNodeId', TType.I32, 4)
3256
+ oprot.writeI32(self.dataNodeId)
3257
+ oprot.writeFieldEnd()
3258
+ if self.serviceType is not None:
3259
+ oprot.writeFieldBegin('serviceType', TType.BYTE, 5)
3260
+ oprot.writeByte(self.serviceType)
3261
+ oprot.writeFieldEnd()
3262
+ oprot.writeFieldStop()
3263
+ oprot.writeStructEnd()
3264
+
3265
+ def validate(self):
3266
+ if self.serviceName is None:
3267
+ raise TProtocolException(message='Required field serviceName is unset!')
3268
+ if self.className is None:
3269
+ raise TProtocolException(message='Required field className is unset!')
3270
+ if self.state is None:
3271
+ raise TProtocolException(message='Required field state is unset!')
3272
+ if self.dataNodeId is None:
3273
+ raise TProtocolException(message='Required field dataNodeId is unset!')
3274
+ if self.serviceType is None:
3275
+ raise TProtocolException(message='Required field serviceType is unset!')
3276
+ return
3277
+
3278
+ def __repr__(self):
3279
+ L = ['%s=%r' % (key, value)
3280
+ for key, value in self.__dict__.items()]
3281
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3282
+
3283
+ def __eq__(self, other):
3284
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3285
+
3286
+ def __ne__(self, other):
3287
+ return not (self == other)
3288
+
3289
+
3083
3290
  class TShowConfigurationTemplateResp(object):
3084
3291
  """
3085
3292
  Attributes:
@@ -3224,6 +3431,87 @@ class TShowConfigurationResp(object):
3224
3431
 
3225
3432
  def __ne__(self, other):
3226
3433
  return not (self == other)
3434
+
3435
+
3436
+ class TShowAppliedConfigurationsResp(object):
3437
+ """
3438
+ Attributes:
3439
+ - status
3440
+ - data
3441
+
3442
+ """
3443
+
3444
+
3445
+ def __init__(self, status=None, data=None,):
3446
+ self.status = status
3447
+ self.data = data
3448
+
3449
+ def read(self, iprot):
3450
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3451
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3452
+ return
3453
+ iprot.readStructBegin()
3454
+ while True:
3455
+ (fname, ftype, fid) = iprot.readFieldBegin()
3456
+ if ftype == TType.STOP:
3457
+ break
3458
+ if fid == 1:
3459
+ if ftype == TType.STRUCT:
3460
+ self.status = TSStatus()
3461
+ self.status.read(iprot)
3462
+ else:
3463
+ iprot.skip(ftype)
3464
+ elif fid == 2:
3465
+ if ftype == TType.MAP:
3466
+ self.data = {}
3467
+ (_ktype138, _vtype139, _size137) = iprot.readMapBegin()
3468
+ for _i141 in range(_size137):
3469
+ _key142 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3470
+ _val143 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
3471
+ self.data[_key142] = _val143
3472
+ iprot.readMapEnd()
3473
+ else:
3474
+ iprot.skip(ftype)
3475
+ else:
3476
+ iprot.skip(ftype)
3477
+ iprot.readFieldEnd()
3478
+ iprot.readStructEnd()
3479
+
3480
+ def write(self, oprot):
3481
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
3482
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3483
+ return
3484
+ oprot.writeStructBegin('TShowAppliedConfigurationsResp')
3485
+ if self.status is not None:
3486
+ oprot.writeFieldBegin('status', TType.STRUCT, 1)
3487
+ self.status.write(oprot)
3488
+ oprot.writeFieldEnd()
3489
+ if self.data is not None:
3490
+ oprot.writeFieldBegin('data', TType.MAP, 2)
3491
+ oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.data))
3492
+ for kiter144, viter145 in self.data.items():
3493
+ oprot.writeString(kiter144.encode('utf-8') if sys.version_info[0] == 2 else kiter144)
3494
+ oprot.writeString(viter145.encode('utf-8') if sys.version_info[0] == 2 else viter145)
3495
+ oprot.writeMapEnd()
3496
+ oprot.writeFieldEnd()
3497
+ oprot.writeFieldStop()
3498
+ oprot.writeStructEnd()
3499
+
3500
+ def validate(self):
3501
+ if self.status is None:
3502
+ raise TProtocolException(message='Required field status is unset!')
3503
+ return
3504
+
3505
+ def __repr__(self):
3506
+ L = ['%s=%r' % (key, value)
3507
+ for key, value in self.__dict__.items()]
3508
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3509
+
3510
+ def __eq__(self, other):
3511
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3512
+
3513
+ def __ne__(self, other):
3514
+ return not (self == other)
3227
3515
  all_structs.append(TEndPoint)
3228
3516
  TEndPoint.thrift_spec = (
3229
3517
  None, # 0
@@ -3238,6 +3526,7 @@ TSStatus.thrift_spec = (
3238
3526
  (3, TType.LIST, 'subStatus', (TType.STRUCT, [TSStatus, None], False), None, ), # 3
3239
3527
  (4, TType.STRUCT, 'redirectNode', [TEndPoint, None], None, ), # 4
3240
3528
  (5, TType.BOOL, 'needRetry', None, None, ), # 5
3529
+ (6, TType.STRING, 'responseData', 'BINARY', None, ), # 6
3241
3530
  )
3242
3531
  all_structs.append(TConsensusGroupId)
3243
3532
  TConsensusGroupId.thrift_spec = (
@@ -3444,6 +3733,21 @@ TNodeLocations.thrift_spec = (
3444
3733
  (1, TType.LIST, 'configNodeLocations', (TType.STRUCT, [TConfigNodeLocation, None], False), None, ), # 1
3445
3734
  (2, TType.LIST, 'dataNodeLocations', (TType.STRUCT, [TDataNodeLocation, None], False), None, ), # 2
3446
3735
  )
3736
+ all_structs.append(TExternalServiceListResp)
3737
+ TExternalServiceListResp.thrift_spec = (
3738
+ None, # 0
3739
+ (1, TType.STRUCT, 'status', [TSStatus, None], None, ), # 1
3740
+ (2, TType.LIST, 'externalServiceInfos', (TType.STRUCT, [TExternalServiceEntry, None], False), None, ), # 2
3741
+ )
3742
+ all_structs.append(TExternalServiceEntry)
3743
+ TExternalServiceEntry.thrift_spec = (
3744
+ None, # 0
3745
+ (1, TType.STRING, 'serviceName', 'UTF8', None, ), # 1
3746
+ (2, TType.STRING, 'className', 'UTF8', None, ), # 2
3747
+ (3, TType.BYTE, 'state', None, None, ), # 3
3748
+ (4, TType.I32, 'dataNodeId', None, None, ), # 4
3749
+ (5, TType.BYTE, 'serviceType', None, None, ), # 5
3750
+ )
3447
3751
  all_structs.append(TShowConfigurationTemplateResp)
3448
3752
  TShowConfigurationTemplateResp.thrift_spec = (
3449
3753
  None, # 0
@@ -3456,5 +3760,11 @@ TShowConfigurationResp.thrift_spec = (
3456
3760
  (1, TType.STRUCT, 'status', [TSStatus, None], None, ), # 1
3457
3761
  (2, TType.STRING, 'content', 'UTF8', None, ), # 2
3458
3762
  )
3763
+ all_structs.append(TShowAppliedConfigurationsResp)
3764
+ TShowAppliedConfigurationsResp.thrift_spec = (
3765
+ None, # 0
3766
+ (1, TType.STRUCT, 'status', [TSStatus, None], None, ), # 1
3767
+ (2, TType.MAP, 'data', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 2
3768
+ )
3459
3769
  fix_spec(all_structs)
3460
3770
  del all_structs