Class MockRelOptCost

  • All Implemented Interfaces:
    org.apache.calcite.plan.RelOptCost

    public class MockRelOptCost
    extends java.lang.Object
    implements org.apache.calcite.plan.RelOptCost
    MockRelOptCost is a mock implementation of the RelOptCost interface. TODO: constructors for various scenarios
    • Constructor Summary

      Constructors 
      Constructor Description
      MockRelOptCost()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double divideBy​(org.apache.calcite.plan.RelOptCost cost)  
      boolean equals​(java.lang.Object obj)  
      boolean equals​(org.apache.calcite.plan.RelOptCost cost)  
      double getCpu()  
      double getIo()  
      double getRows()  
      int hashCode()  
      boolean isEqWithEpsilon​(org.apache.calcite.plan.RelOptCost cost)  
      boolean isInfinite()  
      boolean isLe​(org.apache.calcite.plan.RelOptCost cost)  
      boolean isLt​(org.apache.calcite.plan.RelOptCost cost)  
      org.apache.calcite.plan.RelOptCost minus​(org.apache.calcite.plan.RelOptCost cost)  
      org.apache.calcite.plan.RelOptCost multiplyBy​(double factor)  
      org.apache.calcite.plan.RelOptCost plus​(org.apache.calcite.plan.RelOptCost cost)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MockRelOptCost

        public MockRelOptCost()
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getCpu

        public double getCpu()
        Specified by:
        getCpu in interface org.apache.calcite.plan.RelOptCost
      • isInfinite

        public boolean isInfinite()
        Specified by:
        isInfinite in interface org.apache.calcite.plan.RelOptCost
      • getIo

        public double getIo()
        Specified by:
        getIo in interface org.apache.calcite.plan.RelOptCost
      • isLe

        public boolean isLe​(org.apache.calcite.plan.RelOptCost cost)
        Specified by:
        isLe in interface org.apache.calcite.plan.RelOptCost
      • isLt

        public boolean isLt​(org.apache.calcite.plan.RelOptCost cost)
        Specified by:
        isLt in interface org.apache.calcite.plan.RelOptCost
      • getRows

        public double getRows()
        Specified by:
        getRows in interface org.apache.calcite.plan.RelOptCost
      • equals

        public boolean equals​(org.apache.calcite.plan.RelOptCost cost)
        Specified by:
        equals in interface org.apache.calcite.plan.RelOptCost
      • isEqWithEpsilon

        public boolean isEqWithEpsilon​(org.apache.calcite.plan.RelOptCost cost)
        Specified by:
        isEqWithEpsilon in interface org.apache.calcite.plan.RelOptCost
      • minus

        public org.apache.calcite.plan.RelOptCost minus​(org.apache.calcite.plan.RelOptCost cost)
        Specified by:
        minus in interface org.apache.calcite.plan.RelOptCost
      • multiplyBy

        public org.apache.calcite.plan.RelOptCost multiplyBy​(double factor)
        Specified by:
        multiplyBy in interface org.apache.calcite.plan.RelOptCost
      • divideBy

        public double divideBy​(org.apache.calcite.plan.RelOptCost cost)
        Specified by:
        divideBy in interface org.apache.calcite.plan.RelOptCost
      • plus

        public org.apache.calcite.plan.RelOptCost plus​(org.apache.calcite.plan.RelOptCost cost)
        Specified by:
        plus in interface org.apache.calcite.plan.RelOptCost
      • toString

        public java.lang.String toString()
        Specified by:
        toString in interface org.apache.calcite.plan.RelOptCost
        Overrides:
        toString in class java.lang.Object