qiaojialin commented on a change in pull request #1060:
URL: https://github.com/apache/incubator-iotdb/pull/1060#discussion_r414350134



##########
File path: example/session/src/main/java/org/apache/iotdb/SessionExample.java
##########
@@ -125,20 +125,19 @@ private static void insertInBatch() throws 
IoTDBConnectionException, BatchExecut
       valuesList.add(values);
       timestamps.add(time);
       if (time != 0 && time % 100 == 0) {
-        session.insertInBatch(deviceIds, timestamps, measurementsList, 
valuesList);
+        session.insertRows(deviceIds, timestamps, measurementsList, 
valuesList);
         deviceIds.clear();
         measurementsList.clear();
         valuesList.clear();
         timestamps.clear();
       }
     }
 
-    session.insertInBatch(deviceIds, timestamps, measurementsList, valuesList);
+    session.insertRows(deviceIds, timestamps, measurementsList, valuesList);

Review comment:
       fixed

##########
File path: example/session/src/main/java/org/apache/iotdb/SessionExample.java
##########
@@ -211,10 +209,10 @@ private static void insertMultipleDeviceRowBatch()
     
     RowBatch rowBatch3 = schema3.createRowBatch("root.sg1.d3", 100);
     
-    Map<String, RowBatch> rowBatchMap = new HashMap<>();
-    rowBatchMap.put("root.sg1.d1", rowBatch1);
-    rowBatchMap.put("root.sg1.d2", rowBatch2);
-    rowBatchMap.put("root.sg1.d3", rowBatch3);
+    List<RowBatch> rowBatchMap = new ArrayList<>();

Review comment:
       fixed




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to