{"categories":["ruby"],"author_name":"takuya_1st","image_url":null,"author_url":"https://blog.hatena.ne.jp/takuya_1st/","description":"\u4e45\u3057\u3076\u308a\u306bRuby\u3092\u66f8\u304f\u3068\u4e0a\u6bb5\u306e\u3088\u3046\u306a\u66f8\u304d\u65b9\u3092\u3057\u3066\u30cf\u30de\u308b\u3053\u3068\u304c\u591a\u3044\u3002Array#inject \u3067Hash.new([])\u3092inject\u8a66\u307f\u3066\u5931\u6557\u3059\u308b\u3002\u307e\u305f\u30cf\u30de\u3063\u3066\u3057\u307e\u3063\u305f\u3002\u4ee5\u524d\u306fhadoop \u306e reduce \u3067 inject\u3092\u4f7f\u3063\u305freducer \u66f8\u3044\u3066\u3044\u3066\u30cf\u30de\u30c3\u3066\u308b\u3002\u30cf\u30de\u308a\u8a18\u9332\u307f\u3066\u6115\u7136\u3068\u3057\u305f\u3002\u540c\u3058\u5931\u6557\u3092\u307e\u305f\u7e70\u308a\u8fd4\u3057\u3066\u3044\u308b\u3002 #!/usr/bin/env ruby ## ruby 1.8.7 (2009-06-12 patchlevel 174) [i386-mswin32] \u3067\u5b9f\u9a13 (1..3).inject(Hash.new([])){|hash,item| hash[\"some_key\u2026","title":" \u914d\u5217\u3092\u8981\u7d20\u306b\u3082\u3064Hash\u306b\u3064\u3044\u3066  ","height":"190","version":"1.0","blog_url":"https://takuya-1st.hatenablog.jp/","provider_name":"Hatena Blog","width":"100%","blog_title":"\u305d\u308c\u30de\u30b0\u3067\uff01","published":"2010-09-21 15:13:55","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakuya-1st.hatenablog.jp%2Fentry%2F20100921%2F1285049635\" title=\" \u914d\u5217\u3092\u8981\u7d20\u306b\u3082\u3064Hash\u306b\u3064\u3044\u3066   - \u305d\u308c\u30de\u30b0\u3067\uff01\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://takuya-1st.hatenablog.jp/entry/20100921/1285049635","type":"rich"}