public class SimplerFileSystem extends FileSystem
Paths.FileSystem.StatisticsDEFAULT_FS, FS_DEFAULT_NAME_KEY, LOG, SHUTDOWN_HOOK_PRIORITY, statistics| Constructor and Description |
|---|
SimplerFileSystem(FileSystem fs)
Constructs a new
SimplerFileSystem instance. |
addDelegationTokens, areSymlinksEnabled, cancelDeleteOnExit, canonicalizeUri, checkPath, clearStatistics, closeAll, closeAllForUGI, concat, copyToLocalFile, create, create, create, createNonRecursive, createNonRecursive, createNonRecursive, createSnapshot, createSnapshot, createSymlink, deleteSnapshot, enableSymlinks, fixRelativePart, get, get, get, getAclStatus, getAllStatistics, getCanonicalUri, getChildFileSystems, getDefaultBlockSize, getDefaultPort, getDefaultReplication, getDefaultUri, getFileBlockLocations, getFileLinkStatus, getFileSystemClass, getFSofPath, getInitialWorkingDirectory, getLinkTarget, getLocal, getNamed, getScheme, getServerDefaults, getServerDefaults, getStatistics, getStatistics, getStatus, getStatus, listCorruptFileBlocks, listFiles, listLocatedStatus, listLocatedStatus, mkdirs, modifyAclEntries, newInstance, newInstance, newInstance, newInstanceLocal, primitiveCreate, primitiveMkdir, primitiveMkdir, printStatistics, processDeleteOnExit, removeAcl, removeAclEntries, removeDefaultAcl, rename, renameSnapshot, resolveLink, resolvePath, setAcl, setDefaultUri, setDefaultUri, setWriteChecksum, supportsSymlinkspublic SimplerFileSystem(FileSystem fs)
SimplerFileSystem instance.fs - Hadoop file system to use.public void setConf(Configuration conf)
setConf in interface ConfigurablesetConf in class Configuredpublic Configuration getConf()
getConf in interface ConfigurablegetConf in class Configuredpublic void initialize(URI name, Configuration conf) throws IOException
initialize in class FileSystemIOExceptionpublic URI getUri()
getUri in class FileSystempublic String getCanonicalServiceName()
getCanonicalServiceName in class FileSystempublic String getName()
getName in class FileSystempublic Path makeQualified(Path path)
makeQualified in class FileSystempublic BlockLocation[] getFileBlockLocations(FileStatus file, long start, long len) throws IOException
getFileBlockLocations in class FileSystemIOExceptionpublic FSDataInputStream open(String f, int bufferSize) throws IOException
IOExceptionpublic FSDataInputStream open(Path f, int bufferSize) throws IOException
open in class FileSystemIOExceptionpublic FSDataInputStream open(String f) throws IOException
IOExceptionpublic FSDataInputStream open(Path f) throws IOException
open in class FileSystemIOExceptionpublic FSDataOutputStream create(String f) throws IOException
IOExceptionpublic FSDataOutputStream create(Path f) throws IOException
create in class FileSystemIOExceptionpublic FSDataOutputStream create(String f, boolean overwrite) throws IOException
IOExceptionpublic FSDataOutputStream create(Path f, boolean overwrite) throws IOException
create in class FileSystemIOExceptionpublic FSDataOutputStream create(String f, Progressable progress) throws IOException
IOExceptionpublic FSDataOutputStream create(Path f, Progressable progress) throws IOException
create in class FileSystemIOExceptionpublic FSDataOutputStream create(String f, short replication) throws IOException
IOExceptionpublic FSDataOutputStream create(Path f, short replication) throws IOException
create in class FileSystemIOExceptionpublic FSDataOutputStream create(String f, short replication, Progressable progress) throws IOException
IOExceptionpublic FSDataOutputStream create(Path f, short replication, Progressable progress) throws IOException
create in class FileSystemIOExceptionpublic FSDataOutputStream create(String f, boolean overwrite, int bufferSize) throws IOException
IOExceptionpublic FSDataOutputStream create(Path f, boolean overwrite, int bufferSize) throws IOException
create in class FileSystemIOExceptionpublic FSDataOutputStream create(Path f, boolean overwrite, int bufferSize, Progressable progress) throws IOException
create in class FileSystemIOExceptionpublic FSDataOutputStream create(String f, boolean overwrite, int bufferSize, Progressable progress) throws IOException
IOExceptionpublic FSDataOutputStream create(Path f, boolean overwrite, int bufferSize, short replication, long blockSize) throws IOException
create in class FileSystemIOExceptionpublic FSDataOutputStream create(String f, boolean overwrite, int bufferSize, short replication, long blockSize) throws IOException
IOExceptionpublic FSDataOutputStream create(Path f, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) throws IOException
create in class FileSystemIOExceptionpublic FSDataOutputStream create(String f, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) throws IOException
IOExceptionpublic FSDataOutputStream create(Path f, FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) throws IOException
create in class FileSystemIOExceptionpublic FSDataOutputStream create(String f, FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) throws IOException
IOExceptionpublic boolean createNewFile(String f) throws IOException
IOExceptionpublic boolean createNewFile(Path f) throws IOException
createNewFile in class FileSystemIOExceptionpublic FSDataOutputStream append(String f) throws IOException
IOExceptionpublic FSDataOutputStream append(Path f) throws IOException
append in class FileSystemIOExceptionpublic FSDataOutputStream append(Path f, int bufferSize) throws IOException
append in class FileSystemIOExceptionpublic FSDataOutputStream append(String f, int bufferSize) throws IOException
IOExceptionpublic FSDataOutputStream append(Path f, int bufferSize, Progressable progress) throws IOException
append in class FileSystemIOExceptionpublic FSDataOutputStream append(String f, int bufferSize, Progressable progress) throws IOException
IOExceptionpublic short getReplication(Path src) throws IOException
getReplication in class FileSystemIOExceptionpublic short getReplication(String src) throws IOException
IOExceptionpublic boolean setReplication(Path src, short replication) throws IOException
setReplication in class FileSystemIOExceptionpublic boolean setReplication(String src, short replication) throws IOException
IOExceptionpublic boolean rename(Path src, Path dst) throws IOException
rename in class FileSystemIOExceptionpublic boolean rename(String src, String dst) throws IOException
IOExceptionpublic boolean delete(Path f) throws IOException
delete in class FileSystemIOExceptionpublic boolean delete(String f) throws IOException
IOExceptionpublic boolean delete(Path f, boolean recursive) throws IOException
delete in class FileSystemIOExceptionpublic boolean delete(String f, boolean recursive) throws IOException
IOExceptionpublic boolean deleteOnExit(Path f) throws IOException
deleteOnExit in class FileSystemIOExceptionpublic boolean deleteOnExit(String f) throws IOException
IOExceptionpublic boolean exists(Path f) throws IOException
exists in class FileSystemIOExceptionpublic boolean exists(String f) throws IOException
IOExceptionpublic boolean isDirectory(Path f) throws IOException
isDirectory in class FileSystemIOExceptionpublic boolean isDirectory(String f) throws IOException
IOExceptionpublic boolean isFile(Path f) throws IOException
isFile in class FileSystemIOExceptionpublic boolean isFile(String f) throws IOException
IOExceptionpublic long getLength(Path f) throws IOException
getLength in class FileSystemIOExceptionpublic long getLength(String f) throws IOException
IOExceptionpublic ContentSummary getContentSummary(Path f) throws IOException
getContentSummary in class FileSystemIOExceptionpublic ContentSummary getContentSummary(String f) throws IOException
IOExceptionpublic FileStatus[] listStatus(Path f) throws IOException
listStatus in class FileSystemIOExceptionpublic FileStatus[] listStatus(String f) throws IOException
IOExceptionpublic FileStatus[] listStatus(Path f, PathFilter filter) throws IOException
listStatus in class FileSystemIOExceptionpublic FileStatus[] listStatus(String f, PathFilter filter) throws IOException
IOExceptionpublic FileStatus[] listStatus(Path[] files) throws IOException
listStatus in class FileSystemIOExceptionpublic FileStatus[] listStatus(String[] files) throws IOException
IOExceptionpublic FileStatus[] listStatus(Path[] files, PathFilter filter) throws IOException
listStatus in class FileSystemIOExceptionpublic FileStatus[] listStatus(String[] files, PathFilter filter) throws IOException
IOExceptionpublic FileStatus[] globStatus(Path pathPattern) throws IOException
globStatus in class FileSystemIOExceptionpublic FileStatus[] globStatus(String pathPattern) throws IOException
IOExceptionpublic FileStatus[] globStatus(Path pathPattern, PathFilter filter) throws IOException
globStatus in class FileSystemIOExceptionpublic FileStatus[] globStatus(String pathPattern, PathFilter filter) throws IOException
IOExceptionpublic Path getHomeDirectory()
getHomeDirectory in class FileSystempublic org.apache.hadoop.security.token.Token<?> getDelegationToken(String renewer) throws IOException
getDelegationToken in class FileSystemIOExceptionpublic void setWorkingDirectory(Path new_dir)
setWorkingDirectory in class FileSystempublic Path getWorkingDirectory()
getWorkingDirectory in class FileSystempublic boolean mkdirs(Path f) throws IOException
mkdirs in class FileSystemIOExceptionpublic boolean mkdirs(String f) throws IOException
IOExceptionpublic boolean mkdirs(Path f, FsPermission permission) throws IOException
mkdirs in class FileSystemIOExceptionpublic boolean mkdirs(String f, short permission) throws IOException
IOExceptionpublic void copyFromLocalFile(Path src, Path dst) throws IOException
copyFromLocalFile in class FileSystemIOExceptionpublic void copyFromLocalFile(String src, String dst) throws IOException
IOExceptionpublic void moveFromLocalFile(Path[] srcs, Path dst) throws IOException
moveFromLocalFile in class FileSystemIOExceptionpublic void moveFromLocalFile(String[] srcs, String dst) throws IOException
IOExceptionpublic void moveFromLocalFile(Path src, Path dst) throws IOException
moveFromLocalFile in class FileSystemIOExceptionpublic void moveFromLocalFile(String src, String dst) throws IOException
IOExceptionpublic void copyFromLocalFile(boolean delSrc,
Path src,
Path dst)
throws IOException
copyFromLocalFile in class FileSystemIOExceptionpublic void copyFromLocalFile(boolean delSrc,
String src,
String dst)
throws IOException
IOExceptionpublic void copyFromLocalFile(boolean delSrc,
boolean overwrite,
Path[] srcs,
Path dst)
throws IOException
copyFromLocalFile in class FileSystemIOExceptionpublic void copyFromLocalFile(boolean delSrc,
boolean overwrite,
String[] srcs,
String dst)
throws IOException
IOExceptionpublic void copyFromLocalFile(boolean delSrc,
boolean overwrite,
Path src,
Path dst)
throws IOException
copyFromLocalFile in class FileSystemIOExceptionpublic void copyFromLocalFile(boolean delSrc,
boolean overwrite,
String src,
String dst)
throws IOException
IOExceptionpublic void copyToLocalFile(Path src, Path dst) throws IOException
copyToLocalFile in class FileSystemIOExceptionpublic void copyToLocalFile(String src, String dst) throws IOException
IOExceptionpublic void moveToLocalFile(Path src, Path dst) throws IOException
moveToLocalFile in class FileSystemIOExceptionpublic void moveToLocalFile(String src, String dst) throws IOException
IOExceptionpublic void copyToLocalFile(boolean delSrc,
Path src,
Path dst)
throws IOException
copyToLocalFile in class FileSystemIOExceptionpublic void copyToLocalFile(boolean delSrc,
String src,
String dst)
throws IOException
IOExceptionpublic Path startLocalOutput(Path fsOutputFile, Path tmpLocalFile) throws IOException
startLocalOutput in class FileSystemIOExceptionpublic Path startLocalOutput(String fsOutputFile, String tmpLocalFile) throws IOException
IOExceptionpublic void completeLocalOutput(Path fsOutputFile, Path tmpLocalFile) throws IOException
completeLocalOutput in class FileSystemIOExceptionpublic void completeLocalOutput(String fsOutputFile, String tmpLocalFile) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FileSystemIOExceptionpublic long getUsed()
throws IOException
getUsed in class FileSystemIOExceptionpublic long getBlockSize(Path f) throws IOException
getBlockSize in class FileSystemIOExceptionpublic long getBlockSize(String f) throws IOException
IOExceptionpublic long getDefaultBlockSize()
getDefaultBlockSize in class FileSystempublic short getDefaultReplication()
getDefaultReplication in class FileSystempublic FileStatus getFileStatus(Path f) throws IOException
getFileStatus in class FileSystemIOExceptionpublic FileStatus getFileStatus(String f) throws IOException
IOExceptionpublic FileChecksum getFileChecksum(Path f) throws IOException
getFileChecksum in class FileSystemIOExceptionpublic FileChecksum getFileChecksum(String f) throws IOException
IOExceptionpublic void setVerifyChecksum(boolean verifyChecksum)
setVerifyChecksum in class FileSystempublic void setPermission(Path p, FsPermission permission) throws IOException
setPermission in class FileSystemIOExceptionpublic void setPermission(String p, short permission) throws IOException
IOExceptionpublic void setOwner(Path p, String username, String groupname) throws IOException
setOwner in class FileSystemIOExceptionpublic void setOwner(String p, String username, String groupname) throws IOException
IOExceptionpublic void setTimes(Path p, long mtime, long atime) throws IOException
setTimes in class FileSystemIOExceptionpublic void setTimes(String p, long mtime, long atime) throws IOException
IOException