Skip to content

Commit

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

val nodeToSplit = new HashMap[String, HashSet[SplitInfo]]
Expand All @@ -178,6 +178,6 @@ object InputFormatInfo {
}
}

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

0 comments on commit 17e2907

Please sign in to comment.