Package mondrian.mdx

Examples of mondrian.mdx.UnresolvedFunCall


            case Category.Tuple:
                switch (to) {
                case Category.Set:
                    final Exp newArg =
                        validator.validate(
                            new UnresolvedFunCall(
                                "{}", Syntax.Braces, new Exp[]{arg}), false);
                    args.set(ordinal, newArg);
                    break;
                default:
                    // do nothing
View Full Code Here


        if (i == 0) {
            if (MondrianProperties.instance().EnableExpCache.get()) {
                Exp arg = args[0];
                if (FunUtil.worthCaching(arg)) {
                    final Exp cacheCall =
                        new UnresolvedFunCall(
                            CacheFunDef.NAME,
                            Syntax.Function,
                            new Exp[] {arg});
                    return validator.validate(cacheCall, false);
                }
View Full Code Here

            case Category.Tuple:
                switch (to) {
                case Category.Set:
                    final Exp newArg =
                        validator.validate(
                            new UnresolvedFunCall(
                                "{}", Syntax.Braces, new Exp[]{arg}), false);
                    args.set(ordinal, newArg);
                    break;
                default:
                    // do nothing
View Full Code Here

            axes[1].getAxisName());

        Exp colsSetExpr = axes[0].getSet();
        assertNotNull("Column tuples", colsSetExpr);

        UnresolvedFunCall fun = (UnresolvedFunCall)colsSetExpr;
        Id arg0 = (Id) (fun.getArgs()[0]);
        Id.NameSegment id = (Id.NameSegment) arg0.getElement(0);
        assertEquals("Correct member on axis", "axis0mbr", id.name);

        Exp rowsSetExpr = axes[1].getSet();
        assertNotNull("Row tuples", rowsSetExpr);

        fun = (UnresolvedFunCall) rowsSetExpr;
        arg0 = (Id) (fun.getArgs()[0]);
        id = (Id.NameSegment) arg0.getElement(0);
        assertEquals("Correct member on axis", "axis1mbr", id.name);
    }
View Full Code Here

                    olap4jProperty =
                        MondrianOlap4jProperty.MEMBER_EXTENSIONS.get(names[0]);
                }
            }
            if (olap4jProperty == null) {
                final UnresolvedFunCall call =
                    (UnresolvedFunCall)
                        Util.lookup(
                            cellSetMetaData.query, id.getSegments(), true);
                olap4jProperty =
                    new MondrianOlap4jProperty(
                        Util.lookupProperty(
                            ((LevelExpr) call.getArg(0)).getLevel(),
                            call.getFunName()));
            }
            propertyList.add(olap4jProperty);
        }
    }
View Full Code Here

        Exp defaultExp = parameter.getDefaultExp();
        Calc calc;
        if (type instanceof ScalarType) {
            if (!defaultExp.getType().equals(type)) {
                defaultExp =
                    new UnresolvedFunCall(
                        "Cast",
                        Syntax.Cast,
                        new Exp[] {
                            defaultExp,
                            Literal.createSymbol(
View Full Code Here

        if (i == 0) {
            if (MondrianProperties.instance().EnableExpCache.get()) {
                Exp arg = args[0];
                if (FunUtil.worthCaching(arg)) {
                    final Exp cacheCall =
                        new UnresolvedFunCall(
                            CacheFunDef.NAME,
                            Syntax.Function,
                            new Exp[] {arg});
                    return validator.validate(cacheCall, false);
                }
View Full Code Here

TOP

Related Classes of mondrian.mdx.UnresolvedFunCall

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.