Commit 112f7b4b authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Simplify scaladocs

parent 5ea97ae7
...@@ -129,12 +129,7 @@ class WriteSummary(val root: Configurable) extends InProcessFunction with Config ...@@ -129,12 +129,7 @@ class WriteSummary(val root: Configurable) extends InProcessFunction with Config
} }
} }
/** /** Convert summarizable to a summary map */
* Convert summarizable to a summary map
* @param summarizable
* @param name
* @return
*/
def parseSummarizable(summarizable: Summarizable, name: String) = { def parseSummarizable(summarizable: Summarizable, name: String) = {
val stats = summarizable.summaryStats val stats = summarizable.summaryStats
val files = parseFiles(summarizable.summaryFiles) val files = parseFiles(summarizable.summaryFiles)
...@@ -143,20 +138,12 @@ class WriteSummary(val root: Configurable) extends InProcessFunction with Config ...@@ -143,20 +138,12 @@ class WriteSummary(val root: Configurable) extends InProcessFunction with Config
(if (files.isEmpty) Map[String, Any]() else Map("files" -> Map(name -> files))) (if (files.isEmpty) Map[String, Any]() else Map("files" -> Map(name -> files)))
} }
/** /** Parse files map to summary map */
* Parse files map to summary map
* @param files
* @return
*/
def parseFiles(files: Map[String, File]): Map[String, Map[String, Any]] = { def parseFiles(files: Map[String, File]): Map[String, Map[String, Any]] = {
for ((key, file) <- files) yield key -> parseFile(file) for ((key, file) <- files) yield key -> parseFile(file)
} }
/** /** parse single file summary map */
* parse single file summary map
* @param file
* @return
*/
def parseFile(file: File): Map[String, Any] = { def parseFile(file: File): Map[String, Any] = {
val map: mutable.Map[String, Any] = mutable.Map() val map: mutable.Map[String, Any] = mutable.Map()
map += "path" -> file.getAbsolutePath map += "path" -> file.getAbsolutePath
...@@ -164,11 +151,7 @@ class WriteSummary(val root: Configurable) extends InProcessFunction with Config ...@@ -164,11 +151,7 @@ class WriteSummary(val root: Configurable) extends InProcessFunction with Config
map.toMap map.toMap
} }
/** /** Retrive checksum from file */
* Retrive checksum from file
* @param checksumFile
* @return
*/
def parseChecksum(checksumFile: File): String = { def parseChecksum(checksumFile: File): String = {
Source.fromFile(checksumFile).getLines().toList.head.split(" ")(0) Source.fromFile(checksumFile).getLines().toList.head.split(" ")(0)
} }
......
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