Class ParsedStats

    • Field Detail

      • count

        protected long count
      • min

        protected double min
      • max

        protected double max
      • sum

        protected double sum
      • avg

        protected double avg
      • valueAsString

        protected final java.util.Map<java.lang.String,​java.lang.String> valueAsString
    • Constructor Detail

      • ParsedStats

        public ParsedStats()
    • Method Detail

      • getCount

        public long getCount()
        Specified by:
        getCount in interface Stats
        Returns:
        The number of values that were aggregated.
      • getMin

        public double getMin()
        Specified by:
        getMin in interface Stats
        Returns:
        The minimum value of all aggregated values.
      • getMax

        public double getMax()
        Specified by:
        getMax in interface Stats
        Returns:
        The maximum value of all aggregated values.
      • getAvg

        public double getAvg()
        Specified by:
        getAvg in interface Stats
        Returns:
        The avg value over all aggregated values.
      • getSum

        public double getSum()
        Specified by:
        getSum in interface Stats
        Returns:
        The sum of aggregated values.
      • getMinAsString

        public java.lang.String getMinAsString()
        Specified by:
        getMinAsString in interface Stats
        Returns:
        The minimum value of all aggregated values as a String.
      • getMaxAsString

        public java.lang.String getMaxAsString()
        Specified by:
        getMaxAsString in interface Stats
        Returns:
        The maximum value of all aggregated values as a String.
      • getAvgAsString

        public java.lang.String getAvgAsString()
        Specified by:
        getAvgAsString in interface Stats
        Returns:
        The avg value over all aggregated values as a String.
      • getSumAsString

        public java.lang.String getSumAsString()
        Specified by:
        getSumAsString in interface Stats
        Returns:
        The sum of aggregated values as a String.
      • getType

        public java.lang.String getType()
        Specified by:
        getType in interface Aggregation
        Returns:
        a string representing the type of the aggregation. This type is added to the aggregation name in the response, so that it can later be used by clients to determine type of the aggregation and parse it into the proper object.
      • declareStatsFields

        protected static void declareStatsFields​(ObjectParser<? extends ParsedStats,​java.lang.Void> objectParser)