Class: Ductr::ETLJob
- Includes:
- Ductr::ETL::Parser, JobETLRunner
- Defined in:
- lib/ductr/etl_job.rb
Overview
Base class for ETL job using the experimental fiber runner. Usage example:
class MyETLJob < Ductr::ETLJob
source :first_db, :basic
send_to :the_transform, :the_other_transform
def the_source(db)
# ...
end
transform
send_to :the_destination
def the_transform(row)
# ...
end
destination :first_db, :basic
def the_destination(row, db)
# ...
end
transform
send_to :the_other_destination
def the_other_transform(row)
# ...
end
destination :second_db, :basic
def the_other_destination(row, db)
# ...
end
end
Constant Summary collapse
- ETL_RUNNER_CLASS =
Returns The ETL runner class used by the job.
ETL::FiberRunner
Instance Attribute Summary
Attributes inherited from Job
Class Method Summary collapse
-
.destination(adapter_name, destination_type, **destination_options) ⇒ void
Annotation to define a destination method.
-
.lookup(adapter_name, lookup_type, **lookup_options) ⇒ void
Annotation to define a lookup method.
-
.send_to(*methods) ⇒ void
Annotation to define which methods will follow the current one.
-
.source(adapter_name, source_type, **source_options) ⇒ void
Annotation to define a source method.
-
.transform(transform_class, **transform_options) ⇒ void
Annotation to define a transform method.
Methods included from Ductr::ETL::Parser
Methods included from JobETLRunner
Methods inherited from Job
#adapter, #logger, #perform, #run
Methods included from JobStatus
Class Method Details
.destination(adapter_name, destination_type, **destination_options) ⇒ void
This method returns an undefined value.
Annotation to define a destination method
133 |
# File 'lib/ductr/etl_job.rb', line 133 annotable :destination |
.lookup(adapter_name, lookup_type, **lookup_options) ⇒ void
This method returns an undefined value.
Annotation to define a lookup method
114 |
# File 'lib/ductr/etl_job.rb', line 114 annotable :lookup |
.send_to(*methods) ⇒ void
This method returns an undefined value.
Annotation to define which methods will follow the current one
159 |
# File 'lib/ductr/etl_job.rb', line 159 annotable :send_to |
.source(adapter_name, source_type, **source_options) ⇒ void
This method returns an undefined value.
Annotation to define a source method
62 |
# File 'lib/ductr/etl_job.rb', line 62 annotable :source |
.transform(transform_class, **transform_options) ⇒ void
This method returns an undefined value.
Annotation to define a transform method
95 |
# File 'lib/ductr/etl_job.rb', line 95 annotable :transform |