public class FileCleaner
extends java.lang.Object
Constructor and Description |
---|
FileCleaner(org.apache.hadoop.fs.FileSystem fs) |
Modifier and Type | Method and Description |
---|---|
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.
|
public org.apache.hadoop.fs.Path add(org.apache.hadoop.fs.Path path)
path
- path to be removed laterpublic java.lang.String add(java.lang.String path)
path
- path to be removed laterpublic void clean() throws java.io.IOException
java.io.IOException
- IOException