Uses of Class
org.apache.hadoop.fs.Path
Packages that use Path
Package
Description
Configuration of system parameters.
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
An abstract file system API.
This package contains implementation classes for use inside
filesystems.
Filesystem implementations that allow Hadoop to read directly from
the local file system.
SFTP FileSystem package.
Support for the execution of a file system command.
ViewFileSystem and ViewFileSystemOverloadScheme classes.
Generic i/o code for use when reading and writing data to the network,
to databases, and to files.
Support for dynamic access to filesystem operations which are not available
in older hadoop releases.
Implementation/testing support for wrapped IO.
Builtin metrics sinks
Classes for hadoop security.
Provides the hadoop credential provider API.
Common utilities.
-
Uses of Path in org.apache.hadoop.conf
Methods in org.apache.hadoop.conf that return PathModifier and TypeMethodDescriptionConfiguration.getLocalPath(String dirsProp, String path) Get a local file under a directory named by dirsProp with the given path.Methods in org.apache.hadoop.conf with parameters of type PathModifier and TypeMethodDescriptionvoidConfiguration.addResource(Path file) Add a configuration resource.voidConfiguration.addResource(Path file, boolean restrictedParser) -
Uses of Path in org.apache.hadoop.crypto.key
Methods in org.apache.hadoop.crypto.key with parameters of type PathModifier and TypeMethodDescriptionprotected booleanJavaKeyStoreProvider.backupToOld(Path oldPath) protected voidJavaKeyStoreProvider.writeToNew(Path newPath) -
Uses of Path in org.apache.hadoop.fs
Fields in org.apache.hadoop.fs declared as PathModifier and TypeFieldDescriptionprotected PathFSInputChecker.fileThe file name from which data is read fromprotected PathTrashPolicy.trashMethods in org.apache.hadoop.fs that return PathModifier and TypeMethodDescriptionBulkDelete.basePath()Base path of a bulk delete operation.AbstractFileSystem.createSnapshot(Path path, String snapshotName) The specification of this method matches that ofFileContext.createSnapshot(Path, String).final PathFileContext.createSnapshot(Path path) Create a snapshot with a default name.FileContext.createSnapshot(Path path, String snapshotName) Create a snapshot.final PathFileSystem.createSnapshot(Path path) Create a snapshot with a default name.FileSystem.createSnapshot(Path path, String snapshotName) Create a snapshot.FilterFileSystem.createSnapshot(Path path, String snapshotName) FilterFs.createSnapshot(Path path, String snapshotName) protected PathFileSystem.fixRelativePart(Path p) SeeFileContext.fixRelativePart(org.apache.hadoop.fs.Path).ChecksumFileSystem.getChecksumFile(Path file) Return the name of the checksum file associated with a file.ChecksumFs.getChecksumFile(Path file) Return the name of the checksum file associated with a file.FsShell.getCurrentTrashDir()Returns the Trash object associated with this shell.FsShell.getCurrentTrashDir(Path path) Returns the current trash location for the path specifiedTrash.getCurrentTrashDir(Path path) abstract PathTrashPolicy.getCurrentTrashDir()Get the current working directory of the Trash Policy This API does not work with files deleted from encryption zone when HDFS data encryption at rest feature is enabled as rename file between encryption zones or encryption zone and non-encryption zone is not allowed.TrashPolicy.getCurrentTrashDir(Path path) Get the current trash directory for path specified based on the Trash PolicyTrashPolicyDefault.getCurrentTrashDir()TrashPolicyDefault.getCurrentTrashDir(Path path) AbstractFileSystem.getEnclosingRoot(Path path) Return path of the enclosing root for a given path The enclosing root path is a common ancestor that should be used for temp and staging dirs as well as within encryption zones and other restricted directories.FileSystem.getEnclosingRoot(Path path) Return path of the enclosing root for a given path.FilterFileSystem.getEnclosingRoot(Path path) FilterFs.getEnclosingRoot(Path path) AbstractFileSystem.getHomeDirectory()Return the current user's home directory in this file system.DelegateToFileSystem.getHomeDirectory()FileContext.getHomeDirectory()Return the current user's home directory in this file system.FileSystem.getHomeDirectory()Return the current user's home directory in this FileSystem.FilterFileSystem.getHomeDirectory()FilterFs.getHomeDirectory()HarFileSystem.getHomeDirectory()return the top level archive path.RawLocalFileSystem.getHomeDirectory()AbstractFileSystem.getInitialWorkingDirectory()Some file systems like LocalFileSystem have an initial workingDir that is used as the starting workingDir.DelegateToFileSystem.getInitialWorkingDirectory()protected PathFileSystem.getInitialWorkingDirectory()Note: with the new FileContext class, getWorkingDirectory() will be removed.protected PathFilterFileSystem.getInitialWorkingDirectory()FilterFs.getInitialWorkingDirectory()HarFileSystem.getInitialWorkingDirectory()protected PathRawLocalFileSystem.getInitialWorkingDirectory()AbstractFileSystem.getLinkTarget(Path f) Partially resolves the path.DelegateToFileSystem.getLinkTarget(Path f) FileContext.getLinkTarget(Path f) Returns the target of the given symbolic link as it was specified when the link was created.FileSystem.getLinkTarget(Path f) FilterFileSystem.getLinkTarget(Path f) FilterFs.getLinkTarget(Path f) LocalFileSystem.getLinkTarget(Path f) RawLocalFileSystem.getLinkTarget(Path f) PartialListing.getListedPath()Path being listed.LocalDirAllocator.getLocalPathForWrite(String pathStr, long size, Configuration conf) Get a path from the local FS.LocalDirAllocator.getLocalPathForWrite(String pathStr, long size, Configuration conf, boolean checkWrite) Get a path from the local FS.LocalDirAllocator.getLocalPathForWrite(String pathStr, Configuration conf) Get a path from the local FS.LocalDirAllocator.getLocalPathToRead(String pathStr, Configuration conf) Get a path from the local FS for reading.Path.getParent()Returns the parent of a path or null if at root.FileStatus.getPath()PathIOException.getPath()static PathPath.getPathWithoutSchemeAndAuthority(Path path) Return a version of the given Path without the scheme information.FileStatus.getSymlink()PathIOException.getTargetPath()FileSystem.getTrashRoot(Path path) Get the root directory of Trash for current user when the path specified is deleted.FilterFileSystem.getTrashRoot(Path path) FileContext.getWorkingDirectory()Gets the working directory for wd-relative names (such a "foo/bar").abstract PathFileSystem.getWorkingDirectory()Get the current working directory for the given FileSystemFilterFileSystem.getWorkingDirectory()Get the current working directory for the given file systemHarFileSystem.getWorkingDirectory()return the top level archive.RawLocalFileSystem.getWorkingDirectory()AbstractFileSystem.makeQualified(Path path) Make the path fully qualified to this file systemFileContext.makeQualified(Path path) Make the path fully qualified if it is isn't.FileSystem.makeQualified(Path path) Qualify a path to one which uses this FileSystem and, if relative, made absolute.FilterFileSystem.makeQualified(Path path) Make sure that a path specifies a FileSystem.FilterFs.makeQualified(Path path) HarFileSystem.makeQualified(Path path) Path.makeQualified(URI defaultUri, Path workingDir) Returns a qualified path object.Path.makeQualified(FileSystem fs) Deprecated.static PathPath.mergePaths(Path path1, Path path2) Merge 2 paths such that the second path is appended relative to the first.static PathFSLinkResolver.qualifySymlinkTarget(URI pathURI, Path pathWithLink, Path target) Return a fully-qualified version of the given symlink target if it has no scheme and authority.protected PathResolves all symbolic links in the specified path.protected PathFileContext.resolveIntermediate(Path f) Resolves all symbolic links in the specified path leading up to, but not including the final path component.protected PathFileSystem.resolveLink(Path f) protected PathFilterFileSystem.resolveLink(Path f) AbstractFileSystem.resolvePath(Path p) Return the fully-qualified path of path f resolving the path through any internal symlinks or mount pointFileContext.resolvePath(Path f) Resolve the path following any symlinks or mount pointsFileSystem.resolvePath(Path p) Return the fully-qualified path of path, resolving the path through any symlinks or mount point.FilterFileSystem.resolvePath(Path p) FilterFs.resolvePath(Path p) HarFileSystem.resolvePath(Path p) ChecksumFileSystem.startLocalOutput(Path fsOutputFile, Path tmpLocalFile) FileSystem.startLocalOutput(Path fsOutputFile, Path tmpLocalFile) Returns a local file that the user can write output to.FilterFileSystem.startLocalOutput(Path fsOutputFile, Path tmpLocalFile) Returns a local File that the user can write output to.HarFileSystem.startLocalOutput(Path fsOutputFile, Path tmpLocalFile) not implemented.RawLocalFileSystem.startLocalOutput(Path fsOutputFile, Path tmpLocalFile) static Path[]FileUtil.stat2Paths(FileStatus[] stats) convert an array of FileStatus to an array of Pathstatic Path[]FileUtil.stat2Paths(FileStatus[] stats, Path path) convert an array of FileStatus to an array of Path.Adds a suffix to the final name in the path.Methods in org.apache.hadoop.fs that return types with arguments of type PathModifier and TypeMethodDescriptionBulkDelete.bulkDelete(Collection<Path> paths) Delete a list of files/objects.LocalDirAllocator.getAllLocalPathsToRead(String pathStr, Configuration conf) Get all of the paths that currently exist in the working directories.FileUtil.getJarsInDirectory(String path) Returns all jars that are in the directory.FileUtil.getJarsInDirectory(String path, boolean useLocal) Returns all jars that are in the directory.Path.getOptionalParentPath()Returns the parent of a path asOptionalorOptional.empty()i.e an empty Optional if at root.AbstractFileSystem.listCorruptFileBlocks(Path path) FileContext.listCorruptFileBlocks(Path path) List CorruptFile Blocks.FileSystem.listCorruptFileBlocks(Path path) List corrupted file blocks.FilterFileSystem.listCorruptFileBlocks(Path path) FilterFs.listCorruptFileBlocks(Path path) Methods in org.apache.hadoop.fs with parameters of type PathModifier and TypeMethodDescriptionMultipartUploader.abort(UploadHandle uploadId, Path filePath) Aborts a multipart upload.MultipartUploader.abortUploadsUnderPath(Path path) Best effort attempt to aborts multipart uploads under a path.booleanbooleanTests whether or not the specified abstract pathname should be included in a pathname list.voidThe specification of this method matches that ofFileContext.access(Path, FsAction)except that an UnresolvedLinkException may be thrown if a symlink is encountered in the path.voidChecks if the user can access a path.voidChecks if the user can access a path.voidvoidChecksumFileSystem.append(Path f, int bufferSize, Progressable progress) Append to an existing file (optional operation).Append to an existing file (optional operation).Append to an existing file (optional operation).abstract FSDataOutputStreamFileSystem.append(Path f, int bufferSize, Progressable progress) Append to an existing file (optional operation).FileSystem.append(Path f, int bufferSize, Progressable progress, boolean appendToNewBlock) Append to an existing file (optional operation).FilterFileSystem.append(Path f, int bufferSize, Progressable progress) HarFileSystem.append(Path f, int bufferSize, Progressable progress) RawLocalFileSystem.append(Path f, int bufferSize, Progressable progress) ChecksumFileSystem.appendFile(Path path) This is overridden to ensure that this class's create() method is ultimately called.FileSystem.appendFile(Path path) Create a Builder to append a file.FilterFileSystem.appendFile(Path path) HarFileSystem.appendFile(Path path) booleanFileSystem.cancelDeleteOnExit(Path f) Cancel the scheduled deletion of the path when the FileSystem is closed.static booleanFileUtil.checkFSSupportsEC(FileSystem fs, Path path) Return true if the FS implementsWithErasureCodingand supports EC_POLICY option inOptions.OpenFileOptions.voidCheck that a Path belongs to this FileSystem.protected voidCheck that a Path belongs to this FileSystem.protected voidCheck that a Path belongs to this FileSystem.voidprotected voidintMultipartUploader.complete(UploadHandle uploadId, Path filePath, Map<Integer, PartHandle> handles) Complete a multipart upload.voidChecksumFileSystem.completeLocalOutput(Path fsOutputFile, Path tmpLocalFile) voidFileSystem.completeLocalOutput(Path fsOutputFile, Path tmpLocalFile) Called when we're all done writing to the target.voidFilterFileSystem.completeLocalOutput(Path fsOutputFile, Path tmpLocalFile) Called when we're all done writing to the target.voidHarFileSystem.completeLocalOutput(Path fsOutputFile, Path tmpLocalFile) not implemented.voidRawLocalFileSystem.completeLocalOutput(Path fsWorkingFile, Path tmpLocalFile) voidvoidConcat existing files together.voidvoidbooleanCopy file from src to dest.booleanCopy from src to dst, optionally deleting src and overwriting dst.static booleanFileUtil.copy(File src, FileSystem dstFS, Path dst, boolean deleteSource, Configuration conf) Copy local files to a FileSystem.static booleanFileUtil.copy(FileSystem srcFS, FileStatus srcStatus, FileSystem dstFS, Path dst, boolean deleteSource, boolean overwrite, Configuration conf) Copy a file/directory tree within/between filesystems.static booleanFileUtil.copy(FileSystem srcFS, Path[] srcs, FileSystem dstFS, Path dst, boolean deleteSource, boolean overwrite, Configuration conf) static booleanFileUtil.copy(FileSystem srcFS, Path src, File dst, boolean deleteSource, Configuration conf) Copy FileSystem files to local files.static booleanFileUtil.copy(FileSystem srcFS, Path src, FileSystem dstFS, Path dst, boolean deleteSource, boolean overwrite, Configuration conf) Copy files between FileSystems.static booleanFileUtil.copy(FileSystem srcFS, Path src, FileSystem dstFS, Path dst, boolean deleteSource, Configuration conf) Copy files between FileSystems.voidChecksumFileSystem.copyFromLocalFile(boolean delSrc, Path src, Path dst) voidFileSystem.copyFromLocalFile(boolean delSrc, boolean overwrite, Path[] srcs, Path dst) The src files are on the local disk.voidFileSystem.copyFromLocalFile(boolean delSrc, boolean overwrite, Path src, Path dst) The src file is on the local disk.voidFileSystem.copyFromLocalFile(boolean delSrc, Path src, Path dst) The src file is on the local disk.voidFileSystem.copyFromLocalFile(Path src, Path dst) The src file is on the local disk.voidFilterFileSystem.copyFromLocalFile(boolean delSrc, boolean overwrite, Path[] srcs, Path dst) The src files are on the local disk.voidFilterFileSystem.copyFromLocalFile(boolean delSrc, boolean overwrite, Path src, Path dst) The src file is on the local disk.voidFilterFileSystem.copyFromLocalFile(boolean delSrc, Path src, Path dst) The src file is on the local disk.voidHarFileSystem.copyFromLocalFile(boolean delSrc, boolean overwrite, Path[] srcs, Path dst) voidHarFileSystem.copyFromLocalFile(boolean delSrc, boolean overwrite, Path src, Path dst) not implemented.voidLocalFileSystem.copyFromLocalFile(boolean delSrc, Path src, Path dst) voidChecksumFileSystem.copyToLocalFile(boolean delSrc, Path src, Path dst) The src file is under FS, and the dst is on the local disk.voidChecksumFileSystem.copyToLocalFile(Path src, Path dst, boolean copyCrc) The src file is under FS, and the dst is on the local disk.voidFileSystem.copyToLocalFile(boolean delSrc, Path src, Path dst) Copy it a file from a remote filesystem to the local one.voidFileSystem.copyToLocalFile(boolean delSrc, Path src, Path dst, boolean useRawLocalFileSystem) The src file is under this filesystem, and the dst is on the local disk.voidFileSystem.copyToLocalFile(Path src, Path dst) Copy it a file from the remote filesystem to the local one.voidFilterFileSystem.copyToLocalFile(boolean delSrc, Path src, Path dst) The src file is under FS, and the dst is on the local disk.voidHarFileSystem.copyToLocalFile(boolean delSrc, Path src, Path dst) copies the file in the har filesystem to a local file.voidLocalFileSystem.copyToLocalFile(boolean delSrc, Path src, Path dst) final FSDataOutputStreamAbstractFileSystem.create(Path f, EnumSet<CreateFlag> createFlag, Options.CreateOpts... opts) The specification of this method matches that ofFileContext.create(Path, EnumSet, Options.CreateOpts...)except that the Path f must be fully qualified and the permission is absolute (i.e. umask has been applied).ChecksumFileSystem.create(Path f, FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) ChecksumFileSystem.create(Path f, FsPermission permission, EnumSet<CreateFlag> flags, int bufferSize, short replication, long blockSize, Progressable progress, Options.ChecksumOpt checksumOpt) Create aFSDataOutputStreamBuilderfor creating or overwriting a file on indicated path.FileContext.create(Path f, EnumSet<CreateFlag> createFlag, Options.CreateOpts... opts) Create or overwrite file on indicated path and returns an output stream for writing into the file.static FSDataOutputStreamFileSystem.create(FileSystem fs, Path file, FsPermission permission) Create a file with the provided permission.Create an FSDataOutputStream at the indicated Path.Create an FSDataOutputStream at the indicated Path.Create an FSDataOutputStream at the indicated Path.Create an FSDataOutputStream at the indicated Path.FileSystem.create(Path f, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) Create an FSDataOutputStream at the indicated Path with write-progress reporting.FileSystem.create(Path f, boolean overwrite, int bufferSize, Progressable progress) Create anFSDataOutputStreamat the indicated Path with write-progress reporting.Create an FSDataOutputStream at the indicated Path.FileSystem.create(Path f, short replication, Progressable progress) Create an FSDataOutputStream at the indicated Path with write-progress reporting.abstract FSDataOutputStreamFileSystem.create(Path f, FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) Create an FSDataOutputStream at the indicated Path with write-progress reporting.FileSystem.create(Path f, FsPermission permission, EnumSet<CreateFlag> flags, int bufferSize, short replication, long blockSize, Progressable progress) Create an FSDataOutputStream at the indicated Path with write-progress reporting.FileSystem.create(Path f, FsPermission permission, EnumSet<CreateFlag> flags, int bufferSize, short replication, long blockSize, Progressable progress, Options.ChecksumOpt checksumOpt) Create an FSDataOutputStream at the indicated Path with a custom checksum option.FileSystem.create(Path f, Progressable progress) Create an FSDataOutputStream at the indicated Path with write-progress reporting.FilterFileSystem.create(Path f, FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) FilterFileSystem.create(Path f, FsPermission permission, EnumSet<CreateFlag> flags, int bufferSize, short replication, long blockSize, Progressable progress, Options.ChecksumOpt checksumOpt) HarFileSystem.create(Path f, FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) RawLocalFileSystem.create(Path f, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) RawLocalFileSystem.create(Path f, FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) BulkDeleteSource.createBulkDelete(Path path) Create a bulk delete operation.FileSystem.createBulkDelete(Path path) Create a bulk delete operation.protected static org.apache.hadoop.fs.FileSystem.FSDataInputStreamBuilderFileSystem.createDataInputStreamBuilder(FileSystem fileSystem, Path path) Create instance of the standardFileSystem.FSDataInputStreamBuilderfor the given filesystem and path.protected static FSDataOutputStreamBuilderFileSystem.createDataOutputStreamBuilder(FileSystem fileSystem, Path path) Create instance of the standard FSDataOutputStreamBuilder for the given filesystem and path.ChecksumFileSystem.createFile(Path path) This is overridden to ensure that this class's create() method is ultimately called.FileSystem.createFile(Path path) Create a new FSDataOutputStreamBuilder for the file with path.FilterFileSystem.createFile(Path path) HarFileSystem.createFile(Path path) abstract FSDataOutputStreamAbstractFileSystem.createInternal(Path f, EnumSet<CreateFlag> flag, FsPermission absolutePermission, int bufferSize, short replication, long blockSize, Progressable progress, Options.ChecksumOpt checksumOpt, boolean createParent) The specification of this method matches that ofAbstractFileSystem.create(Path, EnumSet, Options.CreateOpts...)except that the opts have been declared explicitly.ChecksumFs.createInternal(Path f, EnumSet<CreateFlag> createFlag, FsPermission absolutePermission, int bufferSize, short replication, long blockSize, Progressable progress, Options.ChecksumOpt checksumOpt, boolean createParent) DelegateToFileSystem.createInternal(Path f, EnumSet<CreateFlag> flag, FsPermission absolutePermission, int bufferSize, short replication, long blockSize, Progressable progress, Options.ChecksumOpt checksumOpt, boolean createParent) FilterFs.createInternal(Path f, EnumSet<CreateFlag> flag, FsPermission absolutePermission, int bufferSize, short replication, long blockSize, Progressable progress, Options.ChecksumOpt checksumOpt, boolean createParent) static String[]static String[]FileUtil.createJarWithClassPath(String inputClassPath, Path pwd, Path targetDir, Map<String, String> callerEnv) Create a jar file at the given path, containing a manifest with a classpath that references all specified entries.AbstractFileSystem.createMultipartUploader(Path basePath) Create a multipart uploader.FileContext.createMultipartUploader(Path basePath) Create a multipart uploader.FileSystem.createMultipartUploader(Path basePath) Create a multipart uploader.FilterFs.createMultipartUploader(Path basePath) booleanFileSystem.createNewFile(Path f) Creates the given Path as a brand-new zero-length file.ChecksumFileSystem.createNonRecursive(Path f, FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) ChecksumFileSystem.createNonRecursive(Path f, FsPermission permission, EnumSet<CreateFlag> flags, int bufferSize, short replication, long blockSize, Progressable progress) FileSystem.createNonRecursive(Path f, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) Opens an FSDataOutputStream at the indicated Path with write-progress reporting.FileSystem.createNonRecursive(Path f, FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) Opens an FSDataOutputStream at the indicated Path with write-progress reporting.FileSystem.createNonRecursive(Path f, FsPermission permission, EnumSet<CreateFlag> flags, int bufferSize, short replication, long blockSize, Progressable progress) Opens an FSDataOutputStream at the indicated Path with write-progress reporting.FilterFileSystem.createNonRecursive(Path f, FsPermission permission, EnumSet<CreateFlag> flags, int bufferSize, short replication, long blockSize, Progressable progress) HarFileSystem.createNonRecursive(Path f, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) RawLocalFileSystem.createNonRecursive(Path f, FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) RawLocalFileSystem.createNonRecursive(Path f, FsPermission permission, EnumSet<CreateFlag> flags, int bufferSize, short replication, long blockSize, Progressable progress) protected OutputStreamRawLocalFileSystem.createOutputStream(Path f, boolean append) protected OutputStreamRawLocalFileSystem.createOutputStreamWithMode(Path f, boolean append, FsPermission permission) AbstractFileSystem.createSnapshot(Path path, String snapshotName) The specification of this method matches that ofFileContext.createSnapshot(Path, String).final PathFileContext.createSnapshot(Path path) Create a snapshot with a default name.FileContext.createSnapshot(Path path, String snapshotName) Create a snapshot.final PathFileSystem.createSnapshot(Path path) Create a snapshot with a default name.FileSystem.createSnapshot(Path path, String snapshotName) Create a snapshot.FilterFileSystem.createSnapshot(Path path, String snapshotName) FilterFs.createSnapshot(Path path, String snapshotName) voidAbstractFileSystem.createSymlink(Path target, Path link, boolean createParent) The specification of this method matches that ofFileContext.createSymlink(Path, Path, boolean);voidDelegateToFileSystem.createSymlink(Path target, Path link, boolean createParent) voidFileContext.createSymlink(Path target, Path link, boolean createParent) Creates a symbolic link to an existing file.voidFileSystem.createSymlink(Path target, Path link, boolean createParent) voidFilterFileSystem.createSymlink(Path target, Path link, boolean createParent) voidFilterFs.createSymlink(Path target, Path link, boolean createParent) voidLocalFileSystem.createSymlink(Path target, Path link, boolean createParent) voidRawLocalFileSystem.createSymlink(Path target, Path link, boolean createParent) abstract booleanThe specification of this method matches that ofFileContext.delete(Path, boolean)except that Path f must be for this file system.booleanImplement the delete(Path, boolean) in checksum file system.booleanImplement the delete(Path, boolean) in checksum file system.booleanbooleanDelete a file.booleanDeprecated.UseFileSystem.delete(Path, boolean)instead.abstract booleanDelete a file.booleanDelete a filebooleanbooleanNot implemented.booleanDelete the given path to a file or directory.booleanFileContext.deleteOnExit(Path f) Mark a path to be deleted on JVM shutdown.booleanFileSystem.deleteOnExit(Path f) Mark a path to be deleted when its FileSystem is closed.voidAbstractFileSystem.deleteSnapshot(Path snapshotDir, String snapshotName) The specification of this method matches that ofFileContext.deleteSnapshot(Path, String).voidFileContext.deleteSnapshot(Path path, String snapshotName) Delete a snapshot of a directory.voidFileSystem.deleteSnapshot(Path path, String snapshotName) Delete a snapshot of a directory.voidFilterFileSystem.deleteSnapshot(Path path, String snapshotName) voidFilterFs.deleteSnapshot(Path path, String snapshotName) abstract TFileSystem subclass-specific implementation of superclass method.booleanDoes the file exist?booleanCheck if a path exists.booleanprotected PathFileSystem.fixRelativePart(Path p) SeeFileContext.fixRelativePart(org.apache.hadoop.fs.Path).static voidFileUtil.fullyDelete(FileSystem fs, Path dir) Deprecated.AbstractFileSystem.getAclStatus(Path path) Gets the ACLs of files and directories.FileContext.getAclStatus(Path path) Gets the ACLs of files and directories.FileSystem.getAclStatus(Path path) Gets the ACL of a file or directory.FilterFileSystem.getAclStatus(Path path) FilterFs.getAclStatus(Path path) longFileSystem.getBlockSize(Path f) Deprecated.UseFileSystem.getFileStatus(Path)insteadChecksumFileSystem.getChecksumFile(Path file) Return the name of the checksum file associated with a file.ChecksumFs.getChecksumFile(Path file) Return the name of the checksum file associated with a file.longChecksumFileSystem.getChecksumFileLength(Path file, long fileSize) Return the length of the checksum file given the size of the actual file.longChecksumFs.getChecksumFileLength(Path file, long fileSize) Return the length of the checksum file given the size of the actual file.FileContext.Util.getContentSummary(Path f) Return theContentSummaryof path f.FileSystem.getContentSummary(Path f) Return theContentSummaryof a givenPath.FsShell.getCurrentTrashDir(Path path) Returns the current trash location for the path specifiedTrash.getCurrentTrashDir(Path path) TrashPolicy.getCurrentTrashDir(Path path) Get the current trash directory for path specified based on the Trash PolicyTrashPolicyDefault.getCurrentTrashDir(Path path) longFileSystem.getDefaultBlockSize(Path f) Return the number of bytes that large input files should be optimally be split into to minimize I/O time.longFilterFileSystem.getDefaultBlockSize(Path f) longHarFileSystem.getDefaultBlockSize(Path f) shortFileSystem.getDefaultReplication(Path path) Get the default replication for a path.shortFilterFileSystem.getDefaultReplication(Path f) shortHarFileSystem.getDefaultReplication(Path f) FileContext.getDelegationTokens(Path p, String renewer) Get delegation tokens for the file systems accessed for a given path.AbstractFileSystem.getEnclosingRoot(Path path) Return path of the enclosing root for a given path The enclosing root path is a common ancestor that should be used for temp and staging dirs as well as within encryption zones and other restricted directories.FileSystem.getEnclosingRoot(Path path) Return path of the enclosing root for a given path.FilterFileSystem.getEnclosingRoot(Path path) FilterFs.getEnclosingRoot(Path path) abstract BlockLocation[]AbstractFileSystem.getFileBlockLocations(Path f, long start, long len) The specification of this method matches that ofFileContext.getFileBlockLocations(Path, long, long)except that Path f must be for this file system.DelegateToFileSystem.getFileBlockLocations(Path f, long start, long len) FileContext.getFileBlockLocations(Path f, long start, long len) Return blockLocation of the given file for the given offset and len.FileSystem.getFileBlockLocations(Path p, long start, long len) Return an array containing hostnames, offset and size of portions of the given file.FilterFs.getFileBlockLocations(Path f, long start, long len) abstract FileChecksumAbstractFileSystem.getFileChecksum(Path f) The specification of this method matches that ofFileContext.getFileChecksum(Path)except that Path f must be for this file system.DelegateToFileSystem.getFileChecksum(Path f) FileContext.getFileChecksum(Path f) Get the checksum of a file.FileSystem.getFileChecksum(Path f) Get the checksum of a file, if the FS supports checksums.FileSystem.getFileChecksum(Path f, long length) Get the checksum of a file, from the beginning of the file till the specific length.FilterFileSystem.getFileChecksum(Path f) FilterFileSystem.getFileChecksum(Path f, long length) FilterFs.getFileChecksum(Path f) HarFileSystem.getFileChecksum(Path f, long length) AbstractFileSystem.getFileLinkStatus(Path f) The specification of this method matches that ofFileContext.getFileLinkStatus(Path)except that an UnresolvedLinkException may be thrown if a symlink is encountered in the path leading up to the final path component.DelegateToFileSystem.getFileLinkStatus(Path f) FileContext.getFileLinkStatus(Path f) Return a file status object that represents the path.FileSystem.getFileLinkStatus(Path f) FilterFileSystem.getFileLinkStatus(Path f) FilterFs.getFileLinkStatus(Path f) LocalFileSystem.getFileLinkStatus(Path f) RawLocalFileSystem.getFileLinkStatus(Path f) Return a FileStatus representing the given path.abstract FileStatusAbstractFileSystem.getFileStatus(Path f) The specification of this method matches that ofFileContext.getFileStatus(Path)except that an UnresolvedLinkException may be thrown if a symlink is encountered in the path.DelegateToFileSystem.getFileStatus(Path f) FileContext.getFileStatus(Path f) Return a file status object that represents the path.abstract FileStatusFileSystem.getFileStatus(Path f) Return a file status object that represents the path.FilterFileSystem.getFileStatus(Path f) Get file status.FilterFs.getFileStatus(Path f) HarFileSystem.getFileStatus(Path f) return the filestatus of files in har archive.RawLocalFileSystem.getFileStatus(Path f) protected AbstractFileSystemFileContext.getFSofPath(Path absOrFqPath) Get the file system of supplied path.protected static FileSystemFileSystem.getFSofPath(Path absOrFqPath, Configuration conf) AbstractFileSystem.getFsStatus(Path f) The specification of this method matches that ofFileContext.getFsStatus(Path)except that Path f must be for this file system.DelegateToFileSystem.getFsStatus(Path f) FileContext.getFsStatus(Path f) Returns a status object describing the use and capacity of the file system denoted by the Parh argument p.FilterFs.getFsStatus(Path f) static intHarFileSystem.getHarHash(Path p) the hash of the path p inside the filesystemstatic TrashPolicyTrashPolicy.getInstance(Configuration conf, FileSystem fs, Path home) Deprecated.UseTrashPolicy.getInstance(Configuration, FileSystem)instead.longDeprecated.UseFileSystem.getFileStatus(Path)instead.AbstractFileSystem.getLinkTarget(Path f) Partially resolves the path.DelegateToFileSystem.getLinkTarget(Path f) FileContext.getLinkTarget(Path f) Returns the target of the given symbolic link as it was specified when the link was created.FileSystem.getLinkTarget(Path f) FilterFileSystem.getLinkTarget(Path f) FilterFs.getLinkTarget(Path f) LocalFileSystem.getLinkTarget(Path f) RawLocalFileSystem.getLinkTarget(Path f) static PathPath.getPathWithoutSchemeAndAuthority(Path path) Return a version of the given Path without the scheme information.FileSystem.getQuotaUsage(Path f) Return theQuotaUsageof a givenPath.shortFileSystem.getReplication(Path src) Deprecated.UseFileSystem.getFileStatus(Path)insteadAbstractFileSystem.getServerDefaults(Path f) Return a set of server default configuration values based on path.DelegateToFileSystem.getServerDefaults(Path f) FileContext.getServerDefaults(Path path) Return a set of server default configuration values based on path.FileSystem.getServerDefaults(Path p) Return a set of server default configuration values.FilterFileSystem.getServerDefaults(Path f) FilterFs.getServerDefaults(Path f) HarFileSystem.getServerDefaults(Path f) Returns a status object describing the use and capacity of the filesystem.AbstractFileSystem.getStoragePolicy(Path src) Retrieve the storage policy for a given file or directory.FileContext.getStoragePolicy(Path path) Query the effective storage policy ID for the given file or directory.FileSystem.getStoragePolicy(Path src) Query the effective storage policy ID for the given file or directory.FilterFileSystem.getStoragePolicy(Path src) FilterFs.getStoragePolicy(Path src) FileSystem.getTrashRoot(Path path) Get the root directory of Trash for current user when the path specified is deleted.FilterFileSystem.getTrashRoot(Path path) AbstractFileSystem.getUriPath(Path p) Get the path-part of a pathname.FilterFs.getUriPath(Path p) longReturn the total size of all files from a specified path.longReturn the total size of all files from a specified path.longReturn the total size of all files from a specified path.byte[]Get an xattr for a file or directory.byte[]Get an xattr for a file or directory.byte[]Get an xattr name and value for a file or directory.byte[]byte[]Get all of the xattrs for a file or directory.Get all of the xattrs for a file or directory.Get all of the xattrs for a file or directory.Get all of the xattrs for a file or directory.Get all of the xattr name/value pairs for a file or directory.Get all of the xattrs name/value pairs for a file or directory.FileContext.Util.globStatus(Path pathPattern) Return all the files that match filePattern and are not checksum files.FileContext.Util.globStatus(Path pathPattern, PathFilter filter) Return an array of FileStatus objects whose path names match pathPattern and is accepted by the user-supplied path filter.FileSystem.globStatus(Path pathPattern) Return all the files that match filePattern and are not checksum files.FileSystem.globStatus(Path pathPattern, PathFilter filter) Return an array ofFileStatusobjects whose path names matchpathPatternand is accepted by the user-supplied path filter.final booleanRawLocalFileSystem.handleEmptyDstDirectoryOnWindows(Path src, File srcFile, Path dst, File dstFile) booleanAbstractFileSystem.hasPathCapability(Path path, String capability) booleanChecksumFileSystem.hasPathCapability(Path path, String capability) Disable those operations which the checksummed FS blocks.booleanDelegateToFileSystem.hasPathCapability(Path path, String capability) booleanFileContext.hasPathCapability(Path path, String capability) Return the path capabilities of the bondedAbstractFileSystem.booleanFileSystem.hasPathCapability(Path path, String capability) The base FileSystem implementation generally has no knowledge of the capabilities of actual implementations.booleanFilterFileSystem.hasPathCapability(Path path, String capability) booleanFilterFs.hasPathCapability(Path path, String capability) booleanHarFileSystem.hasPathCapability(Path path, String capability) Declare that this filesystem connector is always read only.booleanPathCapabilities.hasPathCapability(Path path, String capability) Probe for a specific capability under the given path.booleanRawLocalFileSystem.hasPathCapability(Path path, String capability) abstract voidTrashPolicy.initialize(Configuration conf, FileSystem fs, Path home) Deprecated.UseTrashPolicy.initialize(Configuration, FileSystem)instead.voidTrashPolicyDefault.initialize(Configuration conf, FileSystem fs, Path home) Deprecated.static booleanChecksumFileSystem.isChecksumFile(Path file) Return true if file is a checksum file name.static booleanChecksumFs.isChecksumFile(Path file) Return true iff file is a checksum file name.booleanFileSystem.isDirectory(Path f) Deprecated.UseFileSystem.getFileStatus(Path)insteadbooleanDeprecated.UseFileSystem.getFileStatus(Path)insteadbooleanLeaseRecoverable.isFileClosed(Path file) Get the close status of a file.AbstractFileSystem.listCorruptFileBlocks(Path path) FileContext.listCorruptFileBlocks(Path path) List CorruptFile Blocks.FileSystem.listCorruptFileBlocks(Path path) List corrupted file blocks.FilterFileSystem.listCorruptFileBlocks(Path path) FilterFs.listCorruptFileBlocks(Path path) List the statuses and block locations of the files in the given path.List the statuses and block locations of the files in the given path.AbstractFileSystem.listLocatedStatus(Path f) The specification of this method matches that ofFileContext.listLocatedStatus(Path)except that Path f must be for this file system.ChecksumFileSystem.listLocatedStatus(Path f) List the statuses of the files/directories in the given path if the path is a directory.ChecksumFs.listLocatedStatus(Path f) FileContext.listLocatedStatus(Path f) List the statuses of the files/directories in the given path if the path is a directory.FileSystem.listLocatedStatus(Path f) List the statuses of the files/directories in the given path if the path is a directory.protected RemoteIterator<LocatedFileStatus>FileSystem.listLocatedStatus(Path f, PathFilter filter) List a directory.FilterFileSystem.listLocatedStatus(Path f) List files and its block locations in a directory.protected RemoteIterator<LocatedFileStatus>FilterFileSystem.listLocatedStatus(Path f, PathFilter filter) FilterFs.listLocatedStatus(Path f) abstract FileStatus[]AbstractFileSystem.listStatus(Path f) The specification of this method matches that ofFileContext.Util.listStatus(Path)except that Path f must be for this file system.ChecksumFileSystem.listStatus(Path f) List the statuses of the files/directories in the given path if the path is a directory.ChecksumFs.listStatus(Path f) DelegateToFileSystem.listStatus(Path f) FileContext.listStatus(Path f) List the statuses of the files/directories in the given path if the path is a directory.FileContext.Util.listStatus(Path f) List the statuses of the files/directories in the given path if the path is a directory.FileContext.Util.listStatus(Path[] files) FileContext.Util.listStatus(Path[] files, PathFilter filter) Filter files/directories in the given list of paths using user-supplied path filter.FileContext.Util.listStatus(Path f, PathFilter filter) Filter files/directories in the given path using the user-supplied path filter.abstract FileStatus[]FileSystem.listStatus(Path f) List the statuses of the files/directories in the given path if the path is a directory.FileSystem.listStatus(Path[] files) Filter files/directories in the given list of paths using default path filter.FileSystem.listStatus(Path[] files, PathFilter filter) Filter files/directories in the given list of paths using user-supplied path filter.FileSystem.listStatus(Path f, PathFilter filter) Filter files/directories in the given path using the user-supplied path filter.FilterFileSystem.listStatus(Path f) List files in a directory.FilterFs.listStatus(Path f) HarFileSystem.listStatus(Path f) liststatus returns the children of a directory after looking up the index files.RawLocalFileSystem.listStatus(Path f) List the statuses of the files/directories in the given path if the path is a directory.protected FileSystem.DirectoryEntriesFileSystem.listStatusBatch(Path f, byte[] token) Given an opaque iteration token, return the next batch of entries in a directory.AbstractFileSystem.listStatusIterator(Path f) The specification of this method matches that ofFileContext.listStatus(Path)except that Path f must be for this file system.ChecksumFileSystem.listStatusIterator(Path p) FileSystem.listStatusIterator(Path p) Returns a remote iterator so that followup calls are made on demand while consuming the entries.FilterFileSystem.listStatusIterator(Path f) Return a remote iterator for listing in a directoryAbstractFileSystem.listXAttrs(Path path) Get all of the xattr names for a file or directory.FileContext.listXAttrs(Path path) Get all of the xattr names for a file or directory.FileSystem.listXAttrs(Path path) Get all of the xattr names for a file or directory.FilterFileSystem.listXAttrs(Path path) FilterFs.listXAttrs(Path path) AbstractFileSystem.makeQualified(Path path) Make the path fully qualified to this file systemFileContext.makeQualified(Path path) Make the path fully qualified if it is isn't.FileSystem.makeQualified(Path path) Qualify a path to one which uses this FileSystem and, if relative, made absolute.FilterFileSystem.makeQualified(Path path) Make sure that a path specifies a FileSystem.FilterFs.makeQualified(Path path) HarFileSystem.makeQualified(Path path) Path.makeQualified(URI defaultUri, Path workingDir) Returns a qualified path object.static voidFileUtil.maybeIgnoreMissingDirectory(FileSystem fs, Path path, FileNotFoundException e) Method to call after a FNFE has been raised on a treewalk, so as to decide whether to throw the exception (default), or, if the FS supports inconsistent directory listings, to log and ignore it.static PathPath.mergePaths(Path path1, Path path2) Merge 2 paths such that the second path is appended relative to the first.abstract voidAbstractFileSystem.mkdir(Path dir, FsPermission permission, boolean createParent) The specification of this method matches that ofFileContext.mkdir(Path, FsPermission, boolean)except that the Path f must be fully qualified and the permission is absolute (i.e.voidDelegateToFileSystem.mkdir(Path dir, FsPermission permission, boolean createParent) voidFileContext.mkdir(Path dir, FsPermission permission, boolean createParent) Make(create) a directory and all the non-existent parents.voidFilterFs.mkdir(Path dir, FsPermission permission, boolean createParent) booleanstatic booleanFileSystem.mkdirs(FileSystem fs, Path dir, FsPermission permission) Create a directory with the provided permission.booleanCallFileSystem.mkdirs(Path, FsPermission)with default permission.abstract booleanFileSystem.mkdirs(Path f, FsPermission permission) Make the given file and all non-existent parents into directories.booleanbooleanFilterFileSystem.mkdirs(Path f, FsPermission permission) booleanHarFileSystem.mkdirs(Path f, FsPermission permission) not implemented.booleanCreates the specified directory hierarchy.booleanRawLocalFileSystem.mkdirs(Path f, FsPermission permission) protected booleanRawLocalFileSystem.mkOneDirWithMode(Path p, File p2f, FsPermission permission) voidAbstractFileSystem.modifyAclEntries(Path path, List<AclEntry> aclSpec) Modifies ACL entries of files and directories.voidChecksumFileSystem.modifyAclEntries(Path src, List<AclEntry> aclSpec) voidFileContext.modifyAclEntries(Path path, List<AclEntry> aclSpec) Modifies ACL entries of files and directories.voidFileSystem.modifyAclEntries(Path path, List<AclEntry> aclSpec) Modifies ACL entries of files and directories.voidFilterFileSystem.modifyAclEntries(Path path, List<AclEntry> aclSpec) voidFilterFs.modifyAclEntries(Path path, List<AclEntry> aclSpec) voidFileSystem.moveFromLocalFile(Path[] srcs, Path dst) The src files is on the local disk.voidFileSystem.moveFromLocalFile(Path src, Path dst) The src file is on the local disk.voidRawLocalFileSystem.moveFromLocalFile(Path src, Path dst) static booleanTrash.moveToAppropriateTrash(FileSystem fs, Path p, Configuration conf) In case of the symlinks or mount points, one has to move the appropriate trashbin in the actual volume of the path p being deleted.voidFileSystem.moveToLocalFile(Path src, Path dst) Copy a file to the local filesystem, then delete it from the remote filesystem (if successfully copied).booleanTrash.moveToTrash(Path path) Move a file or directory to the current trash directory.abstract booleanTrashPolicy.moveToTrash(Path path) Move a file or directory to the current trash directory.booleanTrashPolicyDefault.moveToTrash(Path path) abstract TFileSystemLinkResolver.next(FileSystem fs, Path p) Calls the abstract FileSystem call equivalent to the specialized subclass implementation inFileSystemLinkResolver.doCall(Path).abstract TFSLinkResolver.next(AbstractFileSystem fs, Path p) Generic helper function overridden on instantiation to perform a specific operation on the given file system using the given path which may result in an UnresolvedLinkException.The specification of this method matches that ofFileContext.open(Path)except that Path f must be for this file system.abstract FSDataInputStreamThe specification of this method matches that ofFileContext.open(Path, int)except that Path f must be for this file system.Opens an FSDataInputStream at the indicated Path.Opens an FSDataInputStream at the indicated Path.Opens an FSDataInputStream at the indicated Path using default buffersize.Opens an FSDataInputStream at the indicated Path.Opens an FSDataInputStream at the indicated Path.abstract FSDataInputStreamOpens an FSDataInputStream at the indicated Path.Opens an FSDataInputStream at the indicated Path.Returns a har input stream which fakes end of file.This is overridden to ensure that this class'sChecksumFileSystem.openFileWithOptions(org.apache.hadoop.fs.Path, org.apache.hadoop.fs.impl.OpenFileParameters)() method is called, and so ultimately itsChecksumFileSystem.open(Path, int).Open a file for reading through a builder API.Open a file for reading through a builder API.AbstractFileSystem.openFileWithOptions(Path path, OpenFileParameters parameters) Open a file with the given set of options.protected CompletableFuture<FSDataInputStream>ChecksumFileSystem.openFileWithOptions(Path path, OpenFileParameters parameters) Open the file as a blocking call toChecksumFileSystem.open(Path, int).DelegateToFileSystem.openFileWithOptions(Path path, OpenFileParameters parameters) Open a file by delegating toFileSystem.openFileWithOptions(Path, org.apache.hadoop.fs.impl.OpenFileParameters).protected CompletableFuture<FSDataInputStream>FileSystem.openFileWithOptions(Path path, OpenFileParameters parameters) Execute the actual open file operation.protected CompletableFuture<FSDataInputStream>FilterFileSystem.openFileWithOptions(Path path, OpenFileParameters parameters) FilterFs.openFileWithOptions(Path path, OpenFileParameters parameters) LocalFileSystem.pathToFile(Path path) Convert a path to a File.RawLocalFileSystem.pathToFile(Path path) Convert a path to a File.protected FSDataOutputStreamFileSystem.primitiveCreate(Path f, FsPermission absolutePermission, EnumSet<CreateFlag> flag, int bufferSize, short replication, long blockSize, Progressable progress, Options.ChecksumOpt checksumOpt) Deprecated.protected FSDataOutputStreamFilterFileSystem.primitiveCreate(Path f, FsPermission absolutePermission, EnumSet<CreateFlag> flag, int bufferSize, short replication, long blockSize, Progressable progress, Options.ChecksumOpt checksumOpt) protected booleanFileSystem.primitiveMkdir(Path f, FsPermission absolutePermission) Deprecated.protected voidFileSystem.primitiveMkdir(Path f, FsPermission absolutePermission, boolean createParent) Deprecated.protected booleanFilterFileSystem.primitiveMkdir(Path f, FsPermission abdolutePermission) MultipartUploader.putPart(UploadHandle uploadId, int partNumber, boolean isLastPart, Path filePath, InputStream inputStream, long lengthInBytes) Put part as part of a multipart upload.static PathFSLinkResolver.qualifySymlinkTarget(URI pathURI, Path pathWithLink, Path target) Return a fully-qualified version of the given symlink target if it has no scheme and authority.booleanLeaseRecoverable.recoverLease(Path file) Start the lease recovery of a file.voidRemoves all but the base ACL entries of files and directories.voidvoidRemoves all but the base ACL entries of files and directories.voidRemoves all but the base ACL entries of files and directories.voidvoidvoidAbstractFileSystem.removeAclEntries(Path path, List<AclEntry> aclSpec) Removes ACL entries from files and directories.voidChecksumFileSystem.removeAclEntries(Path src, List<AclEntry> aclSpec) voidFileContext.removeAclEntries(Path path, List<AclEntry> aclSpec) Removes ACL entries from files and directories.voidFileSystem.removeAclEntries(Path path, List<AclEntry> aclSpec) Removes ACL entries from files and directories.voidFilterFileSystem.removeAclEntries(Path path, List<AclEntry> aclSpec) voidFilterFs.removeAclEntries(Path path, List<AclEntry> aclSpec) voidAbstractFileSystem.removeDefaultAcl(Path path) Removes all default ACL entries from files and directories.voidChecksumFileSystem.removeDefaultAcl(Path src) voidFileContext.removeDefaultAcl(Path path) Removes all default ACL entries from files and directories.voidFileSystem.removeDefaultAcl(Path path) Removes all default ACL entries from files and directories.voidFilterFileSystem.removeDefaultAcl(Path path) voidFilterFs.removeDefaultAcl(Path path) voidAbstractFileSystem.removeXAttr(Path path, String name) Remove an xattr of a file or directory.voidFileContext.removeXAttr(Path path, String name) Remove an xattr of a file or directory.voidFileSystem.removeXAttr(Path path, String name) Remove an xattr of a file or directory.voidFilterFileSystem.removeXAttr(Path path, String name) voidFilterFs.removeXAttr(Path path, String name) final voidAbstractFileSystem.rename(Path src, Path dst, Options.Rename... options) The specification of this method matches that ofFileContext.rename(Path, Path, Options.Rename...)except that Path f must be for this file system.booleanRename files/dirsvoidFileContext.rename(Path src, Path dst, Options.Rename... options) Renames Path src to Path dst Fails if src is a file and dst is a directory.abstract booleanRenames Path src to Path dst.protected voidFileSystem.rename(Path src, Path dst, Options.Rename... options) Deprecated.static voidFileUtil.rename(FileSystem srcFs, Path src, Path dst, Options.Rename... options) booleanRenames Path src to Path dst.protected voidFilterFileSystem.rename(Path src, Path dst, Options.Rename... options) booleanvoidInternalOperations.rename(FileSystem fs, Path src, Path dst, Options.Rename... options) booleanabstract voidAbstractFileSystem.renameInternal(Path src, Path dst) The specification of this method matches that ofFileContext.rename(Path, Path, Options.Rename...)except that Path f must be for this file system and NO OVERWRITE is performed.voidAbstractFileSystem.renameInternal(Path src, Path dst, boolean overwrite) The specification of this method matches that ofFileContext.rename(Path, Path, Options.Rename...)except that Path f must be for this file system.voidChecksumFs.renameInternal(Path src, Path dst) Rename files/dirs.voidChecksumFs.renameInternal(Path src, Path dst, boolean overwrite) voidDelegateToFileSystem.renameInternal(Path src, Path dst) voidFilterFs.renameInternal(Path src, Path dst) voidFilterFs.renameInternal(Path src, Path dst, boolean overwrite) voidAbstractFileSystem.renameSnapshot(Path path, String snapshotOldName, String snapshotNewName) The specification of this method matches that ofFileContext.renameSnapshot(Path, String, String).voidFileContext.renameSnapshot(Path path, String snapshotOldName, String snapshotNewName) Rename a snapshot.voidFileSystem.renameSnapshot(Path path, String snapshotOldName, String snapshotNewName) Rename a snapshot.voidFilterFileSystem.renameSnapshot(Path path, String snapshotOldName, String snapshotNewName) voidFilterFs.renameSnapshot(Path path, String snapshotOldName, String snapshotNewName) booleanChecksumFileSystem.reportChecksumFailure(Path f, FSDataInputStream in, long inPos, FSDataInputStream sums, long sumsPos) Report a checksum error to the file system.booleanChecksumFs.reportChecksumFailure(Path f, FSDataInputStream in, long inPos, FSDataInputStream sums, long sumsPos) Report a checksum error to the file system.booleanLocalFileSystem.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.protected PathResolves all symbolic links in the specified path.FileSystemLinkResolver.resolve(FileSystem filesys, Path path) Attempt calling overriddenFileSystemLinkResolver.doCall(Path)method with specifiedFileSystemandPath.FSLinkResolver.resolve(FileContext fc, Path path) Performs the operation specified by the next function, calling it repeatedly until all symlinks in the given path are resolved.protected PathFileContext.resolveIntermediate(Path f) Resolves all symbolic links in the specified path leading up to, but not including the final path component.protected PathFileSystem.resolveLink(Path f) protected PathFilterFileSystem.resolveLink(Path f) AbstractFileSystem.resolvePath(Path p) Return the fully-qualified path of path f resolving the path through any internal symlinks or mount pointFileContext.resolvePath(Path f) Resolve the path following any symlinks or mount pointsFileSystem.resolvePath(Path p) Return the fully-qualified path of path, resolving the path through any symlinks or mount point.FilterFileSystem.resolvePath(Path p) FilterFs.resolvePath(Path p) HarFileSystem.resolvePath(Path p) voidAbstractFileSystem.satisfyStoragePolicy(Path path) Set the source path to satisfy storage policy.voidFileContext.satisfyStoragePolicy(Path path) Set the source path to satisfy storage policy.voidFileSystem.satisfyStoragePolicy(Path path) Set the source path to satisfy storage policy.voidFilterFileSystem.satisfyStoragePolicy(Path src) voidFilterFs.satisfyStoragePolicy(Path path) voidFully replaces ACL of files and directories, discarding all existing entries.voidvoidFully replaces ACL of files and directories, discarding all existing entries.voidFully replaces ACL of files and directories, discarding all existing entries.voidvoidvoidWithErasureCoding.setErasureCodingPolicy(Path path, String ecPolicyName) Set the given ecPolicy on the path.abstract voidThe specification of this method matches that ofFileContext.setOwner(Path, String, String)except that Path f must be for this file system.voidvoidvoidSet owner of a path (i.e. a file or a directory).voidSet owner of a path (i.e. a file or a directory).voidvoidvoidnot implemented.voidUse the command chown to set owner.voidabstract voidAbstractFileSystem.setPermission(Path f, FsPermission permission) The specification of this method matches that ofFileContext.setPermission(Path, FsPermission)except that Path f must be for this file system.voidChecksumFileSystem.setPermission(Path src, FsPermission permission) voidDelegateToFileSystem.setPermission(Path f, FsPermission permission) voidFileContext.setPermission(Path f, FsPermission permission) Set permission of a path.voidFileSystem.setPermission(Path p, FsPermission permission) Set permission of a path.voidFilterFileSystem.setPermission(Path p, FsPermission permission) voidFilterFs.setPermission(Path f, FsPermission permission) voidHarFileSystem.setPermission(Path p, FsPermission permission) Not implemented.voidRawLocalFileSystem.setPermission(Path p, FsPermission permission) Use the command chmod to set permission.voidSet quota for the givenPath.voidFileSystem.setQuotaByStorageType(Path src, StorageType type, long quota) Set per storage type quota for the givenPath.abstract booleanAbstractFileSystem.setReplication(Path f, short replication) The specification of this method matches that ofFileContext.setReplication(Path, short)except that Path f must be for this file system.booleanChecksumFileSystem.setReplication(Path src, short replication) Set replication for an existing file.booleanChecksumFs.setReplication(Path src, short replication) Set replication for an existing file.booleanDelegateToFileSystem.setReplication(Path f, short replication) booleanFileContext.setReplication(Path f, short replication) Set replication for an existing file.booleanFileSystem.setReplication(Path src, short replication) Set the replication for an existing file.booleanFilterFileSystem.setReplication(Path src, short replication) Set replication for an existing file.booleanFilterFs.setReplication(Path f, short replication) booleanHarFileSystem.setReplication(Path src, short replication) Not implemented.voidAbstractFileSystem.setStoragePolicy(Path path, String policyName) Set the storage policy for a given file or directory.voidFileContext.setStoragePolicy(Path path, String policyName) Set the storage policy for a given file or directory.voidFileSystem.setStoragePolicy(Path src, String policyName) Set the storage policy for a given file or directory.voidFilterFileSystem.setStoragePolicy(Path src, String policyName) voidFilterFs.setStoragePolicy(Path path, String policyName) voidFileStatus.setSymlink(Path p) abstract voidThe specification of this method matches that ofFileContext.setTimes(Path, long, long)except that Path f must be for this file system.voidvoidSet access time of a file.voidSet access time of a file.voidvoidvoidvoidSets thePath's last modified time and last access time to the given valid times.voidFileContext.setVerifyChecksum(boolean verifyChecksum, Path f) Set the verify checksum flag for the file system denoted by the path.voidFileContext.setWorkingDirectory(Path newWDir) Set the working directory for wd-relative names (such a "foo/bar").abstract voidFileSystem.setWorkingDirectory(Path new_dir) Set the current working directory for the given FileSystem.voidFilterFileSystem.setWorkingDirectory(Path newDir) Set the current working directory for the given file system.voidHarFileSystem.setWorkingDirectory(Path newDir) voidRawLocalFileSystem.setWorkingDirectory(Path newDir) Set the working directory to the given directory.voidSet an xattr of a file or directory.voidAbstractFileSystem.setXAttr(Path path, String name, byte[] value, EnumSet<XAttrSetFlag> flag) Set an xattr of a file or directory.voidSet an xattr of a file or directory.voidFileContext.setXAttr(Path path, String name, byte[] value, EnumSet<XAttrSetFlag> flag) Set an xattr of a file or directory.voidSet an xattr of a file or directory.voidFileSystem.setXAttr(Path path, String name, byte[] value, EnumSet<XAttrSetFlag> flag) Set an xattr of a file or directory.voidvoidFilterFileSystem.setXAttr(Path path, String name, byte[] value, EnumSet<XAttrSetFlag> flag) voidvoidFilterFs.setXAttr(Path path, String name, byte[] value, EnumSet<XAttrSetFlag> flag) ChecksumFileSystem.startLocalOutput(Path fsOutputFile, Path tmpLocalFile) FileSystem.startLocalOutput(Path fsOutputFile, Path tmpLocalFile) Returns a local file that the user can write output to.FilterFileSystem.startLocalOutput(Path fsOutputFile, Path tmpLocalFile) Returns a local File that the user can write output to.HarFileSystem.startLocalOutput(Path fsOutputFile, Path tmpLocalFile) not implemented.RawLocalFileSystem.startLocalOutput(Path fsOutputFile, Path tmpLocalFile) MultipartUploader.startUpload(Path filePath) Initialize a multipart upload.static Path[]FileUtil.stat2Paths(FileStatus[] stats, Path path) convert an array of FileStatus to an array of Path.booleanThe specification of this method matches that ofFileContext.truncate(Path, long)except that Path f must be for this file system.booleanbooleanbooleanbooleanTruncate the file in the indicated path to the indicated size.booleanTruncate the file in the indicated path to the indicated size.booleanbooleanbooleanNot implemented.booleanvoidAbstractFileSystem.unsetStoragePolicy(Path src) Unset the storage policy set for a given file or directory.voidFileContext.unsetStoragePolicy(Path src) Unset the storage policy set for a given file or directory.voidFileSystem.unsetStoragePolicy(Path src) Unset the storage policy set for a given file or directory.voidFilterFileSystem.unsetStoragePolicy(Path src) voidFilterFs.unsetStoragePolicy(Path src) static voidBulkDeleteUtils.validateBulkDeletePaths(Collection<Path> paths, int pageSize, Path basePath) Preconditions for bulk delete paths.static booleanBulkDeleteUtils.validatePathIsUnderParent(Path p, Path basePath) Check if a given path is the base path or under the base path.Globber.GlobBuilder.withPathPattern(Path pattern) Set the path pattern.static FileContextFileUtil.write(FileContext fileContext, Path path, byte[] bytes) Writes bytes to a file.static FileContextFileUtil.write(FileContext fileContext, Path path, CharSequence charseq) Write a line of text to a file.static FileContextFileUtil.write(FileContext fs, Path path, CharSequence charseq, Charset cs) Write a line of text to a file.static FileContextFileUtil.write(FileContext fileContext, Path path, Iterable<? extends CharSequence> lines, Charset cs) Write lines of text to a file.static FileSystemFileUtil.write(FileSystem fs, Path path, byte[] bytes) Writes bytes to a file.static FileSystemFileUtil.write(FileSystem fs, Path path, CharSequence charseq) Write a line of text to a file.static FileSystemFileUtil.write(FileSystem fs, Path path, CharSequence charseq, Charset cs) Write a line of text to a file.static FileSystemFileUtil.write(FileSystem fs, Path path, Iterable<? extends CharSequence> lines, Charset cs) Write lines of text to a file.Method parameters in org.apache.hadoop.fs with type arguments of type PathModifier and TypeMethodDescriptionBatchListingOperations.batchedListLocatedStatusIterator(List<Path> paths) Batched listing API that returnsPartialListings for the passed Paths.BatchListingOperations.batchedListStatusIterator(List<Path> paths) Batched listing API that returnsPartialListings for the passed Paths.BulkDelete.bulkDelete(Collection<Path> paths) Delete a list of files/objects.static voidBulkDeleteUtils.validateBulkDeletePaths(Collection<Path> paths, int pageSize, Path basePath) Preconditions for bulk delete paths.Constructors in org.apache.hadoop.fs with parameters of type PathModifierConstructorDescriptionAvroFSInput(FileContext fc, Path p) Construct given aFileContextand aPath.FileStatus(long length, boolean isdir, int block_replication, long blocksize, long modification_time, long access_time, FsPermission permission, String owner, String group, Path path) Constructor for file systems on which symbolic links are not supportedFileStatus(long length, boolean isdir, int block_replication, long blocksize, long modification_time, long access_time, FsPermission permission, String owner, String group, Path symlink, Path path) FileStatus(long length, boolean isdir, int block_replication, long blocksize, long modification_time, long access_time, FsPermission permission, String owner, String group, Path symlink, Path path, boolean hasAcl, boolean isEncrypted, boolean isErasureCoded) FileStatus(long length, boolean isdir, int block_replication, long blocksize, long modification_time, long access_time, FsPermission permission, String owner, String group, Path symlink, Path path, Set<FileStatus.AttrFlags> attr) FileStatus(long length, boolean isdir, int block_replication, long blocksize, long modification_time, Path path) protectedFSDataOutputStreamBuilder(FileSystem fileSystem, Path p) Constructor.protectedFSInputChecker(Path file, int numOfRetries) ConstructorprotectedFSInputChecker(Path file, int numOfRetries, boolean verifyChecksum, Checksum sum, int chunkSize, int checksumSize) ConstructorLocatedFileStatus(long length, boolean isdir, int block_replication, long blocksize, long modification_time, long access_time, FsPermission permission, String owner, String group, Path symlink, Path path, boolean hasAcl, boolean isEncrypted, boolean isErasureCoded, BlockLocation[] locations) Constructor.LocatedFileStatus(long length, boolean isdir, int block_replication, long blocksize, long modification_time, long access_time, FsPermission permission, String owner, String group, Path symlink, Path path, Set<FileStatus.AttrFlags> attr, BlockLocation[] locations) Constructor.LocatedFileStatus(long length, boolean isdir, int block_replication, long blocksize, long modification_time, long access_time, FsPermission permission, String owner, String group, Path symlink, Path path, BlockLocation[] locations) Deprecated.PartialListing(Path listedPath, List<T> partialListing) PartialListing(Path listedPath, RemoteException exception) Create a new Path based on the child path resolved against the parent path.Create a new Path based on the child path resolved against the parent path.Create a new Path based on the child path resolved against the parent path.Stat(Path path, long blockSize, boolean deref, FileSystem fs) -
Uses of Path in org.apache.hadoop.fs.ftp
Methods in org.apache.hadoop.fs.ftp that return PathModifier and TypeMethodDescriptionFTPFileSystem.getHomeDirectory()FTPFileSystem.getWorkingDirectory()Methods in org.apache.hadoop.fs.ftp with parameters of type PathModifier and TypeMethodDescriptionFTPFileSystem.append(Path f, int bufferSize, Progressable progress) This optional operation is not yet supported.FTPFileSystem.create(Path file, FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) A stream obtained via this call must be closed before using other APIs of this class or else the invocation will block.booleanFTPFileSystem.getFileStatus(Path file) FtpFs.getServerDefaults(Path f) FTPFileSystem.listStatus(Path file) booleanFTPFileSystem.mkdirs(Path file, FsPermission permission) booleanvoidFTPFileSystem.setWorkingDirectory(Path newDir) -
Uses of Path in org.apache.hadoop.fs.impl
Methods in org.apache.hadoop.fs.impl that return PathModifier and TypeMethodDescriptionDefaultBulkDeleteOperation.basePath()protected PathAbstractMultipartUploader.getBasePath()AbstractFSBuilderImpl.getPath()Get the path: only valid if constructed with a path.Methods in org.apache.hadoop.fs.impl that return types with arguments of type PathModifier and TypeMethodDescriptionDefaultBulkDeleteOperation.bulkDelete(Collection<Path> paths) Delete a list of files/objects.AbstractFSBuilderImpl.getOptionalPath()Get the optional path; may be empty.Methods in org.apache.hadoop.fs.impl with parameters of type PathModifier and TypeMethodDescriptionFileSystemMultipartUploader.abort(UploadHandle uploadId, Path filePath) AbstractMultipartUploader.abortUploadsUnderPath(Path path) Best effort attempt to aborts multipart uploads under a path.FsLinkResolution.FsLinkResolutionFunction.apply(AbstractFileSystem fs, Path path) protected voidValidate a path.protected voidAbstractMultipartUploader.checkPutArguments(Path filePath, InputStream inputStream, int partNumber, UploadHandle uploadId, long lengthInBytes) Check all the arguments to theMultipartUploader.putPart(UploadHandle, int, boolean, Path, InputStream, long)operation.FileSystemMultipartUploader.complete(UploadHandle uploadId, Path filePath, Map<Integer, PartHandle> handleMap) FsLinkResolution.next(AbstractFileSystem fs, Path p) FileSystemMultipartUploader.putPart(UploadHandle uploadId, int partNumber, boolean isLastPart, Path filePath, InputStream inputStream, long lengthInBytes) static <T> TFsLinkResolution.resolve(FileContext fileContext, Path path, FsLinkResolution.FsLinkResolutionFunction<T> fn) Apply the given function to the resolved path under the the supplied FileContext.FileSystemMultipartUploader.startUpload(Path filePath) static StringPathCapabilitiesSupport.validatePathCapabilityArgs(Path path, String capability) Validate the arguments toPathCapabilities.hasPathCapability(Path, String).Method parameters in org.apache.hadoop.fs.impl with type arguments of type PathModifier and TypeMethodDescriptionDefaultBulkDeleteOperation.bulkDelete(Collection<Path> paths) Delete a list of files/objects.Constructors in org.apache.hadoop.fs.impl with parameters of type PathModifierConstructorDescriptionprotectedAbstractFSBuilderImpl(Path path) protectedAbstractMultipartUploader(Path basePath) Instantiate.DefaultBulkDeleteOperation(Path basePath, FileSystem fs) FileSystemMultipartUploaderBuilder(FileSystem fileSystem, Path path) protectedFutureDataInputStreamBuilderImpl(FileContext fc, Path path) Construct from aFileContext.protectedFutureDataInputStreamBuilderImpl(FileSystem fileSystem, Path path) Constructor.protectedConstruct from aFileContext.protectedMultipartUploaderBuilderImpl(FileSystem fileSystem, Path p) Constructor.Constructor parameters in org.apache.hadoop.fs.impl with type arguments of type PathModifierConstructorDescriptionprotectedAbstractFSBuilderImpl(Optional<Path> optionalPath, Optional<PathHandle> optionalPathHandle) Constructor with both optional path and path handle. -
Uses of Path in org.apache.hadoop.fs.local
Methods in org.apache.hadoop.fs.local with parameters of type Path -
Uses of Path in org.apache.hadoop.fs.sftp
Methods in org.apache.hadoop.fs.sftp that return PathModifier and TypeMethodDescriptionSFTPFileSystem.getHomeDirectory()SFTPFileSystem.getWorkingDirectory()Methods in org.apache.hadoop.fs.sftp with parameters of type PathModifier and TypeMethodDescriptionSFTPFileSystem.append(Path f, int bufferSize, Progressable progress) SFTPFileSystem.create(Path f, FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) A stream obtained via this call must be closed before using other APIs of this class or else the invocation will block.booleanSFTPFileSystem.getFileStatus(Path f) SFTPFileSystem.listStatus(Path f) booleanSFTPFileSystem.mkdirs(Path f, FsPermission permission) booleanvoidSFTPFileSystem.setWorkingDirectory(Path newDir) -
Uses of Path in org.apache.hadoop.fs.shell
Fields in org.apache.hadoop.fs.shell declared as PathMethods in org.apache.hadoop.fs.shell with parameters of type Path -
Uses of Path in org.apache.hadoop.fs.shell.find
Methods in org.apache.hadoop.fs.shell.find that return Path -
Uses of Path in org.apache.hadoop.fs.viewfs
Methods in org.apache.hadoop.fs.viewfs that return PathModifier and TypeMethodDescriptionViewFileSystem.createSnapshot(Path path, String snapshotName) ViewFs.createSnapshot(Path path, String snapshotName) ViewFileSystem.getEnclosingRoot(Path path) ViewFileSystem.getHomeDirectory()ViewFs.getHomeDirectory()ViewFileSystem.getLinkTarget(Path path) ViewFs.getLinkTarget(Path f) ViewFileSystem.MountPoint.getMountedOnPath()ViewFileSystemOverloadScheme.MountPathInfo.getPathOnTarget()InodeTree.INodeLink.getTargetLink()Get the target of the link.ViewFileSystem.getTrashRoot(Path path) Get the trash root directory for current user when the path specified is deleted.ViewFileSystem.getWorkingDirectory()ViewFileSystem.resolvePath(Path f) ViewFs.resolvePath(Path f) Methods in org.apache.hadoop.fs.viewfs with parameters of type PathModifier and TypeMethodDescriptionvoidvoidViewFileSystem.append(Path f, int bufferSize, Progressable progress) protected InodeTree.ResolveResult<T>InodeTree.buildResolveResultForRegexMountPoint(org.apache.hadoop.fs.viewfs.InodeTree.ResultKind resultKind, String resolvedPathStr, String targetOfResolvedPathStr, Path remainingPath) Build resolve result.ViewFileSystem.create(Path f, FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) ViewFs.createInternal(Path f, EnumSet<CreateFlag> flag, FsPermission absolutePermission, int bufferSize, short replication, long blockSize, Progressable progress, Options.ChecksumOpt checksumOpt, boolean createParent) ViewFileSystem.createNonRecursive(Path f, FsPermission permission, EnumSet<CreateFlag> flags, int bufferSize, short replication, long blockSize, Progressable progress) ViewFileSystem.createSnapshot(Path path, String snapshotName) ViewFs.createSnapshot(Path path, String snapshotName) voidViewFs.createSymlink(Path target, Path link, boolean createParent) booleanbooleanbooleanvoidViewFileSystem.deleteSnapshot(Path path, String snapshotName) voidViewFs.deleteSnapshot(Path path, String snapshotName) ViewFileSystem.getAclStatus(Path path) ViewFs.getAclStatus(Path path) ViewFileSystem.getContentSummary(Path f) longViewFileSystem.getDefaultBlockSize(Path f) shortViewFileSystem.getDefaultReplication(Path f) ViewFileSystem.getEnclosingRoot(Path path) ViewFs.getFileBlockLocations(Path f, long start, long len) ViewFileSystem.getFileChecksum(Path f) ViewFileSystem.getFileChecksum(Path f, long length) ViewFs.getFileChecksum(Path f) ViewFs.getFileLinkStatus(Path f) ViewFileSystem.getFileStatus(Path f) Return a file status object that represents the path.ViewFs.getFileStatus(Path f) The specification of this method matches that ofFileContext.getFileStatus(Path)except that an UnresolvedLinkException may be thrown if a symlink is encountered in the path.ViewFileSystem.getLinkTarget(Path path) ViewFs.getLinkTarget(Path f) ViewFileSystemOverloadScheme.getMountPathInfo(Path path, Configuration conf) Gets the mount path info, which contains the target file system and remaining path to pass to the target file system.ViewFileSystem.getQuotaUsage(Path f) ViewFileSystemOverloadScheme.getRawFileSystem(Path path, Configuration conf) This is an admin only API to give access to its child raw file system, if the path is link.ViewFileSystem.getServerDefaults(Path f) ViewFs.getServerDefaults(Path f) static Map<ViewFileSystem.MountPoint,FsStatus> ViewFileSystemUtil.getStatus(FileSystem fileSystem, Path path) Get FsStatus for all ViewFsMountPoints matching path for the given ViewFileSystem.ViewFileSystem.getStoragePolicy(Path src) ViewFs.getStoragePolicy(Path src) Retrieve the storage policy for a given file or directory.ViewFileSystem.getTrashRoot(Path path) Get the trash root directory for current user when the path specified is deleted.byte[]byte[]booleanViewFileSystem.hasPathCapability(Path path, String capability) Reject the concat operation; forward the rest to the viewed FS.ViewFileSystem.listLocatedStatus(Path f, PathFilter filter) ViewFs.listLocatedStatus(Path f) ViewFileSystem.listStatus(Path f) List the statuses of the files/directories in the given path if the path is a directory.ViewFs.listStatus(Path f) The specification of this method matches that ofFileContext.Util.listStatus(Path)except that Path f must be for this file system.ViewFs.listStatusIterator(Path f) ViewFileSystem.listXAttrs(Path path) ViewFs.listXAttrs(Path path) voidViewFs.mkdir(Path dir, FsPermission permission, boolean createParent) booleanbooleanViewFileSystem.mkdirs(Path dir, FsPermission permission) voidViewFileSystem.modifyAclEntries(Path path, List<AclEntry> aclSpec) voidViewFs.modifyAclEntries(Path path, List<AclEntry> aclSpec) voidvoidvoidViewFileSystem.removeAclEntries(Path path, List<AclEntry> aclSpec) voidViewFs.removeAclEntries(Path path, List<AclEntry> aclSpec) voidViewFileSystem.removeDefaultAcl(Path path) voidViewFs.removeDefaultAcl(Path path) voidViewFileSystem.removeXAttr(Path path, String name) voidViewFs.removeXAttr(Path path, String name) booleanvoidViewFs.renameInternal(Path src, Path dst) voidViewFs.renameInternal(Path src, Path dst, boolean overwrite) voidViewFileSystem.renameSnapshot(Path path, String snapshotOldName, String snapshotNewName) voidViewFs.renameSnapshot(Path path, String snapshotOldName, String snapshotNewName) ViewFileSystem.resolvePath(Path f) ViewFs.resolvePath(Path f) voidViewFileSystem.satisfyStoragePolicy(Path src) voidViewFs.satisfyStoragePolicy(Path path) voidvoidvoidvoidvoidViewFileSystem.setPermission(Path f, FsPermission permission) voidViewFs.setPermission(Path f, FsPermission permission) booleanViewFileSystem.setReplication(Path f, short replication) booleanViewFs.setReplication(Path f, short replication) voidViewFileSystem.setStoragePolicy(Path src, String policyName) voidViewFs.setStoragePolicy(Path path, String policyName) voidvoidvoidViewFileSystem.setWorkingDirectory(Path new_dir) voidViewFileSystem.setXAttr(Path path, String name, byte[] value, EnumSet<XAttrSetFlag> flag) voidViewFs.setXAttr(Path path, String name, byte[] value, EnumSet<XAttrSetFlag> flag) booleanbooleanvoidViewFileSystem.unsetStoragePolicy(Path src) voidViewFs.unsetStoragePolicy(Path src) Constructors in org.apache.hadoop.fs.viewfs with parameters of type PathModifierConstructorDescriptionMountPathInfo(Path pathOnTarget, T targetFs) NotInMountpointException(Path path, String operation) -
Uses of Path in org.apache.hadoop.io
Methods in org.apache.hadoop.io with parameters of type PathModifier and TypeMethodDescriptionSequenceFile.Sorter.cloneFileAttributes(Path inputFile, Path outputFile, Progressable prog) Clones the attributes (like compression of the input file and creates a corresponding Writerprotected SequenceFile.ReaderMapFile.Reader.createDataFileReader(Path dataFile, Configuration conf, SequenceFile.Reader.Option... options) Override this method to specialize the type ofSequenceFile.Readerreturned.static SequenceFile.WriterSequenceFile.createWriter(FileContext fc, Configuration conf, Path name, Class keyClass, Class valClass, SequenceFile.CompressionType compressionType, CompressionCodec codec, SequenceFile.Metadata metadata, EnumSet<CreateFlag> createFlag, Options.CreateOpts... opts) Construct the preferred type of SequenceFile Writer.static SequenceFile.WriterSequenceFile.createWriter(FileSystem fs, Configuration conf, Path name, Class keyClass, Class valClass) Deprecated.static SequenceFile.WriterSequenceFile.createWriter(FileSystem fs, Configuration conf, Path name, Class keyClass, Class valClass, int bufferSize, short replication, long blockSize, boolean createParent, SequenceFile.CompressionType compressionType, CompressionCodec codec, SequenceFile.Metadata metadata) Deprecated.static SequenceFile.WriterSequenceFile.createWriter(FileSystem fs, Configuration conf, Path name, Class keyClass, Class valClass, int bufferSize, short replication, long blockSize, SequenceFile.CompressionType compressionType, CompressionCodec codec, Progressable progress, SequenceFile.Metadata metadata) Deprecated.static SequenceFile.WriterSequenceFile.createWriter(FileSystem fs, Configuration conf, Path name, Class keyClass, Class valClass, SequenceFile.CompressionType compressionType) Deprecated.static SequenceFile.WriterSequenceFile.createWriter(FileSystem fs, Configuration conf, Path name, Class keyClass, Class valClass, SequenceFile.CompressionType compressionType, CompressionCodec codec) Deprecated.static SequenceFile.WriterSequenceFile.createWriter(FileSystem fs, Configuration conf, Path name, Class keyClass, Class valClass, SequenceFile.CompressionType compressionType, CompressionCodec codec, Progressable progress) Deprecated.static SequenceFile.WriterSequenceFile.createWriter(FileSystem fs, Configuration conf, Path name, Class keyClass, Class valClass, SequenceFile.CompressionType compressionType, CompressionCodec codec, Progressable progress, SequenceFile.Metadata metadata) Deprecated.static SequenceFile.WriterSequenceFile.createWriter(FileSystem fs, Configuration conf, Path name, Class keyClass, Class valClass, SequenceFile.CompressionType compressionType, Progressable progress) Deprecated.static SequenceFile.Reader.OptionCreate an option to specify the path name of the sequence file.static SequenceFile.Writer.Optionstatic longMapFile.fix(FileSystem fs, Path dir, Class<? extends Writable> keyClass, Class<? extends Writable> valueClass, boolean dryrun, Configuration conf) This method attempts to fix a corrupt MapFile by re-creating its index.voidMerge multiple MapFiles to one Mapfile.SequenceFile.Sorter.merge(List<SequenceFile.Sorter.SegmentDescriptor> segments, Path tmpDir) Merges the list of segments of typeSegmentDescriptorMerges the contents of files passed in Path[]Merges the contents of files passed in Path[] using a max factor value that is already setvoidMerge the provided files.Merges the contents of files passed in Path[]protected voidMapFile.Reader.open(Path dir, WritableComparator comparator, Configuration conf, SequenceFile.Reader.Option... options) protected FSDataInputStreamSequenceFile.Reader.openFile(FileSystem fs, Path file, int bufferSize, long length) Override this method to specialize the type ofFSDataInputStreamreturned.voidPerform a file sort from a set of input files into an output file.voidThe backwards compatible interface to sort.SequenceFile.Sorter.sortAndIterate(Path[] inFiles, Path tempDir, boolean deleteInput) Perform a file sort from a set of input files and return an iterator.Constructors in org.apache.hadoop.io with parameters of type PathModifierConstructorDescriptionReader(Path dir, Configuration conf, SequenceFile.Reader.Option... options) Reader(Path dir, Configuration conf, SequenceFile.Reader.Option... opts) Reader(FileSystem fs, Path file, Configuration conf) Deprecated.Use Reader(Configuration, Option...) instead.SegmentDescriptor(long segmentOffset, long segmentLength, Path segmentPathName) Constructs a segmentWriter(Configuration conf, Path dir, SequenceFile.Writer.Option... options) Writer(Configuration conf, Path dirName, SequenceFile.Writer.Option... opts) Writer(FileSystem fs, Configuration conf, Path name, Class keyClass, Class valClass) Deprecated.Writer(FileSystem fs, Configuration conf, Path name, Class keyClass, Class valClass, int bufferSize, short replication, long blockSize, Progressable progress, SequenceFile.Metadata metadata) Deprecated.Writer(FileSystem fs, Configuration conf, Path name, Class keyClass, Class valClass, Progressable progress, SequenceFile.Metadata metadata) Deprecated. -
Uses of Path in org.apache.hadoop.io.compress
Methods in org.apache.hadoop.io.compress with parameters of type PathModifier and TypeMethodDescriptionFind the relevant compression codec for the given file based on its filename suffix. -
Uses of Path in org.apache.hadoop.io.wrappedio
Methods in org.apache.hadoop.io.wrappedio that return PathModifier and TypeMethodDescriptionstatic PathWrappedIO.fileSystem_getEnclosingRoot(FileSystem fs, Path path) Return path of the enclosing root for a given path.Methods in org.apache.hadoop.io.wrappedio that return types with arguments of type PathModifier and TypeMethodDescriptionWrappedIO.bulkDelete_delete(FileSystem fs, Path base, Collection<Path> paths) Delete a list of files/objects.Methods in org.apache.hadoop.io.wrappedio with parameters of type PathModifier and TypeMethodDescriptionWrappedIO.bulkDelete_delete(FileSystem fs, Path base, Collection<Path> paths) Delete a list of files/objects.static intWrappedIO.bulkDelete_pageSize(FileSystem fs, Path path) Get the maximum number of objects/files to delete in a single request.static PathWrappedIO.fileSystem_getEnclosingRoot(FileSystem fs, Path path) Return path of the enclosing root for a given path.static FSDataInputStreamWrappedIO.fileSystem_openFile(FileSystem fs, Path path, String policy, FileStatus status, Long length, Map<String, String> options) OpenFile assistant, easy reflection-based access toFileSystem.openFile(Path)and blocks awaiting the operation completion.static SerializableWrappedStatistics.iostatisticsSnapshot_load(FileSystem fs, Path path) Load IOStatisticsSnapshot from a Hadoop filesystem.static voidWrappedStatistics.iostatisticsSnapshot_save(Serializable snapshot, FileSystem fs, Path path, boolean overwrite) Save IOStatisticsSnapshot to a Hadoop filesystem as a JSON file.static booleanWrappedIO.pathCapabilities_hasPathCapability(Object fs, Path path, String capability) Does a path have a given capability?Method parameters in org.apache.hadoop.io.wrappedio with type arguments of type PathModifier and TypeMethodDescriptionWrappedIO.bulkDelete_delete(FileSystem fs, Path base, Collection<Path> paths) Delete a list of files/objects. -
Uses of Path in org.apache.hadoop.io.wrappedio.impl
Methods in org.apache.hadoop.io.wrappedio.impl that return types with arguments of type PathModifier and TypeMethodDescriptionDynamicWrappedIO.bulkDelete_delete(FileSystem fs, Path base, Collection<Path> paths) Delete a list of files/objects.Methods in org.apache.hadoop.io.wrappedio.impl with parameters of type PathModifier and TypeMethodDescriptionDynamicWrappedIO.bulkDelete_delete(FileSystem fs, Path base, Collection<Path> paths) Delete a list of files/objects.intDynamicWrappedIO.bulkDelete_pageSize(FileSystem fileSystem, Path path) Get the maximum number of objects/files to delete in a single request.DynamicWrappedIO.fileSystem_openFile(FileSystem fs, Path path, String policy, FileStatus status, Long length, Map<String, String> options) OpenFile assistant, easy reflection-based access toFileSystem#openFile(Path)and blocks awaiting the operation completion.DynamicWrappedStatistics.iostatisticsSnapshot_load(FileSystem fs, Path path) Load IOStatisticsSnapshot from a Hadoop filesystem.voidDynamicWrappedStatistics.iostatisticsSnapshot_save(Serializable snapshot, FileSystem fs, Path path, boolean overwrite) Save IOStatisticsSnapshot to a Hadoop filesystem as a JSON file.booleanDynamicWrappedIO.pathCapabilities_hasPathCapability(Object fs, Path path, String capability) Does a path have a given capability?Method parameters in org.apache.hadoop.io.wrappedio.impl with type arguments of type PathModifier and TypeMethodDescriptionDynamicWrappedIO.bulkDelete_delete(FileSystem fs, Path base, Collection<Path> paths) Delete a list of files/objects. -
Uses of Path in org.apache.hadoop.metrics2.sink
Fields in org.apache.hadoop.metrics2.sink declared as Path -
Uses of Path in org.apache.hadoop.security
Methods in org.apache.hadoop.security that return PathModifier and TypeMethodDescriptionstatic PathConvert a nested URI to decode the underlying path.Methods in org.apache.hadoop.security with parameters of type PathModifier and TypeMethodDescriptionstatic CredentialsCredentials.readTokenStorageFile(Path filename, Configuration conf) Convenience method for reading a token storage file and loading its Tokens.voidCredentials.writeTokenStorageFile(Path filename, Configuration conf) voidCredentials.writeTokenStorageFile(Path filename, Configuration conf, Credentials.SerializedFormat format) -
Uses of Path in org.apache.hadoop.security.alias
Methods in org.apache.hadoop.security.alias that return PathMethods in org.apache.hadoop.security.alias with parameters of type Path -
Uses of Path in org.apache.hadoop.util
Methods in org.apache.hadoop.util that return PathModifier and TypeMethodDescriptionOptions.PathOption.getValue()static Path[]StringUtils.stringToPath(String[] str) stringToPath.Methods in org.apache.hadoop.util with parameters of type PathModifier and TypeMethodDescriptionstatic voidDiskChecker.checkDir(LocalFileSystem localFS, Path dir, FsPermission expected) Create the local directory if necessary, check permissions and also ensure it can be read from and written into.static voidDiskChecker.checkDirWithDiskIo(LocalFileSystem localFS, Path dir, FsPermission expected) Create the local directory if necessary, also ensure permissions allow it to be read from and written into.JsonSerialization.load(FileSystem fs, Path path) Load from a Hadoop filesystem.JsonSerialization.load(FileSystem fs, Path path, FileStatus status) Load from a Hadoop filesystem.voidJsonSerialization.save(FileSystem fs, Path path, T instance, boolean overwrite) Save to a Hadoop filesystem.Constructors in org.apache.hadoop.util with parameters of type Path
makeQualified(URI, Path)