dolphindb 2.0.1020 → 2.0.1022

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 (3) hide show
  1. package/docs.en.json +114 -26
  2. package/docs.zh.json +155 -39
  3. package/package.json +8 -8
package/docs.en.json CHANGED
@@ -16154,9 +16154,7 @@
16154
16154
  "",
16155
16155
  "If the result of func(X[i], Y[j]) is a scalar, the result of the ``cross`` template is a matrix.",
16156
16156
  "",
16157
- "If the result of func(X[i], Y[j]) is a vector, the result of the ``cross`` template is a tuple with m elements. Each of the element is a tuple with n elements.",
16158
- "",
16159
- "``pcross`` is the parallel computing version of template function ``cross``."
16157
+ "If the result of func(X[i], Y[j]) is a vector, the result of the ``cross`` template is a tuple with m elements. Each of the element is a tuple with n elements."
16160
16158
  ]
16161
16159
  }
16162
16160
  ]
@@ -26141,9 +26139,7 @@
26141
26139
  "",
26142
26140
  "The data type and form of the return value are determined by each calculation result. It returns a vector or matrix if all calculation results have the same data type and form, otherwise it returns a tuple.",
26143
26141
  "",
26144
- "The difference between *func(X)* and *func :E X* is that the former treats *X* as the one input variable while the later takes each element in *X* as an input variable. If *func* is a vector function, avoid using “:E“ since element-wise operations are very slow with a large number of elements.",
26145
- "",
26146
- "``peach`` is the parallel computing version of template function ``each`` . For tasks that take a long time to finish, ``peach`` can save a significant amount of time over ``each``. For light tasks, however, ``peach`` may take longer than each as the overhead of parallel function call is not trivial."
26142
+ "The difference between *func(X)* and *func :E X* is that the former treats *X* as the one input variable while the later takes each element in *X* as an input variable. If *func* is a vector function, avoid using “:E“ since element-wise operations are very slow with a large number of elements."
26147
26143
  ]
26148
26144
  }
26149
26145
  ]
@@ -28011,7 +28007,9 @@
28011
28007
  "type": "text",
28012
28008
  "value": [
28013
28009
  "- It is recommended to invoke command :doc:`/FunctionsandCommands/CommandsReferences/f/fflush` to write data in the page cache to disk before you kill a DolphinDB process and restart it.",
28014
- "- If asynchronous mode is enabled for data persistence or flush, data loss may occur due to server crash.",
28010
+ "- If asynWrite is set to true, streaming data is written at the fastest speed and data loss may occur due to server crash.",
28011
+ "- If asynWrite is set to false and flushMode to 0, data loss may occur due to operating system crash.",
28012
+ "- If asynWrite is set to false and flushMode to 1, the streaming data is written at the slowest speed, and server or operating system crash will not cause data loss.",
28015
28013
  "- It is not allowed to share a stream table multiple times by modifying the shared table name."
28016
28014
  ]
28017
28015
  }
@@ -33402,21 +33400,21 @@
33402
33400
  {
33403
33401
  "type": "text",
33404
33402
  "value": [
33405
- "+---------------+---------------------------------------------+---------------+-----------+-----------------+---------------------+-----------------+---------------------------+",
33406
- "| userName type | startTime | dbName | tableName | totalPartitions | completedPartitions | percentComplete | endTime completed |",
33407
- "+===============+=============================================+===============+===========+=================+=====================+=================+===========================+",
33408
- "| u1 | BACKUP_BY_COPY_FILE 2022.09.21T17:18:04.264 | dfs://valuedb | pt | 1 | 1 | 100 | 2022.09.21T17:18:04.269 1 |",
33409
- "+---------------+---------------------------------------------+---------------+-----------+-----------------+---------------------+-----------------+---------------------------+",
33410
- "| u1 | BACKUP 2022.09.21T17:13:04.344 | dfs://valuedb | pt | 4 | 4 | 100 | 2022.09.21T17:13:04.413 1 |",
33411
- "+---------------+---------------------------------------------+---------------+-----------+-----------------+---------------------+-----------------+---------------------------+",
33412
- "| u1 | BACKUP_BY_COPY_FILE 2022.09.21T17:18:04.264 | dfs://valuedb | pt1 | 1 | 1 | 100 | 2022.09.21T17:18:04.265 1 |",
33413
- "+---------------+---------------------------------------------+---------------+-----------+-----------------+---------------------+-----------------+---------------------------+",
33414
- "| admin | BACKUP_BY_COPY_FILE 2022.09.21T16:47:42.798 | dfs://valuedb | pt | 4 | 4 | 100 | 2022.09.21T16:47:42.859 1 |",
33415
- "+---------------+---------------------------------------------+---------------+-----------+-----------------+---------------------+-----------------+---------------------------+",
33416
- "| admin | BACKUP_BY_COPY_FILE 2022.09.21T16:37:33.725 | dfs://valuedb | pt | 4 | 4 | 100 | 2022.09.21T16:37:33.790 1 |",
33417
- "+---------------+---------------------------------------------+---------------+-----------+-----------------+---------------------+-----------------+---------------------------+",
33418
- "| admin | BACKUP 2022.09.21T15:10:05.016 | dfs://compoDB | pt2 | 10 | 10 | 100 | 2022.09.21T15:10:05.075 1 |",
33419
- "+---------------+---------------------------------------------+---------------+-----------+-----------------+---------------------+-----------------+---------------------------+"
33403
+ "+---------------+---------------------------------------------+---------------+-----------+-----------------+---------------------+-----------------+---------------------------+-------------+",
33404
+ "| userName type | startTime | dbName | tableName | totalPartitions | completedPartitions | percentComplete | endTime | completed |",
33405
+ "+===============+=============================================+===============+===========+=================+=====================+=================+=========================================+",
33406
+ "| u1 | BACKUP_BY_COPY_FILE 2022.09.21T17:18:04.264 | dfs://valuedb | pt | 1 | 1 | 100 | 2022.09.21T17:18:04.269 | 1 |",
33407
+ "+---------------+---------------------------------------------+---------------+-----------+-----------------+---------------------+-----------------+---------------------------+-------------+",
33408
+ "| u1 | BACKUP 2022.09.21T17:13:04.344 | dfs://valuedb | pt | 4 | 4 | 100 | 2022.09.21T17:13:04.413 | 1 |",
33409
+ "+---------------+---------------------------------------------+---------------+-----------+-----------------+---------------------+-----------------+---------------------------+-------------+",
33410
+ "| u1 | BACKUP_BY_COPY_FILE 2022.09.21T17:18:04.264 | dfs://valuedb | pt1 | 1 | 1 | 100 | 2022.09.21T17:18:04.265 | 1 |",
33411
+ "+---------------+---------------------------------------------+---------------+-----------+-----------------+---------------------+-----------------+---------------------------+-------------+",
33412
+ "| admin | BACKUP_BY_COPY_FILE 2022.09.21T16:47:42.798 | dfs://valuedb | pt | 4 | 4 | 100 | 2022.09.21T16:47:42.859 | 1 |",
33413
+ "+---------------+---------------------------------------------+---------------+-----------+-----------------+---------------------+-----------------+---------------------------+-------------+",
33414
+ "| admin | BACKUP_BY_COPY_FILE 2022.09.21T16:37:33.725 | dfs://valuedb | pt | 4 | 4 | 100 | 2022.09.21T16:37:33.790 | 1 |",
33415
+ "+---------------+---------------------------------------------+---------------+-----------+-----------------+---------------------+-----------------+---------------------------+-------------+",
33416
+ "| admin | BACKUP 2022.09.21T15:10:05.016 | dfs://compoDB | pt2 | 10 | 10 | 100 | 2022.09.21T15:10:05.075 | 1 |",
33417
+ "+---------------+---------------------------------------------+---------------+-----------+-----------------+---------------------+-----------------+---------------------------+-------------+"
33420
33418
  ]
33421
33419
  }
33422
33420
  ]
@@ -40178,7 +40176,7 @@
40178
40176
  {
40179
40177
  "type": "text",
40180
40178
  "value": [
40181
- "Grant user \"AlexSmith\" the privilege to create and manage databases with prefix \"dbxxx\" where xxx is from 000 to 099.",
40179
+ "Grant user \"AlexSmith\" the privilege to create and manage databases with prefix \"dbxxx\".",
40182
40180
  ""
40183
40181
  ]
40184
40182
  },
@@ -53367,8 +53365,8 @@
53367
53365
  }
53368
53366
  ]
53369
53367
  },
53370
- "loopPloop": {
53371
- "title": "loopPloop",
53368
+ "loop": {
53369
+ "title": "loop",
53372
53370
  "type": "template",
53373
53371
  "children": [
53374
53372
  {
@@ -67563,6 +67561,76 @@
67563
67561
  }
67564
67562
  ]
67565
67563
  },
67564
+ "pcross": {
67565
+ "title": "pcross",
67566
+ "type": "template",
67567
+ "children": [
67568
+ {
67569
+ "title": "Syntax",
67570
+ "type": "grammer",
67571
+ "children": [
67572
+ {
67573
+ "type": "text",
67574
+ "value": [
67575
+ "pcross(func, X, [Y])",
67576
+ "",
67577
+ "``pcross`` is the parallel computing version of template function ``cross`` ."
67578
+ ]
67579
+ }
67580
+ ]
67581
+ }
67582
+ ]
67583
+ },
67584
+ "peach": {
67585
+ "title": "peach",
67586
+ "type": "template",
67587
+ "children": [
67588
+ {
67589
+ "title": "Syntax",
67590
+ "type": "grammer",
67591
+ "children": [
67592
+ {
67593
+ "type": "text",
67594
+ "value": [
67595
+ "peach(func, args...)"
67596
+ ]
67597
+ }
67598
+ ]
67599
+ },
67600
+ {
67601
+ "title": "Details",
67602
+ "type": "detail",
67603
+ "children": [
67604
+ {
67605
+ "type": "text",
67606
+ "value": [
67607
+ "``peach`` is the parallel computing version of template function ``each``. For tasks that take a long time to finish, ``peach`` can save a significant amount of time over ``each``. For light tasks, however, ``peach`` may take longer than each as the overhead of parallel function call is not trivial.",
67608
+ "",
67609
+ "Refer to :doc:`/DatabaseandDistributedComputing/DistributedComputing` for the details of Parallel Function Call."
67610
+ ]
67611
+ }
67612
+ ]
67613
+ },
67614
+ {
67615
+ "title": "Examples",
67616
+ "type": "example",
67617
+ "children": [
67618
+ {
67619
+ "type": "code",
67620
+ "language": "console",
67621
+ "value": [
67622
+ "",
67623
+ " $ m=rand(1,20000:5000)",
67624
+ " $ timer f=peach(mskew{,8},m) ",
67625
+ " Time elapsed: 3134.71 ms",
67626
+ " $ timer f=mskew(m,8) ",
67627
+ " Time elapsed: 8810.485 ms"
67628
+ ]
67629
+ }
67630
+ ]
67631
+ }
67632
+ ]
67633
+ },
67566
67634
  "percentChange": {
67567
67635
  "title": "percentChange",
67568
67636
  "type": "function",
@@ -68303,6 +68371,26 @@
68303
68371
  }
68304
68372
  ]
68305
68373
  },
68374
+ "ploop": {
68375
+ "title": "ploop",
68376
+ "type": "template",
68377
+ "children": [
68378
+ {
68379
+ "title": "Syntax",
68380
+ "type": "grammer",
68381
+ "children": [
68382
+ {
68383
+ "type": "text",
68384
+ "value": [
68385
+ "ploop(func, args...)",
68386
+ "",
68387
+ "``ploop`` is the parallel computing version of template function ``loop`` . Refer to :doc:`/DatabaseandDistributedComputing/DistributedComputing` for the details of Parallel Function Call."
68388
+ ]
68389
+ }
68390
+ ]
68391
+ }
68392
+ ]
68393
+ },
68306
68394
  "plot": {
68307
68395
  "title": "plot",
68308
68396
  "type": "function",
@@ -76526,7 +76614,7 @@
76526
76614
  " $ restore(\"/home/DolphinDB/backup\",\"dfs://compoDB\",\"pt\",\"%20170810%\",true)",
76527
76615
  " [\"dfs://compoDB/20170810/0_50/6F\",\"dfs://compoDB/20170810/50_100/6F\"]",
76528
76616
  "",
76529
- "Example 3. Restore the backup of table pt to table temp. Table temp has the same schema as table pt.",
76617
+ "Example 3. Restore the backup of table pt to table temp. Table temp has the same schema as table pt. Note that data loss may occur in table temp when using \"%\".",
76530
76618
  ""
76531
76619
  ]
76532
76620
  },
package/docs.zh.json CHANGED
@@ -7778,7 +7778,7 @@
7778
7778
  "",
7779
7779
  " $ ds=sqlDS(<select Time,Exchange,Symbol,Trade_Volume as Vol, Trade_Price as Price from Trades>)",
7780
7780
  " $ ds.cacheDS!() //cache the data",
7781
- " $ ds.clearCacheDS!() //clear the cache"
7781
+ " $ ds.clearDSCache!() //clear the cache"
7782
7782
  ]
7783
7783
  }
7784
7784
  ]
@@ -7840,7 +7840,7 @@
7840
7840
  "",
7841
7841
  " $ ds=sqlDS(<select Time,Exchange,Symbol,Trade_Volume as Vol, Trade_Price as Price from Trades>)",
7842
7842
  " $ ds.cacheDSNow() //cache the data immediately",
7843
- " $ ds.clearCacheDSNow() //clear the cache immediately"
7843
+ " $ ds.clearDSCacheNow() //clear the cache immediately"
7844
7844
  ]
7845
7845
  }
7846
7846
  ]
@@ -10752,7 +10752,7 @@
10752
10752
  " ",
10753
10753
  " $ ds=sqlDS(<select Time,Exchange,Symbol,Trade_Volume as Vol, Trade_Price as Price from Trades>)",
10754
10754
  " $ ds.cacheDS!() //cache the data",
10755
- " $ ds.clearCacheDS!() //clear the cache"
10755
+ " $ ds.clearDSCache!() //clear the cache"
10756
10756
  ]
10757
10757
  }
10758
10758
  ]
@@ -10794,7 +10794,7 @@
10794
10794
  {
10795
10795
  "type": "text",
10796
10796
  "value": [
10797
- "函数clearCacheDSNow立即清除数据源和缓存。"
10797
+ "函数clearDSCacheNow立即清除数据源和缓存。"
10798
10798
  ]
10799
10799
  }
10800
10800
  ]
@@ -10814,7 +10814,7 @@
10814
10814
  " ",
10815
10815
  " $ ds=sqlDS(<select Time,Exchange,Symbol,Trade_Volume as Vol, Trade_Price as Price from Trades>)",
10816
10816
  " $ ds.cacheDSNow() //cache the data immediately",
10817
- " $ ds.clearCacheDSNow() //clear the cache immediately"
10817
+ " $ ds.clearDSCacheNow() //clear the cache immediately"
10818
10818
  ]
10819
10819
  }
10820
10820
  ]
@@ -17258,7 +17258,42 @@
17258
17258
  "",
17259
17259
  "为了便于观察和对比计算结果,系统会对第一个数据窗口的起始时间进行规整,根据 :ref:`step <step_ts>` 参数、数据的时间精度,以及 :ref:`roundTime <roundTime_ts>` 参数来确定整数类型的规整尺度 alignmentSize。当时间序列引擎使用分组计算时,所有分组的窗口均进行统一的规整。相同时刻的数据窗口在各组均有相同的边界。",
17260
17260
  "",
17261
- "* 若数据的时间精度为秒,如 DATETIME(yyyy-MM-dd HH:mm:ss) 与 SECOND(HH:mm:ss) 类型,alignmentSize 的 取值如下:",
17261
+ "* 若数据的时间精度为分钟,如 MINUTE(HH:mm) 类型,alignmentSize 取值如下:",
17262
+ "",
17263
+ " *若 roundTime = false*:",
17264
+ "",
17265
+ " ============== =================",
17266
+ " step alignmentSize",
17267
+ " ============== =================",
17268
+ " 0~2 2",
17269
+ " 3 3",
17270
+ " 4~5 5",
17271
+ " 6~10 10",
17272
+ " 11~15 15",
17273
+ " 16~20 20",
17274
+ " 21~30 30",
17275
+ " >30 60 (1小时)",
17276
+ " ============== =================",
17277
+ "",
17278
+ " *若 roundTime = true*:",
17279
+ "",
17280
+ " 当 step <= 30 时,alignmentSize 取值同上表。当 step > 30 时,alignmentSize 取值见下表:",
17281
+ "",
17282
+ " ============== =================",
17283
+ " step alignmentSize",
17284
+ " ============== =================",
17285
+ " 31~60 60 (1小时)",
17286
+ " 61~120 120 (2小时)",
17287
+ " 121~180 180 (3小时)",
17288
+ " 181~300 300 (5小时)",
17289
+ " 301~600 600 (10小时)",
17290
+ " 601~900 900 (15小时)",
17291
+ " 901~1200 1200 (20小时)",
17292
+ " 1201~1800 1800 (30小时)",
17293
+ " >1800 3600 (60小时)",
17294
+ " ============== =================",
17295
+ "",
17296
+ "* 若数据的时间精度为秒,如 DATETIME(yyyy-MM-dd HH:mm:ss) 与 SECOND(HH:mm:ss) 类型,alignmentSize 取值如下:",
17262
17297
  "",
17263
17298
  " *若 roundTime = false*:",
17264
17299
  "",
@@ -17283,7 +17318,7 @@
17283
17318
  " step alignmentSize",
17284
17319
  " ============== =================",
17285
17320
  " 31~60 60 (1分钟)",
17286
- " 60~120 120 (2分钟)",
17321
+ " 61~120 120 (2分钟)",
17287
17322
  " 121~180 180 (3分钟)",
17288
17323
  " 181~300 300 (5分钟)",
17289
17324
  " 301~600 600 (10分钟)",
@@ -24042,15 +24077,15 @@
24042
24077
  "name isCommand userDefined minParamCount maxParamCount syntax ",
24043
24078
  "======= ========= =========== ============= ============= ===============",
24044
24079
  "!=_2 0 0 2 2 (X, Y) ",
24045
- "!_1 0 0 1 1 (X) ",
24080
+ "!_1 0 0 1 1 \\(X) ",
24046
24081
  "$_2 0 0 2 2 (obj, type) ",
24047
24082
  "%_2 0 0 2 2 (X, Y) ",
24048
24083
  "&&_2 0 0 2 2 (X, Y) ",
24049
24084
  "&_2 0 0 2 2 (X, Y) ",
24050
- "**_2 0 0 2 2 (X, Y) ",
24051
- "*_2 0 0 2 2 (X, Y) ",
24085
+ "\\**_2 0 0 2 2 (X, Y) ",
24086
+ "\\*_2 0 0 2 2 (X, Y) ",
24052
24087
  "+_2 0 0 2 2 (X, Y) ",
24053
- "=_1 0 0 1 1 (X) ",
24088
+ "=_1 0 0 1 1 \\(X) ",
24054
24089
  "=_2 0 0 2 2 (X, Y) ",
24055
24090
  ".._2 0 0 2 2 (start, end) ",
24056
24091
  "._2 0 0 2 2 (obj, keys) ",
@@ -24070,7 +24105,7 @@
24070
24105
  "BETWEEN 0 0 2 2 (X, Y) ",
24071
24106
  "IN 0 0 2 2 (X, Y) ",
24072
24107
  "LIKE 0 0 2 2 (X, pattern) ",
24073
- "NOT 0 0 1 1 (X) ",
24108
+ "NOT 0 0 1 1 \\(X) ",
24074
24109
  "...",
24075
24110
  "======= ========= =========== ============= ============= ===============",
24076
24111
  ""
@@ -30282,7 +30317,7 @@
30282
30317
  "value": [
30283
30318
  "该命令把共享的流计算表保存到磁盘上。",
30284
30319
  "",
30285
- "为了保证该命令能够正常执行,我们需要指定配置参数 *persistenceDir* 。流数据表在磁盘上的存储目录是<PERSISTENCE_DIR>/<TABLE_NAME>。目录包含两种类型的文件:数据文件(名称类型 *data0.log, data1.log...* )和索引文件 *index.log* 。把这些数据保存到磁盘后,如果重启系统,该命令会把磁盘中的数据加载到内存中。",
30320
+ "为了保证该命令能够正常执行,需要在配置文件中(单节点:dolohindb.cfg,集群:cluster.cfg)指定配置参数 *persistenceDir*,配置参考 :doc:`/DatabaseandDistributedComputing/Configuration/ConfigParamRef`。流数据表在磁盘上的存储目录是<PERSISTENCE_DIR>/<TABLE_NAME>。目录包含两种类型的文件:数据文件(名称类型 *data0.log, data1.log...* )和索引文件 *index.log* 。把这些数据保存到磁盘后,如果重启系统,该命令会把磁盘中的数据加载到内存中。",
30286
30321
  "",
30287
30322
  "参数 *asynWrite* 会告知系统是否以异步模式保存表。在异步模式中,追加的数据会被放进队列,之后用于保存的工作线程把数据写入磁盘。在同步模式中,表的追加数据操作直到追加数据被保存到磁盘中才完成。该参数的默认值是 true,即为异步模式。通常情况下,异步模式实现更高的吞吐量,但是如果服务器崩溃,可能会丢失最后追加的行。在异步模式中,保存表的工作是由单个工作线程完成,并且一个工作线程可能处理多个表。如果只保存一个表,增加工作线程的数量并不会提升性能。",
30288
30323
  "",
@@ -30414,7 +30449,7 @@
30414
30449
  "value": [
30415
30450
  "该命令把流数据表共享,并把它持久化到磁盘上。",
30416
30451
  "",
30417
- "为了保证该命令能够正常执行,需要指定配置参数 *persistenceDir*。流数据表在磁盘上的存储目录是<PERSISTENCE_DIR>/<TABLE_NAME>。目录包含两种类型的文件:数据文件(名称类型 *data0.log, data1.log...* )和索引文件 *index.log*。把这些数据保存到磁盘后,如果重启系统,再次执行该命令会把磁盘中的数据加载到内存中,加载的记录条数由参数 *preCache* 指定,但是实际加载的记录条数有可能会超过 *preCache*。",
30452
+ "为了保证该命令能够正常执行,需要在配置文件中(单节点:dolohindb.cfg,集群:cluster.cfg)指定配置参数 *persistenceDir*,配置参考 :doc:`/DatabaseandDistributedComputing/Configuration/ConfigParamRef`。流数据表在磁盘上的存储目录是<PERSISTENCE_DIR>/<TABLE_NAME>。目录包含两种类型的文件:数据文件(名称类型 *data0.log, data1.log...* )和索引文件 *index.log*。把这些数据保存到磁盘后,如果重启系统,再次执行该命令会把磁盘中的数据加载到内存中,加载的记录条数由参数 *preCache* 指定,但是实际加载的记录条数有可能会超过 *preCache*。",
30418
30453
  "",
30419
30454
  "参数 *asynWrite* 会告知系统是否以异步模式保存表。在异步模式中,追加的数据会被放进队列,之后用于保存的工作线程把数据写入磁盘。在同步模式中,表的追加数据操作直到追加数据被保存到磁盘中才完成。该参数的默认值是 true,即为异步模式。通常情况下,异步模式实现更高的吞吐量,但是如果服务器崩溃,可能会丢失最后追加的行。在异步模式中,保存表的工作是由单个工作线程完成,并且一个工作线程可能处理多个表。如果只保存一个表,增加工作线程的数量并不会提升性能。",
30420
30455
  "",
@@ -36187,21 +36222,21 @@
36187
36222
  {
36188
36223
  "type": "text",
36189
36224
  "value": [
36190
- "+---------------+---------------------------------------------+---------------+-----------+-----------------+---------------------+-----------------+---------------------------+",
36191
- "| userName type | startTime | dbName | tableName | totalPartitions | completedPartitions | percentComplete | endTime completed |",
36192
- "+===============+=============================================+===============+===========+=================+=====================+=================+===========================+",
36193
- "| u1 | BACKUP_BY_COPY_FILE 2022.09.21T17:18:04.264 | dfs://valuedb | pt | 1 | 1 | 100 | 2022.09.21T17:18:04.269 1 |",
36194
- "+---------------+---------------------------------------------+---------------+-----------+-----------------+---------------------+-----------------+---------------------------+",
36195
- "| u1 | BACKUP 2022.09.21T17:13:04.344 | dfs://valuedb | pt | 4 | 4 | 100 | 2022.09.21T17:13:04.413 1 |",
36196
- "+---------------+---------------------------------------------+---------------+-----------+-----------------+---------------------+-----------------+---------------------------+",
36197
- "| u1 | BACKUP_BY_COPY_FILE 2022.09.21T17:18:04.264 | dfs://valuedb | pt1 | 1 | 1 | 100 | 2022.09.21T17:18:04.265 1 |",
36198
- "+---------------+---------------------------------------------+---------------+-----------+-----------------+---------------------+-----------------+---------------------------+",
36199
- "| admin | BACKUP_BY_COPY_FILE 2022.09.21T16:47:42.798 | dfs://valuedb | pt | 4 | 4 | 100 | 2022.09.21T16:47:42.859 1 |",
36200
- "+---------------+---------------------------------------------+---------------+-----------+-----------------+---------------------+-----------------+---------------------------+",
36201
- "| admin | BACKUP_BY_COPY_FILE 2022.09.21T16:37:33.725 | dfs://valuedb | pt | 4 | 4 | 100 | 2022.09.21T16:37:33.790 1 |",
36202
- "+---------------+---------------------------------------------+---------------+-----------+-----------------+---------------------+-----------------+---------------------------+",
36203
- "| admin | BACKUP 2022.09.21T15:10:05.016 | dfs://compoDB | pt2 | 10 | 10 | 100 | 2022.09.21T15:10:05.075 1 |",
36204
- "+---------------+---------------------------------------------+---------------+-----------+-----------------+---------------------+-----------------+---------------------------+"
36225
+ "+---------------+---------------------------------------------+---------------+-----------+-----------------+---------------------+-----------------+---------------------------+-------------+",
36226
+ "| userName type | startTime | dbName | tableName | totalPartitions | completedPartitions | percentComplete | endTime | completed |",
36227
+ "+===============+=============================================+===============+===========+=================+=====================+=================+=========================================+",
36228
+ "| u1 | BACKUP_BY_COPY_FILE 2022.09.21T17:18:04.264 | dfs://valuedb | pt | 1 | 1 | 100 | 2022.09.21T17:18:04.269 | 1 |",
36229
+ "+---------------+---------------------------------------------+---------------+-----------+-----------------+---------------------+-----------------+---------------------------+-------------+",
36230
+ "| u1 | BACKUP 2022.09.21T17:13:04.344 | dfs://valuedb | pt | 4 | 4 | 100 | 2022.09.21T17:13:04.413 | 1 |",
36231
+ "+---------------+---------------------------------------------+---------------+-----------+-----------------+---------------------+-----------------+---------------------------+-------------+",
36232
+ "| u1 | BACKUP_BY_COPY_FILE 2022.09.21T17:18:04.264 | dfs://valuedb | pt1 | 1 | 1 | 100 | 2022.09.21T17:18:04.265 | 1 |",
36233
+ "+---------------+---------------------------------------------+---------------+-----------+-----------------+---------------------+-----------------+---------------------------+-------------+",
36234
+ "| admin | BACKUP_BY_COPY_FILE 2022.09.21T16:47:42.798 | dfs://valuedb | pt | 4 | 4 | 100 | 2022.09.21T16:47:42.859 | 1 |",
36235
+ "+---------------+---------------------------------------------+---------------+-----------+-----------------+---------------------+-----------------+---------------------------+-------------+",
36236
+ "| admin | BACKUP_BY_COPY_FILE 2022.09.21T16:37:33.725 | dfs://valuedb | pt | 4 | 4 | 100 | 2022.09.21T16:37:33.790 | 1 |",
36237
+ "+---------------+---------------------------------------------+---------------+-----------+-----------------+---------------------+-----------------+---------------------------+-------------+",
36238
+ "| admin | BACKUP 2022.09.21T15:10:05.016 | dfs://compoDB | pt2 | 10 | 10 | 100 | 2022.09.21T15:10:05.075 | 1 |",
36239
+ "+---------------+---------------------------------------------+---------------+-----------+-----------------+---------------------+-----------------+---------------------------+-------------+"
36205
36240
  ]
36206
36241
  }
36207
36242
  ]
@@ -41306,7 +41341,7 @@
41306
41341
  "",
41307
41342
  "================== =====================================",
41308
41343
  "",
41309
- "* 表subConns监控本地订阅节点和订阅节点之间的连接状态。每一行表示一个发布节点。它包含以下列:",
41344
+ "* 表subConns监控本地订阅节点和发布节点之间的连接状态。每一行表示一个发布节点。它包含以下列:",
41310
41345
  "",
41311
41346
  "================== =====================================",
41312
41347
  "列名 含义",
@@ -70973,12 +71008,78 @@
70973
71008
  "pcross": {
70974
71009
  "title": "pcross",
70975
71010
  "type": "template",
70976
- "children": []
71011
+ "children": [
71012
+ {
71013
+ "title": "语法",
71014
+ "type": "grammer",
71015
+ "children": [
71016
+ {
71017
+ "type": "text",
71018
+ "value": [
71019
+ "pcross(func, X, [Y])",
71020
+ "",
71021
+ "*pcross* 是并行计算版本的 *cross* 高阶函数。"
71022
+ ]
71023
+ }
71024
+ ]
71025
+ }
71026
+ ]
70977
71027
  },
70978
71028
  "peach": {
70979
71029
  "title": "peach",
70980
71030
  "type": "template",
70981
- "children": []
71031
+ "children": [
71032
+ {
71033
+ "title": "语法",
71034
+ "type": "grammer",
71035
+ "children": [
71036
+ {
71037
+ "type": "text",
71038
+ "value": [
71039
+ "peach(func, args...)"
71040
+ ]
71041
+ }
71042
+ ]
71043
+ },
71044
+ {
71045
+ "title": "详情",
71046
+ "type": "detail",
71047
+ "children": [
71048
+ {
71049
+ "type": "text",
71050
+ "value": [
71051
+ "*peach* 是并行计算版本的 *each* 高阶函数。对于执行时间较长的任务,*peach* 比 *each* 能节省大量的时间。但对于小任务,*peach* 可能执行时间要比each更长,因为并行函数调用的开销很大。",
71052
+ "关于并行函数调用请参考 :doc:`/DatabaseandDistributedComputing/DistributedComputing`。"
71053
+ ]
71054
+ }
71055
+ ]
71056
+ },
71057
+ {
71058
+ "title": "例子",
71059
+ "type": "example",
71060
+ "children": [
71061
+ {
71062
+ "type": "text",
71063
+ "value": [
71064
+ "对于执行时间长的任务,使用 `peach` 进行并行计算,可以节约任务执行时间。",
71065
+ ""
71066
+ ]
71067
+ },
71068
+ {
71069
+ "type": "code",
71070
+ "language": "console",
71071
+ "value": [
71072
+ "",
71073
+ " $ m=rand(1,20000:5000)",
71074
+ " $ timer f=peach(mskew{,8},m) ",
71075
+ " Time elapsed: 3134.71 ms",
71076
+ " $ timer f=mskew(m,8) ",
71077
+ " Time elapsed: 8810.485 ms"
71078
+ ]
71079
+ }
71080
+ ]
71081
+ }
71082
+ ]
70982
71083
  },
70983
71084
  "percentChange": {
70984
71085
  "title": "percentChange",
@@ -71729,7 +71830,22 @@
71729
71830
  "ploop": {
71730
71831
  "title": "ploop",
71731
71832
  "type": "template",
71732
- "children": []
71833
+ "children": [
71834
+ {
71835
+ "title": "语法",
71836
+ "type": "grammer",
71837
+ "children": [
71838
+ {
71839
+ "type": "text",
71840
+ "value": [
71841
+ "ploop(func, args...)",
71842
+ "",
71843
+ "ploop 是 :doc:`loop` 的并行版本。关于并行函数调用请参考 :doc:`/DatabaseandDistributedComputing/DistributedComputing`。"
71844
+ ]
71845
+ }
71846
+ ]
71847
+ }
71848
+ ]
71733
71849
  },
71734
71850
  "plot": {
71735
71851
  "title": "plot",
@@ -99172,9 +99288,9 @@
99172
99288
  {
99173
99289
  "type": "text",
99174
99290
  "value": [
99175
- "`scriptFile` 是字符串,表示测试脚本文件或目录。",
99291
+ "`scriptFile` 是字符串,表示服务器端的测试脚本文件或目录。可以是相对路径或绝对路径。",
99176
99292
  "",
99177
- "`outputFile` 是字符串,测试结果输出文件或目录。",
99293
+ "`outputFile` 是字符串,表示服务器端的测试结果输出文件。可以是相对路径或绝对路径。",
99178
99294
  "",
99179
99295
  "`testMemLeaking` 是布尔值,表示是否测试内存泄漏。"
99180
99296
  ]
@@ -99190,9 +99306,9 @@
99190
99306
  "value": [
99191
99307
  "用于单元测试的系统命令。该命令必须要用户登录后才能执行。",
99192
99308
  "",
99193
- "如果 *scriptFile* 是一个目录,测试目录中所有脚本文件。",
99309
+ "如果 *scriptFile* 是一个目录,将执行测试目录中所有脚本文件,不会执行子目录中的文件。",
99194
99310
  "",
99195
- "如果 *outputFile* 没有指定,测试结果将会显示在屏幕上。"
99311
+ "如果 *outputFile* 没有指定,测试结果将会显示在屏幕上。如果 *outputFile* 指定为相对路径,则测试结果文件输出到 <HomeDir>。"
99196
99312
  ]
99197
99313
  }
99198
99314
  ]
@@ -99206,8 +99322,8 @@
99206
99322
  "language": "console",
99207
99323
  "value": [
99208
99324
  "",
99209
- " $ test(\"C:/DolphinDB/test/test1.txt\", \"C:/DolphinDB/testResult/test1.txt\");",
99210
- " $ test(\"C:/DolphinDB/test\");",
99325
+ " $ test(\"/home/Data/test.dos\", \"/home/Data/result.dos\");",
99326
+ " $ test(\"/home/Data\");",
99211
99327
  ""
99212
99328
  ]
99213
99329
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dolphindb",
3
3
  "description": "DolphinDB JavaScript API",
4
- "version": "2.0.1020",
4
+ "version": "2.0.1022",
5
5
  "type": "module",
6
6
  "main": "./index.js",
7
7
  "browser": "./browser.js",
@@ -25,19 +25,19 @@
25
25
  "JavaScript"
26
26
  ],
27
27
  "devDependencies": {
28
- "@types/node": "^20.5.4",
29
- "@typescript-eslint/eslint-plugin": "^6.4.1",
30
- "@typescript-eslint/parser": "^6.4.1",
31
- "eslint": "^8.47.0",
32
- "eslint-plugin-xlint": "^1.0.7",
28
+ "@types/node": "^20.5.7",
29
+ "@typescript-eslint/eslint-plugin": "^6.5.0",
30
+ "@typescript-eslint/parser": "^6.5.0",
31
+ "eslint": "^8.48.0",
32
+ "eslint-plugin-xlint": "^1.0.8",
33
33
  "ts-node": "^10.9.1",
34
- "typescript": "^5.1.6"
34
+ "typescript": "^5.2.2"
35
35
  },
36
36
  "dependencies": {
37
37
  "dayjs": "^1.11.9",
38
38
  "ipaddr.js": "^2.1.0",
39
39
  "tslib": "^2.6.2",
40
- "xshell": "^1.0.55"
40
+ "xshell": "^1.0.56"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "tsc",