org.apache.hadoop.fs
Class BlockStorageLocation
java.lang.Object
org.apache.hadoop.fs.BlockLocation
org.apache.hadoop.fs.BlockStorageLocation
@InterfaceStability.Unstable
@InterfaceAudience.Public
public class BlockStorageLocation
- extends BlockLocation
Wrapper for BlockLocation
that also adds VolumeId
volume
location information for each replica.
Methods inherited from class org.apache.hadoop.fs.BlockLocation |
getCachedHosts, getHosts, getLength, getNames, getOffset, getTopologyPaths, isCorrupt, setCachedHosts, setCorrupt, setHosts, setLength, setNames, setOffset, setTopologyPaths, toString |
BlockStorageLocation
public BlockStorageLocation(BlockLocation loc,
VolumeId[] volumeIds)
throws IOException
- Throws:
IOException
getVolumeIds
public VolumeId[] getVolumeIds()
- Gets the list of
VolumeId
corresponding to the block's replicas.
- Returns:
- volumeIds list of VolumeId for the block's replicas
Copyright © 2014 Apache Software Foundation. All Rights Reserved.