Package org.apache.hadoop.hbase.backup
Class HFileArchiver.FileableStoreFile
java.lang.Object
org.apache.hadoop.hbase.backup.HFileArchiver.File
org.apache.hadoop.hbase.backup.HFileArchiver.FileableStoreFile
- Enclosing class:
- HFileArchiver
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.backup.HFileArchiver.File
fs
-
Constructor Summary
-
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
-
-
Constructor Details
-
FileableStoreFile
-
-
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
-
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
-
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
-
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
-