org.apache.hadoop.hdfs
Class DFSInputStream.ReadStatistics

java.lang.Object
  extended by org.apache.hadoop.hdfs.DFSInputStream.ReadStatistics
Enclosing class:
org.apache.hadoop.hdfs.DFSInputStream

public static class DFSInputStream.ReadStatistics
extends Object


Constructor Summary
DFSInputStream.ReadStatistics()
           
DFSInputStream.ReadStatistics(DFSInputStream.ReadStatistics rhs)
           
 
Method Summary
 long getRemoteBytesRead()
           
 long getTotalBytesRead()
           
 long getTotalLocalBytesRead()
           
 long getTotalShortCircuitBytesRead()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DFSInputStream.ReadStatistics

public DFSInputStream.ReadStatistics()

DFSInputStream.ReadStatistics

public DFSInputStream.ReadStatistics(DFSInputStream.ReadStatistics rhs)
Method Detail

getTotalBytesRead

public long getTotalBytesRead()
Returns:
The total bytes read. This will always be at least as high as the other numbers, since it includes all of them.

getTotalLocalBytesRead

public long getTotalLocalBytesRead()
Returns:
The total local bytes read. This will always be at least as high as totalShortCircuitBytesRead, since all short-circuit reads are also local.

getTotalShortCircuitBytesRead

public long getTotalShortCircuitBytesRead()
Returns:
The total short-circuit local bytes read.

getRemoteBytesRead

public long getRemoteBytesRead()
Returns:
The total number of bytes read which were not local.


Copyright © 2013 Apache Software Foundation. All Rights Reserved.