Class TsFileValidationTool


  • public class TsFileValidationTool
    extends java.lang.Object
    This tool can be used to check the correctness of tsfile and point out errors in specific timeseries or devices. The types of errors include the following:

    Device overlap between files

    Timeseries overlap between files

    Timeseries overlap between chunks

    Timeseries overlap between pages

    Timeseries overlap within one page

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int badFileNum  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void clearMap()  
      static void findUncorrectFiles​(java.util.List<java.io.File> tsFiles)  
      static void main​(java.lang.String[] args)
      The form of param is: [path of data dir or tsfile] [-pd = print details or not] [-f = path of outFile].
      • Methods inherited from class java.lang.Object

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

      • badFileNum

        public static int badFileNum
    • Constructor Detail

      • TsFileValidationTool

        public TsFileValidationTool()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        The form of param is: [path of data dir or tsfile] [-pd = print details or not] [-f = path of outFile]. Eg: xxx/iotdb/data/data1 xxx/xxx.tsfile -pd=true -f=xxx/TsFile_validation_view.txt

        The first parameter is required, the others are optional.

        Throws:
        java.io.IOException
      • findUncorrectFiles

        public static void findUncorrectFiles​(java.util.List<java.io.File> tsFiles)
      • clearMap

        public static void clearMap()