This is an automated email from the ASF dual-hosted git repository.

qiaojialin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new edea3a4  update doc to insertTablet
edea3a4 is described below

commit edea3a4c5d066cca16dba3797e9c0ce92d390345
Author: qiaojialin <[email protected]>
AuthorDate: Mon May 18 16:16:21 2020 +0800

    update doc to insertTablet
---
 docs/SystemDesign/4-StorageEngine/6-DataManipulation.md            | 4 ++--
 docs/UserGuide/4-Client/3-Programming - JDBC.md                    | 2 +-
 docs/zh/SystemDesign/4-StorageEngine/6-DataManipulation.md         | 4 ++--
 jdbc/README.md                                                     | 2 +-
 server/src/main/java/org/apache/iotdb/db/engine/StorageEngine.java | 2 +-
 server/src/main/java/org/apache/iotdb/db/mqtt/PublishHandler.java  | 2 +-
 6 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/docs/SystemDesign/4-StorageEngine/6-DataManipulation.md 
b/docs/SystemDesign/4-StorageEngine/6-DataManipulation.md
index d16a8a0..41245f6 100644
--- a/docs/SystemDesign/4-StorageEngine/6-DataManipulation.md
+++ b/docs/SystemDesign/4-StorageEngine/6-DataManipulation.md
@@ -44,9 +44,9 @@ The following describes four common data manipulation 
operations, which are inse
 ### Batch data (multiple timestamp multiple values for one device) write
 
 * Corresponding interface
-       * Session‘s insertBatch
+       * Session‘s insertTablet
 
-* Main entrance: ```public Integer[] insertBatch(BatchInsertPlan 
batchInsertPlan)```  StorageEngine.java
+* Main entrance: ```public Integer[] insertTablet(InsertTabletPlan 
insertTabletPlan)```  StorageEngine.java
     * Find the corresponding StorageGroupProcessor
        * According to the time of this batch of data and the last timestamp of 
the current device order, this batch of data is divided into small batches, 
which correspond to a TsFileProcessor
        * Pre-write log
diff --git a/docs/UserGuide/4-Client/3-Programming - JDBC.md 
b/docs/UserGuide/4-Client/3-Programming - JDBC.md
index c14021d..6a6e8d0 100644
--- a/docs/UserGuide/4-Client/3-Programming - JDBC.md   
+++ b/docs/UserGuide/4-Client/3-Programming - JDBC.md   
@@ -62,7 +62,7 @@ This chapter provides an example of how to open a database 
connection, execute a
 
 Requires that you include the packages containing the JDBC classes needed for 
database programming.
 
-**NOTE: For faster insertion, the insertBatch() in Session is recommended.**
+**NOTE: For faster insertion, the insertTablet() in Session is recommended.**
 
 ```Java
 import java.sql.*;
diff --git a/docs/zh/SystemDesign/4-StorageEngine/6-DataManipulation.md 
b/docs/zh/SystemDesign/4-StorageEngine/6-DataManipulation.md
index 23ca674..6c5b790 100644
--- a/docs/zh/SystemDesign/4-StorageEngine/6-DataManipulation.md
+++ b/docs/zh/SystemDesign/4-StorageEngine/6-DataManipulation.md
@@ -45,9 +45,9 @@
 ### 批量数据(一个设备多个时间戳多个值)写入
 
 * 对应的接口
-       * Session 的 insertBatch
+       * Session 的 insertTablet
 
-* 总入口: public Integer[] insertBatch(BatchInsertPlan batchInsertPlan)  
StorageEngine.java
+* 总入口: public Integer[] insertTablet(InsertTabletPlan insertTabletPlan)  
StorageEngine.java
     * 找到对应的 StorageGroupProcessor
        * 根据这批数据的时间以及当前设备落盘的最后时间戳,将这批数据分成小批,分别对应到一个 TsFileProcessor 中
        * 记录写前日志
diff --git a/jdbc/README.md b/jdbc/README.md
index aac66bf..9fc50ce 100644
--- a/jdbc/README.md
+++ b/jdbc/README.md
@@ -59,7 +59,7 @@ This chapter provides an example of how to open a database 
connection, execute a
 
 Requires that you include the packages containing the JDBC classes needed for 
database programming.
 
-**NOTE: For faster insertion, the insertBatch() in Session is recommended.**
+**NOTE: For faster insertion, the insertTablet() in Session is recommended.**
 
 ```Java
 import java.sql.*;
diff --git a/server/src/main/java/org/apache/iotdb/db/engine/StorageEngine.java 
b/server/src/main/java/org/apache/iotdb/db/engine/StorageEngine.java
index 8fbf967..89419ec 100644
--- a/server/src/main/java/org/apache/iotdb/db/engine/StorageEngine.java
+++ b/server/src/main/java/org/apache/iotdb/db/engine/StorageEngine.java
@@ -259,7 +259,7 @@ public class StorageEngine implements IService {
   }
 
   /**
-   * insert a BatchInsertPlan to a storage group
+   * insert a InsertTabletPlan to a storage group
    *
    * @return result of each row
    */
diff --git a/server/src/main/java/org/apache/iotdb/db/mqtt/PublishHandler.java 
b/server/src/main/java/org/apache/iotdb/db/mqtt/PublishHandler.java
index fcbaef2..4020901 100644
--- a/server/src/main/java/org/apache/iotdb/db/mqtt/PublishHandler.java
+++ b/server/src/main/java/org/apache/iotdb/db/mqtt/PublishHandler.java
@@ -79,7 +79,7 @@ public class PublishHandler extends AbstractInterceptHandler {
             return;
         }
 
-        // since device ids from messages maybe different, so we use the 
InsertPlan not BatchInsertPlan.
+        // since device ids from messages maybe different, so we use the 
InsertPlan not InsertTabletPlan.
         for (Message event : events) {
             if (event == null) {
                 continue;

Reply via email to