org.teiid.query.optimizer
Class ProcedurePlanner

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

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

This prepares an ProcedurePlan from a CreateUpdateProcedureCommand CreateUpdateProcedureCommand.


Constructor Summary
ProcedurePlanner()
           
 
Method Summary
 ProcessorPlan optimize(Command procCommand, IDGenerator idGenerator, QueryMetadataInterface metadata, CapabilitiesFinder capFinder, AnalysisRecord analysisRecord, CommandContext context)
          Produce a ProcessorPlan for the CreateUpdateProcedureCommand on the current node of the CommandTreeNode, the procedure plan construction involves using the child processor plans.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcedurePlanner

public ProcedurePlanner()
Method Detail

optimize

public ProcessorPlan optimize(Command procCommand,
                              IDGenerator idGenerator,
                              QueryMetadataInterface metadata,
                              CapabilitiesFinder capFinder,
                              AnalysisRecord analysisRecord,
                              CommandContext context)
                       throws QueryPlannerException,
                              QueryMetadataException,
                              TeiidComponentException

Produce a ProcessorPlan for the CreateUpdateProcedureCommand on the current node of the CommandTreeNode, the procedure plan construction involves using the child processor plans.

Specified by:
optimize in interface CommandPlanner
Parameters:
metadata - source of metadata
debug - whether or not to generate verbose debug output during planning
Returns:
ProcessorPlan This processorPlan is a ProcedurePlan
Throws:
QueryPlannerException - indicating a problem in planning
QueryMetadataException - indicating an exception in accessing the metadata
TeiidComponentException - indicating an unexpected exception


Copyright © 2010. All Rights Reserved.