From d7d4c0256b25d759f7c7766f4b867558a0b88108 Mon Sep 17 00:00:00 2001 From: Leto_b Date: Wed, 5 Mar 2025 11:45:39 +0800 Subject: [PATCH] fix api code link in 1.3.x and 2.0.1 --- src/UserGuide/Master/Tree/API/Programming-Cpp-Native-API.md | 4 ++-- src/UserGuide/Master/Tree/API/Programming-MQTT.md | 2 +- src/UserGuide/Master/Tree/API/Programming-OPC-UA_timecho.md | 2 +- src/UserGuide/V1.3.x/API/Programming-Cpp-Native-API.md | 4 ++-- src/UserGuide/V1.3.x/API/Programming-Java-Native-API.md | 2 +- src/UserGuide/V1.3.x/API/Programming-MQTT.md | 2 +- src/UserGuide/V1.3.x/API/Programming-OPC-UA_timecho.md | 2 +- src/UserGuide/latest-Table/API/Programming-JDBC_apache.md | 2 +- src/UserGuide/latest-Table/API/Programming-JDBC_timecho.md | 2 +- src/UserGuide/latest/API/Programming-Cpp-Native-API.md | 4 ++-- src/UserGuide/latest/API/Programming-Java-Native-API.md | 2 +- src/UserGuide/latest/API/Programming-MQTT.md | 2 +- src/UserGuide/latest/API/Programming-OPC-UA_timecho.md | 2 +- .../UserGuide/Master/Tree/API/Programming-Cpp-Native-API.md | 6 +++--- src/zh/UserGuide/Master/Tree/API/Programming-MQTT.md | 2 +- src/zh/UserGuide/V1.3.x/API/Programming-Cpp-Native-API.md | 4 ++-- src/zh/UserGuide/V1.3.x/API/Programming-Java-Native-API.md | 2 +- src/zh/UserGuide/V1.3.x/API/Programming-MQTT.md | 2 +- src/zh/UserGuide/V1.3.x/API/Programming-OPC-UA_timecho.md | 2 +- .../UserGuide/latest-Table/API/Programming-JDBC_apache.md | 2 +- .../UserGuide/latest-Table/API/Programming-JDBC_timecho.md | 2 +- .../latest-Table/API/Programming-Java-Native-API_apache.md | 4 ++-- .../latest-Table/API/Programming-Java-Native-API_timecho.md | 4 ++-- src/zh/UserGuide/latest/API/Programming-Cpp-Native-API.md | 6 +++--- src/zh/UserGuide/latest/API/Programming-Java-Native-API.md | 2 +- src/zh/UserGuide/latest/API/Programming-MQTT.md | 2 +- src/zh/UserGuide/latest/API/Programming-OPC-UA_timecho.md | 2 +- 27 files changed, 37 insertions(+), 37 deletions(-) diff --git a/src/UserGuide/Master/Tree/API/Programming-Cpp-Native-API.md b/src/UserGuide/Master/Tree/API/Programming-Cpp-Native-API.md index 22c08bc3b..26e2bfef3 100644 --- a/src/UserGuide/Master/Tree/API/Programming-Cpp-Native-API.md +++ b/src/UserGuide/Master/Tree/API/Programming-Cpp-Native-API.md @@ -401,8 +401,8 @@ void executeNonQueryStatement(const std::string &sql); The sample code of using these interfaces is in: -- `example/client-cpp-example/src/SessionExample.cpp` -- `example/client-cpp-example/src/AlignedTimeseriesSessionExample.cpp` (Aligned Timeseries) +- `example/client-cpp-example/src/SessionExample.cpp`: [SessionExample](https://github.com/apache/iotdb/tree/master/example/client-cpp-example/src/SessionExample.cpp) +- `example/client-cpp-example/src/AlignedTimeseriesSessionExample.cpp` (Aligned Timeseries) : [AlignedTimeseriesSessionExample](https://github.com/apache/iotdb/tree/master/example/client-cpp-example/src/AlignedTimeseriesSessionExample.cpp) If the compilation finishes successfully, the example project will be placed under `example/client-cpp-example/target` diff --git a/src/UserGuide/Master/Tree/API/Programming-MQTT.md b/src/UserGuide/Master/Tree/API/Programming-MQTT.md index 953414c60..355910813 100644 --- a/src/UserGuide/Master/Tree/API/Programming-MQTT.md +++ b/src/UserGuide/Master/Tree/API/Programming-MQTT.md @@ -104,7 +104,7 @@ connection.disconnect(); ## 4. Customize your MQTT Message Format If you do not like the above Json format, you can customize your MQTT Message format by just writing several lines -of codes. An example can be found in `example/mqtt-customize` project. +of codes. An example can be found in [example/mqtt-customize](https://github.com/apache/iotdb/tree/master/example/mqtt-customize) project. Steps: 1. Create a java project, and add dependency: diff --git a/src/UserGuide/Master/Tree/API/Programming-OPC-UA_timecho.md b/src/UserGuide/Master/Tree/API/Programming-OPC-UA_timecho.md index f3181ea35..fe330fa9f 100644 --- a/src/UserGuide/Master/Tree/API/Programming-OPC-UA_timecho.md +++ b/src/UserGuide/Master/Tree/API/Programming-OPC-UA_timecho.md @@ -178,7 +178,7 @@ insert into root.test.db(time, s2) values(now(), 2) #### Preparation Work -The code is located in the [opc-ua-sink 文件夹](https://github.com/apache/iotdb/tree/master/example/pipe-opc-ua-sink/src/main/java/org/apache/iotdb/opcua) under the iotdb-example package. +The code is located in the [opc-ua-sink package](https://github.com/apache/iotdb/tree/master/example/pipe-opc-ua-sink/src/main/java/org/apache/iotdb/opcua) under the iotdb-example package. The code includes: diff --git a/src/UserGuide/V1.3.x/API/Programming-Cpp-Native-API.md b/src/UserGuide/V1.3.x/API/Programming-Cpp-Native-API.md index 0d2267ff1..6d7368f9e 100644 --- a/src/UserGuide/V1.3.x/API/Programming-Cpp-Native-API.md +++ b/src/UserGuide/V1.3.x/API/Programming-Cpp-Native-API.md @@ -434,8 +434,8 @@ void executeNonQueryStatement(const std::string &sql); The sample code of using these interfaces is in: -- `example/client-cpp-example/src/SessionExample.cpp` -- `example/client-cpp-example/src/AlignedTimeseriesSessionExample.cpp` (Aligned Timeseries) +- `example/client-cpp-example/src/SessionExample.cpp` : [SessionExample](https://github.com/apache/iotdb/tree/rc/1.3.3/example/client-cpp-example/src/SessionExample.cpp) +- `example/client-cpp-example/src/AlignedTimeseriesSessionExample.cpp` (Aligned Timeseries) : [AlignedTimeseriesSessionExample](https://github.com/apache/iotdb/tree/rc/1.3.3/example/client-cpp-example/src/AlignedTimeseriesSessionExample.cpp) If the compilation finishes successfully, the example project will be placed under `example/client-cpp-example/target` diff --git a/src/UserGuide/V1.3.x/API/Programming-Java-Native-API.md b/src/UserGuide/V1.3.x/API/Programming-Java-Native-API.md index 2b2b68da3..a0e93e985 100644 --- a/src/UserGuide/V1.3.x/API/Programming-Java-Native-API.md +++ b/src/UserGuide/V1.3.x/API/Programming-Java-Native-API.md @@ -32,7 +32,7 @@ In the native API of IoTDB, the `Session` is the core interface for interacting ## 2 Detailed Steps -This section provides an overview of the core development process and does not demonstrate all parameters and interfaces. For a complete list of functionalities and parameters, please refer to:[Java Native API](./Programming-Java-Native-API.md#3-native-interface-description) or check the: [Source Code](https://github.com/apache/iotdb/tree/master/example/session/src/main/java/org/apache/iotdb) +This section provides an overview of the core development process and does not demonstrate all parameters and interfaces. For a complete list of functionalities and parameters, please refer to:[Java Native API](./Programming-Java-Native-API.md#3-native-interface-description) or check the: [Source Code](https://github.com/apache/iotdb/tree/rc/1.3.3/example/session/src/main/java/org/apache/iotdb) ### 2.1 Create a Maven Project diff --git a/src/UserGuide/V1.3.x/API/Programming-MQTT.md b/src/UserGuide/V1.3.x/API/Programming-MQTT.md index 1015986d6..4f7d41b84 100644 --- a/src/UserGuide/V1.3.x/API/Programming-MQTT.md +++ b/src/UserGuide/V1.3.x/API/Programming-MQTT.md @@ -109,7 +109,7 @@ connection.disconnect(); ## Customize your MQTT Message Format If you do not like the above Json format, you can customize your MQTT Message format by just writing several lines -of codes. An example can be found in `example/mqtt-customize` project. +of codes. An example can be found in [example/mqtt-customize](https://github.com/apache/iotdb/tree/rc/1.3.3/example/mqtt-customize) project. Steps: diff --git a/src/UserGuide/V1.3.x/API/Programming-OPC-UA_timecho.md b/src/UserGuide/V1.3.x/API/Programming-OPC-UA_timecho.md index cb98a3bd8..3c1c026b0 100644 --- a/src/UserGuide/V1.3.x/API/Programming-OPC-UA_timecho.md +++ b/src/UserGuide/V1.3.x/API/Programming-OPC-UA_timecho.md @@ -185,7 +185,7 @@ start pipe p1; #### Preparation Work -The code is located in the [opc-ua-sink 文件夹](https://github.com/apache/iotdb/tree/master/example/pipe-opc-ua-sink/src/main/java/org/apache/iotdb/opcua) under the iotdb-example package. +The code is located in the [opc-ua-sink 文件夹](https://github.com/apache/iotdb/tree/rc/1.3.3/example/pipe-opc-ua-sink/src/main/java/org/apache/iotdb/opcua) under the iotdb-example package. The code includes: diff --git a/src/UserGuide/latest-Table/API/Programming-JDBC_apache.md b/src/UserGuide/latest-Table/API/Programming-JDBC_apache.md index 69c64c77b..f27de6e04 100644 --- a/src/UserGuide/latest-Table/API/Programming-JDBC_apache.md +++ b/src/UserGuide/latest-Table/API/Programming-JDBC_apache.md @@ -72,7 +72,7 @@ Add the following dependency to your Maven `pom.xml` file: String url = "jdbc:iotdb://127.0.0.1:6667?sql_dialect=table"; ``` -You can find the full example code at [GitHub Repository](https://github.com/apache/iotdb/blob/master/example/jdbc/src/main/java/org/apache/iotdb/TableModelJDBCExample.java). +You can find the full example code at [GitHub Repository](https://github.com/apache/iotdb/blob/rc/2.0.1/example/jdbc/src/main/java/org/apache/iotdb/TableModelJDBCExample.java). Here is an excerpt of the sample code: diff --git a/src/UserGuide/latest-Table/API/Programming-JDBC_timecho.md b/src/UserGuide/latest-Table/API/Programming-JDBC_timecho.md index 574b13826..4e8a35626 100644 --- a/src/UserGuide/latest-Table/API/Programming-JDBC_timecho.md +++ b/src/UserGuide/latest-Table/API/Programming-JDBC_timecho.md @@ -72,7 +72,7 @@ Add the following dependency to your Maven `pom.xml` file: String url = "jdbc:iotdb://127.0.0.1:6667?sql_dialect=table"; ``` -You can find the full example code at [GitHub Repository](https://github.com/apache/iotdb/blob/master/example/jdbc/src/main/java/org/apache/iotdb/TableModelJDBCExample.java). +You can find the full example code at [GitHub Repository](https://github.com/apache/iotdb/blob/rc/2.0.1/example/jdbc/src/main/java/org/apache/iotdb/TableModelJDBCExample.java). Here is an excerpt of the sample code: diff --git a/src/UserGuide/latest/API/Programming-Cpp-Native-API.md b/src/UserGuide/latest/API/Programming-Cpp-Native-API.md index 22c08bc3b..1ed9cbdf0 100644 --- a/src/UserGuide/latest/API/Programming-Cpp-Native-API.md +++ b/src/UserGuide/latest/API/Programming-Cpp-Native-API.md @@ -401,8 +401,8 @@ void executeNonQueryStatement(const std::string &sql); The sample code of using these interfaces is in: -- `example/client-cpp-example/src/SessionExample.cpp` -- `example/client-cpp-example/src/AlignedTimeseriesSessionExample.cpp` (Aligned Timeseries) +- `example/client-cpp-example/src/SessionExample.cpp`: [SessionExample](https://github.com/apache/iotdb/tree/rc/2.0.1/example/client-cpp-example/src/SessionExample.cpp) +- `example/client-cpp-example/src/AlignedTimeseriesSessionExample.cpp` (Aligned Timeseries) : [AlignedTimeseriesSessionExample](https://github.com/apache/iotdb/tree/rc/2.0.1/example/client-cpp-example/src/AlignedTimeseriesSessionExample.cpp) If the compilation finishes successfully, the example project will be placed under `example/client-cpp-example/target` diff --git a/src/UserGuide/latest/API/Programming-Java-Native-API.md b/src/UserGuide/latest/API/Programming-Java-Native-API.md index f38cbfd37..734cd706c 100644 --- a/src/UserGuide/latest/API/Programming-Java-Native-API.md +++ b/src/UserGuide/latest/API/Programming-Java-Native-API.md @@ -32,7 +32,7 @@ In the native API of IoTDB, the `Session` is the core interface for interacting ## 2. Detailed Steps -This section provides an overview of the core development process and does not demonstrate all parameters and interfaces. For a complete list of functionalities and parameters, please refer to:[Java Native API](./Programming-Java-Native-API.md#3-native-interface-description) or check the: [Source Code](https://github.com/apache/iotdb/tree/master/example/session/src/main/java/org/apache/iotdb) +This section provides an overview of the core development process and does not demonstrate all parameters and interfaces. For a complete list of functionalities and parameters, please refer to:[Java Native API](./Programming-Java-Native-API.md#3-native-interface-description) or check the: [Source Code](https://github.com/apache/iotdb/tree/rc/2.0.1/example/session/src/main/java/org/apache/iotdb) ### 2.1 Create a Maven Project diff --git a/src/UserGuide/latest/API/Programming-MQTT.md b/src/UserGuide/latest/API/Programming-MQTT.md index 953414c60..a03830f0e 100644 --- a/src/UserGuide/latest/API/Programming-MQTT.md +++ b/src/UserGuide/latest/API/Programming-MQTT.md @@ -104,7 +104,7 @@ connection.disconnect(); ## 4. Customize your MQTT Message Format If you do not like the above Json format, you can customize your MQTT Message format by just writing several lines -of codes. An example can be found in `example/mqtt-customize` project. +of codes. An example can be found in [example/mqtt-customize](https://github.com/apache/iotdb/tree/rc/2.0.1/example/mqtt-customize) project. Steps: 1. Create a java project, and add dependency: diff --git a/src/UserGuide/latest/API/Programming-OPC-UA_timecho.md b/src/UserGuide/latest/API/Programming-OPC-UA_timecho.md index f3181ea35..f631a865d 100644 --- a/src/UserGuide/latest/API/Programming-OPC-UA_timecho.md +++ b/src/UserGuide/latest/API/Programming-OPC-UA_timecho.md @@ -178,7 +178,7 @@ insert into root.test.db(time, s2) values(now(), 2) #### Preparation Work -The code is located in the [opc-ua-sink 文件夹](https://github.com/apache/iotdb/tree/master/example/pipe-opc-ua-sink/src/main/java/org/apache/iotdb/opcua) under the iotdb-example package. +The code is located in the [opc-ua-sink package](https://github.com/apache/iotdb/tree/rc/2.0.1/example/pipe-opc-ua-sink/src/main/java/org/apache/iotdb/opcua)under the iotdb-example package. The code includes: diff --git a/src/zh/UserGuide/Master/Tree/API/Programming-Cpp-Native-API.md b/src/zh/UserGuide/Master/Tree/API/Programming-Cpp-Native-API.md index be83e82d1..ebdc3b3a5 100644 --- a/src/zh/UserGuide/Master/Tree/API/Programming-Cpp-Native-API.md +++ b/src/zh/UserGuide/Master/Tree/API/Programming-Cpp-Native-API.md @@ -408,10 +408,10 @@ void executeNonQueryStatement(const std::string &sql); 示例工程源代码: -- `example/client-cpp-example/src/SessionExample.cpp` -- `example/client-cpp-example/src/AlignedTimeseriesSessionExample.cpp` (使用对齐时间序列) +- `example/client-cpp-example/src/SessionExample.cpp` : [SessionExample](https://github.com/apache/iotdb/tree/master/example/client-cpp-example/src/SessionExample.cpp) +- `example/client-cpp-example/src/AlignedTimeseriesSessionExample.cpp` (使用对齐时间序列) : [AlignedTimeseriesSessionExample](https://github.com/apache/iotdb/tree/master/example/client-cpp-example/src/AlignedTimeseriesSessionExample.cpp) -编译成功后,示例代码工程位于 `example/client-cpp-example/target` +编译成功后,示例代码工程位于 `example/client-cpp-example/target` ## 5. FAQ diff --git a/src/zh/UserGuide/Master/Tree/API/Programming-MQTT.md b/src/zh/UserGuide/Master/Tree/API/Programming-MQTT.md index ce0519593..04315bbea 100644 --- a/src/zh/UserGuide/Master/Tree/API/Programming-MQTT.md +++ b/src/zh/UserGuide/Master/Tree/API/Programming-MQTT.md @@ -104,7 +104,7 @@ connection.disconnect(); ## 3. 自定义 MQTT 消息格式 事实上可以通过简单编程来实现 MQTT 消息的格式自定义。 -可以在源码的 `example/mqtt-customize` 项目中找到一个简单示例。 +可以在源码的 [example/mqtt-customize](https://github.com/apache/iotdb/tree/master/example/mqtt-customize) 项目中找到一个简单示例。 步骤: 1. 创建一个 Java 项目,增加如下依赖 diff --git a/src/zh/UserGuide/V1.3.x/API/Programming-Cpp-Native-API.md b/src/zh/UserGuide/V1.3.x/API/Programming-Cpp-Native-API.md index 5f02f2e65..2ba2fb407 100644 --- a/src/zh/UserGuide/V1.3.x/API/Programming-Cpp-Native-API.md +++ b/src/zh/UserGuide/V1.3.x/API/Programming-Cpp-Native-API.md @@ -408,8 +408,8 @@ void executeNonQueryStatement(const std::string &sql); 示例工程源代码: -- `example/client-cpp-example/src/SessionExample.cpp` -- `example/client-cpp-example/src/AlignedTimeseriesSessionExample.cpp` (使用对齐时间序列) +- `example/client-cpp-example/src/SessionExample.cpp`: [SessionExample](https://github.com/apache/iotdb/tree/rc/1.3.3/example/client-cpp-example/src/SessionExample.cpp) +- `example/client-cpp-example/src/AlignedTimeseriesSessionExample.cpp` (使用对齐时间序列): [AlignedTimeseriesSessionExample](https://github.com/apache/iotdb/tree/rc/1.3.3/example/client-cpp-example/src/AlignedTimeseriesSessionExample.cpp) 编译成功后,示例代码工程位于 `example/client-cpp-example/target` diff --git a/src/zh/UserGuide/V1.3.x/API/Programming-Java-Native-API.md b/src/zh/UserGuide/V1.3.x/API/Programming-Java-Native-API.md index 25269e46b..c50fc86f7 100644 --- a/src/zh/UserGuide/V1.3.x/API/Programming-Java-Native-API.md +++ b/src/zh/UserGuide/V1.3.x/API/Programming-Java-Native-API.md @@ -31,7 +31,7 @@ SessionPool 是 Session 的连接池,推荐使用SessionPool编程。在多线 ## 2 详细步骤 -本章节用于说明开发的核心流程,并未演示所有的参数和接口,如需了解全部功能及参数请参见: [全量接口说明](./Programming-Java-Native-API.md#3-全量接口说明) 或 查阅: [源码](https://github.com/apache/iotdb/tree/master/example/session/src/main/java/org/apache/iotdb) +本章节用于说明开发的核心流程,并未演示所有的参数和接口,如需了解全部功能及参数请参见: [全量接口说明](./Programming-Java-Native-API.md#3-全量接口说明) 或 查阅: [源码](https://github.com/apache/iotdb/tree/rc/1.3.3/example/session/src/main/java/org/apache/iotdb) ### 2.1 创建maven项目 diff --git a/src/zh/UserGuide/V1.3.x/API/Programming-MQTT.md b/src/zh/UserGuide/V1.3.x/API/Programming-MQTT.md index 4a113cd13..cce0730df 100644 --- a/src/zh/UserGuide/V1.3.x/API/Programming-MQTT.md +++ b/src/zh/UserGuide/V1.3.x/API/Programming-MQTT.md @@ -104,7 +104,7 @@ connection.disconnect(); ## 自定义 MQTT 消息格式 事实上可以通过简单编程来实现 MQTT 消息的格式自定义。 -可以在源码的 `example/mqtt-customize` 项目中找到一个简单示例。 +可以在源码的 [example/mqtt-customize](https://github.com/apache/iotdb/tree/rc/1.3.3/example/mqtt-customize) 项目中找到一个简单示例。 步骤: 1. 创建一个 Java 项目,增加如下依赖 diff --git a/src/zh/UserGuide/V1.3.x/API/Programming-OPC-UA_timecho.md b/src/zh/UserGuide/V1.3.x/API/Programming-OPC-UA_timecho.md index b0e9948b7..861fc5851 100644 --- a/src/zh/UserGuide/V1.3.x/API/Programming-OPC-UA_timecho.md +++ b/src/zh/UserGuide/V1.3.x/API/Programming-OPC-UA_timecho.md @@ -173,7 +173,7 @@ insert into root.test.db(time, s2) values(now(), 2) #### 准备工作 -该代码位于 iotdb-example 包下的 [opc-ua-sink 文件夹](https://github.com/apache/iotdb/tree/master/example/pipe-opc-ua-sink/src/main/java/org/apache/iotdb/opcua)中 +该代码位于 iotdb-example 包下的 [opc-ua-sink 文件夹](https://github.com/apache/iotdb/tree/rc/1.3.3/example/pipe-opc-ua-sink/src/main/java/org/apache/iotdb/opcua)中 代码中包含: diff --git a/src/zh/UserGuide/latest-Table/API/Programming-JDBC_apache.md b/src/zh/UserGuide/latest-Table/API/Programming-JDBC_apache.md index d027563f6..d6054636f 100644 --- a/src/zh/UserGuide/latest-Table/API/Programming-JDBC_apache.md +++ b/src/zh/UserGuide/latest-Table/API/Programming-JDBC_apache.md @@ -76,7 +76,7 @@ IoTDB JDBC接口提供了一种标准的方式来与IoTDB数据库进行交互 String url = "jdbc:iotdb://127.0.0.1:6667?sql_dialect=table"; ``` -JDBC接口示例代码:[src/main/java/org/apache/iotdb/TableModelJDBCExample.java](https://github.com/apache/iotdb/blob/master/example/jdbc/src/main/java/org/apache/iotdb/TableModelJDBCExample.java) +JDBC接口示例代码:[src/main/java/org/apache/iotdb/TableModelJDBCExample.java](https://github.com/apache/iotdb/blob/rc/2.0.1/example/jdbc/src/main/java/org/apache/iotdb/TableModelJDBCExample.java) ```Java diff --git a/src/zh/UserGuide/latest-Table/API/Programming-JDBC_timecho.md b/src/zh/UserGuide/latest-Table/API/Programming-JDBC_timecho.md index 0bd6d368b..325ee394a 100644 --- a/src/zh/UserGuide/latest-Table/API/Programming-JDBC_timecho.md +++ b/src/zh/UserGuide/latest-Table/API/Programming-JDBC_timecho.md @@ -76,7 +76,7 @@ IoTDB JDBC接口提供了一种标准的方式来与IoTDB数据库进行交互 String url = "jdbc:iotdb://127.0.0.1:6667?sql_dialect=table"; ``` -JDBC接口示例代码:[src/main/java/org/apache/iotdb/TableModelJDBCExample.java](https://github.com/apache/iotdb/blob/master/example/jdbc/src/main/java/org/apache/iotdb/TableModelJDBCExample.java) +JDBC接口示例代码:[src/main/java/org/apache/iotdb/TableModelJDBCExample.java](https://github.com/apache/iotdb/blob/rc/2.0.1/example/jdbc/src/main/java/org/apache/iotdb/TableModelJDBCExample.java) ```Java diff --git a/src/zh/UserGuide/latest-Table/API/Programming-Java-Native-API_apache.md b/src/zh/UserGuide/latest-Table/API/Programming-Java-Native-API_apache.md index 4830e6b11..253ee304f 100644 --- a/src/zh/UserGuide/latest-Table/API/Programming-Java-Native-API_apache.md +++ b/src/zh/UserGuide/latest-Table/API/Programming-Java-Native-API_apache.md @@ -629,9 +629,9 @@ public class TableSessionPoolBuilder { ## 5. 示例代码 -Session 示例代码:[src/main/java/org/apache/iotdb/TableModelSessionExample.java](https://github.com/apache/iotdb/blob/master/example/session/src/main/java/org/apache/iotdb/TableModelSessionExample.java) +Session 示例代码:[src/main/java/org/apache/iotdb/TableModelSessionExample.java](https://github.com/apache/iotdb/blob/rc/2.0.1/example/session/src/main/java/org/apache/iotdb/TableModelSessionExample.java) -SessionPool 示例代码:[src/main/java/org/apache/iotdb/TableModelSessionPoolExample.java](https://github.com/apache/iotdb/blob/master/example/session/src/main/java/org/apache/iotdb/TableModelSessionPoolExample.java) +SessionPool 示例代码:[src/main/java/org/apache/iotdb/TableModelSessionPoolExample.java](https://github.com/apache/iotdb/blob/rc/2.0.1/example/session/src/main/java/org/apache/iotdb/TableModelSessionPoolExample.java) ```Java /* diff --git a/src/zh/UserGuide/latest-Table/API/Programming-Java-Native-API_timecho.md b/src/zh/UserGuide/latest-Table/API/Programming-Java-Native-API_timecho.md index 06f80c481..f3426c08a 100644 --- a/src/zh/UserGuide/latest-Table/API/Programming-Java-Native-API_timecho.md +++ b/src/zh/UserGuide/latest-Table/API/Programming-Java-Native-API_timecho.md @@ -629,9 +629,9 @@ public class TableSessionPoolBuilder { ## 5. 示例代码 -Session 示例代码:[src/main/java/org/apache/iotdb/TableModelSessionExample.java](https://github.com/apache/iotdb/blob/master/example/session/src/main/java/org/apache/iotdb/TableModelSessionExample.java) +Session 示例代码:[src/main/java/org/apache/iotdb/TableModelSessionExample.java](https://github.com/apache/iotdb/blob/rc/2.0.1/example/session/src/main/java/org/apache/iotdb/TableModelSessionExample.java) -SessionPool 示例代码:[src/main/java/org/apache/iotdb/TableModelSessionPoolExample.java](https://github.com/apache/iotdb/blob/master/example/session/src/main/java/org/apache/iotdb/TableModelSessionPoolExample.java) +SessionPool 示例代码:[src/main/java/org/apache/iotdb/TableModelSessionPoolExample.java](https://github.com/apache/iotdb/blob/rc/2.0.1/example/session/src/main/java/org/apache/iotdb/TableModelSessionPoolExample.java) ```Java /* diff --git a/src/zh/UserGuide/latest/API/Programming-Cpp-Native-API.md b/src/zh/UserGuide/latest/API/Programming-Cpp-Native-API.md index be83e82d1..ff6855bb5 100644 --- a/src/zh/UserGuide/latest/API/Programming-Cpp-Native-API.md +++ b/src/zh/UserGuide/latest/API/Programming-Cpp-Native-API.md @@ -408,10 +408,10 @@ void executeNonQueryStatement(const std::string &sql); 示例工程源代码: -- `example/client-cpp-example/src/SessionExample.cpp` -- `example/client-cpp-example/src/AlignedTimeseriesSessionExample.cpp` (使用对齐时间序列) +- `example/client-cpp-example/src/SessionExample.cpp` : [SessionExample](https://github.com/apache/iotdb/tree/rc/2.0.1/example/client-cpp-example/src/SessionExample.cpp) +- `example/client-cpp-example/src/AlignedTimeseriesSessionExample.cpp` (使用对齐时间序列) : [AlignedTimeseriesSessionExample](https://github.com/apache/iotdb/tree/rc/2.0.1/example/client-cpp-example/src/AlignedTimeseriesSessionExample.cpp) -编译成功后,示例代码工程位于 `example/client-cpp-example/target` +编译成功后,示例代码工程位于 `example/client-cpp-example/target` ## 5. FAQ diff --git a/src/zh/UserGuide/latest/API/Programming-Java-Native-API.md b/src/zh/UserGuide/latest/API/Programming-Java-Native-API.md index 6d95099e1..3de047e57 100644 --- a/src/zh/UserGuide/latest/API/Programming-Java-Native-API.md +++ b/src/zh/UserGuide/latest/API/Programming-Java-Native-API.md @@ -31,7 +31,7 @@ SessionPool 是 Session 的连接池,推荐使用SessionPool编程。在多线 ## 2. 详细步骤 -本章节用于说明开发的核心流程,并未演示所有的参数和接口,如需了解全部功能及参数请参见: [全量接口说明](./Programming-Java-Native-API.md#3-全量接口说明) 或 查阅: [源码](https://github.com/apache/iotdb/tree/master/example/session/src/main/java/org/apache/iotdb) +本章节用于说明开发的核心流程,并未演示所有的参数和接口,如需了解全部功能及参数请参见: [全量接口说明](./Programming-Java-Native-API.md#3-全量接口说明) 或 查阅: [源码](https://github.com/apache/iotdb/tree/rc/2.0.1/example/session/src/main/java/org/apache/iotdb) ### 2.1 创建maven项目 diff --git a/src/zh/UserGuide/latest/API/Programming-MQTT.md b/src/zh/UserGuide/latest/API/Programming-MQTT.md index ce0519593..6e6bed15c 100644 --- a/src/zh/UserGuide/latest/API/Programming-MQTT.md +++ b/src/zh/UserGuide/latest/API/Programming-MQTT.md @@ -104,7 +104,7 @@ connection.disconnect(); ## 3. 自定义 MQTT 消息格式 事实上可以通过简单编程来实现 MQTT 消息的格式自定义。 -可以在源码的 `example/mqtt-customize` 项目中找到一个简单示例。 +可以在源码的 [example/mqtt-customize](https://github.com/apache/iotdb/tree/rc/2.0.1/example/mqtt-customize) 项目中找到一个简单示例。 步骤: 1. 创建一个 Java 项目,增加如下依赖 diff --git a/src/zh/UserGuide/latest/API/Programming-OPC-UA_timecho.md b/src/zh/UserGuide/latest/API/Programming-OPC-UA_timecho.md index 22879945d..cc9436781 100644 --- a/src/zh/UserGuide/latest/API/Programming-OPC-UA_timecho.md +++ b/src/zh/UserGuide/latest/API/Programming-OPC-UA_timecho.md @@ -173,7 +173,7 @@ insert into root.test.db(time, s2) values(now(), 2) #### 准备工作 -该代码位于 iotdb-example 包下的 [opc-ua-sink 文件夹](https://github.com/apache/iotdb/tree/master/example/pipe-opc-ua-sink/src/main/java/org/apache/iotdb/opcua)中 +该代码位于 iotdb-example 包下的 [opc-ua-sink 文件夹](https://github.com/apache/iotdb/tree/rc/2.0.1/example/pipe-opc-ua-sink/src/main/java/org/apache/iotdb/opcua)中 代码中包含: