Package org.apache.hadoop.hbase.backup
Class HFileArchiver.FileablePath
java.lang.Object
org.apache.hadoop.hbase.backup.HFileArchiver.File
org.apache.hadoop.hbase.backup.HFileArchiver.FileablePath
- Enclosing class:
- HFileArchiver
-
Field Summary
Modifier and TypeFieldDescriptionprivate final org.apache.hadoop.fs.Path
private final HFileArchiver.FileStatusConverter
Fields inherited from class org.apache.hadoop.hbase.backup.HFileArchiver.File
fs
-
Constructor Summary
ConstructorDescriptionFileablePath
(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path file) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
close any outside readers of the filevoid
delete()
Delete the filegetName()
Returns the name of the file (not the full fs path, just the individual file name)(package private) org.apache.hadoop.fs.Path
getPath()
Returns the path to this fileboolean
isFile()
Check to see if this is a file or a directoryMethods inherited from class org.apache.hadoop.hbase.backup.HFileArchiver.File
getFileSystem, moveAndClose, toString
-
Field Details
-
file
-
getAsFile
-
-
Constructor Details
-
FileablePath
-
-
Method Details
-
delete
Description copied from class:HFileArchiver.File
Delete the file- Specified by:
delete
in classHFileArchiver.File
- Throws:
IOException
- on failure
-
getName
Description copied from class:HFileArchiver.File
Returns the name of the file (not the full fs path, just the individual file name)- Specified by:
getName
in classHFileArchiver.File
-
getChildren
- Specified by:
getChildren
in classHFileArchiver.File
- Returns:
- if this is a directory, returns all the children in the directory, otherwise returns an empty list
- Throws:
IOException
-
isFile
Description copied from class:HFileArchiver.File
Check to see if this is a file or a directory- Specified by:
isFile
in classHFileArchiver.File
- Returns:
- true if it is a file, false otherwise
- Throws:
IOException
- onFileSystem
connection error
-
close
Description copied from class:HFileArchiver.File
close any outside readers of the file- Specified by:
close
in classHFileArchiver.File
- Throws:
IOException
-
getPath
org.apache.hadoop.fs.Path getPath()Description copied from class:HFileArchiver.File
Returns the path to this file- Specified by:
getPath
in classHFileArchiver.File
-