Class: MapRedus::Adder
- Inherits:
-
Reducer
- Object
- QueueProcess
- Reducer
- MapRedus::Adder
- Defined in:
- lib/mapredus/default_classes.rb
Overview
REDUCERS####################################
Constant Summary
Constants inherited from Reducer
Class Method Summary collapse
Methods inherited from Reducer
Methods inherited from QueueProcess
Class Method Details
.reduce(value_list) {|value_list.reduce(0) { |r, v| r += v.to_i }| ... } ⇒ Object
32 33 34 |
# File 'lib/mapredus/default_classes.rb', line 32 def self.reduce(value_list) yield( value_list.reduce(0) { |r, v| r += v.to_i } ) end |