This is an automated email from the ASF dual-hosted git repository.
kangrong pushed a commit to branch py_cli_performance
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/py_cli_performance by this
push:
new cf26531 code format
cf26531 is described below
commit cf2653184080667184b3e326c5809049ec94552a
Author: kr11 <3095717866.com>
AuthorDate: Sun Aug 8 08:14:04 2021 +0800
code format
---
example/mqtt-customize/pom.xml | 1 -
.../main/java/org/apache/iotdb/TabletExample.java | 23 +++++++++++-----------
2 files changed, 11 insertions(+), 13 deletions(-)
diff --git a/example/mqtt-customize/pom.xml b/example/mqtt-customize/pom.xml
index 7098667..c524fb0 100644
--- a/example/mqtt-customize/pom.xml
+++ b/example/mqtt-customize/pom.xml
@@ -37,6 +37,5 @@
<artifactId>iotdb-server</artifactId>
<version>${project.version}</version>
</dependency>
-
</dependencies>
</project>
diff --git a/example/session/src/main/java/org/apache/iotdb/TabletExample.java
b/example/session/src/main/java/org/apache/iotdb/TabletExample.java
index 4f3b6d2..1d93526 100644
--- a/example/session/src/main/java/org/apache/iotdb/TabletExample.java
+++ b/example/session/src/main/java/org/apache/iotdb/TabletExample.java
@@ -99,7 +99,7 @@ public class TabletExample {
* Read csv file and insert tablet to IoTDB
*
* @param args: arg(with default value): arg0: dataFileName(sample.csv),
arg1: rowSize(10000),
- * arg2: colSize(5000).
+ * arg2: colSize(5000).
*/
public static void main(String[] args) throws Exception {
@@ -163,16 +163,15 @@ public class TabletExample {
session.executeNonQueryStatement("delete timeseries root.*");
session.close();
- System.out.println(String.format("load cost: %.3f",
- ((float) loadCost / 1000_000_000)));
- System.out.println(String.format("construct tablet cost: %.3f",
- ((float) (allEnd - allStart - insertCost - loadCost) / 1000_000_000)));
- System.out.println(String.format("insert tablet cost: %.3f",
- ((float) insertCost / 1000_000_000)));
- System.out.println(String.format("total cost: %.3f",
- ((float) (allEnd - allStart) / 1000_000_000)));
- System.out.println(String.format("%.3f",
- ((float) loadCost / 1000_000_000)));
-
+ System.out.println(String.format("load cost: %.3f", ((float) loadCost /
1000_000_000)));
+ System.out.println(
+ String.format(
+ "construct tablet cost: %.3f",
+ ((float) (allEnd - allStart - insertCost - loadCost) /
1000_000_000)));
+ System.out.println(
+ String.format("insert tablet cost: %.3f", ((float) insertCost /
1000_000_000)));
+ System.out.println(
+ String.format("total cost: %.3f", ((float) (allEnd - allStart) /
1000_000_000)));
+ System.out.println(String.format("%.3f", ((float) loadCost /
1000_000_000)));
}
}