Class 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • applyTimes

        private long applyTimes
    • Constructor Detail

      • HepTestListener

        HepTestListener​(long applyTimes)
    • Method Detail

      • getApplyTimes

        long getApplyTimes()
      • relEquivalenceFound

        public void relEquivalenceFound​(org.apache.calcite.plan.RelOptListener.RelEquivalenceEvent event)
        Specified by:
        relEquivalenceFound in interface org.apache.calcite.plan.RelOptListener
      • ruleAttempted

        public void ruleAttempted​(org.apache.calcite.plan.RelOptListener.RuleAttemptedEvent event)
        Specified by:
        ruleAttempted in interface org.apache.calcite.plan.RelOptListener
      • ruleProductionSucceeded

        public void ruleProductionSucceeded​(org.apache.calcite.plan.RelOptListener.RuleProductionEvent event)
        Specified by:
        ruleProductionSucceeded in interface org.apache.calcite.plan.RelOptListener
      • relDiscarded

        public void relDiscarded​(org.apache.calcite.plan.RelOptListener.RelDiscardedEvent event)
        Specified by:
        relDiscarded in interface org.apache.calcite.plan.RelOptListener
      • relChosen

        public void relChosen​(org.apache.calcite.plan.RelOptListener.RelChosenEvent event)
        Specified by:
        relChosen in interface org.apache.calcite.plan.RelOptListener