List of usage examples for org.apache.hadoop.hdfs ReadStatistics getTotalShortCircuitBytesRead
public synchronized long getTotalShortCircuitBytesRead()
From source file:com.cloudera.ByteBufferRecordReader.java
License:Apache License
private void updateStats(ReadStatistics newStats) { context.getCounter(READ_COUNTER.BYTES_READ) .increment(newStats.getTotalBytesRead() - readStats.getTotalBytesRead()); context.getCounter(READ_COUNTER.LOCAL_BYTES_READ) .increment(newStats.getTotalLocalBytesRead() - readStats.getTotalLocalBytesRead()); context.getCounter(READ_COUNTER.SCR_BYTES_READ) .increment(newStats.getTotalShortCircuitBytesRead() - readStats.getTotalShortCircuitBytesRead()); context.getCounter(READ_COUNTER.ZCR_BYTES_READ) .increment(newStats.getTotalZeroCopyBytesRead() - readStats.getTotalZeroCopyBytesRead()); this.readStats = new ReadStatistics(newStats); }