This is an automated email from the ASF dual-hosted git repository.
jackietien pushed a commit to branch object_type
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/object_type by this push:
new 400bb5cad8f add tiff example
400bb5cad8f is described below
commit 400bb5cad8ff3389e412f898bc0e05ba720d4674
Author: JackieTien97 <[email protected]>
AuthorDate: Wed Jul 9 09:19:32 2025 +0800
add tiff example
---
.../main/java/org/apache/iotdb/ObjectExample.java | 68 +++++++++++-----------
1 file changed, 34 insertions(+), 34 deletions(-)
diff --git a/example/session/src/main/java/org/apache/iotdb/ObjectExample.java
b/example/session/src/main/java/org/apache/iotdb/ObjectExample.java
index 635141edd10..3339d3aae5a 100644
--- a/example/session/src/main/java/org/apache/iotdb/ObjectExample.java
+++ b/example/session/src/main/java/org/apache/iotdb/ObjectExample.java
@@ -83,7 +83,7 @@ public class ObjectExample {
0,
Files.readAllBytes(
Paths.get(
-
"/Users/shuww/Downloads/2_1746622362350_fa24aa15233f4e76bcda789a5771f43f")));
+
"/Users/jackietien/Downloads/2_1746622362350_fa24aa15233f4e76bcda789a5771f43f")));
session.insert(tablet);
tablet.reset();
@@ -101,41 +101,41 @@ public class ObjectExample {
0,
Files.readAllBytes(
Paths.get(
-
"/Users/shuww/Downloads/2_1746622367063_8fb5ac8e21724140874195b60b878664")));
+
"/Users/jackietien/Downloads/2_1746622367063_8fb5ac8e21724140874195b60b878664")));
+ session.insert(tablet);
+ tablet.reset();
+
+ tablet = new Tablet("tiff_table", columnNameList, dataTypeList,
columnTypeList, 1);
+ rowIndex = tablet.getRowSize();
+ tablet.addTimestamp(rowIndex, 1);
+ tablet.addValue(rowIndex, 0, "1");
+ tablet.addValue(rowIndex, 1, "5");
+ tablet.addValue(rowIndex, 2, "3");
+ tablet.addValue(rowIndex, 3, 37.6F);
+ tablet.addValue(
+ rowIndex,
+ 4,
+ true,
+ 0,
+
Files.readAllBytes(Paths.get("/Users/jackietien/Downloads/1751891240130.tiff")));
+ session.insert(tablet);
+ tablet.reset();
+
+ tablet = new Tablet("tiff_table", columnNameList, dataTypeList,
columnTypeList, 1);
+ rowIndex = tablet.getRowSize();
+ tablet.addTimestamp(rowIndex, 2);
+ tablet.addValue(rowIndex, 0, "1");
+ tablet.addValue(rowIndex, 1, "5");
+ tablet.addValue(rowIndex, 2, "4");
+ tablet.addValue(rowIndex, 3, 37.6F);
+ tablet.addValue(
+ rowIndex,
+ 4,
+ true,
+ 0,
+
Files.readAllBytes(Paths.get("/Users/jackietien/Downloads/1751891242743.tiff")));
session.insert(tablet);
tablet.reset();
- //
- // tablet = new Tablet("tiff_table", columnNameList, dataTypeList,
columnTypeList, 1);
- // rowIndex = tablet.getRowSize();
- // tablet.addTimestamp(rowIndex, 1);
- // tablet.addValue(rowIndex, 0, "1");
- // tablet.addValue(rowIndex, 1, "5");
- // tablet.addValue(rowIndex, 2, "3");
- // tablet.addValue(rowIndex, 3, 37.6F);
- // tablet.addValue(
- // rowIndex,
- // 4,
- // true,
- // 0,
- //
Files.readAllBytes(Paths.get("/Users/jackietien/Downloads/1751891240130.tiff")));
- // session.insert(tablet);
- // tablet.reset();
- //
- // tablet = new Tablet("tiff_table", columnNameList, dataTypeList,
columnTypeList, 1);
- // rowIndex = tablet.getRowSize();
- // tablet.addTimestamp(rowIndex, 2);
- // tablet.addValue(rowIndex, 0, "1");
- // tablet.addValue(rowIndex, 1, "5");
- // tablet.addValue(rowIndex, 2, "4");
- // tablet.addValue(rowIndex, 3, 37.6F);
- // tablet.addValue(
- // rowIndex,
- // 4,
- // true,
- // 0,
- //
Files.readAllBytes(Paths.get("/Users/jackietien/Downloads/1751891242743.tiff")));
- // session.insert(tablet);
- // tablet.reset();
} catch (IoTDBConnectionException e) {
e.printStackTrace();