public RelOptCost getNonCumulativeCost(HiveJoin join, RelMetadataQuery mq) {
    return hiveCostModel.getJoinCost(join);
  }
HiveRelMdCost supplies the implementation of cost model.
ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/cost/HiveRelMdCost.java