You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by xi...@apache.org on 2022/11/02 08:49:51 UTC

[iotdb] 02/02: add data model file

This is an automated email from the ASF dual-hosted git repository.

xiangweiwei pushed a commit to branch freemarker
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 887ed7688e2b7d323abc0c168e2dc3b42b7603e9
Author: Alima777 <wx...@gmail.com>
AuthorDate: Wed Nov 2 16:47:56 2022 +0800

    add data model file
---
 server/src/main/codegen/config.fmpp                |  4 ++--
 server/src/main/codegen/dataModel/AllDataType.tdd  | 28 ++++++++++++++++++++++
 .../src/main/codegen/dataModel/DecimalDataType.tdd | 20 ++++++++++++++++
 3 files changed, 50 insertions(+), 2 deletions(-)

diff --git a/server/src/main/codegen/config.fmpp b/server/src/main/codegen/config.fmpp
index 523af08add..2fcbc7e26e 100644
--- a/server/src/main/codegen/config.fmpp
+++ b/server/src/main/codegen/config.fmpp
@@ -1,6 +1,6 @@
 data: {
-    allDataTypes: tdd(../data/AllDataType.tdd),
-    decimalDataTypes: tdd(../data/DecimalDataType.tdd),
+    allDataTypes: tdd(../dataModel/AllDataType.tdd),
+    decimalDataTypes: tdd(../dataModel/DecimalDataType.tdd),
 }
 freemarkerLinks: {
     includes: includes/
diff --git a/server/src/main/codegen/dataModel/AllDataType.tdd b/server/src/main/codegen/dataModel/AllDataType.tdd
new file mode 100644
index 0000000000..35537b3a5a
--- /dev/null
+++ b/server/src/main/codegen/dataModel/AllDataType.tdd
@@ -0,0 +1,28 @@
+{
+  "types": [
+      {
+        "dataType": "boolean",
+        "column": "BooleanColumn"
+      }
+    ,{
+        "dataType": "int",
+        "column": "IntColumn"
+      }
+    ,{
+        "dataType": "long",
+        "column": "LongColumn"
+     }
+    ,{
+         "dataType": "float",
+         "column": "FloatColumn"
+     }
+   ,{
+        "dataType": "double",
+        "column": "DoubleColumn"
+    }
+    ,{
+         "dataType": "Binary",
+         "column": "BinaryColumn"
+     }
+  ]
+}
diff --git a/server/src/main/codegen/dataModel/DecimalDataType.tdd b/server/src/main/codegen/dataModel/DecimalDataType.tdd
new file mode 100644
index 0000000000..aa258c763c
--- /dev/null
+++ b/server/src/main/codegen/dataModel/DecimalDataType.tdd
@@ -0,0 +1,20 @@
+{
+  "types": [
+      {
+        "dataType": "int",
+        "column": "IntColumn"
+      }
+    ,{
+        "dataType": "long",
+        "column": "LongColumn"
+      }
+    ,{
+        "dataType": "float",
+        "column": "FloatColumn"
+     }
+    ,{
+         "dataType": "double",
+         "column": "DoubleColumn"
+     }
+ ]
+}