You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2019/11/07 03:09:28 UTC

[GitHub] [incubator-iotdb] HTHou opened a new pull request #527: [IOTDB-163] Support create device template and create device

HTHou opened a new pull request #527: [IOTDB-163] Support create device template and create device
URL: https://github.com/apache/incubator-iotdb/pull/527
 
 
   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 COMPLEX 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 SIMPLE 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

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services