Class: ETL::Processor::RowProcessor
- Inherits:
-
Processor
- Object
- Processor
- 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, DatabaseJoinProcessor, FilterRowProcessor, HierarchyExploderProcessor, PrintRowProcessor, RenameProcessor, RequireNonBlankProcessor, SequenceProcessor, SurrogateKeyProcessor
Instance Method Summary (collapse)
-
- (RowProcessor) initialize(control, configuration)
constructor
Initialize the processor.
-
- (Object) process(row)
Process the specified row.
Constructor Details
- (RowProcessor) initialize(control, configuration)
Initialize the processor
8 9 10 |
# File 'lib/etl/processor/row_processor.rb', line 8 def initialize(control, configuration) super end |
Instance Method Details
- (Object) process(row)
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 |