SPARK-3179. Add task OutputMetrics.

Is this just for the reference to RECORDS_BETWEEN_BYTES_WRITTEN_METRIC_UPDATES on line 1093?  If so, I think it would be better to just use PairRDDFunctions directly there, since I think it makes the code a little easier to read not to have these blanket imports.