Package org.teiid.query.mapping.xml

Examples of org.teiid.query.mapping.xml.MappingVisitor


   
   
    static void stageQueries(MappingDocument doc, final XMLPlannerEnvironment planEnv)
        throws QueryPlannerException, QueryMetadataException, TeiidComponentException {

        MappingVisitor queryPlanVisitor = new MappingVisitor() {
            public void visit(MappingSourceNode sourceNode) {
                try {
                    stagePlannedQuery(sourceNode, planEnv);
                } catch (Exception e) {
                    throw new TeiidRuntimeException(e);
View Full Code Here


public class XMLQueryPlanner {

    static void prePlanQueries(MappingDocument doc, final XMLPlannerEnvironment planEnv)
        throws QueryPlannerException, QueryMetadataException, TeiidComponentException {
       
        MappingVisitor queryPlanVisitor = new MappingVisitor() {
           
            public void visit(MappingBaseNode baseNode) {
                try {
                    // first if there are any explicit staging tables plan them first
                    List stagingTables = baseNode.getStagingTables();
View Full Code Here

    }
   
    static void optimizeQueries(MappingDocument doc, final XMLPlannerEnvironment planEnv)
        throws QueryPlannerException, QueryMetadataException, TeiidComponentException {

        MappingVisitor queryPlanVisitor = new MappingVisitor() {
            public void visit(MappingSourceNode sourceNode) {
                try {
                    ResultSetInfo rsInfo = sourceNode.getResultSetInfo();
               
                    if (rsInfo.isJoinedWithParent()) {
View Full Code Here

        throws QueryMetadataException, TeiidComponentException {

        NameInSourceResolverVisitor real = new NameInSourceResolverVisitor(planEnv);
       
        try {
            MappingVisitor visitor = new Navigator(true, real);
            doc.acceptVisitor(visitor);
        } catch (TeiidRuntimeException e) {
            if (e.getCause() instanceof QueryMetadataException) {
                throw (QueryMetadataException)e.getCause();
            }
View Full Code Here

   
    List getStagingTables(MappingDocument doc) {
        final List tables = new ArrayList();
       
        // visitor to extract all the explicit staging tables.
        MappingVisitor visitor = new MappingVisitor() {
            public void visit(MappingBaseNode baseNode) {
                if (baseNode.getStagingTables() != null) {
                    tables.addAll(baseNode.getStagingTables());
                }
            }
View Full Code Here

TOP

Related Classes of org.teiid.query.mapping.xml.MappingVisitor

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.