Class AggregationUtil


  • public class AggregationUtil
    extends java.lang.Object
    This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
    • Field Detail

      • aggregationByName

        private static final java.util.Map<java.lang.String,​Aggregation> aggregationByName
      • nameByAggregation

        private static final java.util.Map<java.lang.Class<? extends Aggregation>,​java.lang.String> nameByAggregation
      • AGGREGATION_DEFAULT

        private static final java.lang.String AGGREGATION_DEFAULT
        See Also:
        Constant Field Values
      • AGGREGATION_LAST_VALUE

        private static final java.lang.String AGGREGATION_LAST_VALUE
        See Also:
        Constant Field Values
      • AGGREGATION_DROP

        private static final java.lang.String AGGREGATION_DROP
        See Also:
        Constant Field Values
      • AGGREGATION_EXPLICIT_BUCKET_HISTOGRAM

        private static final java.lang.String AGGREGATION_EXPLICIT_BUCKET_HISTOGRAM
        See Also:
        Constant Field Values
      • AGGREGATION_BASE2_EXPONENTIAL_HISTOGRAM

        private static final java.lang.String AGGREGATION_BASE2_EXPONENTIAL_HISTOGRAM
        See Also:
        Constant Field Values
    • Constructor Detail

      • AggregationUtil

        private AggregationUtil()
    • Method Detail

      • forName

        public static Aggregation forName​(java.lang.String name)
        Return the aggregation for the human-readable name.

        The inverse of aggregationName(Aggregation).

        Throws:
        java.lang.IllegalArgumentException - if the name is not recognized
      • aggregationName

        public static java.lang.String aggregationName​(Aggregation aggregation)
        Return the human-readable name of the aggregation.

        The inverse of forName(String).

        Throws:
        java.lang.IllegalArgumentException - if the aggregation is not recognized