Class Summary

  • Direct Known Subclasses:
    AutoValue_Summary

    @ExperimentalApi
    @Immutable
    public abstract class Summary
    extends java.lang.Object
    Implementation of the Distribution as a summary of observations.

    This is not recommended, since it cannot be aggregated.

    Since:
    0.17
    • Constructor Detail

      • Summary

        Summary()
    • Method Detail

      • create

        public static Summary create​(@Nullable
                                     java.lang.Long count,
                                     @Nullable
                                     java.lang.Double sum,
                                     Summary.Snapshot snapshot)
        Creates a Summary.
        Parameters:
        count - the count of the population values.
        sum - the sum of the population values.
        snapshot - bucket boundaries of a histogram.
        Returns:
        a Summary with the given values.
        Since:
        0.17
      • getCount

        @Nullable
        public abstract java.lang.Long getCount()
        Returns the aggregated count. If not available returns null.
        Returns:
        the aggregated count.
        Since:
        0.17
      • getSum

        @Nullable
        public abstract java.lang.Double getSum()
        Returns the aggregated sum. If not available returns null.
        Returns:
        the aggregated sum.
        Since:
        0.17
      • checkCountAndSum

        private static void checkCountAndSum​(@Nullable
                                             java.lang.Long count,
                                             @Nullable
                                             java.lang.Double sum)