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

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

public class RulePushLimit
extends java.lang.Object
implements OptimizerRule

Pushes limit nodes to their lowest points. This rule should only be run once. Should be run after all access nodes have been raised


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

Constructor Detail

RulePushLimit

public RulePushLimit()
Method Detail

execute

public PlanNode execute(PlanNode plan,
                        QueryMetadataInterface metadata,
                        CapabilitiesFinder capabilitiesFinder,
                        RuleStack rules,
                        AnalysisRecord analysisRecord,
                        CommandContext context)
                 throws QueryPlannerException,
                        QueryMetadataException,
                        MetaMatrixComponentException
Specified by:
execute in interface OptimizerRule
Throws:
QueryPlannerException
QueryMetadataException
MetaMatrixComponentException
See Also:
OptimizerRule.execute(com.metamatrix.query.optimizer.relational.plantree.PlanNode, com.metamatrix.query.metadata.QueryMetadataInterface, com.metamatrix.query.optimizer.capabilities.CapabilitiesFinder, com.metamatrix.query.optimizer.relational.RuleStack, com.metamatrix.query.analysis.AnalysisRecord, com.metamatrix.query.util.CommandContext)

toString

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


Copyright © 2009. All Rights Reserved.