LastBlockWithStatus (Apache Hadoop HDFS Client 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.protocol, class: LastBlockWithStatus

Package org.apache.hadoop.hdfs.protocol

# Class LastBlockWithStatus

java.lang.Object
org.apache.hadoop.hdfs.protocol.LastBlockWithStatus

@Private @Evolving public class LastBlockWithStatus extends Object
Class to contain Lastblock and HdfsFileStatus for the Append operation

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `LastBlockWithStatus(LocatedBlock lastBlock, HdfsFileStatus fileStatus)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `HdfsFileStatus`
  `getFileStatus()`
  `LocatedBlock`
  `getLastBlock()`

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

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

- ## Constructor Details

  - ### LastBlockWithStatus

    public LastBlockWithStatus(LocatedBlock lastBlock, HdfsFileStatus fileStatus)

- ## Method Details

  - ### getLastBlock

    public LocatedBlock getLastBlock()

  - ### getFileStatus

    public HdfsFileStatus getFileStatus()