kaq-quant-common 0.1.94__py3-none-any.whl → 0.1.95__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.
- kaq_quant_common/resources/kaq_ddb_stream_write_resources.py +2 -2
- {kaq_quant_common-0.1.94.dist-info → kaq_quant_common-0.1.95.dist-info}/METADATA +1 -1
- {kaq_quant_common-0.1.94.dist-info → kaq_quant_common-0.1.95.dist-info}/RECORD +4 -4
- {kaq_quant_common-0.1.94.dist-info → kaq_quant_common-0.1.95.dist-info}/WHEEL +0 -0
|
@@ -199,7 +199,7 @@ class KaqQuantDdbStreamWriteSyncRepository:
|
|
|
199
199
|
|
|
200
200
|
# 方式三: 异步调用, 但属于ddb的client内部的c++多线程解析与写入,适合一条条写入
|
|
201
201
|
class KaqQuantDdbStreamMTWWriteRepository:
|
|
202
|
-
def __init__(self, host, port, user, passwd, tableName=None, batch_size=1000, throttle=50, partitionCol=''):
|
|
202
|
+
def __init__(self, host, port, user, passwd, tableName=None, batch_size=1000, throttle=50, partitionCol='', threadCount=1):
|
|
203
203
|
self.logger = get_logger(self)
|
|
204
204
|
'''
|
|
205
205
|
创建ddb连接 && 添加ddb流数据表支持
|
|
@@ -210,7 +210,7 @@ class KaqQuantDdbStreamMTWWriteRepository:
|
|
|
210
210
|
self.session.connect(host, port, user, passwd, tryReconnectNums=10, reconnect=True, keepAliveTime=1000, readTimeout=10, writeTimeout=5)
|
|
211
211
|
self.batch_writer = ddb.MultithreadedTableWriter(
|
|
212
212
|
host, port, user, passwd, tableName=tableName, dbPath='',
|
|
213
|
-
batchSize=batch_size, throttle=throttle, threadCount=
|
|
213
|
+
batchSize=batch_size, throttle=throttle, threadCount=threadCount, partitionCol=partitionCol
|
|
214
214
|
)
|
|
215
215
|
except Exception as e:
|
|
216
216
|
self.logger.error(f'KaqQuantDdbStreamMTWWriteRepository.__init__ is occured error: {str(e)} - {str(traceback.format_exc())}')
|
|
@@ -41,7 +41,7 @@ kaq_quant_common/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
|
|
|
41
41
|
kaq_quant_common/resources/kaq_ddb_pool_stream_read_resources.py,sha256=Y-rtGpBF3bNh2mPZ2Lze6D9JZnpkqh24OEh7okikh1w,2536
|
|
42
42
|
kaq_quant_common/resources/kaq_ddb_stream_init_resources.py,sha256=0MxxbajocTFzcRD344rfZQPKOwwuqCbyoT6dQpIox-o,3349
|
|
43
43
|
kaq_quant_common/resources/kaq_ddb_stream_read_resources.py,sha256=WShsXMoL8o-JZvrtAd7H2Cg-vrE47QbsdGgURaQwiZs,3165
|
|
44
|
-
kaq_quant_common/resources/kaq_ddb_stream_write_resources.py,sha256=
|
|
44
|
+
kaq_quant_common/resources/kaq_ddb_stream_write_resources.py,sha256=QHc_rKBBLnZeXsUvQLRA8SP6kVkdIb4OrJmZox4ug8w,10266
|
|
45
45
|
kaq_quant_common/resources/kaq_mysql_init_resources.py,sha256=UcqWey6LgoMqvLq1SxK33nS6-rkViGYhzUPxcrucOks,827
|
|
46
46
|
kaq_quant_common/resources/kaq_mysql_resources.py,sha256=UYBFn-o_fFaNwG6bT2E7CYdsns82EmR4ve2XgC9wFJw,13452
|
|
47
47
|
kaq_quant_common/resources/kaq_postgresql_resources.py,sha256=iG1eYkciI0xUIBdEpGqKGOLBFxvVrfbBoTuaOmhQ0v0,1762
|
|
@@ -61,6 +61,6 @@ kaq_quant_common/utils/signal_utils.py,sha256=zBSyEltNTKqkQCsrETd47kEBb3Q_OWUBUn
|
|
|
61
61
|
kaq_quant_common/utils/sqlite_utils.py,sha256=UDDFKfwL0N-jFifl40HdyOCENh2YQfW5so6hRaSJpv0,5722
|
|
62
62
|
kaq_quant_common/utils/uuid_utils.py,sha256=pm_pnXpd8n9CI66x3A20cOEUiriJyqHaKGCeLrgkBxU,71
|
|
63
63
|
kaq_quant_common/utils/yml_utils.py,sha256=gcKjb_-uuUajBGAl5QBPIZTg2wXm7qeeJvtHflj_zOE,4513
|
|
64
|
-
kaq_quant_common-0.1.
|
|
65
|
-
kaq_quant_common-0.1.
|
|
66
|
-
kaq_quant_common-0.1.
|
|
64
|
+
kaq_quant_common-0.1.95.dist-info/METADATA,sha256=EV--_SYlsdUGGk5YqLxpQTSv_CcBOhxA2QdKbnULgKI,1971
|
|
65
|
+
kaq_quant_common-0.1.95.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
66
|
+
kaq_quant_common-0.1.95.dist-info/RECORD,,
|
|
File without changes
|