Package org.apache.calcite.test
Class HepPlannerTest.HepTestListener
- java.lang.Object
-
- org.apache.calcite.test.HepPlannerTest.HepTestListener
-
- All Implemented Interfaces:
java.util.EventListener
,org.apache.calcite.plan.RelOptListener
- Enclosing class:
- HepPlannerTest
private class HepPlannerTest.HepTestListener extends java.lang.Object implements org.apache.calcite.plan.RelOptListener
Listener for HepPlannerTest; counts how many times rules fire.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.calcite.plan.RelOptListener
org.apache.calcite.plan.RelOptListener.RelChosenEvent, org.apache.calcite.plan.RelOptListener.RelDiscardedEvent, org.apache.calcite.plan.RelOptListener.RelEquivalenceEvent, org.apache.calcite.plan.RelOptListener.RelEvent, org.apache.calcite.plan.RelOptListener.RuleAttemptedEvent, org.apache.calcite.plan.RelOptListener.RuleEvent, org.apache.calcite.plan.RelOptListener.RuleProductionEvent
-
-
Field Summary
Fields Modifier and Type Field Description private long
applyTimes
-
Constructor Summary
Constructors Constructor Description HepTestListener(long applyTimes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) long
getApplyTimes()
void
relChosen(org.apache.calcite.plan.RelOptListener.RelChosenEvent event)
void
relDiscarded(org.apache.calcite.plan.RelOptListener.RelDiscardedEvent event)
void
relEquivalenceFound(org.apache.calcite.plan.RelOptListener.RelEquivalenceEvent event)
void
ruleAttempted(org.apache.calcite.plan.RelOptListener.RuleAttemptedEvent event)
void
ruleProductionSucceeded(org.apache.calcite.plan.RelOptListener.RuleProductionEvent event)
-
-
-
Method Detail
-
getApplyTimes
long getApplyTimes()
-
relEquivalenceFound
public void relEquivalenceFound(org.apache.calcite.plan.RelOptListener.RelEquivalenceEvent event)
- Specified by:
relEquivalenceFound
in interfaceorg.apache.calcite.plan.RelOptListener
-
ruleAttempted
public void ruleAttempted(org.apache.calcite.plan.RelOptListener.RuleAttemptedEvent event)
- Specified by:
ruleAttempted
in interfaceorg.apache.calcite.plan.RelOptListener
-
ruleProductionSucceeded
public void ruleProductionSucceeded(org.apache.calcite.plan.RelOptListener.RuleProductionEvent event)
- Specified by:
ruleProductionSucceeded
in interfaceorg.apache.calcite.plan.RelOptListener
-
relDiscarded
public void relDiscarded(org.apache.calcite.plan.RelOptListener.RelDiscardedEvent event)
- Specified by:
relDiscarded
in interfaceorg.apache.calcite.plan.RelOptListener
-
relChosen
public void relChosen(org.apache.calcite.plan.RelOptListener.RelChosenEvent event)
- Specified by:
relChosen
in interfaceorg.apache.calcite.plan.RelOptListener
-
-