@Public public interface LocatedFileStatus extends FileStatus
LocatedFileStatus
is a FileStatus
that contains additionally the location
information of the file directly. The information is accessible through the getBlockLocations()
method.
This class eagerly communicates the block information (including locations) when that
information is readily (or cheaply) available. That way users can avoid an additional call to
FileSystem.getFileBlockLocations(FileStatus, long, long)
, which is an additional RPC call
for each file.
Modifier and Type | Method and Description |
---|---|
BlockLocation[] |
getBlockLocations()
Gets the location information for the file.
|
getAccessTime, getBlockSize, getLen, getModificationTime, getPath, getReplication, isDir
BlockLocation[] getBlockLocations()
Files without location information typically expose one block with no host information for that block.
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.