private abstract static class HFileArchiver.File extends Object
| Modifier and Type | Field and Description | 
|---|---|
| protected org.apache.hadoop.fs.FileSystem | fs | 
| Constructor and Description | 
|---|
| File(org.apache.hadoop.fs.FileSystem fs) | 
| Modifier and Type | Method and Description | 
|---|---|
| (package private) abstract void | close()close any outside readers of the file | 
| (package private) abstract void | delete()Delete the file | 
| (package private) abstract Collection<HFileArchiver.File> | getChildren() | 
| org.apache.hadoop.fs.FileSystem | getFileSystem() | 
| (package private) abstract String | getName() | 
| (package private) abstract org.apache.hadoop.fs.Path | getPath() | 
| (package private) abstract boolean | isFile()Check to see if this is a file or a directory | 
| boolean | moveAndClose(org.apache.hadoop.fs.Path dest)Move the file to the given destination | 
| String | toString() | 
protected final org.apache.hadoop.fs.FileSystem fs
public File(org.apache.hadoop.fs.FileSystem fs)
abstract void delete() throws IOException
IOException - on failureabstract boolean isFile() throws IOException
IOException - on FileSystem connection errorabstract Collection<HFileArchiver.File> getChildren() throws IOException
IOExceptionabstract void close() throws IOException
IOExceptionabstract String getName()
abstract org.apache.hadoop.fs.Path getPath()
public boolean moveAndClose(org.apache.hadoop.fs.Path dest) throws IOException
dest - IOExceptionpublic org.apache.hadoop.fs.FileSystem getFileSystem()
FileSystem on which this file residesCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.