Skip to content

Commit

Permalink
Remove unnecessary map() on return Iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
massie committed Jun 11, 2015
1 parent 4abb855 commit f458489
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@ private[spark] class HashShuffleReader[K, C](
}
} else {
require(!dep.mapSideCombine, "Map-side combine without Aggregator specified!")

// Convert the Product2s to pairs since this is what downstream RDDs currently expect
interruptibleIter.asInstanceOf[Iterator[Product2[K, C]]].map(pair => (pair._1, pair._2))
interruptibleIter.asInstanceOf[Iterator[Product2[K, C]]]
}

// Sort the output if there is a sort ordering defined.
Expand Down

0 comments on commit f458489

Please sign in to comment.