Package org.teiid.dqp.internal.process.multisource

Examples of org.teiid.dqp.internal.process.multisource.MultiSourceCapabilitiesFinder


        realFinder.addCapabilities(MULTI_MODEL, new AllCapabilities());

        // Set up the multi source finder, which will dynamically override a few capabilities
        List models = new ArrayList();
        models.add(MULTI_MODEL);
        MultiSourceCapabilitiesFinder finder = new MultiSourceCapabilitiesFinder(realFinder, models);
       
        // Test the single model to show that it is not affected
        SourceCapabilities singleCaps = finder.findCapabilities(SINGLE_MODEL);
        assertEquals(true, singleCaps.supportsCapability(Capability.QUERY_UNION));
        assertEquals(true, singleCaps.supportsCapability(Capability.QUERY_ORDERBY));
        assertEquals(true, singleCaps.supportsCapability(Capability.QUERY_SELECT_DISTINCT));
        assertEquals(true, singleCaps.supportsCapability(Capability.QUERY_AGGREGATES_AVG));

        // Test the multi model to show that it IS affected
        SourceCapabilities multiCaps = finder.findCapabilities(MULTI_MODEL);
        assertEquals(false, multiCaps.supportsCapability(Capability.QUERY_UNION));
        assertEquals(false, multiCaps.supportsCapability(Capability.QUERY_ORDERBY));
        assertEquals(false, multiCaps.supportsCapability(Capability.QUERY_SELECT_DISTINCT));
        assertEquals(false, multiCaps.supportsCapability(Capability.QUERY_AGGREGATES_AVG));
View Full Code Here


          // If using multi-source models, insert a proxy to simplify the supported capabilities.  This is
            // done OUTSIDE the cache (wrapped around the cache) intentionally to avoid caching the simplified
            // capabilities which may be different for the same model in a different VDB used by this same DQP.
          CapabilitiesFinder finder = this.capabilitiesFinder;
            if(this.multiSourceModels != null) {
                finder = new MultiSourceCapabilitiesFinder(finder, this.multiSourceModels);
            }
           
            boolean debug = analysisRecord.recordDebug();
        if(debug) {
          analysisRecord.println("\n============================================================================"); //$NON-NLS-1$
View Full Code Here

TOP

Related Classes of org.teiid.dqp.internal.process.multisource.MultiSourceCapabilitiesFinder

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.