org.teiid.query.optimizer
Class DdlPlanner

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

public class DdlPlanner
extends java.lang.Object
implements CommandPlanner


Constructor Summary
DdlPlanner()
           
 
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

DdlPlanner

public DdlPlanner()
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


Copyright © 2011. All Rights Reserved.