Package | Description |
---|---|
org.apache.hadoop.filecache | |
org.apache.hadoop.fs |
An abstract file system API.
|
org.apache.hadoop.fs.ftp | |
org.apache.hadoop.fs.http.client | |
org.apache.hadoop.fs.local | |
org.apache.hadoop.fs.permission | |
org.apache.hadoop.fs.s3 |
A distributed, block-based implementation of
FileSystem that uses Amazon S3
as a backing store. |
org.apache.hadoop.fs.s3native |
A distributed implementation of
FileSystem for reading and writing files on
Amazon S3. |
org.apache.hadoop.fs.shell | |
org.apache.hadoop.fs.viewfs | |
org.apache.hadoop.hdfs |
A distributed implementation of
FileSystem . |
org.apache.hadoop.hdfs.protocol | |
org.apache.hadoop.hdfs.server.namenode | |
org.apache.hadoop.hdfs.web | |
org.apache.hadoop.mapred | |
org.apache.hadoop.mapred.lib | |
org.apache.hadoop.mapreduce.filecache | |
org.apache.hadoop.mapreduce.lib.input | |
org.apache.hadoop.mapreduce.v2.jobhistory | |
org.apache.hadoop.tools.mapred | |
org.apache.hadoop.tools.util |
Modifier and Type | Method and Description |
---|---|
static FileStatus |
DistributedCache.getFileStatus(Configuration conf,
URI cache)
Deprecated.
|
Modifier and Type | Class and Description |
---|---|
class |
LocatedFileStatus
This class defines a FileStatus that includes a file's block locations.
|
Modifier and Type | Method and Description |
---|---|
FileStatus |
Hdfs.getFileLinkStatus(Path f) |
FileStatus |
FilterFileSystem.getFileLinkStatus(Path f) |
FileStatus |
AbstractFileSystem.getFileLinkStatus(Path f)
The specification of this method matches that of
FileContext.getFileLinkStatus(Path)
except that an UnresolvedLinkException may be thrown if a symlink is
encountered in the path leading up to the final path component. |
FileStatus |
FilterFs.getFileLinkStatus(Path f) |
FileStatus |
FileContext.getFileLinkStatus(Path f)
Return a file status object that represents the path.
|
FileStatus |
FileSystem.getFileLinkStatus(Path f)
|
FileStatus |
DelegateToFileSystem.getFileLinkStatus(Path f) |
FileStatus |
Hdfs.getFileStatus(Path f) |
FileStatus |
FilterFileSystem.getFileStatus(Path f)
Get file status.
|
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) |
FileStatus |
FileContext.getFileStatus(Path f)
Return a file status object that represents the path.
|
FileStatus |
RawLocalFileSystem.getFileStatus(Path f) |
abstract FileStatus |
FileSystem.getFileStatus(Path f)
Return a file status object that represents the path.
|
FileStatus |
HarFileSystem.getFileStatus(Path f)
return the filestatus of files in har archive.
|
FileStatus |
DelegateToFileSystem.getFileStatus(Path f) |
FileStatus[] |
FileContext.Util.globStatus(Path pathPattern)
Return all the files that match filePattern and are not checksum
files.
|
FileStatus[] |
FileSystem.globStatus(Path pathPattern)
Return all the files that match filePattern and are not checksum
files.
|
FileStatus[] |
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.
|
FileStatus[] |
FileSystem.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.
|
FileStatus[] |
Hdfs.listStatus(Path f) |
FileStatus[] |
FilterFileSystem.listStatus(Path f)
List files in a directory.
|
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[] |
FilterFs.listStatus(Path f) |
FileStatus[] |
FileContext.Util.listStatus(Path f)
List the statuses of the files/directories in the given path
if the path is a directory.
|
FileStatus[] |
RawLocalFileSystem.listStatus(Path f) |
abstract FileStatus[] |
FileSystem.listStatus(Path f)
List the statuses of the files/directories in the given path if the path is
a directory.
|
FileStatus[] |
HarFileSystem.listStatus(Path f)
liststatus returns the children of a directory
after looking up the index files.
|
FileStatus[] |
ChecksumFileSystem.listStatus(Path f)
List the statuses of the files/directories in the given path if the path is
a directory.
|
FileStatus[] |
DelegateToFileSystem.listStatus(Path f) |
FileStatus[] |
ChecksumFs.listStatus(Path f) |
FileStatus[] |
FileContext.Util.listStatus(Path[] files)
|
FileStatus[] |
FileSystem.listStatus(Path[] files)
Filter files/directories in the given list of paths using default
path filter.
|
FileStatus[] |
FileContext.Util.listStatus(Path[] files,
PathFilter filter)
Filter files/directories in the given list of paths using user-supplied
path filter.
|
FileStatus[] |
FileSystem.listStatus(Path[] files,
PathFilter filter)
Filter files/directories in the given list of paths using user-supplied
path filter.
|
FileStatus[] |
FileContext.Util.listStatus(Path f,
PathFilter filter)
Filter files/directories in the given path using the user-supplied path
filter.
|
FileStatus[] |
FileSystem.listStatus(Path f,
PathFilter filter)
Filter files/directories in the given path using the user-supplied path
filter.
|
Modifier and Type | Method and Description |
---|---|
RemoteIterator<FileStatus> |
FileContext.listStatus(Path f)
List the statuses of the files/directories in the given path if the path is
a directory.
|
RemoteIterator<FileStatus> |
Hdfs.listStatusIterator(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. |
Modifier and Type | Method and Description |
---|---|
BlockLocation[] |
FilterFileSystem.getFileBlockLocations(FileStatus file,
long start,
long len) |
BlockLocation[] |
FileSystem.getFileBlockLocations(FileStatus file,
long start,
long len)
Return an array containing hostnames, offset and size of
portions of the given file.
|
BlockLocation[] |
HarFileSystem.getFileBlockLocations(FileStatus file,
long start,
long len)
Get block locations from the underlying fs and fix their
offsets and lengths.
|
static Path[] |
FileUtil.stat2Paths(FileStatus[] stats)
convert an array of FileStatus to an array of Path
|
static Path[] |
FileUtil.stat2Paths(FileStatus[] stats,
Path path)
convert an array of FileStatus to an array of Path.
|
Constructor and Description |
---|
LocatedFileStatus(FileStatus stat,
BlockLocation[] locations)
Constructor
|
Modifier and Type | Method and Description |
---|---|
FileStatus |
FTPFileSystem.getFileStatus(Path file) |
FileStatus[] |
FTPFileSystem.listStatus(Path file) |
Modifier and Type | Method and Description |
---|---|
FileStatus |
HttpFSFileSystem.getFileStatus(Path f)
Return a file status object that represents the path.
|
FileStatus[] |
HttpFSFileSystem.listStatus(Path f)
List the statuses of the files/directories in the given path if the path is
a directory.
|
Modifier and Type | Method and Description |
---|---|
static HttpFSFileSystem.FILE_TYPE |
HttpFSFileSystem.FILE_TYPE.getType(FileStatus fileStatus) |
Modifier and Type | Method and Description |
---|---|
FileStatus |
RawLocalFs.getFileLinkStatus(Path f)
Return a FileStatus representing the given path.
|
Modifier and Type | Method and Description |
---|---|
short |
ChmodParser.applyNewPermission(FileStatus file)
Apply permission against specified file and determine what the
new mode would be
|
Modifier and Type | Method and Description |
---|---|
FileStatus |
S3FileSystem.getFileStatus(Path f)
FileStatus for S3 file systems.
|
FileStatus[] |
S3FileSystem.listStatus(Path f) |
Modifier and Type | Method and Description |
---|---|
FileStatus |
NativeS3FileSystem.getFileStatus(Path f) |
FileStatus[] |
NativeS3FileSystem.listStatus(Path f)
If
f is a file, this method will make a single call to S3. |
Modifier and Type | Field and Description |
---|---|
FileStatus |
PathData.stat |
Modifier and Type | Method and Description |
---|---|
FileStatus |
PathData.refreshStatus()
Updates the paths's file status
|
Modifier and Type | Method and Description |
---|---|
FileStatus |
ViewFs.getFileLinkStatus(Path f) |
FileStatus |
ViewFs.getFileStatus(Path f) |
FileStatus |
ViewFileSystem.getFileStatus(Path f) |
FileStatus[] |
ViewFs.listStatus(Path f) |
FileStatus[] |
ViewFileSystem.listStatus(Path f) |
Modifier and Type | Method and Description |
---|---|
RemoteIterator<FileStatus> |
ViewFs.listStatusIterator(Path f) |
Modifier and Type | Method and Description |
---|---|
BlockLocation[] |
ViewFileSystem.getFileBlockLocations(FileStatus fs,
long start,
long len) |
Modifier and Type | Method and Description |
---|---|
FileStatus |
DistributedFileSystem.getFileLinkStatus(Path f) |
FileStatus |
HftpFileSystem.getFileStatus(Path f) |
FileStatus |
DistributedFileSystem.getFileStatus(Path f)
Returns the stat information about the file.
|
FileStatus[] |
HftpFileSystem.listStatus(Path f) |
FileStatus[] |
DistributedFileSystem.listStatus(Path p)
List all the entries of a directory
Note that this operation is not atomic for a large directory.
|
Modifier and Type | Method and Description |
---|---|
BlockLocation[] |
DistributedFileSystem.getFileBlockLocations(FileStatus file,
long start,
long len) |
Modifier and Type | Method and Description |
---|---|
FileStatus |
HdfsFileStatus.makeQualified(URI defaultUri,
Path path) |
Modifier and Type | Method and Description |
---|---|
void |
HdfsAuditLogger.logAuditEvent(boolean succeeded,
String userName,
InetAddress addr,
String cmd,
String src,
String dst,
FileStatus status) |
void |
AuditLogger.logAuditEvent(boolean succeeded,
String userName,
InetAddress addr,
String cmd,
String src,
String dst,
FileStatus stat)
Called to log an audit event.
|
abstract void |
HdfsAuditLogger.logAuditEvent(boolean succeeded,
String userName,
InetAddress addr,
String cmd,
String src,
String dst,
FileStatus stat,
UserGroupInformation ugi,
DelegationTokenSecretManager dtSecretManager)
Same as
HdfsAuditLogger.logAuditEvent(boolean, String, InetAddress, String, String, String, FileStatus)
with additional parameters related to logging delegation token tracking
IDs. |
Modifier and Type | Method and Description |
---|---|
FileStatus |
WebHdfsFileSystem.getFileStatus(Path f) |
FileStatus[] |
WebHdfsFileSystem.listStatus(Path f) |
Modifier and Type | Method and Description |
---|---|
BlockLocation[] |
WebHdfsFileSystem.getFileBlockLocations(FileStatus status,
long offset,
long length) |
Modifier and Type | Method and Description |
---|---|
protected FileStatus[] |
FileInputFormat.listStatus(JobConf job)
List input directories.
|
protected FileStatus[] |
SequenceFileInputFormat.listStatus(JobConf job) |
Modifier and Type | Method and Description |
---|---|
protected void |
FileInputFormat.addInputPathRecursively(List<FileStatus> result,
FileSystem fs,
Path path,
PathFilter inputFilter)
Add files in the input path recursively into the results.
|
Modifier and Type | Method and Description |
---|---|
protected FileStatus[] |
CombineFileInputFormat.listStatus(JobConf job)
List input directories.
|
Modifier and Type | Method and Description |
---|---|
static void |
ClientDistributedCacheManager.determineCacheVisibilities(Configuration job,
Map<URI,FileStatus> statCache)
Determines the visibilities of the distributed cache files and
archives.
|
static void |
ClientDistributedCacheManager.determineTimestamps(Configuration job,
Map<URI,FileStatus> statCache)
Determines timestamps of files to be cached, and stores those
in the configuration.
|
Modifier and Type | Method and Description |
---|---|
protected List<FileStatus> |
FileInputFormat.listStatus(JobContext job)
List input directories.
|
protected List<FileStatus> |
SequenceFileInputFormat.listStatus(JobContext job) |
Modifier and Type | Method and Description |
---|---|
protected BlockLocation[] |
CombineFileInputFormat.getFileBlockLocations(FileSystem fs,
FileStatus stat) |
static List<FileSplit> |
NLineInputFormat.getSplitsForFile(FileStatus status,
Configuration conf,
int numLinesPerSplit) |
Modifier and Type | Method and Description |
---|---|
protected void |
FileInputFormat.addInputPathRecursively(List<FileStatus> result,
FileSystem fs,
Path path,
PathFilter inputFilter)
Add files in the input path recursively into the results.
|
Modifier and Type | Method and Description |
---|---|
static List<FileStatus> |
JobHistoryUtils.localGlobber(FileContext fc,
Path root,
String tail) |
static List<FileStatus> |
JobHistoryUtils.localGlobber(FileContext fc,
Path root,
String tail,
PathFilter filter) |
static List<FileStatus> |
JobHistoryUtils.localGlobber(FileContext fc,
Path root,
String tail,
PathFilter filter,
AtomicBoolean hasFlatFiles) |
Modifier and Type | Method and Description |
---|---|
RecordReader<Text,FileStatus> |
UniformSizeInputFormat.createRecordReader(InputSplit split,
TaskAttemptContext context)
Implementation of InputFormat::createRecordReader().
|
Modifier and Type | Method and Description |
---|---|
void |
CopyMapper.map(Text relPath,
FileStatus sourceFileStatus,
Mapper.Context context)
Implementation of the Mapper<>::map().
|
Modifier and Type | Method and Description |
---|---|
static void |
DistCpUtils.preserve(FileSystem targetFS,
Path path,
FileStatus srcFileStatus,
EnumSet<DistCpOptions.FileAttribute> attributes)
Preserve attribute on file matching that of the file status being sent
as argument.
|
Copyright © 2013 Apache Software Foundation. All rights reserved.