hello world!!!!!

写下自己的一些心得,写下自己问题的方式,写下程序之路的艰辛,希望能够有朝一日成为大牛。
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

reducer 的功能.(叙述他已经包含的类型)

Posted on 2011-12-17 02:06  陈力  阅读(215)  评论(0编辑  收藏  举报

When the reducer task receives the output from the various mappers, it sorts the
incoming data on the key of the (key/value) pair and groups together all values of
the same key.

当reducer task接受到从不同r的mappers接受到输出时,他进行排序,并且进行累加。

 

Table 3.3 Some useful Reducer implementations predefined by Hadoop
Class Description
IdentityReducer<K,V> Implements Reducer<K,V,K,V> and maps inputs directly to outputs
LongSumReducer<K> Implements Reducer<K,LongWritable,K,LongWritable> and
determines the sum of all values corresponding to the given key