LeiRui opened a new pull request #451: [IOTDB-252]add/fix shell and bat for 
TsFileSketchTool/TsFileResourcePrinter
URL: https://github.com/apache/incubator-iotdb/pull/451
 
 
   Usage Examples:
   - ./print-tsfile-resource-files.sh /home/rl/fileDir
   ```
   ---------------------
   Starting Printing the TsFileResources
   ---------------------
   15:44:46.640 [main] WARN org.apache.iotdb.db.conf.IoTDBDescriptor - Cannot 
find IOTDB_HOME or IOTDB_CONF environment variable when loading config file 
iotdb-engine.properties, use default configuration
   15:44:46.655 [main] WARN 
org.apache.iotdb.tsfile.common.conf.TSFileDescriptor - Failed to find config 
file tsfile-format.properties at classpath, use default configuration
   analyzing /home/rl/tmp/1571064257513-101.tsfile ...
   device root.vehicle.d0, start time 3000 
(1970-01-01T08:00:03+08:00[Asia/Shanghai]), end time 100999 
(1970-01-01T08:01:40.999+08:00[Asia/Shanghai])
   analyzing the resource file finished.
   ```
   - print-tsfile-resource-files.bat /home/rl/fileDir is similar
   
   - print-tsfile-sketch.sh /home/rl/fileDir/1571064257513-101.tsfile
   ```
   ---------------------
   Starting Printing the TsFile Sketch
   ---------------------
   filename:/home/rl/tmp/1571064257513-101.tsfile
   outFile:TsFile_sketch_view.txt
   15:47:24.881 [main] WARN 
org.apache.iotdb.tsfile.common.conf.TSFileDescriptor - Failed to find config 
file tsfile-format.properties at classpath, use default configuration
   -------------------------------- TsFile Sketch 
--------------------------------
   file path: /home/rl/tmp/1571064257513-101.tsfile
   file length: 187349
   
               POSITION|        CONTENT
               --------         -------
                      0|        [magic head] TsFilev0.8.0
   >>>>>>>>>>>>>>>>>>>>>        [Chunk Group] of root.vehicle.d0 begins at pos 
12, ends at pos 186469, version:102, num of Chunks:6
                     12|        [Chunk] of s3, numOfPoints:10600, time 
range:[3000,13599], tsDataType:TEXT, 
                                
TsDigest:[min_value:A,max_value:E,first_value:A,last_value:E,sum_value:0.0]
                       |                [marker] 1
                       |                [ChunkHeader]
                       |                num of pages: 11
                  55718|        [Chunk] of s4, numOfPoints:10600, time 
range:[3000,13599], tsDataType:BOOLEAN, 
                                
TsDigest:[min_value:false,max_value:true,first_value:true,last_value:false,sum_value:0.0]
                       |                [marker] 1
                       |                [ChunkHeader]
                       |                num of pages: 11
                  68848|        [Chunk] of s5, numOfPoints:10600, time 
range:[3000,13599], tsDataType:DOUBLE, 
                                
TsDigest:[min_value:3000.0,max_value:13599.0,first_value:3000.0,last_value:13599.0,sum_value:8.79747E7]
                       |                [marker] 1
                       |                [ChunkHeader]
                       |                num of pages: 11
                  98474|        [Chunk] of s0, numOfPoints:21900, time 
range:[3000,100999], tsDataType:INT32, 
                                
TsDigest:[min_value:0,max_value:99,first_value:0,last_value:19,sum_value:889750.0]
                       |                [marker] 1
                       |                [ChunkHeader]
                       |                num of pages: 22
                 123369|        [Chunk] of s1, numOfPoints:21900, time 
range:[3000,100999], tsDataType:INT64, 
                                
TsDigest:[min_value:0,max_value:39,first_value:8,last_value:19,sum_value:300386.0]
                       |                [marker] 1
                       |                [ChunkHeader]
                       |                num of pages: 22
                 144741|        [Chunk] of s2, numOfPoints:21900, time 
range:[3000,100999], tsDataType:FLOAT, 
                                
TsDigest:[min_value:0.0,max_value:122.0,first_value:8.0,last_value:52.0,sum_value:778581.0]
                       |                [marker] 1
                       |                [ChunkHeader]
                       |                num of pages: 22
                       |        [marker] 0
                       |        [Chunk Group Footer]
   <<<<<<<<<<<<<<<<<<<<<        [Chunk Group] of root.vehicle.d0 ends
                 186469|        [marker] 2
                 186470|        [TsDeviceMetadata] of root.vehicle.d0, 
startTime:3000, endTime:100999
                       |                num of ChunkGroupMetaData: 1
                 187133|        [TsFileMetaData]
                       |                num of TsDeviceMetadataIndex: 1
                       |                num of measurementSchema: 6
                 187333|        [TsFileMetaDataSize] 200
                 187337|        [magic tail] TsFilev0.8.0
                 187349|        END of TsFile
   
   ---------------------------------- TsFile Sketch End 
----------------------------------
   ```
   
   - print-tsfile-sketch.bat /home/rl/fileDir/1571064257513-101.tsfile is 
similar
   
   JIRA IOTDB-252: 
https://issues.apache.org/jira/projects/IOTDB/issues/IOTDB-252
   
   As for the user guide, I plan to add that after pr#450[modify documents] is 
merged.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to