@Public public interface LocatedFileStatus extends FileStatus
FileStatusthat contains additionally the location information of the file directly. The information is accessible through the
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|
Gets the location information for the file.
getAccessTime, getBlockSize, getLen, getModificationTime, getPath, getReplication, isDir
Files without location information typically expose one block with no host information for that block.
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.