org.apache.hadoop.fs
Class BlockStorageLocation

java.lang.Object
  extended by org.apache.hadoop.fs.BlockLocation
      extended by 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.


Constructor Summary
BlockStorageLocation(BlockLocation loc, VolumeId[] volumeIds)
           
 
Method Summary
 VolumeId[] getVolumeIds()
          Gets the list of VolumeId corresponding to the block's replicas.
 
Methods inherited from class org.apache.hadoop.fs.BlockLocation
getHosts, getLength, getNames, getOffset, getTopologyPaths, isCorrupt, setCorrupt, setHosts, setLength, setNames, setOffset, setTopologyPaths, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BlockStorageLocation

public BlockStorageLocation(BlockLocation loc,
                            VolumeId[] volumeIds)
                     throws IOException
Throws:
IOException
Method Detail

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 © 2013 Apache Software Foundation. All Rights Reserved.