Class SourceWrappedStatistics
java.lang.Object
org.apache.hadoop.fs.statistics.impl.SourceWrappedStatistics
- All Implemented Interfaces:
IOStatisticsSource
Wrap a statistics instance with an
IOStatisticsSource
instance which will then serve up the statistics when asked.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SourceWrappedStatistics
Constructor.- Parameters:
source- source of statistics.
-
-
Method Details
-
getIOStatistics
Description copied from interface:IOStatisticsSourceReturn a statistics instance.It is not a requirement that the same instance is returned every time.
IOStatisticsSource.If the object implementing this is Closeable, this method may return null if invoked on a closed object, even if it returns a valid instance when called earlier.
- Specified by:
getIOStatisticsin interfaceIOStatisticsSource- Returns:
- an IOStatistics instance or null
-