public final class LocatedHadoopFileStatus extends HadoopFileStatus implements LocatedFileStatus
LocatedFileStatus
interface for the Hadoop Distributed
File System.Constructor and Description |
---|
LocatedHadoopFileStatus(org.apache.hadoop.fs.LocatedFileStatus fileStatus)
Creates a new located file status from an HDFS file status.
|
Modifier and Type | Method and Description |
---|---|
BlockLocation[] |
getBlockLocations()
Gets the location information for the file.
|
fromHadoopStatus, getAccessTime, getBlockSize, getInternalFileStatus, getLen, getModificationTime, getPath, getReplication, isDir
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAccessTime, getBlockSize, getLen, getModificationTime, getPath, getReplication, isDir
public LocatedHadoopFileStatus(org.apache.hadoop.fs.LocatedFileStatus fileStatus)
public BlockLocation[] getBlockLocations()
LocatedFileStatus
Files without location information typically expose one block with no host information for that block.
getBlockLocations
in interface LocatedFileStatus
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.