Class: Chronicle::ETL::Loader
- Inherits:
-
Object
- Object
- Chronicle::ETL::Loader
- Extended by:
- Registry::SelfRegistering
- Defined in:
- lib/chronicle/etl/loaders/loader.rb
Overview
Abstract class representing a Loader for an ETL job
Direct Known Subclasses
Instance Attribute Summary
Attributes included from Registry::SelfRegistering
Instance Method Summary collapse
-
#finish ⇒ Object
Called once there are no more records to process.
-
#initialize(options = {}) ⇒ Loader
constructor
Construct a new instance of this loader.
-
#load ⇒ Object
Load a single record.
-
#start ⇒ Object
Called once before processing records.
Methods included from Registry::SelfRegistering
Methods included from Chronicle::ETL::Loaders::Helpers::EncodingHelper
Methods included from Configurable
Constructor Details
#initialize(options = {}) ⇒ Loader
Construct a new instance of this loader. Options are passed in from a Runner == Parameters: options:: Options for configuring this Loader
21 22 23 |
# File 'lib/chronicle/etl/loaders/loader.rb', line 21 def initialize( = {}) () end |
Instance Method Details
#finish ⇒ Object
Called once there are no more records to process
34 |
# File 'lib/chronicle/etl/loaders/loader.rb', line 34 def finish; end |
#load ⇒ Object
Load a single record
29 30 31 |
# File 'lib/chronicle/etl/loaders/loader.rb', line 29 def load raise NotImplementedError end |
#start ⇒ Object
Called once before processing records
26 |
# File 'lib/chronicle/etl/loaders/loader.rb', line 26 def start; end |