java.lang.Object
org.apache.beam.sdk.extensions.sql.impl.planner.BeamCostModel
All Implemented Interfaces:
org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost

public class BeamCostModel extends Object implements org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost
VolcanoCost represents the cost of a plan node.

This class is immutable: none of the methods modify any member variables.

  • Field Details

  • Method Details

    • getCpu

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

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

      public double getIo()
      Specified by:
      getIo in interface org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost
    • getCpuRate

      public double getCpuRate()
    • isLe

      public boolean isLe(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost other)
      Specified by:
      isLe in interface org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost
    • isLt

      public boolean isLt(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost other)
      Specified by:
      isLt in interface org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost
    • getRows

      public double getRows()
      Specified by:
      getRows in interface org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost other)
      Specified by:
      equals in interface org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost
    • equals

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object
    • isEqWithEpsilon

      public boolean isEqWithEpsilon(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost other)
      Specified by:
      isEqWithEpsilon in interface org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost
    • minus

      public BeamCostModel minus(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost other)
      Specified by:
      minus in interface org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost
    • multiplyBy

      public BeamCostModel multiplyBy(double factor)
      Specified by:
      multiplyBy in interface org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost
    • divideBy

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

      public BeamCostModel plus(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost other)
      Specified by:
      plus in interface org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost
    • toString

      public String toString()
      Specified by:
      toString in interface org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost
      Overrides:
      toString in class Object
    • convertRelOptCost

      public static BeamCostModel convertRelOptCost(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost ic)