private static class HFileArchiver.FileablePath extends HFileArchiver.File
| Modifier and Type | Field and Description |
|---|---|
private org.apache.hadoop.fs.Path |
file |
private HFileArchiver.FileStatusConverter |
getAsFile |
fs| Constructor and Description |
|---|
FileablePath(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path file) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
close any outside readers of the file
|
void |
delete()
Delete the file
|
Collection<HFileArchiver.File> |
getChildren() |
String |
getName() |
(package private) org.apache.hadoop.fs.Path |
getPath() |
boolean |
isFile()
Check to see if this is a file or a directory
|
getFileSystem, moveAndClose, toStringprivate final org.apache.hadoop.fs.Path file
private final HFileArchiver.FileStatusConverter getAsFile
public FileablePath(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path file)
public void delete() throws IOException
HFileArchiver.Filedelete in class HFileArchiver.FileIOException - on failurepublic String getName()
getName in class HFileArchiver.Filepublic Collection<HFileArchiver.File> getChildren() throws IOException
getChildren in class HFileArchiver.FileIOExceptionpublic boolean isFile() throws IOException
HFileArchiver.FileisFile in class HFileArchiver.FileIOException - on FileSystem connection errorpublic void close() throws IOException
HFileArchiver.Fileclose in class HFileArchiver.FileIOExceptionorg.apache.hadoop.fs.Path getPath()
getPath in class HFileArchiver.FileCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.