private abstract static class HFileArchiver.File extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.hadoop.fs.FileSystem |
fs |
Constructor and Description |
---|
File(org.apache.hadoop.fs.FileSystem fs) |
Modifier and Type | Method and Description |
---|---|
(package private) abstract void |
close()
close any outside readers of the file n
|
(package private) abstract void |
delete()
Delete the file
|
(package private) abstract Collection<HFileArchiver.File> |
getChildren() |
org.apache.hadoop.fs.FileSystem |
getFileSystem()
Returns the
FileSystem on which this file resides |
(package private) abstract String |
getName()
Returns the name of the file (not the full fs path, just the individual file name)
|
(package private) abstract org.apache.hadoop.fs.Path |
getPath()
Returns the path to this file
|
(package private) abstract boolean |
isFile()
Check to see if this is a file or a directory
|
boolean |
moveAndClose(org.apache.hadoop.fs.Path dest)
Move the file to the given destination n * @return true on success n
|
String |
toString() |
protected final org.apache.hadoop.fs.FileSystem fs
public File(org.apache.hadoop.fs.FileSystem fs)
abstract void delete() throws IOException
IOException
- on failureabstract boolean isFile() throws IOException
IOException
- on FileSystem
connection errorabstract Collection<HFileArchiver.File> getChildren() throws IOException
IOException
abstract void close() throws IOException
IOException
abstract String getName()
abstract org.apache.hadoop.fs.Path getPath()
public boolean moveAndClose(org.apache.hadoop.fs.Path dest) throws IOException
IOException
public org.apache.hadoop.fs.FileSystem getFileSystem()
FileSystem
on which this file residesCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.