public class GlusterVolume
extends org.apache.hadoop.fs.RawLocalFileSystem
Modifier and Type | Field and Description |
---|---|
protected static GlusterFSXattr |
attr |
static URI |
NAME |
protected String |
root |
Constructor and Description |
---|
GlusterVolume() |
GlusterVolume(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.fs.Path |
fileToPath(File path) |
long |
getBlockSize(org.apache.hadoop.fs.Path path) |
org.apache.hadoop.fs.BlockLocation[] |
getFileBlockLocations(org.apache.hadoop.fs.FileStatus file,
long start,
long len) |
org.apache.hadoop.fs.FileStatus |
getFileStatus(org.apache.hadoop.fs.Path f) |
URI |
getUri() |
org.apache.hadoop.fs.Path |
getWorkingDirectory() |
org.apache.hadoop.fs.FileStatus[] |
listStatus(org.apache.hadoop.fs.Path f) |
File |
pathToFile(org.apache.hadoop.fs.Path path) |
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
String |
toString() |
append, close, completeLocalOutput, create, create, createNonRecursive, createNonRecursive, delete, getHomeDirectory, getInitialWorkingDirectory, getStatus, initialize, mkdirs, mkdirs, moveFromLocalFile, open, primitiveMkdir, rename, setOwner, setPermission, setWorkingDirectory, startLocalOutput
addDelegationTokens, append, append, cancelDeleteOnExit, checkPath, clearStatistics, closeAll, closeAllForUGI, concat, copyFromLocalFile, copyFromLocalFile, copyFromLocalFile, copyFromLocalFile, copyToLocalFile, copyToLocalFile, copyToLocalFile, create, create, create, create, create, create, create, create, create, create, create, createNewFile, createNonRecursive, delete, deleteOnExit, exists, get, get, get, getAllStatistics, getCanonicalServiceName, getCanonicalUri, getChildFileSystems, getContentSummary, getDefaultBlockSize, getDefaultBlockSize, getDefaultPort, getDefaultReplication, getDefaultReplication, getDefaultUri, getDelegationToken, getFileBlockLocations, getFileChecksum, getFileSystemClass, getLength, getLocal, getName, getNamed, getReplication, getScheme, getServerDefaults, getServerDefaults, getStatistics, getStatistics, getStatus, getUsed, globStatus, globStatus, isDirectory, isFile, listCorruptFileBlocks, listFiles, listLocatedStatus, listLocatedStatus, listStatus, listStatus, listStatus, makeQualified, mkdirs, moveFromLocalFile, moveToLocalFile, newInstance, newInstance, newInstance, newInstanceLocal, open, primitiveCreate, primitiveMkdir, printStatistics, processDeleteOnExit, rename, resolvePath, setDefaultUri, setDefaultUri, setReplication, setTimes, setVerifyChecksum, setWriteChecksum
public static final URI NAME
protected String root
protected static GlusterFSXattr attr
public GlusterVolume()
public GlusterVolume(org.apache.hadoop.conf.Configuration conf)
public URI getUri()
getUri
in class org.apache.hadoop.fs.RawLocalFileSystem
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
setConf
in class org.apache.hadoop.conf.Configured
public org.apache.hadoop.fs.Path getWorkingDirectory()
getWorkingDirectory
in class org.apache.hadoop.fs.RawLocalFileSystem
public File pathToFile(org.apache.hadoop.fs.Path path)
pathToFile
in class org.apache.hadoop.fs.RawLocalFileSystem
public org.apache.hadoop.fs.Path fileToPath(File path)
public org.apache.hadoop.fs.FileStatus[] listStatus(org.apache.hadoop.fs.Path f) throws IOException
listStatus
in class org.apache.hadoop.fs.RawLocalFileSystem
IOException
public org.apache.hadoop.fs.FileStatus getFileStatus(org.apache.hadoop.fs.Path f) throws IOException
getFileStatus
in class org.apache.hadoop.fs.RawLocalFileSystem
IOException
public long getBlockSize(org.apache.hadoop.fs.Path path) throws IOException
getBlockSize
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.BlockLocation[] getFileBlockLocations(org.apache.hadoop.fs.FileStatus file, long start, long len) throws IOException
getFileBlockLocations
in class org.apache.hadoop.fs.FileSystem
IOException
public String toString()
toString
in class org.apache.hadoop.fs.RawLocalFileSystem
Copyright © 2013. All rights reserved.