LoginSignup
3
3

More than 5 years have passed since last update.

ruby で Map&Reduce

Posted at

データを data としたとき

map_reduce.rb
data.map{なんかの}.group_by{処理を}.reduce(行う){場所}

filter を挟んでも gsub を挟んでもいける。
これがほんとに役に立つのは Hadoop とからしい。
そんな大規模並列処理とかしないし…。

個人的に inject より reduce が好き。

Map&Reduceとは

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3