Class: ETL::Processor::RowProcessor
- Defined in:
- lib/etl/processor/row_processor.rb
Overview
Processor which processes a specific row. Unlike a transformer, which deals with a specific value in the row, row processors can process an entire row at once, which can be used to explode a single row into multiple rows (for example)
Direct Known Subclasses
BlockProcessor, CheckExistProcessor, CheckUniqueProcessor, CopyFieldProcessor, HierarchyExploderProcessor, PrintRowProcessor, RenameProcessor, RequireNonBlankProcessor, SequenceProcessor, SurrogateKeyProcessor
Instance Method Summary collapse
-
#initialize(control, configuration) ⇒ RowProcessor
constructor
Initialize the processor.
-
#process(row) ⇒ Object
Process the specified row.
Constructor Details
#initialize(control, configuration) ⇒ RowProcessor
Initialize the processor
8 9 10 |
# File 'lib/etl/processor/row_processor.rb', line 8 def initialize(control, configuration) super end |
Instance Method Details
#process(row) ⇒ Object
Process the specified row. This method must return the row.
12 13 14 |
# File 'lib/etl/processor/row_processor.rb', line 12 def process(row) raise "process_row is an abstract method" end |