Package org.apache.iotdb.tsfile.utils
Class TsFileUtils
- java.lang.Object
-
- org.apache.iotdb.tsfile.utils.TsFileUtils
-
public class TsFileUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description TsFileUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetDataRegionId(File tsFile)static StringgetStorageGroup(File tsFile)static longgetTimePartition(File tsFile)static booleanisSequence(File tsFile)static booleanisTsFileComplete(File file)decides whether a TsFile is complete (the head magic and tail magic string exists.)
-
-
-
Method Detail
-
isTsFileComplete
public static boolean isTsFileComplete(File file) throws IOException
decides whether a TsFile is complete (the head magic and tail magic string exists.)- Parameters:
file- given the TsFile Path- Throws:
IOException- the io operations on file fails
-
getTimePartition
public static long getTimePartition(File tsFile)
-
getDataRegionId
public static int getDataRegionId(File tsFile)
-
isSequence
public static boolean isSequence(File tsFile)
-
-