Package org.apache.hadoop.fs
package org.apache.hadoop.fs
An abstract file system API.
-
ClassDescriptionAbort data being written to a stream, so that close() does not write the data.Interface for the result of aborts; allows subclasses to extend (IOStatistics etc) or for future enhancements if ever needed.This class provides an interface for implementors of a Hadoop file system (analogous to the VFS of Unix).Adapts an
FSDataInputStreamto Avro's SeekableInput interface.A RemoteIterator that fetches elements in batches.Interface filesystems MAY implement to offer a batched list.Byte array backed part handle.Byte array backed upload handle.Represents the network location of a block, information about the hosts that contain block replicas, and other block metadata (E.g. the file offset associated with the block, length, whether it is corrupt, etc).A storage policy specifies the placement of block replicas on specific storage types.A class that optimizes reading from FSInputStream by buffering.API for bulk deletion of objects/files, but not directories.Interface for bulk deletion.Utility class for bulk delete operations.Implementers of this interface provide a positioned read API that writes to aByteBufferrather than abyte[].Implementers of this interface provide a read API that writes to a ByteBuffer, not a byte[].Interface for class that can tell estimate much space is used in a directory.FSDataInputStreams implement this interface to indicate that they can clear their buffers on request.Thrown for checksum errors.Abstract Checksumed FileSystem.Abstract Checksumed Fs.Exception to denote if the underlying stream, cache or other closable resource is closed.Exception raised by HDFS indicating that storage capacity in the cluster filesystem is exceeded.This class contains constants for configuration keys used in the common code.This class contains constants for configuration keys used in the common code.Common path capabilities.Composite CRC.Store the summary of a content (a directory or a file).We don't use generics.CreateFlag specifies the file create semantic.Implementation of AbstractFileSystem based on the existing implementation ofFileSystem.A daemon thread that waits for the next file system to renew.The renewable interface used by the renewer.An action that will renew and replace the file system's delegation tokens automatically.Filesystem disk space usage statistics.Fast but inaccurate class to tell how much space HDFS is using.Thrown when the startAfter can't be found when listing a directory.Filesystem disk space usage statistics.An optional interface forFileStatussubclasses to implement to provide access to etags.Used when target file already exists for any operation and is not configured to be overwritten.An abstract class representing file checksums for files.The FileContext class provides an interface for users of the Hadoop file system.FileEncryptionInfo encapsulates all the encryption-related information for an encrypted file.A byte range of a file.Interface that represents the client side information for a file.Flags for entity attributes.An abstract base class for a fairly generic filesystem.Represents a batch of directory entries when iteratively listing a directory.Tracks statistics about how many reads, writes, and so forth have been done in a FileSystem.Statistics data.FileSystem-specific class used to operate on and resolve symlinks in a path.A basic StorageStatistics instance which simply returns data from FileSystem#Statistics.A collection of file-processing util methodsDeprecated.AFilterFileSystemcontains some other file system, which it uses as its basic file system, possibly transforming the data along the way or providing additional functionality.AFilterFscontains some other file system, which it uses as its basic file system, possibly transforming the data along the way or providing additional functionality.The base interface which various FileSystem FileContext Builder interfaces can extend, and which underlying implementations will then implement.FileSystem related constants.Utility that wraps aFSInputStreamin aDataInputStreamand buffers input through aBufferedInputStream.Utility that wraps aOutputStreamin aDataOutputStream.Builder forFSDataOutputStreamand its subclasses.Thrown for unexpected filesystem errors, presumed to reflect disk errors in the native filesystem.Standard strings to use in exception messages in filesystems HDFS is used as the reference source of the stringsThis is a generic input stream for verifying checksums for data before it is read by a user.FSInputStream is a generic old InputStream with a little bit of RAF-style seek ability.Used primarily byFileContextto operate on and resolve symlinks in a path.This is a generic output stream for generating checksums for data before it is written to the underlying streamProvides server default configuration values to clients.Provide command line access to a FileSystem.This class is the home for file permissions related commands.Used to change group of filesThe pattern is almost as flexible as mode allowed by chmod shell command.Used to change owner and/or group of filesThis class is used to represent the capacity, free and used space on aFileSystem.Holds the HTrace Tracer used for FileSystem operations.Factory for URL stream handlers.Builder for input streams and subclasses whose return value is actually a completable future: this allows for better asynchronous operation.The builder classStores global storage statistics objects.A callback API for creating new StorageStatistics instances.Implementation ofFileSystem.globStatus(Path, PathFilter).Builder for Globber instances.A filter for POSIX glob pattern with brace expansions.A class for POSIX glob pattern with brace expansions.Class for creating hardlinks.HardLink statistics counters and methods.This is an implementation of the Hadoop Archive Filesystem.FSDataInputStreams implement this interface to provide enhanced byte buffer access.Having a FileDescriptorThis method allows access to Package-scoped operations from classes in org.apache.hadoop.fs.impl and other file system implementations in the hadoop modules.Path string is invalid either because it has invalid characters or due to other file system specific reasons.Thrown when the constraints enoded in aPathHandledo not hold.Thrown when the user makes a malformed request, for example missing required parameters or parameters that are not valid.Whether the given Path of the FileSystem has the capability to perform lease recovery.An implementation of a round-robin scheme for disk allocation for creating files.Implement the FileSystem API for the checksumed local filesystem.This class contains constants for configuration keys used in the local file system, raw local fs and checksum fs.Opaque handle to an entity in a FileSystem.This class defines a FileStatus that includes a file's block locations.For CRC32 with the Castagnoli polynomialMD5 of MD5 of CRC32.For CRC32 with the Gzip polynomialMultipartUploader is an interface for copying files multipart and across multiple nodes.Builder interface for Multipart readers.This class contains options related to file system operations.Enum for indicating what mode to use when combining chunk and block checksums to define an aggregate FileChecksum.This is used in FileSystem and FileContext to specify checksum options.The standardcreateFile()options.Class to support the varargs for create() options.This is not needed if ChecksumParam is specified.Options for creatingPathHandlereferences.Option storing standard constraints on data.Option storing standard constraints on location.The standardopenFile()options.Enum to support the varargs for rename() optionsIndicates that the parent of specified Path is not a directory as expected.Opaque, serializable reference to a part id for multipart uploads.PartialListing<T extends FileStatus>A partial listing of the children of a parent directory.Names a file or directory in aFileSystem.EACCESThe Path counterpoint toStreamCapabilities; a query to see if, a FileSystem/FileContext instance has a specific capability under the given path.Exception corresponding to File Exists - EEXISTSOpaque, serializable reference to an entity in the FileSystem.Exceptions based on standard posix/linux style exceptions for path related errors.EISDIRENOTDIRGenerated by rm commandsException corresponding to path not found: ENOENT/ENOFILEENOTSUPException corresponding to Operation Not Permitted - EPERMStream that permits positional reading.Store the quota usage of a directory.Builder class for QuotaUsage.Implement the FileSystem API for the raw local filesystem.Generic format of FileStatus objects.Options that can be used when reading from a FileSystem.An iterator over a collection whose elements need to be fetched remotelyWhether the given filesystem is in any status of safe mode.An identical copy from org.apache.hadoop.hdfs.protocol.HdfsConstants.SafeModeAction, that helps the other file system implementation to defineSafeMode.Stream that permits seeking.Wrapper for the Unix stat(1) command.StorageStatistics contains statistics data for a FileSystem or FileContext instance.These are common statistic names.A 64-bit storage statistic.Defines the types of supported storage media.Interface to query streams for supported capabilities.Deprecated.Static methods to implement policies forStreamCapabilities.This is the interface for flush/sync operations.Provides a trash facility which supports pluggable Trash policies.This interface is used for implementing different Trash policies.Provides a trash feature.A StorageStatistics instance which combines the outputs of several other StorageStatistics instances.Thrown when a symbolic link is encountered in a path.File system for a given file system name/scheme is not supportedMultipartUploader for a given file system name/scheme is not supported.Opaque, serializable reference to an uploadId for multipart uploads.Utility class which implements helper methods used in vectored IO implementation.Class to tell the size of a path on windows.Filesystems that support EC can implement this interface.The value ofXAttris byte[], this class is to covert byte[] to some kind of string representation or convert back.
HardLink