Class Aggregations


  • public class Aggregations
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Aggregation count()
      Returns an Aggregation that calculates count of recorded measurements (the number of recorded measurements).
      static Aggregation distributionWithExplicitBounds​(java.lang.Double... bucketBoundaries)
      Returns an Aggregation that calculates distribution stats on recorded measurements.
      static Aggregation lastValue()
      Returns an Aggregation that calculates the last value of all recorded measurements.
      static Aggregation minMaxSumCount()
      Returns an Aggregation that calculates a simple summary of all recorded measurements.
      static Aggregation sum()
      Returns an Aggregation that calculates sum of recorded measurements.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • sum

        public static Aggregation sum()
        Returns an Aggregation that calculates sum of recorded measurements.
        Returns:
        an Aggregation that calculates sum of recorded measurements.
      • count

        public static Aggregation count()
        Returns an Aggregation that calculates count of recorded measurements (the number of recorded measurements).
        Returns:
        an Aggregation that calculates count of recorded measurements (the number of recorded * measurements).
      • distributionWithExplicitBounds

        public static Aggregation distributionWithExplicitBounds​(java.lang.Double... bucketBoundaries)
        Returns an Aggregation that calculates distribution stats on recorded measurements. Distribution includes sum, count, histogram, and sum of squared deviations.

        The boundaries for the buckets in the underlying histogram needs to be sorted.

        Parameters:
        bucketBoundaries - bucket boundaries to use for distribution.
        Returns:
        an Aggregation that calculates distribution stats on recorded measurements.
      • lastValue

        public static Aggregation lastValue()
        Returns an Aggregation that calculates the last value of all recorded measurements.
        Returns:
        an Aggregation that calculates the last value of all recorded measurements.
      • minMaxSumCount

        public static Aggregation minMaxSumCount()
        Returns an Aggregation that calculates a simple summary of all recorded measurements. The summary consists of the count of measurements, the sum of all measurements, the maximum value recorded and the minimum value recorded.
        Returns:
        an Aggregation that calculates a simple summary of all recorded measurements.