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