You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by yu...@apache.org on 2022/01/27 14:02:13 UTC
[iotdb] branch kyy-2022 updated: rename
This is an automated email from the ASF dual-hosted git repository.
yuyuankang pushed a commit to branch kyy-2022
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/kyy-2022 by this push:
new 510be33 rename
510be33 is described below
commit 510be335f69932394212abfe68ac056b1a1f54b4
Author: yuyuankang <yu...@hotmail.com>
AuthorDate: Thu Jan 27 22:00:53 2022 +0800
rename
---
.../session/src/main/java/org/apache/iotdb/WriteCSVToIoTDB.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/example/session/src/main/java/org/apache/iotdb/WriteCSVToIoTDB.java b/example/session/src/main/java/org/apache/iotdb/WriteCSVToIoTDB.java
index f4369de..4701e9f 100644
--- a/example/session/src/main/java/org/apache/iotdb/WriteCSVToIoTDB.java
+++ b/example/session/src/main/java/org/apache/iotdb/WriteCSVToIoTDB.java
@@ -13,15 +13,15 @@ import java.util.Collections;
public class WriteCSVToIoTDB {
- public static final String fullPath = "root.kobelco.trans.03.1090001603.2401604.KOB_0002_00_67";
- public static final String path = "/home/kyy/Documents/kdd/data/" + fullPath + ".csv";
+ public static final String timeseries = "root.kobelco.trans.03.1090001603.2401604.KOB_0002_00_67";
+ public static final String path = "/home/kyy/Documents/kdd/data/" + timeseries + ".csv";
public static void main(String[] args)
throws IOException, IoTDBConnectionException, StatementExecutionException {
- String[] nodes = fullPath.split("\\.");
+ String[] nodes = timeseries.split("\\.");
String measurements = nodes[nodes.length - 1];
- String device = fullPath.replace("." + measurements, "");
+ String device = timeseries.replace("." + measurements, "");
Session session = new Session("127.0.0.1", 6667, "root", "root");
session.open(false);