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
FieldsFields inherited from class org.apache.hadoop.hbase.backup.HFileArchiver.File
fs -
Constructor Summary
Constructors -
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
-
-
Constructor Details
-
FileableStoreFile
-
-
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
-
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
-
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
-
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
-