You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2022/01/22 00:55:50 UTC
[GitHub] [iotdb] wangchao316 commented on a change in pull request #4957: [IOTDB-2469]Update code of pulsar example with sessionPool api
wangchao316 commented on a change in pull request #4957:
URL: https://github.com/apache/iotdb/pull/4957#discussion_r790079213
##########
File path: example/pulsar/src/main/java/org/apache/iotdb/pulsar/PulsarConsumerThread.java
##########
@@ -79,24 +82,78 @@ private void insert(Session session, String data)
}
}
- session.insertRecord(device, time, measurements, types, values);
+ pool.insertRecord(device, time, measurements, types, values);
+ }
+
+ /** insert data to IoTDB */
+ private void insertDatas(List<String> datas)
+ throws IoTDBConnectionException, StatementExecutionException {
+ int size = datas.size();
+ List<String> deviceIds = new ArrayList<>(size);
+ List<Long> times = new ArrayList<>(size);
+ ;
Review comment:
this ";" ?
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org