Tian Jiang created IOTDB-163:
--------------------------------

             Summary: Support create device template and create device.
                 Key: IOTDB-163
                 URL: https://issues.apache.org/jira/browse/IOTDB-163
             Project: Apache IoTDB
          Issue Type: Improvement
            Reporter: Tian Jiang


In the present version, it is a little trouble some to create a set timeseries 
that has the same measurements. On the other hand, although we use the 
conception "device" in the code, it is not properly abstracted.

Expected usage:

Using IoTDB in a more _*relational*_ way:

*CREATE DEVICE TEMPLATE vehicle (speed DOUBLE PLAIN, direction* *DOUBLE PLAIN, 
temperature* *DOUBLE PLAIN, fuel* *DOUBLE PLAIN******)*

If all datatypes(or encodings) are the same, you can write the equal form:

*CREATE DEVICE TEMPLATE vehicle MEASUREMENTS (speed, direction, temperature, 
fuel) DATATYPE DOUBLE ENCODING PLAIN*

Then you will be able to create time series in an easier way:

*CREATE DEVICE (vehicle) root.sg1.vehicle1*

Which equals:

*CREATE TIMESERIES root.sg1.vehicle1.speed WITH DATATYPE=DOUBLE,ENCODING=PLAIN*

*CREATE TIMESERIES root.sg1.vehicle1.direction WITH 
DATATYPE=DOUBLE,ENCODING=PLAIN*

*CREATE TIMESERIES root.sg1.vehicle1.fuel WITH DATATYPE=DOUBLE,ENCODING=PLAIN*

*CREATE TIMESERIES root.sg1.vehicle1.temperature WITH 
DATATYPE=DOUBLE,ENCODING=PLAIN*

I ** hope this will narrow the gap of using IoTDB and traditional relation 
databases.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to