Package org.teiid.query.optimizer
Class DdlPlanner
- java.lang.Object
-
- org.teiid.query.optimizer.DdlPlanner
-
- All Implemented Interfaces:
CommandPlanner
public class DdlPlanner extends Object implements CommandPlanner
-
-
Constructor Summary
Constructors Constructor Description DdlPlanner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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 interfaceCommandPlanner
- Parameters:
command
- TODOmetadata
- source of metadatacapFinder
- Class usable to find the connector capabilities for a particular model- Returns:
- ProcessorPlan implementation specific to the CommandPlanner
- Throws:
QueryPlannerException
- indicating a problem in planningQueryMetadataException
- indicating an exception in accessing the metadataTeiidComponentException
- indicating an unexpected exception
-
-