public class TsFileUtils extends Object
| Constructor and Description |
|---|
TsFileUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getDataRegionId(File tsFile) |
static String |
getStorageGroup(File tsFile) |
static long |
getTimePartition(File tsFile) |
static boolean |
isSequence(File tsFile) |
static boolean |
isTsFileComplete(File file)
decides whether a TsFile is complete (the head magic and tail magic string exists.)
|
public static boolean isTsFileComplete(File file) throws IOException
file - given the TsFile PathIOException - the io operations on file failspublic static long getTimePartition(File tsFile)
public static int getDataRegionId(File tsFile)
public static boolean isSequence(File tsFile)
Copyright © 2022 The Apache Software Foundation. All rights reserved.