Package org.teiid.language

Examples of org.teiid.language.Function


   
    @Override
    public List<?> translate(Function function) {
        List<Expression> args = function.getParameters();
   
        Function func = langFactory.createFunction("TO_CHAR"//$NON-NLS-1$
            Arrays.asList(
                args.get(0),
                langFactory.createLiteral(format, TypeFacility.RUNTIME_TYPES.STRING))
            TypeFacility.RUNTIME_TYPES.STRING);
       
        // For some reason, these values have trailing spaces
        Function trimFunc = langFactory.createFunction(SourceSystemFunctions.RTRIM,
            Arrays.asList( func ), TypeFacility.RUNTIME_TYPES.STRING);
       
        return Arrays.asList(trimFunc);   
    }
View Full Code Here

TOP

Related Classes of org.teiid.language.Function

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.