Module: Itiel::Transform::ChainedStep
- Included in:
- CalculatedColumns, ConstantColumn, MapValues, RemoveColumn, RenameColumn, SelectColumn
- Defined in:
- lib/itiel/transform/chained_step.rb
Overview
Defined the behavior of the Transformation and how they handle the data stream.
All classes including this module should implement a transform! method that does the real transformation.
Than method will be called as soon as the transformation receives input.
Instance Attribute Summary collapse
-
#next_step ⇒ Object
Returns the value of attribute next_step.
Instance Method Summary collapse
Instance Attribute Details
#next_step ⇒ Object
Returns the value of attribute next_step.
14 15 16 |
# File 'lib/itiel/transform/chained_step.rb', line 14 def next_step @next_step end |
Instance Method Details
#input=(stream) ⇒ Object
18 19 20 |
# File 'lib/itiel/transform/chained_step.rb', line 18 def input=(stream) next_step.input = transform!(stream) end |
#transform!(stream) ⇒ Object
22 23 24 |
# File 'lib/itiel/transform/chained_step.rb', line 22 def transform!(stream) raise Itiel::MethodNotImplementedException.new "You need to define the transform! method in the implementing class" end |