Commit 8f8b7e5e authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Change data to stats

parent a531c9bf
......@@ -108,10 +108,10 @@ class WriteSummary(val root: Configurable) extends InProcessFunction with Config
* @return
*/
def parseSummarizable(summarizable: Summarizable, name: String) = {
val data = summarizable.summaryStats
val stats = summarizable.summaryStats
val files = parseFiles(summarizable.summaryFiles)
(if (data.isEmpty) Map[String, Any]() else Map("stats" -> Map(name -> data))) ++
(if (stats.isEmpty) Map[String, Any]() else Map("stats" -> Map(name -> stats))) ++
(if (files.isEmpty) Map[String, Any]() else Map("files" -> Map(name -> files)))
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment