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/07/08 06:01:13 UTC

[GitHub] [incubator-iotdb] jixuan1989 commented on a change in pull request #224: Tsfile write example revised

jixuan1989 commented on a change in pull request #224: Tsfile write example revised
URL: https://github.com/apache/incubator-iotdb/pull/224#discussion_r300931858
 
 

 ##########
 File path: tsfile/example/readme.md
 ##########
 @@ -31,27 +31,37 @@ The example is to show how to write and read a TsFile File.
     <dependency>
         <groupId>org.apache.iotdb</groupId>
         <artifactId>tsfile</artifactId>
-     	  <version>0.7.0</version>
+     	  <version>0.8.0-SNAPSHOT</version>
     </dependency>
 </dependencies>
 ```
 
-## Run TsFileWrite1.java
 
-```
-  The class is to show how to write Tsfile by using json schema,it use the first interface: 
-            public TsFileWriter(File file) throws WriteProcessException, IOException
-```
+## Run TsFileWrite.java
 
-## Run TsFileWrite2.java
-
-```
-  The class is to show how to write Tsfile directly,it use the second interface: 
-            public void addMeasurement(MeasurementSchema measurementSchema) throws WriteProcessException
-```
+  This class is to show how to write a Tsfile. It provided two ways:
+  
+   The first one is using a JSON file for measurement(s). The JSON file is an array of JSON objects(schema). The object
+   must include the *measurement_id*, *datatype*, *encoding*, and *compressor*. 
+   
+   An example JSON file is provided in the comments in 
 
 Review comment:
   json string rather than file

----------------------------------------------------------------
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