Package org.apache.hadoop.fs
Class HdfsBlockLocation
java.lang.Object
org.apache.hadoop.fs.BlockLocation
org.apache.hadoop.fs.HdfsBlockLocation
- All Implemented Interfaces:
Serializable
@Private
@Unstable
public class HdfsBlockLocation
extends org.apache.hadoop.fs.BlockLocation
implements Serializable
Wrapper for
BlockLocation that also includes a LocatedBlock,
allowing more detailed queries to the datanode about a block.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHdfsBlockLocation(org.apache.hadoop.fs.BlockLocation loc, LocatedBlock block) -
Method Summary
Methods inherited from class org.apache.hadoop.fs.BlockLocation
getCachedHosts, getHosts, getLength, getNames, getOffset, getStorageIds, getStorageTypes, getTopologyPaths, isCorrupt, setCachedHosts, setCorrupt, setHosts, setLength, setNames, setOffset, setStorageIds, setStorageTypes, setTopologyPaths, toString
-
Constructor Details
-
HdfsBlockLocation
-
-
Method Details
-
getLocatedBlock
-
isStriped
public boolean isStriped()- Overrides:
isStripedin classorg.apache.hadoop.fs.BlockLocation
-