Package org.teiid.query.optimizer
Class ProcedurePlanner
- java.lang.Object
-
- org.teiid.query.optimizer.ProcedurePlanner
-
- All Implemented Interfaces:
CommandPlanner
public final class ProcedurePlanner extends Object implements CommandPlanner
This prepares an
ProcedurePlan
from a CreateUpdateProcedureCommandCreateUpdateProcedureCommand
.
-
-
Constructor Summary
Constructors Constructor Description ProcedurePlanner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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 interfaceCommandPlanner
- Parameters:
metadata
- source of metadataprocCommand
- TODOcapFinder
- Class usable to find the connector capabilities for a particular model- Returns:
- ProcessorPlan This processorPlan is a
ProcedurePlan
- Throws:
QueryPlannerException
- indicating a problem in planningQueryMetadataException
- indicating an exception in accessing the metadataTeiidComponentException
- indicating an unexpected exception
-
-