@InterfaceAudience.Private @InterfaceStability.Unstable public class HdfsBlockLocation extends BlockLocation
BlockLocation
that also includes a LocatedBlock
,
allowing more detailed queries to the datanode about a block.Constructor and Description |
---|
HdfsBlockLocation(BlockLocation loc,
LocatedBlock block) |
Modifier and Type | Method and Description |
---|---|
LocatedBlock |
getLocatedBlock() |
getHosts, getLength, getNames, getOffset, getTopologyPaths, isCorrupt, setCorrupt, setHosts, setLength, setNames, setOffset, setTopologyPaths, toString
public HdfsBlockLocation(BlockLocation loc, LocatedBlock block) throws IOException
IOException
public LocatedBlock getLocatedBlock()
Copyright © 2013 Apache Software Foundation. All rights reserved.