StripedBlockUtil.BlockReadStats (Apache Hadoop HDFS Client 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.util, class: StripedBlockUtil, class: BlockReadStats

Package org.apache.hadoop.hdfs.util

# Class StripedBlockUtil.BlockReadStats

java.lang.Object
org.apache.hadoop.hdfs.util.StripedBlockUtil.BlockReadStats

Enclosing class:
  StripedBlockUtil

public static class StripedBlockUtil.BlockReadStats extends Object
Struct holding the read statistics. This is used when reads are done asynchronously, to allow the async threads return the read stats and let the main reading thread to update the stats. This is important for the ThreadLocal stats for the main reading thread to be correct.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `BlockReadStats(int numBytesRead, boolean shortCircuit, int distance)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getBytesRead()`
  `int`
  `getNetworkDistance()`
  `boolean`
  `isShortCircuit()`
  `String`
  `toString()`

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

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

- ## Constructor Details

  - ### BlockReadStats

    public BlockReadStats(int numBytesRead, boolean shortCircuit, int distance)

- ## Method Details

  - ### getBytesRead

    public int getBytesRead()

  - ### isShortCircuit

    public boolean isShortCircuit()

  - ### getNetworkDistance

    public int getNetworkDistance()

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`