Class: Droonga::Plugins::Basic::ReduceCollector
- Defined in:
- lib/droonga/plugins/basic.rb
Instance Method Summary collapse
Methods inherited from Collector
Methods included from Droonga::Pluggable
Constructor Details
This class inherits a constructor from Droonga::Collector
Instance Method Details
#collect(message) ⇒ Object
42 43 44 45 46 47 48 49 50 |
# File 'lib/droonga/plugins/basic.rb', line 42 def collect() .input.each do |output_name, deal| left_value = .values[output_name] right_value = .value reducer = Reducer.new(deal) value = reducer.reduce(left_value, right_value) .values[output_name] = value end end |