@InterfaceAudience.Public @InterfaceStability.Stable public class LocalFileSystem extends ChecksumFileSystem
fs, swapSchemeDEFAULT_FS, FS_DEFAULT_NAME_KEY, LOG, SHUTDOWN_HOOK_PRIORITY, statistics, TRASH_PREFIX| コンストラクタと説明 | 
|---|
| LocalFileSystem() | 
| LocalFileSystem(FileSystem rawLocalFileSystem) | 
| 修飾子とタイプ | メソッドと説明 | 
|---|---|
| void | copyFromLocalFile(boolean delSrc,
                 Path src,
                 Path dst)The src file is on the local disk. | 
| void | copyToLocalFile(boolean delSrc,
               Path src,
               Path dst)The src file is under FS, and the dst is on the local disk. | 
| void | createSymlink(Path target,
             Path link,
             boolean createParent) | 
| FileStatus | getFileLinkStatus(Path f) | 
| Path | getLinkTarget(Path f) | 
| FileSystem | getRaw() | 
| String | getScheme()Return the protocol scheme for the FileSystem. | 
| void | initialize(URI name,
          Configuration conf)Called after a new FileSystem instance is constructed. | 
| File | pathToFile(Path path)Convert a path to a File. | 
| boolean | reportChecksumFailure(Path p,
                     FSDataInputStream in,
                     long inPos,
                     FSDataInputStream sums,
                     long sumsPos)Moves files to a bad file directory on the same device, so that their
 storage will not be reused. | 
| boolean | supportsSymlinks() | 
append, completeLocalOutput, copyToLocalFile, create, createNonRecursive, delete, getApproxChkSumLength, getBytesPerSum, getChecksumFile, getChecksumFileLength, getChecksumLength, getRawFileSystem, isChecksumFile, listLocatedStatus, listStatus, mkdirs, modifyAclEntries, open, removeAcl, removeAclEntries, removeDefaultAcl, rename, setAcl, setConf, setOwner, setPermission, setReplication, setVerifyChecksum, setWriteChecksum, startLocalOutput, truncateaccess, canonicalizeUri, checkPath, close, concat, copyFromLocalFile, copyFromLocalFile, create, createNonRecursive, createSnapshot, deleteSnapshot, getAclStatus, getAllStoragePolicies, getCanonicalUri, getChildFileSystems, getConf, getDefaultBlockSize, getDefaultBlockSize, getDefaultReplication, getDefaultReplication, getFileBlockLocations, getFileChecksum, getFileChecksum, getFileStatus, getHomeDirectory, getInitialWorkingDirectory, getServerDefaults, getServerDefaults, getStatus, getStoragePolicy, getTrashRoot, getTrashRoots, getUri, getUsed, getUsed, getWorkingDirectory, getXAttr, getXAttrs, getXAttrs, listCorruptFileBlocks, listLocatedStatus, listStatusIterator, listXAttrs, makeQualified, mkdirs, primitiveCreate, primitiveMkdir, removeXAttr, renameSnapshot, resolveLink, resolvePath, setStoragePolicy, setTimes, setWorkingDirectory, setXAttr, setXAttr, unsetStoragePolicyappend, append, areSymlinksEnabled, cancelDeleteOnExit, clearStatistics, closeAll, closeAllForUGI, copyFromLocalFile, copyToLocalFile, copyToLocalFile, create, create, create, create, create, create, create, create, create, create, create, createNewFile, createNonRecursive, createSnapshot, delete, deleteOnExit, enableSymlinks, exists, fixRelativePart, get, get, get, getAllStatistics, getBlockSize, getContentSummary, getDefaultPort, getDefaultUri, getFileBlockLocations, getFileSystemClass, getFSofPath, getGlobalStorageStatistics, getLength, getLocal, getName, getNamed, getQuotaUsage, getReplication, getStatistics, getStatistics, getStatus, getStorageStatistics, globStatus, globStatus, isDirectory, isFile, listFiles, listStatus, listStatus, listStatus, mkdirs, moveFromLocalFile, moveFromLocalFile, moveToLocalFile, newInstance, newInstance, newInstance, newInstanceLocal, open, primitiveMkdir, printStatistics, processDeleteOnExit, rename, setDefaultUri, setDefaultUripublic LocalFileSystem()
public LocalFileSystem(FileSystem rawLocalFileSystem)
public void initialize(URI name, Configuration conf) throws IOException
FilterFileSysteminitialize クラス内 FilterFileSystemname - a uri whose authority section names the host, port, etc.
   for this FileSystemconf - the configurationIOExceptionpublic String getScheme()
getScheme クラス内 FileSystemfilepublic FileSystem getRaw()
public File pathToFile(Path path)
public void copyFromLocalFile(boolean delSrc, Path src, Path dst) throws IOException
FilterFileSystemcopyFromLocalFile クラス内 ChecksumFileSystemdelSrc - whether to delete the srcsrc - pathdst - pathIOExceptionpublic void copyToLocalFile(boolean delSrc, Path src, Path dst) throws IOException
ChecksumFileSystemcopyToLocalFile クラス内 ChecksumFileSystemdelSrc - whether to delete the srcsrc - pathdst - pathIOExceptionpublic boolean reportChecksumFailure(Path p, FSDataInputStream in, long inPos, FSDataInputStream sums, long sumsPos)
reportChecksumFailure クラス内 ChecksumFileSystemp - the file name containing the errorin - the stream open on the fileinPos - the position of the beginning of the bad data in the filesums - the stream open on the checksum filesumsPos - the position of the beginning of the bad data in the checksum filepublic boolean supportsSymlinks()
FileSystemsupportsSymlinks クラス内 FilterFileSystempublic void createSymlink(Path target, Path link, boolean createParent) throws IOException
FileSystemcreateSymlink クラス内 FilterFileSystemIOExceptionpublic FileStatus getFileLinkStatus(Path f) throws IOException
FileSystemgetFileLinkStatus クラス内 FilterFileSystemIOExceptionpublic Path getLinkTarget(Path f) throws IOException
FileSystemgetLinkTarget クラス内 FilterFileSystemIOExceptionCopyright © 2016 Apache Software Foundation. All rights reserved.