Package org.apache.hadoop.fs
Class UnionStorageStatistics
java.lang.Object
org.apache.hadoop.fs.StorageStatistics
org.apache.hadoop.fs.UnionStorageStatistics
A StorageStatistics instance which combines the outputs of several other
StorageStatistics instances.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.fs.StorageStatistics
StorageStatistics.CommonStatisticNames, StorageStatistics.LongStatistic -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the value of a statistic.Get an iterator over all the currently tracked long statistics.booleanReturn true if a statistic is being tracked.voidreset()Reset all the statistic data.Methods inherited from class org.apache.hadoop.fs.StorageStatistics
getName, getScheme
-
Constructor Details
-
UnionStorageStatistics
-
-
Method Details
-
getLongStatistics
Description copied from class:StorageStatisticsGet an iterator over all the currently tracked long statistics. The values returned will depend on the type of FileSystem or FileContext object. The values do not necessarily reflect a snapshot in time.- Specified by:
getLongStatisticsin classStorageStatistics- Returns:
- LongStatistic Iterator.
-
getLong
Description copied from class:StorageStatisticsGet the value of a statistic.- Specified by:
getLongin classStorageStatistics- Parameters:
key- key.- Returns:
- null if the statistic is not being tracked or is not a long statistic. The value of the statistic, otherwise.
-
isTracked
Return true if a statistic is being tracked.- Specified by:
isTrackedin classStorageStatistics- Parameters:
key- key.- Returns:
- True only if the statistic is being tracked.
-
reset
public void reset()Description copied from class:StorageStatisticsReset all the statistic data.- Specified by:
resetin classStorageStatistics
-