private static void output(CliContext ctx, List<List<String>> lists, List<Integer> maxSizeList) {
    ctx.getPrinter().printBlockLine(maxSizeList);
    ctx.getPrinter().printRow(lists, 0, maxSizeList);
    ctx.getPrinter().printBlockLine(maxSizeList);
    if (!lists.isEmpty()) {
      for (int i = 1; i < lists.get(0).size(); i++) {
        ctx.getPrinter().printRow(lists, i, maxSizeList);
      }
    }
    ctx.getPrinter().printBlockLine(maxSizeList);
    if (isReachEnd) {
      lineCount += lists.isEmpty() ? 0 : lists.get(0).size() - 1;
      ctx.getPrinter().printCount(lineCount);
    } else {
      lineCount += maxPrintRowCount;
    }
  }
Cache all results.

@param resultSet jdbc resultSet
@param maxSizeList the longest result of every column
@param columnCount the number of column
@param resultSetMetaData jdbc resultSetMetaData
@param zoneId your time zone
@return {@literal List<List<String>> result}
@throws SQLException throw exception
iotdb-client/cli/src/main/java/org/apache/iotdb/cli/AbstractCli.java