Class CoalesceEmptyFunDef

java.lang.Object
org.eigenbase.xom.XMLUtil
org.eigenbase.xom.XOMUtil
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 Details

    • CoalesceEmptyFunDef

      public CoalesceEmptyFunDef(mondrian.olap.fun.ResolverBase resolverBase, int type, int[] types)
  • Method Details

    • 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