lib/chronicle/etl/loaders/loader.rb in chronicle-etl-0.1.4 vs lib/chronicle/etl/loaders/loader.rb in chronicle-etl-0.2.0

- old
+ new

@@ -1,19 +1,27 @@ module Chronicle - module Etl + module ETL + # Abstract class representing a Loader for an ETL job class Loader - extend Chronicle::Etl::Catalog + extend Chronicle::ETL::Catalog + # Construct a new instance of this loader. Options are passed in from a Runner + # == Paramters: + # options:: + # Options for configuring this Loader def initialize(options = {}) @options = options end + # Called once before processing records def start; end + # Load a single record def load raise NotImplementedError end + # Called once there are no more records to process def finish; end end end end