qiaojialin commented on a change in pull request #804: [IOTDB-467] The CLI 
displays query results in a batch manner
URL: https://github.com/apache/incubator-iotdb/pull/804#discussion_r379712446
 
 

 ##########
 File path: client/src/main/java/org/apache/iotdb/client/AbstractClient.java
 ##########
 @@ -532,45 +539,61 @@ private static void executeQuery(IoTDBConnection 
connection, String cmd) {
     println(String.format("It costs %.3fs", costTime / 1000.0));
   }
 
+  private static void printNextBatchResult(ZoneId zoneId, ResultSet resultSet,
+      ResultSetMetaData resultSetMetaData, int columnLength, List<Integer> 
maxSizeList,
+      int preLinesCount)
+      throws SQLException {
+    maxSizeList.clear();
+    List<List<String>> lists = cacheResult(resultSet, maxSizeList, 
columnLength,
+        resultSetMetaData, zoneId);
+    output(lists, maxSizeList);
+    if (isReachMaxLine) {
+      println(String.format("Reach maxPrintRowCount = %s lines, enter q to 
exit, other to continue",
 
 Review comment:
   ```suggestion
         println(String.format("Printed %s lines, enter q to exit, other to 
continue",
   ```

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to