Class: Wukong::Streamer::Reducer
- Inherits:
-
ListReducer
- Object
- Base
- AccumulatingReducer
- ListReducer
- Wukong::Streamer::Reducer
- Defined in:
- lib/wukong/streamer/reducer.rb
Instance Attribute Summary
Attributes inherited from ListReducer
Attributes inherited from AccumulatingReducer
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from ListReducer
Methods inherited from AccumulatingReducer
#accumulate, #after_stream, #before_stream, #get_key, #process, #start!
Methods inherited from Base
#after_stream, #bad_record!, #before_stream, #each_record, #emit, #initialize, #mapper, mapper, #monitor, #options, #process, #recordize, #run, run, #stream, #track
Constructor Details
This class inherits a constructor from Wukong::Streamer::Base
Instance Method Details
#finalize(&block) ⇒ Object
5 6 7 |
# File 'lib/wukong/streamer/reducer.rb', line 5 def finalize &block reduce @values, &block end |