HdfsBlockLocation (Apache Hadoop HDFS Client 3.5.0 API)
Description: declaration: package: org.apache.hadoop.fs, class: HdfsBlockLocation

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:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `HdfsBlockLocation(org.apache.hadoop.fs.BlockLocation loc, LocatedBlock block)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `LocatedBlock`
  `getLocatedBlock()`
  `boolean`
  `isStriped()`

  ### 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`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### HdfsBlockLocation

    public HdfsBlockLocation(org.apache.hadoop.fs.BlockLocation loc, LocatedBlock block)

- ## Method Details

  - ### getLocatedBlock

    public LocatedBlock getLocatedBlock()

  - ### isStriped

    public boolean isStriped()
    Overrides:
      `isStriped` in class `org.apache.hadoop.fs.BlockLocation`