Package org.apache.iotdb.tsfile.utils
Class FSUtils
- java.lang.Object
-
- org.apache.iotdb.tsfile.utils.FSUtils
-
public class FSUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String[]fsPrefixstatic StringOS_FILE_SEPARATORstatic intPATH_FROM_DATABASE_LEVELstatic intPATH_FROM_SEQUENCE_LEVEL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FSTypegetFSType(File file)static FSTypegetFSType(String fsPath)static StringgetLocalTsFileShortPath(File localTsFile, int level)static StringgetOSDefaultPath(String bucket, int dataNodeId)static StringgetPath(String fsPath)static booleanisLocal(File file)static booleanisLocal(String fsPath)static FSPathparse(String fsPath)static FSPathparseLocalTsFile2OSFile(File localFile, String bucket, int dataNodeId)static voidreload()
-
-
-
Field Detail
-
PATH_FROM_SEQUENCE_LEVEL
public static final int PATH_FROM_SEQUENCE_LEVEL
- See Also:
- Constant Field Values
-
PATH_FROM_DATABASE_LEVEL
public static final int PATH_FROM_DATABASE_LEVEL
- See Also:
- Constant Field Values
-
fsPrefix
public static final String[] fsPrefix
-
OS_FILE_SEPARATOR
public static final String OS_FILE_SEPARATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
reload
public static void reload()
-
parseLocalTsFile2OSFile
public static FSPath parseLocalTsFile2OSFile(File localFile, String bucket, int dataNodeId) throws IOException
- Throws:
IOException
-
getLocalTsFileShortPath
public static String getLocalTsFileShortPath(File localTsFile, int level) throws IOException
- Throws:
IOException
-
isLocal
public static boolean isLocal(String fsPath)
-
isLocal
public static boolean isLocal(File file)
-
-