psdi.app.report

Class AggregationHelper

  • java.lang.Object
    • psdi.app.report.AggregationHelper
    • Field Detail

      • AGGREGATION_FUNCTION_SUM_BIRT

        public static final java.lang.String AGGREGATION_FUNCTION_SUM_BIRT
        See Also:
        Constant Field Values
      • AGGREGATION_FUNCTION_COUNT_BIRT

        public static final java.lang.String AGGREGATION_FUNCTION_COUNT_BIRT
        See Also:
        Constant Field Values
      • AGGREGATION_FUNCTION_AVERAGE_BIRT

        public static final java.lang.String AGGREGATION_FUNCTION_AVERAGE_BIRT
        See Also:
        Constant Field Values
      • AGGREGATION_FUNCTION_MIN_BIRT

        public static final java.lang.String AGGREGATION_FUNCTION_MIN_BIRT
        See Also:
        Constant Field Values
      • AGGREGATION_FUNCTION_MAX_BIRT

        public static final java.lang.String AGGREGATION_FUNCTION_MAX_BIRT
        See Also:
        Constant Field Values
      • AGGREGATION_FUNCTION_MODE_BIRT

        public static final java.lang.String AGGREGATION_FUNCTION_MODE_BIRT
        See Also:
        Constant Field Values
      • AGGREGATION_FUNCTION_MEDIAN_BIRT

        public static final java.lang.String AGGREGATION_FUNCTION_MEDIAN_BIRT
        See Also:
        Constant Field Values
      • AGGREGATION_FUNCTION_SUM

        public static final java.lang.String AGGREGATION_FUNCTION_SUM
        See Also:
        Constant Field Values
      • AGGREGATION_FUNCTION_COUNT

        public static final java.lang.String AGGREGATION_FUNCTION_COUNT
        See Also:
        Constant Field Values
      • AGGREGATION_FUNCTION_AVERAGE

        public static final java.lang.String AGGREGATION_FUNCTION_AVERAGE
        See Also:
        Constant Field Values
      • AGGREGATION_FUNCTION_MIN

        public static final java.lang.String AGGREGATION_FUNCTION_MIN
        See Also:
        Constant Field Values
      • AGGREGATION_FUNCTION_MAX

        public static final java.lang.String AGGREGATION_FUNCTION_MAX
        See Also:
        Constant Field Values
      • AGGREGATION_FUNCTION_MODE

        public static final java.lang.String AGGREGATION_FUNCTION_MODE
        See Also:
        Constant Field Values
      • AGGREGATION_FUNCTION_MEDIAN

        public static final java.lang.String AGGREGATION_FUNCTION_MEDIAN
        See Also:
        Constant Field Values
    • Constructor Detail

      • AggregationHelper

        public AggregationHelper()
    • Method Detail

      • isValidDataType

        public static boolean isValidDataType(java.lang.String functionName,
                                              MboValueInfo mvi)
        Evaluates whether the specified aggregation can be performed on the specified attribute.
        Parameters:
        String - functionName the name of the function as represented in the event
        MboValueInfo - mvi the MboValueInfo for the attribute being aggregated
        Returns:
        true if the function is supported for the attribute, false if not.
      • getReturnType

        public static java.lang.String getReturnType(java.lang.String functionName,
                                                     MboValueInfo mvi)
        Returns the BIRT data type for the aggregation, or null if the aggregation is not supported for the data type of the attribute.
        Parameters:
        String - functionName the name of the function as represented in the event
        MboValueInfo - mvi the MboValueInfo for the attribute being aggregated
        Returns:
        the BIRT return type for the aggregation, or null if the aggregation is not supported.
      • getBirtAggregationFunction

        public static java.lang.String getBirtAggregationFunction(java.lang.String function)
        Returns the BIRT summary function name for the passed Maximo function name.
        Parameters:
        String - function the name of the function as represented in the event
        Returns:
        the BIRT name for the return type of the aggregation