|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.unigram.likelike.common.FsUtil
public final class FsUtil
File utility class.
Method Summary | |
---|---|
static boolean |
checkPath(org.apache.hadoop.fs.Path dir,
org.apache.hadoop.conf.Configuration conf)
Check a file or directory exist. |
static boolean |
checkPath(org.apache.hadoop.fs.Path dir,
org.apache.hadoop.fs.FileSystem fs)
Check a file or directory exist. |
static void |
clean(org.apache.hadoop.fs.FileSystem fs,
java.lang.String... fileNames)
Delete files. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean checkPath(org.apache.hadoop.fs.Path dir, org.apache.hadoop.fs.FileSystem fs) throws java.io.IOException
dir
- path to be checkedfs
- filesystem containing the path
java.io.IOException
- occurs deleting filepublic static boolean checkPath(org.apache.hadoop.fs.Path dir, org.apache.hadoop.conf.Configuration conf) throws java.io.IOException
dir
- dir path to be checkedconf
- containing the filesystem of path
java.io.IOException
- when opening error such as there is no directory.public static void clean(org.apache.hadoop.fs.FileSystem fs, java.lang.String... fileNames) throws java.io.IOException
fs
- filesytem containing files with fileNamesfileNames
- file names to be removed
java.io.IOException
- -
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |