| Package | Description |
|---|---|
| org.apache.hadoop.fs |
An abstract file system API.
|
| org.apache.hadoop.fs.impl |
This package contains implementation classes for use inside
filesystems.
|
| org.apache.hadoop.fs.viewfs |
ViewFileSystem and ViewFileSystemOverloadScheme classes.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
AbstractFileSystem.access(Path path,
FsAction mode) |
The specification of this method matches that of
FileContext.access(Path, FsAction)
except that an UnresolvedLinkException may be thrown if a symlink is
encountered in the path. |
void |
FilterFs.access(Path path,
FsAction mode) |
|
FSDataOutputStream |
AbstractFileSystem.create(Path f,
java.util.EnumSet<CreateFlag> createFlag,
Options.CreateOpts... opts) |
The specification of this method matches that of
FileContext.create(Path, EnumSet, Options.CreateOpts...) except
that the Path f must be fully qualified and the permission is absolute
(i.e. |
abstract FSDataOutputStream |
AbstractFileSystem.createInternal(Path f,
java.util.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 of
AbstractFileSystem.create(Path, EnumSet, Options.CreateOpts...) except that the opts
have been declared explicitly. |
FSDataOutputStream |
FilterFs.createInternal(Path f,
java.util.EnumSet<CreateFlag> flag,
FsPermission absolutePermission,
int bufferSize,
short replication,
long blockSize,
Progressable progress,
Options.ChecksumOpt checksumOpt,
boolean createParent) |
|
void |
AbstractFileSystem.createSymlink(Path target,
Path link,
boolean createParent) |
The specification of this method matches that of
FileContext.createSymlink(Path, Path, boolean); |
void |
FilterFs.createSymlink(Path target,
Path link,
boolean createParent) |
|
abstract boolean |
AbstractFileSystem.delete(Path f,
boolean recursive) |
The specification of this method matches that of
FileContext.delete(Path, boolean) except that Path f must be for
this file system. |
boolean |
ChecksumFs.delete(Path f,
boolean recursive) |
Implement the delete(Path, boolean) in checksum
file system.
|
boolean |
FilterFs.delete(Path f,
boolean recursive) |
|
abstract T |
FileSystemLinkResolver.doCall(Path p) |
FileSystem subclass-specific implementation of superclass method.
|
abstract BlockLocation[] |
AbstractFileSystem.getFileBlockLocations(Path f,
long start,
long len) |
The specification of this method matches that of
FileContext.getFileBlockLocations(Path, long, long) except that
Path f must be for this file system. |
BlockLocation[] |
FilterFs.getFileBlockLocations(Path f,
long start,
long len) |
|
abstract FileChecksum |
AbstractFileSystem.getFileChecksum(Path f) |
The specification of this method matches that of
FileContext.getFileChecksum(Path) except that Path f must be for
this file system. |
FileChecksum |
FilterFs.getFileChecksum(Path f) |
|
FileStatus |
FilterFs.getFileLinkStatus(Path f) |
|
abstract FileStatus |
AbstractFileSystem.getFileStatus(Path f) |
The specification of this method matches that of
FileContext.getFileStatus(Path)
except that an UnresolvedLinkException may be thrown if a symlink is
encountered in the path. |
FileStatus |
FilterFs.getFileStatus(Path f) |
|
FsStatus |
AbstractFileSystem.getFsStatus(Path f) |
The specification of this method matches that of
FileContext.getFsStatus(Path) except that Path f must be for this
file system. |
FsStatus |
FilterFs.getFsStatus(Path f) |
|
RemoteIterator<LocatedFileStatus> |
AbstractFileSystem.listLocatedStatus(Path f) |
The specification of this method matches that of
FileContext.listLocatedStatus(Path) except that Path f
must be for this file system. |
RemoteIterator<LocatedFileStatus> |
ChecksumFs.listLocatedStatus(Path f) |
|
RemoteIterator<LocatedFileStatus> |
FilterFs.listLocatedStatus(Path f) |
|
abstract FileStatus[] |
AbstractFileSystem.listStatus(Path f) |
The specification of this method matches that of
FileContext.Util.listStatus(Path) except that Path f must be
for this file system. |
FileStatus[] |
ChecksumFs.listStatus(Path f) |
|
FileStatus[] |
FilterFs.listStatus(Path f) |
|
RemoteIterator<FileStatus> |
AbstractFileSystem.listStatusIterator(Path f) |
The specification of this method matches that of
FileContext.listStatus(Path) except that Path f must be for this
file system. |
abstract void |
AbstractFileSystem.mkdir(Path dir,
FsPermission permission,
boolean createParent) |
The specification of this method matches that of
FileContext.mkdir(Path, FsPermission, boolean) except that the Path
f must be fully qualified and the permission is absolute (i.e. |
void |
FilterFs.mkdir(Path dir,
FsPermission permission,
boolean createParent) |
|
abstract T |
FSLinkResolver.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.
|
FSDataInputStream |
AbstractFileSystem.open(Path f) |
The specification of this method matches that of
FileContext.open(Path) except that Path f must be for this
file system. |
abstract FSDataInputStream |
AbstractFileSystem.open(Path f,
int bufferSize) |
The specification of this method matches that of
FileContext.open(Path, int) except that Path f must be for this
file system. |
FSDataInputStream |
ChecksumFs.open(Path f,
int bufferSize) |
Opens an FSDataInputStream at the indicated Path.
|
FSDataInputStream |
FilterFs.open(Path f) |
|
FSDataInputStream |
FilterFs.open(Path f,
int bufferSize) |
|
void |
AbstractFileSystem.rename(Path src,
Path dst,
Options.Rename... options) |
The specification of this method matches that of
FileContext.rename(Path, Path, Options.Rename...) except that Path
f must be for this file system. |
abstract void |
AbstractFileSystem.renameInternal(Path src,
Path dst) |
The specification of this method matches that of
FileContext.rename(Path, Path, Options.Rename...) except that Path
f must be for this file system and NO OVERWRITE is performed. |
void |
AbstractFileSystem.renameInternal(Path src,
Path dst,
boolean overwrite) |
The specification of this method matches that of
FileContext.rename(Path, Path, Options.Rename...) except that Path
f must be for this file system. |
void |
ChecksumFs.renameInternal(Path src,
Path dst) |
Rename files/dirs.
|
void |
ChecksumFs.renameInternal(Path src,
Path dst,
boolean overwrite) |
|
void |
FilterFs.renameInternal(Path src,
Path dst) |
|
void |
FilterFs.renameInternal(Path src,
Path dst,
boolean overwrite) |
|
protected Path |
FileContext.resolve(Path f) |
Resolves all symbolic links in the specified path.
|
Path |
AbstractFileSystem.resolvePath(Path p) |
Return the fully-qualified path of path f resolving the path
through any internal symlinks or mount point
|
Path |
FileContext.resolvePath(Path f) |
Resolve the path following any symlinks or mount points
|
Path |
FilterFs.resolvePath(Path p) |
|
abstract void |
AbstractFileSystem.setOwner(Path f,
java.lang.String username,
java.lang.String groupname) |
The specification of this method matches that of
FileContext.setOwner(Path, String, String) except that Path f must
be for this file system. |
void |
FilterFs.setOwner(Path f,
java.lang.String username,
java.lang.String groupname) |
|
abstract void |
AbstractFileSystem.setPermission(Path f,
FsPermission permission) |
The specification of this method matches that of
FileContext.setPermission(Path, FsPermission) except that Path f
must be for this file system. |
void |
FilterFs.setPermission(Path f,
FsPermission permission) |
|
abstract boolean |
AbstractFileSystem.setReplication(Path f,
short replication) |
The specification of this method matches that of
FileContext.setReplication(Path, short) except that Path f must be
for this file system. |
boolean |
ChecksumFs.setReplication(Path src,
short replication) |
Set replication for an existing file.
|
boolean |
FilterFs.setReplication(Path f,
short replication) |
|
abstract void |
AbstractFileSystem.setTimes(Path f,
long mtime,
long atime) |
The specification of this method matches that of
FileContext.setTimes(Path, long, long) except that Path f must be
for this file system. |
void |
FilterFs.setTimes(Path f,
long mtime,
long atime) |
|
void |
FilterFs.setVerifyChecksum(boolean verifyChecksum) |
|
boolean |
AbstractFileSystem.truncate(Path f,
long newLength) |
The specification of this method matches that of
FileContext.truncate(Path, long) except that Path f must be for
this file system. |
boolean |
FilterFs.truncate(Path f,
long newLength) |
| Modifier and Type | Method | Description |
|---|---|---|
T |
FsLinkResolution.FsLinkResolutionFunction.apply(AbstractFileSystem fs,
Path path) |
|
T |
FsLinkResolution.next(AbstractFileSystem fs,
Path p) |
|
static <T> T |
FsLinkResolution.resolve(FileContext fileContext,
Path path,
FsLinkResolution.FsLinkResolutionFunction<T> fn) |
Apply the given function to the resolved path under the the supplied
FileContext.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
ViewFs.access(Path path,
FsAction mode) |
|
FSDataOutputStream |
ViewFs.createInternal(Path f,
java.util.EnumSet<CreateFlag> flag,
FsPermission absolutePermission,
int bufferSize,
short replication,
long blockSize,
Progressable progress,
Options.ChecksumOpt checksumOpt,
boolean createParent) |
|
void |
ViewFs.createSymlink(Path target,
Path link,
boolean createParent) |
|
boolean |
ViewFs.delete(Path f,
boolean recursive) |
|
BlockLocation[] |
ViewFs.getFileBlockLocations(Path f,
long start,
long len) |
|
FileChecksum |
ViewFs.getFileChecksum(Path f) |
|
FileStatus |
ViewFs.getFileStatus(Path f) |
The specification of this method matches that of
FileContext.getFileStatus(Path)
except that an UnresolvedLinkException may be thrown if a symlink is
encountered in the path. |
RemoteIterator<LocatedFileStatus> |
ViewFs.listLocatedStatus(Path f) |
|
FileStatus[] |
ViewFs.listStatus(Path f) |
The specification of this method matches that of
FileContext.Util.listStatus(Path) except that Path f must be
for this file system. |
RemoteIterator<FileStatus> |
ViewFs.listStatusIterator(Path f) |
|
void |
ViewFs.mkdir(Path dir,
FsPermission permission,
boolean createParent) |
|
FSDataInputStream |
ViewFs.open(Path f,
int bufferSize) |
|
void |
ViewFs.renameInternal(Path src,
Path dst) |
|
void |
ViewFs.renameInternal(Path src,
Path dst,
boolean overwrite) |
|
Path |
ViewFs.resolvePath(Path f) |
|
void |
ViewFs.setOwner(Path f,
java.lang.String username,
java.lang.String groupname) |
|
void |
ViewFs.setPermission(Path f,
FsPermission permission) |
|
boolean |
ViewFs.setReplication(Path f,
short replication) |
|
void |
ViewFs.setTimes(Path f,
long mtime,
long atime) |
|
boolean |
ViewFs.truncate(Path f,
long newLength) |
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.