Class TsFileExtractVisdata
- java.lang.Object
-
- org.apache.iotdb.db.tools.vis.TsFileExtractVisdata
-
public class TsFileExtractVisdata extends java.lang.ObjectExtract, from input tsfiles, necessary visualization information, which is what "vis.m" needs to plot figures.Input: [path1 seqIndicator1 path2 seqIndicator2 ... pathN seqIndicatorN outputPath]
Example: G:\\debug\\data\\sequence true G:\\debug\\data\\unsequence false visdata.csv 2N+1 args in total.
`seqIndicator` should be 'true' or 'false' (not case sensitive). 'true' means is the file is sequence, 'false' means the file is unsequence.
`Path` can be the full path of a file or a directory path. If it is a directory path, make sure that all files in this directory have the same seqIndicator.
All input TsFiles should be sealed. The handle of unsealed TsFile is left as future work when in need.
Output content format: [tsName, fileName, chunkId, startTime, endTime, pointCountNum]
`fileName`: If the tsfile is unsequence file, TsFileExtractVisdata will make sure that the fileName contains "unseq" as an indicator which will be used by "vis.m".
NOTE: There is no version info stored in TsFileV3/IoTDBV0.12 any more. As a result, TsFileExtractVisdata (1) will not extract version info as it does to TsFileV2/IoTDBV0.11 and (2) will not use reader.selfCheck to get ChunkMetadata, which will be fetched by reading metadata at the end of the TsFile instead. That means, the input TsFiles should all be sealed. The handle of unsealed TsFile is left as future work when in need.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringseqFileNameSuffixstatic java.lang.StringunseqFileNameSuffix
-
Constructor Summary
Constructors Constructor Description TsFileExtractVisdata()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)
-