private static class HFileArchiver.FileableStoreFile extends HFileArchiver.File
Modifier and Type | Field and Description |
---|---|
(package private) StoreFile |
file |
fs
Constructor and Description |
---|
HFileArchiver.FileableStoreFile(org.apache.hadoop.fs.FileSystem fs,
StoreFile store) |
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, toString
StoreFile file
public HFileArchiver.FileableStoreFile(org.apache.hadoop.fs.FileSystem fs, StoreFile store)
public void delete() throws IOException
HFileArchiver.File
delete
in class HFileArchiver.File
IOException
- on failurepublic String getName()
getName
in class HFileArchiver.File
public boolean isFile()
HFileArchiver.File
isFile
in class HFileArchiver.File
public Collection<HFileArchiver.File> getChildren() throws IOException
getChildren
in class HFileArchiver.File
IOException
public void close() throws IOException
HFileArchiver.File
close
in class HFileArchiver.File
IOException
org.apache.hadoop.fs.Path getPath()
getPath
in class HFileArchiver.File
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.