Class TopBottomPercentSumFunDef

  • All Implemented Interfaces:
    FunDef

    class TopBottomPercentSumFunDef
    extends FunDefBase
    Definition of the TopPercent, BottomPercent, TopSum and BottomSum MDX builtin functions.
    Since:
    Mar 23, 2006
    Author:
    jhyde
    • Field Detail

      • top

        final boolean top
        Whether to calculate top (as opposed to bottom).
      • percent

        final boolean percent
        Whether to calculate percent (as opposed to sum).
      • TopPercentResolver

        static final mondrian.olap.fun.TopBottomPercentSumFunDef.ResolverImpl TopPercentResolver
      • BottomPercentResolver

        static final mondrian.olap.fun.TopBottomPercentSumFunDef.ResolverImpl BottomPercentResolver
      • TopSumResolver

        static final mondrian.olap.fun.TopBottomPercentSumFunDef.ResolverImpl TopSumResolver
      • BottomSumResolver

        static final mondrian.olap.fun.TopBottomPercentSumFunDef.ResolverImpl BottomSumResolver
    • Constructor Detail

      • TopBottomPercentSumFunDef

        public TopBottomPercentSumFunDef​(FunDef dummyFunDef,
                                         boolean top,
                                         boolean percent)
    • Method Detail

      • compileCall

        public Calc compileCall​(ResolvedFunCall call,
                                ExpCompiler compiler)
        Description copied from interface: FunDef
        Converts a call to this function into executable objects.

        The result must implement the appropriate interface for the result type. For example, a function which returns an integer must return an object which implements IntegerCalc.

        Specified by:
        compileCall in interface FunDef
        Overrides:
        compileCall in class FunDefBase