Class BeamCostModel
java.lang.Object
org.apache.beam.sdk.extensions.sql.impl.planner.BeamCostModel
- All Implemented Interfaces:
 org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost
public class BeamCostModel
extends Object
implements org.apache.beam.vendor.calcite.v1_40_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 classImplementation ofRelOptCostFactorythat createsBeamCostModels. - 
Field Summary
Fields - 
Method Summary
Modifier and TypeMethodDescriptionstatic BeamCostModelconvertRelOptCost(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost ic) doubledivideBy(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost cost) booleanbooleanequals(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost other) doublegetCpu()doubledoublegetIo()doublegetRows()inthashCode()booleanisEqWithEpsilon(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost other) booleanbooleanisLe(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost other) booleanisLt(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost other) minus(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost other) multiplyBy(double factor) plus(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost other) toString() 
- 
Field Details
- 
FACTORY
 
 - 
 - 
Method Details
- 
getCpu
public double getCpu()- Specified by:
 getCpuin interfaceorg.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost
 - 
isInfinite
public boolean isInfinite()- Specified by:
 isInfinitein interfaceorg.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost
 - 
getIo
public double getIo()- Specified by:
 getIoin interfaceorg.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost
 - 
getCpuRate
public double getCpuRate() - 
isLe
public boolean isLe(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost other) - Specified by:
 isLein interfaceorg.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost
 - 
isLt
public boolean isLt(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost other) - Specified by:
 isLtin interfaceorg.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost
 - 
getRows
public double getRows()- Specified by:
 getRowsin interfaceorg.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost
 - 
hashCode
public int hashCode() - 
equals
public boolean equals(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost other) - Specified by:
 equalsin interfaceorg.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost
 - 
equals
 - 
isEqWithEpsilon
public boolean isEqWithEpsilon(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost other) - Specified by:
 isEqWithEpsilonin interfaceorg.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost
 - 
minus
public BeamCostModel minus(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost other) - Specified by:
 minusin interfaceorg.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost
 - 
multiplyBy
- Specified by:
 multiplyByin interfaceorg.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost
 - 
divideBy
public double divideBy(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost cost) - Specified by:
 divideByin interfaceorg.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost
 - 
plus
public BeamCostModel plus(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost other) - Specified by:
 plusin interfaceorg.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost
 - 
toString
 - 
convertRelOptCost
public static BeamCostModel convertRelOptCost(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost ic)  
 -