Package mondrian.spi

Examples of mondrian.spi.UserDefinedFunction


    public static UserDefinedFunction createUdf(
        Class<? extends UserDefinedFunction> udfClass,
        String functionName)
    {
        // Instantiate class with default constructor.
        UserDefinedFunction udf;
        String className = udfClass.getName();
        String functionNameOrEmpty =
            functionName == null
                ? ""
                : functionName;
View Full Code Here


    private void defineUdf(
        Builder builder,
        Class<UserDefinedFunction> udfClass)
    {
        // Instantiate class with default constructor.
        final UserDefinedFunction udf = Util.createUdf(udfClass, null);

        // Validate function.
        validateFunction(udf);

        // Define function.
View Full Code Here

                }
                expCalcs[i] = new CalcExp(calc, scalarCalc, listCalc, iterCalc);
            }

            // Clone the UDF, because some UDFs use member variables as state.
            UserDefinedFunction udf2 =
                Util.createUdf(
                    udf.getClass(), udf.getName());
            if (call.getType() instanceof SetType) {
                return new ListCalcImpl(call, calcs, udf2, expCalcs);
            } else {
View Full Code Here

    private void defineUdf(
        Builder builder,
        UdfResolver.UdfFactory udfFactory)
    {
        // Instantiate class with default constructor.
        final UserDefinedFunction udf = udfFactory.create();

        // Validate function.
        validateFunction(udf);

        // Define function.
View Full Code Here

    public static UserDefinedFunction createUdf(
        Class<? extends UserDefinedFunction> udfClass,
        String functionName)
    {
        // Instantiate class with default constructor.
        UserDefinedFunction udf;
        String className = udfClass.getName();
        String functionNameOrEmpty =
            functionName == null
                ? ""
                : functionName;
View Full Code Here

                expCalcs[i] = new CalcExp(calc, scalarCalc, listCalc, iterCalc);
            }

            // Create a new instance of the UDF, because some UDFs use member
            // variables as state.
            UserDefinedFunction udf2 = factory.create();
            if (call.getType() instanceof SetType) {
                return new ListCalcImpl(call, calcs, udf2, expCalcs);
            } else {
                return new ScalarCalcImpl(call, calcs, udf2, expCalcs);
            }
View Full Code Here

TOP

Related Classes of mondrian.spi.UserDefinedFunction

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.