class BeamCostModel implements RelOptCost {

  @Override
  public boolean isInfinite() {
    return (this.equals(INFINITY))
        || (this.cpu == Double.POSITIVE_INFINITY)
        || (this.cpuRate == Double.POSITIVE_INFINITY);
  }

    BeamCostModel(double cpu, double cpuRate);

}