Skip to content
Snippets Groups Projects
Commit c2c1af39 authored by Kay Ousterhout's avatar Kay Ousterhout
Browse files

Updated code style according to Patrick's comments

parent b4619e50
No related branches found
No related tags found
No related merge requests found
......@@ -119,8 +119,7 @@ object StatsReportListener extends Logging {
val probabilities = percentiles.map{_ / 100.0}
val percentilesHeader = "\t" + percentiles.mkString("%\t") + "%"
def extractDoubleDistribution(
stage:SparkListenerStageCompleted,
def extractDoubleDistribution(stage: SparkListenerStageCompleted,
getMetric: (TaskInfo,TaskMetrics) => Option[Double])
: Option[Distribution] = {
Distribution(stage.stage.taskInfos.flatMap {
......@@ -128,8 +127,7 @@ object StatsReportListener extends Logging {
}
//is there some way to setup the types that I can get rid of this completely?
def extractLongDistribution(
stage:SparkListenerStageCompleted,
def extractLongDistribution(stage: SparkListenerStageCompleted,
getMetric: (TaskInfo,TaskMetrics) => Option[Long])
: Option[Distribution] = {
extractDoubleDistribution(stage, (info, metric) => getMetric(info,metric).map{_.toDouble})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment