public class BeamCostModel
extends java.lang.Object
implements org.apache.beam.vendor.calcite.v1_20_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.
Modifier and Type | Class and Description |
---|---|
static class |
BeamCostModel.Factory
Implementation of
RelOptCostFactory that creates
BeamCostModel s. |
Modifier and Type | Field and Description |
---|---|
static BeamCostModel.Factory |
FACTORY |
Modifier and Type | Method and Description |
---|---|
static BeamCostModel |
convertRelOptCost(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCost ic) |
double |
divideBy(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCost cost) |
boolean |
equals(@Nullable java.lang.Object obj) |
boolean |
equals(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCost other) |
double |
getCpu() |
double |
getCpuRate() |
double |
getIo() |
double |
getRows() |
int |
hashCode() |
boolean |
isEqWithEpsilon(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCost other) |
boolean |
isInfinite() |
boolean |
isLe(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCost other) |
boolean |
isLt(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCost other) |
BeamCostModel |
minus(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCost other) |
BeamCostModel |
multiplyBy(double factor) |
BeamCostModel |
plus(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCost other) |
java.lang.String |
toString() |
public static final BeamCostModel.Factory FACTORY
public double getCpu()
getCpu
in interface org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCost
public boolean isInfinite()
isInfinite
in interface org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCost
public double getIo()
getIo
in interface org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCost
public double getCpuRate()
public boolean isLe(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCost other)
isLe
in interface org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCost
public boolean isLt(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCost other)
isLt
in interface org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCost
public double getRows()
getRows
in interface org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCost
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCost other)
equals
in interface org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCost
public boolean equals(@Nullable java.lang.Object obj)
equals
in class java.lang.Object
public boolean isEqWithEpsilon(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCost other)
isEqWithEpsilon
in interface org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCost
public BeamCostModel minus(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCost other)
minus
in interface org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCost
public BeamCostModel multiplyBy(double factor)
multiplyBy
in interface org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCost
public double divideBy(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCost cost)
divideBy
in interface org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCost
public BeamCostModel plus(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCost other)
plus
in interface org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCost
public java.lang.String toString()
toString
in interface org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCost
toString
in class java.lang.Object
public static BeamCostModel convertRelOptCost(org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.plan.RelOptCost ic)