You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2022/07/28 10:39:10 UTC
[iotdb] 01/01: Remove the useless code in Session
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch remove_main_code_in_session
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 50d996613a5511c6eed0c65dd4b1d478176d41c4
Author: HTHou <hh...@outlook.com>
AuthorDate: Thu Jul 28 18:38:55 2022 +0800
Remove the useless code in Session
---
.../main/java/org/apache/iotdb/session/Session.java | 19 +------------------
1 file changed, 1 insertion(+), 18 deletions(-)
diff --git a/session/src/main/java/org/apache/iotdb/session/Session.java b/session/src/main/java/org/apache/iotdb/session/Session.java
index df5930187d..b19ad8e9fb 100644
--- a/session/src/main/java/org/apache/iotdb/session/Session.java
+++ b/session/src/main/java/org/apache/iotdb/session/Session.java
@@ -134,24 +134,7 @@ public class Session {
// The version number of the client which used for compatibility in the server
protected Version version;
-
- public static void main(String args[])
- throws IoTDBConnectionException, StatementExecutionException {
- Session session = new Session("127.0.0.1", 6667);
- session.open();
-
- long timestamp = 1649949302008L;
- for (int i = 0; i < 10000; i++) {
- String sql =
- String.format(
- "insert into root.sg.d1(time,s1,s2,s3,s4) values(%d,%d,%d,%d,%d);",
- timestamp, i * 10 + 1, i * 10 + 2, i * 10 + 3, i * 10 + 4);
- session.executeNonQueryStatement(sql);
- timestamp++;
- }
- session.close();
- }
-
+
public Session(String host, int rpcPort) {
this(
host,