Package org.teiid.query.optimizer.capabilities

Examples of org.teiid.query.optimizer.capabilities.SourceCapabilities.supportsFunction()


        Schema schema = function.getFunctionDescriptor().getMethod().getParent();
        if (schema == null) {
            // Find capabilities
            SourceCapabilities caps = getCapabilities(modelID, metadata, capFinder);

            if (!caps.supportsFunction(function.getFunctionDescriptor().getName().toLowerCase())) {
                return false;
            }
        } else if (!schema.getFullName().equalsIgnoreCase(metadata.getFullName(modelID))) {
          return false; //not the right schema
        }
View Full Code Here


       
        CachedFinder finder = new CachedFinder(repo, vdb);
       
        // Test
        SourceCapabilities actual = finder.findCapabilities(modelName);
        assertEquals("Did not get expected capabilities", true, actual.supportsFunction(functionName)); //$NON-NLS-1$
    }

   
    public void testPushdownFunctionSupport() throws Exception {
      ExecutionFactory<Object, Object> ef  = new ExecutionFactory<Object, Object>(){
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.