Class CoalesceEmptyFunDef

  • All Implemented Interfaces:
    FunDef

    public class CoalesceEmptyFunDef
    extends FunDefBase
    Definition of the CoalesceEmpty MDX function.

    It evaluates each of the arguments to the function, returning the first such argument that does not return a null value.

    Author:
    gjohnson
    • Constructor Detail

      • CoalesceEmptyFunDef

        public CoalesceEmptyFunDef​(mondrian.olap.fun.ResolverBase resolverBase,
                                   int type,
                                   int[] types)
    • 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