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 java.lang.Object implements org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCostVolcanoCostrepresents the cost of a plan node.This class is immutable: none of the methods modify any member variables.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBeamCostModel.FactoryImplementation ofRelOptCostFactorythat createsBeamCostModels.
-
Field Summary
Fields Modifier and Type Field Description static BeamCostModel.FactoryFACTORY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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)booleanequals(@Nullable java.lang.Object obj)booleanequals(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost other)doublegetCpu()doublegetCpuRate()doublegetIo()doublegetRows()inthashCode()booleanisEqWithEpsilon(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost other)booleanisInfinite()booleanisLe(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)BeamCostModelminus(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost other)BeamCostModelmultiplyBy(double factor)BeamCostModelplus(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost other)java.lang.StringtoString()
-
-
-
Field Detail
-
FACTORY
public static final BeamCostModel.Factory FACTORY
-
-
Method Detail
-
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()
- Overrides:
hashCodein classjava.lang.Object
-
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
public boolean equals(@Nullable java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
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
public BeamCostModel multiplyBy(double factor)
- 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
public java.lang.String toString()
- Specified by:
toStringin interfaceorg.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost- Overrides:
toStringin classjava.lang.Object
-
convertRelOptCost
public static BeamCostModel convertRelOptCost(org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.plan.RelOptCost ic)
-
-