@InterfaceAudience.Private @InterfaceStability.Evolving public class RawLocalFs extends DelegateToFileSystem
fsImpl
statistics
Modifier and Type | Method and Description |
---|---|
void |
createSymlink(Path target,
Path link,
boolean createParent)
The specification of this method matches that of
FileContext.createSymlink(Path, Path, boolean) ; |
FileStatus |
getFileLinkStatus(Path f)
Return a FileStatus representing the given path.
|
Path |
getLinkTarget(Path f)
Partially resolves the path.
|
FsServerDefaults |
getServerDefaults()
Return a set of server default configuration values.
|
int |
getUriDefaultPort()
The default port of this file system.
|
boolean |
isValidName(String src)
Returns true if the specified string is considered valid in the path part
of a URI by this file system.
|
boolean |
supportsSymlinks()
Returns true if the file system supports symlinks, false otherwise.
|
createInternal, delete, getCanonicalServiceName, getDelegationTokens, getFileBlockLocations, getFileChecksum, getFileStatus, getFsStatus, getHomeDirectory, getInitialWorkingDirectory, listStatus, mkdir, open, renameInternal, setOwner, setPermission, setReplication, setTimes, setVerifyChecksum
checkPath, checkScheme, clearStatistics, create, createFileSystem, equals, get, getAllStatistics, getFsStatus, getStatistics, getStatistics, getUri, getUriPath, hashCode, listCorruptFileBlocks, listLocatedStatus, listStatusIterator, makeQualified, open, printStatistics, rename, renameInternal, resolvePath
public int getUriDefaultPort()
AbstractFileSystem
getUriDefaultPort
in class DelegateToFileSystem
public FsServerDefaults getServerDefaults() throws IOException
AbstractFileSystem
getServerDefaults
in class DelegateToFileSystem
IOException
- an I/O error occurredpublic boolean supportsSymlinks()
AbstractFileSystem
supportsSymlinks
in class DelegateToFileSystem
public void createSymlink(Path target, Path link, boolean createParent) throws IOException
AbstractFileSystem
FileContext.createSymlink(Path, Path, boolean)
;createSymlink
in class DelegateToFileSystem
IOException
public FileStatus getFileLinkStatus(Path f) throws IOException
getFileLinkStatus
in class DelegateToFileSystem
IOException
public boolean isValidName(String src)
AbstractFileSystem
isValidName
in class AbstractFileSystem
src
- String source filename to check, path part of the URIpublic Path getLinkTarget(Path f) throws IOException
AbstractFileSystem
FSLinkResolver
, and differs from the similarly named method
FileContext.getLinkTarget(Path)
.getLinkTarget
in class DelegateToFileSystem
IOException
Copyright © 2013 Apache Software Foundation. All rights reserved.