Class GhfsStorageStatistics

  • All Implemented Interfaces:
    Iterable<org.apache.hadoop.fs.StorageStatistics.LongStatistic>

    public class GhfsStorageStatistics
    extends org.apache.hadoop.fs.statistics.impl.StorageStatisticsFromIOStatistics
    Storage statistics for GCS, dynamically generated from the IOStatistics.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.hadoop.fs.StorageStatistics

        org.apache.hadoop.fs.StorageStatistics.CommonStatisticNames, org.apache.hadoop.fs.StorageStatistics.LongStatistic
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String NAME
      "GhfsStorageStatistics" The key that stores all the registered metrics
    • Constructor Summary

      Constructors 
      Constructor Description
      GhfsStorageStatistics​(org.apache.hadoop.fs.statistics.IOStatistics ioStatistics)
      Create the Storage Statistics instance from the IOStatistics
    • Field Detail

      • NAME

        public static final String NAME
        "GhfsStorageStatistics" The key that stores all the registered metrics
        See Also:
        Constant Field Values
    • Constructor Detail

      • GhfsStorageStatistics

        public GhfsStorageStatistics​(org.apache.hadoop.fs.statistics.IOStatistics ioStatistics)
        Create the Storage Statistics instance from the IOStatistics
    • Method Detail

      • getMin

        public Long getMin​(String symbol)
        To get the minimum value which is stored with MINIMUM extension
        Parameters:
        symbol -
        Returns:
        minimum statistic value
      • getMax

        public Long getMax​(String symbol)
        To get the maximum value which is stored with MAXIMUM extension
        Parameters:
        symbol -
        Returns:
        maximum statistic value
      • getMean

        public double getMean​(String symbol)
        To get the mean value which is stored with MEAN extension
        Parameters:
        symbol -
        Returns:
        mean statistic value