public interface VolumeManager
| Modifier and Type | Interface and Description |
|---|---|
static class |
VolumeManager.FileType |
| Modifier and Type | Method and Description |
|---|---|
String |
choose(com.google.common.base.Optional<String> tableId,
String[] options) |
void |
close() |
org.apache.hadoop.fs.FSDataOutputStream |
create(org.apache.hadoop.fs.Path dest) |
org.apache.hadoop.fs.FSDataOutputStream |
create(org.apache.hadoop.fs.Path path,
boolean b) |
org.apache.hadoop.fs.FSDataOutputStream |
create(org.apache.hadoop.fs.Path path,
boolean b,
int int1,
short int2,
long long1) |
boolean |
createNewFile(org.apache.hadoop.fs.Path writable) |
org.apache.hadoop.fs.FSDataOutputStream |
createSyncable(org.apache.hadoop.fs.Path logPath,
int buffersize,
short replication,
long blockSize) |
boolean |
delete(org.apache.hadoop.fs.Path path) |
boolean |
deleteRecursively(org.apache.hadoop.fs.Path path) |
boolean |
exists(org.apache.hadoop.fs.Path path) |
org.apache.hadoop.fs.ContentSummary |
getContentSummary(org.apache.hadoop.fs.Path dir) |
short |
getDefaultReplication(org.apache.hadoop.fs.Path logPath) |
Volume |
getDefaultVolume()
Fetch the default Volume
|
org.apache.hadoop.fs.FileStatus |
getFileStatus(org.apache.hadoop.fs.Path path) |
org.apache.hadoop.fs.Path |
getFullPath(Key key) |
org.apache.hadoop.fs.Path |
getFullPath(String tableId,
String path) |
org.apache.hadoop.fs.Path |
getFullPath(VolumeManager.FileType fileType,
String fileName) |
Volume |
getVolumeByPath(org.apache.hadoop.fs.Path path) |
Collection<Volume> |
getVolumes()
Fetch the configured Volumes, excluding the default Volume
|
org.apache.hadoop.fs.FileStatus[] |
globStatus(org.apache.hadoop.fs.Path path) |
boolean |
isFile(org.apache.hadoop.fs.Path path) |
boolean |
isReady() |
org.apache.hadoop.fs.FileStatus[] |
listStatus(org.apache.hadoop.fs.Path path) |
org.apache.hadoop.fs.Path |
matchingFileSystem(org.apache.hadoop.fs.Path source,
String[] options) |
boolean |
mkdirs(org.apache.hadoop.fs.Path directory) |
boolean |
mkdirs(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.permission.FsPermission permission) |
boolean |
moveToTrash(org.apache.hadoop.fs.Path sourcePath) |
org.apache.hadoop.fs.FSDataInputStream |
open(org.apache.hadoop.fs.Path path) |
boolean |
rename(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.Path newPath) |
void close()
throws IOException
IOExceptionorg.apache.hadoop.fs.FSDataOutputStream create(org.apache.hadoop.fs.Path dest)
throws IOException
IOExceptionorg.apache.hadoop.fs.FSDataOutputStream create(org.apache.hadoop.fs.Path path,
boolean b)
throws IOException
IOExceptionorg.apache.hadoop.fs.FSDataOutputStream create(org.apache.hadoop.fs.Path path,
boolean b,
int int1,
short int2,
long long1)
throws IOException
IOExceptionboolean createNewFile(org.apache.hadoop.fs.Path writable)
throws IOException
IOExceptionorg.apache.hadoop.fs.FSDataOutputStream createSyncable(org.apache.hadoop.fs.Path logPath,
int buffersize,
short replication,
long blockSize)
throws IOException
IOExceptionboolean delete(org.apache.hadoop.fs.Path path)
throws IOException
IOExceptionboolean deleteRecursively(org.apache.hadoop.fs.Path path)
throws IOException
IOExceptionboolean exists(org.apache.hadoop.fs.Path path)
throws IOException
IOExceptionorg.apache.hadoop.fs.FileStatus getFileStatus(org.apache.hadoop.fs.Path path)
throws IOException
IOExceptionVolume getVolumeByPath(org.apache.hadoop.fs.Path path)
org.apache.hadoop.fs.Path matchingFileSystem(org.apache.hadoop.fs.Path source,
String[] options)
org.apache.hadoop.fs.FileStatus[] listStatus(org.apache.hadoop.fs.Path path)
throws IOException
IOExceptionboolean mkdirs(org.apache.hadoop.fs.Path directory)
throws IOException
IOExceptionboolean mkdirs(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.permission.FsPermission permission)
throws IOException
IOExceptionorg.apache.hadoop.fs.FSDataInputStream open(org.apache.hadoop.fs.Path path)
throws IOException
IOExceptionboolean rename(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.Path newPath)
throws IOException
IOExceptionboolean moveToTrash(org.apache.hadoop.fs.Path sourcePath)
throws IOException
IOExceptionshort getDefaultReplication(org.apache.hadoop.fs.Path logPath)
boolean isFile(org.apache.hadoop.fs.Path path)
throws IOException
IOExceptionboolean isReady()
throws IOException
IOExceptionorg.apache.hadoop.fs.FileStatus[] globStatus(org.apache.hadoop.fs.Path path)
throws IOException
IOExceptionorg.apache.hadoop.fs.Path getFullPath(Key key)
org.apache.hadoop.fs.Path getFullPath(VolumeManager.FileType fileType, String fileName) throws IOException
IOExceptionorg.apache.hadoop.fs.ContentSummary getContentSummary(org.apache.hadoop.fs.Path dir)
throws IOException
IOExceptionVolume getDefaultVolume()
Collection<Volume> getVolumes()
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.