|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object datafu.hourglass.jobs.FileCleaner
public class FileCleaner
Used to remove files from the file system when they are no longer needed.
Constructor Summary | |
---|---|
FileCleaner(org.apache.hadoop.fs.FileSystem fs)
|
Method Summary | |
---|---|
org.apache.hadoop.fs.Path |
add(org.apache.hadoop.fs.Path path)
Add a path to be removed later. |
java.lang.String |
add(java.lang.String path)
Add a path to be removed later. |
void |
clean()
Removes added paths from the file system. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileCleaner(org.apache.hadoop.fs.FileSystem fs)
Method Detail |
---|
public org.apache.hadoop.fs.Path add(org.apache.hadoop.fs.Path path)
path
-
public java.lang.String add(java.lang.String path)
path
-
public void clean() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |