org.teiid.query.optimizer.relational.rules
Class RuleValidateWhereAll
java.lang.Object
org.teiid.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RuleValidateWhereAll
public RuleValidateWhereAll()
execute
public PlanNode execute(PlanNode plan,
QueryMetadataInterface metadata,
CapabilitiesFinder capFinder,
RuleStack rules,
AnalysisRecord analysisRecord,
CommandContext context)
throws QueryPlannerException,
QueryMetadataException,
TeiidComponentException
- 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
TeiidComponentException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2010. All Rights Reserved.