Class BeamCostModel
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Implementation ofRelOptCostFactory
that createsBeamCostModel
s. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic BeamCostModel
convertRelOptCost
(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost ic) double
divideBy
(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost cost) boolean
boolean
equals
(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost other) double
getCpu()
double
double
getIo()
double
getRows()
int
hashCode()
boolean
isEqWithEpsilon
(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost other) boolean
boolean
isLe
(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost other) boolean
isLt
(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost other) minus
(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost other) multiplyBy
(double factor) plus
(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost other) toString()
-
Field Details
-
FACTORY
-
-
Method Details
-
getCpu
public double getCpu()- Specified by:
getCpu
in interfaceorg.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost
-
isInfinite
public boolean isInfinite()- Specified by:
isInfinite
in interfaceorg.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost
-
getIo
public double getIo()- Specified by:
getIo
in interfaceorg.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 interfaceorg.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 interfaceorg.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost
-
getRows
public double getRows()- Specified by:
getRows
in interfaceorg.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost
-
hashCode
public int hashCode() -
equals
public boolean equals(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost other) - Specified by:
equals
in interfaceorg.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost
-
equals
-
isEqWithEpsilon
public boolean isEqWithEpsilon(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost other) - Specified by:
isEqWithEpsilon
in interfaceorg.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 interfaceorg.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost
-
multiplyBy
- Specified by:
multiplyBy
in interfaceorg.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 interfaceorg.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 interfaceorg.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost
-
toString
-
convertRelOptCost
public static BeamCostModel convertRelOptCost(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCost ic)
-