|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.query.optimizer.batch.BatchedUpdatePlanner
public class BatchedUpdatePlanner
Planner for BatchedUpdateCommands
| Constructor Summary | |
|---|---|
BatchedUpdatePlanner()
|
|
| Method Summary | |
|---|---|
void |
generateCanonical(CommandTreeNode rootNode,
QueryMetadataInterface metadata,
AnalysisRecord analysisRecord,
CommandContext context)
Requests that the planner generate the canonical plan(s) for the Command object(s) represented by the CommandTreeNode tree parameter. |
static GroupSymbol |
getUpdatedGroup(Command command)
Get the group being updated by the update command |
static boolean |
isEligibleForBatching(Command command,
QueryMetadataInterface metadata)
Returns whether a command can be placed in a connector batch |
ProcessorPlan |
optimize(CommandTreeNode node,
IDGenerator idGenerator,
QueryMetadataInterface metadata,
CapabilitiesFinder capFinder,
AnalysisRecord analysisRecord,
CommandContext context)
Optimizes batched updates by batching all contiguous commands that relate to the same physical model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BatchedUpdatePlanner()
| Method Detail |
|---|
public void generateCanonical(CommandTreeNode rootNode,
QueryMetadataInterface metadata,
AnalysisRecord analysisRecord,
CommandContext context)
throws QueryPlannerException,
QueryMetadataException,
MetaMatrixComponentException
CommandPlannerRequests that the planner generate the canonical plan(s) for the Command object(s) represented by the CommandTreeNode tree parameter. The canonical plan(s) should be added to the node(s) of the tree rooted at rootNode.
It may or may not make sense for a specific implementation of this
Class to create a canonical plan. It may be that all planning can be done
during the call to CommandPlanner.optimize(com.metamatrix.query.optimizer.CommandTreeNode, com.metamatrix.core.id.IDGenerator, com.metamatrix.query.metadata.QueryMetadataInterface, com.metamatrix.query.optimizer.capabilities.CapabilitiesFinder, com.metamatrix.query.analysis.AnalysisRecord, com.metamatrix.query.util.CommandContext)
generateCanonical in interface CommandPlannerrootNode - tree of CommandTreeNode object(s) rooted at rootNode
QueryPlannerException - indicating a problem in planning
MetaMatrixComponentException - indicating an unexpected exception
QueryMetadataExceptionCommandPlanner.generateCanonical(com.metamatrix.query.optimizer.CommandTreeNode, com.metamatrix.query.metadata.QueryMetadataInterface, com.metamatrix.query.analysis.AnalysisRecord, CommandContext)
public ProcessorPlan optimize(CommandTreeNode node,
IDGenerator idGenerator,
QueryMetadataInterface metadata,
CapabilitiesFinder capFinder,
AnalysisRecord analysisRecord,
CommandContext context)
throws QueryPlannerException,
QueryMetadataException,
MetaMatrixComponentException
optimize in interface CommandPlannernode - root of a tree (or subtree) of CommandTreeNode objects, each of
which should have its canonical planmetadata - source of metadatacapFinder - Class usable to find the connector capabilities for a particular model
QueryPlannerException - indicating a problem in planning
QueryMetadataException - indicating an exception in accessing the metadata
MetaMatrixComponentException - indicating an unexpected exceptionCommandPlanner.optimize(com.metamatrix.query.optimizer.CommandTreeNode, com.metamatrix.core.id.IDGenerator, com.metamatrix.query.metadata.QueryMetadataInterface, com.metamatrix.query.optimizer.capabilities.CapabilitiesFinder, com.metamatrix.query.analysis.AnalysisRecord, CommandContext)public static GroupSymbol getUpdatedGroup(Command command)
command - an INSERT, UPDATE, DELETE or SELECT INTO command
public static boolean isEligibleForBatching(Command command,
QueryMetadataInterface metadata)
throws QueryMetadataException,
MetaMatrixComponentException
command - an update commandmetadata -
QueryMetadataException
MetaMatrixComponentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||