public class HFileSystem
extends FilterFileSystem
Modifier and Type | Field and Description |
---|---|
static Log |
LOG |
Constructor and Description |
---|
HFileSystem(Configuration conf,
boolean useHBaseChecksum)
Create a FileSystem object for HBase regionservers.
|
HFileSystem(FileSystem fs)
Wrap a FileSystem object within a HFileSystem.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
addLocationsOrderInterceptor(Configuration conf) |
void |
close()
Close this filesystem object
|
FSDataOutputStream |
createNonRecursive(Path f,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
Progressable progress)
The org.apache.hadoop.fs.FilterFileSystem does not yet support
createNonRecursive.
|
static FileSystem |
get(Configuration conf)
Create a new HFileSystem object, similar to FileSystem.get().
|
FileSystem |
getBackingFs()
Returns the underlying filesystem
|
static FileSystem |
getLocalFs(Configuration conf)
Wrap a LocalFileSystem within a HFileSystem.
|
FileSystem |
getNoChecksumFs()
Returns the filesystem that is specially setup for
doing reads from storage.
|
boolean |
useHBaseChecksum()
Are we verifying checksums in HBase?
|
public HFileSystem(Configuration conf, boolean useHBaseChecksum) throws IOException
conf
- The configuration to be used for the filesystemuseHBaseChecksum
- if true, then use
checksum verfication in hbase, otherwise
delegate checksum verification to the FileSystem.IOException
public HFileSystem(FileSystem fs)
fs
- Set the noChecksumFs and writeFs to this specified filesystem.public FileSystem getNoChecksumFs()
public FileSystem getBackingFs() throws IOException
IOException
public boolean useHBaseChecksum()
public void close() throws IOException
IOException
public static boolean addLocationsOrderInterceptor(Configuration conf) throws IOException
IOException
public static FileSystem get(Configuration conf) throws IOException
IOException
public static FileSystem getLocalFs(Configuration conf) throws IOException
IOException
public FSDataOutputStream createNonRecursive(Path f, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) throws IOException
IOException