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

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

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

Validates that the any atomic query being sent to a model where the model requires a criteria actually has a criteria. This rule will detect this case and throw an exception. This rule does not actually modify anything in the plan itself.


Constructor Summary
RuleValidateWhereAll()
           
 
Method Summary
 PlanNode execute(PlanNode plan, QueryMetadataInterface metadata, CapabilitiesFinder capFinder, RuleStack rules, AnalysisRecord analysisRecord, CommandContext context)
          Verifies that a model with "supports where all" is being passed an atomic query with a criteria.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RuleValidateWhereAll

public RuleValidateWhereAll()
Method Detail

execute

public PlanNode execute(PlanNode plan,
                        QueryMetadataInterface metadata,
                        CapabilitiesFinder capFinder,
                        RuleStack rules,
                        AnalysisRecord analysisRecord,
                        CommandContext context)
                 throws QueryPlannerException,
                        QueryMetadataException,
                        MetaMatrixComponentException
Verifies that a model with "supports where all" is being passed an atomic query with a criteria.

Specified by:
execute in interface OptimizerRule
Throws:
QueryPlannerException - if property is not satisfied
QueryMetadataException
MetaMatrixComponentException
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.