This is an automated email from the ASF dual-hosted git repository. qiaojialin pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/iotdb-docs.git
The following commit(s) were added to refs/heads/main by this push: new b60da11 fix the bad URLs of V1.3 (#159) b60da11 is described below commit b60da11c4ec9adde12d608b50a1b114bc2199580 Author: wanghui42 <105700158+wanghu...@users.noreply.github.com> AuthorDate: Thu Jan 25 09:18:42 2024 +0800 fix the bad URLs of V1.3 (#159) --- src/.vuepress/sidebar/V1.3.x/zh.ts | 1 + src/.vuepress/sidebar_timecho/V1.3.x/zh.ts | 1 + .../Deployment-Guide_timecho.md | 22 ++-- .../Master/Reference/Function-and-Expression.md | 104 +++++++++---------- src/zh/UserGuide/Master/Tools-System/Benchmark.md | 2 +- .../Master/User-Manual/Database-Programming.md | 24 ++--- .../Master/User-Manual/IoTDB-Data-Pipe_timecho.md | 2 +- .../Master/User-Manual/Operate-Metadata.md | 4 +- .../Master/User-Manual/Operator-and-Expression.md | 113 ++++++++++----------- .../stage/Edge-Cloud-Collaboration/Sync-Tool.md | 2 +- .../Master/stage/Operate-Metadata/Timeseries.md | 2 +- .../Deployment-Guide_timecho.md | 4 +- .../latest/Reference/Function-and-Expression.md | 104 +++++++++---------- src/zh/UserGuide/latest/Tools-System/Benchmark.md | 2 +- src/zh/UserGuide/latest/User-Manual/Data-Sync.md | 2 +- .../latest/User-Manual/Database-Programming.md | 22 ++-- .../latest/User-Manual/IoTDB-Data-Pipe_timecho.md | 2 +- .../latest/User-Manual/Operate-Metadata.md | 91 +++++++++-------- .../latest/User-Manual/Operator-and-Expression.md | 113 ++++++++++----------- .../Integration-Test-refactoring-tutorial.md | 4 +- .../latest/stage/Operate-Metadata/Timeseries.md | 2 +- 21 files changed, 311 insertions(+), 312 deletions(-) diff --git a/src/.vuepress/sidebar/V1.3.x/zh.ts b/src/.vuepress/sidebar/V1.3.x/zh.ts index 89667b3..fdc7adf 100644 --- a/src/.vuepress/sidebar/V1.3.x/zh.ts +++ b/src/.vuepress/sidebar/V1.3.x/zh.ts @@ -168,6 +168,7 @@ export const zhSidebar = { // children: 'structure', children: [ { text: 'UDF 函数库', link: 'UDF-Libraries' }, + { text: '内置函数与表达式', link: 'Function-and-Expression' }, { text: '配置参数', link: 'Common-Config-Manual' }, { text: 'ConfigNode配置参数', link: 'ConfigNode-Config-Manual' }, { text: 'DataNode配置参数', link: 'DataNode-Config-Manual' }, diff --git a/src/.vuepress/sidebar_timecho/V1.3.x/zh.ts b/src/.vuepress/sidebar_timecho/V1.3.x/zh.ts index f2b48d8..17add1d 100644 --- a/src/.vuepress/sidebar_timecho/V1.3.x/zh.ts +++ b/src/.vuepress/sidebar_timecho/V1.3.x/zh.ts @@ -173,6 +173,7 @@ export const zhSidebar = { // children: 'structure', children: [ { text: 'UDF 函数库', link: 'UDF-Libraries' }, + { text: '内置函数与表达式', link: 'Function-and-Expression' }, { text: '配置参数', link: 'Common-Config-Manual' }, { text: 'ConfigNode配置参数', link: 'ConfigNode-Config-Manual' }, { text: 'DataNode配置参数', link: 'DataNode-Config-Manual' }, diff --git a/src/zh/UserGuide/Master/Deployment-and-Maintenance/Deployment-Guide_timecho.md b/src/zh/UserGuide/Master/Deployment-and-Maintenance/Deployment-Guide_timecho.md index 8c97029..7c3c50a 100644 --- a/src/zh/UserGuide/Master/Deployment-and-Maintenance/Deployment-Guide_timecho.md +++ b/src/zh/UserGuide/Master/Deployment-and-Maintenance/Deployment-Guide_timecho.md @@ -77,7 +77,7 @@ Windows 系统启动命令如下: IoTDB 集群管理工具是一款易用的运维工具(企业版工具)。旨在解决 IoTDB 分布式系统多节点的运维难题,主要包括集群部署、集群启停、弹性扩容、配置更新、数据导出等功能,从而实现对复杂数据库集群的一键式指令下发, 极大降低管理难度。本文档将说明如何用集群管理工具远程部署、配置、启动和停止 IoTDB 集群实例。 -### Environmental preparation +### 环境准备 本工具为 TimechoDB(基于IoTDB的企业版数据库)配套工具,您可以联系您的销售获取工具下载方式。 @@ -753,8 +753,8 @@ iotdbctl cluster activate default_cluster -N confignode1 -op license_path #### 下载二进制文件 1. 打开官网[Download Page](https://iotdb.apache.org/Download/)。 -2. 下载 IoTDB 1.0.0 版本的二进制文件。 -3. 解压得到 apache-iotdb-1.0.0-all-bin 目录。 +2. 下载 IoTDB 1.3.0 版本的二进制文件。 +3. 解压得到 apache-iotdb-1.3.0-all-bin 目录。 #### 使用源码编译 @@ -764,14 +764,14 @@ iotdbctl cluster activate default_cluster -N confignode1 -op license_path ``` git clone https://github.com/apache/iotdb.git -git checkout v1.0.0 +git checkout v1.3.0 ``` **官网下载** 1. 打开官网[Download Page](https://iotdb.apache.org/Download/)。 2. 下载 IoTDB 1.0.0 版本的源码。 -3. 解压得到 apache-iotdb-1.0.0 目录。 +3. 解压得到 apache-iotdb-1.3.0 目录。 ##### 编译源码 @@ -782,12 +782,12 @@ mvn clean package -pl distribution -am -DskipTests ``` 编译成功后,可在目录 -**distribution/target/apache-iotdb-1.0.0-SNAPSHOT-all-bin/apache-iotdb-1.0.0-SNAPSHOT-all-bin** +**distribution/target/apache-iotdb-1.3.0-SNAPSHOT-all-bin/apache-iotdb-1.3.0-SNAPSHOT-all-bin** 找到集群版本的二进制文件。 ### 安装包说明 -打开 apache-iotdb-1.0.0-SNAPSHOT-all-bin,可见以下目录: +打开 apache-iotdb-1.3.0-SNAPSHOT-all-bin,可见以下目录: | **目录** | **说明** | | -------- | ------------------------------------------------------------ | @@ -803,7 +803,7 @@ mvn clean package -pl distribution -am -DskipTests #### 集群安装 -`apache-iotdb-1.0.0-SNAPSHOT-all-bin` 包含 ConfigNode 和 DataNode, +`apache-iotdb-1.3.0-SNAPSHOT-all-bin` 包含 ConfigNode 和 DataNode, 请将安装包部署于你目标集群的所有机器上,推荐将安装包部署于所有服务器的相同目录下。 如果你希望先在一台服务器上尝试部署 IoTDB 集群,请参考 @@ -812,7 +812,7 @@ mvn clean package -pl distribution -am -DskipTests #### 集群配置 接下来需要修改每个服务器上的配置文件,登录服务器, -并将工作路径切换至 `apache-iotdb-1.0.0-SNAPSHOT-all-bin`, +并将工作路径切换至 `apache-iotdb-1.3.0-SNAPSHOT-all-bin`, 配置文件在 `./conf` 目录内。 对于所有部署 ConfigNode 的服务器,需要修改通用配置(见 5.2.1)和 ConfigNode 配置(见 5.2.2)。 @@ -822,7 +822,8 @@ mvn clean package -pl distribution -am -DskipTests ##### 通用配置 打开通用配置文件 ./conf/iotdb-common.properties, -可根据 [部署推荐](./Deployment-Recommendation.md)设置以下参数: +可根据 [部署推荐](./Deployment-Recommendation.md) +设置以下参数: | **配置项** | **说明** | **默认** | | ------------------------------------------ | ------------------------------------------------------------ | ----------------------------------------------- | @@ -1021,7 +1022,6 @@ DataNode 的其它配置参数可参考 若希望通过 Cli 连接生产环境的集群, 请阅读 [Cli 使用手册](../Tools-System/CLI.md) 。 - #### 验证集群 以在6台服务器上启动的3C3D(3个ConfigNode 和 3个DataNode)集群为例, diff --git a/src/zh/UserGuide/Master/Reference/Function-and-Expression.md b/src/zh/UserGuide/Master/Reference/Function-and-Expression.md index 6bfbd46..aa4f4ec 100644 --- a/src/zh/UserGuide/Master/Reference/Function-and-Expression.md +++ b/src/zh/UserGuide/Master/Reference/Function-and-Expression.md @@ -807,11 +807,11 @@ IoTDB> select a, b, a > 10, a <= b, !(a <= b), a > 10 && a > b from root.test; --> -# 字符串处理 +## 字符串处理 -## STRING_CONTAINS +### STRING_CONTAINS -### 函数简介 +#### 函数简介 本函数判断字符串中是否存在子串 `s` @@ -824,7 +824,7 @@ IoTDB> select a, b, a > 10, a <= b, !(a <= b), a > 10 && a > b from root.test; **输出序列:** 输出单个序列,类型为 BOOLEAN。 -### 使用示例 +#### 使用示例 ``` sql select s1, string_contains(s1, 's'='warn') from root.sg1.d4; @@ -844,9 +844,9 @@ Total line number = 3 It costs 0.007s ``` -## STRING_MATCHES +### STRING_MATCHES -### 函数简介 +#### 函数简介 本函数判断字符串是否能够被正则表达式`regex`匹配。 @@ -859,7 +859,7 @@ It costs 0.007s **输出序列:** 输出单个序列,类型为 BOOLEAN。 -### 使用示例 +#### 使用示例 ``` sql select s1, string_matches(s1, 'regex'='[^\\s]+37229') from root.sg1.d4; @@ -879,9 +879,9 @@ Total line number = 3 It costs 0.007s ``` -## Length +### Length -### 函数简介 +#### 函数简介 本函数用于获取输入序列的长度。 @@ -893,7 +893,7 @@ It costs 0.007s **提示:** 如果输入是NULL,返回NULL。 -### 使用示例 +#### 使用示例 输入序列: @@ -923,9 +923,9 @@ select s1, length(s1) from root.sg1.d1 +-----------------------------+--------------+----------------------+ ``` -## Locate +### Locate -### 函数简介 +#### 函数简介 本函数用于获取`target`子串第一次出现在输入序列的位置,如果输入序列中不包含`target`则返回 -1 。 @@ -942,7 +942,7 @@ select s1, length(s1) from root.sg1.d1 **提示:** 下标从 0 开始。 -### 使用示例 +#### 使用示例 输入序列: @@ -989,9 +989,9 @@ select s1, locate(s1, "target"="1", "reverse"="true") from root.sg1.d1 +-----------------------------+--------------+------------------------------------------------------+ ``` -## StartsWith +### StartsWith -### 函数简介 +#### 函数简介 本函数用于判断输入序列是否有指定前缀。 @@ -1006,7 +1006,7 @@ select s1, locate(s1, "target"="1", "reverse"="true") from root.sg1.d1 **提示:** 如果输入是NULL,返回NULL。 -### 使用示例 +#### 使用示例 输入序列: @@ -1036,9 +1036,9 @@ select s1, startswith(s1, "target"="1") from root.sg1.d1 +-----------------------------+--------------+----------------------------------------+ ``` -## EndsWith +### EndsWith -### 函数简介 +#### 函数简介 本函数用于判断输入序列是否有指定后缀。 @@ -1053,7 +1053,7 @@ select s1, startswith(s1, "target"="1") from root.sg1.d1 **提示:** 如果输入是NULL,返回NULL。 -### 使用示例 +#### 使用示例 输入序列: @@ -1083,9 +1083,9 @@ select s1, endswith(s1, "target"="1") from root.sg1.d1 +-----------------------------+--------------+--------------------------------------+ ``` -## Concat +### Concat -### 函数简介 +#### 函数简介 本函数用于拼接输入序列和`target`字串。 @@ -1104,7 +1104,7 @@ select s1, endswith(s1, "target"="1") from root.sg1.d1 + 函数只能将输入序列和`targets`区分开各自拼接。`concat(s1, "target1"="IoT", s2, "target2"="DB")`和 `concat(s1, s2, "target1"="IoT", "target2"="DB")`得到的结果是一样的。 -### 使用示例 +#### 使用示例 输入序列: @@ -1151,9 +1151,9 @@ select s1, s2, concat(s1, s2, "target1"="IoT", "target2"="DB", "series_behind"=" +-----------------------------+--------------+--------------+-----------------------------------------------------------------------------------------------+ ``` -## Substring +### Substring -### 函数简介 +#### 函数简介 提取字符串的子字符串,从指定的第一个字符开始,并在指定的字符数之后停止。下标从1开始。from 和 for的范围是 INT32 类型取值范围。 **函数名:** SUBSTRING @@ -1169,7 +1169,7 @@ select s1, s2, concat(s1, s2, "target1"="IoT", "target2"="DB", "series_behind"=" **提示:** 如果输入是NULL,返回NULL。 -### 使用示例 +#### 使用示例 输入序列: @@ -1199,9 +1199,9 @@ select s1, substring(s1 from 1 for 2) from root.sg1.d1 +-----------------------------+--------------+--------------------------------------+ ``` -## Replace +### Replace -### 函数简介 +#### 函数简介 将输入序列中的子串替换成目标子串。 **函数名:** REPLACE @@ -1217,7 +1217,7 @@ select s1, substring(s1 from 1 for 2) from root.sg1.d1 **提示:** 如果输入是NULL,返回NULL。 -### 使用示例 +#### 使用示例 输入序列: @@ -1247,9 +1247,9 @@ select s1, replace(s1, 'es', 'tt') from root.sg1.d1 +-----------------------------+--------------+-----------------------------------+ ``` -## Upper +### Upper -### 函数简介 +#### 函数简介 本函数用于将输入序列转化为大写。 @@ -1261,7 +1261,7 @@ select s1, replace(s1, 'es', 'tt') from root.sg1.d1 **提示:** 如果输入是NULL,返回NULL。 -### 使用示例 +#### 使用示例 输入序列: @@ -1291,9 +1291,9 @@ select s1, upper(s1) from root.sg1.d1 +-----------------------------+--------------+---------------------+ ``` -## Lower +### Lower -### 函数简介 +#### 函数简介 本函数用于将输入序列转换为小写。 @@ -1305,7 +1305,7 @@ select s1, upper(s1) from root.sg1.d1 **提示:** 如果输入是NULL,返回NULL。 -### 使用示例 +#### 使用示例 输入序列: @@ -1335,9 +1335,9 @@ select s1, lower(s1) from root.sg1.d1 +-----------------------------+--------------+---------------------+ ``` -## Trim +### Trim -### 函数简介 +#### 函数简介 本函数用于移除输入序列前后的空格。 @@ -1349,7 +1349,7 @@ select s1, lower(s1) from root.sg1.d1 **提示:** 如果输入是NULL,返回NULL。 -### 使用示例 +#### 使用示例 输入序列: @@ -1379,9 +1379,9 @@ select s3, trim(s3) from root.sg1.d1 +-----------------------------+--------------+--------------------+ ``` -## StrCmp +### StrCmp -### 函数简介 +#### 函数简介 本函数用于比较两个输入序列。 如果值相同返回 `0` , 序列1的值小于序列2的值返回一个`负数`,序列1的值大于序列2的值返回一个`正数`。 @@ -1393,7 +1393,7 @@ select s3, trim(s3) from root.sg1.d1 **提示:** 如果任何一个输入是NULL,返回NULL。 -### 使用示例 +#### 使用示例 输入序列: @@ -1423,9 +1423,9 @@ select s1, s2, strcmp(s1, s2) from root.sg1.d1 +-----------------------------+--------------+--------------+--------------------------------------+ ``` -## StrReplace +### StrReplace -### 函数简介 +#### 函数简介 **非内置函数,需要注册数据质量函数库后才能使用**。本函数用于将文本中的子串替换为指定的字符串。 @@ -1443,7 +1443,7 @@ select s1, s2, strcmp(s1, s2) from root.sg1.d1 **输出序列:** 输出单个序列,类型为 TEXT。 -### 使用示例 +#### 使用示例 输入序列: @@ -1501,9 +1501,9 @@ select strreplace(s1, "target"=",", "replace"="/", "limit"="1", "offset"="1", "r +-----------------------------+-----------------------------------------------------+ ``` -## RegexMatch +### RegexMatch -### 函数简介 +#### 函数简介 **非内置函数,需要注册数据质量函数库后才能使用**。本函数用于正则表达式匹配文本中的具体内容并返回。 @@ -1521,7 +1521,7 @@ select strreplace(s1, "target"=",", "replace"="/", "limit"="1", "offset"="1", "r **提示:** 空值或无法匹配给定的正则表达式的数据点没有输出结果。 -### 使用示例 +#### 使用示例 输入序列: @@ -1558,9 +1558,9 @@ select regexmatch(s1, "regex"="\d+\.\d+\.\d+\.\d+", "group"="0") from root.test. +-----------------------------+----------------------------------------------------------------------+ ``` -## RegexReplace +### RegexReplace -#### 函数简介 +##### 函数简介 **非内置函数,需要注册数据质量函数库后才能使用**。本函数用于将文本中符合正则表达式的匹配结果替换为指定的字符串。 @@ -1579,7 +1579,7 @@ select regexmatch(s1, "regex"="\d+\.\d+\.\d+\.\d+", "group"="0") from root.test. **输出序列:** 输出单个序列,类型为 TEXT。 -#### 使用示例 +##### 使用示例 输入序列: @@ -1616,9 +1616,9 @@ select regexreplace(s1, "regex"="192\.168\.0\.(\d+)", "replace"="cluster-$1", "l +-----------------------------+-----------------------------------------------------------+ ``` -### RegexSplit +#### RegexSplit -#### 函数简介 +##### 函数简介 **非内置函数,需要注册数据质量函数库后才能使用**。本函数用于使用给定的正则表达式切分文本,并返回指定的项。 @@ -1635,7 +1635,7 @@ select regexreplace(s1, "regex"="192\.168\.0\.(\d+)", "replace"="cluster-$1", "l **提示:** 如果`index`超出了切分后结果数组的秩范围,例如使用`,`切分`0,1,2`时输入`index`为 3,则该数据点没有输出结果。 -#### 使用示例 +##### 使用示例 输入序列: diff --git a/src/zh/UserGuide/Master/Tools-System/Benchmark.md b/src/zh/UserGuide/Master/Tools-System/Benchmark.md index 1a78ccd..940aced 100644 --- a/src/zh/UserGuide/Master/Tools-System/Benchmark.md +++ b/src/zh/UserGuide/Master/Tools-System/Benchmark.md @@ -149,7 +149,7 @@ IoT-benchmark 是基于 Java 和大数据环境开发的时序数据库基准测 | 参数名称 | 类型 | 示例 | 系统描述 | | -------------------------- | ------ | ------------------------- | ------------------------------------------------------------ | | CLIENT_NUMBER | 整数 | 100 | 客户端总数 | -| GROUP_NUMBER | 整数 | 20 | 存储组的数量;仅针对IoTDB。 | +| GROUP_NUMBER | 整数 | 20 | 数据库的数量;仅针对IoTDB。 | | DEVICE_NUMBER | 整数 | 100 | 设备总数 | | SENSOR_NUMBER | 整数 | 300 | 每个设备的传感器总数 | | INSERT_DATATYPE_PROPORTION | 字符串 | 1:1:1:1:1:1 | 设备的数据类型比例,BOOLEAN:INT32:INT64:FLOAT:DOUBLE:TEXT | diff --git a/src/zh/UserGuide/Master/User-Manual/Database-Programming.md b/src/zh/UserGuide/Master/User-Manual/Database-Programming.md index b7e2b8a..775301b 100644 --- a/src/zh/UserGuide/Master/User-Manual/Database-Programming.md +++ b/src/zh/UserGuide/Master/User-Manual/Database-Programming.md @@ -1499,7 +1499,7 @@ SHOW FUNCTIONS 用户在使用 UDF 时会涉及到 3 种权限: -* `USE_UDF `:具备该权限的用户才被允许执行 UDF 注册操作 +* `USE_UDF`:具备该权限的用户才被允许执行 UDF 注册操作 * `DROP_FUNCTION`:具备该权限的用户才被允许执行 UDF 卸载操作 * `READ_TIMESERIES`:具备该权限的用户才被允许使用 UDF 进行查询 @@ -1559,17 +1559,17 @@ SHOW FUNCTIONS #### 内置UDF -1. [Aggregate Functions](../Operators-Functions/Aggregation.md) 聚合函数 -2. [Arithmetic Operators and Functions](../Operators-Functions/Mathematical.md) 算数函数 -3. [Comparison Operators and Functions](../Operators-Functions/Comparison.md) 比较函数 -4. [String Processing](../Operators-Functions/String.md) 字符串处理函数 -5. [Data Type Conversion Function](../Operators-Functions/Conversion.md) 数据类型转换函数 -6. [Constant Timeseries Generating Functions](../Operators-Functions/Constant.md) 常序列生成函数 -7. [Selector Functions](../Operators-Functions/Selection.md) 选择函数 -8. [Continuous Interval Functions](../Operators-Functions/Continuous-Interval.md) 区间查询函数 -9. [Variation Trend Calculation Functions](../Operators-Functions/Variation-Trend.md) 趋势计算函数 -10. [Sample Functions](../Operators-Functions/Sample.md) 采样函数 -11. [Time-Series](../Operators-Functions/Time-Series.md) 时间序列处理函数 +1. [Aggregate Functions](../Reference/Function-and-Expression.md#聚合函数) 聚合函数 +2. [Arithmetic Operators and Functions](../Reference/Function-and-Expression.md#算数运算符) 算数函数 +3. [Comparison Operators and Functions](../Reference/Function-and-Expression.md#比较运算符和函数) 比较函数 +4. [String Processing](../Reference/Function-and-Expression.md#字符串处理) 字符串处理函数 +5. [Data Type Conversion Function](../Reference/Function-and-Expression.md#数据类型转换) 数据类型转换函数 +6. [Constant Timeseries Generating Functions](../Reference/Function-and-Expression.md#常序列生成函数) 常序列生成函数 +7. [Selector Functions](../Reference/Function-and-Expression.md#选择函数) 选择函数 +8. [Continuous Interval Functions](../Reference/Function-and-Expression.md#区间查询函数) 区间查询函数 +9. [Variation Trend Calculation Functions](../Reference/Function-and-Expression.md#趋势计算函数) 趋势计算函数 +10. [Sample Functions](../Reference/Function-and-Expression.md#采样函数) 采样函数 +11. [Time-Series](../Reference/Function-and-Expression.md#时间序列处理) 时间序列处理函数 #### 数据质量函数库 diff --git a/src/zh/UserGuide/Master/User-Manual/IoTDB-Data-Pipe_timecho.md b/src/zh/UserGuide/Master/User-Manual/IoTDB-Data-Pipe_timecho.md index 5f784f5..8aa2568 100644 --- a/src/zh/UserGuide/Master/User-Manual/IoTDB-Data-Pipe_timecho.md +++ b/src/zh/UserGuide/Master/User-Manual/IoTDB-Data-Pipe_timecho.md @@ -78,7 +78,7 @@ > ❗️**注:目前的 IoTDB -> IoTDB 的数据订阅实现并不支持 DDL 同步** > -> 即:不支持 ttl,trigger,别名,模板,视图,创建/删除序列,创建/删除存储组等操作**IoTDB -> IoTDB 的数据订阅要求目标端 IoTDB:** +> 即:不支持 ttl,trigger,别名,模板,视图,创建/删除序列,创建/删除数据库等操作**IoTDB -> IoTDB 的数据订阅要求目标端 IoTDB:** > > * 开启自动创建元数据:需要人工配置数据类型的编码和压缩与发送端保持一致 > * 不开启自动创建元数据:手工创建与源端一致的元数据 diff --git a/src/zh/UserGuide/Master/User-Manual/Operate-Metadata.md b/src/zh/UserGuide/Master/User-Manual/Operate-Metadata.md index 54aea41..f21109b 100644 --- a/src/zh/UserGuide/Master/User-Manual/Operate-Metadata.md +++ b/src/zh/UserGuide/Master/User-Manual/Operate-Metadata.md @@ -524,7 +524,7 @@ IoTDB> alter device template t1 add (speed FLOAT encoding=RLE, FLOAT TEXT encodi ### 创建时间序列 -根据建立的数据模型,我们可以分别在两个存储组中创建相应的时间序列。创建时间序列的 SQL 语句如下所示: +根据建立的数据模型,我们可以分别在两个数据库中创建相应的时间序列。创建时间序列的 SQL 语句如下所示: ``` IoTDB > create timeseries root.ln.wf01.wt01.status with datatype=BOOLEAN,encoding=PLAIN @@ -793,7 +793,7 @@ create timeseries root.turbine.d1.s1(temprature) with datatype=FLOAT, encoding=R 括号里的`temprature`是`s1`这个传感器的别名。 我们可以在任何用到`s1`的地方,将其用`temprature`代替,这两者是等价的。 -> IoTDB 同时支持在查询语句中 [使用 AS 函数](../Reference/SQL-Reference.md#数据管理语句) 设置别名。二者的区别在于:AS 函数设置的别名用于替代整条时间序列名,且是临时的,不与时间序列绑定;而上文中的别名只作为传感器的别名,与其绑定且可与原传感器名等价使用。 +> IoTDB 同时支持在查询语句中使用 AS 函数设置别名。二者的区别在于:AS 函数设置的别名用于替代整条时间序列名,且是临时的,不与时间序列绑定;而上文中的别名只作为传感器的别名,与其绑定且可与原传感器名等价使用。 > 注意:额外的标签和属性信息总的大小不能超过`tag_attribute_total_size`. diff --git a/src/zh/UserGuide/Master/User-Manual/Operator-and-Expression.md b/src/zh/UserGuide/Master/User-Manual/Operator-and-Expression.md index 694c30d..dd9866e 100644 --- a/src/zh/UserGuide/Master/User-Manual/Operator-and-Expression.md +++ b/src/zh/UserGuide/Master/User-Manual/Operator-and-Expression.md @@ -23,51 +23,48 @@ ## 运算符 ### 算数运算符 - -| Operator | Meaning | -| -------- | ------------------------- | -| `+` | positive (unary operator) | -| `-` | negative (unary operator) | -| `*` | multiplication | -| `/` | division | -| `%` | modulo | -| `+` | addition | -| `-` | subtraction | - -更多见文档[Arithmetic Operators and Functions](../Operators-Functions/Mathematical.md)。 +|运算符 |含义| +|----------------------------|-----------| +|`+` |取正(单目)| +|`-` |取负(单目)| +|`*` |乘| +|`/` |除| +|`%` |取余| +|`+` |加| +|`-` |减| + +详细说明及示例见文档 [算数运算符和函数](../Reference/Function-and-Expression.md#算数运算符)。 ### 比较运算符 - -| Operator | Meaning | -| ------------------------- | ------------------------------------ | -| `>` | greater than | -| `>=` | greater than or equal to | -| `<` | less than | -| `<=` | less than or equal to | -| `==` | equal to | -| `!=` / `<>` | not equal to | -| `BETWEEN ... AND ...` | within the specified range | -| `NOT BETWEEN ... AND ...` | not within the specified range | -| `LIKE` | match simple pattern | -| `NOT LIKE` | cannot match simple pattern | -| `REGEXP` | match regular expression | -| `NOT REGEXP` | cannot match regular expression | -| `IS NULL` | is null | -| `IS NOT NULL` | is not null | -| `IN` / `CONTAINS` | is a value in the specified list | -| `NOT IN` / `NOT CONTAINS` | is not a value in the specified list | - -更多见文档[Comparison Operators and Functions](../Operators-Functions/Comparison.md)。 +|运算符 |含义| +|----------------------------|-----------| +|`>` |大于| +|`>=` |大于等于| +|`<` |小于| +|`<=` |小于等于| +|`==` |等于| +|`!=` / `<>` |不等于| +|`BETWEEN ... AND ...` |在指定范围内| +|`NOT BETWEEN ... AND ...` |不在指定范围内| +|`LIKE` |匹配简单模式| +|`NOT LIKE` |无法匹配简单模式| +|`REGEXP` |匹配正则表达式| +|`NOT REGEXP` |无法匹配正则表达式| +|`IS NULL` |是空值| +|`IS NOT NULL` |不是空值| +|`IN` / `CONTAINS` |是指定列表中的值| +|`NOT IN` / `NOT CONTAINS` |不是指定列表中的值| + +详细说明及示例见文档 [比较运算符和函数](../Reference/Function-and-Expression.md#比较运算符和函数)。 ### 逻辑运算符 +|运算符 |含义| +|----------------------------|-----------| +|`NOT` / `!` |取非(单目)| +|`AND` / `&` / `&&` |逻辑与| +|`OR`/ | / || |逻辑或| -| Operator | Meaning | -| ------------------ | --------------------------------- | -| `NOT` / `!` | logical negation (unary operator) | -| `AND` / `&` / `&&` | logical AND | -| `OR`/ \| / \|\| | logical OR | - -更多见文档[Logical Operators](../Operators-Functions/Logical.md)。 +详细说明及示例见文档 [逻辑运算符](../Reference/Function-and-Expression.md#逻辑运算符)。 ### 运算符优先级 @@ -105,7 +102,7 @@ OR, |, || | MAX_TIME | 求最大时间戳。 | 所有类型 | Timestamp | | MIN_TIME | 求最小时间戳。 | 所有类型 | Timestamp | -详细说明及示例见文档 [聚合函数](../Operators-Functions/Aggregation.md)。 +详细说明及示例见文档 [聚合函数](../Reference/Function-and-Expression.md#聚合函数)。 ### 数学函数 @@ -133,7 +130,7 @@ OR, |, || | SQRT | INT32 / INT64 / FLOAT / DOUBLE | DOUBLE | | Math#sqrt(double) | -详细说明及示例见文档 [算数运算符和函数](../Operators-Functions/Mathematical.md)。 +详细说明及示例见文档 [数学函数](../Reference/Function-and-Expression.md#数学函数)。 ### 比较函数 @@ -142,7 +139,7 @@ OR, |, || | ON_OFF | INT32 / INT64 / FLOAT / DOUBLE | `threshold`:DOUBLE | BOOLEAN | 返回`ts_value >= threshold`的bool值 | | IN_RANGE | INT32 / INT64 / FLOAT / DOUBLE | `lower`:DOUBLE<br/>`upper`:DOUBLE | BOOLEAN | 返回`ts_value >= lower && ts_value <= upper`的bool值 | | -详细说明及示例见文档 [比较运算符和函数](./Comparison.md)。 +详细说明及示例见文档 [比较运算符和函数](../Reference/Function-and-Expression.md#比较运算符和函数)。 ### 字符串函数 @@ -162,7 +159,7 @@ OR, |, || | TRIM | TEXT | 无 | TEXT | 移除字符串前后的空格 | | STRCMP | TEXT | 无 | TEXT | 用于比较两个输入序列,如果值相同返回 `0` , 序列1的值小于序列2的值返回一个`负数`,序列1的值大于序列2的值返回一个`正数` | -详细说明及示例见文档 [字符串处理函数](../Operators-Functions/String.md)。 +详细说明及示例见文档 [字符串处理函数](../Reference/Function-and-Expression.md#字符串处理)。 ### 数据类型转换函数 @@ -170,7 +167,7 @@ OR, |, || | ------ | ------------------------------------------------------------ | ------------------------ | ---------------------------------- | | CAST | `type`:输出的数据点的类型,只能是 INT32 / INT64 / FLOAT / DOUBLE / BOOLEAN / TEXT | 由输入属性参数`type`决定 | 将数据转换为`type`参数指定的类型。 | -详细说明及示例见文档 [数据类型转换](../Operators-Functions/Conversion.md)。 +详细说明及示例见文档 [数据类型转换](../Reference/Function-and-Expression.md#数据类型转换)。 ### 常序列生成函数 @@ -180,7 +177,7 @@ OR, |, || | PI | 无 | DOUBLE | 常序列的值:`π` 的 `double` 值,圆的周长与其直径的比值,即圆周率,等于 *Java标准库* 中的`Math.PI`。 | | E | 无 | DOUBLE | 常序列的值:`e` 的 `double` 值,自然对数的底,它等于 *Java 标准库* 中的 `Math.E`。 | -详细说明及示例见文档 [常序列生成函数](../Operators-Functions/Constant.md)。 +详细说明及示例见文档 [常序列生成函数](../Reference/Function-and-Expression.md#常序列生成函数)。 ### 选择函数 @@ -189,7 +186,7 @@ OR, |, || | TOP_K | INT32 / INT64 / FLOAT / DOUBLE / TEXT | `k`: 最多选择的数据点数,必须大于 0 小于等于 1000 | 与输入序列的实际类型一致 | 返回某时间序列中值最大的`k`个数据点。若多于`k`个数据点的值并列最大,则返回时间戳最小的数据点。 | | BOTTOM_K | INT32 / INT64 / FLOAT / DOUBLE / TEXT | `k`: 最多选择的数据点数,必须大于 0 小于等于 1000 | 与输入序列的实际类型一致 | 返回某时间序列中值最小的`k`个数据点。若多于`k`个数据点的值并列最小,则返回时间戳最小的数据点。 | -详细说明及示例见文档 [选择函数](../Operators-Functions/Selection.md)。 +详细说明及示例见文档 [选择函数](../Reference/Function-and-Expression.md#选择函数)。 ### 区间查询函数 @@ -200,7 +197,7 @@ OR, |, || | ZERO_COUNT | INT32/ INT64/ FLOAT/ DOUBLE/ BOOLEAN | `min`:可选,默认值1<br>`max`:可选,默认值`Long.MAX_VALUE` | Long | 返回时间序列连续为0(false)的开始时间与其后数据点的个数,数据点个数n满足`n >= min && n <= max` | | | NON_ZERO_COUNT | INT32/ INT64/ FLOAT/ DOUBLE/ BOOLEAN | `min`:可选,默认值1<br>`max`:可选,默认值`Long.MAX_VALUE` | Long | 返回时间序列连续不为0(false)的开始时间与其后数据点的个数,数据点个数n满足`n >= min && n <= max` | | -详细说明及示例见文档 [区间查询函数](../Operators-Functions/Continuous-Interval.md)。 +详细说明及示例见文档 [区间查询函数](../Reference/Function-and-Expression.md#区间查询函数)。 ### 趋势计算函数 @@ -217,7 +214,7 @@ OR, |, || |------|--------------------------------|------------------------------------------------------------------------------------------------------------------------|--------|------------------------------------------------| | DIFF | INT32 / INT64 / FLOAT / DOUBLE | `ignoreNull`:可选,默认为true;为true时,前一个数据点值为null时,忽略该数据点继续向前找到第一个出现的不为null的值;为false时,如果前一个数据点为null,则不忽略,使用null进行相减,结果也为null | DOUBLE | 统计序列中某数据点的值与前一数据点的值的差。第一个数据点没有对应的结果输出,输出值为null | -详细说明及示例见文档 [趋势计算函数](../Operators-Functions/Variation-Trend.md)。 +详细说明及示例见文档 [趋势计算函数](../Reference/Function-and-Expression.md#趋势计算函数)。 ### 采样函数 @@ -235,7 +232,7 @@ OR, |, || | ------------- | ------------------------------ | ---- | ------------------------ | -------------------------- | | CHANGE_POINTS | INT32 / INT64 / FLOAT / DOUBLE | / | 与输入序列的实际类型一致 | 去除输入序列中的连续相同值 | -详细说明及示例见文档 [时间序列处理](../Operators-Functions/Time-Series.md) +详细说明及示例见文档 [时间序列处理](../Reference/Function-and-Expression.md#时间序列处理)。 ## 数据质量函数库 @@ -254,14 +251,14 @@ OR, |, || ### 已经实现的函数 -1. [Data-Quality](../Operators-Functions/Data-Quality.md) 数据质量 -2. [Data-Profiling](../Operators-Functions/Data-Profiling.md) 数据画像 -3. [Anomaly-Detection](../Operators-Functions/Anomaly-Detection.md) 异常检测 -4. [Frequency-Domain](../Operators-Functions/Frequency-Domain.md) 频域分析 -5. [Data-Matching](../Operators-Functions/Data-Matching.md) 数据匹配 -6. [Data-Repairing](../Operators-Functions/Data-Repairing.md) 数据修复 -7. [Series-Discovery](../Operators-Functions/Series-Discovery.md) 序列发现 -8. [Machine-Learning](../Operators-Functions/Machine-Learning.md) 机器学习 +1. [Data-Quality](../Reference/UDF-Libraries.md#数据质量) 数据质量 +2. [Data-Profiling](../Reference/UDF-Libraries.md#数据画像) 数据画像 +3. [Anomaly-Detection](../Reference/UDF-Libraries.md#异常检测) 异常检测 +4. [Frequency-Domain](../Reference/UDF-Libraries.md#频域分析) 频域分析 +5. [Data-Matching](../Reference/UDF-Libraries.md#数据匹配) 数据匹配 +6. [Data-Repairing](../Reference/UDF-Libraries.md#数据修复) 数据修复 +7. [Series-Discovery](../Reference/UDF-Libraries.md#序列发现) 序列发现 +8. [Machine-Learning](../Reference/UDF-Libraries.md#机器学习) 机器学习 ## Lambda 表达式 diff --git a/src/zh/UserGuide/Master/stage/Edge-Cloud-Collaboration/Sync-Tool.md b/src/zh/UserGuide/Master/stage/Edge-Cloud-Collaboration/Sync-Tool.md index 78ea9ad..3ee4abe 100644 --- a/src/zh/UserGuide/Master/stage/Edge-Cloud-Collaboration/Sync-Tool.md +++ b/src/zh/UserGuide/Master/stage/Edge-Cloud-Collaboration/Sync-Tool.md @@ -220,7 +220,7 @@ IoTDB> DROP PIPE <PipeName> - `attributes`:Pipe属性 - 当 role 为 sender 时,这一字段值为 Pipe 的同步起始时间和是否同步删除操作 - - 当 role 为 receiver 时,这一字段值为当前 DataNode 上创建的同步连接对应的存储组名称 + - 当 role 为 receiver 时,这一字段值为当前 DataNode 上创建的同步连接对应的数据库名称 - `message`:Pipe运行信息,当 Pipe 正常运行时,这一字段通常为NORMAL,当出现异常时,可能出现两种状态: - WARN 状态,这表明发生了数据丢失或者其他错误,但是 Pipe 会保持运行 diff --git a/src/zh/UserGuide/Master/stage/Operate-Metadata/Timeseries.md b/src/zh/UserGuide/Master/stage/Operate-Metadata/Timeseries.md index a630312..d8c31c3 100644 --- a/src/zh/UserGuide/Master/stage/Operate-Metadata/Timeseries.md +++ b/src/zh/UserGuide/Master/stage/Operate-Metadata/Timeseries.md @@ -23,7 +23,7 @@ ## 创建时间序列 -根据建立的数据模型,我们可以分别在两个存储组中创建相应的时间序列。创建时间序列的 SQL 语句如下所示: +根据建立的数据模型,我们可以分别在两个数据库中创建相应的时间序列。创建时间序列的 SQL 语句如下所示: ``` IoTDB > create timeseries root.ln.wf01.wt01.status with datatype=BOOLEAN,encoding=PLAIN diff --git a/src/zh/UserGuide/latest/Deployment-and-Maintenance/Deployment-Guide_timecho.md b/src/zh/UserGuide/latest/Deployment-and-Maintenance/Deployment-Guide_timecho.md index 490bdc1..7c3c50a 100644 --- a/src/zh/UserGuide/latest/Deployment-and-Maintenance/Deployment-Guide_timecho.md +++ b/src/zh/UserGuide/latest/Deployment-and-Maintenance/Deployment-Guide_timecho.md @@ -822,7 +822,7 @@ mvn clean package -pl distribution -am -DskipTests ##### 通用配置 打开通用配置文件 ./conf/iotdb-common.properties, -可根据 [部署推荐](https://iotdb.apache.org/zh/UserGuide/Master/Cluster/Deployment-Recommendation.html) +可根据 [部署推荐](./Deployment-Recommendation.md) 设置以下参数: | **配置项** | **说明** | **默认** | @@ -895,7 +895,7 @@ mvn clean package -pl distribution -am -DskipTests | data\_replication\_factor | 已设置为期望的数据副本数 | | data\_region\_consensus\_protocol\_class | 已设置为期望的共识协议 | -**注意:** 请根据[部署推荐](https://iotdb.apache.org/zh/UserGuide/Master/Cluster/Deployment-Recommendation.html)配置合适的通用参数,这些参数在首次配置后即不可修改。 +**注意:** 请根据[部署推荐](./Deployment-Recommendation.md)配置合适的通用参数,这些参数在首次配置后即不可修改。 接着请打开它的配置文件 ./conf/iotdb-confignode.properties,并检查如下参数: diff --git a/src/zh/UserGuide/latest/Reference/Function-and-Expression.md b/src/zh/UserGuide/latest/Reference/Function-and-Expression.md index 6bfbd46..aa4f4ec 100644 --- a/src/zh/UserGuide/latest/Reference/Function-and-Expression.md +++ b/src/zh/UserGuide/latest/Reference/Function-and-Expression.md @@ -807,11 +807,11 @@ IoTDB> select a, b, a > 10, a <= b, !(a <= b), a > 10 && a > b from root.test; --> -# 字符串处理 +## 字符串处理 -## STRING_CONTAINS +### STRING_CONTAINS -### 函数简介 +#### 函数简介 本函数判断字符串中是否存在子串 `s` @@ -824,7 +824,7 @@ IoTDB> select a, b, a > 10, a <= b, !(a <= b), a > 10 && a > b from root.test; **输出序列:** 输出单个序列,类型为 BOOLEAN。 -### 使用示例 +#### 使用示例 ``` sql select s1, string_contains(s1, 's'='warn') from root.sg1.d4; @@ -844,9 +844,9 @@ Total line number = 3 It costs 0.007s ``` -## STRING_MATCHES +### STRING_MATCHES -### 函数简介 +#### 函数简介 本函数判断字符串是否能够被正则表达式`regex`匹配。 @@ -859,7 +859,7 @@ It costs 0.007s **输出序列:** 输出单个序列,类型为 BOOLEAN。 -### 使用示例 +#### 使用示例 ``` sql select s1, string_matches(s1, 'regex'='[^\\s]+37229') from root.sg1.d4; @@ -879,9 +879,9 @@ Total line number = 3 It costs 0.007s ``` -## Length +### Length -### 函数简介 +#### 函数简介 本函数用于获取输入序列的长度。 @@ -893,7 +893,7 @@ It costs 0.007s **提示:** 如果输入是NULL,返回NULL。 -### 使用示例 +#### 使用示例 输入序列: @@ -923,9 +923,9 @@ select s1, length(s1) from root.sg1.d1 +-----------------------------+--------------+----------------------+ ``` -## Locate +### Locate -### 函数简介 +#### 函数简介 本函数用于获取`target`子串第一次出现在输入序列的位置,如果输入序列中不包含`target`则返回 -1 。 @@ -942,7 +942,7 @@ select s1, length(s1) from root.sg1.d1 **提示:** 下标从 0 开始。 -### 使用示例 +#### 使用示例 输入序列: @@ -989,9 +989,9 @@ select s1, locate(s1, "target"="1", "reverse"="true") from root.sg1.d1 +-----------------------------+--------------+------------------------------------------------------+ ``` -## StartsWith +### StartsWith -### 函数简介 +#### 函数简介 本函数用于判断输入序列是否有指定前缀。 @@ -1006,7 +1006,7 @@ select s1, locate(s1, "target"="1", "reverse"="true") from root.sg1.d1 **提示:** 如果输入是NULL,返回NULL。 -### 使用示例 +#### 使用示例 输入序列: @@ -1036,9 +1036,9 @@ select s1, startswith(s1, "target"="1") from root.sg1.d1 +-----------------------------+--------------+----------------------------------------+ ``` -## EndsWith +### EndsWith -### 函数简介 +#### 函数简介 本函数用于判断输入序列是否有指定后缀。 @@ -1053,7 +1053,7 @@ select s1, startswith(s1, "target"="1") from root.sg1.d1 **提示:** 如果输入是NULL,返回NULL。 -### 使用示例 +#### 使用示例 输入序列: @@ -1083,9 +1083,9 @@ select s1, endswith(s1, "target"="1") from root.sg1.d1 +-----------------------------+--------------+--------------------------------------+ ``` -## Concat +### Concat -### 函数简介 +#### 函数简介 本函数用于拼接输入序列和`target`字串。 @@ -1104,7 +1104,7 @@ select s1, endswith(s1, "target"="1") from root.sg1.d1 + 函数只能将输入序列和`targets`区分开各自拼接。`concat(s1, "target1"="IoT", s2, "target2"="DB")`和 `concat(s1, s2, "target1"="IoT", "target2"="DB")`得到的结果是一样的。 -### 使用示例 +#### 使用示例 输入序列: @@ -1151,9 +1151,9 @@ select s1, s2, concat(s1, s2, "target1"="IoT", "target2"="DB", "series_behind"=" +-----------------------------+--------------+--------------+-----------------------------------------------------------------------------------------------+ ``` -## Substring +### Substring -### 函数简介 +#### 函数简介 提取字符串的子字符串,从指定的第一个字符开始,并在指定的字符数之后停止。下标从1开始。from 和 for的范围是 INT32 类型取值范围。 **函数名:** SUBSTRING @@ -1169,7 +1169,7 @@ select s1, s2, concat(s1, s2, "target1"="IoT", "target2"="DB", "series_behind"=" **提示:** 如果输入是NULL,返回NULL。 -### 使用示例 +#### 使用示例 输入序列: @@ -1199,9 +1199,9 @@ select s1, substring(s1 from 1 for 2) from root.sg1.d1 +-----------------------------+--------------+--------------------------------------+ ``` -## Replace +### Replace -### 函数简介 +#### 函数简介 将输入序列中的子串替换成目标子串。 **函数名:** REPLACE @@ -1217,7 +1217,7 @@ select s1, substring(s1 from 1 for 2) from root.sg1.d1 **提示:** 如果输入是NULL,返回NULL。 -### 使用示例 +#### 使用示例 输入序列: @@ -1247,9 +1247,9 @@ select s1, replace(s1, 'es', 'tt') from root.sg1.d1 +-----------------------------+--------------+-----------------------------------+ ``` -## Upper +### Upper -### 函数简介 +#### 函数简介 本函数用于将输入序列转化为大写。 @@ -1261,7 +1261,7 @@ select s1, replace(s1, 'es', 'tt') from root.sg1.d1 **提示:** 如果输入是NULL,返回NULL。 -### 使用示例 +#### 使用示例 输入序列: @@ -1291,9 +1291,9 @@ select s1, upper(s1) from root.sg1.d1 +-----------------------------+--------------+---------------------+ ``` -## Lower +### Lower -### 函数简介 +#### 函数简介 本函数用于将输入序列转换为小写。 @@ -1305,7 +1305,7 @@ select s1, upper(s1) from root.sg1.d1 **提示:** 如果输入是NULL,返回NULL。 -### 使用示例 +#### 使用示例 输入序列: @@ -1335,9 +1335,9 @@ select s1, lower(s1) from root.sg1.d1 +-----------------------------+--------------+---------------------+ ``` -## Trim +### Trim -### 函数简介 +#### 函数简介 本函数用于移除输入序列前后的空格。 @@ -1349,7 +1349,7 @@ select s1, lower(s1) from root.sg1.d1 **提示:** 如果输入是NULL,返回NULL。 -### 使用示例 +#### 使用示例 输入序列: @@ -1379,9 +1379,9 @@ select s3, trim(s3) from root.sg1.d1 +-----------------------------+--------------+--------------------+ ``` -## StrCmp +### StrCmp -### 函数简介 +#### 函数简介 本函数用于比较两个输入序列。 如果值相同返回 `0` , 序列1的值小于序列2的值返回一个`负数`,序列1的值大于序列2的值返回一个`正数`。 @@ -1393,7 +1393,7 @@ select s3, trim(s3) from root.sg1.d1 **提示:** 如果任何一个输入是NULL,返回NULL。 -### 使用示例 +#### 使用示例 输入序列: @@ -1423,9 +1423,9 @@ select s1, s2, strcmp(s1, s2) from root.sg1.d1 +-----------------------------+--------------+--------------+--------------------------------------+ ``` -## StrReplace +### StrReplace -### 函数简介 +#### 函数简介 **非内置函数,需要注册数据质量函数库后才能使用**。本函数用于将文本中的子串替换为指定的字符串。 @@ -1443,7 +1443,7 @@ select s1, s2, strcmp(s1, s2) from root.sg1.d1 **输出序列:** 输出单个序列,类型为 TEXT。 -### 使用示例 +#### 使用示例 输入序列: @@ -1501,9 +1501,9 @@ select strreplace(s1, "target"=",", "replace"="/", "limit"="1", "offset"="1", "r +-----------------------------+-----------------------------------------------------+ ``` -## RegexMatch +### RegexMatch -### 函数简介 +#### 函数简介 **非内置函数,需要注册数据质量函数库后才能使用**。本函数用于正则表达式匹配文本中的具体内容并返回。 @@ -1521,7 +1521,7 @@ select strreplace(s1, "target"=",", "replace"="/", "limit"="1", "offset"="1", "r **提示:** 空值或无法匹配给定的正则表达式的数据点没有输出结果。 -### 使用示例 +#### 使用示例 输入序列: @@ -1558,9 +1558,9 @@ select regexmatch(s1, "regex"="\d+\.\d+\.\d+\.\d+", "group"="0") from root.test. +-----------------------------+----------------------------------------------------------------------+ ``` -## RegexReplace +### RegexReplace -#### 函数简介 +##### 函数简介 **非内置函数,需要注册数据质量函数库后才能使用**。本函数用于将文本中符合正则表达式的匹配结果替换为指定的字符串。 @@ -1579,7 +1579,7 @@ select regexmatch(s1, "regex"="\d+\.\d+\.\d+\.\d+", "group"="0") from root.test. **输出序列:** 输出单个序列,类型为 TEXT。 -#### 使用示例 +##### 使用示例 输入序列: @@ -1616,9 +1616,9 @@ select regexreplace(s1, "regex"="192\.168\.0\.(\d+)", "replace"="cluster-$1", "l +-----------------------------+-----------------------------------------------------------+ ``` -### RegexSplit +#### RegexSplit -#### 函数简介 +##### 函数简介 **非内置函数,需要注册数据质量函数库后才能使用**。本函数用于使用给定的正则表达式切分文本,并返回指定的项。 @@ -1635,7 +1635,7 @@ select regexreplace(s1, "regex"="192\.168\.0\.(\d+)", "replace"="cluster-$1", "l **提示:** 如果`index`超出了切分后结果数组的秩范围,例如使用`,`切分`0,1,2`时输入`index`为 3,则该数据点没有输出结果。 -#### 使用示例 +##### 使用示例 输入序列: diff --git a/src/zh/UserGuide/latest/Tools-System/Benchmark.md b/src/zh/UserGuide/latest/Tools-System/Benchmark.md index 3fc43de..81fbb2d 100644 --- a/src/zh/UserGuide/latest/Tools-System/Benchmark.md +++ b/src/zh/UserGuide/latest/Tools-System/Benchmark.md @@ -147,7 +147,7 @@ IoT-benchmark 是基于 Java 和大数据环境开发的时序数据库基准测 | 参数名称 | 类型 | 示例 | 系统描述 | | -------------------------- | ------ | ------------------------- | ------------------------------------------------------------ | | CLIENT_NUMBER | 整数 | 100 | 客户端总数 | -| GROUP_NUMBER | 整数 | 20 | 存储组的数量;仅针对IoTDB。 | +| GROUP_NUMBER | 整数 | 20 | 数据库的数量;仅针对IoTDB。 | | DEVICE_NUMBER | 整数 | 100 | 设备总数 | | SENSOR_NUMBER | 整数 | 300 | 每个设备的传感器总数 | | INSERT_DATATYPE_PROPORTION | 字符串 | 1:1:1:1:1:1 | 设备的数据类型比例,BOOLEAN:INT32:INT64:FLOAT:DOUBLE:TEXT | diff --git a/src/zh/UserGuide/latest/User-Manual/Data-Sync.md b/src/zh/UserGuide/latest/User-Manual/Data-Sync.md index 77ffd3f..c829de2 100644 --- a/src/zh/UserGuide/latest/User-Manual/Data-Sync.md +++ b/src/zh/UserGuide/latest/User-Manual/Data-Sync.md @@ -72,7 +72,7 @@ > ❗️**注:目前的 IoTDB -> IoTDB 的数据同步实现并不支持 DDL 同步** > -> 即:不支持 ttl,trigger,别名,模板,视图,创建/删除序列,创建/删除存储组等操作 +> 即:不支持 ttl,trigger,别名,模板,视图,创建/删除序列,创建/删除数据库等操作 > > **IoTDB -> IoTDB 的数据同步要求目标端 IoTDB:** > diff --git a/src/zh/UserGuide/latest/User-Manual/Database-Programming.md b/src/zh/UserGuide/latest/User-Manual/Database-Programming.md index 3ac70b4..775301b 100644 --- a/src/zh/UserGuide/latest/User-Manual/Database-Programming.md +++ b/src/zh/UserGuide/latest/User-Manual/Database-Programming.md @@ -1559,17 +1559,17 @@ SHOW FUNCTIONS #### 内置UDF -1. [Aggregate Functions](../Operators-Functions/Aggregation.md) 聚合函数 -2. [Arithmetic Operators and Functions](../Operators-Functions/Mathematical.md) 算数函数 -3. [Comparison Operators and Functions](../Operators-Functions/Comparison.md) 比较函数 -4. [String Processing](../Operators-Functions/String.md) 字符串处理函数 -5. [Data Type Conversion Function](../Operators-Functions/Conversion.md) 数据类型转换函数 -6. [Constant Timeseries Generating Functions](../Operators-Functions/Constant.md) 常序列生成函数 -7. [Selector Functions](../Operators-Functions/Selection.md) 选择函数 -8. [Continuous Interval Functions](../Operators-Functions/Continuous-Interval.md) 区间查询函数 -9. [Variation Trend Calculation Functions](../Operators-Functions/Variation-Trend.md) 趋势计算函数 -10. [Sample Functions](../Operators-Functions/Sample.md) 采样函数 -11. [Time-Series](../Operators-Functions/Time-Series.md) 时间序列处理函数 +1. [Aggregate Functions](../Reference/Function-and-Expression.md#聚合函数) 聚合函数 +2. [Arithmetic Operators and Functions](../Reference/Function-and-Expression.md#算数运算符) 算数函数 +3. [Comparison Operators and Functions](../Reference/Function-and-Expression.md#比较运算符和函数) 比较函数 +4. [String Processing](../Reference/Function-and-Expression.md#字符串处理) 字符串处理函数 +5. [Data Type Conversion Function](../Reference/Function-and-Expression.md#数据类型转换) 数据类型转换函数 +6. [Constant Timeseries Generating Functions](../Reference/Function-and-Expression.md#常序列生成函数) 常序列生成函数 +7. [Selector Functions](../Reference/Function-and-Expression.md#选择函数) 选择函数 +8. [Continuous Interval Functions](../Reference/Function-and-Expression.md#区间查询函数) 区间查询函数 +9. [Variation Trend Calculation Functions](../Reference/Function-and-Expression.md#趋势计算函数) 趋势计算函数 +10. [Sample Functions](../Reference/Function-and-Expression.md#采样函数) 采样函数 +11. [Time-Series](../Reference/Function-and-Expression.md#时间序列处理) 时间序列处理函数 #### 数据质量函数库 diff --git a/src/zh/UserGuide/latest/User-Manual/IoTDB-Data-Pipe_timecho.md b/src/zh/UserGuide/latest/User-Manual/IoTDB-Data-Pipe_timecho.md index 5f784f5..8aa2568 100644 --- a/src/zh/UserGuide/latest/User-Manual/IoTDB-Data-Pipe_timecho.md +++ b/src/zh/UserGuide/latest/User-Manual/IoTDB-Data-Pipe_timecho.md @@ -78,7 +78,7 @@ > ❗️**注:目前的 IoTDB -> IoTDB 的数据订阅实现并不支持 DDL 同步** > -> 即:不支持 ttl,trigger,别名,模板,视图,创建/删除序列,创建/删除存储组等操作**IoTDB -> IoTDB 的数据订阅要求目标端 IoTDB:** +> 即:不支持 ttl,trigger,别名,模板,视图,创建/删除序列,创建/删除数据库等操作**IoTDB -> IoTDB 的数据订阅要求目标端 IoTDB:** > > * 开启自动创建元数据:需要人工配置数据类型的编码和压缩与发送端保持一致 > * 不开启自动创建元数据:手工创建与源端一致的元数据 diff --git a/src/zh/UserGuide/latest/User-Manual/Operate-Metadata.md b/src/zh/UserGuide/latest/User-Manual/Operate-Metadata.md index b76f130..f21109b 100644 --- a/src/zh/UserGuide/latest/User-Manual/Operate-Metadata.md +++ b/src/zh/UserGuide/latest/User-Manual/Operate-Metadata.md @@ -383,12 +383,12 @@ show devices root.sg1.** ``` ```shell -+---------------+---------+ -| devices|isAligned| -+---------------+---------+ -| root.sg1.d1| false| -| root.sg1.d2| true| -+---------------+---------+ ++---------------+---------+---------+ +| devices|isAligned| Template| ++---------------+---------+---------+ +| root.sg1.d1| false| null| +| root.sg1.d2| true| null| ++---------------+---------+---------+ ``` ### 查看设备模板 @@ -524,7 +524,7 @@ IoTDB> alter device template t1 add (speed FLOAT encoding=RLE, FLOAT TEXT encodi ### 创建时间序列 -根据建立的数据模型,我们可以分别在两个存储组中创建相应的时间序列。创建时间序列的 SQL 语句如下所示: +根据建立的数据模型,我们可以分别在两个数据库中创建相应的时间序列。创建时间序列的 SQL 语句如下所示: ``` IoTDB > create timeseries root.ln.wf01.wt01.status with datatype=BOOLEAN,encoding=PLAIN @@ -793,7 +793,7 @@ create timeseries root.turbine.d1.s1(temprature) with datatype=FLOAT, encoding=R 括号里的`temprature`是`s1`这个传感器的别名。 我们可以在任何用到`s1`的地方,将其用`temprature`代替,这两者是等价的。 -> IoTDB 同时支持在查询语句中 [使用 AS 函数](../Reference/SQL-Reference.md#数据管理语句) 设置别名。二者的区别在于:AS 函数设置的别名用于替代整条时间序列名,且是临时的,不与时间序列绑定;而上文中的别名只作为传感器的别名,与其绑定且可与原传感器名等价使用。 +> IoTDB 同时支持在查询语句中使用 AS 函数设置别名。二者的区别在于:AS 函数设置的别名用于替代整条时间序列名,且是临时的,不与时间序列绑定;而上文中的别名只作为传感器的别名,与其绑定且可与原传感器名等价使用。 > 注意:额外的标签和属性信息总的大小不能超过`tag_attribute_total_size`. @@ -1067,6 +1067,8 @@ It costs 0.002s * `SHOW DEVICES` 语句显示当前所有的设备信息,等价于 `SHOW DEVICES root.**`。 * `SHOW DEVICES <PathPattern>` 语句规定了 `PathPattern`,返回给定的路径模式所匹配的设备信息。 * `WHERE` 条件中可以使用 `DEVICE contains 'xxx'`,根据 device 名称进行模糊查询。 +* `WHERE` 条件中可以使用 `TEMPLATE = 'xxx'`,`TEMPLATE != 'xxx'`,根据 template 名称进行过滤查询。 +* `WHERE` 条件中可以使用 `TEMPLATE is null`,`TEMPLATE is not null`,根据 template 是否为null(null 表示没激活)进行过滤查询。 SQL 语句如下所示: @@ -1081,23 +1083,23 @@ IoTDB> show devices root.ln.** where template is null 你可以获得如下数据: ``` -+-------------------+---------+ -| devices|isAligned| -+-------------------+---------+ -| root.ln.wf01.wt01| false| -| root.ln.wf02.wt02| false| -|root.sgcc.wf03.wt01| false| -| root.turbine.d1| false| -+-------------------+---------+ ++-------------------+---------+---------+ +| devices|isAligned| Template| ++-------------------+---------+---------+ +| root.ln.wf01.wt01| false| t1| +| root.ln.wf02.wt02| false| null| +|root.sgcc.wf03.wt01| false| null| +| root.turbine.d1| false| null| ++-------------------+---------+---------+ Total line number = 4 It costs 0.002s -+-----------------+---------+ -| devices|isAligned| -+-----------------+---------+ -|root.ln.wf01.wt01| false| -|root.ln.wf02.wt02| false| -+-----------------+---------+ ++-----------------+---------+---------+ +| devices|isAligned| Template| ++-----------------+---------+---------+ +|root.ln.wf01.wt01| false| t1| +|root.ln.wf02.wt02| false| null| ++-----------------+---------+---------+ Total line number = 2 It costs 0.001s @@ -1128,6 +1130,7 @@ It costs 0.001s ``` 其中,`isAligned`表示该设备下的时间序列是否对齐, +`Template`显示着该设备所激活的模板名,null 表示没有激活模板。 查看设备及其 database 信息,可以使用 `SHOW DEVICES WITH DATABASE` 语句。 @@ -1144,23 +1147,23 @@ IoTDB> show devices root.ln.** with database 你可以获得如下数据: ``` -+-------------------+-------------+---------+ -| devices| database|isAligned| -+-------------------+-------------+---------+ -| root.ln.wf01.wt01| root.ln| false| -| root.ln.wf02.wt02| root.ln| false| -|root.sgcc.wf03.wt01| root.sgcc| false| -| root.turbine.d1| root.turbine| false| -+-------------------+-------------+---------+ ++-------------------+-------------+---------+---------+ +| devices| database|isAligned| Template| ++-------------------+-------------+---------+---------+ +| root.ln.wf01.wt01| root.ln| false| t1| +| root.ln.wf02.wt02| root.ln| false| null| +|root.sgcc.wf03.wt01| root.sgcc| false| null| +| root.turbine.d1| root.turbine| false| null| ++-------------------+-------------+---------+---------+ Total line number = 4 It costs 0.003s -+-----------------+-------------+---------+ -| devices| database|isAligned| -+-----------------+-------------+---------+ -|root.ln.wf01.wt01| root.ln| false| -|root.ln.wf02.wt02| root.ln| false| -+-----------------+-------------+---------+ ++-----------------+-------------+---------+---------+ +| devices| database|isAligned| Template| ++-----------------+-------------+---------+---------+ +|root.ln.wf01.wt01| root.ln| false| t1| +|root.ln.wf02.wt02| root.ln| false| null| ++-----------------+-------------+---------+---------+ Total line number = 2 It costs 0.001s ``` @@ -1182,14 +1185,14 @@ IoTDB> count devices root.ln.** 你可以获得如下数据: ``` -+-------------------+---------+ -| devices|isAligned| -+-------------------+---------+ -|root.sgcc.wf03.wt03| false| -| root.turbine.d1| false| -| root.ln.wf02.wt02| false| -| root.ln.wf01.wt01| false| -+-------------------+---------+ ++-------------------+---------+---------+ +| devices|isAligned| Template| ++-------------------+---------+---------+ +|root.sgcc.wf03.wt03| false| null| +| root.turbine.d1| false| null| +| root.ln.wf02.wt02| false| null| +| root.ln.wf01.wt01| false| t1| ++-------------------+---------+---------+ Total line number = 4 It costs 0.024s diff --git a/src/zh/UserGuide/latest/User-Manual/Operator-and-Expression.md b/src/zh/UserGuide/latest/User-Manual/Operator-and-Expression.md index 694c30d..dd9866e 100644 --- a/src/zh/UserGuide/latest/User-Manual/Operator-and-Expression.md +++ b/src/zh/UserGuide/latest/User-Manual/Operator-and-Expression.md @@ -23,51 +23,48 @@ ## 运算符 ### 算数运算符 - -| Operator | Meaning | -| -------- | ------------------------- | -| `+` | positive (unary operator) | -| `-` | negative (unary operator) | -| `*` | multiplication | -| `/` | division | -| `%` | modulo | -| `+` | addition | -| `-` | subtraction | - -更多见文档[Arithmetic Operators and Functions](../Operators-Functions/Mathematical.md)。 +|运算符 |含义| +|----------------------------|-----------| +|`+` |取正(单目)| +|`-` |取负(单目)| +|`*` |乘| +|`/` |除| +|`%` |取余| +|`+` |加| +|`-` |减| + +详细说明及示例见文档 [算数运算符和函数](../Reference/Function-and-Expression.md#算数运算符)。 ### 比较运算符 - -| Operator | Meaning | -| ------------------------- | ------------------------------------ | -| `>` | greater than | -| `>=` | greater than or equal to | -| `<` | less than | -| `<=` | less than or equal to | -| `==` | equal to | -| `!=` / `<>` | not equal to | -| `BETWEEN ... AND ...` | within the specified range | -| `NOT BETWEEN ... AND ...` | not within the specified range | -| `LIKE` | match simple pattern | -| `NOT LIKE` | cannot match simple pattern | -| `REGEXP` | match regular expression | -| `NOT REGEXP` | cannot match regular expression | -| `IS NULL` | is null | -| `IS NOT NULL` | is not null | -| `IN` / `CONTAINS` | is a value in the specified list | -| `NOT IN` / `NOT CONTAINS` | is not a value in the specified list | - -更多见文档[Comparison Operators and Functions](../Operators-Functions/Comparison.md)。 +|运算符 |含义| +|----------------------------|-----------| +|`>` |大于| +|`>=` |大于等于| +|`<` |小于| +|`<=` |小于等于| +|`==` |等于| +|`!=` / `<>` |不等于| +|`BETWEEN ... AND ...` |在指定范围内| +|`NOT BETWEEN ... AND ...` |不在指定范围内| +|`LIKE` |匹配简单模式| +|`NOT LIKE` |无法匹配简单模式| +|`REGEXP` |匹配正则表达式| +|`NOT REGEXP` |无法匹配正则表达式| +|`IS NULL` |是空值| +|`IS NOT NULL` |不是空值| +|`IN` / `CONTAINS` |是指定列表中的值| +|`NOT IN` / `NOT CONTAINS` |不是指定列表中的值| + +详细说明及示例见文档 [比较运算符和函数](../Reference/Function-and-Expression.md#比较运算符和函数)。 ### 逻辑运算符 +|运算符 |含义| +|----------------------------|-----------| +|`NOT` / `!` |取非(单目)| +|`AND` / `&` / `&&` |逻辑与| +|`OR`/ | / || |逻辑或| -| Operator | Meaning | -| ------------------ | --------------------------------- | -| `NOT` / `!` | logical negation (unary operator) | -| `AND` / `&` / `&&` | logical AND | -| `OR`/ \| / \|\| | logical OR | - -更多见文档[Logical Operators](../Operators-Functions/Logical.md)。 +详细说明及示例见文档 [逻辑运算符](../Reference/Function-and-Expression.md#逻辑运算符)。 ### 运算符优先级 @@ -105,7 +102,7 @@ OR, |, || | MAX_TIME | 求最大时间戳。 | 所有类型 | Timestamp | | MIN_TIME | 求最小时间戳。 | 所有类型 | Timestamp | -详细说明及示例见文档 [聚合函数](../Operators-Functions/Aggregation.md)。 +详细说明及示例见文档 [聚合函数](../Reference/Function-and-Expression.md#聚合函数)。 ### 数学函数 @@ -133,7 +130,7 @@ OR, |, || | SQRT | INT32 / INT64 / FLOAT / DOUBLE | DOUBLE | | Math#sqrt(double) | -详细说明及示例见文档 [算数运算符和函数](../Operators-Functions/Mathematical.md)。 +详细说明及示例见文档 [数学函数](../Reference/Function-and-Expression.md#数学函数)。 ### 比较函数 @@ -142,7 +139,7 @@ OR, |, || | ON_OFF | INT32 / INT64 / FLOAT / DOUBLE | `threshold`:DOUBLE | BOOLEAN | 返回`ts_value >= threshold`的bool值 | | IN_RANGE | INT32 / INT64 / FLOAT / DOUBLE | `lower`:DOUBLE<br/>`upper`:DOUBLE | BOOLEAN | 返回`ts_value >= lower && ts_value <= upper`的bool值 | | -详细说明及示例见文档 [比较运算符和函数](./Comparison.md)。 +详细说明及示例见文档 [比较运算符和函数](../Reference/Function-and-Expression.md#比较运算符和函数)。 ### 字符串函数 @@ -162,7 +159,7 @@ OR, |, || | TRIM | TEXT | 无 | TEXT | 移除字符串前后的空格 | | STRCMP | TEXT | 无 | TEXT | 用于比较两个输入序列,如果值相同返回 `0` , 序列1的值小于序列2的值返回一个`负数`,序列1的值大于序列2的值返回一个`正数` | -详细说明及示例见文档 [字符串处理函数](../Operators-Functions/String.md)。 +详细说明及示例见文档 [字符串处理函数](../Reference/Function-and-Expression.md#字符串处理)。 ### 数据类型转换函数 @@ -170,7 +167,7 @@ OR, |, || | ------ | ------------------------------------------------------------ | ------------------------ | ---------------------------------- | | CAST | `type`:输出的数据点的类型,只能是 INT32 / INT64 / FLOAT / DOUBLE / BOOLEAN / TEXT | 由输入属性参数`type`决定 | 将数据转换为`type`参数指定的类型。 | -详细说明及示例见文档 [数据类型转换](../Operators-Functions/Conversion.md)。 +详细说明及示例见文档 [数据类型转换](../Reference/Function-and-Expression.md#数据类型转换)。 ### 常序列生成函数 @@ -180,7 +177,7 @@ OR, |, || | PI | 无 | DOUBLE | 常序列的值:`π` 的 `double` 值,圆的周长与其直径的比值,即圆周率,等于 *Java标准库* 中的`Math.PI`。 | | E | 无 | DOUBLE | 常序列的值:`e` 的 `double` 值,自然对数的底,它等于 *Java 标准库* 中的 `Math.E`。 | -详细说明及示例见文档 [常序列生成函数](../Operators-Functions/Constant.md)。 +详细说明及示例见文档 [常序列生成函数](../Reference/Function-and-Expression.md#常序列生成函数)。 ### 选择函数 @@ -189,7 +186,7 @@ OR, |, || | TOP_K | INT32 / INT64 / FLOAT / DOUBLE / TEXT | `k`: 最多选择的数据点数,必须大于 0 小于等于 1000 | 与输入序列的实际类型一致 | 返回某时间序列中值最大的`k`个数据点。若多于`k`个数据点的值并列最大,则返回时间戳最小的数据点。 | | BOTTOM_K | INT32 / INT64 / FLOAT / DOUBLE / TEXT | `k`: 最多选择的数据点数,必须大于 0 小于等于 1000 | 与输入序列的实际类型一致 | 返回某时间序列中值最小的`k`个数据点。若多于`k`个数据点的值并列最小,则返回时间戳最小的数据点。 | -详细说明及示例见文档 [选择函数](../Operators-Functions/Selection.md)。 +详细说明及示例见文档 [选择函数](../Reference/Function-and-Expression.md#选择函数)。 ### 区间查询函数 @@ -200,7 +197,7 @@ OR, |, || | ZERO_COUNT | INT32/ INT64/ FLOAT/ DOUBLE/ BOOLEAN | `min`:可选,默认值1<br>`max`:可选,默认值`Long.MAX_VALUE` | Long | 返回时间序列连续为0(false)的开始时间与其后数据点的个数,数据点个数n满足`n >= min && n <= max` | | | NON_ZERO_COUNT | INT32/ INT64/ FLOAT/ DOUBLE/ BOOLEAN | `min`:可选,默认值1<br>`max`:可选,默认值`Long.MAX_VALUE` | Long | 返回时间序列连续不为0(false)的开始时间与其后数据点的个数,数据点个数n满足`n >= min && n <= max` | | -详细说明及示例见文档 [区间查询函数](../Operators-Functions/Continuous-Interval.md)。 +详细说明及示例见文档 [区间查询函数](../Reference/Function-and-Expression.md#区间查询函数)。 ### 趋势计算函数 @@ -217,7 +214,7 @@ OR, |, || |------|--------------------------------|------------------------------------------------------------------------------------------------------------------------|--------|------------------------------------------------| | DIFF | INT32 / INT64 / FLOAT / DOUBLE | `ignoreNull`:可选,默认为true;为true时,前一个数据点值为null时,忽略该数据点继续向前找到第一个出现的不为null的值;为false时,如果前一个数据点为null,则不忽略,使用null进行相减,结果也为null | DOUBLE | 统计序列中某数据点的值与前一数据点的值的差。第一个数据点没有对应的结果输出,输出值为null | -详细说明及示例见文档 [趋势计算函数](../Operators-Functions/Variation-Trend.md)。 +详细说明及示例见文档 [趋势计算函数](../Reference/Function-and-Expression.md#趋势计算函数)。 ### 采样函数 @@ -235,7 +232,7 @@ OR, |, || | ------------- | ------------------------------ | ---- | ------------------------ | -------------------------- | | CHANGE_POINTS | INT32 / INT64 / FLOAT / DOUBLE | / | 与输入序列的实际类型一致 | 去除输入序列中的连续相同值 | -详细说明及示例见文档 [时间序列处理](../Operators-Functions/Time-Series.md) +详细说明及示例见文档 [时间序列处理](../Reference/Function-and-Expression.md#时间序列处理)。 ## 数据质量函数库 @@ -254,14 +251,14 @@ OR, |, || ### 已经实现的函数 -1. [Data-Quality](../Operators-Functions/Data-Quality.md) 数据质量 -2. [Data-Profiling](../Operators-Functions/Data-Profiling.md) 数据画像 -3. [Anomaly-Detection](../Operators-Functions/Anomaly-Detection.md) 异常检测 -4. [Frequency-Domain](../Operators-Functions/Frequency-Domain.md) 频域分析 -5. [Data-Matching](../Operators-Functions/Data-Matching.md) 数据匹配 -6. [Data-Repairing](../Operators-Functions/Data-Repairing.md) 数据修复 -7. [Series-Discovery](../Operators-Functions/Series-Discovery.md) 序列发现 -8. [Machine-Learning](../Operators-Functions/Machine-Learning.md) 机器学习 +1. [Data-Quality](../Reference/UDF-Libraries.md#数据质量) 数据质量 +2. [Data-Profiling](../Reference/UDF-Libraries.md#数据画像) 数据画像 +3. [Anomaly-Detection](../Reference/UDF-Libraries.md#异常检测) 异常检测 +4. [Frequency-Domain](../Reference/UDF-Libraries.md#频域分析) 频域分析 +5. [Data-Matching](../Reference/UDF-Libraries.md#数据匹配) 数据匹配 +6. [Data-Repairing](../Reference/UDF-Libraries.md#数据修复) 数据修复 +7. [Series-Discovery](../Reference/UDF-Libraries.md#序列发现) 序列发现 +8. [Machine-Learning](../Reference/UDF-Libraries.md#机器学习) 机器学习 ## Lambda 表达式 diff --git a/src/zh/UserGuide/latest/stage/Integration-Test/Integration-Test-refactoring-tutorial.md b/src/zh/UserGuide/latest/stage/Integration-Test/Integration-Test-refactoring-tutorial.md index a81cf45..313cb8f 100644 --- a/src/zh/UserGuide/latest/stage/Integration-Test/Integration-Test-refactoring-tutorial.md +++ b/src/zh/UserGuide/latest/stage/Integration-Test/Integration-Test-refactoring-tutorial.md @@ -125,9 +125,9 @@ public void someFunctionTest(){ public void exampleTest() throws Exception { try (Connection connection = EnvFactory.getEnv().getConnection(); Statement statement = connection.createStatement()) { - // 使用 execute() 方法设置存储组 + // 使用 execute() 方法设置数据库 statement.execute("CREATE DATABASE root.sg"); - // 使用 executeQuery() 方法查询存储组 + // 使用 executeQuery() 方法查询数据库 try (ResultSet resultSet = statement.executeQuery("show databases")) { if (resultSet.next()) { String storageGroupPath = resultSet.getString("database"); diff --git a/src/zh/UserGuide/latest/stage/Operate-Metadata/Timeseries.md b/src/zh/UserGuide/latest/stage/Operate-Metadata/Timeseries.md index a630312..d8c31c3 100644 --- a/src/zh/UserGuide/latest/stage/Operate-Metadata/Timeseries.md +++ b/src/zh/UserGuide/latest/stage/Operate-Metadata/Timeseries.md @@ -23,7 +23,7 @@ ## 创建时间序列 -根据建立的数据模型,我们可以分别在两个存储组中创建相应的时间序列。创建时间序列的 SQL 语句如下所示: +根据建立的数据模型,我们可以分别在两个数据库中创建相应的时间序列。创建时间序列的 SQL 语句如下所示: ``` IoTDB > create timeseries root.ln.wf01.wt01.status with datatype=BOOLEAN,encoding=PLAIN