public boolean isLe(RelOptCost other) {
    if ( (this.cpu + this.io < other.getCpu() + other.getIo()) ||
          ((this.cpu + this.io == other.getCpu() + other.getIo()) &&
          (this.rowCount <= other.getRows()))) {
      return true;
    }
    return false;
  }
NOTE:<br>
1. HiveCost normalizes cpu and io in to time.<br>
2. CPU, IO cost is added together to find the query latency.<br>
3. If query latency is equal then row count is compared.
ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/cost/HiveCost.java