BlockReaderIoProvider (Apache Hadoop HDFS Client 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.client.impl.metrics, class: BlockReaderIoProvider

Package org.apache.hadoop.hdfs.client.impl.metrics

# Class BlockReaderIoProvider

java.lang.Object
org.apache.hadoop.hdfs.client.impl.metrics.BlockReaderIoProvider

public class BlockReaderIoProvider extends Object
Profiles `BlockReaderLocal` short circuit read latencies when ShortCircuit read metrics is enabled through `DfsClientConf.ShortCircuitConf.scrMetricsEnabled`.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final org.slf4j.Logger`
  `LOG`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `BlockReaderIoProvider(DfsClientConf.ShortCircuitConf conf, BlockReaderLocalMetrics metrics, org.apache.hadoop.util.Timer timer)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `read(FileChannel dataIn, ByteBuffer dst, long position)`

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

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

- ## Field Details

  - ### LOG

    public static final org.slf4j.Logger LOG

- ## Constructor Details

  - ### BlockReaderIoProvider

    public BlockReaderIoProvider(@Nullable DfsClientConf.ShortCircuitConf conf, BlockReaderLocalMetrics metrics, org.apache.hadoop.util.Timer timer)

- ## Method Details

  - ### read

    public int read(FileChannel dataIn, ByteBuffer dst, long position) throws IOException
    Throws:
      `IOException`