Class TsFileExtractVisdata


  • public class TsFileExtractVisdata
    extends java.lang.Object
    Extract, 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.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • seqFileNameSuffix

        public static java.lang.String seqFileNameSuffix
      • unseqFileNameSuffix

        public static java.lang.String unseqFileNameSuffix
    • Constructor Detail

      • TsFileExtractVisdata

        public TsFileExtractVisdata()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        Throws:
        java.io.IOException