Class: ETL::Processor::RowProcessor

Inherits:
Processor
  • Object
show all
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)

Instance Method Summary collapse

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