org.teiid.query.optimizer.xml
Class XMLPlanner

java.lang.Object
  extended by org.teiid.query.optimizer.xml.XMLPlanner
All Implemented Interfaces:
CommandPlanner

public final class XMLPlanner
extends java.lang.Object
implements CommandPlanner

This prepares an XMLPlan from a Mapping Document structure of MappingNodes.


Constructor Summary
XMLPlanner()
          Default constructor.
 
Method Summary
 ProcessorPlan optimize(Command command, IDGenerator idGenerator, QueryMetadataInterface metadata, CapabilitiesFinder capFinder, AnalysisRecord analysisRecord, CommandContext context)
          Allows the planner a chance to optimize the canonical plan(s) stored in the CommandTreeNode tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLPlanner

public XMLPlanner()
Default constructor. Since this object is stateless the constructor has nothing to do.

Method Detail

optimize

public ProcessorPlan optimize(Command command,
                              IDGenerator idGenerator,
                              QueryMetadataInterface metadata,
                              CapabilitiesFinder capFinder,
                              AnalysisRecord analysisRecord,
                              CommandContext context)
                       throws QueryPlannerException,
                              QueryMetadataException,
                              TeiidComponentException
Description copied from interface: CommandPlanner
Allows the planner a chance to optimize the canonical plan(s) stored in the CommandTreeNode tree. This method should be called in a bottom-up manner; from leaf nodes up to the root node.

Specified by:
optimize in interface CommandPlanner
Parameters:
command - TODO
metadata - source of metadata
capFinder - Class usable to find the connector capabilities for a particular model
Returns:
ProcessorPlan implementation specific to the CommandPlanner
Throws:
QueryPlannerException - indicating a problem in planning
QueryMetadataException - indicating an exception in accessing the metadata
TeiidComponentException - indicating an unexpected exception
See Also:
CommandPlanner.optimize(org.teiid.query.sql.lang.Command, org.teiid.core.id.IDGenerator, org.teiid.query.metadata.QueryMetadataInterface, org.teiid.query.optimizer.capabilities.CapabilitiesFinder, org.teiid.query.analysis.AnalysisRecord, org.teiid.query.util.CommandContext)


Copyright © 2010. All Rights Reserved.