org.apache.hadoop.fs
Class Hdfs
java.lang.Object
org.apache.hadoop.fs.AbstractFileSystem
org.apache.hadoop.fs.Hdfs
@InterfaceAudience.Private
@InterfaceStability.Evolving
public class Hdfs
- extends org.apache.hadoop.fs.AbstractFileSystem
Fields inherited from class org.apache.hadoop.fs.AbstractFileSystem |
statistics |
Method Summary |
protected org.apache.hadoop.fs.FSDataOutputStream |
createInternal(org.apache.hadoop.fs.Path f,
EnumSet<org.apache.hadoop.fs.CreateFlag> createFlag,
org.apache.hadoop.fs.permission.FsPermission absolutePermission,
int bufferSize,
short replication,
long blockSize,
org.apache.hadoop.util.Progressable progress,
int bytesPerChecksum,
boolean createParent)
|
protected void |
createSymlink(org.apache.hadoop.fs.Path target,
org.apache.hadoop.fs.Path link,
boolean createParent)
|
protected boolean |
delete(org.apache.hadoop.fs.Path f,
boolean recursive)
|
protected org.apache.hadoop.fs.BlockLocation[] |
getFileBlockLocations(org.apache.hadoop.fs.Path p,
long start,
long len)
|
protected org.apache.hadoop.fs.FileChecksum |
getFileChecksum(org.apache.hadoop.fs.Path f)
|
org.apache.hadoop.fs.FileStatus |
getFileLinkStatus(org.apache.hadoop.fs.Path f)
|
protected org.apache.hadoop.fs.FileStatus |
getFileStatus(org.apache.hadoop.fs.Path f)
|
protected org.apache.hadoop.fs.FsStatus |
getFsStatus()
|
protected org.apache.hadoop.fs.Path |
getLinkTarget(org.apache.hadoop.fs.Path p)
|
protected org.apache.hadoop.fs.FsServerDefaults |
getServerDefaults()
|
protected int |
getUriDefaultPort()
|
protected org.apache.hadoop.fs.FileStatus[] |
listStatus(org.apache.hadoop.fs.Path f)
|
protected Iterator<org.apache.hadoop.fs.FileStatus> |
listStatusIterator(org.apache.hadoop.fs.Path f)
|
protected void |
mkdir(org.apache.hadoop.fs.Path dir,
org.apache.hadoop.fs.permission.FsPermission permission,
boolean createParent)
|
protected org.apache.hadoop.fs.FSDataInputStream |
open(org.apache.hadoop.fs.Path f,
int bufferSize)
|
protected void |
renameInternal(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst)
|
protected void |
renameInternal(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst,
boolean overwrite)
|
protected void |
setOwner(org.apache.hadoop.fs.Path f,
String username,
String groupname)
|
protected void |
setPermission(org.apache.hadoop.fs.Path f,
org.apache.hadoop.fs.permission.FsPermission permission)
|
protected boolean |
setReplication(org.apache.hadoop.fs.Path f,
short replication)
|
protected void |
setTimes(org.apache.hadoop.fs.Path f,
long mtime,
long atime)
|
protected void |
setVerifyChecksum(boolean verifyChecksum)
|
protected boolean |
supportsSymlinks()
|
Methods inherited from class org.apache.hadoop.fs.AbstractFileSystem |
checkPath, checkScheme, clearStatistics, create, getFsStatus, getHomeDirectory, getInitialWorkingDirectory, getStatistics, getStatistics, getUri, getUriPath, open, printStatistics, rename |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getUriDefaultPort
protected int getUriDefaultPort()
- Specified by:
getUriDefaultPort
in class org.apache.hadoop.fs.AbstractFileSystem
createInternal
protected org.apache.hadoop.fs.FSDataOutputStream createInternal(org.apache.hadoop.fs.Path f,
EnumSet<org.apache.hadoop.fs.CreateFlag> createFlag,
org.apache.hadoop.fs.permission.FsPermission absolutePermission,
int bufferSize,
short replication,
long blockSize,
org.apache.hadoop.util.Progressable progress,
int bytesPerChecksum,
boolean createParent)
throws IOException
- Specified by:
createInternal
in class org.apache.hadoop.fs.AbstractFileSystem
- Throws:
IOException
delete
protected boolean delete(org.apache.hadoop.fs.Path f,
boolean recursive)
throws IOException,
org.apache.hadoop.fs.UnresolvedLinkException
- Specified by:
delete
in class org.apache.hadoop.fs.AbstractFileSystem
- Throws:
IOException
org.apache.hadoop.fs.UnresolvedLinkException
getFileBlockLocations
protected org.apache.hadoop.fs.BlockLocation[] getFileBlockLocations(org.apache.hadoop.fs.Path p,
long start,
long len)
throws IOException,
org.apache.hadoop.fs.UnresolvedLinkException
- Specified by:
getFileBlockLocations
in class org.apache.hadoop.fs.AbstractFileSystem
- Throws:
IOException
org.apache.hadoop.fs.UnresolvedLinkException
getFileChecksum
protected org.apache.hadoop.fs.FileChecksum getFileChecksum(org.apache.hadoop.fs.Path f)
throws IOException,
org.apache.hadoop.fs.UnresolvedLinkException
- Specified by:
getFileChecksum
in class org.apache.hadoop.fs.AbstractFileSystem
- Throws:
IOException
org.apache.hadoop.fs.UnresolvedLinkException
getFileStatus
protected org.apache.hadoop.fs.FileStatus getFileStatus(org.apache.hadoop.fs.Path f)
throws IOException,
org.apache.hadoop.fs.UnresolvedLinkException
- Specified by:
getFileStatus
in class org.apache.hadoop.fs.AbstractFileSystem
- Throws:
IOException
org.apache.hadoop.fs.UnresolvedLinkException
getFileLinkStatus
public org.apache.hadoop.fs.FileStatus getFileLinkStatus(org.apache.hadoop.fs.Path f)
throws IOException,
org.apache.hadoop.fs.UnresolvedLinkException
- Overrides:
getFileLinkStatus
in class org.apache.hadoop.fs.AbstractFileSystem
- Throws:
IOException
org.apache.hadoop.fs.UnresolvedLinkException
getFsStatus
protected org.apache.hadoop.fs.FsStatus getFsStatus()
throws IOException
- Specified by:
getFsStatus
in class org.apache.hadoop.fs.AbstractFileSystem
- Throws:
IOException
getServerDefaults
protected org.apache.hadoop.fs.FsServerDefaults getServerDefaults()
throws IOException
- Specified by:
getServerDefaults
in class org.apache.hadoop.fs.AbstractFileSystem
- Throws:
IOException
listStatusIterator
protected Iterator<org.apache.hadoop.fs.FileStatus> listStatusIterator(org.apache.hadoop.fs.Path f)
throws org.apache.hadoop.security.AccessControlException,
FileNotFoundException,
org.apache.hadoop.fs.UnresolvedLinkException,
IOException
- Overrides:
listStatusIterator
in class org.apache.hadoop.fs.AbstractFileSystem
- Throws:
org.apache.hadoop.security.AccessControlException
FileNotFoundException
org.apache.hadoop.fs.UnresolvedLinkException
IOException
listStatus
protected org.apache.hadoop.fs.FileStatus[] listStatus(org.apache.hadoop.fs.Path f)
throws IOException,
org.apache.hadoop.fs.UnresolvedLinkException
- Specified by:
listStatus
in class org.apache.hadoop.fs.AbstractFileSystem
- Throws:
IOException
org.apache.hadoop.fs.UnresolvedLinkException
mkdir
protected void mkdir(org.apache.hadoop.fs.Path dir,
org.apache.hadoop.fs.permission.FsPermission permission,
boolean createParent)
throws IOException,
org.apache.hadoop.fs.UnresolvedLinkException
- Specified by:
mkdir
in class org.apache.hadoop.fs.AbstractFileSystem
- Throws:
IOException
org.apache.hadoop.fs.UnresolvedLinkException
open
protected org.apache.hadoop.fs.FSDataInputStream open(org.apache.hadoop.fs.Path f,
int bufferSize)
throws IOException,
org.apache.hadoop.fs.UnresolvedLinkException
- Specified by:
open
in class org.apache.hadoop.fs.AbstractFileSystem
- Throws:
IOException
org.apache.hadoop.fs.UnresolvedLinkException
renameInternal
protected void renameInternal(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst)
throws IOException,
org.apache.hadoop.fs.UnresolvedLinkException
- Specified by:
renameInternal
in class org.apache.hadoop.fs.AbstractFileSystem
- Throws:
IOException
org.apache.hadoop.fs.UnresolvedLinkException
renameInternal
protected void renameInternal(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst,
boolean overwrite)
throws IOException,
org.apache.hadoop.fs.UnresolvedLinkException
- Overrides:
renameInternal
in class org.apache.hadoop.fs.AbstractFileSystem
- Throws:
IOException
org.apache.hadoop.fs.UnresolvedLinkException
setOwner
protected void setOwner(org.apache.hadoop.fs.Path f,
String username,
String groupname)
throws IOException,
org.apache.hadoop.fs.UnresolvedLinkException
- Specified by:
setOwner
in class org.apache.hadoop.fs.AbstractFileSystem
- Throws:
IOException
org.apache.hadoop.fs.UnresolvedLinkException
setPermission
protected void setPermission(org.apache.hadoop.fs.Path f,
org.apache.hadoop.fs.permission.FsPermission permission)
throws IOException,
org.apache.hadoop.fs.UnresolvedLinkException
- Specified by:
setPermission
in class org.apache.hadoop.fs.AbstractFileSystem
- Throws:
IOException
org.apache.hadoop.fs.UnresolvedLinkException
setReplication
protected boolean setReplication(org.apache.hadoop.fs.Path f,
short replication)
throws IOException,
org.apache.hadoop.fs.UnresolvedLinkException
- Specified by:
setReplication
in class org.apache.hadoop.fs.AbstractFileSystem
- Throws:
IOException
org.apache.hadoop.fs.UnresolvedLinkException
setTimes
protected void setTimes(org.apache.hadoop.fs.Path f,
long mtime,
long atime)
throws IOException,
org.apache.hadoop.fs.UnresolvedLinkException
- Specified by:
setTimes
in class org.apache.hadoop.fs.AbstractFileSystem
- Throws:
IOException
org.apache.hadoop.fs.UnresolvedLinkException
setVerifyChecksum
protected void setVerifyChecksum(boolean verifyChecksum)
throws IOException
- Specified by:
setVerifyChecksum
in class org.apache.hadoop.fs.AbstractFileSystem
- Throws:
IOException
supportsSymlinks
protected boolean supportsSymlinks()
- Overrides:
supportsSymlinks
in class org.apache.hadoop.fs.AbstractFileSystem
createSymlink
protected void createSymlink(org.apache.hadoop.fs.Path target,
org.apache.hadoop.fs.Path link,
boolean createParent)
throws IOException,
org.apache.hadoop.fs.UnresolvedLinkException
- Overrides:
createSymlink
in class org.apache.hadoop.fs.AbstractFileSystem
- Throws:
IOException
org.apache.hadoop.fs.UnresolvedLinkException
getLinkTarget
protected org.apache.hadoop.fs.Path getLinkTarget(org.apache.hadoop.fs.Path p)
throws IOException
- Overrides:
getLinkTarget
in class org.apache.hadoop.fs.AbstractFileSystem
- Throws:
IOException
Copyright © 2009 The Apache Software Foundation