Package mondrian.olap

Examples of mondrian.olap.Exp


        // Mondrian allows null values to be passed in, so we'll go ahead and
        // convert null values to their defaults for now until MONDRIAN-745 is
        // resolved.

        final Exp exp = def.getDefaultExp();
        if (processedParamValue == null && exp != null && exp instanceof Literal)
        {
          def.setValue(((Literal) exp).getValue());
        }
        else
View Full Code Here


      // Mondrian allows null values to be passed in, so we'll go ahead and
      // convert null values to their defaults for now until MONDRIAN-745 is
      // resolved.

      final Exp exp = def.getDefaultExp();
      if (processedParamValue == null && exp != null && exp instanceof Literal)
      {
        Literal exp1 = (Literal) exp;
        def.setValue(exp1.getValue());
      }
View Full Code Here

    public int getHierarchyOrdinal() {
        return member.getHierarchy().getOrdinalInCube();
    }

    public Calc getCompiledExpression(RolapEvaluatorRoot root) {
        final Exp exp = member.getExpression();
        return root.getCompiled(exp, true, null);
    }
View Full Code Here

    private SetToStrFunDef() {
        super("SetToStr", "Constructs a string from a set.", "fSx");
    }

    public Calc compileCall(ResolvedFunCall call, ExpCompiler compiler) {
        Exp arg = call.getArg(0);
        final ListCalc listCalc = compiler.compileList(arg);
        if (((SetType) arg.getType()).getArity() == 1) {
            return new AbstractStringCalc(call, new Calc[] {listCalc}) {
                public String evaluateString(Evaluator evaluator) {
                    final List<Member> list =
                        (List<Member>) listCalc.evaluateList(evaluator);
                    return memberSetToStr(list);
View Full Code Here

    public int getHierarchyOrdinal() {
        return member.getHierarchy().getOrdinalInCube();
    }

    public Calc getCompiledExpression(RolapEvaluatorRoot root) {
        final Exp exp = member.getExpression();
        return root.getCompiled(exp, true, null);
    }
View Full Code Here

TOP

Related Classes of mondrian.olap.Exp

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.