Examples of JavaFunction


Examples of org.lealone.expression.JavaFunction

            }
            argList.add(readExpression());
        }
        args = new Expression[numArgs];
        argList.toArray(args);
        JavaFunction func = new JavaFunction(functionAlias, args);
        return func;
    }
View Full Code Here

Examples of org.lealone.expression.JavaFunction

                FunctionAlias f = findFunctionAlias(Constants.SCHEMA_MAIN, "PG_GET_OID");
                if (f == null) {
                    throw getSyntaxError();
                }
                Expression[] args = { r };
                JavaFunction func = new JavaFunction(f, args);
                r = func;
            } else {
                Column col = parseColumnWithType(null);
                Function function = Function.getFunction(database, "CAST");
                function.setDataType(col);
View Full Code Here

Examples of xbird.xquery.func.ext.JavaFunction

    }

    public Function lookupFunction(QualifiedName funcName, List<? extends XQExpression> params) {
        // step1-1. bind java function.
        if(funcName.getNamespaceURI().startsWith(JavaFunction.PROTOCOL)) {
            JavaFunction func = new JavaFunction(funcName);
            return func;
        }
        // step1-2. pre-defined functions lookup.
        final int arity = params.size();
        if(!XQueryConstants.LOCAL_URI.equals(funcName.getNamespaceURI())) {
            BuiltInFunction func = PredefinedFunctions.lookup(funcName);
            if(func != null) {
                FunctionSignature[] sigs = func.getFunctionSignatures();
                for(int i = 0; i < sigs.length; i++) {
                    if(sigs[i].getArity() == arity) {
                        return func;
                    }
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.