Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Mridul Muralidharan committed Apr 3, 2014
1 parent 17e2907 commit df747af
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,7 @@ object InputFormatInfo {
PS: I know the wording here is weird, hopefully it makes some sense !
*/
def computePreferredLocations(formats: Seq[InputFormatInfo]): Map[String, Set[SplitInfo]]
= {
def computePreferredLocations(formats: Seq[InputFormatInfo]): Map[String, Set[SplitInfo]] = {

val nodeToSplit = new HashMap[String, HashSet[SplitInfo]]
for (inputSplit <- formats) {
Expand All @@ -178,6 +177,6 @@ object InputFormatInfo {
}
}

nodeToSplit.map(entry => entry._1 -> entry._2.toSet).toMap
nodeToSplit.mapValues(_.toSet).toMap
}
}

0 comments on commit df747af

Please sign in to comment.