com.metamatrix.query.optimizer.relational.rules
Class RuleAccessPatternValidation

java.lang.Object
  extended by com.metamatrix.query.optimizer.relational.rules.RuleAccessPatternValidation
All Implemented Interfaces:
OptimizerRule

public final class RuleAccessPatternValidation
extends java.lang.Object
implements OptimizerRule

Validates that the access pattern(s) of a source are satisfied. This means that, during planning, exactly the required criteria specified by only one (if any) access pattern has been pushed down to the source (in the atomic query). Currently this rule just checks for a node property that was set elsewhere, in the RuleChooseAccessPattern rule.


Constructor Summary
RuleAccessPatternValidation()
           
 
Method Summary
 PlanNode execute(PlanNode plan, QueryMetadataInterface metadata, CapabilitiesFinder capFinder, RuleStack rules, AnalysisRecord analysisRecord, CommandContext context)
          Verifies
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RuleAccessPatternValidation

public RuleAccessPatternValidation()
Method Detail

execute

public PlanNode execute(PlanNode plan,
                        QueryMetadataInterface metadata,
                        CapabilitiesFinder capFinder,
                        RuleStack rules,
                        AnalysisRecord analysisRecord,
                        CommandContext context)
                 throws QueryPlannerException
Verifies

Specified by:
execute in interface OptimizerRule
Throws:
QueryPlannerException - if an access pattern has not been satisfied
See Also:
com.metamatrix.query.optimizer.OptimizerRule#execute(PlanNode, QueryMetadataInterface, RuleStack)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009. All Rights Reserved.