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
FieldsModifier and TypeFieldDescriptionprivate final org.apache.hadoop.fs.Pathprivate final HFileArchiver.FileStatusConverterFields inherited from class org.apache.hadoop.hbase.backup.HFileArchiver.File
fs -
Constructor Summary
ConstructorsConstructorDescriptionFileablePath(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path file) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()close any outside readers of the filevoiddelete()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.PathgetPath()Returns the path to this filebooleanisFile()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.FileDelete the file- Specified by:
deletein classHFileArchiver.File- Throws:
IOException- on failure
-
getName
Description copied from class:HFileArchiver.FileReturns the name of the file (not the full fs path, just the individual file name)- Specified by:
getNamein classHFileArchiver.File
-
getChildren
- Specified by:
getChildrenin 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.FileCheck to see if this is a file or a directory- Specified by:
isFilein classHFileArchiver.File- Returns:
- true if it is a file, false otherwise
- Throws:
IOException- onFileSystemconnection error
-
close
Description copied from class:HFileArchiver.Fileclose any outside readers of the file- Specified by:
closein classHFileArchiver.File- Throws:
IOException
-
getPath
org.apache.hadoop.fs.Path getPath()Description copied from class:HFileArchiver.FileReturns the path to this file- Specified by:
getPathin classHFileArchiver.File
-